@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
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { a as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useVerificationCode as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as w, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import F, { forwardRef as j, useContext as z, useRef as D, createElement as E } from "react";
|
|
3
|
+
import { a as K } from "../chunk/C9oo3EJI.js";
|
|
4
|
+
import { u as L } from "../chunk/BFTV6myl.js";
|
|
5
|
+
import M from "../input/InputElement.js";
|
|
6
|
+
import g from "@unicom-cloud/utils/class-name";
|
|
7
|
+
import { useVerificationCode as _ } from "../hooks/useVerificationCode.js";
|
|
8
|
+
const q = {
|
|
9
9
|
length: 6
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
var d;
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
(d =
|
|
17
|
-
), { size: l, separator: r, status:
|
|
11
|
+
function y(h, A) {
|
|
12
|
+
var d, m, u;
|
|
13
|
+
const t = z(K), e = L(
|
|
14
|
+
h,
|
|
15
|
+
q,
|
|
16
|
+
(d = t.componentConfig) == null ? void 0 : d.VerificationCode
|
|
17
|
+
), { size: l, separator: r, status: f, length: v, masked: $, disabled: P } = e, c = D([]), { value: O, filledValue: V, getInputProps: k } = _({
|
|
18
18
|
defaultValue: e.defaultValue,
|
|
19
19
|
value: e.value,
|
|
20
|
-
length:
|
|
21
|
-
getInputRefList: () =>
|
|
20
|
+
length: v,
|
|
21
|
+
getInputRefList: () => c.current,
|
|
22
22
|
onChange: e.onChange,
|
|
23
23
|
onFinish: e.onFinish
|
|
24
|
-
}), a =
|
|
25
|
-
return /* @__PURE__ */
|
|
24
|
+
}), a = (m = t.getPrefixCls) == null ? void 0 : m.call(t, "verification-code"), n = (u = t.getPrefixCls) == null ? void 0 : u.call(t, "input");
|
|
25
|
+
return /* @__PURE__ */ w(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
|
-
className:
|
|
29
|
-
[`${a}-rtl`]:
|
|
28
|
+
className: g(`${a}`, e.className, {
|
|
29
|
+
[`${a}-rtl`]: t.rtl
|
|
30
30
|
}),
|
|
31
31
|
style: e.style,
|
|
32
|
-
children:
|
|
33
|
-
const { onChange:
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
32
|
+
children: V.map((I, s) => {
|
|
33
|
+
const { onChange: p, onClick: N, onPaste: R, onKeyDown: b, ...C } = k(s);
|
|
34
|
+
return /* @__PURE__ */ x(F.Fragment, { children: [
|
|
35
|
+
/* @__PURE__ */ E(
|
|
36
|
+
M,
|
|
37
37
|
{
|
|
38
38
|
disabled: e.disabled,
|
|
39
39
|
readOnly: e.readOnly,
|
|
40
|
-
className:
|
|
40
|
+
className: g(n, `${a}-input`, {
|
|
41
41
|
[`${n}-size-${l}`]: l,
|
|
42
|
-
[`${n}-${
|
|
43
|
-
[`${n}-disabled`]:
|
|
44
|
-
[`${n}-rtl`]:
|
|
42
|
+
[`${n}-${f}`]: f,
|
|
43
|
+
[`${n}-disabled`]: P,
|
|
44
|
+
[`${n}-rtl`]: t.rtl
|
|
45
45
|
}),
|
|
46
|
-
ref: (
|
|
47
|
-
|
|
46
|
+
ref: (o) => {
|
|
47
|
+
c.current[s] = o == null ? void 0 : o.dom;
|
|
48
48
|
},
|
|
49
|
-
...
|
|
50
|
-
key:
|
|
51
|
-
onClick: e.readOnly ? void 0 :
|
|
52
|
-
onPaste: e.readOnly ? void 0 :
|
|
53
|
-
onKeyDown: e.readOnly ? void 0 :
|
|
54
|
-
onChange: e.readOnly ? void 0 : (
|
|
49
|
+
...C,
|
|
50
|
+
key: C.key,
|
|
51
|
+
onClick: e.readOnly ? void 0 : N,
|
|
52
|
+
onPaste: e.readOnly ? void 0 : R,
|
|
53
|
+
onKeyDown: e.readOnly ? void 0 : b,
|
|
54
|
+
onChange: e.readOnly ? void 0 : (o) => {
|
|
55
55
|
if (e.validate) {
|
|
56
56
|
const i = e == null ? void 0 : e.validate({
|
|
57
|
-
inputValue:
|
|
57
|
+
inputValue: o,
|
|
58
58
|
index: s,
|
|
59
|
-
value:
|
|
59
|
+
value: O
|
|
60
60
|
});
|
|
61
|
-
i !== !1 &&
|
|
62
|
-
typeof i == "string" ? i :
|
|
61
|
+
i !== !1 && p(
|
|
62
|
+
typeof i == "string" ? i : o
|
|
63
63
|
);
|
|
64
64
|
} else
|
|
65
|
-
|
|
65
|
+
p(o);
|
|
66
66
|
},
|
|
67
|
-
type:
|
|
67
|
+
type: $ ? "password" : "text"
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
r == null ? void 0 : r({ index: s, character:
|
|
70
|
+
r == null ? void 0 : r({ index: s, character: I })
|
|
71
71
|
] }, s);
|
|
72
72
|
})
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
const
|
|
76
|
+
y.displayName = "VerificationCodeComponent";
|
|
77
|
+
const U = j(y);
|
|
78
78
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
y as VerificationCodeComponent,
|
|
80
|
+
U as default
|
|
81
81
|
};
|
package/version/index.js
CHANGED
package/watermark/Watermark.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as g, useContext as
|
|
3
|
-
import { a as
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, useContext as p, useRef as d, useCallback as C, useEffect as h } from "react";
|
|
3
|
+
import { a as k } from "../chunk/C9oo3EJI.js";
|
|
4
4
|
import { useWatermark as x } from "../hooks/useWatermark.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
5
|
+
import { u as w } from "../chunk/BFTV6myl.js";
|
|
6
|
+
import y from "@unicom-cloud/utils/class-name";
|
|
7
|
+
const N = {}, O = [
|
|
8
8
|
"zIndex",
|
|
9
9
|
"width",
|
|
10
10
|
"height",
|
|
@@ -16,21 +16,21 @@ const y = {}, N = [
|
|
|
16
16
|
"offset",
|
|
17
17
|
"getContainer"
|
|
18
18
|
];
|
|
19
|
-
function
|
|
20
|
-
var f;
|
|
21
|
-
const
|
|
19
|
+
function S(c, W) {
|
|
20
|
+
var f, m;
|
|
21
|
+
const e = p(k), t = w(
|
|
22
22
|
c,
|
|
23
|
-
|
|
24
|
-
(f =
|
|
25
|
-
), n =
|
|
26
|
-
var
|
|
27
|
-
return n.current || ((
|
|
28
|
-
}, [n.current, t.getContainer]), s =
|
|
23
|
+
N,
|
|
24
|
+
(f = e.componentConfig) == null ? void 0 : f.Watermark
|
|
25
|
+
), n = d(null), o = C(() => {
|
|
26
|
+
var r;
|
|
27
|
+
return n.current || ((r = t.getContainer) == null ? void 0 : r.call(t));
|
|
28
|
+
}, [n.current, t.getContainer]), s = O.reduce((r, a) => (a in t && (r[a] = t[a]), r), {}), { setWatermark: l } = x({
|
|
29
29
|
...s,
|
|
30
30
|
getContainer: o
|
|
31
31
|
});
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
h(() => {
|
|
33
|
+
l({
|
|
34
34
|
...s,
|
|
35
35
|
getContainer: o
|
|
36
36
|
});
|
|
@@ -46,12 +46,12 @@ function O(c, S) {
|
|
|
46
46
|
JSON.stringify(t.offset),
|
|
47
47
|
o
|
|
48
48
|
]);
|
|
49
|
-
const i =
|
|
50
|
-
return t.children ? /* @__PURE__ */
|
|
49
|
+
const i = (m = e.getPrefixCls) == null ? void 0 : m.call(e, "watermark");
|
|
50
|
+
return t.children ? /* @__PURE__ */ u(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
|
-
className:
|
|
54
|
-
[`${i}-rtl`]:
|
|
53
|
+
className: y(`${i}`, t.className, {
|
|
54
|
+
[`${i}-rtl`]: e.rtl
|
|
55
55
|
}),
|
|
56
56
|
style: t.style,
|
|
57
57
|
ref: n,
|
|
@@ -59,8 +59,8 @@ function O(c, S) {
|
|
|
59
59
|
}
|
|
60
60
|
) : null;
|
|
61
61
|
}
|
|
62
|
-
const
|
|
62
|
+
const b = g(S);
|
|
63
63
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
S as WatermarkComponent,
|
|
65
|
+
b as default
|
|
66
66
|
};
|