@unicom-cloud/ui 0.8.72 → 0.8.74
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 +3 -3
- package/Alert.js +3 -3
- package/AutoComplete.js +3 -3
- package/BackTop.js +4 -4
- package/Badge.js +3 -3
- package/Breadcrumb.js +4 -4
- package/Button.js +2 -2
- package/Calendar.js +3 -3
- 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 +2 -2
- package/Comment.js +2 -2
- package/ConfigProvider.js +1 -1
- package/Copy.js +3 -3
- package/DatePicker.js +1 -1
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Dropdown.js +5 -5
- package/Empty.js +2 -2
- package/Icon.js +2 -2
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/InputNumber.js +2 -2
- package/Layout.js +2 -2
- package/Link.js +2 -2
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +7 -6
- package/Modal.js +1 -1
- package/Notice.js +5 -5
- package/Notification.js +8 -7
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +3 -3
- package/Popover.js +3 -3
- package/Progress.js +2 -2
- package/Radio.js +1 -1
- package/Rate.js +3 -3
- package/ResizeBox.js +3 -3
- package/Result.js +2 -2
- package/SelectView.js +5 -4
- package/Skeleton.js +2 -2
- package/Slider.js +4 -4
- package/Space.js +2 -2
- package/SpeechSynthesis.js +21 -21
- package/Spin.js +3 -3
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +8 -6
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +4 -4
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/Trigger.js +9 -8
- package/affix/index.js +3 -3
- package/alert/index.js +9 -9
- package/anchor/Anchor.js +62 -59
- package/anchor/Link.js +2 -2
- package/anchor/util.js +2 -2
- package/auto-complete/index.js +3 -3
- package/avatar/Avatar.js +2 -2
- package/avatar/Group.js +2 -2
- package/back-top/index.js +11 -11
- package/badge/Count.js +7 -7
- package/badge/index.js +52 -50
- package/breadcrumb/Item.js +6 -6
- package/breadcrumb/index.js +4 -4
- package/button/Group.js +2 -2
- package/button/index.js +2 -2
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +1 -1
- package/calendar/index.js +4 -4
- package/card/Grid.js +5 -5
- package/card/Meta.js +4 -4
- package/card/index.js +2 -2
- package/carousel/Arrow.js +2 -2
- package/carousel/Indicator.js +6 -6
- package/carousel/index.js +2 -2
- package/cascader/Cascader.js +5 -5
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +4 -4
- package/checkbox/Group.js +4 -4
- package/checkbox/index.js +1 -1
- package/chunk/{6nKl68Er.js → 9we0Q8Kh.js} +4 -4
- package/chunk/{b1e8awfs.js → B0n0iRhF.js} +1 -1
- package/chunk/{Cf4qn5jY.js → BDZpJpz-.js} +3 -3
- package/chunk/BFmckYou.js +25 -0
- package/chunk/{fFjj2KuF.js → BJ9_azwQ.js} +493 -515
- package/chunk/{BnWo0OJ0.js → Bd9zhOZS.js} +9 -9
- package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
- package/chunk/{Bfq4YEcr.js → Bmvhjhzq.js} +9 -8
- package/chunk/{CdAuhef7.js → BoUHPeG7.js} +2 -2
- package/chunk/BpYX5PN4.js +27 -0
- package/chunk/{CP7Ac47f.js → Bu8A2l60.js} +4 -4
- package/chunk/{URXCKjXr.js → C0pRaDCf.js} +23 -23
- package/chunk/CUFsOxJ2.js +10 -0
- package/chunk/CWjvjpyc.js +873 -0
- package/chunk/{ClaNycDy.js → Cc_-i0o_.js} +2 -2
- package/chunk/Coz3rCng.js +33 -0
- package/chunk/{BHL-PzAD.js → CplLA01W.js} +17 -17
- package/chunk/{Cgbja_v_.js → Crs3isAx.js} +14 -13
- package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
- package/chunk/{y9unmTx_.js → D5UfU6-H.js} +127 -127
- package/chunk/DAAff-FT.js +59 -0
- package/chunk/{rp1MtSd0.js → DJ8rDYjb.js} +4 -4
- package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
- package/chunk/DU1RCDfh.js +29 -0
- package/chunk/{CAVVFFyZ.js → DdT3C0ih.js} +6 -8
- package/chunk/{CdaT1b_F.js → DeV0v__J.js} +2 -2
- package/chunk/{IUjEMHU1.js → Dn7KbmZ7.js} +194 -191
- package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
- package/chunk/{BDHuWwhT.js → NmSLBKjp.js} +3 -3
- package/chunk/{DV7ywe_q.js → RS6OAxzv.js} +2 -2
- package/chunk/{Biupwn8l.js → ZrBrCzQX.js} +6 -5
- package/chunk/_L2dKF58.js +647 -0
- package/chunk/{BJ1soa2K.js → uEGHykhe.js} +18 -18
- package/chunk/{D090jlwP.js → xAb6ZgqS.js} +1 -1
- package/collapse/Collapse.js +4 -4
- package/collapse/Item.js +4 -4
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +2 -2
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +8 -8
- package/color-picker/InputRgb.js +6 -6
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +17 -17
- package/color-picker/colors.js +20 -9
- package/color-picker/index.js +21 -21
- package/color-picker/utils.js +1 -1
- package/comment/index.js +6 -6
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +16 -16
- package/date-picker/Picker.js +2 -2
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +3 -3
- package/divider/index.js +5 -5
- package/draggable/Item.js +1 -1
- package/draggable/index.js +9 -9
- package/drawer/Drawer.js +122 -112
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +5 -5
- package/empty/index.js +2 -2
- package/form/Control.js +1 -1
- package/form/Form.js +3 -3
- package/form/FormItem.js +3 -3
- package/form/FormLabel.js +9 -9
- package/form/promisify.js +9 -8
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +2 -2
- package/grid/Row.js +3 -3
- package/grid/grid-item.js +3 -3
- package/grid/grid.js +9 -9
- package/hooks/index.js +5 -5
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useVerificationCode.js +2 -2
- package/icon/index.js +11 -11
- package/icon-hover/index.js +2 -2
- package/image/Image.js +6 -6
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +10 -10
- package/image/ImagePreviewArrow.js +4 -4
- package/image/ImagePreviewGroup.js +2 -2
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +4 -4
- package/image/index.js +1 -1
- package/index.js +585 -575
- package/input/Group.js +4 -4
- package/input/Input.js +5 -4
- package/input/InputElement.js +4 -4
- package/input/Password.js +3 -3
- package/input/Search.js +3 -3
- package/input/Textarea.js +7 -6
- package/input-number/index.js +2 -2
- package/input-tag/InputTag.js +53 -51
- package/layout/Content.js +2 -2
- package/layout/Footer.js +5 -5
- package/layout/Header.js +4 -4
- package/layout/Sider.js +4 -4
- package/layout/index.js +2 -2
- package/link/index.js +5 -5
- package/list/Item.js +2 -2
- package/list/Meta.js +4 -4
- package/list/index.js +3 -3
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +3 -3
- package/menu/Item.js +6 -6
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +4 -4
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +7 -6
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +9 -8
- package/modal/index.js +1 -1
- package/notice/index.js +5 -5
- package/notification/index.js +8 -7
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +6 -6
- package/overflow-ellipsis/index.js +8 -8
- package/package.json +1 -1
- package/page-header/index.js +2 -2
- package/pagination/PageItem.js +2 -2
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +24 -24
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +9 -9
- package/popconfirm/index.js +3 -3
- package/popover/index.js +3 -3
- package/progress/CircleProgress.js +7 -7
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +7 -7
- package/progress/index.js +8 -8
- package/radio/Group.js +4 -4
- package/radio/Radio.js +4 -4
- package/radio/index.js +2 -2
- package/rate/index.js +27 -27
- package/resize-box/ResizeTrigger.js +26 -25
- package/resize-box/Split.js +12 -12
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +3 -3
- package/result/index.js +9 -9
- package/select/Option.js +2 -2
- package/select/Select.js +6 -5
- package/select/util.js +12 -12
- package/select-view/Core.js +29 -29
- package/select-view/index.js +3 -2
- package/skeleton/Image.js +4 -4
- package/skeleton/Text.js +7 -7
- package/skeleton/index.js +2 -2
- package/slider/Button.js +3 -3
- package/slider/Dot.js +5 -5
- package/slider/Input.js +12 -12
- package/slider/Tick.js +7 -7
- package/slider/index.js +20 -20
- package/slider/util.js +8 -8
- package/space/index.js +12 -12
- package/speech-synthesis/index.js +21 -21
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +3 -3
- package/statistic/Countdown.js +7 -7
- package/statistic/index.js +20 -20
- package/steps/Step.js +1 -1
- package/steps/index.js +2 -2
- package/style/variables.less +1 -1
- package/style.css +1 -1
- package/switch/index.js +17 -15
- package/table/Table.js +4 -4
- package/table/index.js +4 -4
- package/tabs/Tab.js +4 -4
- package/tabs/TabContent.js +3 -3
- package/tabs/TabPane.js +2 -2
- package/tabs/index.js +2 -2
- package/tag/index.js +6 -6
- package/time-picker/Picker.js +2 -2
- package/time-picker/TimeColumn.js +7 -7
- package/time-picker/TimePicker.js +23 -23
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +2 -2
- package/timeline/Timeline.js +2 -2
- package/tooltip/index.js +4 -4
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +3 -3
- package/tree/Animation.js +3 -3
- package/tree/Node.js +4 -4
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +4 -4
- package/tree/index.js +1 -1
- package/tree-select/Select.js +25 -25
- package/trigger/getPopupStyle.js +2 -2
- package/trigger/index.js +8 -7
- package/types/badge/interface.d.ts +1 -0
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/drawer/interface.d.ts +10 -0
- package/types/index.d.ts +0 -7
- package/types/modal/Confirm.d.ts +1 -0
- package/types/utils/PqbCSSTransition.d.ts +3 -0
- package/types/utils/caseName.d.ts +1 -0
- package/types/utils/className.d.ts +1 -0
- package/types/utils/color.d.ts +1 -0
- package/types/utils/computeScrollIntoView.d.ts +1 -0
- package/types/utils/contextHolder.d.ts +1 -0
- package/types/utils/copy.d.ts +1 -0
- package/types/utils/fileToURL.d.ts +1 -0
- package/types/utils/fillNBSP.d.ts +1 -0
- package/types/utils/getHighlightText.d.ts +1 -0
- package/types/utils/getHotkeyHandler.d.ts +1 -0
- package/types/utils/getStringLength.d.ts +1 -0
- package/types/utils/include.d.ts +1 -0
- package/types/utils/index.d.ts +29 -25
- package/types/utils/is.d.ts +1 -1
- package/types/utils/keyboardCode.d.ts +1 -0
- package/types/utils/math.d.ts +1 -0
- package/types/utils/mergeProps.d.ts +1 -0
- package/types/utils/mergedToString.d.ts +1 -0
- package/types/utils/names.d.ts +497 -81
- package/types/utils/omit.d.ts +1 -0
- package/types/utils/pick.d.ts +1 -1
- package/types/utils/reactTransitionGroup.d.ts +1 -0
- package/types/utils/responsiveObserve.d.ts +1 -0
- package/types/utils/saveAs.d.ts +1 -0
- package/types/utils/screenfull.d.ts +1 -0
- package/types/utils/scrollIntoView.d.ts +1 -0
- package/types/utils/tinycolor.d.ts +1 -0
- package/types/utils/tree.d.ts +1 -0
- package/types/utils/tween.d.ts +1 -0
- package/types/utils/uuid.d.ts +1 -0
- package/types/utils/validate.d.ts +1 -0
- package/types/version/index.d.ts +1 -1
- package/typography/Base.js +7 -6
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +28 -28
- package/typography/Paragraph.js +6 -6
- package/typography/Typography.js +5 -5
- package/typography/index.js +28 -28
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +62 -60
- package/upload/Uploader.js +21 -21
- package/upload/request_.js +4 -3
- package/utils/PqbCSSTransition.js +5 -0
- package/utils/caseName.js +3 -2
- package/utils/className.js +3 -2
- package/utils/color.js +4 -0
- package/utils/computeScrollIntoView.js +128 -0
- package/utils/contextHolder.js +3 -2
- package/utils/copy.js +4 -2
- package/utils/fileToURL.js +3 -2
- package/utils/fillNBSP.js +2 -1
- package/utils/getHighlightText.js +2 -1
- package/utils/getHotkeyHandler.js +2 -1
- package/utils/getStringLength.js +2 -1
- package/utils/include.js +2 -1
- package/utils/index.js +299 -256
- package/utils/is.js +104 -101
- package/utils/keyboardCode.js +2 -1
- package/utils/math.js +35 -0
- package/utils/mergeProps.js +2 -1
- package/utils/mergedToString.js +2 -1
- package/utils/names.js +332 -81
- package/utils/omit.js +2 -1
- package/utils/pick.js +1 -0
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/reactTransitionGroup.js +10 -0
- package/utils/responsiveObserve.js +2 -1
- package/utils/saveAs.js +3 -2
- package/utils/screenfull.js +2 -1
- package/utils/scrollIntoView.js +4 -2
- package/utils/tinycolor.js +30 -0
- package/utils/tree.js +87 -0
- package/utils/tween.js +6 -0
- package/utils/uuid.js +5 -0
- package/utils/validate.js +7 -0
- package/verification-code/VerificationCode.js +7 -7
- package/version/index.js +3 -3
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +6 -6
- package/chunk/B4JiMp8I.js +0 -764
- package/chunk/B6X4lnd0.js +0 -116
- package/chunk/BibHFOCF.js +0 -34
- package/chunk/CTxjmYmx.js +0 -19
- package/chunk/CVYWxu00.js +0 -155
- package/chunk/CbLaCJmG.js +0 -26
- package/chunk/D-TPB2Do.js +0 -56
- package/chunk/DVfOiRp-.js +0 -629
- package/chunk/DxxOUMSa.js +0 -98
- package/chunk/JPPo5nY_.js +0 -9
- package/types/utils/CSSTransition.d.ts +0 -2
- package/utils/CSSTransition.js +0 -4
package/space/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx as a, jsxs as A } from "react/jsx-runtime";
|
|
|
2
2
|
import L from "lodash/isArray";
|
|
3
3
|
import M from "lodash/isNumber";
|
|
4
4
|
import P, { forwardRef as b, useContext as j } from "react";
|
|
5
|
-
import { a as k } from "../chunk/
|
|
5
|
+
import { a as k } from "../chunk/Crs3isAx.js";
|
|
6
6
|
import { u as D } from "../chunk/BFTV6myl.js";
|
|
7
|
-
import {
|
|
7
|
+
import { p as F } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import H from "./toArray.js";
|
|
9
9
|
const O = {
|
|
10
10
|
size: "small",
|
|
@@ -22,20 +22,20 @@ function V(c, m) {
|
|
|
22
22
|
size: i,
|
|
23
23
|
direction: s,
|
|
24
24
|
align: w,
|
|
25
|
-
wrap:
|
|
26
|
-
split:
|
|
25
|
+
wrap: p,
|
|
26
|
+
split: u,
|
|
27
27
|
...B
|
|
28
28
|
} = N, e = v("space"), $ = w || (s === "horizontal" ? "center" : ""), R = F(
|
|
29
29
|
e,
|
|
30
30
|
{
|
|
31
31
|
[`${e}-${s}`]: s,
|
|
32
32
|
[`${e}-align-${$}`]: $,
|
|
33
|
-
[`${e}-wrap`]:
|
|
33
|
+
[`${e}-wrap`]: p,
|
|
34
34
|
[`${e}-rtl`]: d
|
|
35
35
|
},
|
|
36
36
|
S
|
|
37
37
|
);
|
|
38
|
-
function
|
|
38
|
+
function f(r) {
|
|
39
39
|
if (M(r))
|
|
40
40
|
return r;
|
|
41
41
|
switch (r) {
|
|
@@ -55,8 +55,8 @@ function V(c, m) {
|
|
|
55
55
|
function z(r) {
|
|
56
56
|
const n = y.length === r + 1, o = d ? "marginLeft" : "marginRight";
|
|
57
57
|
if (typeof i == "string" || typeof i == "number") {
|
|
58
|
-
const t =
|
|
59
|
-
return
|
|
58
|
+
const t = f(i);
|
|
59
|
+
return p ? n ? { marginBottom: t } : {
|
|
60
60
|
[`${o}`]: t,
|
|
61
61
|
marginBottom: t
|
|
62
62
|
} : n ? {} : {
|
|
@@ -64,17 +64,17 @@ function V(c, m) {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
if (L(i)) {
|
|
67
|
-
const t =
|
|
68
|
-
return
|
|
67
|
+
const t = f(i[0]), g = f(i[1]);
|
|
68
|
+
return p ? n ? { marginBottom: g } : {
|
|
69
69
|
[`${o}`]: t,
|
|
70
70
|
marginBottom: g
|
|
71
71
|
} : s === "vertical" ? { marginBottom: g } : { [`${o}`]: t };
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return /* @__PURE__ */ a("div", { ref: m, className: R, style: x, ...B, children: y.map((r, n) => {
|
|
75
|
-
const o = (r == null ? void 0 : r.key) || n, t =
|
|
75
|
+
const o = (r == null ? void 0 : r.key) || n, t = u != null && n > 0;
|
|
76
76
|
return /* @__PURE__ */ A(P.Fragment, { children: [
|
|
77
|
-
t && /* @__PURE__ */ a("div", { className: `${e}-item-split`, children:
|
|
77
|
+
t && /* @__PURE__ */ a("div", { className: `${e}-item-split`, children: u }),
|
|
78
78
|
/* @__PURE__ */ a("div", { className: `${e}-item`, style: z(n), children: r })
|
|
79
79
|
] }, o);
|
|
80
80
|
}) });
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { memo as C, forwardRef as I, useState as x, useEffect as S, useImperativeHandle as U } from "react";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/ZrBrCzQX.js";
|
|
4
4
|
import "../utils/dom.js";
|
|
5
|
-
import "../chunk/
|
|
6
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/DAAff-FT.js";
|
|
6
|
+
import "../chunk/Cc_-i0o_.js";
|
|
7
7
|
import "../chunk/Ce1j9KTi.js";
|
|
8
8
|
import "lodash/debounce";
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
9
|
+
import "lodash/camelCase.js";
|
|
10
|
+
import "lodash/capitalize.js";
|
|
11
|
+
import "lodash/kebabCase.js";
|
|
12
|
+
import "lodash/snakeCase.js";
|
|
13
|
+
import "lodash/startCase.js";
|
|
14
|
+
import "lodash/upperFirst.js";
|
|
15
|
+
import "lodash/uniq.js";
|
|
16
|
+
import "../chunk/C0pRaDCf.js";
|
|
17
|
+
import "lodash/isPlainObject.js";
|
|
18
|
+
import "../chunk/CWjvjpyc.js";
|
|
19
|
+
import "lodash/isString.js";
|
|
11
20
|
import "../chunk/tamGhTJp.js";
|
|
21
|
+
import "lodash/escapeRegExp";
|
|
22
|
+
import "lodash/isArray";
|
|
23
|
+
import "lodash/isNumber";
|
|
24
|
+
import "lodash/isString";
|
|
12
25
|
import "lodash/camelCase";
|
|
13
26
|
import "lodash/capitalize";
|
|
14
27
|
import "lodash/cloneDeep";
|
|
@@ -24,25 +37,12 @@ import "lodash/startCase";
|
|
|
24
37
|
import "lodash/throttle";
|
|
25
38
|
import "lodash/uniq";
|
|
26
39
|
import "lodash/upperFirst";
|
|
27
|
-
import "
|
|
28
|
-
import "lodash/capitalize.js";
|
|
29
|
-
import "lodash/kebabCase.js";
|
|
30
|
-
import "lodash/snakeCase.js";
|
|
31
|
-
import "lodash/startCase.js";
|
|
32
|
-
import "lodash/upperFirst.js";
|
|
33
|
-
import "lodash/isPlainObject.js";
|
|
34
|
-
import "lodash/uniq.js";
|
|
35
|
-
import "lodash/isString.js";
|
|
36
|
-
import "../chunk/fFjj2KuF.js";
|
|
37
|
-
import "lodash/escapeRegExp";
|
|
38
|
-
import "lodash/isArray";
|
|
39
|
-
import "lodash/isNumber";
|
|
40
|
-
import "lodash/isString";
|
|
40
|
+
import "../chunk/yl4BU7Sd.js";
|
|
41
41
|
import "lodash/isPlainObject";
|
|
42
|
+
import "../chunk/BJ9_azwQ.js";
|
|
42
43
|
import "../chunk/Bl7BnD1R.js";
|
|
43
|
-
import "lodash/isFunction";
|
|
44
|
-
import "../chunk/BHL-PzAD.js";
|
|
45
44
|
import "uuid";
|
|
45
|
+
import "../chunk/CplLA01W.js";
|
|
46
46
|
import g from "@unicom-cloud/icons/IconUiMute";
|
|
47
47
|
import v from "@unicom-cloud/icons/IconUiPauseCircleFill";
|
|
48
48
|
import B from "@unicom-cloud/icons/IconUiPlayCircleFill";
|
package/spin/DotLoading.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import m from "lodash/isNumber";
|
|
3
3
|
import { useContext as a } from "react";
|
|
4
|
-
import { a as l } from "../chunk/
|
|
4
|
+
import { a as l } from "../chunk/Crs3isAx.js";
|
|
5
5
|
function g(t) {
|
|
6
6
|
const { getPrefixCls: r } = a(l), i = `${r("spin")}-dot`, n = {
|
|
7
7
|
width: t.size,
|
package/spin/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsx as n, jsxs as c, Fragment as h } from "react/jsx-runtime";
|
|
|
2
2
|
import E from "@unicom-cloud/icons/IconUiLoading";
|
|
3
3
|
import I from "lodash/debounce";
|
|
4
4
|
import $, { useContext as j, useState as w, useCallback as P, useRef as D, useImperativeHandle as F, useEffect as H } from "react";
|
|
5
|
-
import { a as M } from "../chunk/
|
|
5
|
+
import { a as M } from "../chunk/Crs3isAx.js";
|
|
6
6
|
import { u as U } from "../chunk/BFTV6myl.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { p as N } from "../chunk/CUFsOxJ2.js";
|
|
8
|
+
import { c as _ } from "../chunk/DAAff-FT.js";
|
|
9
9
|
import q from "./DotLoading.js";
|
|
10
10
|
function A(y, S) {
|
|
11
11
|
const { getPrefixCls: x, componentConfig: l } = j(M), v = U(y, {}, l == null ? void 0 : l.Spin), {
|
package/statistic/Countdown.js
CHANGED
|
@@ -2,11 +2,11 @@ import { jsxs as M, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import T from "dayjs";
|
|
3
3
|
import _ from "lodash/isFunction";
|
|
4
4
|
import { forwardRef as E, useContext as F, useState as d, useRef as O, useEffect as P } from "react";
|
|
5
|
-
import { a as b } from "../chunk/
|
|
6
|
-
import {
|
|
5
|
+
import { a as b } from "../chunk/Crs3isAx.js";
|
|
6
|
+
import { p as k } from "../chunk/CUFsOxJ2.js";
|
|
7
7
|
import { g as v, a as w } from "../chunk/tamGhTJp.js";
|
|
8
|
-
import { getDateString as
|
|
9
|
-
function q(a,
|
|
8
|
+
import { getDateString as p } from "./util.js";
|
|
9
|
+
function q(a, h) {
|
|
10
10
|
const { getPrefixCls: x } = F(b), {
|
|
11
11
|
className: C,
|
|
12
12
|
style: g,
|
|
@@ -20,14 +20,14 @@ function q(a, p) {
|
|
|
20
20
|
} = a, o = v(y, e) || T(), S = v(a.now, e), t = x("statistic"), [c, j] = d(
|
|
21
21
|
o.diff(S, "millisecond")
|
|
22
22
|
), [f, V] = d(
|
|
23
|
-
|
|
23
|
+
p(Math.max(c, 0), e)
|
|
24
24
|
), s = O(null), m = () => {
|
|
25
25
|
clearInterval(s.current), s.current = null;
|
|
26
26
|
}, $ = () => {
|
|
27
27
|
s.current = setInterval(() => {
|
|
28
28
|
const H = o.diff(w()), u = o.diff(w(), "millisecond");
|
|
29
29
|
u <= 0 && (m(), n == null || n());
|
|
30
|
-
const I =
|
|
30
|
+
const I = p(Math.max(u, 0), e);
|
|
31
31
|
V(I), j(H);
|
|
32
32
|
}, 1e3 / 30);
|
|
33
33
|
};
|
|
@@ -38,7 +38,7 @@ function q(a, p) {
|
|
|
38
38
|
return /* @__PURE__ */ M(
|
|
39
39
|
"div",
|
|
40
40
|
{
|
|
41
|
-
ref:
|
|
41
|
+
ref: h,
|
|
42
42
|
className: k(`${t}`, `${t}-countdown`, C),
|
|
43
43
|
style: g,
|
|
44
44
|
children: [
|
package/statistic/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as l, Fragment as O, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { y as W, q as z } from "../chunk/BhBEMwvI.js";
|
|
3
3
|
import A from "dayjs";
|
|
4
4
|
import B from "lodash/isFunction";
|
|
5
5
|
import c from "lodash/isNumber";
|
|
6
6
|
import { forwardRef as G, useContext as J, useRef as b, useState as K, useEffect as Q, useImperativeHandle as T, useMemo as X } from "react";
|
|
7
|
-
import { a as Y } from "../chunk/
|
|
7
|
+
import { a as Y } from "../chunk/Crs3isAx.js";
|
|
8
8
|
import { u as Z } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import tt from "../skeleton/index.js";
|
|
10
|
-
import {
|
|
10
|
+
import { p as et } from "../chunk/CUFsOxJ2.js";
|
|
11
11
|
import { o as rt } from "../chunk/BKKEev13.js";
|
|
12
12
|
import ot from "./Countdown.js";
|
|
13
13
|
function it(D, R) {
|
|
@@ -27,13 +27,13 @@ function it(D, R) {
|
|
|
27
27
|
precision: s,
|
|
28
28
|
prefix: d,
|
|
29
29
|
suffix: u,
|
|
30
|
-
format:
|
|
30
|
+
format: p,
|
|
31
31
|
renderFormat: F,
|
|
32
|
-
styleValue:
|
|
33
|
-
styleDecimal:
|
|
34
|
-
loading:
|
|
35
|
-
...
|
|
36
|
-
} = t, n = b(), $ = b(), [e,
|
|
32
|
+
styleValue: _,
|
|
33
|
+
styleDecimal: k,
|
|
34
|
+
loading: q,
|
|
35
|
+
...E
|
|
36
|
+
} = t, n = b(), $ = b(), [e, f] = K(
|
|
37
37
|
"value" in t ? t.value : void 0
|
|
38
38
|
), r = P("statistic"), v = (i = t.countFrom, o = t.value) => {
|
|
39
39
|
const { countDuration: x } = t;
|
|
@@ -47,38 +47,38 @@ function it(D, R) {
|
|
|
47
47
|
duration: x,
|
|
48
48
|
easing: z,
|
|
49
49
|
onUpdate: (L) => {
|
|
50
|
-
|
|
50
|
+
f(L.value.toFixed(s));
|
|
51
51
|
},
|
|
52
52
|
onFinish: () => {
|
|
53
|
-
|
|
53
|
+
f(o);
|
|
54
54
|
}
|
|
55
55
|
}), n.current.start());
|
|
56
56
|
};
|
|
57
|
-
Q(() => (t.countUp ? (n.current && n.current.stop(), e !== t.value ? v(Number(e), t.value) : v()) :
|
|
57
|
+
Q(() => (t.countUp ? (n.current && n.current.stop(), e !== t.value ? v(Number(e), t.value) : v()) : f(t.value), () => {
|
|
58
58
|
n.current && n.current.stop(), n.current = null;
|
|
59
59
|
}), [t.value]), T(R, () => ({
|
|
60
60
|
countUp: v,
|
|
61
61
|
getRootDOMNode: () => $.current
|
|
62
62
|
}));
|
|
63
|
-
const { int:
|
|
63
|
+
const { int: H, decimal: N } = X(() => {
|
|
64
64
|
let i = e;
|
|
65
|
-
|
|
65
|
+
p && (i = A(e).format(p)), c(s) && s >= 0 && (i = Number(e).toFixed(s));
|
|
66
66
|
let o = String(i).split(".")[0];
|
|
67
67
|
const x = String(i).split(".")[1];
|
|
68
68
|
return g && c(Number(e)) && (o = Number(o).toLocaleString("en-US")), {
|
|
69
69
|
int: o,
|
|
70
70
|
decimal: x
|
|
71
71
|
};
|
|
72
|
-
}, [
|
|
72
|
+
}, [p, g, s, e]), I = B(F) ? F : (i, o) => o, w = c(Number(e)), C = /* @__PURE__ */ l(O, { children: [
|
|
73
73
|
d != null ? /* @__PURE__ */ a("span", { className: `${r}-value-prefix`, children: d }) : null,
|
|
74
|
-
|
|
74
|
+
I(e, w ? H : e)
|
|
75
75
|
] });
|
|
76
76
|
return /* @__PURE__ */ l(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
79
|
className: et(`${r}`, { [`${r}-rtl`]: V }, j),
|
|
80
80
|
style: M,
|
|
81
|
-
...rt(
|
|
81
|
+
...rt(E, ["value", "countUp", "countFrom", "countDuration"]),
|
|
82
82
|
ref: $,
|
|
83
83
|
children: [
|
|
84
84
|
h && /* @__PURE__ */ a("div", { className: `${r}-title`, children: h }),
|
|
@@ -87,15 +87,15 @@ function it(D, R) {
|
|
|
87
87
|
tt,
|
|
88
88
|
{
|
|
89
89
|
animation: !0,
|
|
90
|
-
loading: !!
|
|
90
|
+
loading: !!q,
|
|
91
91
|
text: { rows: 1, width: "100%" },
|
|
92
|
-
children: /* @__PURE__ */ l("div", { className: `${r}-value`, style:
|
|
92
|
+
children: /* @__PURE__ */ l("div", { className: `${r}-value`, style: _, children: [
|
|
93
93
|
w ? /* @__PURE__ */ a("span", { className: `${r}-value-int`, children: C }) : C,
|
|
94
94
|
N !== void 0 || u ? /* @__PURE__ */ l(
|
|
95
95
|
"span",
|
|
96
96
|
{
|
|
97
97
|
className: `${r}-value-decimal`,
|
|
98
|
-
style:
|
|
98
|
+
style: k,
|
|
99
99
|
children: [
|
|
100
100
|
c(Number(e)) && N !== void 0 && `.${N}`,
|
|
101
101
|
u != null ? /* @__PURE__ */ a("span", { className: `${r}-value-suffix`, children: u }) : null
|
package/steps/Step.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
|
2
2
|
import R from "@unicom-cloud/icons/IconUiCheck";
|
|
3
3
|
import W from "@unicom-cloud/icons/IconUiClose";
|
|
4
4
|
import { forwardRef as q } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { p as z } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
function A(x, S) {
|
|
7
7
|
const {
|
|
8
8
|
style: C,
|
package/steps/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as w } from "react/jsx-runtime";
|
|
2
2
|
import d, { forwardRef as D, useContext as R } from "react";
|
|
3
|
-
import { a as k } from "../chunk/
|
|
3
|
+
import { a as k } from "../chunk/Crs3isAx.js";
|
|
4
4
|
import { u as A } from "../chunk/BFTV6myl.js";
|
|
5
|
-
import {
|
|
5
|
+
import { p as E } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
import { a as j } from "../chunk/ClqoGc3r.js";
|
|
7
7
|
import F from "./Step.js";
|
|
8
8
|
const I = {
|
package/style/variables.less
CHANGED
|
@@ -808,8 +808,8 @@
|
|
|
808
808
|
@transition-timing-function-overshoot: cubic-bezier(0.3, 1.3, 0.3, 1);
|
|
809
809
|
@transition-timing-function-decelerate: cubic-bezier(0.4, 0.8, 0.74, 1);
|
|
810
810
|
@transition-timing-function-accelerate: cubic-bezier(0.26, 0, 0.6, 0.2);
|
|
811
|
-
@z-index-popup-base: 1000;
|
|
812
811
|
@z-index-affix: 999;
|
|
812
|
+
@z-index-popup-base: 1000;
|
|
813
813
|
@z-index-popup: 1000;
|
|
814
814
|
@z-index-drawer: 1001;
|
|
815
815
|
@z-index-modal: 1001;
|