@unicom-cloud/ui 0.8.81 → 0.8.83
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 +1 -1
- package/AutoComplete.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +2 -2
- 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 +2 -2
- package/Comment.js +1 -1
- package/ConfigProvider.js +5 -4
- package/Copy.js +1 -1
- package/DatePicker.js +7 -7
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +11 -10
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +5 -5
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +1 -1
- package/Statistic.js +2 -2
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/affix/index.js +60 -57
- package/alert/index.js +53 -53
- package/anchor/Anchor.js +72 -72
- package/anchor/Link.js +27 -27
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +31 -31
- package/avatar/Group.js +25 -25
- package/back-top/index.js +30 -30
- package/badge/index.js +37 -37
- package/breadcrumb/index.js +26 -26
- package/button/Group.js +7 -7
- package/button/index.js +29 -29
- package/calendar/index.js +2 -2
- package/card/Grid.js +12 -12
- package/card/Meta.js +17 -17
- package/card/index.js +44 -44
- package/carousel/Arrow.js +19 -19
- package/carousel/Indicator.js +25 -25
- package/carousel/index.js +77 -77
- package/cascader/Cascader.js +2 -2
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/B6r8jPCd.js +6 -0
- package/chunk/{DLBfXSnU.js → BmulTYLW.js} +2880 -2878
- package/chunk/C9oo3EJI.js +692 -0
- package/chunk/{C5X4hOkx.js → CVSWh4ZZ.js} +80 -80
- package/chunk/DILUZgXW.js +1464 -0
- package/chunk/DSRHFFrc.js +53 -0
- package/chunk/{yLRv5RIK.js → DdJVL_4g.js} +181 -181
- package/chunk/{DYspELhF.js → DlHiTTJO.js} +223 -223
- package/chunk/{BG7YGUsx.js → R-uQJib2.js} +119 -119
- package/chunk/{DEiyXzBZ.js → ev6oHWqY.js} +63 -63
- package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +36 -36
- package/color-picker/InputAlpha.js +11 -11
- package/color-picker/InputHex.js +24 -24
- package/color-picker/InputRgb.js +23 -23
- package/color-picker/Palette.js +18 -18
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +2 -2
- package/comment/index.js +31 -31
- package/config-provider/ConfigProvider.js +5 -3
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +4 -3
- package/copy/index.js +28 -28
- package/date-picker/Picker.js +276 -276
- package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
- package/date-picker/index.js +26 -27
- package/descriptions/index.js +33 -33
- package/divider/index.js +12 -12
- package/draggable/index.js +23 -23
- package/drawer/Drawer.js +81 -81
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +56 -56
- package/empty/index.js +1 -1
- package/form/Form.js +76 -76
- package/form/FormItem.js +64 -64
- package/form/context.js +1 -1
- package/grid/Col.js +53 -53
- package/grid/Row.js +34 -34
- package/grid/grid-item.js +29 -29
- package/grid/grid.js +50 -50
- package/icon/index.js +20 -19
- package/icon-hover/index.js +1 -1
- package/image/Image.js +86 -86
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +22 -22
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +498 -493
- package/input/Button.js +11 -0
- package/input/Group.js +8 -8
- package/input/Input.js +488 -434
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/index.js +9 -8
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +40 -40
- package/layout/Content.js +7 -7
- package/layout/Footer.js +9 -9
- package/layout/Header.js +7 -7
- package/layout/Sider.js +55 -55
- package/layout/index.js +32 -32
- package/link/index.js +35 -35
- package/list/Item.js +29 -29
- package/list/Meta.js +12 -12
- package/list/index.js +2 -2
- package/mentions/index.js +2 -2
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +5 -5
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +12 -12
- package/overflow-ellipsis/index.js +24 -24
- package/package.json +1 -1
- package/page-header/index.js +38 -38
- package/pagination/PageItem.js +16 -16
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +2 -2
- package/pagination/Pagination.js +2 -2
- package/pagination/index.js +1 -1
- package/picker/Input.js +69 -69
- package/picker/InputRange.js +111 -111
- package/popconfirm/index.js +61 -61
- package/popover/index.js +35 -35
- package/progress/index.js +22 -22
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +49 -49
- package/resize-box/ResizeTrigger.js +34 -34
- package/resize-box/Split.js +56 -56
- package/resize-box/SplitGroup.js +55 -55
- package/resize-box/index.js +51 -51
- package/result/index.js +41 -41
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select/index.js +2 -2
- package/select/util.js +1 -1
- package/select-view/Core.js +125 -125
- package/skeleton/index.js +20 -20
- package/slider/Button.js +57 -57
- package/slider/index.js +116 -116
- package/space/index.js +46 -44
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +10 -10
- package/spin/index.js +44 -44
- package/statistic/Countdown.js +34 -34
- package/statistic/index.js +67 -67
- package/steps/index.js +55 -55
- package/style.css +1 -1
- package/switch/index.js +54 -54
- package/table/Table.js +3 -3
- package/table/index.js +1 -1
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +12 -12
- package/tabs/index.js +2 -2
- package/tag/index.js +45 -45
- package/time-picker/Picker.js +76 -76
- package/time-picker/TimePicker.js +136 -136
- package/time-picker/index.js +8 -8
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +47 -47
- package/timeline/Timeline.js +41 -41
- package/tooltip/index.js +29 -29
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +2 -2
- package/tree/Animation.js +2 -2
- package/tree/Node.js +2 -2
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +2 -2
- package/tree-select/index.js +2 -2
- package/trigger/index.js +60 -60
- package/types/config-provider/ConfigProvider.d.ts +2 -2
- package/types/config-provider/context.d.ts +1 -1
- package/types/date-picker/index.d.ts +8 -9
- package/types/date-picker/interface.d.ts +9 -9
- package/types/index.d.ts +2 -2
- package/types/input/Button.d.ts +5 -0
- package/types/input/Input.d.ts +4 -1
- package/types/input/interface.d.ts +7 -0
- package/types/picker/Input.d.ts +2 -2
- package/types/space/index.d.ts +2 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/names.d.ts +1 -1
- package/types/utils/setTheme.d.ts +2 -0
- package/typography/Base.js +53 -53
- package/typography/Ellipsis.js +10 -8
- package/typography/Operations.js +28 -28
- package/typography/Paragraph.js +8 -8
- package/typography/Typography.js +7 -7
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +47 -47
- package/upload/Upload.js +184 -184
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/contextHolder.js +3 -3
- package/utils/dom.js +1 -1
- package/utils/index.js +116 -114
- package/utils/names.js +1 -1
- package/utils/setDarkTheme.js +23 -22
- package/utils/setPrimaryColor.js +22 -16
- package/utils/setTheme.js +9 -0
- package/utils/tween.js +1 -1
- package/verification-code/VerificationCode.js +49 -49
- package/version/index.js +1 -1
- package/watermark/Watermark.js +24 -24
- package/chunk/CQvM33Vg.js +0 -724
- package/chunk/D0ZWT7db.js +0 -5
- package/chunk/yhU2zeeu.js +0 -1461
- /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
package/time-picker/index.js
CHANGED
|
@@ -2,19 +2,19 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import o from "./Picker.js";
|
|
3
3
|
import t from "./RangePicker.js";
|
|
4
4
|
import k from "./TimePicker.js";
|
|
5
|
-
function i(
|
|
5
|
+
function i(n, a, c) {
|
|
6
6
|
function r(m) {
|
|
7
|
-
return /* @__PURE__ */ e(o, { ...m, picker:
|
|
7
|
+
return /* @__PURE__ */ e(o, { ...m, picker: n, isRangePicker: c === "range" });
|
|
8
8
|
}
|
|
9
|
-
return r.displayName =
|
|
9
|
+
return r.displayName = a, r;
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const p = i(/* @__PURE__ */ e(k, {}), "TimePicker"), P = i(
|
|
12
12
|
/* @__PURE__ */ e(t, {}),
|
|
13
|
-
"
|
|
13
|
+
"TimeRangePicker",
|
|
14
14
|
"range"
|
|
15
15
|
);
|
|
16
|
-
Object.assign(
|
|
16
|
+
Object.assign(p, { RangePicker: P });
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
P as TimeRangePicker,
|
|
19
|
+
p as default
|
|
20
20
|
};
|
package/time-picker/util.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as l, b as i } from "../chunk/uKZyjtff.js";
|
|
2
2
|
import { isDayjs as m } from "dayjs";
|
|
3
3
|
import { d as f, m as c } from "../chunk/tamGhTJp.js";
|
|
4
4
|
function T(o) {
|
|
@@ -12,7 +12,7 @@ function T(o) {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
const e = /* @__PURE__ */ new Map();
|
|
15
|
-
function
|
|
15
|
+
function h(o, s, r) {
|
|
16
16
|
e.get(o) && cancelAnimationFrame(e.get(o)), r <= 0 && (o.scrollTop = s), e.set(
|
|
17
17
|
o,
|
|
18
18
|
requestAnimationFrame(() => {
|
|
@@ -28,7 +28,7 @@ function y(o, s, r) {
|
|
|
28
28
|
})
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function y(o) {
|
|
32
32
|
const s = f(), r = s.year(), a = s.month(), t = s.date();
|
|
33
33
|
if (m(o)) {
|
|
34
34
|
let n = o;
|
|
@@ -38,6 +38,6 @@ function h(o) {
|
|
|
38
38
|
}
|
|
39
39
|
export {
|
|
40
40
|
T as getColumnsFromFormat,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
y as getFormatTime,
|
|
42
|
+
h as scrollTo
|
|
43
43
|
};
|
package/timeline/Item.js
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { a as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import z, { useContext as F, useRef as W, useEffect as j } from "react";
|
|
3
|
+
import { a as D } from "../chunk/C9oo3EJI.js";
|
|
4
|
+
import { u as P } from "../chunk/BFTV6myl.js";
|
|
5
|
+
import h from "@unicom-cloud/utils/class-name";
|
|
6
|
+
const g = {
|
|
7
7
|
dotType: "solid",
|
|
8
8
|
lineType: "solid"
|
|
9
9
|
};
|
|
10
|
-
function k(
|
|
11
|
-
const { getPrefixCls:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
function k(y, b) {
|
|
11
|
+
const { getPrefixCls: l, componentConfig: r } = F(D), m = P(
|
|
12
|
+
y,
|
|
13
|
+
g,
|
|
14
|
+
r == null ? void 0 : r["Timeline.Item"]
|
|
15
15
|
), {
|
|
16
|
-
children:
|
|
17
|
-
className:
|
|
18
|
-
style:
|
|
19
|
-
label:
|
|
20
|
-
position:
|
|
21
|
-
dot:
|
|
22
|
-
dotColor:
|
|
23
|
-
dotType:
|
|
16
|
+
children: n,
|
|
17
|
+
className: T,
|
|
18
|
+
style: x,
|
|
19
|
+
label: d,
|
|
20
|
+
position: C,
|
|
21
|
+
dot: c,
|
|
22
|
+
dotColor: f,
|
|
23
|
+
dotType: p,
|
|
24
24
|
lineType: I,
|
|
25
|
-
lineColor:
|
|
25
|
+
lineColor: $,
|
|
26
26
|
direction: o,
|
|
27
27
|
labelPosition: i,
|
|
28
28
|
autoFixDotSize: R = !0,
|
|
29
29
|
...w
|
|
30
|
-
} =
|
|
30
|
+
} = m, s = W(null), e = l == null ? void 0 : l("timeline"), S = () => {
|
|
31
31
|
if (s.current) {
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const N = 16 / s.current.offsetWidth;
|
|
33
|
+
N < 1 && (s.current.style.transform = `translateX(-50%) translateY(-50%) scale(${N})`);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
|
|
37
|
-
R &&
|
|
38
|
-
}, [
|
|
39
|
-
const
|
|
40
|
-
return /* @__PURE__ */
|
|
36
|
+
j(() => {
|
|
37
|
+
R && S();
|
|
38
|
+
}, [m]);
|
|
39
|
+
const u = d && /* @__PURE__ */ t("div", { className: `${e}-item-label`, children: d });
|
|
40
|
+
return /* @__PURE__ */ a(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
|
-
ref:
|
|
43
|
+
ref: b,
|
|
44
44
|
role: "listitem",
|
|
45
45
|
...w,
|
|
46
|
-
className:
|
|
46
|
+
className: h(
|
|
47
47
|
`${e}-item`,
|
|
48
48
|
{
|
|
49
|
-
[`${e}-item-${o}-${
|
|
49
|
+
[`${e}-item-${o}-${C}`]: o,
|
|
50
50
|
[`${e}-item-label-${i}`]: i
|
|
51
51
|
},
|
|
52
|
-
|
|
52
|
+
T
|
|
53
53
|
),
|
|
54
|
-
style:
|
|
54
|
+
style: x,
|
|
55
55
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ a("div", { className: `${e}-item-dot-wrapper`, children: [
|
|
57
57
|
/* @__PURE__ */ t(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
60
|
className: `${e}-item-dot-line ${e}-item-dot-line-is-${o}`,
|
|
61
61
|
style: {
|
|
62
62
|
[`${o === "horizontal" ? "borderTopStyle" : "borderLeftStyle"}`]: I,
|
|
63
|
-
|
|
63
|
+
...$ ? { borderColor: $ } : {}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
/* @__PURE__ */ t("div", { className: `${e}-item-dot-content`, children:
|
|
67
|
+
/* @__PURE__ */ t("div", { className: `${e}-item-dot-content`, children: c ? /* @__PURE__ */ t("div", { className: `${e}-item-dot-custom`, ref: s, children: c }) : /* @__PURE__ */ t(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
|
-
className:
|
|
70
|
+
className: h(
|
|
71
71
|
`${e}-item-dot`,
|
|
72
|
-
`${e}-item-dot-${
|
|
72
|
+
`${e}-item-dot-${p}`
|
|
73
73
|
),
|
|
74
|
-
style:
|
|
74
|
+
style: p === "solid" ? { backgroundColor: f } : { borderColor: f }
|
|
75
75
|
}
|
|
76
76
|
) })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
|
|
80
|
-
i !== "relative" &&
|
|
78
|
+
/* @__PURE__ */ a("div", { className: `${e}-item-content-wrapper`, children: [
|
|
79
|
+
n && /* @__PURE__ */ t("div", { className: `${e}-item-content`, children: n }),
|
|
80
|
+
i !== "relative" && u
|
|
81
81
|
] }),
|
|
82
|
-
i === "relative" &&
|
|
82
|
+
i === "relative" && u
|
|
83
83
|
]
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
|
-
const E =
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
const E = z.forwardRef(k), v = E;
|
|
88
|
+
v.displayName = "TimelineItem";
|
|
89
|
+
v.isTimelineItem = !0;
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
v as default
|
|
92
92
|
};
|
package/timeline/Timeline.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import d, { useContext as
|
|
3
|
-
import { a as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
2
|
+
import d, { useContext as w } from "react";
|
|
3
|
+
import { a as z } from "../chunk/C9oo3EJI.js";
|
|
4
|
+
import { u as j } from "../chunk/BFTV6myl.js";
|
|
5
|
+
import k from "../spin/index.js";
|
|
6
6
|
import y from "@unicom-cloud/utils/class-name";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
7
|
+
import $ from "./Item.js";
|
|
8
|
+
const x = (a, p, o, i) => {
|
|
9
9
|
let t = ["left", "right"];
|
|
10
10
|
i === "horizontal" && (t = ["top", "bottom"]);
|
|
11
|
-
const l =
|
|
11
|
+
const l = o === "alternate" ? a || t[p % 2] : o;
|
|
12
12
|
return t.indexOf(l) > -1 ? l : t[0];
|
|
13
|
-
},
|
|
13
|
+
}, N = {
|
|
14
14
|
mode: "left",
|
|
15
15
|
direction: "vertical",
|
|
16
|
-
pendingDot: /* @__PURE__ */ u(
|
|
16
|
+
pendingDot: /* @__PURE__ */ u(k, { size: 12 }),
|
|
17
17
|
labelPosition: "same"
|
|
18
18
|
};
|
|
19
19
|
function E(a, p) {
|
|
20
|
-
const { getPrefixCls:
|
|
21
|
-
t && (
|
|
22
|
-
const l =
|
|
20
|
+
const { getPrefixCls: o, componentConfig: i, rtl: t } = w(z);
|
|
21
|
+
t && (N.mode = "right");
|
|
22
|
+
const l = j(
|
|
23
23
|
a,
|
|
24
|
-
|
|
24
|
+
N,
|
|
25
25
|
i == null ? void 0 : i.Timeline
|
|
26
26
|
), {
|
|
27
|
-
className:
|
|
28
|
-
mode:
|
|
29
|
-
reverse:
|
|
30
|
-
children:
|
|
31
|
-
style:
|
|
27
|
+
className: C,
|
|
28
|
+
mode: T,
|
|
29
|
+
reverse: g,
|
|
30
|
+
children: v,
|
|
31
|
+
style: P,
|
|
32
32
|
direction: f,
|
|
33
33
|
pending: m,
|
|
34
34
|
labelPosition: b,
|
|
35
|
-
pendingDot:
|
|
36
|
-
...
|
|
37
|
-
} = l,
|
|
38
|
-
return m &&
|
|
39
|
-
/* @__PURE__ */ u(
|
|
40
|
-
),
|
|
35
|
+
pendingDot: D,
|
|
36
|
+
...I
|
|
37
|
+
} = l, r = o == null ? void 0 : o("timeline"), n = d.Children.map(v, (e) => e && e.type && e.type.isTimelineItem ? e : null) || [];
|
|
38
|
+
return m && n.push(
|
|
39
|
+
/* @__PURE__ */ u($, { lineType: "dashed", dot: D, children: m === !0 ? "" : m })
|
|
40
|
+
), g && n.reverse(), /* @__PURE__ */ u(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
role: "list",
|
|
44
|
-
...
|
|
44
|
+
...I,
|
|
45
45
|
ref: p,
|
|
46
46
|
className: y(
|
|
47
|
-
|
|
48
|
-
`${
|
|
49
|
-
`${
|
|
50
|
-
{ [`${
|
|
51
|
-
|
|
47
|
+
r,
|
|
48
|
+
`${r}-${T}`,
|
|
49
|
+
`${r}-direction-${f}`,
|
|
50
|
+
{ [`${r}-rtl`]: t },
|
|
51
|
+
C
|
|
52
52
|
),
|
|
53
|
-
style:
|
|
54
|
-
children:
|
|
53
|
+
style: P,
|
|
54
|
+
children: n.map((e, s) => {
|
|
55
55
|
if (!e)
|
|
56
56
|
return null;
|
|
57
|
-
const { position:
|
|
57
|
+
const { position: R } = e.props;
|
|
58
58
|
let c = e.props.lineType;
|
|
59
|
-
return m && (
|
|
59
|
+
return m && (g ? s === 0 && (c = "dashed") : n.length - 2 === s && (c = "dashed")), d.cloneElement(e, {
|
|
60
60
|
key: s,
|
|
61
61
|
className: y(e.props.className, {
|
|
62
|
-
[`${
|
|
62
|
+
[`${r}-item-last`]: n.length - 1 === s
|
|
63
63
|
}),
|
|
64
64
|
labelPosition: b,
|
|
65
|
-
position:
|
|
65
|
+
position: x(R, s, T, f),
|
|
66
66
|
direction: f,
|
|
67
67
|
lineType: c
|
|
68
68
|
});
|
|
@@ -70,10 +70,10 @@ function E(a, p) {
|
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
|
-
const F = d.forwardRef(E),
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
const F = d.forwardRef(E), h = F;
|
|
74
|
+
h.displayName = "Timeline";
|
|
75
|
+
h.Item = $;
|
|
76
76
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
$ as TimelineItem,
|
|
78
|
+
h as default
|
|
79
79
|
};
|
package/tooltip/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { c as I } from "../chunk/9TSjT7x_.js";
|
|
3
3
|
import S from "lodash/isFunction";
|
|
4
4
|
import { forwardRef as j, useContext as z, useRef as B, useImperativeHandle as W, useMemo as q } from "react";
|
|
5
|
-
import { a as G } from "../chunk/
|
|
5
|
+
import { a as G } from "../chunk/C9oo3EJI.js";
|
|
6
6
|
import { u as J } from "../chunk/BFTV6myl.js";
|
|
7
7
|
import K, { EventsByTriggerNeed as Q } from "../trigger/index.js";
|
|
8
|
-
import
|
|
8
|
+
import h from "@unicom-cloud/utils/class-name";
|
|
9
9
|
import { c as U } from "../chunk/ClM74To2.js";
|
|
10
10
|
import { a as X, p as Y } from "../chunk/ClqoGc3r.js";
|
|
11
11
|
const Z = {
|
|
@@ -24,19 +24,19 @@ const Z = {
|
|
|
24
24
|
top: 12,
|
|
25
25
|
bottom: 12
|
|
26
26
|
};
|
|
27
|
-
function eo(
|
|
28
|
-
const { getPrefixCls:
|
|
29
|
-
|
|
27
|
+
function eo(N, C) {
|
|
28
|
+
const { getPrefixCls: l, componentConfig: a } = z(G), m = J(
|
|
29
|
+
N,
|
|
30
30
|
Z,
|
|
31
|
-
|
|
31
|
+
a == null ? void 0 : a.Tooltip
|
|
32
32
|
), {
|
|
33
|
-
style:
|
|
34
|
-
className:
|
|
33
|
+
style: x,
|
|
34
|
+
className: f,
|
|
35
35
|
children: y,
|
|
36
36
|
trigger: w,
|
|
37
37
|
escToClose: T,
|
|
38
38
|
defaultPopupVisible: V,
|
|
39
|
-
position:
|
|
39
|
+
position: d,
|
|
40
40
|
unmountOnExit: v,
|
|
41
41
|
popupVisible: $,
|
|
42
42
|
prefixCls: D,
|
|
@@ -47,13 +47,13 @@ function eo(h, C) {
|
|
|
47
47
|
triggerProps: n,
|
|
48
48
|
childrenPrefix: R,
|
|
49
49
|
getPopupContainer: k,
|
|
50
|
-
content:
|
|
50
|
+
content: u,
|
|
51
51
|
mini: M,
|
|
52
52
|
color: s,
|
|
53
|
-
...
|
|
54
|
-
} =
|
|
55
|
-
var r,
|
|
56
|
-
(
|
|
53
|
+
...g
|
|
54
|
+
} = m, p = B(), L = (o = 0, e) => {
|
|
55
|
+
var r, b;
|
|
56
|
+
(b = (r = p.current) == null ? void 0 : r.updatePopupPosition) == null || b.call(r, o, e);
|
|
57
57
|
};
|
|
58
58
|
W(
|
|
59
59
|
C,
|
|
@@ -75,45 +75,45 @@ function eo(h, C) {
|
|
|
75
75
|
}),
|
|
76
76
|
[]
|
|
77
77
|
);
|
|
78
|
-
const i = D ||
|
|
79
|
-
...Y(
|
|
80
|
-
...X(
|
|
78
|
+
const i = D || (l == null ? void 0 : l("tooltip")), t = {
|
|
79
|
+
...Y(g, Q),
|
|
80
|
+
...X(g),
|
|
81
81
|
...n,
|
|
82
|
-
className:
|
|
83
|
-
},
|
|
84
|
-
"popupVisible" in
|
|
82
|
+
className: h(f, n == null ? void 0 : n.className)
|
|
83
|
+
}, P = S(u) ? u() : u;
|
|
84
|
+
"popupVisible" in m ? t.popupVisible = $ : U(P, !0) && (t.popupVisible = !1), (t.showArrow !== !1 || t.arrowProps) && (t.arrowProps = t.arrowProps || {}, s && (t.arrowProps.style = {
|
|
85
85
|
backgroundColor: s,
|
|
86
86
|
...t.arrowProps.style
|
|
87
87
|
}));
|
|
88
88
|
const F = q(() => s ? new I(s).isLight() ?? !1 : !1, [s]);
|
|
89
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ c(
|
|
90
90
|
K,
|
|
91
91
|
{
|
|
92
92
|
style: {
|
|
93
93
|
maxWidth: 350,
|
|
94
|
-
...
|
|
94
|
+
...x
|
|
95
95
|
},
|
|
96
|
-
className:
|
|
96
|
+
className: f,
|
|
97
97
|
ref: p,
|
|
98
98
|
classNames: "zoomInFadeOut",
|
|
99
99
|
duration: _,
|
|
100
|
-
popup: () => /* @__PURE__ */
|
|
100
|
+
popup: () => /* @__PURE__ */ c(
|
|
101
101
|
"div",
|
|
102
102
|
{
|
|
103
103
|
style: { backgroundColor: s },
|
|
104
|
-
className:
|
|
104
|
+
className: h(
|
|
105
105
|
`${i}-content`,
|
|
106
|
-
`${i}-content-${
|
|
106
|
+
`${i}-content-${d}`,
|
|
107
107
|
{
|
|
108
108
|
[`${i}-mini`]: M,
|
|
109
109
|
[`${i}-light-color`]: F
|
|
110
110
|
}
|
|
111
111
|
),
|
|
112
112
|
role: "tooltip",
|
|
113
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ c("div", { className: `${i}-content-inner`, children: P })
|
|
114
114
|
}
|
|
115
115
|
),
|
|
116
|
-
position:
|
|
116
|
+
position: d,
|
|
117
117
|
disabled: H,
|
|
118
118
|
trigger: w,
|
|
119
119
|
escToClose: T,
|
package/transfer/Item.js
CHANGED
|
@@ -2,9 +2,9 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
4
4
|
import "react";
|
|
5
|
-
import { $ as d } from "../chunk/
|
|
5
|
+
import { $ as d } from "../chunk/BmulTYLW.js";
|
|
6
6
|
import "../chunk/BYdIoY50.js";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/C9oo3EJI.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
export {
|
|
10
10
|
d as default
|
package/transfer/List.js
CHANGED
|
@@ -4,8 +4,8 @@ import "@unicom-cloud/icons/IconUiSearch";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../button/index.js";
|
|
7
|
-
import { a0 as n, a1 as u } from "../chunk/
|
|
8
|
-
import "../chunk/
|
|
7
|
+
import { a0 as n, a1 as u } from "../chunk/BmulTYLW.js";
|
|
8
|
+
import "../chunk/C9oo3EJI.js";
|
|
9
9
|
import "../chunk/BYdIoY50.js";
|
|
10
10
|
import "../input/Input.js";
|
|
11
11
|
import "@unicom-cloud/utils/class-name";
|
package/transfer/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../button/index.js";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/C9oo3EJI.js";
|
|
8
8
|
import "../chunk/BFTV6myl.js";
|
|
9
9
|
import "../chunk/CXPOj2uy.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../chunk/ClqoGc3r.js";
|
|
12
|
-
import { r as x } from "../chunk/
|
|
12
|
+
import { r as x } from "../chunk/BmulTYLW.js";
|
|
13
13
|
export {
|
|
14
14
|
x as default
|
|
15
15
|
};
|
package/tree/Animation.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "lodash/isNumber";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/C9oo3EJI.js";
|
|
5
5
|
import "../chunk/NPajzdOv.js";
|
|
6
6
|
import "../virtual-list/VirtualList.js";
|
|
7
7
|
import "./Context.js";
|
|
8
|
-
import { a2 as d } from "../chunk/
|
|
8
|
+
import { a2 as d } from "../chunk/BmulTYLW.js";
|
|
9
9
|
export {
|
|
10
10
|
d as default
|
|
11
11
|
};
|
package/tree/Node.js
CHANGED
|
@@ -5,8 +5,8 @@ import "@unicom-cloud/icons/IconUiFile";
|
|
|
5
5
|
import "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import "lodash/isFunction";
|
|
7
7
|
import "react";
|
|
8
|
-
import { N as x } from "../chunk/
|
|
9
|
-
import "../chunk/
|
|
8
|
+
import { N as x } from "../chunk/BmulTYLW.js";
|
|
9
|
+
import "../chunk/C9oo3EJI.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../utils/throttleByRaf.js";
|
|
12
12
|
import "./Context.js";
|
package/tree/NodeList.js
CHANGED
package/tree/Tree.js
CHANGED
|
@@ -7,11 +7,11 @@ import "lodash/isArray";
|
|
|
7
7
|
import "lodash/isEqualWith";
|
|
8
8
|
import "lodash/isFunction";
|
|
9
9
|
import "lodash/isUndefined";
|
|
10
|
-
import "../chunk/
|
|
10
|
+
import "../chunk/C9oo3EJI.js";
|
|
11
11
|
import "@unicom-cloud/utils/class-name";
|
|
12
12
|
import "../chunk/ClqoGc3r.js";
|
|
13
13
|
import "./Context.js";
|
|
14
|
-
import { N as b, s as c } from "../chunk/
|
|
14
|
+
import { N as b, s as c } from "../chunk/BmulTYLW.js";
|
|
15
15
|
import "./util.js";
|
|
16
16
|
export {
|
|
17
17
|
b as TreeNode,
|
package/tree/index.js
CHANGED
package/tree-select/List.js
CHANGED
package/tree-select/Select.js
CHANGED
|
@@ -5,13 +5,13 @@ import "lodash/isArray";
|
|
|
5
5
|
import "lodash/isFunction";
|
|
6
6
|
import "lodash/isNil";
|
|
7
7
|
import "react";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/C9oo3EJI.js";
|
|
9
9
|
import "../chunk/B4YRLi8r.js";
|
|
10
10
|
import "../chunk/oopARUrq.js";
|
|
11
11
|
import "../chunk/BFTV6myl.js";
|
|
12
12
|
import "../chunk/CXPOj2uy.js";
|
|
13
13
|
import "../select-view/index.js";
|
|
14
|
-
import { v as h, t as j } from "../chunk/
|
|
14
|
+
import { v as h, t as j } from "../chunk/BmulTYLW.js";
|
|
15
15
|
import "../tree/util.js";
|
|
16
16
|
import "../trigger/index.js";
|
|
17
17
|
import "@unicom-cloud/utils/class-name";
|
package/tree-select/index.js
CHANGED