@unicom-cloud/ui 0.8.63 → 0.8.65
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 +2 -2
- package/Alert.js +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +37 -31
- package/Breadcrumb.js +3 -3
- package/Button.js +82 -71
- package/Calendar.js +4 -4
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +5 -5
- package/Comment.js +2 -2
- package/ConfigProvider.js +2 -2
- package/Copy.js +3 -3
- package/DatePicker.js +92 -92
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Drawer.js +1 -1
- package/Dropdown.js +27 -26
- package/Empty.js +2 -2
- package/Form.js +4 -4
- package/Grid.js +3 -3
- package/Icon.js +3 -2
- package/IconHover.js +2 -2
- package/Image.js +4 -1
- package/Input.js +11 -2
- package/InputNumber.js +3 -3
- package/InputTag.js +1 -1
- package/Layout.js +25 -21
- package/Link.js +2 -2
- package/List.js +31 -30
- package/Mentions.js +4 -4
- package/Menu.js +7 -2
- package/Message.js +4 -3
- package/Modal.js +1 -1
- package/Notice.js +2 -2
- package/Notification.js +4 -3
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +2 -2
- package/Popover.js +2 -2
- package/Progress.js +2 -2
- package/Radio.js +4 -2
- package/Rate.js +2 -2
- package/ResizeBox.js +140 -137
- package/Result.js +2 -2
- package/Select.js +4 -1
- package/SelectView.js +7 -7
- package/Skeleton.js +2 -2
- package/Slider.js +5 -5
- package/Space.js +54 -50
- package/Spin.js +2 -2
- package/Statistic.js +29 -28
- package/Steps.js +41 -39
- package/Switch.js +3 -3
- package/Table.js +8 -5
- package/Tabs.js +6 -2
- package/Tag.js +2 -2
- package/TimePicker.js +38 -37
- package/Timeline.js +4 -2
- package/Tooltip.js +2 -2
- package/Transfer.js +4 -4
- package/Tree.js +1 -1
- package/TreeSelect.js +3 -1
- package/Trigger.js +43 -42
- package/Typography.js +6 -2
- package/Upload.js +3 -3
- package/VerificationCode.js +1 -1
- package/Version.js +5 -3
- package/Watermark.js +1 -1
- package/chunk/{DDDuw0Zi.js → 1GQdnTJp.js} +2 -2
- package/chunk/BAWsPQBM.js +11 -0
- package/chunk/{CfZWOhnc.js → BS09tn7B.js} +2 -2
- package/chunk/{CZ1wrD_H.js → BUCEs557.js} +2 -2
- package/chunk/BqGtwxTi.js +777 -0
- package/chunk/{BcwdVUDs.js → Bqk6yh16.js} +2 -2
- package/chunk/{CD7dGcUa.js → BqufsN8i.js} +4 -4
- package/chunk/{Dpzgtdt-.js → BtlvlGQN.js} +2 -2
- package/chunk/{BoDdbbF_.js → CF6p9R93.js} +4 -3
- package/chunk/{BnLshM9R.js → CGZ0In1p.js} +189 -182
- package/chunk/{B5gIo-hD.js → CH1UUxsg.js} +4 -4
- package/chunk/{D3dcFbex.js → CIlGCedk.js} +3 -3
- package/chunk/{CgDayZDE.js → CPcm9Cm5.js} +2 -2
- package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
- package/chunk/{JpKOcIfl.js → CWgltRVL.js} +44 -41
- package/chunk/{BLLKKgZJ.js → CsbCHnFk.js} +23 -21
- package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
- package/chunk/{B9w_puFP.js → DG-epQqF.js} +2 -2
- package/chunk/{QFkhCtUr.js → DIx0qmCq.js} +3 -3
- package/chunk/{Bn2-vqTg.js → DK4KcodH.js} +201 -195
- package/chunk/{BEB_A9eY.js → DLvMA1OW.js} +2 -2
- package/chunk/{DbPYtS7-.js → DQDkV47j.js} +2 -2
- package/chunk/{rlfmXePI.js → DTjcKyDN.js} +135 -134
- package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
- package/chunk/{C6Zb_-OE.js → DXZEpA3t.js} +2 -2
- package/chunk/{aqSmxUbY.js → DjtWv6Wn.js} +1 -1
- package/chunk/{C5S_amaH.js → DlLL5JQo.js} +106 -101
- package/chunk/{CvlD3aiv.js → Dnycc1qJ.js} +133 -130
- package/chunk/{DbLgopUR.js → DqFhzTWC.js} +3 -3
- package/chunk/{DXZ8-ha7.js → Dv_xRzvR.js} +3 -3
- package/chunk/{Dk6hL04k.js → Ek8U5CTN.js} +222 -221
- package/chunk/{CfTcP6nF.js → ewRDIDUz.js} +4 -4
- package/chunk/{CAxIyiy6.js → tYXLFPVI.js} +6 -4
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +2 -2
- package/index.js +530 -476
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/package.json +1 -1
- package/style/variable.less +820 -0
- package/style.css +1 -1
- package/types/badge/index.d.ts +2 -2
- package/types/button/index.d.ts +3 -1
- package/types/calendar/hook/useCellClassName.d.ts +2 -1
- package/types/checkbox/IconCheck.d.ts +2 -1
- package/types/config-provider/interface.d.ts +1 -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 +26 -26
- 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/select/interface.d.ts +1 -1
- 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/types/version/index.d.ts +2 -0
- package/utils/className.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/index.js +41 -41
- package/utils/is.js +37 -37
- package/utils/reactDOM.js +3 -3
- package/utils/scrollIntoView.js +1 -1
- package/chunk/BzPkh4Zv.js +0 -11
- package/chunk/Co3idurS.js +0 -774
package/Affix.js
CHANGED
|
@@ -3,10 +3,10 @@ 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/DlLL5JQo.js";
|
|
7
7
|
import { useIsomorphicLayoutEffect as Y } from "./hooks/useIsomorphicLayoutEffect.js";
|
|
8
8
|
import { useMergeProps as Z } from "./hooks/useMergeProps.js";
|
|
9
|
-
import { y as U } from "./chunk/
|
|
9
|
+
import { y as U } from "./chunk/BAWsPQBM.js";
|
|
10
10
|
import { on as E, off as C } from "./utils/dom.js";
|
|
11
11
|
import { isWindow as O } from "./utils/is.js";
|
|
12
12
|
import tt from "./utils/throttleByRaf.js";
|
package/Alert.js
CHANGED
|
@@ -5,9 +5,9 @@ import k from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
|
5
5
|
import R from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
6
6
|
import T from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
7
7
|
import { forwardRef as q, useRef as z, useContext as H, useState as M } from "react";
|
|
8
|
-
import { d as O } from "./chunk/
|
|
8
|
+
import { d as O } from "./chunk/DlLL5JQo.js";
|
|
9
9
|
import { useMergeProps as V } from "./hooks/useMergeProps.js";
|
|
10
|
-
import { y as _ } from "./chunk/
|
|
10
|
+
import { y as _ } from "./chunk/BAWsPQBM.js";
|
|
11
11
|
import { P as B } from "./chunk/CLBavO5c.js";
|
|
12
12
|
const D = {
|
|
13
13
|
showIcon: !0,
|
package/Anchor.js
CHANGED
package/AutoComplete.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
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/DlLL5JQo.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/
|
|
9
|
-
import { y as ge } from "./chunk/
|
|
7
|
+
import { I as me } from "./chunk/DK4KcodH.js";
|
|
8
|
+
import { S as d, i as pe, a as de } from "./chunk/BqGtwxTi.js";
|
|
9
|
+
import { y as ge } from "./chunk/BAWsPQBM.js";
|
|
10
10
|
import { E as Ce, d as ye } from "./chunk/C2lIz2F9.js";
|
|
11
11
|
import Oe from "./utils/omit.js";
|
|
12
12
|
import { pickDataAttributes as he } from "./utils/pick.js";
|
package/Avatar.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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/
|
|
5
|
-
import { y as E } from "./chunk/
|
|
4
|
+
import { d as j } from "./chunk/DlLL5JQo.js";
|
|
5
|
+
import { y as E } from "./chunk/BAWsPQBM.js";
|
|
6
6
|
import { useMergeProps as O } from "./hooks/useMergeProps.js";
|
|
7
7
|
import V from "./Popover.js";
|
|
8
8
|
const R = M({}), X = {
|
package/BackTop.js
CHANGED
|
@@ -2,11 +2,11 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
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/
|
|
5
|
+
import { d as H } from "./chunk/DlLL5JQo.js";
|
|
6
6
|
import { useKeyboardEvent as $ } from "./hooks/useKeyboardEvent.js";
|
|
7
7
|
import { useMergeProps as D } from "./hooks/useMergeProps.js";
|
|
8
8
|
import { P as I } from "./chunk/CLBavO5c.js";
|
|
9
|
-
import { y as K } from "./chunk/
|
|
9
|
+
import { y as K } from "./chunk/BAWsPQBM.js";
|
|
10
10
|
import { on as U, off as j } from "./utils/dom.js";
|
|
11
11
|
import { pickDataAttributes as q } from "./utils/pick.js";
|
|
12
12
|
import A from "./utils/throttleByRaf.js";
|
package/Badge.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { useState as
|
|
4
|
-
import { d as
|
|
5
|
-
import { useMergeProps as
|
|
2
|
+
import w from "lodash/isPlainObject";
|
|
3
|
+
import { useState as A, forwardRef as R, useContext as q } from "react";
|
|
4
|
+
import { d as z } from "./chunk/DlLL5JQo.js";
|
|
5
|
+
import { useMergeProps as G } from "./hooks/useMergeProps.js";
|
|
6
6
|
import { P as b } from "./chunk/CLBavO5c.js";
|
|
7
|
-
import { y as a } from "./chunk/
|
|
8
|
-
import { usePrevious as
|
|
9
|
-
function
|
|
10
|
-
const [g, r] =
|
|
7
|
+
import { y as a } from "./chunk/BAWsPQBM.js";
|
|
8
|
+
import { usePrevious as I } from "./hooks/usePrevious.js";
|
|
9
|
+
function _({ prefixCls: d, maxCount: i, count: n, className: c, style: f }) {
|
|
10
|
+
const [g, r] = A(!1), p = I(n), l = n !== p;
|
|
11
11
|
return /* @__PURE__ */ s(
|
|
12
12
|
b,
|
|
13
13
|
{
|
|
@@ -45,14 +45,14 @@ const O = [
|
|
|
45
45
|
"purple",
|
|
46
46
|
"magenta",
|
|
47
47
|
"gray"
|
|
48
|
-
],
|
|
48
|
+
], k = {
|
|
49
49
|
count: 0,
|
|
50
50
|
maxCount: 99
|
|
51
51
|
};
|
|
52
|
-
function
|
|
53
|
-
const { getPrefixCls: n, componentConfig: c, rtl: f } =
|
|
52
|
+
function v(d, i) {
|
|
53
|
+
const { getPrefixCls: n, componentConfig: c, rtl: f } = q(z), g = G(
|
|
54
54
|
d,
|
|
55
|
-
|
|
55
|
+
k,
|
|
56
56
|
c == null ? void 0 : c.Badge
|
|
57
57
|
), {
|
|
58
58
|
count: r,
|
|
@@ -61,18 +61,18 @@ function M(d, i) {
|
|
|
61
61
|
className: S,
|
|
62
62
|
dotClassName: m,
|
|
63
63
|
dot: x,
|
|
64
|
-
maxCount:
|
|
64
|
+
maxCount: E,
|
|
65
65
|
color: t,
|
|
66
|
-
dotStyle:
|
|
67
|
-
offset:
|
|
68
|
-
style:
|
|
66
|
+
dotStyle: P,
|
|
67
|
+
offset: B,
|
|
68
|
+
style: T,
|
|
69
69
|
status: u,
|
|
70
70
|
children: y,
|
|
71
|
-
...
|
|
72
|
-
} = g, e = n("badge"), o = { ...
|
|
71
|
+
...D
|
|
72
|
+
} = g, e = n("badge"), o = { ...P || {} }, [N, h] = B || [];
|
|
73
73
|
N && (o.marginRight = -N), h && (o.marginTop = h);
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
74
|
+
const j = () => {
|
|
75
|
+
if (w(r))
|
|
76
76
|
return /* @__PURE__ */ s(
|
|
77
77
|
"span",
|
|
78
78
|
{
|
|
@@ -130,12 +130,12 @@ function M(d, i) {
|
|
|
130
130
|
)
|
|
131
131
|
}
|
|
132
132
|
) : /* @__PURE__ */ s(
|
|
133
|
-
|
|
133
|
+
_,
|
|
134
134
|
{
|
|
135
135
|
prefixCls: e,
|
|
136
136
|
className: a(`${e}-number`, m),
|
|
137
137
|
style: { ...$, ...o },
|
|
138
|
-
maxCount:
|
|
138
|
+
maxCount: E,
|
|
139
139
|
count: r
|
|
140
140
|
}
|
|
141
141
|
);
|
|
@@ -153,20 +153,26 @@ function M(d, i) {
|
|
|
153
153
|
S
|
|
154
154
|
),
|
|
155
155
|
ref: i,
|
|
156
|
-
style:
|
|
157
|
-
...
|
|
156
|
+
style: T,
|
|
157
|
+
...D,
|
|
158
158
|
children: [
|
|
159
159
|
y,
|
|
160
|
-
|
|
160
|
+
j()
|
|
161
161
|
]
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
const
|
|
165
|
+
const L = R(v);
|
|
166
|
+
L.displayName = "Badge";
|
|
167
|
+
const W = O, X = [
|
|
168
|
+
"default",
|
|
169
|
+
"processing",
|
|
170
|
+
"success",
|
|
171
|
+
"warning",
|
|
172
|
+
"error"
|
|
173
|
+
];
|
|
168
174
|
export {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
175
|
+
W as BADGE_COLORS,
|
|
176
|
+
X as BADGE_STATUS,
|
|
177
|
+
L as default
|
|
172
178
|
};
|
package/Breadcrumb.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as M, jsx as t } from "react/jsx-runtime";
|
|
2
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/DlLL5JQo.js";
|
|
5
5
|
import { useMergeProps as A } from "./hooks/useMergeProps.js";
|
|
6
|
-
import { M as V } from "./chunk/
|
|
7
|
-
import { y as w } from "./chunk/
|
|
6
|
+
import { M as V } from "./chunk/CWgltRVL.js";
|
|
7
|
+
import { y as w } from "./chunk/BAWsPQBM.js";
|
|
8
8
|
import { isEmptyReactNode as F } from "./utils/is.js";
|
|
9
9
|
import E from "./utils/omit.js";
|
|
10
10
|
import K from "@unicom-cloud/icons/IconUiDown";
|
package/Button.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { d as
|
|
1
|
+
import { jsx as u, jsxs as Y, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import J from "@unicom-cloud/icons/IconUiLoading";
|
|
3
|
+
import $, { useContext as S, forwardRef as K, useState as V, useRef as X, useEffect as Z } from "react";
|
|
4
|
+
import { d as G } from "./chunk/DlLL5JQo.js";
|
|
5
5
|
import { useMergeProps as v } from "./hooks/useMergeProps.js";
|
|
6
|
-
import { y as
|
|
6
|
+
import { y as U } from "./chunk/BAWsPQBM.js";
|
|
7
7
|
function tt(c, o) {
|
|
8
|
-
const { className:
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
const { className: a, style: e, children: r, ...s } = c, { getPrefixCls: l } = S(G), d = l("btn-group"), f = U(d, a);
|
|
9
|
+
return /* @__PURE__ */ u("div", { ref: o, className: f, style: e, ...s, children: r });
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
|
|
11
|
+
const z = $.forwardRef(tt);
|
|
12
|
+
z.displayName = "ButtonGroup";
|
|
13
13
|
const et = /^[\u4e00-\u9fa5]{2}$/;
|
|
14
14
|
function nt(c) {
|
|
15
15
|
const o = [];
|
|
16
|
-
let
|
|
17
|
-
return
|
|
16
|
+
let a = !1;
|
|
17
|
+
return $.Children.forEach(c, (e) => {
|
|
18
18
|
const r = typeof e == "string" || typeof e == "number";
|
|
19
|
-
if (r &&
|
|
19
|
+
if (r && a) {
|
|
20
20
|
const s = o.length - 1, l = o[s];
|
|
21
21
|
o[s] = `${l}${e}`;
|
|
22
22
|
} else
|
|
23
23
|
o.push(e);
|
|
24
|
-
|
|
25
|
-
}),
|
|
24
|
+
a = r;
|
|
25
|
+
}), $.Children.map(
|
|
26
26
|
o,
|
|
27
|
-
(e) => typeof e == "string" ? /* @__PURE__ */
|
|
27
|
+
(e) => typeof e == "string" ? /* @__PURE__ */ u("span", { children: e }) : e
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
const ot = {
|
|
@@ -34,107 +34,118 @@ const ot = {
|
|
|
34
34
|
};
|
|
35
35
|
function st(c, o) {
|
|
36
36
|
const {
|
|
37
|
-
getPrefixCls:
|
|
37
|
+
getPrefixCls: a,
|
|
38
38
|
size: e,
|
|
39
39
|
autoInsertSpaceInButton: r,
|
|
40
40
|
componentConfig: s,
|
|
41
41
|
rtl: l
|
|
42
|
-
} =
|
|
42
|
+
} = S(G), d = v(
|
|
43
43
|
c,
|
|
44
44
|
ot,
|
|
45
45
|
s == null ? void 0 : s.Button
|
|
46
46
|
), {
|
|
47
|
-
style:
|
|
48
|
-
className:
|
|
47
|
+
style: f,
|
|
48
|
+
className: O,
|
|
49
49
|
children: h,
|
|
50
|
-
htmlType:
|
|
51
|
-
type:
|
|
52
|
-
status:
|
|
53
|
-
size:
|
|
54
|
-
shape:
|
|
50
|
+
htmlType: k,
|
|
51
|
+
type: T,
|
|
52
|
+
status: B,
|
|
53
|
+
size: E,
|
|
54
|
+
shape: F,
|
|
55
55
|
href: m,
|
|
56
|
-
anchorProps:
|
|
56
|
+
anchorProps: j,
|
|
57
57
|
disabled: p,
|
|
58
58
|
loading: C,
|
|
59
|
-
loadingFixedWidth:
|
|
60
|
-
icon:
|
|
59
|
+
loadingFixedWidth: D,
|
|
60
|
+
icon: L,
|
|
61
61
|
iconOnly: q,
|
|
62
|
-
iconSuffix:
|
|
63
|
-
iconRight:
|
|
64
|
-
onClick:
|
|
65
|
-
long:
|
|
66
|
-
...
|
|
67
|
-
} = d, w = C ? /* @__PURE__ */
|
|
62
|
+
iconSuffix: A,
|
|
63
|
+
iconRight: M,
|
|
64
|
+
onClick: y,
|
|
65
|
+
long: Q,
|
|
66
|
+
...P
|
|
67
|
+
} = d, w = C ? /* @__PURE__ */ u(J, {}) : L, [x, b] = V(!1), W = X(), i = o || W;
|
|
68
68
|
Z(() => {
|
|
69
|
-
if (r &&
|
|
70
|
-
const n =
|
|
71
|
-
et.test(n) ?
|
|
69
|
+
if (r && i && i.current) {
|
|
70
|
+
const n = i.current.textContent;
|
|
71
|
+
et.test(n) ? x || b(!0) : x && b(!1);
|
|
72
72
|
}
|
|
73
|
-
}, [
|
|
74
|
-
const t =
|
|
73
|
+
}, [i.current, r]);
|
|
74
|
+
const t = a("btn"), g = T === "default" ? "secondary" : T, R = U(
|
|
75
75
|
t,
|
|
76
|
-
|
|
77
|
-
`${t}-${
|
|
78
|
-
|
|
79
|
-
`${t}-shape-${
|
|
76
|
+
g === "text-only" && `${t}-text`,
|
|
77
|
+
`${t}-${g}`,
|
|
78
|
+
g !== "text-only" && `${t}-size-${E || e}`,
|
|
79
|
+
`${t}-shape-${F}`,
|
|
80
80
|
{
|
|
81
|
-
[`${t}-long`]:
|
|
82
|
-
[`${t}-status-${
|
|
83
|
-
[`${t}-loading-fixed-width`]:
|
|
81
|
+
[`${t}-long`]: Q,
|
|
82
|
+
[`${t}-status-${B}`]: B,
|
|
83
|
+
[`${t}-loading-fixed-width`]: D,
|
|
84
84
|
[`${t}-loading`]: C,
|
|
85
85
|
[`${t}-link`]: m,
|
|
86
86
|
[`${t}-icon-only`]: q || !h && h !== 0 && w,
|
|
87
87
|
[`${t}-disabled`]: p,
|
|
88
|
-
[`${t}-two-chinese-chars`]:
|
|
88
|
+
[`${t}-two-chinese-chars`]: x,
|
|
89
89
|
[`${t}-rtl`]: l
|
|
90
90
|
},
|
|
91
|
-
|
|
92
|
-
),
|
|
91
|
+
O
|
|
92
|
+
), _ = (n) => {
|
|
93
93
|
if (C || p) {
|
|
94
94
|
typeof (n == null ? void 0 : n.preventDefault) == "function" && n.preventDefault();
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
|
-
|
|
98
|
-
},
|
|
97
|
+
y == null || y(n);
|
|
98
|
+
}, I = /* @__PURE__ */ Y(H, { children: [
|
|
99
99
|
w,
|
|
100
100
|
nt(h),
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
M,
|
|
102
|
+
A
|
|
103
103
|
] });
|
|
104
104
|
if (m) {
|
|
105
|
-
const n = { ...
|
|
106
|
-
return p ? delete n.href : n.href = m, /* @__PURE__ */
|
|
105
|
+
const n = { ...j };
|
|
106
|
+
return p ? delete n.href : n.href = m, /* @__PURE__ */ u(
|
|
107
107
|
"a",
|
|
108
108
|
{
|
|
109
|
-
ref:
|
|
110
|
-
...
|
|
109
|
+
ref: i,
|
|
110
|
+
...P,
|
|
111
111
|
...n,
|
|
112
|
-
style:
|
|
113
|
-
className:
|
|
114
|
-
onClick:
|
|
115
|
-
children:
|
|
112
|
+
style: f,
|
|
113
|
+
className: R,
|
|
114
|
+
onClick: _,
|
|
115
|
+
children: I
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ u(
|
|
120
120
|
"button",
|
|
121
121
|
{
|
|
122
|
-
ref:
|
|
123
|
-
...
|
|
124
|
-
style:
|
|
125
|
-
className:
|
|
126
|
-
type:
|
|
122
|
+
ref: i,
|
|
123
|
+
...P,
|
|
124
|
+
style: f,
|
|
125
|
+
className: R,
|
|
126
|
+
type: k,
|
|
127
127
|
disabled: p,
|
|
128
|
-
onClick:
|
|
129
|
-
children:
|
|
128
|
+
onClick: _,
|
|
129
|
+
children: I
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
|
-
const rt =
|
|
133
|
+
const rt = K(st), N = rt;
|
|
134
134
|
N.__PQB_BUTTON = !0;
|
|
135
|
-
N.Group =
|
|
135
|
+
N.Group = z;
|
|
136
136
|
N.displayName = "Button";
|
|
137
|
+
const pt = [
|
|
138
|
+
"default",
|
|
139
|
+
"primary",
|
|
140
|
+
"secondary",
|
|
141
|
+
"dashed",
|
|
142
|
+
"text",
|
|
143
|
+
"text-only",
|
|
144
|
+
"outline"
|
|
145
|
+
], dt = ["warning", "danger", "success", "processing", "default"];
|
|
137
146
|
export {
|
|
138
|
-
|
|
147
|
+
dt as BUTTON_STATUS,
|
|
148
|
+
pt as BUTTON_TYPE,
|
|
149
|
+
z as ButtonGroup,
|
|
139
150
|
N as default
|
|
140
151
|
};
|
package/Calendar.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as a, jsxs as L, Fragment as te } from "react/jsx-runtime";
|
|
2
2
|
import Me from "lodash/merge";
|
|
3
3
|
import se, { useMemo as ie, useContext as be, useState as J } from "react";
|
|
4
|
-
import { d as De } from "./chunk/
|
|
4
|
+
import { d as De } from "./chunk/DlLL5JQo.js";
|
|
5
5
|
import { useMergeProps as Re } from "./hooks/useMergeProps.js";
|
|
6
|
-
import { y as V } from "./chunk/
|
|
6
|
+
import { y as V } from "./chunk/BAWsPQBM.js";
|
|
7
7
|
import { getNow as O, methods as E, dayjs as le, getDayjsValue as B } from "./utils/dayjs.js";
|
|
8
8
|
import { pickDataAttributes as Ae } from "./utils/pick.js";
|
|
9
9
|
import { newArray as ae } from "./utils/constant.js";
|
|
@@ -13,8 +13,8 @@ import ce from "@unicom-cloud/icons/IconUiLeft";
|
|
|
13
13
|
import me from "@unicom-cloud/icons/IconUiRight";
|
|
14
14
|
import xe from "./Button.js";
|
|
15
15
|
import { useKeyboardEvent as Le } from "./hooks/useKeyboardEvent.js";
|
|
16
|
-
import { R as Ee } from "./chunk/
|
|
17
|
-
import { S as ne } from "./chunk/
|
|
16
|
+
import { R as Ee } from "./chunk/CsbCHnFk.js";
|
|
17
|
+
import { S as ne } from "./chunk/BqGtwxTi.js";
|
|
18
18
|
import Pe from "@unicom-cloud/icons/IconUiDoubleLeft";
|
|
19
19
|
import Ye from "@unicom-cloud/icons/IconUiDoubleRight";
|
|
20
20
|
function Ve(t) {
|
package/Card.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import h, { useContext as y } from "react";
|
|
3
|
-
import { d as x } from "./chunk/
|
|
3
|
+
import { d as x } from "./chunk/DlLL5JQo.js";
|
|
4
4
|
import { useMergeProps as q } from "./hooks/useMergeProps.js";
|
|
5
5
|
import A from "./Spin.js";
|
|
6
|
-
import { y as p } from "./chunk/
|
|
6
|
+
import { y as p } from "./chunk/BAWsPQBM.js";
|
|
7
7
|
function B(c, m) {
|
|
8
8
|
const { children: f, style: i, className: r, hoverable: l } = c, { getPrefixCls: n } = y(x), o = n("card-grid");
|
|
9
9
|
return /* @__PURE__ */ a(
|
package/Carousel.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as s, jsxs as oe } from "react/jsx-runtime";
|
|
2
2
|
import W, { useContext as G, useRef as O, useState as S, useEffect as z, useImperativeHandle as $e } from "react";
|
|
3
|
-
import { d as J } from "./chunk/
|
|
3
|
+
import { d as J } from "./chunk/DlLL5JQo.js";
|
|
4
4
|
import { useInterval as Ie } from "./hooks/useInterval.js";
|
|
5
5
|
import { useMergeProps as Ne } from "./hooks/useMergeProps.js";
|
|
6
|
-
import { y as C } from "./chunk/
|
|
6
|
+
import { y as C } from "./chunk/BAWsPQBM.js";
|
|
7
7
|
import we from "./utils/omit.js";
|
|
8
8
|
import Pe from "./utils/warning.js";
|
|
9
9
|
import be from "@unicom-cloud/icons/IconUiDown";
|
package/Cascader.js
CHANGED
package/Checkbox.js
CHANGED
package/Collapse.js
CHANGED
package/ColorPicker.js
CHANGED
|
@@ -2,17 +2,17 @@ import { jsx as t, jsxs as $ } from "react/jsx-runtime";
|
|
|
2
2
|
import K from "lodash/isFunction";
|
|
3
3
|
import Q from "lodash/isNil";
|
|
4
4
|
import Z, { useMemo as z, useState as V, useEffect as j, useCallback as ee, useRef as T, useContext as S } from "react";
|
|
5
|
-
import { f as k, d as R } from "./chunk/
|
|
5
|
+
import { f as k, d as R } from "./chunk/DlLL5JQo.js";
|
|
6
6
|
import ne from "./Copy.js";
|
|
7
7
|
import { useMergeProps as te } from "./hooks/useMergeProps.js";
|
|
8
8
|
import re from "./Trigger.js";
|
|
9
|
-
import { y as A } from "./chunk/
|
|
10
|
-
import { k as G, s as oe } from "./chunk/
|
|
9
|
+
import { y as A } from "./chunk/BAWsPQBM.js";
|
|
10
|
+
import { k as G, s as oe } from "./chunk/DjtWv6Wn.js";
|
|
11
11
|
import { useIsFirstRender as se } from "./hooks/useIsFirstRender.js";
|
|
12
12
|
import { useMergeValue as _ } from "./hooks/useMergeValue.js";
|
|
13
|
-
import { S as ie } from "./chunk/
|
|
13
|
+
import { S as ie } from "./chunk/BqGtwxTi.js";
|
|
14
14
|
import X from "./Tooltip.js";
|
|
15
|
-
import { a as L, I as F } from "./chunk/
|
|
15
|
+
import { a as L, I as F } from "./chunk/DK4KcodH.js";
|
|
16
16
|
new k("#eee");
|
|
17
17
|
const ce = [
|
|
18
18
|
Object.entries(G).map(([n, l], d, f) => oe({ color: l, level: 4 })),
|
package/Comment.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import g from "lodash/isPlainObject";
|
|
3
3
|
import N from "lodash/isString";
|
|
4
4
|
import { forwardRef as v, useContext as u } from "react";
|
|
5
|
-
import { d as C } from "./chunk/
|
|
5
|
+
import { d as C } from "./chunk/DlLL5JQo.js";
|
|
6
6
|
import { useMergeProps as x } from "./hooks/useMergeProps.js";
|
|
7
|
-
import { y as d } from "./chunk/
|
|
7
|
+
import { y as d } from "./chunk/BAWsPQBM.js";
|
|
8
8
|
import { pickDataAttributes as y } from "./utils/pick.js";
|
|
9
9
|
const P = {
|
|
10
10
|
datetime: "left",
|
package/ConfigProvider.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as r } from "./chunk/
|
|
2
|
-
import { b as e, d as f, c as t } from "./chunk/
|
|
1
|
+
import { a as r } from "./chunk/DlLL5JQo.js";
|
|
2
|
+
import { b as e, d as f, c as t } from "./chunk/DlLL5JQo.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ConfigConsumer,
|
|
5
5
|
f as ConfigContext,
|
package/Copy.js
CHANGED
|
@@ -2,11 +2,11 @@ import { jsx as r, jsxs as T } from "react/jsx-runtime";
|
|
|
2
2
|
import h from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
3
3
|
import b from "@unicom-cloud/icons/IconUiCopy";
|
|
4
4
|
import { useContext as P, useState as w, useRef as E, useEffect as k } from "react";
|
|
5
|
-
import { d as v } from "./chunk/
|
|
5
|
+
import { d as v } from "./chunk/DlLL5JQo.js";
|
|
6
6
|
import { useKeyboardEvent as I } from "./hooks/useKeyboardEvent.js";
|
|
7
7
|
import N from "./Tooltip.js";
|
|
8
|
-
import { y as j } from "./chunk/
|
|
9
|
-
import { s as S } from "./chunk/
|
|
8
|
+
import { y as j } from "./chunk/BAWsPQBM.js";
|
|
9
|
+
import { s as S } from "./chunk/CwhPMMWy.js";
|
|
10
10
|
import U from "./utils/mergedToString.js";
|
|
11
11
|
function $(t) {
|
|
12
12
|
var a, u;
|