@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/input/Group.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import f, { useContext as l } from "react";
|
|
3
|
-
import { a as u } from "../chunk/
|
|
3
|
+
import { a as u } from "../chunk/Byd0ztYY.js";
|
|
4
4
|
import { m as x } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
const d = f.forwardRef((o, s) => {
|
|
6
6
|
const { getPrefixCls: r } = l(u), { className: e, style: a, children: m, compact: c, ...p } = o, t = r("input-group"), n = x(
|
package/input/Input.js
CHANGED
|
@@ -3,9 +3,9 @@ import ie from "lodash/isPlainObject";
|
|
|
3
3
|
import He from "lodash/isString";
|
|
4
4
|
import Be from "lodash/isUndefined";
|
|
5
5
|
import ue, { useContext as ce, useState as re, useRef as ee, useMemo as le, useImperativeHandle as Ne, useCallback as Fe, useEffect as ye } from "react";
|
|
6
|
-
import { a as fe, I as _e } from "../chunk/
|
|
6
|
+
import { a as fe, I as _e } from "../chunk/Byd0ztYY.js";
|
|
7
7
|
import { u as Ee } from "../chunk/BFTV6myl.js";
|
|
8
|
-
import { u as he } from "../chunk/
|
|
8
|
+
import { u as he } from "../chunk/DeV0v__J.js";
|
|
9
9
|
import { m as O } from "../chunk/JPPo5nY_.js";
|
|
10
10
|
import { contains as Se } from "../utils/dom.js";
|
|
11
11
|
import Ge from "./Group.js";
|
|
@@ -25,9 +25,10 @@ import tt from "../button/index.js";
|
|
|
25
25
|
import Re from "../input-tag/InputTag.js";
|
|
26
26
|
import nt from "@unicom-cloud/icons/IconUiClose";
|
|
27
27
|
import { u as rt } from "../chunk/B2yFlXke.js";
|
|
28
|
-
import "../chunk/
|
|
28
|
+
import "../chunk/DAAff-FT.js";
|
|
29
29
|
import ot from "./autoSizeTextAreaHeight.js";
|
|
30
30
|
import st from "./useComposition.js";
|
|
31
|
+
import "../chunk/C0pRaDCf.js";
|
|
31
32
|
import Pe from "lodash/isPlainObject.js";
|
|
32
33
|
import { r as at, d as it } from "../chunk/BrOW642m.js";
|
|
33
34
|
import { getDecimal as ne } from "../input-number/decimal.js";
|
|
@@ -39,7 +40,7 @@ const ut = 200, ct = 1e3, ft = {
|
|
|
39
40
|
mode: "embed",
|
|
40
41
|
parser: (e) => (e == null ? void 0 : e.replace(/[^\w.-]+/g, "")) || ""
|
|
41
42
|
};
|
|
42
|
-
function
|
|
43
|
+
function mt(e, b) {
|
|
43
44
|
var we;
|
|
44
45
|
const {
|
|
45
46
|
getPrefixCls: y,
|
|
@@ -63,11 +64,11 @@ function dt(e, b) {
|
|
|
63
64
|
suffix: I,
|
|
64
65
|
prefix: S,
|
|
65
66
|
icons: l,
|
|
66
|
-
mode:
|
|
67
|
+
mode: m,
|
|
67
68
|
size: i,
|
|
68
69
|
step: f,
|
|
69
70
|
precision: U,
|
|
70
|
-
min:
|
|
71
|
+
min: d,
|
|
71
72
|
max: k,
|
|
72
73
|
parser: G,
|
|
73
74
|
formatter: W,
|
|
@@ -84,9 +85,9 @@ function dt(e, b) {
|
|
|
84
85
|
return null;
|
|
85
86
|
})(), [q, j] = re(() => ne(
|
|
86
87
|
"value" in n ? n.value : "defaultValue" in n ? D : void 0
|
|
87
|
-
)), [V, Q] = re(""), [te, Y] = re(!1), [J, F] = re(!1), a = ee(null), o = ee(null), h = ee(!1), s = le(() => "value" in n ? ne(n.value) : q, [n.value, q]), [_, X] = le(() => [ne(k), ne(
|
|
88
|
+
)), [V, Q] = re(""), [te, Y] = re(!1), [J, F] = re(!1), a = ee(null), o = ee(null), h = ee(!1), s = le(() => "value" in n ? ne(n.value) : q, [n.value, q]), [_, X] = le(() => [ne(k), ne(d)], [k, d]);
|
|
88
89
|
Ne(b, () => o.current, []);
|
|
89
|
-
const
|
|
90
|
+
const me = (t, u) => {
|
|
90
91
|
if (j(t), !t.equals(s) && H) {
|
|
91
92
|
const N = t.toString({
|
|
92
93
|
safe: !0,
|
|
@@ -97,7 +98,7 @@ function dt(e, b) {
|
|
|
97
98
|
u
|
|
98
99
|
);
|
|
99
100
|
}
|
|
100
|
-
},
|
|
101
|
+
}, de = () => {
|
|
101
102
|
a.current && clearTimeout(a.current), a.current = null;
|
|
102
103
|
}, ae = Fe(
|
|
103
104
|
(t) => {
|
|
@@ -106,17 +107,17 @@ function dt(e, b) {
|
|
|
106
107
|
},
|
|
107
108
|
[X, _]
|
|
108
109
|
);
|
|
109
|
-
ye(() => () =>
|
|
110
|
+
ye(() => () => de(), []), ye(() => {
|
|
110
111
|
h.current = !1;
|
|
111
112
|
}, [n.value]), ye(() => {
|
|
112
113
|
const t = s.less(X) || _.less(s);
|
|
113
|
-
t && h.current &&
|
|
114
|
+
t && h.current && me(ae(s), "outOfRange"), Y(t);
|
|
114
115
|
}, [X, _, s, ae]);
|
|
115
116
|
const xe = (t, u, N = !1) => {
|
|
116
117
|
if (t.persist(), t.preventDefault(), F(!1), v || g)
|
|
117
118
|
return;
|
|
118
|
-
const Oe = s.isInvalid ? ne(
|
|
119
|
-
if (
|
|
119
|
+
const Oe = s.isInvalid ? ne(d === -1 / 0 || d <= 0 && k >= 0 ? 0 : d) : s.add(u === "plus" ? f : -f);
|
|
120
|
+
if (me(
|
|
120
121
|
ae(Oe),
|
|
121
122
|
u === "plus" ? "increase" : "decrease"
|
|
122
123
|
), o.current && o.current.focus(), N) {
|
|
@@ -136,22 +137,22 @@ function dt(e, b) {
|
|
|
136
137
|
onChange: (t, u) => {
|
|
137
138
|
F(!0), t = t.trim().replace(/。/g, ".");
|
|
138
139
|
const N = G ? G(t) : t;
|
|
139
|
-
(Ce(+N) || N === "-" || !N || N === ".") && (Q(t),
|
|
140
|
+
(Ce(+N) || N === "-" || !N || N === ".") && (Q(t), me(ae(ne(N)), "manual"), Te(u));
|
|
140
141
|
},
|
|
141
142
|
onKeyDown: (t) => {
|
|
142
143
|
const u = t.key;
|
|
143
|
-
u === at.key ? (t.stopPropagation(), xe(t, "minus")) : u === it.key && (t.stopPropagation(), xe(t, "plus")),
|
|
144
|
+
u === at.key ? (t.stopPropagation(), xe(t, "minus")) : u === it.key && (t.stopPropagation(), xe(t, "plus")), de(), B == null || B(t);
|
|
144
145
|
},
|
|
145
146
|
onFocus: (t) => {
|
|
146
147
|
var u, N;
|
|
147
148
|
h.current = !0, Q((N = (u = o.current) == null ? void 0 : u.dom) == null ? void 0 : N.value), K == null || K(t);
|
|
148
149
|
},
|
|
149
150
|
onBlur: (t) => {
|
|
150
|
-
|
|
151
|
+
me(ae(s), "outOfRange"), F(!1), w == null || w(t);
|
|
151
152
|
}
|
|
152
153
|
}, Ue = (t) => g ? {} : {
|
|
153
154
|
onMouseDown: (u) => xe(u, t, !0)
|
|
154
|
-
}, Ie = !$ &&
|
|
155
|
+
}, Ie = !$ && m === "button", ke = !$ && !g && m === "embed", pe = (t, u) => {
|
|
155
156
|
const N = !v && (s.isInvalid || (t === "plus" ? _.isInvalid || s.less(_) : X.isInvalid || X.less(s)));
|
|
156
157
|
return /* @__PURE__ */ c(
|
|
157
158
|
"div",
|
|
@@ -159,8 +160,8 @@ function dt(e, b) {
|
|
|
159
160
|
className: O(`${x}-step-button`, {
|
|
160
161
|
[`${x}-step-button-disabled`]: !N
|
|
161
162
|
}),
|
|
162
|
-
onMouseLeave:
|
|
163
|
-
onMouseUp:
|
|
163
|
+
onMouseLeave: de,
|
|
164
|
+
onMouseUp: de,
|
|
164
165
|
...N ? Ue(t) : {},
|
|
165
166
|
children: u
|
|
166
167
|
}
|
|
@@ -172,14 +173,14 @@ function dt(e, b) {
|
|
|
172
173
|
_ignorePropsFromGlobal: !0,
|
|
173
174
|
role: "spinbutton",
|
|
174
175
|
"aria-valuemax": k,
|
|
175
|
-
"aria-valuemin":
|
|
176
|
+
"aria-valuemin": d,
|
|
176
177
|
"aria-valuenow": s.isEmpty ? void 0 : s.toNumber(),
|
|
177
178
|
...ve(se, ["allowClear"]),
|
|
178
179
|
...Me,
|
|
179
180
|
style: p,
|
|
180
181
|
className: O(
|
|
181
182
|
x,
|
|
182
|
-
`${x}-mode-${
|
|
183
|
+
`${x}-mode-${m}`,
|
|
183
184
|
`${x}-size-${r}`,
|
|
184
185
|
{
|
|
185
186
|
[`${x}-rtl`]: L,
|
|
@@ -221,7 +222,7 @@ function dt(e, b) {
|
|
|
221
222
|
);
|
|
222
223
|
}
|
|
223
224
|
const be = ue.forwardRef(
|
|
224
|
-
|
|
225
|
+
mt
|
|
225
226
|
);
|
|
226
227
|
be.displayName = "InputNumber";
|
|
227
228
|
const Ae = ue.forwardRef(
|
|
@@ -303,7 +304,7 @@ const Le = ue.forwardRef(
|
|
|
303
304
|
[`${S}-button`]: C
|
|
304
305
|
},
|
|
305
306
|
A
|
|
306
|
-
),
|
|
307
|
+
), m = () => {
|
|
307
308
|
var i;
|
|
308
309
|
!n && ((i = e.onSearch) == null || i.call(e, $));
|
|
309
310
|
};
|
|
@@ -323,7 +324,7 @@ const Le = ue.forwardRef(
|
|
|
323
324
|
size: g.size,
|
|
324
325
|
className: `${S}-btn`,
|
|
325
326
|
type: "primary",
|
|
326
|
-
onClick:
|
|
327
|
+
onClick: m,
|
|
327
328
|
loading: p,
|
|
328
329
|
loadingFixedWidth: !0,
|
|
329
330
|
icon: C === !0 && !p && /* @__PURE__ */ c(Ve, {}),
|
|
@@ -331,7 +332,7 @@ const Le = ue.forwardRef(
|
|
|
331
332
|
children: C !== !0 && C
|
|
332
333
|
}
|
|
333
334
|
) : null,
|
|
334
|
-
suffix: z !== void 0 ? z : !C && (p ? /* @__PURE__ */ c(et, {}) : /* @__PURE__ */ c(Ve, { onClick:
|
|
335
|
+
suffix: z !== void 0 ? z : !C && (p ? /* @__PURE__ */ c(et, {}) : /* @__PURE__ */ c(Ve, { onClick: m })),
|
|
335
336
|
onChange: (i, f) => {
|
|
336
337
|
var U;
|
|
337
338
|
I(i), (U = e.onChange) == null || U.call(e, i, f);
|
|
@@ -339,14 +340,14 @@ const Le = ue.forwardRef(
|
|
|
339
340
|
defaultValue: D,
|
|
340
341
|
onPressEnter: (i) => {
|
|
341
342
|
var f;
|
|
342
|
-
|
|
343
|
+
m(), (f = e.onPressEnter) == null || f.call(e, i);
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
346
|
);
|
|
346
347
|
}
|
|
347
348
|
);
|
|
348
349
|
Le.displayName = "Search";
|
|
349
|
-
const
|
|
350
|
+
const dt = (e, b) => {
|
|
350
351
|
const {
|
|
351
352
|
className: y,
|
|
352
353
|
style: A,
|
|
@@ -364,9 +365,9 @@ const mt = (e, b) => {
|
|
|
364
365
|
status: $,
|
|
365
366
|
clearIcon: I,
|
|
366
367
|
...S
|
|
367
|
-
} = e, l = Pe(p) ? p.length : p,
|
|
368
|
-
defaultValue: "defaultValue" in e ? oe(e.defaultValue,
|
|
369
|
-
value: "value" in e ? oe(e.value,
|
|
368
|
+
} = e, l = Pe(p) ? p.length : p, m = Pe(p) ? p.errorOnly ? void 0 : p.length : p, i = ee(), [f, U] = re({}), [d, k] = he("", {
|
|
369
|
+
defaultValue: "defaultValue" in e ? oe(e.defaultValue, m) : void 0,
|
|
370
|
+
value: "value" in e ? oe(e.value, m) : void 0
|
|
370
371
|
}), {
|
|
371
372
|
compositionValue: G,
|
|
372
373
|
compositionHandler: W,
|
|
@@ -374,15 +375,15 @@ const mt = (e, b) => {
|
|
|
374
375
|
keyDownHandler: K,
|
|
375
376
|
triggerValueChangeCallback: H
|
|
376
377
|
} = st({
|
|
377
|
-
value:
|
|
378
|
-
maxLength:
|
|
378
|
+
value: d,
|
|
379
|
+
maxLength: m,
|
|
379
380
|
onChange: z,
|
|
380
381
|
onKeyDown: T,
|
|
381
382
|
onPressEnter: M,
|
|
382
383
|
beforeTriggerValueChangeCallback: (a) => {
|
|
383
|
-
!("value" in e) && (
|
|
384
|
+
!("value" in e) && (m === void 0 || a.length <= m) && k(a);
|
|
384
385
|
}
|
|
385
|
-
}), B = G ||
|
|
386
|
+
}), B = G || d || "", { getPrefixCls: se, rtl: x } = ce(fe), r = se("textarea");
|
|
386
387
|
n && (f.resize = "none");
|
|
387
388
|
const E = () => {
|
|
388
389
|
if (i.current && i.current.focus) {
|
|
@@ -418,7 +419,7 @@ const mt = (e, b) => {
|
|
|
418
419
|
}),
|
|
419
420
|
[]
|
|
420
421
|
);
|
|
421
|
-
const V =
|
|
422
|
+
const V = d ? d.length : 0, Q = l && D || v, te = le(() => !m && l ? V > l : !1, [V, l, m]), Y = $ || (C || te ? "error" : void 0), J = O(
|
|
422
423
|
r,
|
|
423
424
|
{
|
|
424
425
|
[`${r}-${Y}`]: Y,
|
|
@@ -431,7 +432,7 @@ const mt = (e, b) => {
|
|
|
431
432
|
"textarea",
|
|
432
433
|
{
|
|
433
434
|
...ve(S, ["autoSize", "defaultValue"]),
|
|
434
|
-
maxLength:
|
|
435
|
+
maxLength: m,
|
|
435
436
|
ref: i,
|
|
436
437
|
style: { ...A, ...f },
|
|
437
438
|
className: J,
|
|
@@ -446,7 +447,7 @@ const mt = (e, b) => {
|
|
|
446
447
|
}
|
|
447
448
|
);
|
|
448
449
|
if (Q) {
|
|
449
|
-
const a = !n && v &&
|
|
450
|
+
const a = !n && v && d, [o, h] = x ? [l, V] : [V, l];
|
|
450
451
|
return /* @__PURE__ */ Z(
|
|
451
452
|
"div",
|
|
452
453
|
{
|
|
@@ -494,7 +495,7 @@ const mt = (e, b) => {
|
|
|
494
495
|
);
|
|
495
496
|
}
|
|
496
497
|
return F;
|
|
497
|
-
}, De = ue.forwardRef(
|
|
498
|
+
}, De = ue.forwardRef(dt);
|
|
498
499
|
De.displayName = "TextArea";
|
|
499
500
|
const pt = (e) => {
|
|
500
501
|
e.target.tagName !== "INPUT" && e.preventDefault();
|
|
@@ -526,7 +527,7 @@ function gt(e, b) {
|
|
|
526
527
|
disabled: I,
|
|
527
528
|
maxLength: S,
|
|
528
529
|
showWordLimit: l,
|
|
529
|
-
allowClear:
|
|
530
|
+
allowClear: m,
|
|
530
531
|
autoWidth: i
|
|
531
532
|
} = n, f = i ? {
|
|
532
533
|
minWidth: 0,
|
|
@@ -537,7 +538,7 @@ function gt(e, b) {
|
|
|
537
538
|
maxWidth: f == null ? void 0 : f.maxWidth,
|
|
538
539
|
width: f && "auto",
|
|
539
540
|
...p
|
|
540
|
-
},
|
|
541
|
+
}, d = ie(S) ? S.length : S, k = ie(S) && S.errorOnly ? void 0 : d, [G, W] = re(!1), w = ee(), K = ee(), H = ee(), [B, se] = he("", {
|
|
541
542
|
defaultValue: "defaultValue" in n ? oe(n.defaultValue, k) : void 0,
|
|
542
543
|
value: "value" in n ? oe(n.value, k) : void 0
|
|
543
544
|
});
|
|
@@ -563,9 +564,9 @@ function gt(e, b) {
|
|
|
563
564
|
"value" in n || se(o), (s = n.onChange) == null || s.call(n, o, h);
|
|
564
565
|
}, r = y("input"), E = n.size || A, q = "height" in n;
|
|
565
566
|
let j = z;
|
|
566
|
-
const V = B ? B.length : 0, Q = le(() => !k &&
|
|
567
|
-
if (
|
|
568
|
-
const [o, h] = L ? [
|
|
567
|
+
const V = B ? B.length : 0, Q = le(() => !k && d ? V > d : !1, [V, d, k]);
|
|
568
|
+
if (d && l) {
|
|
569
|
+
const [o, h] = L ? [d, V] : [V, d];
|
|
569
570
|
j = /* @__PURE__ */ Z(
|
|
570
571
|
"span",
|
|
571
572
|
{
|
|
@@ -610,7 +611,7 @@ function gt(e, b) {
|
|
|
610
611
|
onChange: x,
|
|
611
612
|
prefixCls: r,
|
|
612
613
|
value: B,
|
|
613
|
-
hasParent: !!J ||
|
|
614
|
+
hasParent: !!J || m,
|
|
614
615
|
size: E
|
|
615
616
|
}
|
|
616
617
|
), a = O(`${r}-inner-wrapper`, {
|
|
@@ -619,7 +620,7 @@ function gt(e, b) {
|
|
|
619
620
|
[`${r}-inner-wrapper-focus`]: G,
|
|
620
621
|
[`${r}-inner-wrapper-has-prefix`]: g,
|
|
621
622
|
[`${r}-inner-wrapper-${E}`]: E,
|
|
622
|
-
[`${r}-clear-wrapper`]:
|
|
623
|
+
[`${r}-clear-wrapper`]: m,
|
|
623
624
|
[`${r}-inner-wrapper-rtl`]: L
|
|
624
625
|
});
|
|
625
626
|
return J ? /* @__PURE__ */ c(
|
|
@@ -651,7 +652,7 @@ function gt(e, b) {
|
|
|
651
652
|
ge(`${r}-group-addafter`, v, M)
|
|
652
653
|
] })
|
|
653
654
|
}
|
|
654
|
-
) :
|
|
655
|
+
) : m ? /* @__PURE__ */ c(
|
|
655
656
|
"span",
|
|
656
657
|
{
|
|
657
658
|
ref: K,
|
package/input/InputElement.js
CHANGED
|
@@ -3,14 +3,14 @@ import Y from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import Z from "lodash/isFunction";
|
|
4
4
|
import _, { useState as ee, useRef as I, useImperativeHandle as te, useEffect as O } from "react";
|
|
5
5
|
import { u as oe } from "../chunk/XTEsYGuF.js";
|
|
6
|
-
import { I as ne } from "../chunk/
|
|
6
|
+
import { I as ne } from "../chunk/Byd0ztYY.js";
|
|
7
7
|
import { m as k } from "../chunk/JPPo5nY_.js";
|
|
8
8
|
import { f as re } from "../chunk/CftuXmo_.js";
|
|
9
|
-
import "../chunk/
|
|
9
|
+
import "../chunk/DAAff-FT.js";
|
|
10
10
|
import { o as ie } from "../chunk/BKKEev13.js";
|
|
11
11
|
import { r as ae } from "../chunk/CIRG541s.js";
|
|
12
12
|
import se from "./useComposition.js";
|
|
13
|
-
import "../chunk/
|
|
13
|
+
import "../chunk/C0pRaDCf.js";
|
|
14
14
|
import h from "lodash/isPlainObject.js";
|
|
15
15
|
const le = 2, ue = (o) => {
|
|
16
16
|
if (!o)
|
package/input/Password.js
CHANGED
|
@@ -2,9 +2,9 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@unicom-cloud/icons/IconUiEye";
|
|
3
3
|
import "@unicom-cloud/icons/IconUiEyeInvisible";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/Byd0ztYY.js";
|
|
6
6
|
import "../chunk/XTEsYGuF.js";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/DeV0v__J.js";
|
|
8
8
|
import "../chunk/JPPo5nY_.js";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
10
|
import { InputPassword as u } from "./Input.js";
|
package/input/Search.js
CHANGED
|
@@ -4,8 +4,8 @@ import "@unicom-cloud/icons/IconUiSearch";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../button/index.js";
|
|
7
|
-
import "../chunk/
|
|
8
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/Byd0ztYY.js";
|
|
8
|
+
import "../chunk/DeV0v__J.js";
|
|
9
9
|
import "../chunk/JPPo5nY_.js";
|
|
10
10
|
import "../chunk/BKKEev13.js";
|
|
11
11
|
import { InputSearch as h } from "./Input.js";
|
package/input/Textarea.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/Byd0ztYY.js";
|
|
5
5
|
import "../chunk/B2yFlXke.js";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/DeV0v__J.js";
|
|
7
7
|
import "../chunk/JPPo5nY_.js";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/DAAff-FT.js";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
|
-
import { InputTextArea as
|
|
10
|
+
import { InputTextArea as A } from "./Input.js";
|
|
11
11
|
import "./autoSizeTextAreaHeight.js";
|
|
12
12
|
import "./useComposition.js";
|
|
13
|
+
import "../chunk/C0pRaDCf.js";
|
|
13
14
|
import "lodash/isPlainObject.js";
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
A as default
|
|
16
17
|
};
|
package/input-number/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import "@unicom-cloud/icons/IconUiPlus";
|
|
|
5
5
|
import "@unicom-cloud/icons/IconUiUp";
|
|
6
6
|
import "lodash/isNumber";
|
|
7
7
|
import "react";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/Byd0ztYY.js";
|
|
9
9
|
import "../chunk/BFTV6myl.js";
|
|
10
10
|
import { InputNumber as I } from "../input/Input.js";
|
|
11
11
|
import "../chunk/JPPo5nY_.js";
|
package/input-tag/InputTag.js
CHANGED
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as c, jsxs as _, Fragment as Be } from "react/jsx-runtime";
|
|
2
2
|
import Ge from "@unicom-cloud/icons/IconUiClose";
|
|
3
|
-
import {
|
|
3
|
+
import { b as Ke } from "../chunk/Cj2SQJiO.js";
|
|
4
4
|
import $e from "lodash/isArray";
|
|
5
5
|
import Ce, { useContext as qe, useRef as C, useState as Xe, useImperativeHandle as Ye, useMemo as Je, useEffect as Qe } from "react";
|
|
6
|
-
import { a as Ze, I as et } from "../chunk/
|
|
6
|
+
import { a as Ze, I as et } from "../chunk/Byd0ztYY.js";
|
|
7
7
|
import tt from "../draggable/index.js";
|
|
8
8
|
import { u as ot } from "../chunk/BFTV6myl.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as ye } from "../chunk/DeV0v__J.js";
|
|
10
10
|
import at from "../input/InputElement.js";
|
|
11
11
|
import rt from "../overflow-ellipsis/index.js";
|
|
12
12
|
import nt from "../popover/index.js";
|
|
13
13
|
import st from "../tag/index.js";
|
|
14
14
|
import { m as A } from "../chunk/JPPo5nY_.js";
|
|
15
15
|
import { f as lt } from "../chunk/CftuXmo_.js";
|
|
16
|
-
import { g as
|
|
17
|
-
import "../chunk/
|
|
18
|
-
import { t as
|
|
16
|
+
import { g as it } from "../chunk/Dh7Osrvr.js";
|
|
17
|
+
import "../chunk/DAAff-FT.js";
|
|
18
|
+
import { t as ct } from "../chunk/BrOW642m.js";
|
|
19
19
|
import { o as ut } from "../chunk/BKKEev13.js";
|
|
20
|
+
import { P as Ie } from "../chunk/Bj4EV0eG.js";
|
|
21
|
+
import "../chunk/C0pRaDCf.js";
|
|
20
22
|
import Pe from "lodash/isPlainObject.js";
|
|
21
23
|
const X = 300, pt = "responsive", ft = `__input_${Math.random().toFixed(10).slice(2)}`, $ = (s) => s == null, M = (s) => {
|
|
22
24
|
s.target.tagName !== "INPUT" && s.preventDefault();
|
|
23
|
-
}, Ne = (s) => $e(s) ? s.map((
|
|
24
|
-
...
|
|
25
|
-
label: "label" in
|
|
26
|
-
value:
|
|
27
|
-
closable:
|
|
25
|
+
}, Ne = (s) => $e(s) ? s.map((i) => Pe(i) ? {
|
|
26
|
+
...i,
|
|
27
|
+
label: "label" in i ? i.label : i.value,
|
|
28
|
+
value: i.value,
|
|
29
|
+
closable: i.closable
|
|
28
30
|
} : {
|
|
29
|
-
label:
|
|
30
|
-
value:
|
|
31
|
+
label: i,
|
|
32
|
+
value: i
|
|
31
33
|
}) : [], dt = (s) => {
|
|
32
|
-
const
|
|
34
|
+
const i = C(0), d = C(s.length);
|
|
33
35
|
return Qe(() => {
|
|
34
|
-
|
|
35
|
-
}, [s]),
|
|
36
|
+
i.current = s.length === 0 && d.current > 0 ? X : 0, d.current = s.length;
|
|
37
|
+
}, [s]), i;
|
|
36
38
|
}, Te = ({
|
|
37
39
|
prefixCls: s,
|
|
38
|
-
children:
|
|
40
|
+
children: i,
|
|
39
41
|
animation: d
|
|
40
|
-
}) => /* @__PURE__ */
|
|
42
|
+
}) => /* @__PURE__ */ c("div", { className: `${s}-inner`, children: d ? /* @__PURE__ */ c(Ke, { component: null, children: i }) : i }), mt = {
|
|
41
43
|
animation: !0,
|
|
42
|
-
validate: (s,
|
|
44
|
+
validate: (s, i) => s && i.every((d) => d.value !== s)
|
|
43
45
|
};
|
|
44
|
-
function gt(s,
|
|
46
|
+
function gt(s, i) {
|
|
45
47
|
const {
|
|
46
48
|
getPrefixCls: d,
|
|
47
49
|
size: Ve,
|
|
@@ -86,13 +88,13 @@ function gt(s, c) {
|
|
|
86
88
|
onClear: U,
|
|
87
89
|
onClick: re,
|
|
88
90
|
...ze
|
|
89
|
-
} = f, o = d("input-tag"), V = "size" in f ? f.size : Ve, y = typeof m == "object" ? m.count : m, I = C(), B = C(null), G = C(), [w, ne] = Xe(!1), [a, Oe] =
|
|
91
|
+
} = f, o = d("input-tag"), V = "size" in f ? f.size : Ve, y = typeof m == "object" ? m.count : m, I = C(), B = C(null), G = C(), [w, ne] = Xe(!1), [a, Oe] = ye([], {
|
|
90
92
|
defaultValue: "defaultValue" in f ? Ne(f.defaultValue) : void 0,
|
|
91
93
|
value: "value" in f ? Ne(f.value) : void 0
|
|
92
|
-
}), [N, S] =
|
|
94
|
+
}), [N, S] = ye("", {
|
|
93
95
|
value: f.inputValue
|
|
94
96
|
}), Fe = dt(a), je = !!(xe && !g && !h);
|
|
95
|
-
Ye(
|
|
97
|
+
Ye(i, () => {
|
|
96
98
|
var e, t;
|
|
97
99
|
return {
|
|
98
100
|
blur: (e = I.current) == null ? void 0 : e.blur,
|
|
@@ -107,10 +109,10 @@ function gt(s, c) {
|
|
|
107
109
|
[...a.slice(0, t), ...a.slice(t + 1)],
|
|
108
110
|
"remove"
|
|
109
111
|
);
|
|
110
|
-
}, He =
|
|
112
|
+
}, He = it(
|
|
111
113
|
/* @__PURE__ */ new Map([
|
|
112
114
|
[
|
|
113
|
-
|
|
115
|
+
ct.key,
|
|
114
116
|
(e) => {
|
|
115
117
|
if (!e.target.value && a.length)
|
|
116
118
|
for (let t = a.length - 1; t >= 0; t--) {
|
|
@@ -136,14 +138,14 @@ function gt(s, c) {
|
|
|
136
138
|
} catch (e) {
|
|
137
139
|
console.error(e);
|
|
138
140
|
}
|
|
139
|
-
},
|
|
141
|
+
}, ie = (e, t, r = !1) => {
|
|
140
142
|
const n = e.value;
|
|
141
143
|
let l = e.label, u = !g && !h && e.closable !== !1;
|
|
142
144
|
const p = typeof n == "object" ? t : n, v = (Ue) => {
|
|
143
145
|
se(e, t, Ue);
|
|
144
146
|
};
|
|
145
147
|
if (!r && typeof y == "number" && t >= y)
|
|
146
|
-
return t === a.length - 1 ? (l =
|
|
148
|
+
return t === a.length - 1 ? (l = ce(a.length - Number(y)), u = !1, { valueKey: p, dom: l }) : { valueKey: p, dom: null };
|
|
147
149
|
if (oe)
|
|
148
150
|
return {
|
|
149
151
|
valueKey: p,
|
|
@@ -172,20 +174,20 @@ function gt(s, c) {
|
|
|
172
174
|
}),
|
|
173
175
|
title: typeof l == "string" ? l : void 0
|
|
174
176
|
};
|
|
175
|
-
return { valueKey: p, dom: /* @__PURE__ */
|
|
177
|
+
return { valueKey: p, dom: /* @__PURE__ */ c(st, { ...Le }, `${p}-tag`) };
|
|
176
178
|
};
|
|
177
|
-
function
|
|
179
|
+
function ce(e) {
|
|
178
180
|
const t = typeof m == "object" && m.render ? m.render : () => /* @__PURE__ */ _("span", { className: `${o}-tag-ellipsis`, children: [
|
|
179
181
|
"+",
|
|
180
182
|
e
|
|
181
183
|
] }), r = Pe(m) && m.popoverProps;
|
|
182
|
-
return /* @__PURE__ */
|
|
184
|
+
return /* @__PURE__ */ c(
|
|
183
185
|
nt,
|
|
184
186
|
{
|
|
185
|
-
content: /* @__PURE__ */
|
|
187
|
+
content: /* @__PURE__ */ c(Be, { children: a.map((n, l) => ({ tagValue: n, tagIndex: l })).slice(-e).map(
|
|
186
188
|
({ tagValue: n, tagIndex: l }) => {
|
|
187
189
|
var u;
|
|
188
|
-
return (u =
|
|
190
|
+
return (u = ie(n, l, !0)) == null ? void 0 : u.dom;
|
|
189
191
|
}
|
|
190
192
|
) }),
|
|
191
193
|
...r || {},
|
|
@@ -212,7 +214,7 @@ function gt(s, c) {
|
|
|
212
214
|
), r.length && T(a.concat(r), "add");
|
|
213
215
|
}
|
|
214
216
|
}
|
|
215
|
-
}, pe = _e && !h && !g && a.length ? /* @__PURE__ */
|
|
217
|
+
}, pe = _e && !h && !g && a.length ? /* @__PURE__ */ c(
|
|
216
218
|
et,
|
|
217
219
|
{
|
|
218
220
|
size: V,
|
|
@@ -221,7 +223,7 @@ function gt(s, c) {
|
|
|
221
223
|
var t;
|
|
222
224
|
e.stopPropagation(), T([], "clear"), w || (t = I.current) == null || t.focus(), U == null || U();
|
|
223
225
|
},
|
|
224
|
-
children: b && b.clearIcon || /* @__PURE__ */
|
|
226
|
+
children: b && b.clearIcon || /* @__PURE__ */ c(Ge, {})
|
|
225
227
|
},
|
|
226
228
|
"clearIcon"
|
|
227
229
|
) : null, fe = h || Ee, K = Je(() => {
|
|
@@ -229,9 +231,9 @@ function gt(s, c) {
|
|
|
229
231
|
return a.map((r, n) => {
|
|
230
232
|
const l = e[r.value] || 0, u = l >= 1;
|
|
231
233
|
e[r.value] = l + 1;
|
|
232
|
-
const { dom: p, valueKey: v } =
|
|
233
|
-
return Ce.isValidElement(p) ? /* @__PURE__ */
|
|
234
|
-
|
|
234
|
+
const { dom: p, valueKey: v } = ie(r, n);
|
|
235
|
+
return Ce.isValidElement(p) ? /* @__PURE__ */ c(
|
|
236
|
+
Ie,
|
|
235
237
|
{
|
|
236
238
|
timeout: X,
|
|
237
239
|
classNames: "zoomIn",
|
|
@@ -241,12 +243,12 @@ function gt(s, c) {
|
|
|
241
243
|
) : p;
|
|
242
244
|
});
|
|
243
245
|
}, [a]), q = [
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
|
|
246
|
+
/* @__PURE__ */ c(
|
|
247
|
+
Ie,
|
|
246
248
|
{
|
|
247
249
|
timeout: X,
|
|
248
250
|
classNames: "zoomIn",
|
|
249
|
-
children: /* @__PURE__ */
|
|
251
|
+
children: /* @__PURE__ */ c(
|
|
250
252
|
at,
|
|
251
253
|
{
|
|
252
254
|
autoComplete: "off",
|
|
@@ -294,7 +296,7 @@ function gt(s, c) {
|
|
|
294
296
|
[`${o}-has-suffix`]: de,
|
|
295
297
|
[`${o}-has-placeholder`]: !a.length,
|
|
296
298
|
[`${o}-rtl`]: Y
|
|
297
|
-
}), R = { style: Se, className: we }, be = /* @__PURE__ */
|
|
299
|
+
}), R = { style: Se, className: we }, be = /* @__PURE__ */ c(
|
|
298
300
|
"div",
|
|
299
301
|
{
|
|
300
302
|
...ut(ze, ["status", "size", "defaultValue", "value", "inputValue"]),
|
|
@@ -309,13 +311,13 @@ function gt(s, c) {
|
|
|
309
311
|
},
|
|
310
312
|
ref: D ? void 0 : G,
|
|
311
313
|
children: /* @__PURE__ */ _("div", { className: `${o}-view`, children: [
|
|
312
|
-
We && /* @__PURE__ */
|
|
313
|
-
je ? /* @__PURE__ */
|
|
314
|
+
We && /* @__PURE__ */ c("div", { className: `${o}-prefix`, onMouseDown: M, children: Q }),
|
|
315
|
+
je ? /* @__PURE__ */ c(
|
|
314
316
|
Te,
|
|
315
317
|
{
|
|
316
318
|
prefixCls: o,
|
|
317
319
|
animation: J,
|
|
318
|
-
children: /* @__PURE__ */
|
|
320
|
+
children: /* @__PURE__ */ c(
|
|
319
321
|
tt,
|
|
320
322
|
{
|
|
321
323
|
itemWrapperStyle: { display: "inline-block" },
|
|
@@ -332,17 +334,17 @@ function gt(s, c) {
|
|
|
332
334
|
)
|
|
333
335
|
},
|
|
334
336
|
"transitionGroupWithDrag"
|
|
335
|
-
) : /* @__PURE__ */
|
|
337
|
+
) : /* @__PURE__ */ c(
|
|
336
338
|
Te,
|
|
337
339
|
{
|
|
338
340
|
prefixCls: o,
|
|
339
341
|
animation: J,
|
|
340
|
-
children: y === pt ? /* @__PURE__ */
|
|
342
|
+
children: y === pt ? /* @__PURE__ */ c(
|
|
341
343
|
rt,
|
|
342
344
|
{
|
|
343
345
|
items: K,
|
|
344
346
|
suffixItems: q,
|
|
345
|
-
ellipsisNode: ({ ellipsisCount: e }) =>
|
|
347
|
+
ellipsisNode: ({ ellipsisCount: e }) => ce(e)
|
|
346
348
|
}
|
|
347
349
|
) : K.concat(q)
|
|
348
350
|
},
|
|
@@ -368,9 +370,9 @@ function gt(s, c) {
|
|
|
368
370
|
),
|
|
369
371
|
ref: G,
|
|
370
372
|
children: [
|
|
371
|
-
me && /* @__PURE__ */
|
|
373
|
+
me && /* @__PURE__ */ c("div", { className: `${o}-addbefore`, children: ee }),
|
|
372
374
|
be,
|
|
373
|
-
ge && /* @__PURE__ */
|
|
375
|
+
ge && /* @__PURE__ */ c("div", { className: `${o}-addafter`, children: te })
|
|
374
376
|
]
|
|
375
377
|
}
|
|
376
378
|
) : be;
|
package/layout/Content.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f, useContext as i } from "react";
|
|
3
|
-
import { a as l } from "../chunk/
|
|
3
|
+
import { a as l } from "../chunk/Byd0ztYY.js";
|
|
4
4
|
import { m as p } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
function C(t, o) {
|
|
6
6
|
const { className: n, children: e, ...s } = t, { getPrefixCls: r } = i(l), a = r("layout-content"), m = p(a, n);
|
package/layout/Footer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c, useContext as i } from "react";
|
|
3
|
-
import { a as l } from "../chunk/
|
|
3
|
+
import { a as l } from "../chunk/Byd0ztYY.js";
|
|
4
4
|
import { m as p } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
function u(o, t) {
|
|
6
6
|
const { className: e, children: r, ...s } = o, { getPrefixCls: a } = i(l), m = a("layout-footer"), n = p(m, e);
|