@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/color-picker/Palette.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { a as
|
|
5
|
-
import { u as
|
|
6
|
-
const w = ({ color:
|
|
7
|
-
const { getPrefixCls:
|
|
8
|
-
value: [
|
|
9
|
-
onChange: (
|
|
10
|
-
}), p =
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../chunk/9TSjT7x_.js";
|
|
3
|
+
import { useContext as h, useMemo as C } from "react";
|
|
4
|
+
import { a as v } from "../chunk/C9oo3EJI.js";
|
|
5
|
+
import { u as g } from "../chunk/k-OUstoD.js";
|
|
6
|
+
const w = ({ color: l, onChange: a }) => {
|
|
7
|
+
const { getPrefixCls: o } = h(v), r = o == null ? void 0 : o("color-picker"), { h: t, s: n, v: s } = l.hsv, { blockRef: m, handlerRef: f, onMouseDown: i } = g({
|
|
8
|
+
value: [n, 1 - s],
|
|
9
|
+
onChange: (e) => a(e[0], 1 - e[1])
|
|
10
|
+
}), p = C(() => new d({ h: t * 360, s: 100, v: 100 }).toRgbString(), [t]), u = () => /* @__PURE__ */ c(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
|
-
ref:
|
|
14
|
-
className: `${
|
|
13
|
+
ref: f,
|
|
14
|
+
className: `${r}-handler`,
|
|
15
15
|
style: {
|
|
16
|
-
top: `${(1 -
|
|
17
|
-
left: `${
|
|
16
|
+
top: `${(1 - s) * 100}%`,
|
|
17
|
+
left: `${n * 100}%`
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
);
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ c(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
|
-
ref:
|
|
25
|
-
className: `${
|
|
24
|
+
ref: m,
|
|
25
|
+
className: `${r}-palette`,
|
|
26
26
|
style: { backgroundColor: p },
|
|
27
|
-
onMouseDown:
|
|
27
|
+
onMouseDown: i,
|
|
28
28
|
children: u()
|
|
29
29
|
}
|
|
30
30
|
);
|
package/color-picker/Panel.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../chunk/9TSjT7x_.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
5
|
-
import { Z as b } from "../chunk/
|
|
4
|
+
import "../chunk/C9oo3EJI.js";
|
|
5
|
+
import { Z as b } from "../chunk/BmulTYLW.js";
|
|
6
6
|
import "../tooltip/index.js";
|
|
7
7
|
import "@unicom-cloud/utils/class-name";
|
|
8
8
|
import "./ControlBar.js";
|
package/color-picker/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isFunction";
|
|
3
3
|
import "lodash/isNil";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/C9oo3EJI.js";
|
|
6
6
|
import "../copy/index.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
8
|
import "../trigger/index.js";
|
|
9
9
|
import "@unicom-cloud/utils/class-name";
|
|
10
10
|
import "./colors.js";
|
|
11
|
-
import { d as x } from "../chunk/
|
|
11
|
+
import { d as x } from "../chunk/BmulTYLW.js";
|
|
12
12
|
import "./utils.js";
|
|
13
13
|
export {
|
|
14
14
|
x as default
|
package/comment/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import N from "lodash/isPlainObject";
|
|
3
|
+
import g from "lodash/isString";
|
|
4
4
|
import { forwardRef as u, useContext as v } from "react";
|
|
5
|
-
import { a as C } from "../chunk/
|
|
5
|
+
import { a as C } from "../chunk/C9oo3EJI.js";
|
|
6
6
|
import { u as x } from "../chunk/BFTV6myl.js";
|
|
7
|
-
import
|
|
8
|
-
import { a as
|
|
9
|
-
const
|
|
7
|
+
import f from "@unicom-cloud/utils/class-name";
|
|
8
|
+
import { a as j } from "../chunk/ClqoGc3r.js";
|
|
9
|
+
const y = {
|
|
10
10
|
datetime: "left",
|
|
11
11
|
actions: "left"
|
|
12
|
-
},
|
|
12
|
+
}, b = {
|
|
13
13
|
align: "left"
|
|
14
14
|
};
|
|
15
|
-
function
|
|
16
|
-
const { getPrefixCls:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
), t =
|
|
21
|
-
...
|
|
22
|
-
...
|
|
15
|
+
function A(p, $) {
|
|
16
|
+
const { getPrefixCls: s, componentConfig: r, rtl: h } = v(C), a = x(
|
|
17
|
+
p,
|
|
18
|
+
b,
|
|
19
|
+
r == null ? void 0 : r.Comment
|
|
20
|
+
), t = s == null ? void 0 : s("comment"), { actions: o, author: l, avatar: i, content: c, datetime: m } = a, d = {
|
|
21
|
+
...y,
|
|
22
|
+
...N(a.align) ? a.align : {
|
|
23
23
|
datetime: a.align,
|
|
24
24
|
actions: a.align
|
|
25
25
|
}
|
|
@@ -27,34 +27,34 @@ function b(f, p) {
|
|
|
27
27
|
return /* @__PURE__ */ n(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
|
-
ref:
|
|
31
|
-
className:
|
|
30
|
+
ref: $,
|
|
31
|
+
className: f(
|
|
32
32
|
`${t}`,
|
|
33
33
|
{ [`${t}-rtl`]: h },
|
|
34
34
|
a.className
|
|
35
35
|
),
|
|
36
36
|
style: a.style,
|
|
37
|
-
...
|
|
37
|
+
...j(a),
|
|
38
38
|
children: [
|
|
39
|
-
i && /* @__PURE__ */ e("div", { className:
|
|
39
|
+
i && /* @__PURE__ */ e("div", { className: f(`${t}-avatar`), children: g(i) ? /* @__PURE__ */ e("img", { src: i, alt: "comment-avatar" }) : i }),
|
|
40
40
|
/* @__PURE__ */ n("div", { className: `${t}-inner`, children: [
|
|
41
41
|
/* @__PURE__ */ n("div", { className: `${t}-inner-content`, children: [
|
|
42
|
-
(
|
|
42
|
+
(l || m) && /* @__PURE__ */ n(
|
|
43
43
|
"div",
|
|
44
44
|
{
|
|
45
|
-
className: `${t}-title ${t}-title-align-${
|
|
45
|
+
className: `${t}-title ${t}-title-align-${d.datetime}`,
|
|
46
46
|
children: [
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
l && /* @__PURE__ */ e("span", { className: `${t}-author`, children: l }),
|
|
48
|
+
m && /* @__PURE__ */ e("span", { className: `${t}-datetime`, children: m })
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
c && /* @__PURE__ */ e("div", { className: `${t}-content`, children: c }),
|
|
53
|
+
o && /* @__PURE__ */ e(
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
|
-
className: `${t}-actions ${t}-actions-align-${
|
|
57
|
-
children:
|
|
56
|
+
className: `${t}-actions ${t}-actions-align-${d.actions}`,
|
|
57
|
+
children: o
|
|
58
58
|
}
|
|
59
59
|
)
|
|
60
60
|
] }),
|
|
@@ -64,10 +64,10 @@ function b(f, p) {
|
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
|
-
const
|
|
68
|
-
|
|
67
|
+
const P = u(
|
|
68
|
+
A
|
|
69
69
|
);
|
|
70
|
-
|
|
70
|
+
P.displayName = "Comment";
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
P as default
|
|
73
73
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/icons/context";
|
|
3
|
-
import
|
|
3
|
+
import "../chunk/DSRHFFrc.js";
|
|
4
4
|
import "@unicom-cloud/utils/constant/ui";
|
|
5
5
|
import "lodash/merge";
|
|
6
6
|
import "react";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
|
+
import { C, a as n, c as g, b as u } from "../chunk/C9oo3EJI.js";
|
|
8
9
|
import "../modal/config.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
C as ConfigConsumer,
|
|
11
12
|
n as ConfigContext,
|
|
12
|
-
|
|
13
|
+
g as ConfigProviderDefaultProps,
|
|
14
|
+
u as default
|
|
13
15
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/utils/constant/ui";
|
|
3
3
|
import "react";
|
|
4
|
-
import {
|
|
4
|
+
import { c as m, a as e } from "../chunk/C9oo3EJI.js";
|
|
5
5
|
import "../locale/zh-CN.js";
|
|
6
6
|
export {
|
|
7
|
-
m as
|
|
7
|
+
m as ConfigProviderDefaultProps,
|
|
8
8
|
e as default
|
|
9
9
|
};
|
package/config-provider/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { b as r } from "../chunk/
|
|
2
|
-
import { C as f, a as
|
|
1
|
+
import { b as r } from "../chunk/C9oo3EJI.js";
|
|
2
|
+
import { C as f, a as i, c as s } from "../chunk/C9oo3EJI.js";
|
|
3
3
|
export {
|
|
4
4
|
f as ConfigConsumer,
|
|
5
|
-
|
|
5
|
+
i as ConfigContext,
|
|
6
|
+
s as ConfigProviderDefaultProps,
|
|
6
7
|
r as default
|
|
7
8
|
};
|
package/copy/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as c, 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
|
-
import { useContext as
|
|
5
|
-
import { a as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
4
|
+
import { useContext as w, useState as E, useRef as N, useEffect as k } from "react";
|
|
5
|
+
import { a as v } from "../chunk/C9oo3EJI.js";
|
|
6
|
+
import { u as I } from "../chunk/BYdIoY50.js";
|
|
7
|
+
import P from "../tooltip/index.js";
|
|
8
8
|
import j from "@unicom-cloud/utils/class-name";
|
|
9
9
|
import S from "@unicom-cloud/utils/clipboard-copy";
|
|
10
10
|
import { m as U } from "../chunk/B5RFT17G.js";
|
|
11
11
|
function $(o) {
|
|
12
|
-
var
|
|
13
|
-
const { children:
|
|
14
|
-
(
|
|
15
|
-
(
|
|
12
|
+
var u, d;
|
|
13
|
+
const { children: m } = o, x = I(), g = w(v), { getPrefixCls: n, locale: t } = g, s = n == null ? void 0 : n("copy"), [e, a] = E(!1), i = N(-1), r = o.tooltips || [
|
|
14
|
+
(u = t == null ? void 0 : t.Typography) == null ? void 0 : u.copy,
|
|
15
|
+
(d = t == null ? void 0 : t.Typography) == null ? void 0 : d.copied
|
|
16
16
|
];
|
|
17
|
-
let
|
|
18
|
-
o.icon !== null && o.icon !== !1 && (
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
if (
|
|
17
|
+
let f = null;
|
|
18
|
+
o.icon !== null && o.icon !== !1 && (f = e ? /* @__PURE__ */ c(h, {}) : o.icon || /* @__PURE__ */ c(b, {}));
|
|
19
|
+
function l(y) {
|
|
20
|
+
var p;
|
|
21
|
+
if (y.stopPropagation(), e)
|
|
22
22
|
return;
|
|
23
|
-
const
|
|
24
|
-
S(
|
|
25
|
-
|
|
23
|
+
const C = o.text !== void 0 ? o.text : U(m);
|
|
24
|
+
S(C), a(!0), (p = o.onCopy) == null || p.call(o, C, y), i.current = window.setTimeout(() => {
|
|
25
|
+
a(!1);
|
|
26
26
|
}, 3e3);
|
|
27
27
|
}
|
|
28
|
-
return
|
|
29
|
-
clearTimeout(
|
|
30
|
-
}, []), /* @__PURE__ */
|
|
31
|
-
|
|
28
|
+
return k(() => () => {
|
|
29
|
+
clearTimeout(i.current), i.current = -1;
|
|
30
|
+
}, []), /* @__PURE__ */ c(
|
|
31
|
+
P,
|
|
32
32
|
{
|
|
33
|
-
content: e ?
|
|
33
|
+
content: e ? r[1] : r[0],
|
|
34
34
|
getPopupContainer: () => window.document.body,
|
|
35
35
|
...o.tooltipProps,
|
|
36
36
|
children: /* @__PURE__ */ T(
|
|
@@ -42,15 +42,15 @@ function $(o) {
|
|
|
42
42
|
o.className
|
|
43
43
|
),
|
|
44
44
|
role: "button",
|
|
45
|
-
"aria-label":
|
|
45
|
+
"aria-label": r[0],
|
|
46
46
|
tabIndex: 0,
|
|
47
|
-
onClick:
|
|
48
|
-
...
|
|
49
|
-
onPressEnter:
|
|
47
|
+
onClick: l,
|
|
48
|
+
...x({
|
|
49
|
+
onPressEnter: l
|
|
50
50
|
}),
|
|
51
51
|
children: [
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
m,
|
|
53
|
+
f
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
)
|