@unicom-cloud/ui 0.8.60 → 0.8.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Affix.js +1 -1
- package/Alert.js +44 -40
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +1 -1
- package/BackTop.js +7 -7
- package/Badge.js +2 -2
- package/Breadcrumb.js +22 -22
- package/Button.js +2 -2
- package/Calendar.js +106 -104
- package/Card.js +1 -1
- package/Carousel.js +34 -33
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +12 -12
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +16 -16
- package/DatePicker.js +165 -162
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +9 -9
- package/Empty.js +2 -2
- package/Form.js +60 -54
- package/Grid.js +2 -2
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +2 -2
- package/Link.js +14 -14
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +9 -3
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +32 -32
- package/PageHeader.js +23 -22
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +7 -7
- package/Popover.js +1 -1
- package/Progress.js +14 -14
- package/Radio.js +2 -2
- package/Rate.js +43 -40
- package/ResizeBox.js +97 -96
- package/Result.js +15 -15
- package/Select.js +1 -1
- package/SelectView.js +295 -249
- package/Skeleton.js +1 -1
- package/Slider.js +25 -25
- package/Space.js +1 -1
- package/SpeechSynthesis.js +32 -29
- package/Spin.js +2 -2
- package/Statistic.js +1 -1
- package/Steps.js +11 -11
- package/Switch.js +3 -3
- package/Table.js +994 -991
- package/Tabs.js +1 -1
- package/Tag.js +68 -67
- package/TimePicker.js +17 -17
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +47 -46
- package/Tree.js +2 -2
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/Typography.js +1 -1
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{V6euPXVB.js → -Z968QpN.js} +257 -251
- package/chunk/{IooeSKJJ.js → AqH9yP_J.js} +19 -19
- package/chunk/{cZiP8FvM.js → B0oDiPqE.js} +1 -1
- package/chunk/{B16KHtX-.js → B4-WpgY2.js} +191 -185
- package/chunk/{CuOl4X0X.js → B8SZFOjt.js} +1 -1
- package/chunk/{CbiWdbr_.js → BXWxA-tS.js} +35 -34
- package/chunk/{DpfUGhi4.js → BlNFmhNa.js} +288 -283
- package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
- package/chunk/{Kbr6FzOG.js → BnqeQYIZ.js} +210 -186
- package/chunk/{BPZ-6HKJ.js → Bp3XomF8.js} +1 -2
- package/chunk/BsWphzcT.js +20 -0
- package/chunk/{RMBPs_Ry.js → C4eJ9vCf.js} +4 -3
- package/chunk/{BNHrEI0Y.js → C6fEFlPt.js} +52 -48
- package/chunk/C8o-VGyc.js +376 -0
- package/chunk/{eK7lxdak.js → CDJ1EnJ2.js} +8 -8
- package/chunk/{C5AQWbC4.js → CHyuuVxl.js} +1 -1
- package/chunk/{B2vORJQ8.js → CJnshq6A.js} +13 -13
- package/chunk/CT1lZ7ss.js +116 -0
- package/chunk/{Bdh4XVuf.js → CV1kLw5Z.js} +290 -281
- package/chunk/{DmUhn9ib.js → CazXy0r4.js} +54 -53
- package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
- package/chunk/{BJ_7JTqC.js → D3VMG9V1.js} +1 -1
- package/chunk/{D2HkyI6A.js → DGasAUHE.js} +2 -2
- package/chunk/{YIlBPVAs.js → DRQ1v6Ux.js} +1 -1
- package/chunk/{DhBo0pPJ.js → DRp7voqz.js} +119 -118
- package/chunk/{gIbzjQ-X.js → Dtm4BmKB.js} +2 -2
- package/chunk/{BEDYCG-I.js → KchYsivk.js} +18 -18
- package/chunk/{Cbd50gx8.js → Wum88vrW.js} +33 -33
- package/chunk/{BjSHZA0m.js → mfn4EgmQ.js} +1 -1
- package/chunk/{BYhtrDV3.js → nbEvdwT0.js} +152 -148
- package/chunk/{C1D7T29r.js → qpd2axxs.js} +83 -76
- package/chunk/{BVLwPZis.js → tOFzwzpT.js} +31 -30
- package/chunk/{DSGRHf-1.js → yESVS-qX.js} +157 -156
- package/hooks/useMergeValue.js +1 -1
- package/icons.js +4 -6001
- package/index.js +420 -392
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cascader/panel/Search.d.ts +1 -1
- package/types/config-provider/interface.d.ts +1 -1
- package/types/form/interface.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/types/message/index.d.ts +2 -2
- package/types/notification/index.d.ts +2 -2
- package/types/notification-base/index.d.ts +2 -2
- package/types/select/interface.d.ts +1 -0
- package/types/select-view/interface.d.ts +1 -0
- package/types/table/interface.d.ts +1 -0
- package/types/tree/Context.d.ts +1 -0
- package/types/tree/Tree.d.ts +1 -1
- package/types/tree/index.d.ts +5 -4
- package/types/tree/interface.d.ts +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/lodash.d.ts +14 -1
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/caseName.js +2 -18
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +220 -191
- package/utils/is.js +68 -67
- package/utils/lodash.js +32 -6
- package/utils/reactDOM.js +1 -1
- package/chunk/-LZOUh53.js +0 -29
- package/chunk/-jdfq71f.js +0 -23
- package/chunk/B0GOLsj_.js +0 -58
- package/chunk/B7Zsp3gO.js +0 -29
- package/chunk/BDjXkzNj.js +0 -23
- package/chunk/BHn4xgbv.js +0 -209
- package/chunk/BLSiP_gg.js +0 -32
- package/chunk/BMJfSSLX.js +0 -23
- package/chunk/B_nfMl0e.js +0 -116
- package/chunk/BcS17Pzy.js +0 -66
- package/chunk/BdiEwtQO.js +0 -41
- package/chunk/Bpug_KxP.js +0 -34
- package/chunk/C1u_ckwU.js +0 -29
- package/chunk/C43Hv2Bl.js +0 -34
- package/chunk/C9vsih_D.js +0 -29
- package/chunk/CAfR2wLq.js +0 -41
- package/chunk/CAfecMDF.js +0 -46
- package/chunk/CKp4rZnD.js +0 -207
- package/chunk/CV2Aqv9q.js +0 -52
- package/chunk/CYdarMv9.js +0 -32
- package/chunk/C_S5Mdvd.js +0 -379
- package/chunk/CmB-TL7C.js +0 -46
- package/chunk/D-ER56Sf.js +0 -29
- package/chunk/D-aYnb6u.js +0 -41
- package/chunk/D3xQFJcO.js +0 -23
- package/chunk/DJcEys80.js +0 -29
- package/chunk/DLIm6rRJ.js +0 -29
- package/chunk/DOWEHtqM.js +0 -41
- package/chunk/DT37l12z.js +0 -40
- package/chunk/DW-B7npC.js +0 -23
- package/chunk/D_MTFBb0.js +0 -38
- package/chunk/Dx_5J4fO.js +0 -29
- package/chunk/Dy487FZ1.js +0 -118
- package/chunk/Uz-rNulO.js +0 -98
- package/chunk/cDZI_t6o.js +0 -52
- package/chunk/sScV-J56.js +0 -206
- package/chunk/wI2I1qb0.js +0 -23
|
@@ -6,25 +6,26 @@ import Z from "lodash/isPlainObject";
|
|
|
6
6
|
import et from "lodash/isString";
|
|
7
7
|
import tt from "lodash/isUndefined";
|
|
8
8
|
import ce, { useContext as de, useRef as ee, useState as le, useMemo as he, useImperativeHandle as Ae, useCallback as nt, useEffect as we } from "react";
|
|
9
|
-
import { d as fe, I as rt } from "./
|
|
9
|
+
import { d as fe, I as rt } from "./CV1kLw5Z.js";
|
|
10
10
|
import { useMergeProps as Le } from "../hooks/useMergeProps.js";
|
|
11
11
|
import { useMergeValue as ye } from "../hooks/useMergeValue.js";
|
|
12
12
|
import { y as F } from "./BzPkh4Zv.js";
|
|
13
13
|
import { contains as Te } from "../utils/dom.js";
|
|
14
|
-
import { u as it, I as st } from "./
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
14
|
+
import { u as it, I as st } from "./Dtm4BmKB.js";
|
|
15
|
+
import ot from "@unicom-cloud/icons/IconUiDown";
|
|
16
|
+
import at from "@unicom-cloud/icons/IconUiMinus";
|
|
17
|
+
import lt from "@unicom-cloud/icons/IconUiPlus";
|
|
18
|
+
import ut from "@unicom-cloud/icons/IconUiUp";
|
|
19
19
|
import oe from "lodash/isNumber";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
20
|
+
import ct from "@unicom-cloud/icons/IconUiEye";
|
|
21
|
+
import dt from "@unicom-cloud/icons/IconUiEyeInvisible";
|
|
22
22
|
import { useKeyboardEvent as ft } from "../hooks/useKeyboardEvent.js";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { I as
|
|
23
|
+
import $e from "../utils/omit.js";
|
|
24
|
+
import mt from "@unicom-cloud/icons/IconUiLoading";
|
|
25
|
+
import De from "@unicom-cloud/icons/IconUiSearch";
|
|
26
|
+
import gt from "../Button.js";
|
|
27
|
+
import { I as ht } from "./C8o-VGyc.js";
|
|
28
|
+
import pt from "@unicom-cloud/icons/IconUiClose";
|
|
28
29
|
import { useIsomorphicLayoutEffect as ze } from "../hooks/useIsomorphicLayoutEffect.js";
|
|
29
30
|
import "../utils/is.js";
|
|
30
31
|
import { A as Nt, c as xt } from "./C2lIz2F9.js";
|
|
@@ -261,7 +262,7 @@ const vt = 200, bt = 1e3, yt = {
|
|
|
261
262
|
mode: "embed",
|
|
262
263
|
parser: (e) => (e == null ? void 0 : e.replace(/[^\w.-]+/g, "")) || ""
|
|
263
264
|
};
|
|
264
|
-
function
|
|
265
|
+
function $t(e, t) {
|
|
265
266
|
var Pe;
|
|
266
267
|
const {
|
|
267
268
|
getPrefixCls: r,
|
|
@@ -277,7 +278,7 @@ function It(e, t) {
|
|
|
277
278
|
style: l,
|
|
278
279
|
defaultValue: h,
|
|
279
280
|
disabled: g,
|
|
280
|
-
error:
|
|
281
|
+
error: I,
|
|
281
282
|
readOnly: v,
|
|
282
283
|
strictMode: E,
|
|
283
284
|
placeholder: P,
|
|
@@ -289,7 +290,7 @@ function It(e, t) {
|
|
|
289
290
|
size: p,
|
|
290
291
|
step: b,
|
|
291
292
|
precision: H,
|
|
292
|
-
min:
|
|
293
|
+
min: $,
|
|
293
294
|
max: U,
|
|
294
295
|
parser: j,
|
|
295
296
|
formatter: O,
|
|
@@ -306,7 +307,7 @@ function It(e, t) {
|
|
|
306
307
|
return null;
|
|
307
308
|
})(), [q, X] = le(() => re(
|
|
308
309
|
"value" in n ? n.value : "defaultValue" in n ? h : void 0
|
|
309
|
-
)), [D, te] = le(""), [ae, Y] = le(!1), [J, _] = le(!1), f = ee(null), c = ee(null), w = ee(!1), d = he(() => "value" in n ? re(n.value) : q, [n.value, q]), [G, ne] = he(() => [re(U), re(
|
|
310
|
+
)), [D, te] = le(""), [ae, Y] = le(!1), [J, _] = le(!1), f = ee(null), c = ee(null), w = ee(!1), d = he(() => "value" in n ? re(n.value) : q, [n.value, q]), [G, ne] = he(() => [re(U), re($)], [U, $]);
|
|
310
311
|
Ae(t, () => c.current, []);
|
|
311
312
|
const xe = (o, S) => {
|
|
312
313
|
if (X(o), !o.equals(d) && W) {
|
|
@@ -334,10 +335,10 @@ function It(e, t) {
|
|
|
334
335
|
const o = d.less(ne) || G.less(d);
|
|
335
336
|
o && w.current && xe(ge(d), "outOfRange"), Y(o);
|
|
336
337
|
}, [ne, G, d, ge]);
|
|
337
|
-
const
|
|
338
|
+
const Ie = (o, S, A = !1) => {
|
|
338
339
|
if (o.persist(), o.preventDefault(), _(!1), g || v)
|
|
339
340
|
return;
|
|
340
|
-
const qe = d.isInvalid ? re(
|
|
341
|
+
const qe = d.isInvalid ? re($ === -1 / 0 || $ <= 0 && U >= 0 ? 0 : $) : d.add(S === "plus" ? b : -b);
|
|
341
342
|
if (xe(
|
|
342
343
|
ge(qe),
|
|
343
344
|
S === "plus" ? "increase" : "decrease"
|
|
@@ -362,7 +363,7 @@ function It(e, t) {
|
|
|
362
363
|
},
|
|
363
364
|
onKeyDown: (o) => {
|
|
364
365
|
const S = o.key;
|
|
365
|
-
S === Nt.key ? (o.stopPropagation(),
|
|
366
|
+
S === Nt.key ? (o.stopPropagation(), Ie(o, "minus")) : S === xt.key && (o.stopPropagation(), Ie(o, "plus")), Se(), B == null || B(o);
|
|
366
367
|
},
|
|
367
368
|
onFocus: (o) => {
|
|
368
369
|
var S, A;
|
|
@@ -372,7 +373,7 @@ function It(e, t) {
|
|
|
372
373
|
xe(ge(d), "outOfRange"), _(!1), M == null || M(o);
|
|
373
374
|
}
|
|
374
375
|
}, Ke = (o) => v ? {} : {
|
|
375
|
-
onMouseDown: (S) =>
|
|
376
|
+
onMouseDown: (S) => Ie(S, o, !0)
|
|
376
377
|
}, Me = !R && y === "button", Xe = !R && !v && y === "embed", ve = (o, S) => {
|
|
377
378
|
const A = !g && (d.isInvalid || (o === "plus" ? G.isInvalid || d.less(G) : ne.isInvalid || ne.less(d)));
|
|
378
379
|
return /* @__PURE__ */ N(
|
|
@@ -394,9 +395,9 @@ function It(e, t) {
|
|
|
394
395
|
_ignorePropsFromGlobal: !0,
|
|
395
396
|
role: "spinbutton",
|
|
396
397
|
"aria-valuemax": U,
|
|
397
|
-
"aria-valuemin":
|
|
398
|
+
"aria-valuemin": $,
|
|
398
399
|
"aria-valuenow": d.isEmpty ? void 0 : d.toNumber(),
|
|
399
|
-
|
|
400
|
+
...$e(me, ["allowClear"]),
|
|
400
401
|
...je,
|
|
401
402
|
style: l,
|
|
402
403
|
className: F(
|
|
@@ -412,7 +413,7 @@ function It(e, t) {
|
|
|
412
413
|
),
|
|
413
414
|
ref: c,
|
|
414
415
|
size: a,
|
|
415
|
-
error:
|
|
416
|
+
error: I,
|
|
416
417
|
disabled: g,
|
|
417
418
|
readOnly: v,
|
|
418
419
|
value: Ve,
|
|
@@ -443,7 +444,7 @@ function It(e, t) {
|
|
|
443
444
|
);
|
|
444
445
|
}
|
|
445
446
|
const Oe = ce.forwardRef(
|
|
446
|
-
|
|
447
|
+
$t
|
|
447
448
|
);
|
|
448
449
|
Oe.displayName = "InputNumber";
|
|
449
450
|
const We = ce.forwardRef(
|
|
@@ -456,7 +457,7 @@ const We = ce.forwardRef(
|
|
|
456
457
|
visibilityToggle: m = !0,
|
|
457
458
|
onVisibilityChange: l,
|
|
458
459
|
...h
|
|
459
|
-
} = e, g = s("input-password"),
|
|
460
|
+
} = e, g = s("input-password"), I = F(
|
|
460
461
|
g,
|
|
461
462
|
{
|
|
462
463
|
[`${g}-visibility`]: m
|
|
@@ -493,9 +494,9 @@ const We = ce.forwardRef(
|
|
|
493
494
|
return /* @__PURE__ */ N(
|
|
494
495
|
k,
|
|
495
496
|
{
|
|
496
|
-
|
|
497
|
+
...$e(h, ["visibility", "defaultVisibility"]),
|
|
497
498
|
type: r ? "text" : "password",
|
|
498
|
-
className:
|
|
499
|
+
className: I,
|
|
499
500
|
ref: t,
|
|
500
501
|
suffix: E
|
|
501
502
|
}
|
|
@@ -514,7 +515,7 @@ const Be = ce.forwardRef(
|
|
|
514
515
|
loading: l,
|
|
515
516
|
defaultValue: h,
|
|
516
517
|
addAfter: g,
|
|
517
|
-
suffix:
|
|
518
|
+
suffix: I,
|
|
518
519
|
...v
|
|
519
520
|
} = e, E = Z(e.maxLength) ? e.maxLength.length : e.maxLength, P = Z(e.maxLength) && e.maxLength.errorOnly ? void 0 : E, [R, V] = ye("", {
|
|
520
521
|
defaultValue: "defaultValue" in e ? ue(e.defaultValue, P) : void 0,
|
|
@@ -532,14 +533,14 @@ const Be = ce.forwardRef(
|
|
|
532
533
|
return /* @__PURE__ */ N(
|
|
533
534
|
k,
|
|
534
535
|
{
|
|
535
|
-
|
|
536
|
+
...$e(v, ["onSearch"]),
|
|
536
537
|
disabled: n,
|
|
537
538
|
className: x,
|
|
538
539
|
style: s,
|
|
539
540
|
ref: t,
|
|
540
541
|
placeholder: u,
|
|
541
542
|
addAfter: g !== void 0 ? g : m ? /* @__PURE__ */ N(
|
|
542
|
-
|
|
543
|
+
gt,
|
|
543
544
|
{
|
|
544
545
|
disabled: n,
|
|
545
546
|
size: v.size,
|
|
@@ -553,7 +554,7 @@ const Be = ce.forwardRef(
|
|
|
553
554
|
children: m !== !0 && m
|
|
554
555
|
}
|
|
555
556
|
) : null,
|
|
556
|
-
suffix:
|
|
557
|
+
suffix: I !== void 0 ? I : !m && (l ? /* @__PURE__ */ N(mt, {}) : /* @__PURE__ */ N(De, { onClick: y })),
|
|
557
558
|
onChange: (p, b) => {
|
|
558
559
|
var H;
|
|
559
560
|
V(p), (H = e.onChange) == null || H.call(e, p, b);
|
|
@@ -568,7 +569,7 @@ const Be = ce.forwardRef(
|
|
|
568
569
|
}
|
|
569
570
|
);
|
|
570
571
|
Be.displayName = "Search";
|
|
571
|
-
const
|
|
572
|
+
const It = [
|
|
572
573
|
"position: absolute",
|
|
573
574
|
"min-height: 0 !important",
|
|
574
575
|
"max-height: none",
|
|
@@ -599,7 +600,7 @@ let Q;
|
|
|
599
600
|
function Et(e) {
|
|
600
601
|
Q || (Q = document.createElement("textarea"), document.body.appendChild(Q));
|
|
601
602
|
const t = window.getComputedStyle(e), r = wt.map((n) => `${n}:${t.getPropertyValue(n)}`).join(";");
|
|
602
|
-
Q.setAttribute("style",
|
|
603
|
+
Q.setAttribute("style", It + r);
|
|
603
604
|
const i = parseFloat(t.getPropertyValue("padding-top")) + parseFloat(t.getPropertyValue("padding-bottom")), s = t.getPropertyValue("box-sizing"), u = parseFloat(t.getPropertyValue("border-top-width")) + parseFloat(t.getPropertyValue("border-bottom-width"));
|
|
604
605
|
return {
|
|
605
606
|
paddingSize: i,
|
|
@@ -618,14 +619,14 @@ function Ct(e, t) {
|
|
|
618
619
|
if (e) {
|
|
619
620
|
const { minRows: i, maxRows: s } = r(), u = t, { paddingSize: n, boxSizing: m, borderSize: l } = Et(u);
|
|
620
621
|
Q.value = u.value || u.placeholder || "";
|
|
621
|
-
let h = Q.scrollHeight + l, g,
|
|
622
|
+
let h = Q.scrollHeight + l, g, I, v;
|
|
622
623
|
if (i || s) {
|
|
623
624
|
Q.value = "";
|
|
624
625
|
const P = Q.scrollHeight - n;
|
|
625
|
-
oe(i) && (g = P * i, m === "border-box" && (g += n, g += l), h = Math.max(h, g)), oe(s) && (
|
|
626
|
+
oe(i) && (g = P * i, m === "border-box" && (g += n, g += l), h = Math.max(h, g)), oe(s) && (I = P * s, m === "border-box" && (I += n, I += l), v = h > I ? "auto" : "", I = Math.min(h, I));
|
|
626
627
|
}
|
|
627
628
|
const E = {};
|
|
628
|
-
return E.height = h, g && (E.minHeight = g),
|
|
629
|
+
return E.height = h, g && (E.minHeight = g), I && (E.maxHeight = I), v && (E.overflowY = v), E;
|
|
629
630
|
}
|
|
630
631
|
}
|
|
631
632
|
const At = (e, t) => {
|
|
@@ -639,14 +640,14 @@ const At = (e, t) => {
|
|
|
639
640
|
maxLength: l,
|
|
640
641
|
showWordLimit: h,
|
|
641
642
|
allowClear: g,
|
|
642
|
-
onChange:
|
|
643
|
+
onChange: I,
|
|
643
644
|
onClear: v,
|
|
644
645
|
onKeyDown: E,
|
|
645
646
|
onPressEnter: P,
|
|
646
647
|
status: R,
|
|
647
648
|
clearIcon: V,
|
|
648
649
|
...T
|
|
649
|
-
} = e, x = Z(l) ? l.length : l, y = Z(l) ? l.errorOnly ? void 0 : l.length : l, p = ee(), [b, H] = le({}), [
|
|
650
|
+
} = e, x = Z(l) ? l.length : l, y = Z(l) ? l.errorOnly ? void 0 : l.length : l, p = ee(), [b, H] = le({}), [$, U] = ye("", {
|
|
650
651
|
defaultValue: "defaultValue" in e ? ue(e.defaultValue, y) : void 0,
|
|
651
652
|
value: "value" in e ? ue(e.value, y) : void 0
|
|
652
653
|
}), {
|
|
@@ -656,15 +657,15 @@ const At = (e, t) => {
|
|
|
656
657
|
keyDownHandler: K,
|
|
657
658
|
triggerValueChangeCallback: W
|
|
658
659
|
} = it({
|
|
659
|
-
value:
|
|
660
|
+
value: $,
|
|
660
661
|
maxLength: y,
|
|
661
|
-
onChange:
|
|
662
|
+
onChange: I,
|
|
662
663
|
onKeyDown: E,
|
|
663
664
|
onPressEnter: P,
|
|
664
665
|
beforeTriggerValueChangeCallback: (f) => {
|
|
665
666
|
!("value" in e) && (y === void 0 || f.length <= y) && U(f);
|
|
666
667
|
}
|
|
667
|
-
}), B = j ||
|
|
668
|
+
}), B = j || $ || "", { getPrefixCls: me, rtl: C } = de(fe), a = me("textarea");
|
|
668
669
|
n && (b.resize = "none");
|
|
669
670
|
const L = () => {
|
|
670
671
|
if (p.current && p.current.focus) {
|
|
@@ -700,7 +701,7 @@ const At = (e, t) => {
|
|
|
700
701
|
}),
|
|
701
702
|
[]
|
|
702
703
|
);
|
|
703
|
-
const D =
|
|
704
|
+
const D = $ ? $.length : 0, te = x && h || g, ae = he(() => !y && x ? D > x : !1, [D, x, y]), Y = R || (m || ae ? "error" : void 0), J = F(
|
|
704
705
|
a,
|
|
705
706
|
{
|
|
706
707
|
[`${a}-${Y}`]: Y,
|
|
@@ -712,7 +713,7 @@ const At = (e, t) => {
|
|
|
712
713
|
), _ = /* @__PURE__ */ N(
|
|
713
714
|
"textarea",
|
|
714
715
|
{
|
|
715
|
-
|
|
716
|
+
...$e(T, ["autoSize", "defaultValue"]),
|
|
716
717
|
maxLength: y,
|
|
717
718
|
ref: p,
|
|
718
719
|
style: { ...i, ...b },
|
|
@@ -728,7 +729,7 @@ const At = (e, t) => {
|
|
|
728
729
|
}
|
|
729
730
|
);
|
|
730
731
|
if (te) {
|
|
731
|
-
const f = !n && g &&
|
|
732
|
+
const f = !n && g && $, [c, w] = C ? [x, D] : [D, x];
|
|
732
733
|
return /* @__PURE__ */ se(
|
|
733
734
|
"div",
|
|
734
735
|
{
|
|
@@ -750,7 +751,7 @@ const At = (e, t) => {
|
|
|
750
751
|
children: V
|
|
751
752
|
}
|
|
752
753
|
) : /* @__PURE__ */ N(rt, { className: `${a}-clear-icon`, children: /* @__PURE__ */ N(
|
|
753
|
-
|
|
754
|
+
pt,
|
|
754
755
|
{
|
|
755
756
|
onClick: X,
|
|
756
757
|
onMouseDown: (d) => {
|
|
@@ -800,7 +801,7 @@ function Vt(e, t) {
|
|
|
800
801
|
style: l,
|
|
801
802
|
addBefore: h,
|
|
802
803
|
addAfter: g,
|
|
803
|
-
suffix:
|
|
804
|
+
suffix: I,
|
|
804
805
|
prefix: v,
|
|
805
806
|
beforeStyle: E,
|
|
806
807
|
afterStyle: P,
|
|
@@ -819,7 +820,7 @@ function Vt(e, t) {
|
|
|
819
820
|
maxWidth: b == null ? void 0 : b.maxWidth,
|
|
820
821
|
width: b && "auto",
|
|
821
822
|
...l
|
|
822
|
-
},
|
|
823
|
+
}, $ = Z(T) ? T.length : T, U = Z(T) && T.errorOnly ? void 0 : $, [j, O] = le(!1), M = ee(), K = ee(), W = ee(), [B, me] = ye("", {
|
|
823
824
|
defaultValue: "defaultValue" in n ? ue(n.defaultValue, U) : void 0,
|
|
824
825
|
value: "value" in n ? ue(n.value, U) : void 0
|
|
825
826
|
});
|
|
@@ -844,10 +845,10 @@ function Vt(e, t) {
|
|
|
844
845
|
var d;
|
|
845
846
|
"value" in n || me(c), (d = n.onChange) == null || d.call(n, c, w);
|
|
846
847
|
}, a = r("input"), L = n.size || i, q = "height" in n;
|
|
847
|
-
let X =
|
|
848
|
-
const D = B ? B.length : 0, te = he(() => !U &&
|
|
849
|
-
if (
|
|
850
|
-
const [c, w] = u ? [
|
|
848
|
+
let X = I;
|
|
849
|
+
const D = B ? B.length : 0, te = he(() => !U && $ ? D > $ : !1, [D, $, U]);
|
|
850
|
+
if ($ && x) {
|
|
851
|
+
const [c, w] = u ? [$, D] : [D, $];
|
|
851
852
|
X = /* @__PURE__ */ se(
|
|
852
853
|
"span",
|
|
853
854
|
{
|
|
@@ -953,7 +954,7 @@ k.Search = Be;
|
|
|
953
954
|
k.TextArea = _e;
|
|
954
955
|
k.Password = We;
|
|
955
956
|
k.Number = k.InputNumber = Oe;
|
|
956
|
-
k.Tag = k.InputTag =
|
|
957
|
+
k.Tag = k.InputTag = ht;
|
|
957
958
|
k.Group = Fe;
|
|
958
959
|
export {
|
|
959
960
|
k as I,
|
|
@@ -35,29 +35,29 @@ import "lodash/isTypedArray";
|
|
|
35
35
|
import "lodash/isUndefined";
|
|
36
36
|
import "lodash/isWeakMap";
|
|
37
37
|
import "lodash/isWeakSet";
|
|
38
|
-
function
|
|
38
|
+
function M(t) {
|
|
39
39
|
return t instanceof Promise;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function T(t) {
|
|
42
42
|
return p(t) && e(t);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function U(t) {
|
|
45
45
|
return a(t) && e(t);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function V(t) {
|
|
48
48
|
return c(t) || t === "";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function W(t) {
|
|
51
51
|
return Object.prototype.toString.call(t) === "[object File]";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function tt(t) {
|
|
54
54
|
return Object.prototype.toString.call(t) === "[object Blob]";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function rt(t) {
|
|
57
57
|
return Object.prototype.toString.call(t) === "[object ReadableStream]";
|
|
58
58
|
}
|
|
59
|
-
const s = typeof ReadableStream == "function",
|
|
60
|
-
function
|
|
59
|
+
const s = typeof ReadableStream == "function", ot = typeof ReadableStreamDefaultController == "function", et = typeof ReadableByteStreamController == "function", it = s && new ReadableStream()[Symbol.asyncIterator];
|
|
60
|
+
function nt(t) {
|
|
61
61
|
let r = !0;
|
|
62
62
|
try {
|
|
63
63
|
JSON.parse(t);
|
|
@@ -67,26 +67,30 @@ function it(t) {
|
|
|
67
67
|
return r;
|
|
68
68
|
}
|
|
69
69
|
function mt(t) {
|
|
70
|
-
const r = /^#(?:[0-9a-fA-F]{3}){1,2}$/, o = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/, i = /^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(1|0|0?\.\d+)\)$/,
|
|
71
|
-
return r.test(t) || o.test(t) || i.test(t) ||
|
|
70
|
+
const r = /^#(?:[0-9a-fA-F]{3}){1,2}$/, o = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/, i = /^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(1|0|0?\.\d+)\)$/, n = /^hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)$/, m = /^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(1|0|0?\.\d+)\)$/;
|
|
71
|
+
return r.test(t) || o.test(t) || i.test(t) || n.test(t) || m.test(t);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function l(t) {
|
|
74
74
|
const r = document.createElement("div");
|
|
75
75
|
return r.style.color = t, r.style.color !== "";
|
|
76
76
|
}
|
|
77
|
+
function pt(t) {
|
|
78
|
+
return l(t);
|
|
79
|
+
}
|
|
77
80
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
U as G,
|
|
82
|
+
V as H,
|
|
83
|
+
pt as J,
|
|
80
84
|
W as K,
|
|
81
85
|
tt as Q,
|
|
82
|
-
L as V,
|
|
83
86
|
rt as X,
|
|
84
87
|
ot as Y,
|
|
85
88
|
et as Z,
|
|
86
89
|
it as _,
|
|
87
90
|
s as f,
|
|
88
|
-
|
|
89
|
-
mt as
|
|
90
|
-
|
|
91
|
-
M as
|
|
91
|
+
l as m,
|
|
92
|
+
mt as r,
|
|
93
|
+
nt as t,
|
|
94
|
+
M as v,
|
|
95
|
+
T as z
|
|
92
96
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as I, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import v, { useContext as D, useRef as j, useEffect as k } from "react";
|
|
3
|
-
import { d as S } from "./
|
|
3
|
+
import { d as S } from "./CV1kLw5Z.js";
|
|
4
4
|
import { useMergeProps as F } from "../hooks/useMergeProps.js";
|
|
5
5
|
import E from "../Spin.js";
|
|
6
6
|
import { y as b } from "./BzPkh4Zv.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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 { d as D } from "./
|
|
3
|
+
import { d as D } from "./CV1kLw5Z.js";
|
|
4
4
|
import { useMergeProps as E } from "../hooks/useMergeProps.js";
|
|
5
|
-
import { I as K } from "./
|
|
5
|
+
import { I as K } from "./Dtm4BmKB.js";
|
|
6
6
|
import { y as u } from "./BzPkh4Zv.js";
|
|
7
7
|
import { useVerificationCode as L } from "../hooks/use-verification-code.js";
|
|
8
8
|
const M = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as $, jsxs as Q, Fragment as Te } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as j, useEffect as X, useCallback as V, createContext as Ce, useContext as ie } from "react";
|
|
3
3
|
import se from "../Button.js";
|
|
4
|
-
import { d as He } from "./
|
|
4
|
+
import { d as He } from "./CV1kLw5Z.js";
|
|
5
5
|
import { y as ee } from "./BzPkh4Zv.js";
|
|
6
6
|
import { dayjs as g, methods as Y, getDayjsValue as Oe, getNow as re, toLocal as ce } from "../utils/dayjs.js";
|
|
7
7
|
import { padStart as C } from "../utils/pad.js";
|