@unicom-cloud/ui 0.8.57 → 0.8.59
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 +15 -15
- package/Alert.js +5 -5
- package/Anchor.js +1 -1
- package/AutoComplete.js +28 -28
- package/Avatar.js +11 -11
- package/BackTop.js +28 -28
- package/Badge.js +10 -10
- package/Breadcrumb.js +6 -6
- package/Button.js +11 -10
- package/Calendar.js +8 -8
- package/Card.js +3 -3
- package/Carousel.js +7 -7
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +582 -11
- package/Comment.js +7 -7
- package/ConfigProvider.js +2 -2
- package/Copy.js +6 -6
- package/DatePicker.js +14 -12
- package/Descriptions.js +3 -3
- package/Divider.js +3 -3
- package/Draggable.js +12 -12
- package/Drawer.js +1 -1
- package/Dropdown.js +5 -5
- package/Empty.js +3 -3
- package/Form.js +1410 -10
- package/Grid.js +14 -14
- package/Icon.js +2 -2
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/Input.js +2 -2
- package/InputNumber.js +8 -8
- package/InputTag.js +1 -1
- package/Layout.js +8 -8
- package/Link.js +13 -13
- package/List.js +21 -21
- package/Mentions.js +30 -30
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +3 -3
- package/Notification.js +4 -4
- package/OverflowEllipsis.js +9 -9
- package/PageHeader.js +10 -10
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +5 -5
- package/Popover.js +7 -7
- package/Portal.js +1 -1
- package/Progress.js +15 -15
- package/Radio.js +2 -2
- package/Rate.js +10 -10
- package/ResizeBox.js +10 -11
- package/Result.js +11 -11
- package/Select.js +1 -1
- package/SelectView.js +40 -41
- package/Skeleton.js +4 -4
- package/Slider.js +9 -9
- package/Space.js +12 -12
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +11 -11
- package/Statistic.js +43 -43
- package/Steps.js +5 -5
- package/Switch.js +15 -16
- package/Table.js +17 -17
- package/Tabs.js +1 -1
- package/Tag.js +5 -5
- package/TimePicker.js +38 -38
- package/Timeline.js +1 -1
- package/Tooltip.js +9 -9
- package/Transfer.js +26 -26
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +11 -11
- package/Typography.js +1 -1
- package/Upload.js +4 -1
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{m_kOQCiU.js → -LZOUh53.js} +1 -1
- package/chunk/{CXNW5Y2a.js → -jdfq71f.js} +1 -1
- package/chunk/{CkAOsst1.js → 4-gvEY5y.js} +30 -30
- package/chunk/{DQXq1QT0.js → B0GOLsj_.js} +1 -1
- package/chunk/{BMvZCjSU.js → B16KHtX-.js} +16 -16
- package/chunk/{CggcswbO.js → B2vORJQ8.js} +19 -15
- package/chunk/{BCk8e9fj.js → B7Zsp3gO.js} +1 -1
- package/chunk/B8QV6E2b.js +34 -0
- package/chunk/{BeM2hfks.js → BBVjSFnw.js} +27 -23
- package/chunk/{1mEO29GP.js → BDjXkzNj.js} +1 -1
- package/chunk/{BuEC_zcc.js → BEDYCG-I.js} +31 -31
- package/chunk/{B45v5S9k.js → BHn4xgbv.js} +1 -1
- package/chunk/{CF3Telny.js → BJ_7JTqC.js} +3 -3
- package/chunk/{BM6dpkeM.js → BLSiP_gg.js} +1 -1
- package/chunk/{9Gh1afjL.js → BMJfSSLX.js} +1 -1
- package/chunk/{DBJ8d0o0.js → BNHrEI0Y.js} +31 -31
- package/chunk/{BP7xX86Q.js → BPZ-6HKJ.js} +131 -134
- package/chunk/{DxNRWF67.js → BVLwPZis.js} +11 -11
- package/chunk/{BpwDupra.js → BYhtrDV3.js} +9 -9
- package/chunk/{D6mVoX-C.js → B_nfMl0e.js} +1 -1
- package/chunk/{BWx1cVT_.js → BcS17Pzy.js} +1 -1
- package/chunk/Bdh4XVuf.js +1487 -0
- package/chunk/{BkHxm4sv.js → BdiEwtQO.js} +1 -1
- package/chunk/{DDda6s72.js → BjSHZA0m.js} +6 -6
- package/chunk/{C7Okdv4u.js → Bpug_KxP.js} +1 -1
- package/chunk/BzPkh4Zv.js +11 -0
- package/chunk/{CwXmtKib.js → C1D7T29r.js} +35 -35
- package/chunk/{DYZzQ2uT.js → C1u_ckwU.js} +1 -1
- package/chunk/C1xMmQIZ.js +468 -0
- package/chunk/C2lIz2F9.js +60 -0
- package/chunk/{Be7oeWU8.js → C43Hv2Bl.js} +1 -1
- package/chunk/{CR4u270n.js → C5AQWbC4.js} +79 -79
- package/chunk/{fqgc8r6C.js → C9vsih_D.js} +1 -1
- package/chunk/CANaGbGR.js +154 -0
- package/chunk/{BA02BFUV.js → CAfR2wLq.js} +1 -1
- package/chunk/{CcX2pBUh.js → CAfecMDF.js} +1 -1
- package/chunk/{BHK9zpXn.js → CKp4rZnD.js} +1 -1
- package/chunk/CTxjmYmx.js +19 -0
- package/chunk/{BqxwlITu.js → CV2Aqv9q.js} +1 -1
- package/chunk/{bsawGxt8.js → CYdarMv9.js} +1 -1
- package/chunk/{DafaH1Qt.js → C_S5Mdvd.js} +43 -44
- package/chunk/{DkIjpuBZ.js → Cbd50gx8.js} +11 -11
- package/chunk/{D5p8q9Pa.js → CbiWdbr_.js} +12 -12
- package/chunk/{cUuQh7L_.js → CmB-TL7C.js} +1 -1
- package/chunk/{BbYzi8M0.js → CuOl4X0X.js} +4 -4
- package/chunk/{BHLTzWzi.js → D-ER56Sf.js} +1 -1
- package/chunk/{BK1FKNAX.js → D-aYnb6u.js} +1 -1
- package/chunk/{DalIRWr7.js → D2HkyI6A.js} +9 -9
- package/chunk/D3NFxdmG.js +518 -0
- package/chunk/{C2fspJbE.js → D3xQFJcO.js} +1 -1
- package/chunk/{Lk60-jkf.js → DApXtulb.js} +4 -0
- package/chunk/{sl8s35SK.js → DJcEys80.js} +1 -1
- package/chunk/{B1S1OEw6.js → DLIm6rRJ.js} +1 -1
- package/chunk/{C95ipQ6b.js → DOWEHtqM.js} +1 -1
- package/chunk/{aM2ePYrq.js → DSGRHf-1.js} +132 -132
- package/chunk/{D9TqtOhq.js → DT37l12z.js} +1 -1
- package/chunk/{B6fn5y_s.js → DW-B7npC.js} +1 -1
- package/chunk/D_-UD4vO.js +119 -0
- package/chunk/{Dtnux4qL.js → D_MTFBb0.js} +1 -1
- package/chunk/{WkB0MERB.js → DhBo0pPJ.js} +27 -27
- package/chunk/DmUhn9ib.js +961 -0
- package/chunk/{Bny52uiG.js → DpfUGhi4.js} +10 -10
- package/chunk/{DhLbnw3R.js → Dx_5J4fO.js} +1 -1
- package/chunk/{B9PsJar0.js → Dy487FZ1.js} +1 -1
- package/chunk/{D6RTBH4C.js → IooeSKJJ.js} +10 -10
- package/chunk/Kbr6FzOG.js +745 -0
- package/chunk/{CwjaGytU.js → RMBPs_Ry.js} +32 -32
- package/chunk/Uz-rNulO.js +98 -0
- package/chunk/V6euPXVB.js +1025 -0
- package/chunk/{Bv8ZRDFt.js → YIlBPVAs.js} +14 -14
- package/chunk/{DPvnQJ-H.js → cDZI_t6o.js} +1 -1
- package/chunk/{C-w9pFY-.js → cZiP8FvM.js} +3 -3
- package/chunk/{DJmWXheU.js → eK7lxdak.js} +8 -8
- package/chunk/{Dg2DmtzA.js → gIbzjQ-X.js} +5 -6
- package/chunk/{CPl52AZh.js → sScV-J56.js} +1 -1
- package/chunk/{BbI3gqVr.js → wI2I1qb0.js} +1 -1
- package/hooks/index.js +32 -32
- package/hooks/use-verification-code.js +23 -22
- package/hooks/use-watermark.js +2 -1
- package/hooks/useComputedState.js +2 -1
- package/hooks/useCreate.js +2 -1
- package/hooks/useForceUpdate.js +2 -1
- package/hooks/useId.js +2 -1
- package/hooks/useInView.js +5 -4
- package/hooks/useIntersectionObserver.js +11 -11
- package/hooks/useIsFirstRender.js +2 -1
- package/hooks/useIsomorphicLayoutEffect.js +2 -1
- package/hooks/useKeyboardEvent.js +3 -2
- package/hooks/useMedia.js +2 -1
- package/hooks/useMergeProps.js +2 -1
- package/hooks/useMergeValue.js +4 -3
- package/hooks/useOverflowHidden.js +2 -1
- package/hooks/useOverrideRef.js +2 -1
- package/hooks/usePersistCallback.js +2 -1
- package/hooks/usePrevious.js +2 -1
- package/hooks/useRefs.js +2 -1
- package/hooks/useResizeObserver.js +2 -1
- package/hooks/useStateCallback.js +2 -1
- package/hooks/useStateWithPromise.js +2 -1
- package/hooks/useUpdateEffect.js +2 -1
- package/hooks/useWatch.js +3 -2
- package/hooks/useWindowSize.js +2 -1
- package/icons.js +35 -35
- package/index.js +484 -376
- package/locale/en-US.js +3 -11
- package/locale/tr-TR.js +3 -11
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/anchor/Anchor.d.ts +1 -1
- package/types/button/index.d.ts +3 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +1 -1
- package/types/color-picker/hooks/useControlBlock.d.ts +1 -1
- package/types/config-provider/interface.d.ts +1 -0
- package/types/date-picker/PickerRange.d.ts +1 -1
- package/types/hooks/use-verification-code/index.d.ts +2 -1
- package/types/hooks/use-watermark/index.d.ts +2 -1
- package/types/hooks/useComputedState.d.ts +2 -2
- package/types/hooks/useCreate.d.ts +2 -1
- package/types/hooks/useForceUpdate.d.ts +2 -1
- package/types/hooks/useId.d.ts +2 -1
- package/types/hooks/useInView.d.ts +1 -1
- package/types/hooks/useIntersectionObserver.d.ts +1 -1
- package/types/hooks/useIsFirstRender.d.ts +2 -1
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -1
- package/types/hooks/useKeyboardEvent.d.ts +2 -2
- package/types/hooks/useMedia.d.ts +1 -1
- package/types/hooks/useMergeProps.d.ts +2 -1
- package/types/hooks/useMergeValue.d.ts +2 -1
- package/types/hooks/useOverflowHidden.d.ts +2 -2
- package/types/hooks/useOverrideRef.d.ts +2 -1
- package/types/hooks/usePersistCallback.d.ts +2 -1
- package/types/hooks/usePrevious.d.ts +2 -1
- package/types/hooks/useRefs.d.ts +2 -1
- package/types/hooks/useResizeObserver.d.ts +2 -1
- package/types/hooks/useStateCallback.d.ts +1 -1
- package/types/hooks/useStateWithPromise.d.ts +1 -1
- package/types/hooks/useUpdateEffect.d.ts +2 -1
- package/types/hooks/useWatch.d.ts +2 -1
- package/types/hooks/useWindowSize.d.ts +1 -1
- package/types/image/interface.d.ts +1 -1
- package/types/index.d.ts +13 -22
- package/types/table/interface.d.ts +3 -1
- package/types/upload/Upload.d.ts +2 -1
- package/types/upload/index.d.ts +3 -1
- package/types/upload/request_.d.ts +3 -0
- package/types/utils/caseName.d.ts +2 -0
- package/types/utils/fileToURL.d.ts +2 -0
- package/types/utils/fillNBSP.d.ts +1 -1
- package/types/utils/index.d.ts +37 -0
- package/types/utils/is.d.ts +2 -2
- package/types/utils/lodash.d.ts +4 -0
- package/types/utils/scrollIntoView.d.ts +2 -1
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/caseName.js +20 -0
- package/utils/className.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/fileToURL.js +4 -0
- package/utils/index.js +219 -0
- package/utils/is.js +95 -93
- package/utils/keyCode.js +10 -46
- package/utils/lodash.js +8 -0
- package/utils/mergedToString.js +11 -10
- package/utils/reactDOM.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/scrollIntoView.js +8 -7
- package/chunk/5pZ3ayqs.js +0 -29
- package/chunk/Bl-ODC57.js +0 -945
- package/chunk/BlKc_pDZ.js +0 -678
- package/chunk/CiEln_Q1.js +0 -517
- package/chunk/CiZVOdJ3.js +0 -122
- package/chunk/DMWMrXg1.js +0 -964
- package/chunk/DUxWiN2U.js +0 -1465
- package/chunk/Dbk4DVhB.js +0 -855
- package/chunk/Do1aMgY3.js +0 -12
- package/chunk/HlP8inLK.js +0 -1796
- package/chunk/V_IcWDFx.js +0 -49
- /package/types/utils/{mergeProp.d.ts → mergeProps.d.ts} +0 -0
- /package/utils/{mergeProp.js → mergeProps.js} +0 -0
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { jsx as i, jsxs as R, Fragment as Ge } from "react/jsx-runtime";
|
|
2
|
-
import { I as Ke } from "./
|
|
3
|
-
import { P as
|
|
2
|
+
import { I as Ke } from "./BHn4xgbv.js";
|
|
3
|
+
import { P as ye, _ as qe } from "./BPZ-6HKJ.js";
|
|
4
4
|
import $e from "lodash/isArray";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { I as ot } from "./
|
|
5
|
+
import _e, { useContext as Xe, useRef as C, useState as Ye, useImperativeHandle as Je, useMemo as Qe, useEffect as Ze } from "react";
|
|
6
|
+
import { d as et, I as tt } from "./Bdh4XVuf.js";
|
|
7
|
+
import { useMergeValue as be } from "../hooks/useMergeValue.js";
|
|
8
|
+
import { I as ot } from "./gIbzjQ-X.js";
|
|
9
9
|
import at from "../Tag.js";
|
|
10
|
-
import { y as S } from "./
|
|
10
|
+
import { y as S } from "./BzPkh4Zv.js";
|
|
11
11
|
import rt from "../utils/getHotkeyHandler.js";
|
|
12
|
-
import {
|
|
12
|
+
import { B as nt } from "./C2lIz2F9.js";
|
|
13
13
|
import st from "../Draggable.js";
|
|
14
|
-
import lt from "../hooks/useMergeProps.js";
|
|
14
|
+
import { useMergeProps as lt } from "../hooks/useMergeProps.js";
|
|
15
15
|
import ct from "../utils/fillNBSP.js";
|
|
16
16
|
import it from "../utils/omit.js";
|
|
17
17
|
import ut from "../Popover.js";
|
|
18
18
|
import pt from "../OverflowEllipsis.js";
|
|
19
19
|
import "../utils/is.js";
|
|
20
|
-
import "
|
|
21
|
-
|
|
22
|
-
const Ne = "__arco_value_tag_placeholder", Y = 300, ft = "responsive", dt = `__input_${Math.random().toFixed(10).slice(2)}`, T = (s) => s == null, E = (s) => {
|
|
20
|
+
import Ve from "lodash/isPlainObject";
|
|
21
|
+
const Ne = "__pqb_value_tag_placeholder", Y = 300, ft = "responsive", dt = `__input_${Math.random().toFixed(10).slice(2)}`, T = (s) => s == null, E = (s) => {
|
|
23
22
|
s.target.tagName !== "INPUT" && s.preventDefault();
|
|
24
|
-
}, Te = (s) => $e(s) ? s.map((l) =>
|
|
23
|
+
}, Te = (s) => $e(s) ? s.map((l) => Ve(l) ? {
|
|
25
24
|
...l,
|
|
26
25
|
label: "label" in l ? l.label : l.value,
|
|
27
26
|
value: l.value,
|
|
@@ -38,7 +37,7 @@ const Ne = "__arco_value_tag_placeholder", Y = 300, ft = "responsive", dt = `__i
|
|
|
38
37
|
prefixCls: s,
|
|
39
38
|
children: l,
|
|
40
39
|
animation: d
|
|
41
|
-
}) => /* @__PURE__ */ i("div", { className: `${s}-inner`, children: d ? /* @__PURE__ */ i(
|
|
40
|
+
}) => /* @__PURE__ */ i("div", { className: `${s}-inner`, children: d ? /* @__PURE__ */ i(qe, { component: null, children: l }) : l }), gt = {
|
|
42
41
|
animation: !0,
|
|
43
42
|
validate: (s, l) => s && l.every((d) => d.value !== s)
|
|
44
43
|
};
|
|
@@ -48,7 +47,7 @@ function ht(s, l) {
|
|
|
48
47
|
size: Pe,
|
|
49
48
|
componentConfig: M,
|
|
50
49
|
rtl: J
|
|
51
|
-
} =
|
|
50
|
+
} = Xe(et), p = lt(
|
|
52
51
|
s,
|
|
53
52
|
gt,
|
|
54
53
|
M == null ? void 0 : M.InputTag
|
|
@@ -87,17 +86,17 @@ function ht(s, l) {
|
|
|
87
86
|
onClear: B,
|
|
88
87
|
onClick: re,
|
|
89
88
|
...xe
|
|
90
|
-
} = p, a = d("input-tag"),
|
|
89
|
+
} = p, a = d("input-tag"), _ = "size" in p ? p.size : Pe, V = typeof m == "object" ? m.count : m, y = C(), G = C(null), K = C(), [P, ne] = Ye(!1), [n, Le] = be([], {
|
|
91
90
|
defaultValue: "defaultValue" in p ? Te(p.defaultValue) : void 0,
|
|
92
91
|
value: "value" in p ? Te(p.value) : void 0
|
|
93
|
-
}), [
|
|
92
|
+
}), [b, w] = be("", {
|
|
94
93
|
value: p.inputValue
|
|
95
94
|
}), Fe = mt(n), He = !!(ze && !g && !v);
|
|
96
95
|
Je(l, () => {
|
|
97
96
|
var e, t;
|
|
98
97
|
return {
|
|
99
|
-
blur: (e =
|
|
100
|
-
focus: (t =
|
|
98
|
+
blur: (e = y.current) == null ? void 0 : e.blur,
|
|
99
|
+
focus: (t = y.current) == null ? void 0 : t.focus,
|
|
101
100
|
getRootDOMNode: () => K.current
|
|
102
101
|
};
|
|
103
102
|
}, []);
|
|
@@ -126,11 +125,11 @@ function ht(s, l) {
|
|
|
126
125
|
])
|
|
127
126
|
), le = async () => {
|
|
128
127
|
try {
|
|
129
|
-
const e = typeof $ == "function" ? await $(
|
|
128
|
+
const e = typeof $ == "function" ? await $(b, n) : !0;
|
|
130
129
|
e && (N(
|
|
131
130
|
n.concat({
|
|
132
|
-
value: e === !0 ?
|
|
133
|
-
label:
|
|
131
|
+
value: e === !0 ? b : e,
|
|
132
|
+
label: b
|
|
134
133
|
}),
|
|
135
134
|
"add"
|
|
136
135
|
), w(""));
|
|
@@ -142,9 +141,9 @@ function ht(s, l) {
|
|
|
142
141
|
const h = (Be) => {
|
|
143
142
|
se(e, t, Be);
|
|
144
143
|
};
|
|
145
|
-
if (!o && typeof
|
|
144
|
+
if (!o && typeof V == "number" && t >= V)
|
|
146
145
|
if (t === n.length - 1) {
|
|
147
|
-
if (c = ie(n.length - Number(
|
|
146
|
+
if (c = ie(n.length - Number(V)), r = Ne, f = !1, u = Ne, !O)
|
|
148
147
|
return { valueKey: u, dom: c };
|
|
149
148
|
} else
|
|
150
149
|
return { valueKey: u, dom: null };
|
|
@@ -186,7 +185,7 @@ function ht(s, l) {
|
|
|
186
185
|
return /* @__PURE__ */ i(
|
|
187
186
|
ut,
|
|
188
187
|
{
|
|
189
|
-
...
|
|
188
|
+
...Ve(m) ? m.popoverProps : {},
|
|
190
189
|
children: t(e, n),
|
|
191
190
|
content: /* @__PURE__ */ i(Ge, { children: n.map((o, r) => ({ tagValue: o, tagIndex: r })).slice(-e).map(
|
|
192
191
|
({ tagValue: o, tagIndex: r }) => {
|
|
@@ -219,23 +218,23 @@ function ht(s, l) {
|
|
|
219
218
|
}, pe = Se && !v && !g && n.length ? /* @__PURE__ */ i(
|
|
220
219
|
tt,
|
|
221
220
|
{
|
|
222
|
-
size:
|
|
221
|
+
size: _,
|
|
223
222
|
className: `${a}-clear-icon`,
|
|
224
223
|
onClick: (e) => {
|
|
225
224
|
var t;
|
|
226
|
-
e.stopPropagation(), N([], "clear"), P || (t =
|
|
225
|
+
e.stopPropagation(), N([], "clear"), P || (t = y.current) == null || t.focus(), B == null || B();
|
|
227
226
|
},
|
|
228
227
|
children: I && I.clearIcon || /* @__PURE__ */ i(Ke, {})
|
|
229
228
|
},
|
|
230
229
|
"clearIcon"
|
|
231
|
-
) : null, fe = v || ke,
|
|
230
|
+
) : null, fe = v || ke, q = Qe(() => {
|
|
232
231
|
const e = {};
|
|
233
232
|
return n.map((o, r) => {
|
|
234
233
|
const c = e[o.value] || 0, f = c >= 1;
|
|
235
234
|
e[o.value] = c + 1;
|
|
236
235
|
const { dom: u, valueKey: h } = ce(o, r);
|
|
237
|
-
return
|
|
238
|
-
|
|
236
|
+
return _e.isValidElement(u) ? /* @__PURE__ */ i(
|
|
237
|
+
ye,
|
|
239
238
|
{
|
|
240
239
|
timeout: Y,
|
|
241
240
|
classNames: "zoomIn",
|
|
@@ -244,9 +243,9 @@ function ht(s, l) {
|
|
|
244
243
|
f ? `${h}-${r}` : h
|
|
245
244
|
) : u;
|
|
246
245
|
});
|
|
247
|
-
}, [n]),
|
|
246
|
+
}, [n]), X = [
|
|
248
247
|
/* @__PURE__ */ i(
|
|
249
|
-
|
|
248
|
+
ye,
|
|
250
249
|
{
|
|
251
250
|
timeout: Y,
|
|
252
251
|
classNames: "zoomIn",
|
|
@@ -254,10 +253,10 @@ function ht(s, l) {
|
|
|
254
253
|
ot,
|
|
255
254
|
{
|
|
256
255
|
autoComplete: "off",
|
|
257
|
-
size:
|
|
256
|
+
size: _,
|
|
258
257
|
disabled: fe,
|
|
259
258
|
readOnly: g,
|
|
260
|
-
ref:
|
|
259
|
+
ref: y,
|
|
261
260
|
autoFocus: Ee,
|
|
262
261
|
placeholder: n.length ? "" : De,
|
|
263
262
|
prefixCls: `${a}-input`,
|
|
@@ -266,7 +265,7 @@ function ht(s, l) {
|
|
|
266
265
|
pure: !0
|
|
267
266
|
},
|
|
268
267
|
onPressEnter: async (e) => {
|
|
269
|
-
|
|
268
|
+
b && e.preventDefault(), U == null || U(e), await le();
|
|
270
269
|
},
|
|
271
270
|
onFocus: (e) => {
|
|
272
271
|
!fe && !g && (ne(!0), H == null || H(e));
|
|
@@ -274,7 +273,7 @@ function ht(s, l) {
|
|
|
274
273
|
onBlur: async (e) => {
|
|
275
274
|
ne(!1), j == null || j(e), Oe && await le(), w("");
|
|
276
275
|
},
|
|
277
|
-
value:
|
|
276
|
+
value: b,
|
|
278
277
|
onChange: (e, t) => {
|
|
279
278
|
z == null || z(e, t), t.nativeEvent.inputType !== "insertFromPaste" && ue(e), G.current ? w("") : w(e);
|
|
280
279
|
},
|
|
@@ -290,7 +289,7 @@ function ht(s, l) {
|
|
|
290
289
|
dt
|
|
291
290
|
)
|
|
292
291
|
], Ue = !T(Z), de = !T(ee) || !T(pe), me = !T(te), ge = !T(oe), A = me || ge, he = p.status || (Re ? "error" : void 0), ve = S(a, {
|
|
293
|
-
[`${a}-size-${
|
|
292
|
+
[`${a}-size-${_}`]: _,
|
|
294
293
|
[`${a}-disabled`]: v,
|
|
295
294
|
[`${a}-${he}`]: he,
|
|
296
295
|
[`${a}-focus`]: P,
|
|
@@ -309,7 +308,7 @@ function ht(s, l) {
|
|
|
309
308
|
},
|
|
310
309
|
onClick: (e) => {
|
|
311
310
|
var t;
|
|
312
|
-
!P && ((t =
|
|
311
|
+
!P && ((t = y.current) == null || t.focus()), re && re(e);
|
|
313
312
|
},
|
|
314
313
|
ref: A ? void 0 : K,
|
|
315
314
|
children: /* @__PURE__ */ R("div", { className: `${a}-view`, children: [
|
|
@@ -331,19 +330,19 @@ function ht(s, l) {
|
|
|
331
330
|
return r.splice(u ? f : f - 1, 0, h), r;
|
|
332
331
|
}(n, t, e), "sort");
|
|
333
332
|
},
|
|
334
|
-
children:
|
|
333
|
+
children: q.concat(X)
|
|
335
334
|
}
|
|
336
335
|
)
|
|
337
336
|
},
|
|
338
337
|
"transitionGroupWithDrag"
|
|
339
|
-
) : /* @__PURE__ */ i(Ce, { prefixCls: a, animation: Q, children:
|
|
338
|
+
) : /* @__PURE__ */ i(Ce, { prefixCls: a, animation: Q, children: V === ft ? /* @__PURE__ */ i(
|
|
340
339
|
pt,
|
|
341
340
|
{
|
|
342
|
-
items:
|
|
343
|
-
suffixItems:
|
|
341
|
+
items: q,
|
|
342
|
+
suffixItems: X,
|
|
344
343
|
ellipsisNode: ({ ellipsisCount: e }) => ie(e)
|
|
345
344
|
}
|
|
346
|
-
) :
|
|
345
|
+
) : q.concat(X) }),
|
|
347
346
|
de && /* @__PURE__ */ R("div", { className: `${a}-suffix`, onMouseDown: E, children: [
|
|
348
347
|
pe,
|
|
349
348
|
ee
|
|
@@ -371,7 +370,7 @@ function ht(s, l) {
|
|
|
371
370
|
}
|
|
372
371
|
) : Ie;
|
|
373
372
|
}
|
|
374
|
-
const vt =
|
|
373
|
+
const vt = _e.forwardRef(
|
|
375
374
|
ht
|
|
376
375
|
);
|
|
377
376
|
vt.displayName = "InputTag";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsxs as ye, jsx as E } from "react/jsx-runtime";
|
|
2
|
-
import { G as Se, V as Ve, z as ve } from "./
|
|
2
|
+
import { G as Se, V as Ve, z as ve } from "./BBVjSFnw.js";
|
|
3
3
|
import Pe from "lodash/debounce";
|
|
4
4
|
import B from "lodash/isArray";
|
|
5
5
|
import W from "lodash/isFunction";
|
|
6
6
|
import Ke from "lodash/isNil";
|
|
7
7
|
import { forwardRef as ue, useRef as R, useCallback as K, useMemo as Z, useImperativeHandle as de, useContext as fe, useState as te, useEffect as ie } from "react";
|
|
8
|
-
import {
|
|
9
|
-
import Ie from "../hooks/useId.js";
|
|
10
|
-
import _e from "../hooks/useIsFirstRender.js";
|
|
11
|
-
import Te from "../hooks/useMergeProps.js";
|
|
12
|
-
import oe from "../hooks/useMergeValue.js";
|
|
8
|
+
import { d as he } from "./Bdh4XVuf.js";
|
|
9
|
+
import { useId as Ie } from "../hooks/useId.js";
|
|
10
|
+
import { useIsFirstRender as _e } from "../hooks/useIsFirstRender.js";
|
|
11
|
+
import { useMergeProps as Te } from "../hooks/useMergeProps.js";
|
|
12
|
+
import { useMergeValue as oe } from "../hooks/useMergeValue.js";
|
|
13
13
|
import Oe from "../SelectView.js";
|
|
14
|
-
import { T as w, g as xe, a as Le, b as Re } from "./
|
|
14
|
+
import { T as w, g as xe, a as Le, b as Re } from "./DpfUGhi4.js";
|
|
15
15
|
import we from "../Trigger.js";
|
|
16
|
-
import { y as ee } from "./
|
|
16
|
+
import { y as ee } from "./BzPkh4Zv.js";
|
|
17
17
|
import "../utils/is.js";
|
|
18
18
|
import De from "lodash/isString";
|
|
19
19
|
import H from "lodash/get";
|
|
20
|
-
import He from "../hooks/useForceUpdate.js";
|
|
21
|
-
import re from "../hooks/useUpdateEffect.js";
|
|
20
|
+
import { useForceUpdate as He } from "../hooks/useForceUpdate.js";
|
|
21
|
+
import { useUpdateEffect as re } from "../hooks/useUpdateEffect.js";
|
|
22
22
|
import se from "lodash/isEqualWith";
|
|
23
23
|
import q from "lodash/isPlainObject";
|
|
24
24
|
import Ne from "lodash/isUndefined";
|
|
25
|
-
import Ee from "../hooks/usePrevious.js";
|
|
25
|
+
import { usePrevious as Ee } from "../hooks/usePrevious.js";
|
|
26
26
|
function Fe(t, a) {
|
|
27
27
|
const {
|
|
28
28
|
value: n,
|
|
@@ -2,27 +2,27 @@ import { jsx as h, jsxs as et } from "react/jsx-runtime";
|
|
|
2
2
|
import ft from "lodash/isFunction";
|
|
3
3
|
import kt from "lodash/isPlainObject";
|
|
4
4
|
import F, { useContext as nt, useRef as j, useState as wt, useEffect as Y, useMemo as at, useCallback as ce, useImperativeHandle as le } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import se from "../hooks/useId.js";
|
|
7
|
-
import fe from "../hooks/useMergeProps.js";
|
|
8
|
-
import de from "../hooks/useMergeValue.js";
|
|
9
|
-
import { y as M } from "./
|
|
5
|
+
import { d as mt, I as pt } from "./Bdh4XVuf.js";
|
|
6
|
+
import { useId as se } from "../hooks/useId.js";
|
|
7
|
+
import { useMergeProps as fe } from "../hooks/useMergeProps.js";
|
|
8
|
+
import { useMergeValue as de } from "../hooks/useMergeValue.js";
|
|
9
|
+
import { y as M } from "./BzPkh4Zv.js";
|
|
10
10
|
import dt from "../utils/omit.js";
|
|
11
|
-
import { I as ue } from "./
|
|
11
|
+
import { I as ue } from "./DW-B7npC.js";
|
|
12
12
|
import Tt from "lodash/isNumber";
|
|
13
13
|
import he from "lodash/throttle";
|
|
14
14
|
import { on as st, off as At } from "../utils/dom.js";
|
|
15
|
-
import {
|
|
15
|
+
import { E as Yt } from "./C2lIz2F9.js";
|
|
16
16
|
import { setTransformStyle as me } from "../utils/style.js";
|
|
17
|
-
import { I as jt } from "./
|
|
17
|
+
import { I as jt } from "./BDjXkzNj.js";
|
|
18
18
|
import Ut from "lodash/isNull";
|
|
19
19
|
import pe from "../Dropdown.js";
|
|
20
|
-
import { M as Mt } from "./
|
|
20
|
+
import { M as Mt } from "./B16KHtX-.js";
|
|
21
21
|
import ge from "lodash/isEqualWith";
|
|
22
22
|
import be from "../utils/throttleByRaf.js";
|
|
23
|
-
import { I as Et, a as Bt } from "./
|
|
24
|
-
import { I as ve } from "./
|
|
25
|
-
import { I as ye } from "./
|
|
23
|
+
import { I as Et, a as Bt } from "./DT37l12z.js";
|
|
24
|
+
import { I as ve } from "./D3xQFJcO.js";
|
|
25
|
+
import { I as ye } from "./BHn4xgbv.js";
|
|
26
26
|
function $e(e) {
|
|
27
27
|
const {
|
|
28
28
|
animation: r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { u as s } from "./
|
|
3
|
+
import { u as s } from "./BHn4xgbv.js";
|
|
4
4
|
const l = i.forwardRef(function(o, e) {
|
|
5
5
|
const r = s({ ...o, name: "ui-exclamation" });
|
|
6
6
|
return /* @__PURE__ */ n(
|
|
@@ -2,10 +2,10 @@ import { jsx as s, jsxs as z, Fragment as O } from "react/jsx-runtime";
|
|
|
2
2
|
import j from "lodash/isFunction";
|
|
3
3
|
import w from "lodash/isNil";
|
|
4
4
|
import B, { createContext as H, useContext as G, useRef as L } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import D from "../hooks/useMergeProps.js";
|
|
7
|
-
import F from "../hooks/useMergeValue.js";
|
|
8
|
-
import { y as I } from "./
|
|
5
|
+
import { d as A, I as Q } from "./Bdh4XVuf.js";
|
|
6
|
+
import { useMergeProps as D } from "../hooks/useMergeProps.js";
|
|
7
|
+
import { useMergeValue as F } from "../hooks/useMergeValue.js";
|
|
8
|
+
import { y as I } from "./BzPkh4Zv.js";
|
|
9
9
|
import S from "../utils/omit.js";
|
|
10
10
|
import T from "lodash/isArray";
|
|
11
11
|
import q from "lodash/isPlainObject";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { u as s } from "./
|
|
3
|
+
import { u as s } from "./BHn4xgbv.js";
|
|
4
4
|
const p = i.forwardRef(function(r, e) {
|
|
5
5
|
const t = s({ ...r, name: "ui-more" });
|
|
6
6
|
return /* @__PURE__ */ n(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as b, jsxs as w } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N, useContext as R, useRef as F, Fragment as j, createElement as z } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import E from "../hooks/useMergeProps.js";
|
|
5
|
-
import { I as K } from "./
|
|
6
|
-
import { y as u } from "./
|
|
7
|
-
import L from "../hooks/use-verification-code.js";
|
|
3
|
+
import { d as D } from "./Bdh4XVuf.js";
|
|
4
|
+
import { useMergeProps as E } from "../hooks/useMergeProps.js";
|
|
5
|
+
import { I as K } from "./gIbzjQ-X.js";
|
|
6
|
+
import { y as u } from "./BzPkh4Zv.js";
|
|
7
|
+
import { useVerificationCode as L } from "../hooks/use-verification-code.js";
|
|
8
8
|
const M = {
|
|
9
9
|
length: 6
|
|
10
10
|
};
|
|
@@ -22,7 +22,7 @@ function C(y, _) {
|
|
|
22
22
|
onChange: e.onChange,
|
|
23
23
|
onFinish: e.onFinish
|
|
24
24
|
}), i = o.getPrefixCls("verification-code"), n = o.getPrefixCls("input");
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ b(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: u(`${i}`, e.className, {
|
|
@@ -30,7 +30,7 @@ function C(y, _) {
|
|
|
30
30
|
}),
|
|
31
31
|
style: e.style,
|
|
32
32
|
children: P.map((V, r) => {
|
|
33
|
-
const { onChange: m, onClick: I, onPaste: O, onKeyDown:
|
|
33
|
+
const { onChange: m, onClick: I, onPaste: O, onKeyDown: k, ...p } = x(r);
|
|
34
34
|
return /* @__PURE__ */ w(j, { children: [
|
|
35
35
|
/* @__PURE__ */ z(
|
|
36
36
|
K,
|
|
@@ -50,7 +50,7 @@ function C(y, _) {
|
|
|
50
50
|
key: p.key,
|
|
51
51
|
onClick: e.readOnly ? void 0 : I,
|
|
52
52
|
onPaste: e.readOnly ? void 0 : O,
|
|
53
|
-
onKeyDown: e.readOnly ? void 0 :
|
|
53
|
+
onKeyDown: e.readOnly ? void 0 : k,
|
|
54
54
|
onChange: e.readOnly ? void 0 : (t) => {
|
|
55
55
|
if (e.validate) {
|
|
56
56
|
const a = e == null ? void 0 : e.validate({
|