@unicom-cloud/ui 0.8.76 → 0.8.77
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 +3 -5
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +6 -2
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -4
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -3
- package/Copy.js +1 -1
- package/DatePicker.js +1 -1
- 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 +5 -6
- package/Mentions.js +3 -4
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +5 -4
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +5 -6
- 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 +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +15 -16
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +2 -2
- package/Transfer.js +3 -4
- package/Tree.js +2 -3
- package/TreeSelect.js +3 -3
- package/Trigger.js +1 -1
- package/Typography.js +3 -3
- package/affix/index.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/auto-complete/index.js +13 -147
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +12 -318
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +4 -4
- package/cascader/index.js +1 -1
- package/cascader/util.js +8 -8
- package/checkbox/Checkbox.js +7 -4
- package/checkbox/Group.js +5 -5
- package/checkbox/GroupBlock.js +8 -0
- package/checkbox/index.js +7 -2
- package/chunk/{CqtaeJXT.js → 9TSjT7x_.js} +4 -4
- package/chunk/{DezXC21w.js → BC5fEyWK.js} +2 -1
- package/chunk/{ByRETFRI.js → BPQXH_5i.js} +32 -31
- package/chunk/{BPD5iNdA.js → CB4jGw4K.js} +22 -18
- package/chunk/{lf-xRLXx.js → CBgu99gQ.js} +1 -1
- package/chunk/CNcLypMY.js +723 -0
- package/chunk/{D9JpbqFT.js → C_4I3haT.js} +1 -1
- package/chunk/{DM_DBvmG.js → CjqvxJml.js} +2 -2
- package/chunk/Cwm8LL5p.js +7818 -0
- package/chunk/{BGmWsXl0.js → tpmioyz1.js} +1 -1
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- 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 +15 -266
- package/color-picker/colors.js +1 -1
- package/color-picker/index.js +13 -268
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +5 -8
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +4 -5
- package/copy/index.js +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/PickerRange.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +30 -21
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/form/Form.js +10 -10
- package/form/FormItem.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +1 -1
- package/grid/grid-item.js +1 -1
- package/grid/grid.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +399 -411
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- 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 +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +17 -267
- package/mentions/index.js +11 -144
- 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 +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +5 -45
- package/pagination/Pagination.js +11 -243
- package/pagination/index.js +2 -2
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/Group.js +5 -5
- package/radio/GroupBlock.js +9 -0
- package/radio/Radio.js +6 -5
- package/radio/index.js +4 -3
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/select/Option.js +6 -93
- package/select/Select.js +23 -546
- package/select/index.js +3 -3
- package/select/util.js +18 -139
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/statistic/Countdown.js +1 -1
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +2 -3
- package/table/index.js +15 -109
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +2 -2
- package/transfer/Item.js +9 -104
- package/transfer/List.js +13 -184
- package/transfer/index.js +13 -180
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -4
- package/tree/NodeList.js +6 -80
- package/tree/Tree.js +17 -578
- package/tree/index.js +2 -3
- package/tree-select/List.js +6 -122
- package/tree-select/Select.js +22 -392
- package/tree-select/index.js +3 -3
- package/trigger/index.js +1 -1
- package/types/checkbox/Checkbox.d.ts +5 -2
- package/types/checkbox/GroupBlock.d.ts +7 -0
- package/types/checkbox/index.d.ts +2 -1
- package/types/config-provider/ConfigProvider.d.ts +0 -27
- package/types/config-provider/interface.d.ts +3 -1
- package/types/index.d.ts +2 -2
- package/types/menu/context.d.ts +1 -1
- package/types/radio/GroupBlock.d.ts +7 -0
- package/types/radio/Radio.d.ts +5 -3
- package/types/utils/index.d.ts +1 -0
- package/types/utils/setPrimaryColor.d.ts +2 -0
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +8 -22
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +10 -277
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +43 -44
- package/utils/color.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +155 -153
- package/utils/setDarkTheme.js +21 -20
- package/utils/setPrimaryColor.js +26 -0
- package/utils/tinycolor.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/CQzKdjhX.js +0 -714
- package/chunk/CzaoCNQH.js +0 -1020
- package/chunk/D0qXkqyq.js +0 -1820
- package/chunk/DQrLGkIG.js +0 -209
- package/chunk/J07pQqQ7.js +0 -310
- package/chunk/OPbfCome.js +0 -170
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RadioGroupContextProps, RadioGroupProps } from './interface';
|
|
2
|
+
declare function RadioGroupBlock(baseProps: any): import("react/jsx-dev-runtime").JSX.Element;
|
|
3
|
+
declare namespace RadioGroupBlock {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default RadioGroupBlock;
|
|
7
|
+
export type { RadioGroupContextProps, RadioGroupProps };
|
package/types/radio/Radio.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import RadioGroup, { RadioGroupContext } from './Group';
|
|
3
|
+
import RadioGroupBlock from './GroupBlock';
|
|
3
4
|
import type { RadioProps } from './interface';
|
|
4
5
|
declare function Radio(baseProps: RadioProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
5
6
|
declare namespace Radio {
|
|
6
7
|
var __PQB_RADIO: boolean;
|
|
7
8
|
var displayName: string;
|
|
8
|
-
var Group: typeof
|
|
9
|
+
var Group: typeof RadioGroup;
|
|
10
|
+
var GroupBlock: typeof RadioGroupBlock;
|
|
9
11
|
var GroupContext: React.Context<import("./interface").RadioGroupContextProps>;
|
|
10
12
|
}
|
|
11
|
-
export {
|
|
13
|
+
export { RadioGroup, RadioGroupBlock, RadioGroupContext };
|
|
12
14
|
export default Radio;
|
|
13
15
|
export type { RadioProps };
|
package/types/utils/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './saveAs';
|
|
|
30
30
|
export * from './screenfull';
|
|
31
31
|
export * from './scrollIntoView';
|
|
32
32
|
export * from './setDarkTheme';
|
|
33
|
+
export * from './setPrimaryColor';
|
|
33
34
|
export * from './style';
|
|
34
35
|
export * from './throttleByRaf';
|
|
35
36
|
export * from './tinycolor';
|
package/typography/Base.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as ie, Fragment as re } from "react/jsx-runtime";
|
|
2
2
|
import le from "lodash/merge";
|
|
3
3
|
import R, { forwardRef as ce, useContext as ae, useRef as W, useState as q, useEffect as pe, useImperativeHandle as me } from "react";
|
|
4
|
-
import { a as de } from "../chunk/
|
|
4
|
+
import { a as de } from "../chunk/CNcLypMY.js";
|
|
5
5
|
import { u as fe } from "../chunk/DeV0v__J.js";
|
|
6
6
|
import { u as ue } from "../chunk/a3hR6zLw.js";
|
|
7
7
|
import he from "../popover/index.js";
|
package/typography/Ellipsis.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/CNcLypMY.js";
|
|
4
4
|
import "../chunk/BFTV6myl.js";
|
|
5
5
|
import "../chunk/DeV0v__J.js";
|
|
6
6
|
import "lodash/isEqualWith";
|
|
@@ -20,7 +20,7 @@ import "lodash/snakeCase.js";
|
|
|
20
20
|
import "lodash/startCase.js";
|
|
21
21
|
import "lodash/upperFirst.js";
|
|
22
22
|
import "../chunk/CUFsOxJ2.js";
|
|
23
|
-
import "../chunk/
|
|
23
|
+
import "../chunk/9TSjT7x_.js";
|
|
24
24
|
import "../chunk/C0pRaDCf.js";
|
|
25
25
|
import "lodash/isString.js";
|
|
26
26
|
import "../chunk/tamGhTJp.js";
|
|
@@ -51,18 +51,15 @@ import "../chunk/CplLA01W.js";
|
|
|
51
51
|
import "../affix/index.js";
|
|
52
52
|
import "../alert/index.js";
|
|
53
53
|
import "../anchor/Anchor.js";
|
|
54
|
-
import "../
|
|
54
|
+
import { E as tr } from "../chunk/Cwm8LL5p.js";
|
|
55
55
|
import "../avatar/index.js";
|
|
56
56
|
import "../back-top/index.js";
|
|
57
57
|
import "../badge/index.js";
|
|
58
58
|
import "../breadcrumb/index.js";
|
|
59
59
|
import "../button/index.js";
|
|
60
|
-
import "../calendar/index.js";
|
|
61
60
|
import "../card/index.js";
|
|
62
61
|
import "../carousel/index.js";
|
|
63
|
-
import "../chunk/
|
|
64
|
-
import "../chunk/DQrLGkIG.js";
|
|
65
|
-
import "../chunk/BGmWsXl0.js";
|
|
62
|
+
import "../chunk/tpmioyz1.js";
|
|
66
63
|
import "../comment/index.js";
|
|
67
64
|
import "../copy/index.js";
|
|
68
65
|
import "../date-picker/index.js";
|
|
@@ -78,23 +75,17 @@ import "../input/Input.js";
|
|
|
78
75
|
import "../input-tag/InputTag.js";
|
|
79
76
|
import "../layout/index.js";
|
|
80
77
|
import "../link/index.js";
|
|
81
|
-
import "../
|
|
82
|
-
import "../
|
|
83
|
-
import "../chunk/lf-xRLXx.js";
|
|
84
|
-
import "../chunk/ByRETFRI.js";
|
|
78
|
+
import "../chunk/CBgu99gQ.js";
|
|
79
|
+
import "../chunk/BPQXH_5i.js";
|
|
85
80
|
import "../page-header/index.js";
|
|
86
|
-
import "../pagination/Pagination.js";
|
|
87
81
|
import "../popconfirm/index.js";
|
|
88
82
|
import "../popover/index.js";
|
|
89
83
|
import "../portal/index.js";
|
|
90
84
|
import "../progress/index.js";
|
|
91
|
-
import "../color-picker/index.js";
|
|
92
85
|
import "../loading/index.js";
|
|
93
|
-
import "../chunk/OPbfCome.js";
|
|
94
86
|
import "../rate/index.js";
|
|
95
87
|
import "../resize-box/index.js";
|
|
96
88
|
import "../result/index.js";
|
|
97
|
-
import "../select/Select.js";
|
|
98
89
|
import "../skeleton/index.js";
|
|
99
90
|
import "../slider/index.js";
|
|
100
91
|
import "../space/index.js";
|
|
@@ -104,22 +95,17 @@ import "../statistic/index.js";
|
|
|
104
95
|
import "../steps/index.js";
|
|
105
96
|
import "../suspense-fallback-test/index.js";
|
|
106
97
|
import "../switch/index.js";
|
|
107
|
-
import "../
|
|
108
|
-
import "../chunk/DM_DBvmG.js";
|
|
98
|
+
import "../chunk/CjqvxJml.js";
|
|
109
99
|
import "../tag/index.js";
|
|
110
100
|
import "../time-picker/index.js";
|
|
111
101
|
import "../timeline/Timeline.js";
|
|
112
102
|
import "../tooltip/index.js";
|
|
113
|
-
import "../transfer/index.js";
|
|
114
|
-
import "../tree/Tree.js";
|
|
115
|
-
import "../tree-select/Select.js";
|
|
116
103
|
import "../trigger/index.js";
|
|
117
|
-
import { TypographyEllipsis as xo } from "./index.js";
|
|
118
104
|
import "../upload/Upload.js";
|
|
119
105
|
import "../verification-code/VerificationCode.js";
|
|
120
106
|
import "../watermark/Watermark.js";
|
|
121
107
|
import "../chunk/CIRG541s.js";
|
|
122
108
|
import "lodash/isPlainObject.js";
|
|
123
109
|
export {
|
|
124
|
-
|
|
110
|
+
tr as default
|
|
125
111
|
};
|
package/typography/Paragraph.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as m, useContext as c } from "react";
|
|
3
|
-
import { a as f } from "../chunk/
|
|
3
|
+
import { a as f } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { p as i } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
import l from "./Base.js";
|
|
6
6
|
function g(a, r) {
|
package/typography/Typography.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c, useContext as f } from "react";
|
|
3
|
-
import { a as i } from "../chunk/
|
|
3
|
+
import { a as i } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { p as l } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
function y(o, t) {
|
|
6
6
|
const { getPrefixCls: r } = f(i), s = r("typography"), { className: a, style: e, children: p } = o, n = l(s, a);
|
package/typography/index.js
CHANGED
|
@@ -1,279 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import "lodash/isEqualWith";
|
|
7
|
-
import "../chunk/DAAff-FT.js";
|
|
8
|
-
import "lodash/isNumber";
|
|
9
|
-
import "lodash/merge";
|
|
10
|
-
import { isServerRendering as Z } from "../utils/dom.js";
|
|
11
|
-
import "../chunk/ZrBrCzQX.js";
|
|
12
|
-
import "../chunk/Cc_-i0o_.js";
|
|
13
|
-
import "../chunk/Ce1j9KTi.js";
|
|
14
|
-
import "lodash/debounce";
|
|
15
|
-
import "lodash/camelCase.js";
|
|
16
|
-
import "lodash/capitalize.js";
|
|
17
|
-
import "lodash/kebabCase.js";
|
|
18
|
-
import "lodash/lowerFirst.js";
|
|
19
|
-
import "lodash/snakeCase.js";
|
|
20
|
-
import "lodash/startCase.js";
|
|
21
|
-
import "lodash/upperFirst.js";
|
|
22
|
-
import { p } from "../chunk/CUFsOxJ2.js";
|
|
23
|
-
import "../chunk/CqtaeJXT.js";
|
|
24
|
-
import "../chunk/C0pRaDCf.js";
|
|
25
|
-
import "lodash/isString.js";
|
|
26
|
-
import "../chunk/tamGhTJp.js";
|
|
27
|
-
import "lodash/escapeRegExp";
|
|
28
|
-
import "lodash/isArray";
|
|
29
|
-
import "lodash/isString";
|
|
30
|
-
import "lodash/camelCase";
|
|
31
|
-
import "lodash/capitalize";
|
|
32
|
-
import "lodash/cloneDeep";
|
|
33
|
-
import "lodash/get";
|
|
34
|
-
import "lodash/has";
|
|
35
|
-
import "lodash/kebabCase";
|
|
36
|
-
import "lodash/mergeWith";
|
|
37
|
-
import "lodash/set";
|
|
38
|
-
import "lodash/setWith";
|
|
39
|
-
import "lodash/snakeCase";
|
|
40
|
-
import "lodash/startCase";
|
|
41
|
-
import "lodash/throttle";
|
|
42
|
-
import "lodash/uniq";
|
|
43
|
-
import "lodash/upperFirst";
|
|
44
|
-
import "../chunk/yl4BU7Sd.js";
|
|
45
|
-
import "lodash/isPlainObject";
|
|
46
|
-
import "../chunk/BJ9_azwQ.js";
|
|
47
|
-
import "../chunk/Bl7BnD1R.js";
|
|
48
|
-
import tt from "../utils/throttleByRaf.js";
|
|
49
|
-
import "uuid";
|
|
50
|
-
import "../chunk/CplLA01W.js";
|
|
51
|
-
import "../affix/index.js";
|
|
52
|
-
import "../alert/index.js";
|
|
53
|
-
import "../anchor/Anchor.js";
|
|
54
|
-
import "../auto-complete/index.js";
|
|
55
|
-
import "../avatar/index.js";
|
|
56
|
-
import "../back-top/index.js";
|
|
57
|
-
import "../badge/index.js";
|
|
58
|
-
import "../breadcrumb/index.js";
|
|
59
|
-
import "../button/index.js";
|
|
60
|
-
import "../calendar/index.js";
|
|
61
|
-
import "../card/index.js";
|
|
62
|
-
import "../carousel/index.js";
|
|
63
|
-
import "../chunk/CzaoCNQH.js";
|
|
64
|
-
import "../chunk/DQrLGkIG.js";
|
|
65
|
-
import "../chunk/BGmWsXl0.js";
|
|
66
|
-
import "../comment/index.js";
|
|
67
|
-
import "../copy/index.js";
|
|
68
|
-
import "../date-picker/index.js";
|
|
69
|
-
import "../descriptions/index.js";
|
|
70
|
-
import "../divider/index.js";
|
|
71
|
-
import "../drawer/Drawer.js";
|
|
72
|
-
import "../dropdown/index.js";
|
|
73
|
-
import "../form/index.js";
|
|
74
|
-
import "../grid/index.js";
|
|
75
|
-
import "../icon/index.js";
|
|
76
|
-
import "../image/Image.js";
|
|
77
|
-
import "../input/Input.js";
|
|
78
|
-
import "../input-tag/InputTag.js";
|
|
79
|
-
import "../layout/index.js";
|
|
80
|
-
import "../link/index.js";
|
|
81
|
-
import "../list/index.js";
|
|
82
|
-
import "../mentions/index.js";
|
|
83
|
-
import "../chunk/lf-xRLXx.js";
|
|
84
|
-
import "../chunk/ByRETFRI.js";
|
|
85
|
-
import "../page-header/index.js";
|
|
86
|
-
import "../pagination/Pagination.js";
|
|
87
|
-
import "../popconfirm/index.js";
|
|
88
|
-
import "../popover/index.js";
|
|
89
|
-
import "../portal/index.js";
|
|
90
|
-
import "../progress/index.js";
|
|
91
|
-
import "../color-picker/index.js";
|
|
92
|
-
import "../loading/index.js";
|
|
93
|
-
import "../chunk/OPbfCome.js";
|
|
94
|
-
import "../rate/index.js";
|
|
95
|
-
import "../resize-box/index.js";
|
|
96
|
-
import "../result/index.js";
|
|
97
|
-
import "../select/Select.js";
|
|
98
|
-
import "../skeleton/index.js";
|
|
99
|
-
import "../slider/index.js";
|
|
100
|
-
import "../space/index.js";
|
|
101
|
-
import "../speech-synthesis/index.js";
|
|
102
|
-
import "../spin/index.js";
|
|
103
|
-
import "../statistic/index.js";
|
|
104
|
-
import "../steps/index.js";
|
|
105
|
-
import "../suspense-fallback-test/index.js";
|
|
106
|
-
import "../switch/index.js";
|
|
107
|
-
import "../table/index.js";
|
|
108
|
-
import "../chunk/DM_DBvmG.js";
|
|
109
|
-
import "../tag/index.js";
|
|
110
|
-
import "../time-picker/index.js";
|
|
111
|
-
import "../timeline/Timeline.js";
|
|
112
|
-
import rt from "../tooltip/index.js";
|
|
113
|
-
import "../transfer/index.js";
|
|
114
|
-
import "../tree/Tree.js";
|
|
115
|
-
import "../tree-select/Select.js";
|
|
116
|
-
import "../trigger/index.js";
|
|
117
|
-
import ot from "./Paragraph.js";
|
|
118
|
-
import et from "./Text.js";
|
|
119
|
-
import it from "./Title.js";
|
|
120
|
-
import pt from "./Typography.js";
|
|
121
|
-
import "../upload/Upload.js";
|
|
122
|
-
import "../verification-code/VerificationCode.js";
|
|
123
|
-
import "../watermark/Watermark.js";
|
|
124
|
-
import { r as mt } from "../chunk/CIRG541s.js";
|
|
125
|
-
import V from "lodash/isPlainObject.js";
|
|
126
|
-
const nt = {
|
|
127
|
-
rows: 1,
|
|
128
|
-
expandable: !0,
|
|
129
|
-
defaultExpanded: !1
|
|
130
|
-
}, st = (j, at) => {
|
|
131
|
-
var M;
|
|
132
|
-
const $ = K(U), T = X(
|
|
133
|
-
j,
|
|
134
|
-
nt,
|
|
135
|
-
(M = $.componentConfig) == null ? void 0 : M["Typography.Ellipsis"]
|
|
136
|
-
), {
|
|
137
|
-
className: A,
|
|
138
|
-
style: L,
|
|
139
|
-
rows: n,
|
|
140
|
-
disabled: P,
|
|
141
|
-
showTooltip: u,
|
|
142
|
-
children: s,
|
|
143
|
-
expandable: d,
|
|
144
|
-
expandRender: R,
|
|
145
|
-
onExpand: l,
|
|
146
|
-
onEllipsis: a
|
|
147
|
-
} = T, { locale: w } = $, S = Z ? !1 : /^((?!chrome|android).)*safari/i.test((navigator == null ? void 0 : navigator.userAgent) ?? ""), D = y(null), m = y(null), [C, H] = O(""), [_, b] = O(!1), c = y(null), f = y(null), [r, W] = Y(!1, {
|
|
148
|
-
defaultValue: T.defaultExpanded,
|
|
149
|
-
value: T.expanded
|
|
150
|
-
}), [i, k] = O(!1), x = z(() => V(d) ? !d.single && n === 1 : n === 1, [n, d]), h = z(() => V(u) ? {
|
|
151
|
-
tooltip: !0,
|
|
152
|
-
tooltipProps: u
|
|
153
|
-
} : {
|
|
154
|
-
tooltip: !!u,
|
|
155
|
-
tooltipProps: u
|
|
156
|
-
}, [u]);
|
|
157
|
-
E(() => {
|
|
158
|
-
if (m.current) {
|
|
159
|
-
const e = m.current.textContent;
|
|
160
|
-
e && H(e);
|
|
161
|
-
}
|
|
162
|
-
}, [s, m]);
|
|
163
|
-
const t = $.getPrefixCls("ellipsis"), q = () => R ? R(r) : /* @__PURE__ */ o("span", { className: `${t}-action-text`, children: r ? w.Typography.fold : w.Typography.unfold }), g = () => d && i ? /* @__PURE__ */ o(
|
|
164
|
-
"div",
|
|
165
|
-
{
|
|
166
|
-
className: p(`${t}-action`, {
|
|
167
|
-
[`${t}-action-collapsed`]: !r
|
|
168
|
-
}),
|
|
169
|
-
onClick: (e) => {
|
|
170
|
-
r ? (W(!1), l == null || l(!1, e)) : (W(!0), b(!1), l == null || l(!0, e));
|
|
171
|
-
},
|
|
172
|
-
children: q()
|
|
173
|
-
}
|
|
174
|
-
) : null, F = Q(
|
|
175
|
-
tt(() => {
|
|
176
|
-
f.current && c.current && ((x ? f.current.offsetWidth > c.current.offsetWidth : f.current.offsetHeight > c.current.offsetHeight) ? i === !1 && (k(!0), a == null || a(!0)) : i === !0 && (k(!1), a == null || a(!1)));
|
|
177
|
-
}),
|
|
178
|
-
[i, x]
|
|
179
|
-
);
|
|
180
|
-
E(() => {
|
|
181
|
-
const e = mt(
|
|
182
|
-
[c.current, f.current],
|
|
183
|
-
F
|
|
184
|
-
);
|
|
185
|
-
return () => {
|
|
186
|
-
e();
|
|
187
|
-
};
|
|
188
|
-
}, [c.current, f.current]);
|
|
189
|
-
const G = () => P ? null : /* @__PURE__ */ o(
|
|
190
|
-
"div",
|
|
191
|
-
{
|
|
192
|
-
className: x ? p(`${t}-content-mirror`, `${t}-single`) : p(
|
|
193
|
-
`${t}-content-mirror`,
|
|
194
|
-
`${t}-multiple`,
|
|
195
|
-
`${t}-collapsed`
|
|
196
|
-
),
|
|
197
|
-
style: {
|
|
198
|
-
WebkitBoxOrient: "vertical",
|
|
199
|
-
MozBoxOrient: "vertical",
|
|
200
|
-
WebkitLineClamp: n
|
|
201
|
-
},
|
|
202
|
-
ref: c,
|
|
203
|
-
children: /* @__PURE__ */ o("span", { ref: f, className: `${t}-text`, children: s })
|
|
204
|
-
}
|
|
205
|
-
), B = () => x ? /* @__PURE__ */ o("div", { className: p(`${t}-content`, `${t}-single`), children: /* @__PURE__ */ o("span", { ref: m, className: `${t}-text`, children: s }) }) : S ? /* @__PURE__ */ N(
|
|
206
|
-
"div",
|
|
207
|
-
{
|
|
208
|
-
className: p(`${t}-content`, `${t}-multiple`),
|
|
209
|
-
title: !h.tooltip && i && !r ? C : void 0,
|
|
210
|
-
children: [
|
|
211
|
-
!r && g(),
|
|
212
|
-
/* @__PURE__ */ o(
|
|
213
|
-
"span",
|
|
214
|
-
{
|
|
215
|
-
ref: m,
|
|
216
|
-
className: p(`${t}-text`, {
|
|
217
|
-
[`${t}-collapsed`]: !r
|
|
218
|
-
}),
|
|
219
|
-
style: {
|
|
220
|
-
WebkitBoxOrient: "vertical",
|
|
221
|
-
MozBoxOrient: "vertical",
|
|
222
|
-
WebkitLineClamp: n
|
|
223
|
-
},
|
|
224
|
-
children: s
|
|
225
|
-
}
|
|
226
|
-
),
|
|
227
|
-
r && g()
|
|
228
|
-
]
|
|
229
|
-
}
|
|
230
|
-
) : /* @__PURE__ */ N(
|
|
231
|
-
"div",
|
|
232
|
-
{
|
|
233
|
-
className: p(`${t}-content`, `${t}-multiple`, {
|
|
234
|
-
[`${t}-collapsed`]: !r
|
|
235
|
-
}),
|
|
236
|
-
style: {
|
|
237
|
-
WebkitBoxOrient: "vertical",
|
|
238
|
-
MozBoxOrient: "vertical",
|
|
239
|
-
WebkitLineClamp: n
|
|
240
|
-
},
|
|
241
|
-
title: !h.tooltip && i && !r ? C : void 0,
|
|
242
|
-
children: [
|
|
243
|
-
!r && g(),
|
|
244
|
-
/* @__PURE__ */ o("span", { ref: m, className: `${t}-text`, children: s }),
|
|
245
|
-
r && g()
|
|
246
|
-
]
|
|
247
|
-
}
|
|
248
|
-
), I = () => P ? /* @__PURE__ */ o("div", { className: `${t}-content`, children: /* @__PURE__ */ o("span", { ref: m, className: `${t}-text`, children: s }) }) : h.tooltip ? /* @__PURE__ */ o(
|
|
249
|
-
rt,
|
|
250
|
-
{
|
|
251
|
-
content: C,
|
|
252
|
-
popupVisible: _,
|
|
253
|
-
disabled: !i || r,
|
|
254
|
-
triggerProps: {
|
|
255
|
-
mouseEnterDelay: 100
|
|
256
|
-
},
|
|
257
|
-
onVisibleChange: (e) => {
|
|
258
|
-
e ? i && !r && b(!0) : b(!1);
|
|
259
|
-
},
|
|
260
|
-
...h.tooltipProps,
|
|
261
|
-
children: B()
|
|
262
|
-
}
|
|
263
|
-
) : B();
|
|
264
|
-
return /* @__PURE__ */ N("div", { ref: D, className: p(t, A), style: L, children: [
|
|
265
|
-
G(),
|
|
266
|
-
I()
|
|
267
|
-
] });
|
|
268
|
-
}, lt = J(st), v = pt;
|
|
269
|
-
v.Title = it;
|
|
270
|
-
v.Text = et;
|
|
271
|
-
v.Paragraph = ot;
|
|
272
|
-
v.Ellipsis = lt;
|
|
1
|
+
import { E as o, w as t } from "../chunk/Cwm8LL5p.js";
|
|
2
|
+
import { default as f } from "./Paragraph.js";
|
|
3
|
+
import { default as l } from "./Text.js";
|
|
4
|
+
import { default as T } from "./Title.js";
|
|
5
|
+
import "./Typography.js";
|
|
273
6
|
export {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
7
|
+
o as TypographyEllipsis,
|
|
8
|
+
f as TypographyParagraph,
|
|
9
|
+
l as TypographyText,
|
|
10
|
+
T as TypographyTitle,
|
|
11
|
+
t as default
|
|
279
12
|
};
|
package/upload/TriggerNode.js
CHANGED
|
@@ -3,7 +3,7 @@ import y from "@unicom-cloud/icons/IconUiPlus";
|
|
|
3
3
|
import A from "@unicom-cloud/icons/IconUiUpload";
|
|
4
4
|
import C, { forwardRef as G, useContext as K, useState as U, useEffect as L } from "react";
|
|
5
5
|
import O from "../button/index.js";
|
|
6
|
-
import { a as R } from "../chunk/
|
|
6
|
+
import { a as R } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import { u as B } from "../chunk/XTEsYGuF.js";
|
|
8
8
|
import { p as I } from "../chunk/CUFsOxJ2.js";
|
|
9
9
|
import { loopDirectory as H, getFiles as S } from "./util.js";
|
package/upload/Upload.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as C, Fragment as T, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import w from "lodash/isFunction";
|
|
3
3
|
import le from "lodash/isNumber";
|
|
4
4
|
import { useContext as D, forwardRef as j, useState as F, useEffect as R, isValidElement as re, useRef as K, useImperativeHandle as oe } from "react";
|
|
5
|
-
import { a as V, I as ae } from "../chunk/
|
|
5
|
+
import { a as V, I as ae } from "../chunk/CNcLypMY.js";
|
|
6
6
|
import { u as se } from "../chunk/BFTV6myl.js";
|
|
7
7
|
import { p as z } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import { o as ce } from "../chunk/BKKEev13.js";
|
package/upload/Uploader.js
CHANGED
|
@@ -3,19 +3,18 @@ import { j as M } from "../chunk/C0pRaDCf.js";
|
|
|
3
3
|
import $ from "lodash/isFunction";
|
|
4
4
|
import Q from "lodash/isNumber";
|
|
5
5
|
import W from "lodash/isPlainObject";
|
|
6
|
-
import X, {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import nt from "./TriggerNode.js";
|
|
6
|
+
import X, { useRef as Y, useState as Z, useImperativeHandle as _ } from "react";
|
|
7
|
+
import { P as tt } from "../chunk/BpYX5PN4.js";
|
|
8
|
+
import et from "./TriggerNode.js";
|
|
10
9
|
import { STATUS as c } from "./interface.js";
|
|
11
|
-
import
|
|
12
|
-
import { isAcceptFile as
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
function E(t) {
|
|
16
|
-
x(t);
|
|
17
|
-
}
|
|
10
|
+
import it from "./request.js";
|
|
11
|
+
import { isAcceptFile as nt } from "./util.js";
|
|
12
|
+
function ot(i, E) {
|
|
13
|
+
const R = Y(null), [b, x] = Z({ uploadRequests: {} });
|
|
18
14
|
function O(t) {
|
|
15
|
+
S(t);
|
|
16
|
+
}
|
|
17
|
+
function A(t) {
|
|
19
18
|
var n;
|
|
20
19
|
const e = b.uploadRequests[t.uid];
|
|
21
20
|
e && ((n = e.abort) == null || n.call(e), l({
|
|
@@ -24,7 +23,7 @@ function rt(i, A) {
|
|
|
24
23
|
}), p(t.uid));
|
|
25
24
|
}
|
|
26
25
|
function z(t) {
|
|
27
|
-
|
|
26
|
+
S({
|
|
28
27
|
...t,
|
|
29
28
|
percent: 0,
|
|
30
29
|
status: c.uploading
|
|
@@ -32,14 +31,14 @@ function rt(i, A) {
|
|
|
32
31
|
}
|
|
33
32
|
function p(t) {
|
|
34
33
|
const e = { ...b.uploadRequests };
|
|
35
|
-
delete e[t],
|
|
34
|
+
delete e[t], x({
|
|
36
35
|
uploadRequests: e
|
|
37
36
|
});
|
|
38
37
|
}
|
|
39
|
-
|
|
38
|
+
_(E, () => ({
|
|
40
39
|
// 提供 ref 调用
|
|
41
|
-
upload:
|
|
42
|
-
abort:
|
|
40
|
+
upload: O,
|
|
41
|
+
abort: A,
|
|
43
42
|
reupload: z,
|
|
44
43
|
// 删除上传(手动上传时,文件会出现在上传列表,但属于init状态)
|
|
45
44
|
delete: p
|
|
@@ -55,7 +54,7 @@ function rt(i, A) {
|
|
|
55
54
|
const e = "uid" in t ? "uid" : "name";
|
|
56
55
|
return i.fileList.find((s) => s[e] === t[e]);
|
|
57
56
|
}
|
|
58
|
-
async function
|
|
57
|
+
async function S(t) {
|
|
59
58
|
const {
|
|
60
59
|
action: e,
|
|
61
60
|
headers: n,
|
|
@@ -85,15 +84,15 @@ function rt(i, A) {
|
|
|
85
84
|
withCredentials: h
|
|
86
85
|
};
|
|
87
86
|
l(t);
|
|
88
|
-
let
|
|
89
|
-
r ?
|
|
87
|
+
let w;
|
|
88
|
+
r ? w = await r(I) : e && (w = it({ ...I, action: e, method: m })), x({
|
|
90
89
|
uploadRequests: {
|
|
91
90
|
...b.uploadRequests,
|
|
92
|
-
[t.uid]:
|
|
91
|
+
[t.uid]: w
|
|
93
92
|
}
|
|
94
93
|
});
|
|
95
94
|
}
|
|
96
|
-
function
|
|
95
|
+
function T(t) {
|
|
97
96
|
const { limit: e, fileList: n, onExceedLimit: s, autoUpload: f } = i;
|
|
98
97
|
if (Q(e) && e < n.length + t.length)
|
|
99
98
|
return s == null ? void 0 : s(t, n);
|
|
@@ -106,14 +105,14 @@ function rt(i, A) {
|
|
|
106
105
|
name: r.name
|
|
107
106
|
};
|
|
108
107
|
l(u), a.push(u), l(u, a), f && setTimeout(() => {
|
|
109
|
-
|
|
108
|
+
S({
|
|
110
109
|
...u,
|
|
111
110
|
status: c.uploading
|
|
112
111
|
});
|
|
113
112
|
}, 0);
|
|
114
113
|
};
|
|
115
114
|
t.forEach((r, m) => {
|
|
116
|
-
|
|
115
|
+
nt(r, i.accept) && ($(i.beforeUpload) ? Promise.resolve(i.beforeUpload(r, t)).then((a) => {
|
|
117
116
|
if (a !== !1) {
|
|
118
117
|
const u = M(a) ? a : r;
|
|
119
118
|
h(u, m);
|
|
@@ -125,12 +124,12 @@ function rt(i, A) {
|
|
|
125
124
|
}
|
|
126
125
|
const {
|
|
127
126
|
accept: d,
|
|
128
|
-
multiple:
|
|
129
|
-
children:
|
|
130
|
-
prefixCls:
|
|
131
|
-
tip:
|
|
132
|
-
disabled:
|
|
133
|
-
drag:
|
|
127
|
+
multiple: k,
|
|
128
|
+
children: P,
|
|
129
|
+
prefixCls: L,
|
|
130
|
+
tip: U,
|
|
131
|
+
disabled: v,
|
|
132
|
+
drag: C,
|
|
134
133
|
listType: D,
|
|
135
134
|
hide: H,
|
|
136
135
|
directory: j,
|
|
@@ -153,11 +152,11 @@ function rt(i, A) {
|
|
|
153
152
|
},
|
|
154
153
|
type: "file",
|
|
155
154
|
accept: W(d) ? d == null ? void 0 : d.type : d,
|
|
156
|
-
multiple:
|
|
155
|
+
multiple: k,
|
|
157
156
|
...j ? { webkitdirectory: "true" } : {},
|
|
158
157
|
onChange: (t) => {
|
|
159
158
|
const e = t.target.files;
|
|
160
|
-
e && (
|
|
159
|
+
e && (T([].slice.call(e)), R.current.value = "");
|
|
161
160
|
},
|
|
162
161
|
onClick: (t) => {
|
|
163
162
|
t.stopPropagation();
|
|
@@ -166,41 +165,41 @@ function rt(i, A) {
|
|
|
166
165
|
"trigger-input"
|
|
167
166
|
),
|
|
168
167
|
/* @__PURE__ */ y(
|
|
169
|
-
|
|
168
|
+
tt,
|
|
170
169
|
{
|
|
171
170
|
in: !H,
|
|
172
171
|
timeout: 100,
|
|
173
172
|
unmountOnExit: !0,
|
|
174
173
|
classNames: "fadeIn",
|
|
175
174
|
children: /* @__PURE__ */ y(
|
|
176
|
-
|
|
175
|
+
et,
|
|
177
176
|
{
|
|
178
177
|
directory: j,
|
|
179
|
-
tip:
|
|
180
|
-
multiple:
|
|
178
|
+
tip: U,
|
|
179
|
+
multiple: k,
|
|
181
180
|
accept: d,
|
|
182
|
-
disabled:
|
|
183
|
-
drag:
|
|
181
|
+
disabled: v,
|
|
182
|
+
drag: C,
|
|
184
183
|
listType: D,
|
|
185
184
|
onDrop: V,
|
|
186
185
|
onDragOver: B,
|
|
187
186
|
onDragLeave: G,
|
|
188
|
-
onDragFiles:
|
|
187
|
+
onDragFiles: T,
|
|
189
188
|
onClick: () => {
|
|
190
189
|
var t, e;
|
|
191
|
-
!
|
|
190
|
+
!v && ((e = (t = R.current) == null ? void 0 : t.click) == null || e.call(t));
|
|
192
191
|
},
|
|
193
|
-
prefixCls:
|
|
194
|
-
children: $(
|
|
192
|
+
prefixCls: L,
|
|
193
|
+
children: $(P) ? P({ fileList: i.fileList }) : P
|
|
195
194
|
}
|
|
196
195
|
)
|
|
197
196
|
},
|
|
198
197
|
"trigger-node"
|
|
199
198
|
),
|
|
200
|
-
|
|
199
|
+
U && D !== "picture-card" && !C ? /* @__PURE__ */ y("div", { className: `${L}-trigger-tip`, children: U }, "trigger-tip") : null
|
|
201
200
|
] });
|
|
202
201
|
}
|
|
203
|
-
const
|
|
202
|
+
const Ft = X.forwardRef(ot);
|
|
204
203
|
export {
|
|
205
|
-
|
|
204
|
+
Ft as default
|
|
206
205
|
};
|
package/utils/color.js
CHANGED
package/utils/contextHolder.js
CHANGED