@unicom-cloud/ui 0.8.81 → 0.8.82
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/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/{yLRv5RIK.js → CQI1gsQs.js} +181 -181
- package/chunk/CmMehQON.js +1464 -0
- package/chunk/Cplu5dtQ.js +730 -0
- package/chunk/{C5X4hOkx.js → D0338Pbq.js} +80 -80
- package/chunk/{DYspELhF.js → DXDbeIai.js} +223 -223
- package/chunk/{DEiyXzBZ.js → DfrB26fI.js} +63 -63
- package/chunk/{BG7YGUsx.js → dKvAiKxr.js} +119 -119
- package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
- package/chunk/{DLBfXSnU.js → w221i0nK.js} +2872 -2871
- 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 -4
- 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/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 +410 -408
- package/input/Group.js +8 -8
- package/input/Input.js +322 -322
- 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-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 +1 -1
- package/types/picker/Input.d.ts +2 -2
- package/types/space/index.d.ts +2 -1
- package/types/utils/names.d.ts +1 -1
- package/typography/Base.js +53 -53
- package/typography/Ellipsis.js +9 -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/utils/contextHolder.js +3 -3
- package/utils/index.js +13 -13
- package/utils/names.js +1 -1
- package/utils/setPrimaryColor.js +18 -13
- 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/yhU2zeeu.js +0 -1461
- /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
package/collapse/Collapse.js
CHANGED
|
@@ -3,12 +3,12 @@ import "@unicom-cloud/icons/IconUiCaretLeft";
|
|
|
3
3
|
import "@unicom-cloud/icons/IconUiCaretRight";
|
|
4
4
|
import "lodash/isFunction";
|
|
5
5
|
import "react";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/Cplu5dtQ.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
8
|
import "../chunk/CXPOj2uy.js";
|
|
9
9
|
import "@unicom-cloud/utils/class-name";
|
|
10
10
|
import "../chunk/BKKEev13.js";
|
|
11
|
-
import { a as x, C as d } from "../chunk/
|
|
11
|
+
import { a as x, C as d } from "../chunk/DfrB26fI.js";
|
|
12
12
|
export {
|
|
13
13
|
x as CollapseContext,
|
|
14
14
|
d as default
|
package/collapse/Item.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../chunk/BJ9_azwQ.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/Cplu5dtQ.js";
|
|
5
5
|
import "../chunk/BYdIoY50.js";
|
|
6
6
|
import "@unicom-cloud/utils/class-name";
|
|
7
7
|
import "../utils/dom.js";
|
|
8
|
-
import { I as d } from "../chunk/
|
|
8
|
+
import { I as d } from "../chunk/DfrB26fI.js";
|
|
9
9
|
export {
|
|
10
10
|
d as default
|
|
11
11
|
};
|
package/collapse/index.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { a as
|
|
4
|
-
import
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
7
|
-
className:
|
|
8
|
-
style:
|
|
9
|
-
multiple:
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as B } from "react";
|
|
3
|
+
import { a as C } from "../chunk/Cplu5dtQ.js";
|
|
4
|
+
import R from "@unicom-cloud/utils/class-name";
|
|
5
|
+
import { u as g } from "../chunk/k-OUstoD.js";
|
|
6
|
+
const q = ({
|
|
7
|
+
className: u,
|
|
8
|
+
style: h,
|
|
9
|
+
multiple: m = !1,
|
|
10
10
|
value: a,
|
|
11
|
-
onActive:
|
|
12
|
-
onAdd:
|
|
13
|
-
onChange:
|
|
14
|
-
renderHandlerStyle:
|
|
15
|
-
renderHandlerCenterStyle:
|
|
11
|
+
onActive: N,
|
|
12
|
+
onAdd: k,
|
|
13
|
+
onChange: v,
|
|
14
|
+
renderHandlerStyle: f,
|
|
15
|
+
renderHandlerCenterStyle: t
|
|
16
16
|
}) => {
|
|
17
|
-
const { getPrefixCls:
|
|
18
|
-
multiple:
|
|
19
|
-
value:
|
|
17
|
+
const { getPrefixCls: r } = B(C), n = r == null ? void 0 : r("color-picker"), { blockRef: $, handlerRef: x, onMouseDown: b } = g({
|
|
18
|
+
multiple: m,
|
|
19
|
+
value: m ? a.map((o) => ({
|
|
20
20
|
value: [o.value / 100, 0],
|
|
21
21
|
key: o.key
|
|
22
22
|
})) : [a, 0],
|
|
23
|
-
onChange: (o) =>
|
|
24
|
-
onAdd: (o) =>
|
|
25
|
-
onActive:
|
|
26
|
-
}),
|
|
27
|
-
const o = (c, s,
|
|
23
|
+
onChange: (o) => v(o[0]),
|
|
24
|
+
onAdd: (o) => k(o[0]),
|
|
25
|
+
onActive: N
|
|
26
|
+
}), l = () => {
|
|
27
|
+
const o = (c, s, i) => /* @__PURE__ */ p(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
|
-
ref:
|
|
31
|
-
className: `${
|
|
30
|
+
ref: x,
|
|
31
|
+
className: `${n}-handler`,
|
|
32
32
|
style: {
|
|
33
33
|
left: `${c * 100}%`,
|
|
34
|
-
...
|
|
34
|
+
...f == null ? void 0 : f(s, i)
|
|
35
35
|
},
|
|
36
36
|
"data-key": s,
|
|
37
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ p(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
className: `${
|
|
41
|
-
style:
|
|
40
|
+
className: `${n}-handler-center`,
|
|
41
|
+
style: t == null ? void 0 : t(s, i),
|
|
42
42
|
"data-key": s
|
|
43
43
|
}
|
|
44
44
|
)
|
|
45
45
|
},
|
|
46
46
|
s
|
|
47
47
|
);
|
|
48
|
-
return
|
|
48
|
+
return m ? a.map((c, s) => o(c.value, c.key, s)) : o(a);
|
|
49
49
|
};
|
|
50
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ p(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
|
-
ref:
|
|
54
|
-
style:
|
|
55
|
-
className:
|
|
56
|
-
onMouseDown:
|
|
57
|
-
children:
|
|
53
|
+
ref: $,
|
|
54
|
+
style: h,
|
|
55
|
+
className: R(`${n}-control-bar`, u),
|
|
56
|
+
onMouseDown: b,
|
|
57
|
+
children: l()
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
};
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
q as ControlBar
|
|
63
63
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { a as
|
|
4
|
-
import { InputNumber as
|
|
5
|
-
const
|
|
6
|
-
const { getPrefixCls:
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as a } from "react";
|
|
3
|
+
import { a as e } from "../chunk/Cplu5dtQ.js";
|
|
4
|
+
import { InputNumber as i } from "../input/Input.js";
|
|
5
|
+
const x = ({ value: n, onChange: t }) => {
|
|
6
|
+
const { getPrefixCls: o } = a(e), r = o == null ? void 0 : o("color-picker");
|
|
7
|
+
return /* @__PURE__ */ p(
|
|
8
|
+
i,
|
|
9
9
|
{
|
|
10
10
|
className: `${r}-input-alpha`,
|
|
11
11
|
size: "mini",
|
|
12
12
|
min: 0,
|
|
13
13
|
max: 100,
|
|
14
|
-
value: Math.round(
|
|
14
|
+
value: Math.round(n * 100),
|
|
15
15
|
suffix: "%",
|
|
16
|
-
onChange: (
|
|
16
|
+
onChange: (m) => t(m / 100)
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
x as InputAlpha
|
|
22
22
|
};
|
package/color-picker/InputHex.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { jsxs as v, jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsxs as v, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { c as u } from "../chunk/9TSjT7x_.js";
|
|
3
3
|
import { useContext as I, useState as j, useEffect as D } from "react";
|
|
4
|
-
import { a as E } from "../chunk/
|
|
4
|
+
import { a as E } from "../chunk/Cplu5dtQ.js";
|
|
5
5
|
import f from "../input/Input.js";
|
|
6
6
|
import { InputAlpha as H } from "./InputAlpha.js";
|
|
7
|
-
const
|
|
7
|
+
const $ = ({
|
|
8
8
|
color: n,
|
|
9
|
-
alpha:
|
|
10
|
-
onHsvChange:
|
|
11
|
-
onAlphaChange:
|
|
12
|
-
disabledAlpha:
|
|
9
|
+
alpha: x,
|
|
10
|
+
onHsvChange: h,
|
|
11
|
+
onAlphaChange: l,
|
|
12
|
+
disabledAlpha: g
|
|
13
13
|
}) => {
|
|
14
|
-
const { getPrefixCls:
|
|
14
|
+
const { getPrefixCls: s } = I(E), a = s == null ? void 0 : s("color-picker"), [o, r] = j(n.hex);
|
|
15
15
|
D(() => {
|
|
16
|
-
n.hex !== o &&
|
|
16
|
+
n.hex !== o && r(n.hex);
|
|
17
17
|
}, [n]);
|
|
18
|
-
const
|
|
19
|
-
var
|
|
20
|
-
const t = ((
|
|
21
|
-
t !== o &&
|
|
18
|
+
const p = (e) => {
|
|
19
|
+
var c;
|
|
20
|
+
const t = ((c = e.match(/[a-fA-F0-9]*/g)) == null ? void 0 : c.join("")) ?? "";
|
|
21
|
+
t !== o && r(t.toUpperCase());
|
|
22
22
|
}, i = () => {
|
|
23
|
-
let e = new
|
|
24
|
-
e.ok || (e = new
|
|
23
|
+
let e = new u(o);
|
|
24
|
+
e.ok || (e = new u({
|
|
25
25
|
r: 255,
|
|
26
26
|
g: 0,
|
|
27
27
|
b: 0
|
|
28
28
|
}));
|
|
29
29
|
const t = e.toHsv_();
|
|
30
|
-
|
|
30
|
+
h(t);
|
|
31
31
|
}, C = (e) => {
|
|
32
32
|
let t = e.clipboardData.getData("Text");
|
|
33
|
-
t.startsWith("#") && (t = t.slice(1)),
|
|
33
|
+
t.startsWith("#") && (t = t.slice(1)), p(t), e.preventDefault();
|
|
34
34
|
};
|
|
35
|
-
return /* @__PURE__ */ v(f.Group, { className: `${
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ v(f.Group, { className: `${a}-input-group`, compact: !0, children: [
|
|
36
|
+
/* @__PURE__ */ m(
|
|
37
37
|
f,
|
|
38
38
|
{
|
|
39
|
-
className: `${
|
|
39
|
+
className: `${a}-input-hex`,
|
|
40
40
|
prefix: "#",
|
|
41
41
|
size: "mini",
|
|
42
42
|
maxLength: 6,
|
|
43
43
|
value: o,
|
|
44
|
-
onChange:
|
|
44
|
+
onChange: p,
|
|
45
45
|
onBlur: i,
|
|
46
46
|
onPressEnter: i,
|
|
47
47
|
onPaste: C
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
|
-
!
|
|
50
|
+
!g && /* @__PURE__ */ m(H, { value: x, onChange: l })
|
|
51
51
|
] });
|
|
52
52
|
};
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
$ as InputHex
|
|
55
55
|
};
|
package/color-picker/InputRgb.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { a as
|
|
5
|
-
import I, { InputNumber as
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as b } from "../chunk/9TSjT7x_.js";
|
|
3
|
+
import { useContext as x } from "react";
|
|
4
|
+
import { a as f } from "../chunk/Cplu5dtQ.js";
|
|
5
|
+
import I, { InputNumber as p } from "../input/Input.js";
|
|
6
6
|
import { InputAlpha as d } from "./InputAlpha.js";
|
|
7
7
|
const E = ({
|
|
8
8
|
color: s,
|
|
9
|
-
alpha:
|
|
10
|
-
onHsvChange:
|
|
11
|
-
onAlphaChange:
|
|
12
|
-
disabledAlpha:
|
|
9
|
+
alpha: u,
|
|
10
|
+
onHsvChange: a,
|
|
11
|
+
onAlphaChange: c,
|
|
12
|
+
disabledAlpha: g
|
|
13
13
|
}) => {
|
|
14
|
-
const { getPrefixCls:
|
|
15
|
-
const
|
|
14
|
+
const { getPrefixCls: t } = x(f), C = t == null ? void 0 : t("color-picker"), r = (n) => {
|
|
15
|
+
const h = new b({
|
|
16
16
|
r: n.r,
|
|
17
17
|
g: n.g,
|
|
18
18
|
b: n.b
|
|
19
19
|
}).toHsv_();
|
|
20
|
-
|
|
21
|
-
}, { r, g:
|
|
22
|
-
return /* @__PURE__ */
|
|
20
|
+
a(h);
|
|
21
|
+
}, { r: e, g: m, b: i } = s.rgb;
|
|
22
|
+
return /* @__PURE__ */ l(I.Group, { className: `${C}-input-group`, compact: !0, children: [
|
|
23
23
|
/* @__PURE__ */ o(
|
|
24
|
-
|
|
24
|
+
p,
|
|
25
25
|
{
|
|
26
26
|
size: "mini",
|
|
27
27
|
min: 0,
|
|
28
28
|
max: 255,
|
|
29
29
|
hideControl: !0,
|
|
30
|
-
value:
|
|
31
|
-
onChange: (n) =>
|
|
30
|
+
value: e,
|
|
31
|
+
onChange: (n) => r({ r: n, g: m, b: i })
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
34
|
/* @__PURE__ */ o(
|
|
35
|
-
|
|
35
|
+
p,
|
|
36
36
|
{
|
|
37
37
|
size: "mini",
|
|
38
38
|
min: 0,
|
|
39
39
|
max: 255,
|
|
40
40
|
hideControl: !0,
|
|
41
|
-
value:
|
|
42
|
-
onChange: (n) =>
|
|
41
|
+
value: m,
|
|
42
|
+
onChange: (n) => r({ r: e, g: n, b: i })
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
45
|
/* @__PURE__ */ o(
|
|
46
|
-
|
|
46
|
+
p,
|
|
47
47
|
{
|
|
48
48
|
size: "mini",
|
|
49
49
|
min: 0,
|
|
50
50
|
max: 255,
|
|
51
51
|
hideControl: !0,
|
|
52
52
|
value: i,
|
|
53
|
-
onChange: (n) =>
|
|
53
|
+
onChange: (n) => r({ r: e, g: m, b: n })
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
!
|
|
56
|
+
!g && /* @__PURE__ */ o(d, { value: u, onChange: c })
|
|
57
57
|
] });
|
|
58
58
|
};
|
|
59
59
|
export {
|
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/Cplu5dtQ.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/Cplu5dtQ.js";
|
|
5
|
+
import { Z as b } from "../chunk/w221i0nK.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/Cplu5dtQ.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/w221i0nK.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/Cplu5dtQ.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,14 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/icons/context";
|
|
3
|
-
import { C as
|
|
3
|
+
import { C as s, a as C, c as n, b as g } from "../chunk/Cplu5dtQ.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
8
|
import "../modal/config.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
s as ConfigConsumer,
|
|
11
|
+
C as ConfigContext,
|
|
12
|
+
n as ConfigProviderDefaultProps,
|
|
13
|
+
g as default
|
|
13
14
|
};
|
|
@@ -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/Cplu5dtQ.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/Cplu5dtQ.js";
|
|
2
|
+
import { C as f, a as i, c as s } from "../chunk/Cplu5dtQ.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/Cplu5dtQ.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
|
)
|