@unicom-cloud/ui 0.8.73 → 0.8.75
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 +3 -3
- package/AutoComplete.js +2 -2
- package/BackTop.js +4 -4
- package/Badge.js +3 -3
- package/Breadcrumb.js +3 -3
- 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 +2 -2
- 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 +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +4 -4
- package/Modal.js +1 -1
- package/Notice.js +2 -2
- package/Notification.js +4 -4
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +2 -2
- package/Popover.js +2 -2
- package/Progress.js +2 -2
- package/Radio.js +1 -1
- package/Rate.js +2 -2
- package/ResizeBox.js +2 -2
- package/Result.js +2 -2
- package/SelectView.js +1 -1
- package/Skeleton.js +2 -2
- package/Slider.js +2 -2
- package/Space.js +2 -2
- package/SpeechSynthesis.js +4 -4
- package/Spin.js +2 -2
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +4 -4
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +3 -3
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +9 -9
- package/anchor/Anchor.js +26 -26
- package/anchor/Link.js +2 -2
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- 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 +9 -9
- package/breadcrumb/Item.js +6 -6
- package/breadcrumb/index.js +3 -3
- 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 +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +3 -3
- package/checkbox/Group.js +3 -3
- package/checkbox/index.js +1 -1
- package/chunk/{oHDWCJnz.js → 0mWCmQHr.js} +3 -3
- package/chunk/{UDX9U6M7.js → B8hkFIar.js} +3 -3
- package/chunk/BFmckYou.js +25 -0
- package/chunk/{Cj2SQJiO.js → BJ9_azwQ.js} +487 -487
- package/chunk/{Dg0M2OmF.js → BViFMHr-.js} +5 -5
- package/chunk/BbqvFW5R.js +927 -0
- package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
- package/chunk/{Bj4EV0eG.js → BpYX5PN4.js} +1 -1
- package/chunk/{B7hulkj9.js → BxZ39GzB.js} +2 -2
- package/chunk/C9XYyypq.js +713 -0
- package/chunk/CIkPwQlq.js +6 -0
- package/chunk/{uH6uxyao.js → CPlPBkN7.js} +2 -2
- package/chunk/CUFsOxJ2.js +10 -0
- package/chunk/CWlklVfi.js +257 -0
- package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
- package/chunk/{DejjIa3N.js → DFcz9ZPP.js} +35 -35
- package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
- package/chunk/{D2LLXZQX.js → DeCsZrXb.js} +4 -4
- package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
- package/chunk/DskaI8QL.js +25 -0
- package/chunk/{7HDzVe32.js → Dv6USvVF.js} +4 -4
- package/chunk/{DJDOFlqC.js → EL5Jmjgr.js} +2 -2
- package/chunk/{CiY7w1ZO.js → WVoGhvMI.js} +3 -3
- package/chunk/{BJ1soa2K.js → uEGHykhe.js} +18 -18
- package/collapse/Collapse.js +3 -3
- 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 +7 -7
- package/color-picker/InputRgb.js +6 -6
- package/color-picker/Palette.js +5 -5
- package/color-picker/Panel.js +4 -4
- package/color-picker/colors.js +7 -12
- package/color-picker/index.js +20 -20
- 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 +2 -2
- package/divider/index.js +5 -5
- package/draggable/Item.js +1 -1
- package/draggable/index.js +9 -9
- package/drawer/Drawer.js +3 -3
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +2 -2
- package/form/Control.js +1 -1
- package/form/Form.js +2 -2
- package/form/FormItem.js +3 -3
- package/form/FormLabel.js +9 -9
- package/form/context.js +1 -1
- package/grid/Col.js +2 -2
- package/grid/Row.js +2 -2
- package/grid/grid-item.js +2 -2
- package/grid/grid.js +8 -8
- package/icon/index.js +11 -11
- package/icon-hover/index.js +2 -2
- package/image/Image.js +4 -4
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +5 -5
- package/image/ImagePreviewArrow.js +4 -4
- package/image/ImagePreviewGroup.js +1 -1
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +4 -4
- package/image/index.js +1 -1
- package/index.js +586 -592
- package/input/Group.js +4 -4
- package/input/Input.js +45 -45
- package/input/InputElement.js +2 -2
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +2 -2
- package/input-number/index.js +2 -2
- package/input-tag/InputTag.js +4 -4
- package/layout/Content.js +2 -2
- package/layout/Footer.js +5 -5
- package/layout/Header.js +4 -4
- package/layout/Sider.js +2 -2
- 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 +2 -2
- package/mentions/index.js +2 -2
- package/menu/Item.js +5 -5
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +4 -4
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +4 -4
- package/modal/index.js +1 -1
- package/notice/index.js +2 -2
- package/notification/index.js +4 -4
- 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 +23 -23
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +9 -9
- package/popconfirm/index.js +2 -2
- package/popover/index.js +2 -2
- 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 +3 -3
- package/radio/Radio.js +3 -3
- package/radio/index.js +2 -2
- package/rate/index.js +2 -2
- package/resize-box/ResizeTrigger.js +10 -10
- package/resize-box/Split.js +12 -12
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +9 -9
- package/select/Option.js +2 -2
- package/select/Select.js +3 -3
- package/select-view/Core.js +27 -27
- package/select-view/index.js +1 -1
- package/skeleton/Image.js +4 -4
- package/skeleton/Text.js +7 -7
- package/skeleton/index.js +2 -2
- package/slider/Button.js +2 -2
- package/slider/Dot.js +5 -5
- package/slider/Input.js +12 -12
- package/slider/Tick.js +6 -6
- package/slider/index.js +2 -2
- package/space/index.js +12 -12
- package/speech-synthesis/index.js +4 -4
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +2 -2
- 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 +375 -710
- package/style.css +1 -1
- package/switch/index.js +4 -4
- package/table/Table.js +4 -4
- package/table/index.js +4 -4
- package/tabs/Tab.js +3 -3
- 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 +3 -3
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +2 -2
- package/tree/Animation.js +3 -3
- package/tree/Node.js +4 -4
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +3 -3
- package/tree/index.js +1 -1
- package/tree-select/Select.js +2 -2
- package/trigger/index.js +3 -3
- package/types/color-picker/colors.d.ts +1 -1
- package/types/config-provider/interface.d.ts +0 -1
- package/types/utils/color.d.ts +1 -1
- package/types/utils/constant.d.ts +1 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/setDarkTheme.d.ts +4 -0
- package/typography/Base.js +2 -2
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +14 -15
- package/typography/Paragraph.js +6 -6
- package/typography/Typography.js +5 -5
- package/typography/index.js +12 -13
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +5 -5
- package/upload/Uploader.js +2 -2
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/className.js +3 -3
- package/utils/color.js +2 -116
- package/utils/constant.js +3 -2
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +4 -4
- package/utils/dom.js +1 -1
- package/utils/fileToURL.js +1 -1
- package/utils/index.js +303 -309
- package/utils/reactTransitionGroup.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/setDarkTheme.js +7 -0
- package/utils/tinycolor.js +13 -13
- package/utils/tween.js +1 -1
- package/verification-code/VerificationCode.js +7 -7
- package/version/index.js +1 -1
- package/watermark/Watermark.js +6 -6
- package/chunk/B0UZ1Ee2.js +0 -257
- package/chunk/Byd0ztYY.js +0 -724
- package/chunk/CCVU-Kst.js +0 -770
- package/chunk/CTxjmYmx.js +0 -19
- package/chunk/D0ZWT7db.js +0 -5
- package/chunk/JPPo5nY_.js +0 -9
package/slider/Button.js
CHANGED
|
@@ -3,11 +3,11 @@ import w from "lodash/isFunction";
|
|
|
3
3
|
import W from "lodash/isNumber";
|
|
4
4
|
import q from "lodash/isString";
|
|
5
5
|
import G, { useState as H, useContext as J, useMemo as B, useRef as g, useEffect as Q } from "react";
|
|
6
|
-
import { a as Z } from "../chunk/
|
|
6
|
+
import { a as Z } from "../chunk/C9XYyypq.js";
|
|
7
7
|
import { u as _ } from "../chunk/XTEsYGuF.js";
|
|
8
8
|
import { u as tt } from "../chunk/DeV0v__J.js";
|
|
9
9
|
import et from "../trigger/index.js";
|
|
10
|
-
import {
|
|
10
|
+
import { p as L } from "../chunk/CUFsOxJ2.js";
|
|
11
11
|
import { on as u, off as a } from "../utils/dom.js";
|
|
12
12
|
const nt = { maxWidth: 350 }, ot = {
|
|
13
13
|
enter: 300,
|
package/slider/Dot.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import d from "lodash/isFunction";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
3
|
+
import p from "lodash/isPlainObject";
|
|
4
|
+
import u from "react";
|
|
5
|
+
import { p as v } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
import { formatPercent as g, getIntervalOffset as D, valueInRange as h } from "./util.js";
|
|
7
7
|
const w = function(e) {
|
|
8
8
|
const {
|
|
@@ -25,7 +25,7 @@ const w = function(e) {
|
|
|
25
25
|
onMouseDown: (c) => {
|
|
26
26
|
c.stopPropagation(), d(e.onMouseDown) && e.onMouseDown(parseFloat(t));
|
|
27
27
|
},
|
|
28
|
-
children:
|
|
28
|
+
children: p(r) && r.dot ? r.dot : /* @__PURE__ */ a(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
className: v(`${o}-dot`, {
|
|
@@ -37,7 +37,7 @@ const w = function(e) {
|
|
|
37
37
|
t
|
|
38
38
|
);
|
|
39
39
|
}) }) : null;
|
|
40
|
-
}, b =
|
|
40
|
+
}, b = u.memo(w);
|
|
41
41
|
export {
|
|
42
42
|
b as default
|
|
43
43
|
};
|
package/slider/Input.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsxs as y, jsx as h } from "react/jsx-runtime";
|
|
2
2
|
import B, { useState as V, useEffect as b, createElement as N } from "react";
|
|
3
3
|
import { InputNumber as d } from "../input/Input.js";
|
|
4
|
-
import {
|
|
4
|
+
import { p as R } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
const S = function(C) {
|
|
6
6
|
const {
|
|
7
7
|
value: u,
|
|
8
|
-
range:
|
|
8
|
+
range: a,
|
|
9
9
|
min: g,
|
|
10
10
|
max: I,
|
|
11
11
|
step: $,
|
|
12
12
|
disabled: j,
|
|
13
13
|
prefixCls: i,
|
|
14
|
-
onChange:
|
|
15
|
-
extra:
|
|
14
|
+
onChange: c,
|
|
15
|
+
extra: m = []
|
|
16
16
|
} = C, p = {
|
|
17
17
|
min: g,
|
|
18
18
|
max: I,
|
|
19
19
|
step: $,
|
|
20
20
|
disabled: j
|
|
21
|
-
}, [
|
|
21
|
+
}, [r, l] = V(u), n = m[0], t = a ? m[1] : m[0];
|
|
22
22
|
b(() => {
|
|
23
23
|
l(u);
|
|
24
24
|
}, [u]);
|
|
25
25
|
const f = (e) => {
|
|
26
|
-
|
|
26
|
+
c == null || c(e);
|
|
27
27
|
}, k = () => {
|
|
28
28
|
l([...u].sort((e, o) => e - o));
|
|
29
29
|
};
|
|
@@ -31,22 +31,22 @@ const S = function(C) {
|
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
className: R(`${i}-input`, {
|
|
34
|
-
[`${i}-input-group`]:
|
|
34
|
+
[`${i}-input-group`]: a
|
|
35
35
|
}),
|
|
36
36
|
onBlur: k,
|
|
37
37
|
children: [
|
|
38
|
-
|
|
38
|
+
a && [
|
|
39
39
|
/* @__PURE__ */ N(
|
|
40
40
|
d,
|
|
41
41
|
{
|
|
42
42
|
hideControl: !0,
|
|
43
43
|
...n,
|
|
44
44
|
...p,
|
|
45
|
-
value:
|
|
45
|
+
value: r[0],
|
|
46
46
|
key: 0,
|
|
47
47
|
onChange: (e, o) => {
|
|
48
48
|
var s;
|
|
49
|
-
isNaN(e) && e !== e || (f([e,
|
|
49
|
+
isNaN(e) && e !== e || (f([e, r[1]]), (s = n == null ? void 0 : n.onChange) == null || s.call(n, e, o));
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
),
|
|
@@ -59,10 +59,10 @@ const S = function(C) {
|
|
|
59
59
|
...t,
|
|
60
60
|
...p,
|
|
61
61
|
key: 2,
|
|
62
|
-
value:
|
|
62
|
+
value: r[1],
|
|
63
63
|
onChange: (e, o) => {
|
|
64
64
|
var s;
|
|
65
|
-
isNaN(e) && e !== e || (f([
|
|
65
|
+
isNaN(e) && e !== e || (f([r[0], e]), (s = t == null ? void 0 : t.onChange) == null || s.call(t, e, o));
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
)
|
package/slider/Tick.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { plus as M } from "../utils/math.js";
|
|
3
3
|
import A, { useMemo as R } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { p as $ } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
import { formatPercent as b, getIntervalOffset as y, valueInRange as I } from "./util.js";
|
|
6
6
|
function N(p) {
|
|
7
7
|
const {
|
|
@@ -17,9 +17,9 @@ function N(p) {
|
|
|
17
17
|
for (let a = 0; a <= x; a++) {
|
|
18
18
|
const o = M(a * s, f);
|
|
19
19
|
if (o <= l || o >= u) continue;
|
|
20
|
-
const
|
|
21
|
-
c.set(
|
|
22
|
-
offset:
|
|
20
|
+
const i = b(y(o, e));
|
|
21
|
+
c.set(i, {
|
|
22
|
+
offset: i,
|
|
23
23
|
isActive: I(o, v)
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -27,7 +27,7 @@ function N(p) {
|
|
|
27
27
|
var t;
|
|
28
28
|
return c.clear(), (t = e == null ? void 0 : e.forEach) == null || t.call(e, (s) => h(s)), Array.from(c.values());
|
|
29
29
|
}, [e]);
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ m("div", { className: `${r}-ticks`, children: k.map((t, s) => /* @__PURE__ */ m(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
33
|
className: $(`${r}-tick`, {
|
package/slider/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import _ from "lodash/isArray";
|
|
|
4
4
|
import ee from "lodash/isFunction";
|
|
5
5
|
import te from "lodash/isPlainObject";
|
|
6
6
|
import Ge, { useMemo as ne, useCallback as T, forwardRef as He, useContext as Qe, useRef as B } from "react";
|
|
7
|
-
import { a as Ze } from "../chunk/
|
|
7
|
+
import { a as Ze } from "../chunk/C9XYyypq.js";
|
|
8
8
|
import { u as _e } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import { u as et } from "../chunk/DeV0v__J.js";
|
|
10
10
|
import { u as tt } from "../chunk/a3hR6zLw.js";
|
|
11
|
-
import {
|
|
11
|
+
import { p as ve } from "../chunk/CUFsOxJ2.js";
|
|
12
12
|
import { on as we, off as be } from "../utils/dom.js";
|
|
13
13
|
import { o as nt } from "../chunk/BKKEev13.js";
|
|
14
14
|
import ot from "./Button.js";
|
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/C9XYyypq.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
|
}) });
|
|
@@ -12,9 +12,10 @@ import "lodash/kebabCase.js";
|
|
|
12
12
|
import "lodash/snakeCase.js";
|
|
13
13
|
import "lodash/startCase.js";
|
|
14
14
|
import "lodash/upperFirst.js";
|
|
15
|
-
import "lodash/isPlainObject.js";
|
|
16
15
|
import "lodash/uniq.js";
|
|
17
|
-
import "../
|
|
16
|
+
import "../chunk/C0pRaDCf.js";
|
|
17
|
+
import "lodash/isPlainObject.js";
|
|
18
|
+
import "../chunk/BbqvFW5R.js";
|
|
18
19
|
import "lodash/isString.js";
|
|
19
20
|
import "../chunk/tamGhTJp.js";
|
|
20
21
|
import "lodash/escapeRegExp";
|
|
@@ -38,9 +39,8 @@ import "lodash/uniq";
|
|
|
38
39
|
import "lodash/upperFirst";
|
|
39
40
|
import "../chunk/yl4BU7Sd.js";
|
|
40
41
|
import "lodash/isPlainObject";
|
|
41
|
-
import "../chunk/
|
|
42
|
+
import "../chunk/BJ9_azwQ.js";
|
|
42
43
|
import "../chunk/Bl7BnD1R.js";
|
|
43
|
-
import "lodash/isFunction";
|
|
44
44
|
import "uuid";
|
|
45
45
|
import "../chunk/CplLA01W.js";
|
|
46
46
|
import g from "@unicom-cloud/icons/IconUiMute";
|
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/C9XYyypq.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,9 +2,9 @@ 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/C9XYyypq.js";
|
|
6
6
|
import { u as U } from "../chunk/BFTV6myl.js";
|
|
7
|
-
import {
|
|
7
|
+
import { p as N } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import { c as _ } from "../chunk/DAAff-FT.js";
|
|
9
9
|
import q from "./DotLoading.js";
|
|
10
10
|
function A(y, S) {
|
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/C9XYyypq.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/C9XYyypq.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/C9XYyypq.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 = {
|