@unicom-cloud/ui 0.8.73 → 0.8.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Affix.js +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/{B0UZ1Ee2.js → 9we0Q8Kh.js} +3 -3
- package/chunk/{DJDOFlqC.js → BDZpJpz-.js} +2 -2
- package/chunk/BFmckYou.js +25 -0
- package/chunk/{Cj2SQJiO.js → BJ9_azwQ.js} +487 -487
- package/chunk/{7HDzVe32.js → Bd9zhOZS.js} +4 -4
- package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
- package/chunk/{uH6uxyao.js → BoUHPeG7.js} +2 -2
- package/chunk/{Bj4EV0eG.js → BpYX5PN4.js} +1 -1
- package/chunk/{oHDWCJnz.js → Bu8A2l60.js} +3 -3
- package/chunk/CUFsOxJ2.js +10 -0
- package/chunk/CWjvjpyc.js +873 -0
- package/chunk/{Byd0ztYY.js → Crs3isAx.js} +4 -4
- package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
- package/chunk/{Dg0M2OmF.js → D5UfU6-H.js} +5 -5
- package/chunk/{UDX9U6M7.js → DJ8rDYjb.js} +3 -3
- package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
- package/chunk/{D2LLXZQX.js → DdT3C0ih.js} +4 -4
- package/chunk/{DejjIa3N.js → Dn7KbmZ7.js} +35 -35
- package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
- package/chunk/{B7hulkj9.js → NmSLBKjp.js} +2 -2
- package/chunk/{CiY7w1ZO.js → _L2dKF58.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 +2 -2
- package/color-picker/InputRgb.js +2 -2
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +4 -4
- package/color-picker/colors.js +20 -9
- 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/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 +565 -575
- 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.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/utils/color.d.ts +1 -1
- 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/utils/PqbCSSTransition.js +1 -1
- package/utils/className.js +3 -3
- package/utils/color.js +2 -116
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +4 -4
- package/utils/fileToURL.js +1 -1
- package/utils/index.js +299 -309
- package/utils/reactTransitionGroup.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/tinycolor.js +12 -12
- 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/CCVU-Kst.js +0 -770
- package/chunk/CTxjmYmx.js +0 -19
- package/chunk/JPPo5nY_.js +0 -9
package/color-picker/colors.js
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
3
|
-
new o("#eee");
|
|
1
|
+
import { a as l, P as t } from "../chunk/CWjvjpyc.js";
|
|
2
|
+
new l("#eee");
|
|
4
3
|
const i = [
|
|
5
|
-
Object.entries(
|
|
6
|
-
Object.entries(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
Object.entries(t.colors).map(([o, e], r, a) => t.palette({ color: e, level: 4 })),
|
|
5
|
+
Object.entries(t.colors).map(([o, e], r, a) => e)
|
|
6
|
+
// Object.entries(uiColor.colors).map(([k, v], i, a) => {
|
|
7
|
+
// return uiColor.paletteDark({ color: v });
|
|
8
|
+
// }),
|
|
9
|
+
// Object.entries(uiColor.colors).map(([k, v], i, a) => {
|
|
10
|
+
// return uiColor.generate({
|
|
11
|
+
// color: v,
|
|
12
|
+
// });
|
|
13
|
+
// }),
|
|
14
|
+
// Object.entries(uiColor.colors).map(([k, v], i, a) => {
|
|
15
|
+
// return uiColor.generateDark({
|
|
16
|
+
// color: v,
|
|
17
|
+
// });
|
|
18
|
+
// }),
|
|
19
|
+
// new Array(13).fill('').map((v, i, a) => {
|
|
20
|
+
// return tinyColor.darken(i * 8).toHexString();
|
|
21
|
+
// }),
|
|
11
22
|
// '#00B42A',
|
|
12
23
|
// '#3C7EFF',
|
|
13
24
|
// '#FF7D00',
|
package/color-picker/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import { jsx as P, jsxs as K } from "react/jsx-runtime";
|
|
|
2
2
|
import te from "lodash/isFunction";
|
|
3
3
|
import ne from "lodash/isNil";
|
|
4
4
|
import ie, { useState as k, useRef as L, useMemo as q, useCallback as Q, useEffect as D, useContext as se } from "react";
|
|
5
|
-
import { a as ae } from "../chunk/
|
|
5
|
+
import { a as ae } from "../chunk/Crs3isAx.js";
|
|
6
6
|
import le from "../copy/index.js";
|
|
7
7
|
import { u as ce } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import de from "../trigger/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import { colors as
|
|
11
|
-
import { a as U } from "../chunk/
|
|
12
|
-
import { u as
|
|
9
|
+
import { p as ue } from "../chunk/CUFsOxJ2.js";
|
|
10
|
+
import { colors as fe } from "./colors.js";
|
|
11
|
+
import { a as U } from "../chunk/CWjvjpyc.js";
|
|
12
|
+
import { u as me } from "../chunk/oopARUrq.js";
|
|
13
13
|
import { u as W } from "../chunk/DeV0v__J.js";
|
|
14
14
|
import { ColorPickerMode as w } from "./interface.js";
|
|
15
15
|
import { getModeByValue as ge, isGradientMode as J, isSingleMode as pe } from "./Mode.js";
|
|
@@ -23,7 +23,7 @@ const Ve = (r) => {
|
|
|
23
23
|
format: C,
|
|
24
24
|
onChange: b,
|
|
25
25
|
disabledAlpha: u
|
|
26
|
-
} = r, E =
|
|
26
|
+
} = r, E = me(), [y, M] = W(!1, {
|
|
27
27
|
defaultValue: r.defaultPopupVisible,
|
|
28
28
|
value: r.popupVisible
|
|
29
29
|
}), [l, v] = k(
|
|
@@ -46,11 +46,11 @@ const Ve = (r) => {
|
|
|
46
46
|
(o) => o.id === s
|
|
47
47
|
);
|
|
48
48
|
return e !== -1 ? e : 0;
|
|
49
|
-
}, [t, s]),
|
|
50
|
-
h:
|
|
51
|
-
s:
|
|
52
|
-
v:
|
|
53
|
-
}), [a, I] = k(
|
|
49
|
+
}, [t, s]), f = Array.isArray(i) ? new U(i[c].color).toHsv_() : new U(i).toHsv_(), [m, H] = k({
|
|
50
|
+
h: f.h,
|
|
51
|
+
s: f.s,
|
|
52
|
+
v: f.v
|
|
53
|
+
}), [a, I] = k(f.a), g = q(() => X(m), [m]), V = Q(
|
|
54
54
|
(e, o, d, A) => C === "rgb" ? ve(e, o, d, A) : he(e, o, d, A),
|
|
55
55
|
[C]
|
|
56
56
|
), p = q(() => {
|
|
@@ -73,7 +73,7 @@ const Ve = (r) => {
|
|
|
73
73
|
(e) => {
|
|
74
74
|
var o;
|
|
75
75
|
if (e && i !== p) {
|
|
76
|
-
const { h: d, s: A, v: oe, a: re } =
|
|
76
|
+
const { h: d, s: A, v: oe, a: re } = f;
|
|
77
77
|
H({ h: d, s: A, v: oe }), I(re);
|
|
78
78
|
}
|
|
79
79
|
e !== y && ((o = r.onVisibleChange) == null || o.call(r, e), "popupVisible" in r || M(e));
|
|
@@ -85,13 +85,13 @@ const Ve = (r) => {
|
|
|
85
85
|
I(e);
|
|
86
86
|
};
|
|
87
87
|
return D(() => {
|
|
88
|
-
if (!J(l) || !t.length || be(t[c].color.hsv,
|
|
88
|
+
if (!J(l) || !t.length || be(t[c].color.hsv, m)) return;
|
|
89
89
|
const e = [...t];
|
|
90
90
|
e[c] = {
|
|
91
91
|
...e[c],
|
|
92
|
-
color: X(
|
|
92
|
+
color: X(m)
|
|
93
93
|
}, n(e);
|
|
94
|
-
}, [
|
|
94
|
+
}, [m]), D(() => {
|
|
95
95
|
if (!J(l) || !t.length || t[c].alpha === a) return;
|
|
96
96
|
const e = [...t];
|
|
97
97
|
e[c] = {
|
|
@@ -133,7 +133,7 @@ const Ve = (r) => {
|
|
|
133
133
|
};
|
|
134
134
|
}, Z = {
|
|
135
135
|
size: "default",
|
|
136
|
-
presetColors:
|
|
136
|
+
presetColors: fe
|
|
137
137
|
};
|
|
138
138
|
function Pe(r, N) {
|
|
139
139
|
const {
|
|
@@ -163,8 +163,8 @@ function Pe(r, N) {
|
|
|
163
163
|
value: n,
|
|
164
164
|
activeMode: R,
|
|
165
165
|
gradientColors: c,
|
|
166
|
-
activeColorId:
|
|
167
|
-
activeColorIdRef:
|
|
166
|
+
activeColorId: f,
|
|
167
|
+
activeColorIdRef: m,
|
|
168
168
|
popupVisible: H,
|
|
169
169
|
color: a,
|
|
170
170
|
alpha: I,
|
|
@@ -185,8 +185,8 @@ function Pe(r, N) {
|
|
|
185
185
|
mode: l,
|
|
186
186
|
activeMode: R,
|
|
187
187
|
gradientColors: c,
|
|
188
|
-
activeColorId:
|
|
189
|
-
activeColorIdRef:
|
|
188
|
+
activeColorId: f,
|
|
189
|
+
activeColorIdRef: m,
|
|
190
190
|
color: a,
|
|
191
191
|
alpha: I,
|
|
192
192
|
historyColors: _,
|
package/color-picker/utils.js
CHANGED
package/comment/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import g from "lodash/isPlainObject";
|
|
3
3
|
import N 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/Crs3isAx.js";
|
|
6
6
|
import { u as x } from "../chunk/BFTV6myl.js";
|
|
7
|
-
import {
|
|
7
|
+
import { p as d } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import { a as P } from "../chunk/ClqoGc3r.js";
|
|
9
9
|
const j = {
|
|
10
10
|
datetime: "left",
|
|
@@ -17,7 +17,7 @@ function b(f, p) {
|
|
|
17
17
|
f,
|
|
18
18
|
y,
|
|
19
19
|
s == null ? void 0 : s.Comment
|
|
20
|
-
), t = $("comment"), { actions:
|
|
20
|
+
), t = $("comment"), { actions: o, author: r, avatar: i, content: m, datetime: l } = e, c = {
|
|
21
21
|
...j,
|
|
22
22
|
...g(e.align) ? e.align : {
|
|
23
23
|
datetime: e.align,
|
|
@@ -49,12 +49,12 @@ function b(f, p) {
|
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
m && /* @__PURE__ */ a("div", { className: `${t}-content`, children: m }),
|
|
53
|
+
o && /* @__PURE__ */ a(
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
56
|
className: `${t}-actions ${t}-actions-align-${c.actions}`,
|
|
57
|
-
children:
|
|
57
|
+
children: o
|
|
58
58
|
}
|
|
59
59
|
)
|
|
60
60
|
] }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/icons/context";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/CWjvjpyc.js";
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../chunk/BFTV6myl.js";
|
|
7
|
-
import { C as f, a as n, e as g, b as l } from "../chunk/
|
|
7
|
+
import { C as f, a as n, e as g, b as l } from "../chunk/Crs3isAx.js";
|
|
8
8
|
import "../modal/config.js";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
10
|
export {
|
package/config-provider/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as r } from "../chunk/
|
|
2
|
-
import { C as s, a as f, e as t } from "../chunk/
|
|
1
|
+
import { b as r } from "../chunk/Crs3isAx.js";
|
|
2
|
+
import { C as s, a as f, e as t } from "../chunk/Crs3isAx.js";
|
|
3
3
|
export {
|
|
4
4
|
s as ConfigConsumer,
|
|
5
5
|
f as ConfigContext,
|
package/copy/index.js
CHANGED
|
@@ -2,27 +2,27 @@ import { jsx as r, 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
4
|
import { useContext as P, useState as w, useRef as E, useEffect as k } from "react";
|
|
5
|
-
import { a as v } from "../chunk/
|
|
5
|
+
import { a as v } from "../chunk/Crs3isAx.js";
|
|
6
6
|
import { u as I } from "../chunk/XTEsYGuF.js";
|
|
7
7
|
import N from "../tooltip/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { m as
|
|
11
|
-
function
|
|
8
|
+
import { p as $ } from "../chunk/CUFsOxJ2.js";
|
|
9
|
+
import { p as j } from "../chunk/D0Dlbc2g.js";
|
|
10
|
+
import { m as S } from "../chunk/B5RFT17G.js";
|
|
11
|
+
function U(t) {
|
|
12
12
|
var l, u;
|
|
13
|
-
const { children: c } = t,
|
|
13
|
+
const { children: c } = t, y = I(), x = P(v), { getPrefixCls: g, locale: o } = x, s = g("copy"), [e, m] = w(!1), n = E(-1), i = t.tooltips || [
|
|
14
14
|
(l = o == null ? void 0 : o.Typography) == null ? void 0 : l.copy,
|
|
15
15
|
(u = o == null ? void 0 : o.Typography) == null ? void 0 : u.copied
|
|
16
16
|
];
|
|
17
17
|
let a = null;
|
|
18
18
|
t.icon !== null && t.icon !== !1 && (a = e ? /* @__PURE__ */ r(h, {}) : t.icon || /* @__PURE__ */ r(b, {}));
|
|
19
19
|
function f(C) {
|
|
20
|
-
var
|
|
20
|
+
var d;
|
|
21
21
|
if (C.stopPropagation(), e)
|
|
22
22
|
return;
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const p = t.text !== void 0 ? t.text : S(c);
|
|
24
|
+
j(p), m(!0), (d = t.onCopy) == null || d.call(t, p, C), n.current = window.setTimeout(() => {
|
|
25
|
+
m(!1);
|
|
26
26
|
}, 3e3);
|
|
27
27
|
}
|
|
28
28
|
return k(() => () => {
|
|
@@ -36,16 +36,16 @@ function $(t) {
|
|
|
36
36
|
children: /* @__PURE__ */ T(
|
|
37
37
|
"span",
|
|
38
38
|
{
|
|
39
|
-
className:
|
|
40
|
-
`${
|
|
41
|
-
!!e && `${
|
|
39
|
+
className: $(
|
|
40
|
+
`${s}-copy`,
|
|
41
|
+
!!e && `${s}-copied`,
|
|
42
42
|
t.className
|
|
43
43
|
),
|
|
44
44
|
role: "button",
|
|
45
45
|
"aria-label": i[0],
|
|
46
46
|
tabIndex: 0,
|
|
47
47
|
onClick: f,
|
|
48
|
-
...
|
|
48
|
+
...y({
|
|
49
49
|
onPressEnter: f
|
|
50
50
|
}),
|
|
51
51
|
children: [
|
|
@@ -57,7 +57,7 @@ function $(t) {
|
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
U.displayName = "Copy";
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
U as default
|
|
63
63
|
};
|
package/date-picker/Picker.js
CHANGED
|
@@ -6,13 +6,13 @@ import Ie from "lodash/isArray";
|
|
|
6
6
|
import bo from "lodash/isPlainObject";
|
|
7
7
|
import ko from "lodash/isUndefined";
|
|
8
8
|
import jo, { forwardRef as To, useContext as Lo, useRef as ie, useImperativeHandle as No, useState as m, useEffect as Ho } from "react";
|
|
9
|
-
import { a as Mo } from "../chunk/
|
|
9
|
+
import { a as Mo } from "../chunk/Crs3isAx.js";
|
|
10
10
|
import { u as Io } from "../chunk/BFTV6myl.js";
|
|
11
11
|
import { u as Ee } from "../chunk/VSe_Wq1g.js";
|
|
12
12
|
import { u as Eo } from "../chunk/a3hR6zLw.js";
|
|
13
13
|
import Oo from "../picker/Input.js";
|
|
14
14
|
import zo from "../trigger/index.js";
|
|
15
|
-
import {
|
|
15
|
+
import { p as Fo } from "../chunk/CUFsOxJ2.js";
|
|
16
16
|
import { g as d, a as T, j as L, k as Ao, e as le, d as Oe, f as $o, m as ze } from "../chunk/tamGhTJp.js";
|
|
17
17
|
import { o as Ro } from "../chunk/BKKEev13.js";
|
|
18
18
|
import { a as Uo } from "../chunk/ClqoGc3r.js";
|
|
@@ -6,18 +6,18 @@ import "lodash/isArray";
|
|
|
6
6
|
import "lodash/isPlainObject";
|
|
7
7
|
import "lodash/isUndefined";
|
|
8
8
|
import "react";
|
|
9
|
-
import "../chunk/
|
|
9
|
+
import "../chunk/Crs3isAx.js";
|
|
10
10
|
import "../chunk/BFTV6myl.js";
|
|
11
11
|
import "../chunk/VSe_Wq1g.js";
|
|
12
12
|
import "../chunk/a3hR6zLw.js";
|
|
13
13
|
import "../picker/InputRange.js";
|
|
14
14
|
import "../trigger/index.js";
|
|
15
|
-
import "../chunk/
|
|
15
|
+
import "../chunk/CUFsOxJ2.js";
|
|
16
16
|
import "../chunk/tamGhTJp.js";
|
|
17
17
|
import "../chunk/ClqoGc3r.js";
|
|
18
18
|
import "./context.js";
|
|
19
19
|
import "../chunk/CC---6jO.js";
|
|
20
|
-
import { P as q } from "../chunk/
|
|
20
|
+
import { P as q } from "../chunk/BoUHPeG7.js";
|
|
21
21
|
import "./util.js";
|
|
22
22
|
export {
|
|
23
23
|
q as default
|
package/date-picker/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import k, { useRef as P, useImperativeHandle as d } from "react";
|
|
3
3
|
import p from "./Picker.js";
|
|
4
|
-
import { P as u, D as f, Q as l, W as y, Y as N, M as $ } from "../chunk/
|
|
4
|
+
import { P as u, D as f, Q as l, W as y, Y as N, M as $ } from "../chunk/BoUHPeG7.js";
|
|
5
5
|
function c(s, i) {
|
|
6
6
|
function o(n, m) {
|
|
7
7
|
const t = P();
|
package/descriptions/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import C from "lodash/isArray";
|
|
|
3
3
|
import V from "lodash/isNumber";
|
|
4
4
|
import q from "lodash/isPlainObject";
|
|
5
5
|
import { useContext as B, useState as G, useRef as J, useEffect as K, Fragment as x } from "react";
|
|
6
|
-
import { a as Q } from "../chunk/
|
|
6
|
+
import { a as Q } from "../chunk/Crs3isAx.js";
|
|
7
7
|
import { u as U } from "../chunk/BFTV6myl.js";
|
|
8
|
-
import {
|
|
8
|
+
import { p as W } from "../chunk/CUFsOxJ2.js";
|
|
9
9
|
import { responsiveObserve as P, responsiveArray as k } from "../utils/responsiveObserve.js";
|
|
10
10
|
const z = (f) => C(f) ? f.reduce((h, p) => h + (p.span || 1), 0) : 0, X = {
|
|
11
11
|
layout: "horizontal",
|
package/divider/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x, useContext as u } from "react";
|
|
3
|
-
import { a as $ } from "../chunk/
|
|
3
|
+
import { a as $ } from "../chunk/Crs3isAx.js";
|
|
4
4
|
import { u as h } from "../chunk/BFTV6myl.js";
|
|
5
|
-
import {
|
|
5
|
+
import { p as v } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
const C = {
|
|
7
7
|
type: "horizontal",
|
|
8
8
|
orientation: "center"
|
|
9
9
|
};
|
|
10
10
|
function N(a, n) {
|
|
11
|
-
const { getPrefixCls: l, componentConfig: r } = u($),
|
|
11
|
+
const { getPrefixCls: l, componentConfig: r } = u($), p = h(
|
|
12
12
|
a,
|
|
13
13
|
C,
|
|
14
14
|
r == null ? void 0 : r.Divider
|
|
15
|
-
), { children: e, style:
|
|
15
|
+
), { children: e, style: m, className: c, type: s, orientation: o, ...d } = p, t = l("divider"), f = v(
|
|
16
16
|
t,
|
|
17
17
|
`${t}-${s}`,
|
|
18
18
|
{
|
|
@@ -27,7 +27,7 @@ function N(a, n) {
|
|
|
27
27
|
role: "separator",
|
|
28
28
|
ref: n,
|
|
29
29
|
className: f,
|
|
30
|
-
style:
|
|
30
|
+
style: m,
|
|
31
31
|
...d,
|
|
32
32
|
children: e && s === "horizontal" ? /* @__PURE__ */ i("span", { className: `${t}-text ${t}-text-${o}`, children: e }) : null
|
|
33
33
|
}
|
package/draggable/Item.js
CHANGED
package/draggable/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import x, { useContext as I, useState as C } from "react";
|
|
3
|
-
import { a as D } from "../chunk/
|
|
4
|
-
import {
|
|
3
|
+
import { a as D } from "../chunk/Crs3isAx.js";
|
|
4
|
+
import { p as h } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
import v from "./Item.js";
|
|
6
|
-
function R(
|
|
6
|
+
function R(m) {
|
|
7
7
|
const { getPrefixCls: c } = I(D), r = c("draggable"), {
|
|
8
8
|
className: i,
|
|
9
|
-
children:
|
|
10
|
-
direction:
|
|
9
|
+
children: p,
|
|
10
|
+
direction: f = "vertical",
|
|
11
11
|
onIndexChange: t,
|
|
12
12
|
itemWrapperStyle: d
|
|
13
|
-
} =
|
|
14
|
-
return /* @__PURE__ */
|
|
13
|
+
} = m, [g, n] = C(null);
|
|
14
|
+
return /* @__PURE__ */ s("div", { className: h(r, i), children: x.Children.map(p, (u, e) => /* @__PURE__ */ s(
|
|
15
15
|
v,
|
|
16
16
|
{
|
|
17
17
|
style: d,
|
|
18
18
|
prefixCls: r,
|
|
19
|
-
direction:
|
|
19
|
+
direction: f,
|
|
20
20
|
onDragStart: () => n(e),
|
|
21
21
|
onDragEnd: () => n(null),
|
|
22
22
|
onDrop: (S, o) => {
|
package/drawer/Drawer.js
CHANGED
|
@@ -3,12 +3,12 @@ import Ie from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import Pe from "lodash/isFunction";
|
|
4
4
|
import $e, { useContext as Be, useRef as K, useState as d, useCallback as Ee, useMemo as Re, useImperativeHandle as Se, useEffect as U } from "react";
|
|
5
5
|
import _ from "../button/index.js";
|
|
6
|
-
import { a as Oe, I as De, b as A } from "../chunk/
|
|
6
|
+
import { a as Oe, I as De, b as A } from "../chunk/Crs3isAx.js";
|
|
7
7
|
import { u as Te } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { u as ze } from "../chunk/DU1RCDfh.js";
|
|
9
9
|
import Fe from "../portal/index.js";
|
|
10
|
-
import { P as J } from "../chunk/
|
|
11
|
-
import {
|
|
10
|
+
import { P as J } from "../chunk/BpYX5PN4.js";
|
|
11
|
+
import { p as g } from "../chunk/CUFsOxJ2.js";
|
|
12
12
|
import { isServerRendering as je, contains as He } from "../utils/dom.js";
|
|
13
13
|
import { o as Me } from "../chunk/BrOW642m.js";
|
|
14
14
|
import { o as Ze } from "../chunk/BKKEev13.js";
|
package/dropdown/Button.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiMore";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { DropdownButton as f } from "./index.js";
|
|
5
5
|
import "../button/index.js";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/Crs3isAx.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
8
|
import "../chunk/ClqoGc3r.js";
|
|
9
9
|
export {
|
package/dropdown/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s, jsxs as S } from "react/jsx-runtime";
|
|
2
2
|
import A from "lodash/get";
|
|
3
3
|
import l, { forwardRef as W, useContext as z, useRef as j } from "react";
|
|
4
|
-
import { a as F } from "../chunk/
|
|
4
|
+
import { a as F } from "../chunk/Crs3isAx.js";
|
|
5
5
|
import { u as G } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { u as X } from "../chunk/DeV0v__J.js";
|
|
7
7
|
import Y, { EventsByTriggerNeed as Z } from "../trigger/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { p as U } from "../chunk/CUFsOxJ2.js";
|
|
9
9
|
import { s as oo } from "../chunk/DAAff-FT.js";
|
|
10
10
|
import { o as eo } from "../chunk/BKKEev13.js";
|
|
11
11
|
import { a as L, p as to } from "../chunk/ClqoGc3r.js";
|
package/empty/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/icons/IconUiEmpty";
|
|
3
3
|
import "react";
|
|
4
|
-
import { E as e } from "../chunk/
|
|
4
|
+
import { E as e } from "../chunk/Crs3isAx.js";
|
|
5
5
|
import "../chunk/BFTV6myl.js";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/CUFsOxJ2.js";
|
|
7
7
|
export {
|
|
8
8
|
e as default
|
|
9
9
|
};
|
package/form/Control.js
CHANGED
|
@@ -14,7 +14,7 @@ import F from "lodash/isFunction";
|
|
|
14
14
|
import _ from "lodash/isNil";
|
|
15
15
|
import j from "lodash/set";
|
|
16
16
|
import I, { Component as z, isValidElement as A } from "react";
|
|
17
|
-
import {
|
|
17
|
+
import { p as G } from "../chunk/CUFsOxJ2.js";
|
|
18
18
|
import U from "../utils/warning.js";
|
|
19
19
|
import { FormItemContext as O } from "./context.js";
|
|
20
20
|
import { isFieldMatch as C, schemaValidate as k, isSyntheticEvent as q, ID_SUFFIX as B } from "./util.js";
|
package/form/Form.js
CHANGED
|
@@ -3,10 +3,10 @@ import { p as k } from "../chunk/Coz3rCng.js";
|
|
|
3
3
|
import v from "lodash/isPlainObject";
|
|
4
4
|
import O from "lodash/merge";
|
|
5
5
|
import { forwardRef as A, useContext as $, useRef as _, useEffect as H, useImperativeHandle as U } from "react";
|
|
6
|
-
import { a as W, b as X } from "../chunk/
|
|
6
|
+
import { a as W, b as X } from "../chunk/Crs3isAx.js";
|
|
7
7
|
import { u as B } from "../chunk/5_U1CBIu.js";
|
|
8
8
|
import { u as G } from "../chunk/BFTV6myl.js";
|
|
9
|
-
import {
|
|
9
|
+
import { p as J } from "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import { o as K } from "../chunk/BKKEev13.js";
|
|
11
11
|
import { FormProviderContext as L, FormContext as Q } from "./context.js";
|
|
12
12
|
import Y from "./useForm.js";
|
package/form/FormItem.js
CHANGED
|
@@ -4,11 +4,11 @@ import ge from "lodash/isArray";
|
|
|
4
4
|
import he from "lodash/isFunction";
|
|
5
5
|
import y from "lodash/isPlainObject";
|
|
6
6
|
import w from "lodash/isUndefined";
|
|
7
|
-
import { a as Ce } from "../chunk/
|
|
7
|
+
import { a as Ce } from "../chunk/Crs3isAx.js";
|
|
8
8
|
import Y from "../grid/index.js";
|
|
9
9
|
import { u as ye } from "../chunk/BFTV6myl.js";
|
|
10
|
-
import { P as ve } from "../chunk/
|
|
11
|
-
import {
|
|
10
|
+
import { P as ve } from "../chunk/BpYX5PN4.js";
|
|
11
|
+
import { p as v } from "../chunk/CUFsOxJ2.js";
|
|
12
12
|
import { o as we } from "../chunk/BKKEev13.js";
|
|
13
13
|
import I from "./Control.js";
|
|
14
14
|
import Fe from "./FormLabel.js";
|
package/form/FormLabel.js
CHANGED
|
@@ -4,38 +4,38 @@ import R from "lodash/isArray";
|
|
|
4
4
|
import I from "lodash/isPlainObject";
|
|
5
5
|
import U, { isValidElement as N } from "react";
|
|
6
6
|
import g from "../tooltip/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { p as x } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import y from "./IconSymbol.js";
|
|
9
9
|
import { ID_SUFFIX as C } from "./util.js";
|
|
10
10
|
const X = ({
|
|
11
11
|
htmlFor: s,
|
|
12
|
-
showColon:
|
|
12
|
+
showColon: n,
|
|
13
13
|
label: c,
|
|
14
|
-
requiredSymbol:
|
|
14
|
+
requiredSymbol: i,
|
|
15
15
|
required: F,
|
|
16
16
|
rules: l,
|
|
17
17
|
prefix: a,
|
|
18
18
|
tooltip: o
|
|
19
19
|
}) => {
|
|
20
|
-
const $ = R(l) && l.some((e) => e && e.required), p = I(
|
|
20
|
+
const $ = R(l) && l.some((e) => e && e.required), p = I(i) ? i.position : "end", f = (F || $) && !!i && /* @__PURE__ */ r("strong", { className: `${a}-form-item-symbol`, children: /* @__PURE__ */ r(y, {}) }), b = () => {
|
|
21
21
|
if (!o)
|
|
22
22
|
return null;
|
|
23
23
|
const e = `${a}-form-item-tooltip`;
|
|
24
|
-
let
|
|
24
|
+
let m = {}, d = /* @__PURE__ */ r(P, { className: e });
|
|
25
25
|
if (!I(o) || N(o))
|
|
26
|
-
|
|
26
|
+
m = {
|
|
27
27
|
content: o
|
|
28
28
|
};
|
|
29
29
|
else {
|
|
30
30
|
const { icon: t, ...h } = o;
|
|
31
|
-
|
|
31
|
+
m = h, t && (d = N(t) ? U.cloneElement(t, {
|
|
32
32
|
className: x(
|
|
33
33
|
e,
|
|
34
34
|
t.props.className
|
|
35
35
|
)
|
|
36
36
|
}) : t);
|
|
37
37
|
}
|
|
38
|
-
return /* @__PURE__ */ r(g, { ...
|
|
38
|
+
return /* @__PURE__ */ r(g, { ...m, children: d });
|
|
39
39
|
};
|
|
40
40
|
return c ? /* @__PURE__ */ u("label", { htmlFor: s && `${s}${C}`, children: [
|
|
41
41
|
p !== "end" && f,
|
|
@@ -46,7 +46,7 @@ const X = ({
|
|
|
46
46
|
" ",
|
|
47
47
|
f
|
|
48
48
|
] }),
|
|
49
|
-
|
|
49
|
+
n ? n === !0 ? ":" : n : ""
|
|
50
50
|
] }) : null;
|
|
51
51
|
};
|
|
52
52
|
export {
|
package/grid/Col.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx as H } from "react/jsx-runtime";
|
|
|
2
2
|
import T from "lodash/isNumber";
|
|
3
3
|
import q from "lodash/isPlainObject";
|
|
4
4
|
import { forwardRef as C, useContext as S, useMemo as D } from "react";
|
|
5
|
-
import { a as I } from "../chunk/
|
|
5
|
+
import { a as I } from "../chunk/Crs3isAx.js";
|
|
6
6
|
import { u as J } from "../chunk/BFTV6myl.js";
|
|
7
|
-
import {
|
|
7
|
+
import { p as K } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import { RowContext as N } from "./context.js";
|
|
9
9
|
const Q = {
|
|
10
10
|
span: 24
|
package/grid/Row.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as S, useContext as z, useState as G, useRef as H, useEffect as V } from "react";
|
|
3
|
-
import { a as B } from "../chunk/
|
|
3
|
+
import { a as B } from "../chunk/Crs3isAx.js";
|
|
4
4
|
import { u as E } from "../chunk/BFTV6myl.js";
|
|
5
|
-
import {
|
|
5
|
+
import { p as L } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
import { o as M } from "../chunk/BKKEev13.js";
|
|
7
7
|
import { responsiveObserve as x, responsiveArray as d } from "../utils/responsiveObserve.js";
|
|
8
8
|
import { RowContext as O } from "./context.js";
|
package/grid/grid-item.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx as Q } from "react/jsx-runtime";
|
|
|
2
2
|
import T from "lodash/isFunction";
|
|
3
3
|
import V from "lodash/isString";
|
|
4
4
|
import c, { forwardRef as k, useContext as l, useMemo as u, useEffect as q } from "react";
|
|
5
|
-
import { a as z } from "../chunk/
|
|
5
|
+
import { a as z } from "../chunk/Crs3isAx.js";
|
|
6
6
|
import { u as A } from "../chunk/BFTV6myl.js";
|
|
7
|
-
import {
|
|
7
|
+
import { p as H } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import { GridContext as J, GridDataCollectorContext as K } from "./context.js";
|
|
9
9
|
import { u as $ } from "../chunk/xAb6ZgqS.js";
|
|
10
10
|
import { resolveItemData as L } from "./util.js";
|