@unicom-cloud/ui 0.8.52 → 0.8.54
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 +41 -40
- package/Alert.js +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +3 -3
- package/Avatar.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -3
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +1 -1
- package/DatePicker.js +1268 -1233
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Form.js +122 -117
- package/Grid.js +86 -83
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +2 -2
- package/InputTag.js +1 -1
- package/Layout.js +2 -2
- package/Link.js +1 -1
- 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 +2 -2
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +2 -2
- package/Rate.js +1 -1
- package/ResizeBox.js +33 -32
- package/Result.js +1 -1
- package/Select.js +1 -1
- package/SelectView.js +142 -141
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +1 -1
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +15 -14
- package/Table.js +141 -133
- package/Tabs.js +1 -1
- package/Tag.js +111 -82
- package/TimePicker.js +3 -3
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +31 -30
- package/Typography.js +25 -25
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{DUX5Hw8l.js → BC0PujUD.js} +3 -3
- package/chunk/{Ct7mcZuW.js → BH5fVprw.js} +1 -1
- package/chunk/{I0bfWb5y.js → BUQBof6z.js} +95 -93
- package/chunk/{DWGwYNvC.js → BdJcAQ0Q.js} +2 -2
- package/chunk/{CQvJK4kb.js → BmtF7P8U.js} +12 -12
- package/chunk/{DfvdYCUz.js → BzMYgxgO.js} +1 -1
- package/chunk/{n58kSv9T.js → BzqZZHGK.js} +11 -5
- package/chunk/{5PpvDpEt.js → C3I_L73_.js} +2 -2
- package/chunk/{CkIWpIl6.js → CIc4yo9k.js} +1 -1
- package/chunk/{dhljdm11.js → CK0H_Yi4.js} +64 -63
- package/chunk/{BXZYc88i.js → CTSIr-Pr.js} +3 -3
- package/chunk/{4XXtB4ZV.js → CqcZfQQ4.js} +1 -1
- package/chunk/{Cku5-xbe.js → CzTYWtfa.js} +47 -46
- package/chunk/DG7VgAhL.js +445 -0
- package/chunk/DQ3uFRJD.js +892 -0
- package/chunk/{DG5zSZDd.js → DTgc2wl4.js} +2 -2
- package/chunk/{9AJ-uN8F.js → DZGcv_9A.js} +1 -1
- package/chunk/{CoevJNNj.js → DbtCtriE.js} +1 -1
- package/chunk/{tkU8zIK4.js → DdtfPvgk.js} +1 -1
- package/chunk/{Cw63stMm.js → Dki1RB5p.js} +18 -18
- package/chunk/Niaq_og8.js +970 -0
- package/chunk/{DCe3olyi.js → PuuHmqnW.js} +101 -99
- package/chunk/{BHWpeAbb.js → RL1SNlng.js} +1 -1
- package/chunk/{CfqAfcA3.js → RRWbBHK-.js} +2 -2
- package/chunk/{B9nYZhXo.js → ShWkfsJd.js} +2 -2
- package/chunk/i1A7W8Qt.js +277 -0
- package/chunk/qSJXQ1qu.js +640 -0
- package/chunk/{z7sBNzI4.js → xPzFRQJn.js} +33 -32
- package/index.js +408 -346
- package/package.json +1 -23
- package/style.css +1 -1
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/Picker.d.ts +4 -3
- package/types/date-picker/PickerRange.d.ts +3 -7
- package/types/date-picker/interface.d.ts +9 -1
- package/types/grid/index.d.ts +2 -1
- package/types/index.d.ts +1 -0
- package/types/modal/config.d.ts +1 -0
- package/types/modal/interface.d.ts +1 -0
- package/types/pagination/interface.d.ts +1 -0
- package/types/picker/InputRange.d.ts +1 -1
- package/types/select/Select.d.ts +1 -1
- package/types/tag/interface.d.ts +7 -3
- package/types/utils/CSSTransition.d.ts +2 -1
- package/types/utils/is.d.ts +4 -17
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/is.js +102 -104
- package/utils/reactDOM.js +19 -19
- package/chunk/C61BEbHK.js +0 -263
- package/chunk/DMeJAY1S.js +0 -606
- package/chunk/DXMtLuTP.js +0 -443
- package/chunk/m3_n9fBe.js +0 -961
- package/chunk/uUGMUxt_.js +0 -474
|
@@ -5,7 +5,7 @@ import _ from "lodash/isNumber";
|
|
|
5
5
|
import ee from "lodash/isPlainObject";
|
|
6
6
|
import Ie from "lodash/isUndefined";
|
|
7
7
|
import xe, { useContext as re, useMemo as R, useRef as oe, useEffect as G } from "react";
|
|
8
|
-
import { a as Ve } from "./
|
|
8
|
+
import { a as Ve } from "./xPzFRQJn.js";
|
|
9
9
|
import Le from "../hooks/useInView.js";
|
|
10
10
|
import ye from "../hooks/useKeyboardEvent.js";
|
|
11
11
|
import Ee from "../hooks/useMergeProps.js";
|
|
@@ -13,7 +13,7 @@ import Fe from "../hooks/useMergeValue.js";
|
|
|
13
13
|
import h from "@unicom-cloud/utils/class-name";
|
|
14
14
|
import Re from "../utils/omit.js";
|
|
15
15
|
import Ge from "@unicom-cloud/icons/IconUiMore";
|
|
16
|
-
import { T as Ue, P as ie, a as je, b as Me, u as Se } from "./
|
|
16
|
+
import { T as Ue, P as ie, a as je, b as Me, u as Se } from "./CTSIr-Pr.js";
|
|
17
17
|
function te(v) {
|
|
18
18
|
const { title: w, description: $, actions: t } = v, a = w || $, l = t && t.length;
|
|
19
19
|
return [a || l, a, l];
|
|
@@ -2,7 +2,7 @@ import { jsx as z } from "react/jsx-runtime";
|
|
|
2
2
|
import Q from "lodash/isNumber";
|
|
3
3
|
import U from "lodash/isPlainObject";
|
|
4
4
|
import { createContext as L, forwardRef as T, useContext as H, useMemo as W, useState as X, useRef as Y, useEffect as Z } from "react";
|
|
5
|
-
import { a as D } from "./
|
|
5
|
+
import { a as D } from "./xPzFRQJn.js";
|
|
6
6
|
import F from "../hooks/useMergeProps.js";
|
|
7
7
|
import q from "@unicom-cloud/utils/class-name";
|
|
8
8
|
import _ from "../utils/omit.js";
|
|
@@ -4,7 +4,7 @@ import q from "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import X from "lodash/isArray";
|
|
5
5
|
import w from "lodash/isNumber";
|
|
6
6
|
import { createContext as Y, forwardRef as Z, useContext as ee, useState as re, useRef as A, useEffect as F, useMemo as te } from "react";
|
|
7
|
-
import { a as ie } from "./
|
|
7
|
+
import { a as ie } from "./xPzFRQJn.js";
|
|
8
8
|
import se from "../hooks/useMergeValue.js";
|
|
9
9
|
import oe from "../ResizeBox.js";
|
|
10
10
|
import H from "@unicom-cloud/utils/class-name";
|
|
@@ -5,7 +5,7 @@ import Y from "lodash/isNumber";
|
|
|
5
5
|
import Tt from "lodash/throttle";
|
|
6
6
|
import Rt, { createContext as St, forwardRef as st, useContext as _, useRef as w, useImperativeHandle as ct, useEffect as b, isValidElement as vt, useState as Pt, useCallback as j } from "react";
|
|
7
7
|
import Et from "../Affix.js";
|
|
8
|
-
import { a as lt } from "./
|
|
8
|
+
import { a as lt } from "./xPzFRQJn.js";
|
|
9
9
|
import Mt from "../hooks/useIsFirstRender.js";
|
|
10
10
|
import at from "../hooks/useMergeProps.js";
|
|
11
11
|
import Ot from "../hooks/useStateWithPromise.js";
|
|
@@ -6,13 +6,13 @@ import je from "@unicom-cloud/icons/IconUiCheck";
|
|
|
6
6
|
import Ue from "@unicom-cloud/icons/IconUiLeft";
|
|
7
7
|
import We from "@unicom-cloud/icons/IconUiLoading";
|
|
8
8
|
import Ke from "@unicom-cloud/icons/IconUiRight";
|
|
9
|
-
import { isEmptyValue as ze, isEmptyArray as qe } from "@unicom-cloud/utils/is";
|
|
10
|
-
import
|
|
9
|
+
import { isPlainObject as we, isEmptyValue as ze, isEmptyArray as qe } from "@unicom-cloud/utils/is";
|
|
10
|
+
import _e from "lodash/isArray";
|
|
11
11
|
import W from "lodash/isFunction";
|
|
12
12
|
import oe from "lodash/isPlainObject";
|
|
13
13
|
import Y from "lodash/isString";
|
|
14
14
|
import Je, { useRef as z, useState as le, useCallback as se, useEffect as Z, forwardRef as Ge, useContext as Qe, useImperativeHandle as Xe } from "react";
|
|
15
|
-
import { a as Ye } from "./
|
|
15
|
+
import { a as Ye } from "./xPzFRQJn.js";
|
|
16
16
|
import ue from "../hooks/useForceUpdate.js";
|
|
17
17
|
import Ze from "../hooks/useId.js";
|
|
18
18
|
import et from "../hooks/useMergeProps.js";
|
|
@@ -21,15 +21,15 @@ import re from "../hooks/useUpdateEffect.js";
|
|
|
21
21
|
import tt from "../SelectView.js";
|
|
22
22
|
import nt from "../Trigger.js";
|
|
23
23
|
import q from "@unicom-cloud/utils/class-name";
|
|
24
|
-
import { Enter as he, ArrowLeft as rt, ArrowRight as lt, ArrowUp as
|
|
25
|
-
import {
|
|
24
|
+
import { Enter as he, ArrowLeft as rt, ArrowRight as lt, ArrowUp as Oe, ArrowDown as ae, Esc as fe, Tab as st } from "../utils/keyCode.js";
|
|
25
|
+
import { b as at, P as it } from "./DQ3uFRJD.js";
|
|
26
26
|
import me from "lodash/isEqualWith";
|
|
27
27
|
import ee from "lodash/get";
|
|
28
28
|
import { y as ct } from "./CiZVOdJ3.js";
|
|
29
|
-
import { C as
|
|
29
|
+
import { C as Le } from "./BH5fVprw.js";
|
|
30
30
|
import ot from "../hooks/useIsFirstRender.js";
|
|
31
|
-
import { on as
|
|
32
|
-
import
|
|
31
|
+
import { on as Pe, off as de } from "../utils/dom.js";
|
|
32
|
+
import "../utils/is.js";
|
|
33
33
|
import { V as xe } from "./CiEln_Q1.js";
|
|
34
34
|
import dt from "../hooks/useRefs.js";
|
|
35
35
|
function ut(t, e) {
|
|
@@ -184,7 +184,7 @@ class ht {
|
|
|
184
184
|
const e = !this.config.changeOnSelect;
|
|
185
185
|
this.flatNodes = [];
|
|
186
186
|
const n = (l) => {
|
|
187
|
-
l && ((!e || l.isLeaf) && this.flatNodes.push(l),
|
|
187
|
+
l && ((!e || l.isLeaf) && this.flatNodes.push(l), _e(l.children) && l.children.forEach((a) => {
|
|
188
188
|
n(a);
|
|
189
189
|
}));
|
|
190
190
|
};
|
|
@@ -308,7 +308,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
|
|
|
308
308
|
const { prefixCls: e, multiple: n, option: l, renderOption: a, selected: c, icons: r } = t, k = l.disabled || n && l.disableCheckbox;
|
|
309
309
|
return /* @__PURE__ */ X(ne, { children: [
|
|
310
310
|
n ? /* @__PURE__ */ g(
|
|
311
|
-
|
|
311
|
+
Le,
|
|
312
312
|
{
|
|
313
313
|
disabled: k,
|
|
314
314
|
checked: l._checked,
|
|
@@ -403,7 +403,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
|
|
|
403
403
|
break;
|
|
404
404
|
}
|
|
405
405
|
case ae.key:
|
|
406
|
-
case
|
|
406
|
+
case Oe.key: {
|
|
407
407
|
if (!h)
|
|
408
408
|
C = bt(O);
|
|
409
409
|
else {
|
|
@@ -450,7 +450,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
|
|
|
450
450
|
}, [t.popupVisible]), Z(() => {
|
|
451
451
|
const s = t.getTriggerElement();
|
|
452
452
|
if (s)
|
|
453
|
-
return t.popupVisible ?
|
|
453
|
+
return t.popupVisible ? Pe(s, "keydown", p) : de(s, "keydown", p), () => {
|
|
454
454
|
de(s, "keydown", p);
|
|
455
455
|
};
|
|
456
456
|
}, [t.popupVisible, p]);
|
|
@@ -506,7 +506,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
|
|
|
506
506
|
data: s,
|
|
507
507
|
isStaticItemHeight: !0,
|
|
508
508
|
itemKey: "value",
|
|
509
|
-
...
|
|
509
|
+
...we(t.virtualListProps) ? t.virtualListProps : {},
|
|
510
510
|
wrapper: "ul",
|
|
511
511
|
role: "menu",
|
|
512
512
|
ref: (o) => n(o, u),
|
|
@@ -641,7 +641,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
|
|
|
641
641
|
case fe.key:
|
|
642
642
|
return (D = t.onEsc) == null || D.call(t), !1;
|
|
643
643
|
case ae.key:
|
|
644
|
-
case
|
|
644
|
+
case Oe.key: {
|
|
645
645
|
h.current = !0;
|
|
646
646
|
const w = ae.key === p ? 1 : -1;
|
|
647
647
|
let $ = Se(
|
|
@@ -662,7 +662,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
|
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
};
|
|
665
|
-
return
|
|
665
|
+
return Pe(f, "keydown", L), () => {
|
|
666
666
|
de(f, "keydown", L);
|
|
667
667
|
};
|
|
668
668
|
}, [N, O, x]), Z(() => {
|
|
@@ -684,7 +684,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
|
|
|
684
684
|
data: N,
|
|
685
685
|
isStaticItemHeight: !0,
|
|
686
686
|
threshold: t.virtualListProps ? 100 : null,
|
|
687
|
-
...
|
|
687
|
+
...we(t.virtualListProps) ? t.virtualListProps : {},
|
|
688
688
|
onMouseMove: () => {
|
|
689
689
|
h.current = !1;
|
|
690
690
|
},
|
|
@@ -720,7 +720,7 @@ const ie = (t) => (t || []).reduce((l, a) => (l.add([].concat(a).join(G)), l), /
|
|
|
720
720
|
onMouseLeave: () => {
|
|
721
721
|
!h.current && !f.disabled && j(_ ? 0 : -1);
|
|
722
722
|
},
|
|
723
|
-
children: /* @__PURE__ */ g("div", { className: `${n}-list-item-label`, children: W(t.renderOption) ? $ : l ? /* @__PURE__ */ g(
|
|
723
|
+
children: /* @__PURE__ */ g("div", { className: `${n}-list-item-label`, children: W(t.renderOption) ? $ : l ? /* @__PURE__ */ g(Le, { checked: D, disabled: f.disabled, children: $ }) : /* @__PURE__ */ X(ne, { children: [
|
|
724
724
|
$,
|
|
725
725
|
D && /* @__PURE__ */ g("span", { className: `${n}-check-icon`, children: b.checked })
|
|
726
726
|
] }) })
|
|
@@ -821,7 +821,7 @@ function wt(t, e) {
|
|
|
821
821
|
(i) => {
|
|
822
822
|
var y;
|
|
823
823
|
const m = pe([i])[0] || [];
|
|
824
|
-
let v, M =
|
|
824
|
+
let v, M = _e(i) ? i.map((R) => String(R)) : [];
|
|
825
825
|
return m.length && (M = m.map((R) => R.label)), W(_) ? v = _(M) : M.every((R) => Y(R)) ? v = M.join(" / ") : v = M.reduce((R, B, ce) => R.concat(ce === 0 ? [B] : [" / ", B]), []), {
|
|
826
826
|
text: v || "",
|
|
827
827
|
disabled: (y = m[m.length - 1]) == null ? void 0 : y.disabled
|