@unicom-cloud/ui 0.8.71 → 0.8.73
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 +2 -2
- package/AutoComplete.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- package/Breadcrumb.js +3 -3
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- 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 +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- 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 +4 -4
- 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 +6 -5
- package/Modal.js +1 -1
- package/Notice.js +4 -4
- package/Notification.js +7 -6
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Popconfirm.js +2 -2
- package/Popover.js +2 -2
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +2 -2
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/SelectView.js +4 -3
- package/Skeleton.js +1 -1
- package/Slider.js +3 -3
- package/Space.js +1 -1
- package/SpeechSynthesis.js +20 -20
- package/Spin.js +2 -2
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +7 -5
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +3 -3
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/Trigger.js +8 -7
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +53 -50
- package/anchor/Link.js +1 -1
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +2 -2
- package/badge/Count.js +1 -1
- package/badge/index.js +50 -48
- package/breadcrumb/index.js +3 -3
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- 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 +1 -1
- package/checkbox/Checkbox.js +3 -3
- package/checkbox/Group.js +3 -3
- package/checkbox/index.js +1 -1
- package/chunk/{C5X9bDyX.js → 7HDzVe32.js} +7 -7
- package/chunk/{BlElSWJg.js → B0UZ1Ee2.js} +3 -3
- package/chunk/{b1e8awfs.js → B0n0iRhF.js} +1 -1
- package/chunk/{BzPNDYAX.js → B7hulkj9.js} +2 -2
- package/chunk/Bj4EV0eG.js +27 -0
- package/chunk/{Bfq4YEcr.js → Bmvhjhzq.js} +9 -8
- package/chunk/Byd0ztYY.js +724 -0
- package/chunk/{URXCKjXr.js → C0pRaDCf.js} +23 -23
- package/chunk/{B4JiMp8I.js → CCVU-Kst.js} +8 -2
- package/chunk/{ClaNycDy.js → Cc_-i0o_.js} +2 -2
- package/chunk/CiY7w1ZO.js +647 -0
- package/chunk/{fFjj2KuF.js → Cj2SQJiO.js} +392 -414
- package/chunk/Coz3rCng.js +33 -0
- package/chunk/{BHL-PzAD.js → CplLA01W.js} +17 -17
- package/chunk/{8V534cS3.js → D2LLXZQX.js} +5 -7
- package/chunk/DAAff-FT.js +59 -0
- package/chunk/{CQTxhsUk.js → DJDOFlqC.js} +2 -2
- package/chunk/DU1RCDfh.js +29 -0
- package/chunk/{CdaT1b_F.js → DeV0v__J.js} +2 -2
- package/chunk/{I1dqAgn_.js → DejjIa3N.js} +176 -173
- package/chunk/{C6AJxF7d.js → Dg0M2OmF.js} +125 -125
- package/chunk/{DV7ywe_q.js → RS6OAxzv.js} +2 -2
- package/chunk/{CUs1AOCZ.js → UDX9U6M7.js} +3 -3
- package/chunk/{Biupwn8l.js → ZrBrCzQX.js} +6 -5
- package/chunk/{pEI3aB9Z.js → oHDWCJnz.js} +3 -3
- package/chunk/{D2DSUGNT.js → uH6uxyao.js} +1 -1
- package/chunk/{D090jlwP.js → xAb6ZgqS.js} +1 -1
- package/collapse/Collapse.js +3 -3
- package/collapse/Item.js +3 -3
- 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 +8 -8
- package/color-picker/InputRgb.js +6 -6
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +16 -16
- package/color-picker/colors.js +4 -4
- package/color-picker/index.js +3 -3
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- 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 +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 +2 -2
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +121 -111
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +4 -4
- package/empty/index.js +1 -1
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/promisify.js +9 -8
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +2 -2
- package/grid/grid-item.js +2 -2
- package/grid/grid.js +2 -2
- package/hooks/index.js +5 -5
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useVerificationCode.js +2 -2
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +4 -4
- package/image/ImagePreview.js +8 -8
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +2 -2
- package/image/index.js +1 -1
- package/index.js +591 -571
- package/input/Group.js +1 -1
- package/input/Input.js +47 -46
- package/input/InputElement.js +3 -3
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +6 -5
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +52 -50
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +3 -3
- 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 +2 -2
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +2 -2
- package/menu/Item.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +6 -5
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +8 -7
- package/modal/index.js +1 -1
- package/notice/index.js +4 -4
- package/notification/index.js +7 -6
- 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 +1 -1
- package/pagination/Pagination.js +2 -2
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +2 -2
- package/popover/index.js +2 -2
- package/progress/index.js +1 -1
- package/radio/Group.js +3 -3
- package/radio/Radio.js +3 -3
- package/radio/index.js +2 -2
- package/rate/index.js +26 -26
- package/resize-box/ResizeTrigger.js +21 -20
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +5 -4
- package/select/util.js +12 -12
- package/select-view/Core.js +3 -3
- package/select-view/index.js +2 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/Tick.js +1 -1
- package/slider/index.js +19 -19
- package/slider/util.js +8 -8
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +20 -20
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +2 -2
- package/statistic/Countdown.js +1 -1
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style/variables.less +1 -1
- package/style.css +1 -1
- package/switch/index.js +16 -14
- package/table/Table.js +2 -2
- package/table/index.js +3 -3
- package/tabs/Tab.js +3 -3
- 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 +3 -3
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +2 -2
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +3 -3
- package/tree/index.js +1 -1
- package/tree-select/Select.js +25 -25
- package/trigger/getPopupStyle.js +2 -2
- package/trigger/index.js +7 -6
- package/types/badge/interface.d.ts +1 -0
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/drawer/interface.d.ts +10 -0
- package/types/index.d.ts +0 -7
- package/types/modal/Confirm.d.ts +1 -0
- package/types/utils/PqbCSSTransition.d.ts +3 -0
- package/types/utils/caseName.d.ts +1 -0
- package/types/utils/className.d.ts +1 -0
- package/types/utils/color.d.ts +1 -0
- package/types/utils/computeScrollIntoView.d.ts +1 -0
- package/types/utils/contextHolder.d.ts +1 -0
- package/types/utils/copy.d.ts +1 -0
- package/types/utils/fileToURL.d.ts +1 -0
- package/types/utils/fillNBSP.d.ts +1 -0
- package/types/utils/getHighlightText.d.ts +1 -0
- package/types/utils/getHotkeyHandler.d.ts +1 -0
- package/types/utils/getStringLength.d.ts +1 -0
- package/types/utils/include.d.ts +1 -0
- package/types/utils/index.d.ts +29 -25
- package/types/utils/is.d.ts +1 -1
- package/types/utils/keyboardCode.d.ts +1 -0
- package/types/utils/math.d.ts +1 -0
- package/types/utils/mergeProps.d.ts +1 -0
- package/types/utils/mergedToString.d.ts +1 -0
- package/types/utils/names.d.ts +497 -81
- package/types/utils/omit.d.ts +1 -0
- package/types/utils/pick.d.ts +1 -1
- package/types/utils/reactTransitionGroup.d.ts +1 -0
- package/types/utils/responsiveObserve.d.ts +1 -0
- package/types/utils/saveAs.d.ts +1 -0
- package/types/utils/screenfull.d.ts +1 -0
- package/types/utils/scrollIntoView.d.ts +1 -0
- package/types/utils/tinycolor.d.ts +1 -0
- package/types/utils/tree.d.ts +1 -0
- package/types/utils/tween.d.ts +1 -0
- package/types/utils/uuid.d.ts +1 -0
- package/types/utils/validate.d.ts +1 -0
- package/types/version/index.d.ts +1 -1
- package/typography/Base.js +6 -5
- package/typography/Ellipsis.js +30 -29
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +28 -27
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +60 -58
- package/upload/Uploader.js +21 -21
- package/upload/request_.js +4 -3
- package/utils/PqbCSSTransition.js +5 -0
- package/utils/caseName.js +3 -2
- package/utils/className.js +3 -2
- package/{chunk/B6X4lnd0.js → utils/color.js} +55 -53
- package/utils/computeScrollIntoView.js +128 -0
- package/utils/contextHolder.js +3 -2
- package/utils/copy.js +4 -2
- package/utils/fileToURL.js +3 -2
- package/utils/fillNBSP.js +2 -1
- package/utils/getHighlightText.js +2 -1
- package/utils/getHotkeyHandler.js +2 -1
- package/utils/getStringLength.js +2 -1
- package/utils/include.js +2 -1
- package/utils/index.js +302 -249
- package/utils/is.js +104 -101
- package/utils/keyboardCode.js +2 -1
- package/utils/math.js +35 -0
- package/utils/mergeProps.js +2 -1
- package/utils/mergedToString.js +2 -1
- package/utils/names.js +332 -81
- package/utils/omit.js +2 -1
- package/utils/pick.js +1 -0
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/reactTransitionGroup.js +10 -0
- package/utils/responsiveObserve.js +2 -1
- package/utils/saveAs.js +3 -2
- package/utils/screenfull.js +2 -1
- package/utils/scrollIntoView.js +4 -2
- package/utils/tinycolor.js +30 -0
- package/utils/tree.js +87 -0
- package/utils/tween.js +6 -0
- package/utils/uuid.js +5 -0
- package/utils/validate.js +7 -0
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +3 -3
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BibHFOCF.js +0 -34
- package/chunk/CVYWxu00.js +0 -155
- package/chunk/CZWGeRVA.js +0 -715
- package/chunk/CbLaCJmG.js +0 -26
- package/chunk/D-TPB2Do.js +0 -56
- package/chunk/Dm1NCTkX.js +0 -629
- package/chunk/EHx6bIK_.js +0 -98
- package/types/utils/CSSTransition.d.ts +0 -2
- package/utils/CSSTransition.js +0 -4
package/typography/Ellipsis.js
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/Byd0ztYY.js";
|
|
4
4
|
import "../chunk/BFTV6myl.js";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/DeV0v__J.js";
|
|
6
6
|
import "lodash/isEqualWith";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/DAAff-FT.js";
|
|
8
8
|
import "lodash/isNumber";
|
|
9
9
|
import "lodash/merge";
|
|
10
10
|
import "../utils/dom.js";
|
|
11
|
-
import "../chunk/
|
|
12
|
-
import "../chunk/
|
|
11
|
+
import "../chunk/ZrBrCzQX.js";
|
|
12
|
+
import "../chunk/Cc_-i0o_.js";
|
|
13
13
|
import "../chunk/Ce1j9KTi.js";
|
|
14
14
|
import "lodash/debounce";
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
15
|
+
import "lodash/camelCase.js";
|
|
16
|
+
import "lodash/capitalize.js";
|
|
17
|
+
import "lodash/kebabCase.js";
|
|
18
|
+
import "lodash/snakeCase.js";
|
|
19
|
+
import "lodash/startCase.js";
|
|
20
|
+
import "lodash/upperFirst.js";
|
|
21
|
+
import "../chunk/JPPo5nY_.js";
|
|
22
|
+
import "../utils/color.js";
|
|
23
|
+
import "lodash/isString.js";
|
|
17
24
|
import "../chunk/tamGhTJp.js";
|
|
25
|
+
import "lodash/escapeRegExp";
|
|
26
|
+
import "lodash/isArray";
|
|
27
|
+
import "lodash/isString";
|
|
18
28
|
import "lodash/camelCase";
|
|
19
29
|
import "lodash/capitalize";
|
|
20
30
|
import "lodash/cloneDeep";
|
|
@@ -29,24 +39,14 @@ import "lodash/startCase";
|
|
|
29
39
|
import "lodash/throttle";
|
|
30
40
|
import "lodash/uniq";
|
|
31
41
|
import "lodash/upperFirst";
|
|
32
|
-
import "
|
|
33
|
-
import "lodash/capitalize.js";
|
|
34
|
-
import "lodash/kebabCase.js";
|
|
35
|
-
import "lodash/snakeCase.js";
|
|
36
|
-
import "lodash/startCase.js";
|
|
37
|
-
import "lodash/upperFirst.js";
|
|
38
|
-
import "../chunk/JPPo5nY_.js";
|
|
39
|
-
import "lodash/isString.js";
|
|
40
|
-
import "../chunk/fFjj2KuF.js";
|
|
41
|
-
import "lodash/escapeRegExp";
|
|
42
|
-
import "lodash/isArray";
|
|
43
|
-
import "lodash/isString";
|
|
42
|
+
import "../chunk/yl4BU7Sd.js";
|
|
44
43
|
import "lodash/isPlainObject";
|
|
44
|
+
import "../chunk/Cj2SQJiO.js";
|
|
45
45
|
import "../chunk/Bl7BnD1R.js";
|
|
46
46
|
import "../utils/throttleByRaf.js";
|
|
47
47
|
import "lodash/isFunction";
|
|
48
|
-
import "../chunk/BHL-PzAD.js";
|
|
49
48
|
import "uuid";
|
|
49
|
+
import "../chunk/CplLA01W.js";
|
|
50
50
|
import "../affix/index.js";
|
|
51
51
|
import "../alert/index.js";
|
|
52
52
|
import "../anchor/Anchor.js";
|
|
@@ -59,9 +59,9 @@ import "../button/index.js";
|
|
|
59
59
|
import "../calendar/index.js";
|
|
60
60
|
import "../card/index.js";
|
|
61
61
|
import "../carousel/index.js";
|
|
62
|
-
import "../chunk/
|
|
63
|
-
import "../chunk/
|
|
64
|
-
import "../chunk/
|
|
62
|
+
import "../chunk/DejjIa3N.js";
|
|
63
|
+
import "../chunk/B7hulkj9.js";
|
|
64
|
+
import "../chunk/B0UZ1Ee2.js";
|
|
65
65
|
import "../comment/index.js";
|
|
66
66
|
import "../copy/index.js";
|
|
67
67
|
import "../date-picker/index.js";
|
|
@@ -79,8 +79,8 @@ import "../layout/index.js";
|
|
|
79
79
|
import "../link/index.js";
|
|
80
80
|
import "../list/index.js";
|
|
81
81
|
import "../mentions/index.js";
|
|
82
|
-
import "../chunk/
|
|
83
|
-
import "../chunk/
|
|
82
|
+
import "../chunk/UDX9U6M7.js";
|
|
83
|
+
import "../chunk/CiY7w1ZO.js";
|
|
84
84
|
import "../page-header/index.js";
|
|
85
85
|
import "../pagination/Pagination.js";
|
|
86
86
|
import "../popconfirm/index.js";
|
|
@@ -89,7 +89,7 @@ import "../portal/index.js";
|
|
|
89
89
|
import "../progress/index.js";
|
|
90
90
|
import "../color-picker/index.js";
|
|
91
91
|
import "../loading/index.js";
|
|
92
|
-
import "../chunk/
|
|
92
|
+
import "../chunk/DJDOFlqC.js";
|
|
93
93
|
import "../rate/index.js";
|
|
94
94
|
import "../resize-box/index.js";
|
|
95
95
|
import "../result/index.js";
|
|
@@ -104,7 +104,7 @@ import "../steps/index.js";
|
|
|
104
104
|
import "../suspense-fallback-test/index.js";
|
|
105
105
|
import "../switch/index.js";
|
|
106
106
|
import "../table/index.js";
|
|
107
|
-
import "../chunk/
|
|
107
|
+
import "../chunk/oHDWCJnz.js";
|
|
108
108
|
import "../tag/index.js";
|
|
109
109
|
import "../time-picker/index.js";
|
|
110
110
|
import "../timeline/Timeline.js";
|
|
@@ -113,12 +113,13 @@ import "../transfer/index.js";
|
|
|
113
113
|
import "../tree/Tree.js";
|
|
114
114
|
import "../tree-select/Select.js";
|
|
115
115
|
import "../trigger/index.js";
|
|
116
|
-
import { TypographyEllipsis as
|
|
116
|
+
import { TypographyEllipsis as xo } from "./index.js";
|
|
117
117
|
import "../upload/Upload.js";
|
|
118
118
|
import "../verification-code/VerificationCode.js";
|
|
119
119
|
import "../watermark/Watermark.js";
|
|
120
120
|
import "../chunk/CIRG541s.js";
|
|
121
|
+
import "../chunk/C0pRaDCf.js";
|
|
121
122
|
import "lodash/isPlainObject.js";
|
|
122
123
|
export {
|
|
123
|
-
|
|
124
|
+
xo as default
|
|
124
125
|
};
|
package/typography/Paragraph.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p, useContext as c } from "react";
|
|
3
|
-
import { a as f } from "../chunk/
|
|
3
|
+
import { a as f } from "../chunk/Byd0ztYY.js";
|
|
4
4
|
import { m as i } from "../chunk/JPPo5nY_.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 n } 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/Byd0ztYY.js";
|
|
4
4
|
import { m as l } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
function y(o, t) {
|
|
6
6
|
const { getPrefixCls: r } = f(i), s = r("typography"), { className: a, style: e, children: p } = o, m = l(s, a);
|
package/typography/index.js
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
import { jsxs as N, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as J, useContext as K, useRef as y, useState as O, useMemo as z, useEffect as E, useCallback as Q } from "react";
|
|
3
|
-
import { a as U } from "../chunk/
|
|
3
|
+
import { a as U } from "../chunk/Byd0ztYY.js";
|
|
4
4
|
import { u as X } from "../chunk/BFTV6myl.js";
|
|
5
|
-
import { u as Y } from "../chunk/
|
|
5
|
+
import { u as Y } from "../chunk/DeV0v__J.js";
|
|
6
6
|
import "lodash/isEqualWith";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/DAAff-FT.js";
|
|
8
8
|
import "lodash/isNumber";
|
|
9
9
|
import "lodash/merge";
|
|
10
10
|
import { isServerRendering as Z } from "../utils/dom.js";
|
|
11
|
-
import "../chunk/
|
|
12
|
-
import "../chunk/
|
|
11
|
+
import "../chunk/ZrBrCzQX.js";
|
|
12
|
+
import "../chunk/Cc_-i0o_.js";
|
|
13
13
|
import "../chunk/Ce1j9KTi.js";
|
|
14
14
|
import "lodash/debounce";
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
15
|
+
import "lodash/camelCase.js";
|
|
16
|
+
import "lodash/capitalize.js";
|
|
17
|
+
import "lodash/kebabCase.js";
|
|
18
|
+
import "lodash/snakeCase.js";
|
|
19
|
+
import "lodash/startCase.js";
|
|
20
|
+
import "lodash/upperFirst.js";
|
|
21
|
+
import { m as p } from "../chunk/JPPo5nY_.js";
|
|
22
|
+
import "../utils/color.js";
|
|
23
|
+
import "lodash/isString.js";
|
|
17
24
|
import "../chunk/tamGhTJp.js";
|
|
25
|
+
import "lodash/escapeRegExp";
|
|
26
|
+
import "lodash/isArray";
|
|
27
|
+
import "lodash/isString";
|
|
18
28
|
import "lodash/camelCase";
|
|
19
29
|
import "lodash/capitalize";
|
|
20
30
|
import "lodash/cloneDeep";
|
|
@@ -29,24 +39,14 @@ import "lodash/startCase";
|
|
|
29
39
|
import "lodash/throttle";
|
|
30
40
|
import "lodash/uniq";
|
|
31
41
|
import "lodash/upperFirst";
|
|
32
|
-
import "
|
|
33
|
-
import "lodash/capitalize.js";
|
|
34
|
-
import "lodash/kebabCase.js";
|
|
35
|
-
import "lodash/snakeCase.js";
|
|
36
|
-
import "lodash/startCase.js";
|
|
37
|
-
import "lodash/upperFirst.js";
|
|
38
|
-
import { m as p } from "../chunk/JPPo5nY_.js";
|
|
39
|
-
import "lodash/isString.js";
|
|
40
|
-
import "../chunk/fFjj2KuF.js";
|
|
41
|
-
import "lodash/escapeRegExp";
|
|
42
|
-
import "lodash/isArray";
|
|
43
|
-
import "lodash/isString";
|
|
42
|
+
import "../chunk/yl4BU7Sd.js";
|
|
44
43
|
import "lodash/isPlainObject";
|
|
44
|
+
import "../chunk/Cj2SQJiO.js";
|
|
45
45
|
import "../chunk/Bl7BnD1R.js";
|
|
46
46
|
import tt from "../utils/throttleByRaf.js";
|
|
47
47
|
import "lodash/isFunction";
|
|
48
|
-
import "../chunk/BHL-PzAD.js";
|
|
49
48
|
import "uuid";
|
|
49
|
+
import "../chunk/CplLA01W.js";
|
|
50
50
|
import "../affix/index.js";
|
|
51
51
|
import "../alert/index.js";
|
|
52
52
|
import "../anchor/Anchor.js";
|
|
@@ -59,9 +59,9 @@ import "../button/index.js";
|
|
|
59
59
|
import "../calendar/index.js";
|
|
60
60
|
import "../card/index.js";
|
|
61
61
|
import "../carousel/index.js";
|
|
62
|
-
import "../chunk/
|
|
63
|
-
import "../chunk/
|
|
64
|
-
import "../chunk/
|
|
62
|
+
import "../chunk/DejjIa3N.js";
|
|
63
|
+
import "../chunk/B7hulkj9.js";
|
|
64
|
+
import "../chunk/B0UZ1Ee2.js";
|
|
65
65
|
import "../comment/index.js";
|
|
66
66
|
import "../copy/index.js";
|
|
67
67
|
import "../date-picker/index.js";
|
|
@@ -79,8 +79,8 @@ import "../layout/index.js";
|
|
|
79
79
|
import "../link/index.js";
|
|
80
80
|
import "../list/index.js";
|
|
81
81
|
import "../mentions/index.js";
|
|
82
|
-
import "../chunk/
|
|
83
|
-
import "../chunk/
|
|
82
|
+
import "../chunk/UDX9U6M7.js";
|
|
83
|
+
import "../chunk/CiY7w1ZO.js";
|
|
84
84
|
import "../page-header/index.js";
|
|
85
85
|
import "../pagination/Pagination.js";
|
|
86
86
|
import "../popconfirm/index.js";
|
|
@@ -89,7 +89,7 @@ import "../portal/index.js";
|
|
|
89
89
|
import "../progress/index.js";
|
|
90
90
|
import "../color-picker/index.js";
|
|
91
91
|
import "../loading/index.js";
|
|
92
|
-
import "../chunk/
|
|
92
|
+
import "../chunk/DJDOFlqC.js";
|
|
93
93
|
import "../rate/index.js";
|
|
94
94
|
import "../resize-box/index.js";
|
|
95
95
|
import "../result/index.js";
|
|
@@ -104,7 +104,7 @@ import "../steps/index.js";
|
|
|
104
104
|
import "../suspense-fallback-test/index.js";
|
|
105
105
|
import "../switch/index.js";
|
|
106
106
|
import "../table/index.js";
|
|
107
|
-
import "../chunk/
|
|
107
|
+
import "../chunk/oHDWCJnz.js";
|
|
108
108
|
import "../tag/index.js";
|
|
109
109
|
import "../time-picker/index.js";
|
|
110
110
|
import "../timeline/Timeline.js";
|
|
@@ -121,6 +121,7 @@ import "../upload/Upload.js";
|
|
|
121
121
|
import "../verification-code/VerificationCode.js";
|
|
122
122
|
import "../watermark/Watermark.js";
|
|
123
123
|
import { r as mt } from "../chunk/CIRG541s.js";
|
|
124
|
+
import "../chunk/C0pRaDCf.js";
|
|
124
125
|
import V from "lodash/isPlainObject.js";
|
|
125
126
|
const nt = {
|
|
126
127
|
rows: 1,
|
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/Byd0ztYY.js";
|
|
7
7
|
import { u as B } from "../chunk/XTEsYGuF.js";
|
|
8
8
|
import { m as I } from "../chunk/JPPo5nY_.js";
|
|
9
9
|
import { loopDirectory as H, getFiles as S } from "./util.js";
|
package/upload/Upload.js
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
import { jsxs as C, Fragment as T, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import w from "lodash/isFunction";
|
|
3
|
-
import
|
|
4
|
-
import { useContext as D, forwardRef as j, useState as F, useEffect as R, isValidElement as
|
|
5
|
-
import { a as V, I as ae } from "../chunk/
|
|
3
|
+
import le from "lodash/isNumber";
|
|
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/Byd0ztYY.js";
|
|
6
6
|
import { u as se } from "../chunk/BFTV6myl.js";
|
|
7
7
|
import { m as z } from "../chunk/JPPo5nY_.js";
|
|
8
8
|
import { o as ce } from "../chunk/BKKEev13.js";
|
|
9
9
|
import M from "../utils/warning.js";
|
|
10
10
|
import { STATUS as g } from "./interface.js";
|
|
11
|
-
import { b as de
|
|
11
|
+
import { b as de } from "../chunk/Cj2SQJiO.js";
|
|
12
12
|
import ue from "../image/ImagePreviewGroup.js";
|
|
13
|
+
import { P as W } from "../chunk/Bj4EV0eG.js";
|
|
13
14
|
import G from "@unicom-cloud/icons/IconUiDelete";
|
|
14
15
|
import me from "@unicom-cloud/icons/IconUiEye";
|
|
15
16
|
import fe from "@unicom-cloud/icons/IconUiImageClose";
|
|
16
17
|
import J from "@unicom-cloud/icons/IconUiUpload";
|
|
17
18
|
import { l as Q } from "../chunk/CTxjmYmx.js";
|
|
18
19
|
import { u as q } from "../chunk/XTEsYGuF.js";
|
|
19
|
-
import "../chunk/
|
|
20
|
+
import "../chunk/DAAff-FT.js";
|
|
20
21
|
import he from "@unicom-cloud/icons/IconUiCheck";
|
|
21
22
|
import ge from "@unicom-cloud/icons/IconUiPause";
|
|
22
23
|
import Ue from "@unicom-cloud/icons/IconUiPlayArrowFill";
|
|
23
24
|
import ve from "../progress/index.js";
|
|
24
25
|
import S from "../tooltip/index.js";
|
|
26
|
+
import "../chunk/C0pRaDCf.js";
|
|
25
27
|
import A from "lodash/isPlainObject.js";
|
|
26
28
|
import xe from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
27
29
|
import Ie from "@unicom-cloud/icons/IconUiFile";
|
|
@@ -32,7 +34,7 @@ import Pe from "@unicom-cloud/icons/IconUiFileVideo";
|
|
|
32
34
|
import ye from "./Uploader.js";
|
|
33
35
|
const Y = (e) => {
|
|
34
36
|
var b, f, s, o, U, x;
|
|
35
|
-
const m = q(), { file: d, prefixCls: c, progressProps: i, progressRender:
|
|
37
|
+
const m = q(), { file: d, prefixCls: c, progressProps: i, progressRender: l } = e, { locale: r } = D(V), { status: a, percent: P = 0 } = d, v = `${c}-list`, I = i && i.width ? { width: i.width } : {}, h = /* @__PURE__ */ C(T, { children: [
|
|
36
38
|
a === g.fail && e.reuploadIcon !== null && /* @__PURE__ */ t(
|
|
37
39
|
"span",
|
|
38
40
|
{
|
|
@@ -43,14 +45,14 @@ const Y = (e) => {
|
|
|
43
45
|
},
|
|
44
46
|
tabIndex: 0,
|
|
45
47
|
role: "button",
|
|
46
|
-
"aria-label": (b =
|
|
48
|
+
"aria-label": (b = r == null ? void 0 : r.Upload) == null ? void 0 : b.reupload,
|
|
47
49
|
...m({
|
|
48
50
|
onPressEnter: () => {
|
|
49
51
|
var n;
|
|
50
52
|
(n = e.onReupload) == null || n.call(e, d);
|
|
51
53
|
}
|
|
52
54
|
}),
|
|
53
|
-
children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ t(J, {}) : (f =
|
|
55
|
+
children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ t(J, {}) : (f = r == null ? void 0 : r.Upload) == null ? void 0 : f.reupload)
|
|
54
56
|
}
|
|
55
57
|
),
|
|
56
58
|
a === g.success && e.successIcon !== null && /* @__PURE__ */ t("span", { className: `${c}-list-success-icon`, children: e.successIcon || /* @__PURE__ */ t(he, {}) }),
|
|
@@ -72,7 +74,7 @@ const Y = (e) => {
|
|
|
72
74
|
{
|
|
73
75
|
tabIndex: 0,
|
|
74
76
|
role: "button",
|
|
75
|
-
"aria-label": (s =
|
|
77
|
+
"aria-label": (s = r == null ? void 0 : r.Upload) == null ? void 0 : s.start,
|
|
76
78
|
className: `${c}-list-start-icon`,
|
|
77
79
|
onClick: () => {
|
|
78
80
|
var n;
|
|
@@ -84,7 +86,7 @@ const Y = (e) => {
|
|
|
84
86
|
(n = e.onUpload) == null || n.call(e, d);
|
|
85
87
|
}
|
|
86
88
|
}),
|
|
87
|
-
children: e.startIcon || /* @__PURE__ */ t(S, { content: (o =
|
|
89
|
+
children: e.startIcon || /* @__PURE__ */ t(S, { content: (o = r == null ? void 0 : r.Upload) == null ? void 0 : o.start, children: /* @__PURE__ */ t(Ue, {}) })
|
|
88
90
|
}
|
|
89
91
|
),
|
|
90
92
|
a === g.uploading && e.cancelIcon !== null && /* @__PURE__ */ t(
|
|
@@ -96,21 +98,21 @@ const Y = (e) => {
|
|
|
96
98
|
(n = e.onAbort) == null || n.call(e, d);
|
|
97
99
|
},
|
|
98
100
|
tabIndex: 0,
|
|
99
|
-
"aria-label": (U =
|
|
101
|
+
"aria-label": (U = r == null ? void 0 : r.Upload) == null ? void 0 : U.cancel,
|
|
100
102
|
...m({
|
|
101
103
|
onPressEnter: () => {
|
|
102
104
|
var n;
|
|
103
105
|
(n = e.onAbort) == null || n.call(e, d);
|
|
104
106
|
}
|
|
105
107
|
}),
|
|
106
|
-
children: e.cancelIcon || /* @__PURE__ */ t(S, { content: (x =
|
|
108
|
+
children: e.cancelIcon || /* @__PURE__ */ t(S, { content: (x = r == null ? void 0 : r.Upload) == null ? void 0 : x.cancel, children: /* @__PURE__ */ t(ge, {}) })
|
|
107
109
|
}
|
|
108
110
|
)
|
|
109
111
|
] })
|
|
110
112
|
] });
|
|
111
|
-
return w(
|
|
113
|
+
return w(l) ? l(d, h) : h;
|
|
112
114
|
}, Ce = (e, m) => {
|
|
113
|
-
const { disabled: d, prefixCls: c, file: i, showUploadList:
|
|
115
|
+
const { disabled: d, prefixCls: c, file: i, showUploadList: l, locale: r } = e, a = q(), P = `${c}-list-item-picture`, { status: v, originFile: I } = i, [h, b] = F(i.url), f = A(l) ? l : {};
|
|
114
116
|
return R(() => {
|
|
115
117
|
if (i.url !== void 0)
|
|
116
118
|
b(i.url);
|
|
@@ -154,7 +156,7 @@ const Y = (e) => {
|
|
|
154
156
|
className: `${c}-list-preview-icon`,
|
|
155
157
|
tabIndex: 0,
|
|
156
158
|
role: "button",
|
|
157
|
-
"aria-label":
|
|
159
|
+
"aria-label": r.Upload.preview,
|
|
158
160
|
...a({
|
|
159
161
|
onPressEnter: () => {
|
|
160
162
|
var s;
|
|
@@ -178,7 +180,7 @@ const Y = (e) => {
|
|
|
178
180
|
},
|
|
179
181
|
tabIndex: 0,
|
|
180
182
|
role: "button",
|
|
181
|
-
"aria-label":
|
|
183
|
+
"aria-label": r.Upload.reupload,
|
|
182
184
|
...a({
|
|
183
185
|
onPressEnter: () => {
|
|
184
186
|
var s;
|
|
@@ -197,7 +199,7 @@ const Y = (e) => {
|
|
|
197
199
|
(s = e.onRemove) == null || s.call(e, i);
|
|
198
200
|
},
|
|
199
201
|
role: "button",
|
|
200
|
-
"aria-label":
|
|
202
|
+
"aria-label": r.Upload.delete,
|
|
201
203
|
tabIndex: 0,
|
|
202
204
|
...a({
|
|
203
205
|
onPressEnter: () => {
|
|
@@ -221,7 +223,7 @@ const Y = (e) => {
|
|
|
221
223
|
}
|
|
222
224
|
return m.indexOf("image") > -1 ? X : m.indexOf("pdf") > -1 ? $e : m.indexOf("audio") > -1 ? be : m.indexOf("video") > -1 ? Pe : Ie;
|
|
223
225
|
}, Le = (e, m) => {
|
|
224
|
-
const { prefixCls: d, disabled: c, file: i, locale:
|
|
226
|
+
const { prefixCls: d, disabled: c, file: i, locale: l } = e, r = `${d}-list-item-text`, a = q(), P = we(i), v = A(e.showUploadList) ? e.showUploadList : {}, I = A(v) ? v : {}, h = i.name || i.originFile && i.originFile.name, [b, f] = F(i.url);
|
|
225
227
|
let s = {};
|
|
226
228
|
return i.status !== g.fail && (s = {
|
|
227
229
|
popupVisible: !1
|
|
@@ -251,25 +253,25 @@ const Y = (e) => {
|
|
|
251
253
|
className: `${d}-list-item ${d}-list-item-${i.status}`,
|
|
252
254
|
ref: m,
|
|
253
255
|
children: [
|
|
254
|
-
/* @__PURE__ */ C("div", { className:
|
|
255
|
-
e.listType === "picture-list" && /* @__PURE__ */ t("div", { className: `${
|
|
256
|
-
/* @__PURE__ */ C("div", { className: `${
|
|
257
|
-
/* @__PURE__ */ C("div", { className: `${
|
|
256
|
+
/* @__PURE__ */ C("div", { className: r, children: [
|
|
257
|
+
e.listType === "picture-list" && /* @__PURE__ */ t("div", { className: `${r}-thumbnail`, children: w(v.imageRender) ? v.imageRender(i) : /* @__PURE__ */ t("img", { src: b }) }),
|
|
258
|
+
/* @__PURE__ */ C("div", { className: `${r}-content`, children: [
|
|
259
|
+
/* @__PURE__ */ C("div", { className: `${r}-name`, children: [
|
|
258
260
|
e.listType === "text" && I.fileIcon !== null && /* @__PURE__ */ t("span", { className: `${d}-list-file-icon`, children: I.fileIcon || /* @__PURE__ */ t(P, {}) }),
|
|
259
|
-
w(v.fileName) ? /* @__PURE__ */ t("span", { className: `${
|
|
261
|
+
w(v.fileName) ? /* @__PURE__ */ t("span", { className: `${r}-name-text`, children: v.fileName(i) }) : i.url ? /* @__PURE__ */ t(
|
|
260
262
|
"a",
|
|
261
263
|
{
|
|
262
264
|
href: i.url,
|
|
263
265
|
target: "_blank",
|
|
264
266
|
rel: "noreferrer",
|
|
265
|
-
className: `${
|
|
267
|
+
className: `${r}-name-link`,
|
|
266
268
|
children: h
|
|
267
269
|
}
|
|
268
|
-
) : /* @__PURE__ */ t("span", { className: `${
|
|
270
|
+
) : /* @__PURE__ */ t("span", { className: `${r}-name-text`, children: h }),
|
|
269
271
|
i.status === g.fail && I.errorIcon !== null && /* @__PURE__ */ t(
|
|
270
272
|
S,
|
|
271
273
|
{
|
|
272
|
-
content: (typeof i.response == "object" ?
|
|
274
|
+
content: (typeof i.response == "object" ? re(i.response) && i.response : i.response) || l.Upload.error,
|
|
273
275
|
...s,
|
|
274
276
|
disabled: i.status !== g.fail,
|
|
275
277
|
children: /* @__PURE__ */ t("span", { className: `${e.prefixCls}-list-error-icon`, children: I.errorIcon || (e.listType === "picture-card" ? /* @__PURE__ */ t(X, {}) : /* @__PURE__ */ t(xe, {})) })
|
|
@@ -299,7 +301,7 @@ const Y = (e) => {
|
|
|
299
301
|
(o = e.onRemove) == null || o.call(e, i);
|
|
300
302
|
},
|
|
301
303
|
tabIndex: 0,
|
|
302
|
-
"aria-label":
|
|
304
|
+
"aria-label": l.Upload.delete,
|
|
303
305
|
...a({
|
|
304
306
|
onPressEnter: () => {
|
|
305
307
|
var o;
|
|
@@ -316,13 +318,13 @@ const Y = (e) => {
|
|
|
316
318
|
const { locale: m, rtl: d } = D(V), {
|
|
317
319
|
listType: c,
|
|
318
320
|
fileList: i,
|
|
319
|
-
renderUploadList:
|
|
320
|
-
renderUploadItem:
|
|
321
|
+
renderUploadList: l,
|
|
322
|
+
renderUploadItem: r,
|
|
321
323
|
prefixCls: a,
|
|
322
324
|
...P
|
|
323
325
|
} = e, [v, I] = F(-1), [h, b] = F([]);
|
|
324
|
-
if (w(
|
|
325
|
-
return /* @__PURE__ */ t("div", { className: `${a}-list`, children:
|
|
326
|
+
if (w(l))
|
|
327
|
+
return /* @__PURE__ */ t("div", { className: `${a}-list`, children: l(i, P) });
|
|
326
328
|
const f = (o) => {
|
|
327
329
|
e.imagePreview && I(o);
|
|
328
330
|
};
|
|
@@ -376,7 +378,7 @@ const Y = (e) => {
|
|
|
376
378
|
}
|
|
377
379
|
}
|
|
378
380
|
);
|
|
379
|
-
return w(
|
|
381
|
+
return w(r) && (x = r(x, o, i)), c === "picture-card" ? /* @__PURE__ */ t(
|
|
380
382
|
W,
|
|
381
383
|
{
|
|
382
384
|
timeout: { enter: 200, exit: 400 },
|
|
@@ -436,21 +438,21 @@ const k = function(e) {
|
|
|
436
438
|
const m = [].concat(e || []).filter(Boolean);
|
|
437
439
|
return m.reduce((d, c, i) => {
|
|
438
440
|
if (c.uid) {
|
|
439
|
-
const
|
|
441
|
+
const l = m.findIndex(
|
|
440
442
|
(a) => c.uid === a.uid && c !== a
|
|
441
443
|
);
|
|
442
|
-
M(
|
|
443
|
-
const
|
|
444
|
+
M(l !== -1, "[Upload]: duplicate uid");
|
|
445
|
+
const r = {
|
|
444
446
|
status: g.success,
|
|
445
447
|
percent: 100,
|
|
446
448
|
...c
|
|
447
449
|
};
|
|
448
|
-
|
|
450
|
+
l === -1 ? d.push(r) : d.splice(l, 1, r);
|
|
449
451
|
} else {
|
|
450
452
|
M(!0, "[Upload]: uid is required");
|
|
451
|
-
const
|
|
453
|
+
const l = `${String(+/* @__PURE__ */ new Date())}${i}`;
|
|
452
454
|
d.push({
|
|
453
|
-
uid:
|
|
455
|
+
uid: l,
|
|
454
456
|
status: g.success,
|
|
455
457
|
percent: 100,
|
|
456
458
|
...c
|
|
@@ -465,23 +467,23 @@ const k = function(e) {
|
|
|
465
467
|
beforeUpload: () => !0,
|
|
466
468
|
method: "post"
|
|
467
469
|
}, Ee = (e, m) => {
|
|
468
|
-
const { getPrefixCls: d, componentConfig: c, rtl: i } = D(V),
|
|
470
|
+
const { getPrefixCls: d, componentConfig: c, rtl: i } = D(V), l = se(
|
|
469
471
|
e,
|
|
470
472
|
Re,
|
|
471
473
|
c == null ? void 0 : c.Upload
|
|
472
|
-
),
|
|
474
|
+
), r = d("upload"), a = K(), P = K(), [v, I] = F(() => "fileList" in l ? k(l.fileList) : "defaultFileList" in l ? k(l.defaultFileList) : []), h = "fileList" in l ? k(l.fileList) : v, b = (u, $) => {
|
|
473
475
|
var y;
|
|
474
|
-
"fileList" in
|
|
476
|
+
"fileList" in l || I(u), (y = l.onChange) == null || y.call(l, u, $);
|
|
475
477
|
}, f = (u) => {
|
|
476
478
|
u && setTimeout(() => {
|
|
477
479
|
a.current && a.current.upload(u);
|
|
478
480
|
}, 0);
|
|
479
481
|
}, s = (u) => {
|
|
480
482
|
var $;
|
|
481
|
-
a.current && a.current.reupload(u), ($ =
|
|
483
|
+
a.current && a.current.reupload(u), ($ = l.onReupload) == null || $.call(l, u);
|
|
482
484
|
}, o = (u) => {
|
|
483
485
|
if (u) {
|
|
484
|
-
const { onRemove: $ } =
|
|
486
|
+
const { onRemove: $ } = l;
|
|
485
487
|
Promise.resolve(
|
|
486
488
|
w($) ? $(u, h) : $
|
|
487
489
|
).then((y) => {
|
|
@@ -523,7 +525,7 @@ const k = function(e) {
|
|
|
523
525
|
progressProps: ie,
|
|
524
526
|
imagePreview: te,
|
|
525
527
|
...ne
|
|
526
|
-
} =
|
|
528
|
+
} = l, L = le(l.limit) ? { hideOnExceedLimit: !0, maxCount: l.limit } : { hideOnExceedLimit: !0, ...l.limit }, O = L.maxCount && L.maxCount <= h.length, _ = "disabled" in l ? l.disabled : !L.hideOnExceedLimit && O, B = /* @__PURE__ */ t(
|
|
527
529
|
"div",
|
|
528
530
|
{
|
|
529
531
|
...ce(ne, [
|
|
@@ -559,13 +561,13 @@ const k = function(e) {
|
|
|
559
561
|
"onDragLeave"
|
|
560
562
|
]),
|
|
561
563
|
className: z(
|
|
562
|
-
|
|
564
|
+
r,
|
|
563
565
|
{
|
|
564
|
-
[`${
|
|
565
|
-
[`${
|
|
566
|
-
[`${
|
|
567
|
-
[`${
|
|
568
|
-
[`${
|
|
566
|
+
[`${r}-type-${x}`]: x,
|
|
567
|
+
[`${r}-drag`]: l.drag,
|
|
568
|
+
[`${r}-disabled`]: _,
|
|
569
|
+
[`${r}-hide`]: L.hideOnExceedLimit && O,
|
|
570
|
+
[`${r}-rtl`]: i
|
|
569
571
|
},
|
|
570
572
|
n
|
|
571
573
|
),
|
|
@@ -575,17 +577,17 @@ const k = function(e) {
|
|
|
575
577
|
ye,
|
|
576
578
|
{
|
|
577
579
|
ref: a,
|
|
578
|
-
...
|
|
580
|
+
...l,
|
|
579
581
|
limit: L.maxCount,
|
|
580
582
|
hide: L.hideOnExceedLimit && O,
|
|
581
583
|
disabled: _,
|
|
582
|
-
prefixCls:
|
|
584
|
+
prefixCls: r,
|
|
583
585
|
fileList: h,
|
|
584
586
|
onProgress: (u, $) => {
|
|
585
587
|
var y;
|
|
586
|
-
u && ("fileList" in
|
|
588
|
+
u && ("fileList" in l || I(
|
|
587
589
|
h.map((E) => E.uid === u.uid ? u : E)
|
|
588
|
-
), (y =
|
|
590
|
+
), (y = l.onProgress) == null || y.call(l, u, $));
|
|
589
591
|
},
|
|
590
592
|
onFileStatusChange: b
|
|
591
593
|
}
|
|
@@ -600,7 +602,7 @@ const k = function(e) {
|
|
|
600
602
|
imagePreview: te,
|
|
601
603
|
progressProps: ie,
|
|
602
604
|
showUploadList: H,
|
|
603
|
-
disabled:
|
|
605
|
+
disabled: l.disabled,
|
|
604
606
|
listType: x,
|
|
605
607
|
fileList: h,
|
|
606
608
|
renderUploadItem: p,
|
|
@@ -609,12 +611,12 @@ const k = function(e) {
|
|
|
609
611
|
onAbort: U,
|
|
610
612
|
onRemove: o,
|
|
611
613
|
onReupload: s,
|
|
612
|
-
onPreview:
|
|
613
|
-
prefixCls:
|
|
614
|
+
onPreview: l.onPreview,
|
|
615
|
+
prefixCls: r
|
|
614
616
|
}
|
|
615
617
|
),
|
|
616
618
|
x === "picture-card" && B,
|
|
617
|
-
|
|
619
|
+
l.tip && x === "picture-card" && /* @__PURE__ */ t("div", { className: `${r}-trigger-tip`, children: l.tip })
|
|
618
620
|
] });
|
|
619
621
|
}, Te = j(
|
|
620
622
|
Ee
|