@unicom-cloud/ui 0.8.80 → 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 +1 -1
- 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/Spin.js +1 -1
- package/Statistic.js +1 -1
- 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/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +31 -31
- package/avatar/Group.js +25 -25
- package/back-top/index.js +24 -24
- 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/{D73Vr7fa.js → w221i0nK.js} +2871 -2870
- 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 +404 -402
- 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/spin/DotLoading.js +10 -10
- package/spin/index.js +44 -44
- package/statistic/Countdown.js +34 -34
- package/statistic/index.js +61 -61
- package/steps/index.js +55 -55
- package/style.css +1 -1
- package/switch/index.js +54 -54
- package/table/Table.js +2 -2
- 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/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 +6 -6
- 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 +1 -1
- package/utils/names.js +1 -1
- package/utils/setPrimaryColor.js +18 -13
- 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
|
@@ -2,49 +2,49 @@ import { jsxs as w, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import U from "@unicom-cloud/icons/IconUiCaretLeft";
|
|
3
3
|
import L from "@unicom-cloud/icons/IconUiCaretRight";
|
|
4
4
|
import V from "lodash/isFunction";
|
|
5
|
-
import M, { useContext as
|
|
6
|
-
import { a as T, I as S } from "./
|
|
5
|
+
import M, { useContext as O, useRef as A, createContext as B } from "react";
|
|
6
|
+
import { a as T, I as S } from "./Cplu5dtQ.js";
|
|
7
7
|
import { u as q } from "./BFTV6myl.js";
|
|
8
8
|
import { u as D } from "./CXPOj2uy.js";
|
|
9
|
-
import
|
|
9
|
+
import p from "@unicom-cloud/utils/class-name";
|
|
10
10
|
import { o as G } from "./BKKEev13.js";
|
|
11
11
|
import { u as J } from "./BJ9_azwQ.js";
|
|
12
12
|
import { u as Q } from "./BYdIoY50.js";
|
|
13
13
|
import { off as W, on as X } from "../utils/dom.js";
|
|
14
|
-
function Y(
|
|
15
|
-
var
|
|
16
|
-
const { getPrefixCls:
|
|
14
|
+
function Y(f, g) {
|
|
15
|
+
var I;
|
|
16
|
+
const { getPrefixCls: a } = O(T), n = O(j), C = Q(), {
|
|
17
17
|
children: s,
|
|
18
|
-
name:
|
|
18
|
+
name: c,
|
|
19
19
|
header: $,
|
|
20
20
|
className: H,
|
|
21
21
|
style: N,
|
|
22
22
|
contentStyle: E,
|
|
23
23
|
extra: x,
|
|
24
|
-
disabled:
|
|
24
|
+
disabled: l,
|
|
25
25
|
destroyOnHide: y,
|
|
26
26
|
expandIcon: v,
|
|
27
27
|
showExpandIcon: b = !0,
|
|
28
|
-
...
|
|
29
|
-
} =
|
|
30
|
-
var
|
|
31
|
-
if (
|
|
28
|
+
...R
|
|
29
|
+
} = f, i = A(), m = A(), t = a == null ? void 0 : a("collapse-item"), d = ((I = n.activeKeys) == null ? void 0 : I.indexOf(c)) > -1, u = b ? "expandIcon" in f ? v : n.expandIcon : null, h = (e, o) => {
|
|
30
|
+
var P;
|
|
31
|
+
if (l)
|
|
32
32
|
return;
|
|
33
|
-
const { triggerRegion:
|
|
34
|
-
(o === (
|
|
35
|
-
|
|
33
|
+
const { triggerRegion: K } = n;
|
|
34
|
+
(o === (K === "icon" ? 0 : K === "header" ? 1 : 2) || // When triggerRegion is set to header, clicking icon should trigger onChange as well
|
|
35
|
+
K === "header" && [0, 1].includes(o)) && ((P = n.onToggle) == null || P.call(n, c, e));
|
|
36
36
|
};
|
|
37
37
|
return /* @__PURE__ */ w(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
ref:
|
|
41
|
-
...
|
|
42
|
-
className:
|
|
40
|
+
ref: g,
|
|
41
|
+
...R,
|
|
42
|
+
className: p(
|
|
43
43
|
t,
|
|
44
44
|
{
|
|
45
|
-
[`${t}-active`]:
|
|
45
|
+
[`${t}-active`]: d,
|
|
46
46
|
[`${t}-no-icon`]: !u,
|
|
47
|
-
[`${t}-disabled`]:
|
|
47
|
+
[`${t}-disabled`]: l
|
|
48
48
|
},
|
|
49
49
|
H
|
|
50
50
|
),
|
|
@@ -54,21 +54,21 @@ function Y(d, p) {
|
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
56
|
role: "button",
|
|
57
|
-
"aria-disabled":
|
|
58
|
-
"aria-expanded":
|
|
57
|
+
"aria-disabled": l,
|
|
58
|
+
"aria-expanded": d,
|
|
59
59
|
"data-active-region": n.triggerRegion,
|
|
60
|
-
tabIndex:
|
|
61
|
-
className:
|
|
60
|
+
tabIndex: l ? -1 : 0,
|
|
61
|
+
className: p(
|
|
62
62
|
`${t}-header`,
|
|
63
63
|
`${t}-header-${n.expandIconPosition}`,
|
|
64
64
|
{
|
|
65
|
-
[`${t}-header-disabled`]:
|
|
65
|
+
[`${t}-header-disabled`]: l
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
|
-
onClick: (e) =>
|
|
69
|
-
...
|
|
68
|
+
onClick: (e) => h(e, 2),
|
|
69
|
+
...C({
|
|
70
70
|
onPressEnter: (e) => {
|
|
71
|
-
!
|
|
71
|
+
!l && n.onToggle(c, e);
|
|
72
72
|
}
|
|
73
73
|
}),
|
|
74
74
|
children: [
|
|
@@ -76,17 +76,17 @@ function Y(d, p) {
|
|
|
76
76
|
S,
|
|
77
77
|
{
|
|
78
78
|
prefix: t,
|
|
79
|
-
disabled:
|
|
80
|
-
className:
|
|
79
|
+
disabled: l,
|
|
80
|
+
className: p({
|
|
81
81
|
[`${t}-icon-hover-right`]: n.expandIconPosition === "right",
|
|
82
82
|
[`${t}-header-icon-right`]: n.expandIconPosition === "right"
|
|
83
83
|
}),
|
|
84
|
-
onClick: (e) =>
|
|
84
|
+
onClick: (e) => h(e, 0),
|
|
85
85
|
children: /* @__PURE__ */ r(
|
|
86
86
|
"span",
|
|
87
87
|
{
|
|
88
|
-
className:
|
|
89
|
-
[`${t}-header-icon-down`]:
|
|
88
|
+
className: p(`${t}-header-icon`, {
|
|
89
|
+
[`${t}-header-icon-down`]: d
|
|
90
90
|
}),
|
|
91
91
|
children: u
|
|
92
92
|
}
|
|
@@ -97,7 +97,7 @@ function Y(d, p) {
|
|
|
97
97
|
"div",
|
|
98
98
|
{
|
|
99
99
|
className: `${t}-header-title`,
|
|
100
|
-
onClick: (e) =>
|
|
100
|
+
onClick: (e) => h(e, 1),
|
|
101
101
|
children: $
|
|
102
102
|
}
|
|
103
103
|
),
|
|
@@ -118,18 +118,18 @@ function Y(d, p) {
|
|
|
118
118
|
J,
|
|
119
119
|
{
|
|
120
120
|
nodeRef: i,
|
|
121
|
-
in:
|
|
121
|
+
in: d,
|
|
122
122
|
addEndListener: (e) => {
|
|
123
123
|
W(i.current, "transitionend", e), X(i.current, "transitionend", e);
|
|
124
124
|
},
|
|
125
|
-
mountOnEnter: "destroyOnHide" in
|
|
126
|
-
unmountOnExit: "destroyOnHide" in
|
|
125
|
+
mountOnEnter: "destroyOnHide" in f ? y : n.destroyOnHide || n.lazyload,
|
|
126
|
+
unmountOnExit: "destroyOnHide" in f ? y : n.destroyOnHide,
|
|
127
127
|
onEnter: () => {
|
|
128
128
|
const e = i.current;
|
|
129
129
|
e && (e.style.height = "0", e.style.display = "block");
|
|
130
130
|
},
|
|
131
131
|
onEntering: () => {
|
|
132
|
-
const e = i.current, o =
|
|
132
|
+
const e = i.current, o = m.current;
|
|
133
133
|
e && o && (e.style.height = `${Math.max(e.scrollHeight, o.scrollHeight)}px`);
|
|
134
134
|
},
|
|
135
135
|
onEntered: () => {
|
|
@@ -137,7 +137,7 @@ function Y(d, p) {
|
|
|
137
137
|
e && (e.style.height = "auto");
|
|
138
138
|
},
|
|
139
139
|
onExit: () => {
|
|
140
|
-
const e = i.current, o =
|
|
140
|
+
const e = i.current, o = m.current;
|
|
141
141
|
e && o && (e.offsetHeight, o.offsetHeight, e.style.display = "block", e.style.height = `${Math.max(e.offsetHeight, o.offsetHeight)}px`, e.offsetHeight, o.offsetHeight);
|
|
142
142
|
},
|
|
143
143
|
onExiting: () => {
|
|
@@ -153,13 +153,13 @@ function Y(d, p) {
|
|
|
153
153
|
{
|
|
154
154
|
ref: i,
|
|
155
155
|
role: "region",
|
|
156
|
-
className:
|
|
157
|
-
[`${t}-content-expanded`]:
|
|
156
|
+
className: p(`${t}-content`, {
|
|
157
|
+
[`${t}-content-expanded`]: d
|
|
158
158
|
}),
|
|
159
159
|
children: /* @__PURE__ */ r(
|
|
160
160
|
"div",
|
|
161
161
|
{
|
|
162
|
-
ref:
|
|
162
|
+
ref: m,
|
|
163
163
|
style: E,
|
|
164
164
|
className: `${t}-content-box`,
|
|
165
165
|
children: s
|
|
@@ -177,9 +177,9 @@ const z = M.forwardRef(
|
|
|
177
177
|
Y
|
|
178
178
|
);
|
|
179
179
|
z.displayName = "CollapseItem";
|
|
180
|
-
const k = (
|
|
181
|
-
const
|
|
182
|
-
return
|
|
180
|
+
const k = (f, g) => {
|
|
181
|
+
const a = [].concat(f);
|
|
182
|
+
return g ? a.slice(0, 1) : a;
|
|
183
183
|
}, Z = {
|
|
184
184
|
bordered: !0,
|
|
185
185
|
lazyload: !0,
|
|
@@ -191,12 +191,12 @@ const k = (d, p) => {
|
|
|
191
191
|
onToggle: () => {
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
|
-
function _(
|
|
195
|
-
const { getPrefixCls:
|
|
196
|
-
|
|
194
|
+
function _(f, g) {
|
|
195
|
+
const { getPrefixCls: a, componentConfig: n, rtl: C } = O(T), s = q(
|
|
196
|
+
f,
|
|
197
197
|
Z,
|
|
198
198
|
n == null ? void 0 : n.Collapse
|
|
199
|
-
), [
|
|
199
|
+
), [c, $] = D([], {
|
|
200
200
|
defaultValue: "defaultActiveKey" in s ? k(s.defaultActiveKey, s.accordion) : void 0,
|
|
201
201
|
value: "activeKey" in s ? k(s.activeKey, s.accordion) : void 0
|
|
202
202
|
}), {
|
|
@@ -204,26 +204,26 @@ function _(d, p) {
|
|
|
204
204
|
className: N,
|
|
205
205
|
style: E,
|
|
206
206
|
bordered: x,
|
|
207
|
-
lazyload:
|
|
207
|
+
lazyload: l,
|
|
208
208
|
expandIcon: y,
|
|
209
209
|
expandIconPosition: v,
|
|
210
210
|
destroyOnHide: b,
|
|
211
|
-
accordion:
|
|
211
|
+
accordion: R,
|
|
212
212
|
triggerRegion: i,
|
|
213
|
-
onChange:
|
|
213
|
+
onChange: m,
|
|
214
214
|
...t
|
|
215
|
-
} = s,
|
|
216
|
-
let e = [...
|
|
217
|
-
const o =
|
|
218
|
-
o > -1 ? e.splice(o, 1) :
|
|
215
|
+
} = s, d = a == null ? void 0 : a("collapse"), u = (h, I) => {
|
|
216
|
+
let e = [...c || []];
|
|
217
|
+
const o = c == null ? void 0 : c.indexOf(h);
|
|
218
|
+
o > -1 ? e.splice(o, 1) : R ? e = [h] : e.push(h), "activeKey" in s || $(e), V(m) && m(h, e, I);
|
|
219
219
|
};
|
|
220
220
|
return /* @__PURE__ */ r(
|
|
221
221
|
j.Provider,
|
|
222
222
|
{
|
|
223
223
|
value: {
|
|
224
|
-
activeKeys:
|
|
224
|
+
activeKeys: c,
|
|
225
225
|
triggerRegion: i,
|
|
226
|
-
lazyload:
|
|
226
|
+
lazyload: l,
|
|
227
227
|
destroyOnHide: b,
|
|
228
228
|
expandIconPosition: v,
|
|
229
229
|
onToggle: u,
|
|
@@ -232,12 +232,12 @@ function _(d, p) {
|
|
|
232
232
|
children: /* @__PURE__ */ r(
|
|
233
233
|
"div",
|
|
234
234
|
{
|
|
235
|
-
ref:
|
|
235
|
+
ref: g,
|
|
236
236
|
...G(t, ["activeKey", "defaultActiveKey"]),
|
|
237
|
-
className:
|
|
238
|
-
|
|
239
|
-
`${
|
|
240
|
-
{ [`${
|
|
237
|
+
className: p(
|
|
238
|
+
d,
|
|
239
|
+
`${d}-${x ? "border" : "borderless"}`,
|
|
240
|
+
{ [`${d}-rtl`]: C },
|
|
241
241
|
N
|
|
242
242
|
),
|
|
243
243
|
style: E,
|