@unicom-cloud/ui 0.8.75 → 0.8.77
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 +1 -1
- package/AutoComplete.js +3 -5
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- 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 +6 -2
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -4
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -3
- 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 +1 -1
- 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 +5 -6
- package/Mentions.js +3 -4
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +5 -4
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +5 -6
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +4 -3
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +15 -16
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +2 -2
- package/Transfer.js +3 -4
- package/Tree.js +2 -3
- package/TreeSelect.js +3 -3
- package/Trigger.js +1 -1
- package/Typography.js +3 -3
- package/affix/index.js +86 -82
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/auto-complete/index.js +13 -147
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +12 -318
- 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 +8 -8
- package/checkbox/Checkbox.js +7 -4
- package/checkbox/Group.js +5 -5
- package/checkbox/GroupBlock.js +8 -0
- package/checkbox/index.js +7 -2
- package/chunk/{BbqvFW5R.js → 9TSjT7x_.js} +112 -112
- package/chunk/ATwvJ8j2.js +6 -0
- package/chunk/{Dv6USvVF.js → BC5fEyWK.js} +2 -1
- package/chunk/{WVoGhvMI.js → BPQXH_5i.js} +32 -31
- package/chunk/{BPD5iNdA.js → CB4jGw4K.js} +22 -18
- package/chunk/{B8hkFIar.js → CBgu99gQ.js} +1 -1
- package/chunk/CBzE-PUr.js +23 -0
- package/chunk/CNcLypMY.js +723 -0
- package/chunk/{CPlPBkN7.js → C_4I3haT.js} +1 -1
- package/chunk/{0mWCmQHr.js → CjqvxJml.js} +2 -2
- package/chunk/Cwm8LL5p.js +7818 -0
- package/chunk/D0ZWT7db.js +5 -0
- package/chunk/{CWlklVfi.js → tpmioyz1.js} +1 -1
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- 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 +2 -2
- package/color-picker/InputRgb.js +2 -2
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +15 -266
- package/color-picker/colors.js +4 -4
- package/color-picker/index.js +13 -268
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +4 -6
- package/config-provider/context.js +3 -2
- package/config-provider/index.js +4 -5
- 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 +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +30 -21
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/form/Form.js +10 -10
- package/form/FormItem.js +1 -1
- package/form/context.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +1 -1
- package/grid/grid-item.js +1 -1
- package/grid/grid.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +453 -463
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- 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 +17 -267
- package/mentions/index.js +11 -144
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +1 -1
- 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 +5 -45
- package/pagination/Pagination.js +11 -243
- package/pagination/index.js +2 -2
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/Group.js +5 -5
- package/radio/GroupBlock.js +9 -0
- package/radio/Radio.js +6 -5
- package/radio/index.js +4 -3
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/select/Option.js +6 -93
- package/select/Select.js +23 -546
- package/select/index.js +3 -3
- package/select/util.js +18 -139
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +4 -3
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/statistic/Countdown.js +1 -1
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style/variables.less +0 -484
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +2 -3
- package/table/index.js +15 -109
- package/tabs/Tab.js +2 -2
- 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 +2 -2
- package/transfer/Item.js +9 -104
- package/transfer/List.js +13 -184
- package/transfer/index.js +13 -180
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -4
- package/tree/NodeList.js +6 -80
- package/tree/Tree.js +17 -578
- package/tree/index.js +2 -3
- package/tree-select/List.js +6 -122
- package/tree-select/Select.js +22 -392
- package/tree-select/index.js +3 -3
- package/trigger/index.js +1 -1
- package/types/checkbox/Checkbox.d.ts +5 -2
- package/types/checkbox/GroupBlock.d.ts +7 -0
- package/types/checkbox/index.d.ts +2 -1
- package/types/config-provider/ConfigProvider.d.ts +0 -27
- package/types/config-provider/interface.d.ts +3 -1
- package/types/index.d.ts +2 -2
- package/types/menu/context.d.ts +1 -1
- package/types/radio/GroupBlock.d.ts +7 -0
- package/types/radio/Radio.d.ts +5 -3
- package/types/utils/constant.d.ts +2 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/setDarkTheme.d.ts +2 -3
- package/types/utils/setPrimaryColor.d.ts +2 -0
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +9 -22
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +10 -276
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +43 -44
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/color.js +1 -1
- package/utils/constant.js +7 -5
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +199 -195
- package/utils/setDarkTheme.js +34 -5
- package/utils/setPrimaryColor.js +26 -0
- package/utils/tinycolor.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BViFMHr-.js +0 -1820
- package/chunk/BsWphzcT.js +0 -20
- package/chunk/BxZ39GzB.js +0 -209
- package/chunk/C9XYyypq.js +0 -713
- package/chunk/CIkPwQlq.js +0 -6
- package/chunk/DFcz9ZPP.js +0 -1020
- package/chunk/DeCsZrXb.js +0 -310
- package/chunk/DskaI8QL.js +0 -25
- package/chunk/EL5Jmjgr.js +0 -170
package/modal/Modal.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import "lodash/isFunction";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../button/index.js";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/CNcLypMY.js";
|
|
7
7
|
import "../chunk/oopARUrq.js";
|
|
8
8
|
import "../chunk/BFTV6myl.js";
|
|
9
9
|
import "../chunk/DeV0v__J.js";
|
|
@@ -15,7 +15,7 @@ import "../utils/dom.js";
|
|
|
15
15
|
import "../chunk/BrOW642m.js";
|
|
16
16
|
import "../chunk/BKKEev13.js";
|
|
17
17
|
import "../chunk/Cc_-i0o_.js";
|
|
18
|
-
import { E as k } from "../chunk/
|
|
18
|
+
import { E as k } from "../chunk/BPQXH_5i.js";
|
|
19
19
|
import "./config.js";
|
|
20
20
|
export {
|
|
21
21
|
k as default
|
package/modal/index.js
CHANGED
package/notice/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
|
7
7
|
import "@unicom-cloud/icons/IconUiLoading";
|
|
8
8
|
import "@unicom-cloud/icons/context";
|
|
9
9
|
import "react";
|
|
10
|
-
import {
|
|
10
|
+
import { e as v } from "../chunk/CNcLypMY.js";
|
|
11
11
|
import "lodash/isEqualWith";
|
|
12
12
|
import "../chunk/DAAff-FT.js";
|
|
13
13
|
import "lodash/isNumber";
|
package/notification/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import "lodash/isUndefined";
|
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "react-dom/client";
|
|
8
|
-
import { N as g, g as u, n as N, c as d } from "../chunk/
|
|
8
|
+
import { N as g, g as u, n as N, c as d } from "../chunk/CNcLypMY.js";
|
|
9
9
|
import "../chunk/BpYX5PN4.js";
|
|
10
10
|
import "../chunk/CUFsOxJ2.js";
|
|
11
11
|
import "./withNotification.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import u from "lodash/isFunction";
|
|
3
3
|
import { useContext as a, useRef as d, useEffect as i } from "react";
|
|
4
|
-
import { a as l } from "../chunk/
|
|
4
|
+
import { a as l } from "../chunk/CNcLypMY.js";
|
|
5
5
|
import { p as x } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
import { r as h } from "../chunk/CIRG541s.js";
|
|
7
7
|
function E(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as j, jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as k, useState as i, useLayoutEffect as N, useRef as b, useEffect as E } from "react";
|
|
3
|
-
import { a as z } from "../chunk/
|
|
3
|
+
import { a as z } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { p as I } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
import { r as M } from "../chunk/CIRG541s.js";
|
|
6
6
|
import v from "./OverflowItem.js";
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@unicom-cloud/ui","version":"0.8.
|
|
1
|
+
{"name":"@unicom-cloud/ui","version":"0.8.77","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"type":"module","types":"types/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
|
package/page-header/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import B from "@unicom-cloud/icons/IconUiLeft";
|
|
|
3
3
|
import _ from "@unicom-cloud/icons/IconUiRight";
|
|
4
4
|
import T, { useContext as W, useState as j, useRef as z, useImperativeHandle as K, useEffect as U } from "react";
|
|
5
5
|
import D from "../breadcrumb/index.js";
|
|
6
|
-
import { a as F, I as L } from "../chunk/
|
|
6
|
+
import { a as F, I as L } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import { u as M } from "../chunk/XTEsYGuF.js";
|
|
8
8
|
import { u as O } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import { p } from "../chunk/CUFsOxJ2.js";
|
package/pagination/PageItem.js
CHANGED
|
@@ -3,7 +3,7 @@ import S from "@unicom-cloud/icons/IconUiLeft";
|
|
|
3
3
|
import j from "@unicom-cloud/icons/IconUiMore";
|
|
4
4
|
import K from "@unicom-cloud/icons/IconUiRight";
|
|
5
5
|
import U, { useContext as E } from "react";
|
|
6
|
-
import { a as N } from "../chunk/
|
|
6
|
+
import { a as N } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import { u as R } from "../chunk/XTEsYGuF.js";
|
|
8
8
|
import { p as k } from "../chunk/CUFsOxJ2.js";
|
|
9
9
|
var _ = /* @__PURE__ */ ((t) => (t[t.previous = 0] = "previous", t[t.next = 1] = "next", t))(_ || {});
|
package/pagination/PageJumper.js
CHANGED
|
@@ -3,7 +3,7 @@ import I from "lodash/isFunction";
|
|
|
3
3
|
import J from "lodash/isPlainObject";
|
|
4
4
|
import N from "lodash/isUndefined";
|
|
5
5
|
import { useContext as E, useState as R, useRef as T, useEffect as w } from "react";
|
|
6
|
-
import { a as z } from "../chunk/
|
|
6
|
+
import { a as z } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import B from "../input/Input.js";
|
|
8
8
|
function A(n) {
|
|
9
9
|
var d, g;
|
package/pagination/PageOption.js
CHANGED
|
@@ -1,47 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const x = () => {
|
|
6
|
-
}, z = p.Option, h = [10, 20, 30, 40, 50];
|
|
7
|
-
function S(c) {
|
|
8
|
-
var a;
|
|
9
|
-
const i = d(null), { locale: e } = C(O), {
|
|
10
|
-
onPageSizeChange: f = x,
|
|
11
|
-
rootPrefixCls: g,
|
|
12
|
-
sizeOptions: n = h,
|
|
13
|
-
pageSize: r = 10,
|
|
14
|
-
size: m,
|
|
15
|
-
selectProps: l,
|
|
16
|
-
disabled: u
|
|
17
|
-
} = c;
|
|
18
|
-
return /* @__PURE__ */ t(
|
|
19
|
-
"div",
|
|
20
|
-
{
|
|
21
|
-
ref: i,
|
|
22
|
-
className: `${g}-option`,
|
|
23
|
-
"aria-label": (a = e == null ? void 0 : e.Pagination) == null ? void 0 : a.pageSize,
|
|
24
|
-
children: /* @__PURE__ */ t(
|
|
25
|
-
p,
|
|
26
|
-
{
|
|
27
|
-
value: n.indexOf(r) !== -1 ? r : n[0],
|
|
28
|
-
onChange: (o) => {
|
|
29
|
-
f(o);
|
|
30
|
-
},
|
|
31
|
-
size: m,
|
|
32
|
-
getPopupContainer: () => i.current,
|
|
33
|
-
disabled: u,
|
|
34
|
-
...l,
|
|
35
|
-
children: n.map((o) => {
|
|
36
|
-
var s;
|
|
37
|
-
return /* @__PURE__ */ t(z, { value: o, children: `${o} ${(s = e == null ? void 0 : e.Pagination) == null ? void 0 : s.countPerPage}` }, o);
|
|
38
|
-
})
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
const j = P.memo(S);
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../chunk/CNcLypMY.js";
|
|
4
|
+
import { a2 as a } from "../chunk/Cwm8LL5p.js";
|
|
45
5
|
export {
|
|
46
|
-
|
|
6
|
+
a as default
|
|
47
7
|
};
|
package/pagination/Pagination.js
CHANGED
|
@@ -1,245 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const Ee = 1, Y = 10;
|
|
12
|
-
function I(f = Y, d) {
|
|
13
|
-
return Math.ceil(d / f);
|
|
14
|
-
}
|
|
15
|
-
function Re(f, d) {
|
|
16
|
-
const M = Math.floor(d / 2) - 1, C = Math.max(f, 0);
|
|
17
|
-
return Math.min(C, M);
|
|
18
|
-
}
|
|
19
|
-
function X(f) {
|
|
20
|
-
return f && f.length ? f[0] : Y;
|
|
21
|
-
}
|
|
22
|
-
const Oe = {
|
|
23
|
-
total: 0,
|
|
24
|
-
pageSizeChangeResetCurrent: !0,
|
|
25
|
-
bufferSize: 2
|
|
26
|
-
};
|
|
27
|
-
function Fe(f, d) {
|
|
28
|
-
var D, N, W;
|
|
29
|
-
const {
|
|
30
|
-
getPrefixCls: T,
|
|
31
|
-
size: M,
|
|
32
|
-
locale: C,
|
|
33
|
-
componentConfig: j,
|
|
34
|
-
rtl: Z
|
|
35
|
-
} = be(Me), s = je(
|
|
36
|
-
f,
|
|
37
|
-
Oe,
|
|
38
|
-
j == null ? void 0 : j.Pagination
|
|
39
|
-
), {
|
|
40
|
-
total: ee,
|
|
41
|
-
pageSize: te,
|
|
42
|
-
current: V,
|
|
43
|
-
showMore: ne,
|
|
44
|
-
sizeOptions: z,
|
|
45
|
-
pageSizeChangeResetCurrent: B,
|
|
46
|
-
defaultCurrent: re,
|
|
47
|
-
defaultPageSize: ae,
|
|
48
|
-
pageOption: oe = {}
|
|
49
|
-
// 潘启宝添加
|
|
50
|
-
} = s, [e, k] = Q(Ee, {
|
|
51
|
-
defaultValue: re,
|
|
52
|
-
value: V
|
|
53
|
-
}), [g, L] = Q(
|
|
54
|
-
X(z),
|
|
55
|
-
{
|
|
56
|
-
defaultValue: ae,
|
|
57
|
-
value: te
|
|
58
|
-
}
|
|
59
|
-
), h = ee, se = !!ne;
|
|
60
|
-
V && !s.onChange && console.warn(
|
|
61
|
-
"Warning: you have provide current prop for pagination but without onChange handler , this will cause no-change when you change page. "
|
|
62
|
-
);
|
|
63
|
-
function ie(t, a) {
|
|
64
|
-
const n = I(t, a);
|
|
65
|
-
return e > n ? n : e;
|
|
66
|
-
}
|
|
67
|
-
K(() => {
|
|
68
|
-
if (z && !z.includes(g)) {
|
|
69
|
-
const a = X(z);
|
|
70
|
-
"pageSize" in s || L(a);
|
|
71
|
-
}
|
|
72
|
-
}, [z]), K(() => {
|
|
73
|
-
const t = ie(g, h);
|
|
74
|
-
t !== e && !("current" in s) && k(t);
|
|
75
|
-
}, [h, e, g]);
|
|
76
|
-
const _ = (t = e, a = g) => {
|
|
77
|
-
const { onChange: n } = s;
|
|
78
|
-
n == null || n(t, a);
|
|
79
|
-
}, le = (t) => {
|
|
80
|
-
const { onPageSizeChange: a } = s, n = I(t, h), o = {
|
|
81
|
-
pageSize: t
|
|
82
|
-
};
|
|
83
|
-
B ? o.current = 1 : o.current = e > n ? n : e, "pageSize" in s || L(o.pageSize), !("current" in s) && e !== o.current && k(o.current), a == null || a(t, o.current), _(B ? 1 : o.current, t);
|
|
84
|
-
}, J = (t) => {
|
|
85
|
-
"current" in s || k(t), _(t);
|
|
86
|
-
}, {
|
|
87
|
-
className: ue,
|
|
88
|
-
style: pe,
|
|
89
|
-
pageItemStyle: ce,
|
|
90
|
-
activePageItemStyle: fe,
|
|
91
|
-
showTotal: S,
|
|
92
|
-
sizeCanChange: ge,
|
|
93
|
-
sizeOptions: me,
|
|
94
|
-
simple: y,
|
|
95
|
-
mini: he,
|
|
96
|
-
showJumper: A,
|
|
97
|
-
selectProps: Pe,
|
|
98
|
-
icons: de,
|
|
99
|
-
disabled: x,
|
|
100
|
-
itemRender: Ce,
|
|
101
|
-
hideOnSinglePage: ze
|
|
102
|
-
} = s, xe = s.size || M, r = T("pagination"), w = he ? "mini" : xe, Se = ke(
|
|
103
|
-
r,
|
|
104
|
-
`${r}-size-${w}`,
|
|
105
|
-
{
|
|
106
|
-
[`${r}-simple`]: y,
|
|
107
|
-
[`${r}-disabled`]: x,
|
|
108
|
-
[`${r}-rtl`]: Z
|
|
109
|
-
},
|
|
110
|
-
ue
|
|
111
|
-
);
|
|
112
|
-
let E;
|
|
113
|
-
const i = [], l = I(g, h), c = Re(s.bufferSize, l);
|
|
114
|
-
if (ze && l <= 1)
|
|
115
|
-
return null;
|
|
116
|
-
const u = {
|
|
117
|
-
onClick: J,
|
|
118
|
-
rootPrefixCls: r,
|
|
119
|
-
simple: y,
|
|
120
|
-
current: e,
|
|
121
|
-
allPages: l,
|
|
122
|
-
icons: de,
|
|
123
|
-
disabled: x,
|
|
124
|
-
pageItemStyle: ce,
|
|
125
|
-
activePageItemStyle: fe,
|
|
126
|
-
itemRender: Ce
|
|
127
|
-
};
|
|
128
|
-
if (y) {
|
|
129
|
-
const t = `${r}-item-simple`;
|
|
130
|
-
E = /* @__PURE__ */ O("ul", { className: `${r}-list`, children: [
|
|
131
|
-
/* @__PURE__ */ p(b, { ...u, type: m.previous }, "previous"),
|
|
132
|
-
/* @__PURE__ */ p("li", { className: `${t}-pager`, children: /* @__PURE__ */ p(
|
|
133
|
-
U,
|
|
134
|
-
{
|
|
135
|
-
disabled: x,
|
|
136
|
-
rootPrefixCls: r,
|
|
137
|
-
totalPages: l,
|
|
138
|
-
current: e,
|
|
139
|
-
onPageChange: J,
|
|
140
|
-
simple: {
|
|
141
|
-
showJumper: typeof A == "boolean" ? A : !0
|
|
142
|
-
},
|
|
143
|
-
size: w
|
|
144
|
-
}
|
|
145
|
-
) }),
|
|
146
|
-
/* @__PURE__ */ p(b, { ...u, type: m.next }, "next")
|
|
147
|
-
] });
|
|
148
|
-
} else {
|
|
149
|
-
const t = 3 + c, a = l - 2 - c;
|
|
150
|
-
if (
|
|
151
|
-
// beginPage(1 page) + bufferSize * 2 + endPage(1 page) + ...(2 pages)
|
|
152
|
-
l <= 4 + c * 2 || e === t && e === a
|
|
153
|
-
)
|
|
154
|
-
for (let n = 1; n <= l; n++)
|
|
155
|
-
i.push(/* @__PURE__ */ P($, { ...u, key: n, pageNum: n }));
|
|
156
|
-
else {
|
|
157
|
-
let n = 1, o = l, q = !0, G = !0;
|
|
158
|
-
e > t && e < a ? (o = e + c, n = e - c) : e <= t ? (q = !1, n = 1, o = Math.max(t, c + e)) : e >= a && (G = !1, o = l, n = Math.min(a, e - c));
|
|
159
|
-
for (let v = n; v <= o; v++)
|
|
160
|
-
i.push(/* @__PURE__ */ p($, { pageNum: v, ...u }, v));
|
|
161
|
-
const ye = /* @__PURE__ */ P(
|
|
162
|
-
F,
|
|
163
|
-
{
|
|
164
|
-
...u,
|
|
165
|
-
key: n - 1,
|
|
166
|
-
type: m.previous,
|
|
167
|
-
jumpPage: -(c * 2 + 1)
|
|
168
|
-
}
|
|
169
|
-
), we = /* @__PURE__ */ P(
|
|
170
|
-
F,
|
|
171
|
-
{
|
|
172
|
-
...u,
|
|
173
|
-
key: o + 1,
|
|
174
|
-
type: m.next,
|
|
175
|
-
jumpPage: c * 2 + 1
|
|
176
|
-
}
|
|
177
|
-
), Ne = /* @__PURE__ */ p($, { pageNum: 1, ...u }, 1), ve = /* @__PURE__ */ P($, { ...u, key: l, pageNum: l });
|
|
178
|
-
q && (i[0] = H.cloneElement(i[0], {
|
|
179
|
-
className: `${r}-item-after-pre`
|
|
180
|
-
}), i.unshift(ye), i.unshift(Ne)), G && (i[i.length - 1] = H.cloneElement(
|
|
181
|
-
i[i.length - 1],
|
|
182
|
-
{
|
|
183
|
-
className: `${r}-item-before-next`
|
|
184
|
-
}
|
|
185
|
-
), i.push(we), i.push(ve));
|
|
186
|
-
}
|
|
187
|
-
E = /* @__PURE__ */ O("ul", { className: `${r}-list`, children: [
|
|
188
|
-
/* @__PURE__ */ P(b, { ...u, key: "previous", type: m.previous }),
|
|
189
|
-
i,
|
|
190
|
-
se && /* @__PURE__ */ P(
|
|
191
|
-
F,
|
|
192
|
-
{
|
|
193
|
-
...u,
|
|
194
|
-
key: l + 1,
|
|
195
|
-
type: m.next,
|
|
196
|
-
jumpPage: c * 2 + 1
|
|
197
|
-
}
|
|
198
|
-
),
|
|
199
|
-
/* @__PURE__ */ p(b, { ...u, type: m.next }, "next")
|
|
200
|
-
] });
|
|
201
|
-
}
|
|
202
|
-
let R = null;
|
|
203
|
-
return typeof S == "boolean" && S && (R = /* @__PURE__ */ p("div", { className: `${r}-total-text`, children: (W = (N = (D = C == null ? void 0 : C.Pagination) == null ? void 0 : D.total) == null ? void 0 : N.replace) == null ? void 0 : W.call(N, "{0}", h) })), typeof S == "function" && (R = /* @__PURE__ */ p("div", { className: `${r}-total-text`, children: S(h, [(e - 1) * g + 1, e * g]) })), /* @__PURE__ */ O(
|
|
204
|
-
"div",
|
|
205
|
-
{
|
|
206
|
-
...Je(s),
|
|
207
|
-
className: Se,
|
|
208
|
-
style: pe,
|
|
209
|
-
ref: d,
|
|
210
|
-
children: [
|
|
211
|
-
R,
|
|
212
|
-
E,
|
|
213
|
-
!!oe && /* @__PURE__ */ p(
|
|
214
|
-
Ae,
|
|
215
|
-
{
|
|
216
|
-
disabled: x,
|
|
217
|
-
rootPrefixCls: r,
|
|
218
|
-
sizeCanChange: ge,
|
|
219
|
-
sizeOptions: me,
|
|
220
|
-
onPageSizeChange: le,
|
|
221
|
-
pageSize: g,
|
|
222
|
-
size: w,
|
|
223
|
-
selectProps: Pe
|
|
224
|
-
}
|
|
225
|
-
),
|
|
226
|
-
!y && A && /* @__PURE__ */ p(
|
|
227
|
-
U,
|
|
228
|
-
{
|
|
229
|
-
disabled: x,
|
|
230
|
-
rootPrefixCls: r,
|
|
231
|
-
totalPages: l,
|
|
232
|
-
current: e,
|
|
233
|
-
onPageChange: J,
|
|
234
|
-
size: w
|
|
235
|
-
}
|
|
236
|
-
)
|
|
237
|
-
]
|
|
238
|
-
}
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
const Ie = $e(Fe);
|
|
242
|
-
Ie.displayName = "Pagination";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "../chunk/CNcLypMY.js";
|
|
4
|
+
import "../chunk/BFTV6myl.js";
|
|
5
|
+
import "../chunk/DeV0v__J.js";
|
|
6
|
+
import "../chunk/CUFsOxJ2.js";
|
|
7
|
+
import "../chunk/ClqoGc3r.js";
|
|
8
|
+
import "./PageItem.js";
|
|
9
|
+
import "./PageJumper.js";
|
|
10
|
+
import { P as s } from "../chunk/Cwm8LL5p.js";
|
|
243
11
|
export {
|
|
244
|
-
|
|
12
|
+
s as default
|
|
245
13
|
};
|
package/pagination/index.js
CHANGED
package/picker/Input.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as C, jsx as f } from "react/jsx-runtime";
|
|
|
2
2
|
import X from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import Y from "lodash/isArray";
|
|
4
4
|
import { forwardRef as Z, useContext as _, useRef as I, useState as E, useImperativeHandle as P } from "react";
|
|
5
|
-
import { a as p, I as ee } from "../chunk/
|
|
5
|
+
import { a as p, I as ee } from "../chunk/CNcLypMY.js";
|
|
6
6
|
import { p as k } from "../chunk/CUFsOxJ2.js";
|
|
7
7
|
import { e as ce } from "../chunk/BrOW642m.js";
|
|
8
8
|
import { o as le } from "../chunk/BKKEev13.js";
|
package/picker/InputRange.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as q, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import fc from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import F from "lodash/isArray";
|
|
4
4
|
import { forwardRef as nc, useContext as sc, useRef as D, useState as ic, useImperativeHandle as mc } from "react";
|
|
5
|
-
import { a as uc, I as $c } from "../chunk/
|
|
5
|
+
import { a as uc, I as $c } from "../chunk/CNcLypMY.js";
|
|
6
6
|
import { p as B } from "../chunk/CUFsOxJ2.js";
|
|
7
7
|
import { e as hc, c as yc } from "../chunk/BrOW642m.js";
|
|
8
8
|
import { o as Cc } from "../chunk/BKKEev13.js";
|
package/popconfirm/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import N from "lodash/isFunction";
|
|
|
4
4
|
import K from "lodash/isNil";
|
|
5
5
|
import { forwardRef as Q, useContext as X, useState as Y, useImperativeHandle as Z, useEffect as _ } from "react";
|
|
6
6
|
import V from "../button/index.js";
|
|
7
|
-
import { a as ee } from "../chunk/
|
|
7
|
+
import { a as ee } from "../chunk/CNcLypMY.js";
|
|
8
8
|
import { u as oe } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import { u as ne } from "../chunk/DeV0v__J.js";
|
|
10
10
|
import te from "../tooltip/index.js";
|
package/popover/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as j, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import m from "lodash/isFunction";
|
|
3
3
|
import { forwardRef as O, useContext as R } from "react";
|
|
4
|
-
import { a as T } from "../chunk/
|
|
4
|
+
import { a as T } from "../chunk/CNcLypMY.js";
|
|
5
5
|
import { u as w } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import F from "../tooltip/index.js";
|
|
7
7
|
import { p as H } from "../chunk/CUFsOxJ2.js";
|
package/progress/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as w, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y, useContext as $ } from "react";
|
|
3
|
-
import { a as k } from "../chunk/
|
|
3
|
+
import { a as k } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { u as S } from "../chunk/BFTV6myl.js";
|
|
5
5
|
import { p as T } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
import { o as N } from "../chunk/BKKEev13.js";
|
package/radio/Group.js
CHANGED
|
@@ -2,15 +2,15 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isArray";
|
|
3
3
|
import "lodash/isPlainObject";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/CNcLypMY.js";
|
|
6
6
|
import "../chunk/BFTV6myl.js";
|
|
7
7
|
import "../chunk/DeV0v__J.js";
|
|
8
8
|
import "../chunk/CUFsOxJ2.js";
|
|
9
9
|
import "../utils/constant.js";
|
|
10
10
|
import "../chunk/ClqoGc3r.js";
|
|
11
|
-
import {
|
|
11
|
+
import { x as C, g as f, e as l } from "../chunk/Cwm8LL5p.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
C as ClearRadioGroupContext,
|
|
14
|
+
f as RadioGroupContext,
|
|
15
|
+
l as default
|
|
16
16
|
};
|
package/radio/Radio.js
CHANGED
|
@@ -2,14 +2,15 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isFunction";
|
|
3
3
|
import "lodash/isNil";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/CNcLypMY.js";
|
|
6
6
|
import "../chunk/BFTV6myl.js";
|
|
7
7
|
import "../chunk/DeV0v__J.js";
|
|
8
8
|
import "../chunk/CUFsOxJ2.js";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
|
-
import {
|
|
10
|
+
import { e as R, f, g as G, R as l } from "../chunk/Cwm8LL5p.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
R as RadioGroup,
|
|
13
|
+
f as RadioGroupBlock,
|
|
14
|
+
G as RadioGroupContext,
|
|
15
|
+
l as default
|
|
15
16
|
};
|
package/radio/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { R as a } from "../chunk/
|
|
2
|
-
import {
|
|
1
|
+
import { R as a } from "../chunk/Cwm8LL5p.js";
|
|
2
|
+
import { x as e, e as p, f as d, g as i } from "../chunk/Cwm8LL5p.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ClearRadioGroupContext,
|
|
5
5
|
p as RadioGroup,
|
|
6
|
-
d as
|
|
6
|
+
d as RadioGroupBlock,
|
|
7
|
+
i as RadioGroupContext,
|
|
7
8
|
a as default
|
|
8
9
|
};
|
package/rate/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import x from "@unicom-cloud/icons/IconUiFaceSmileFill";
|
|
|
5
5
|
import tt from "@unicom-cloud/icons/IconUiStarFill";
|
|
6
6
|
import { times as et, divide as rt } from "../utils/math.js";
|
|
7
7
|
import g, { useContext as ot, useState as y } from "react";
|
|
8
|
-
import { a as at } from "../chunk/
|
|
8
|
+
import { a as at } from "../chunk/CNcLypMY.js";
|
|
9
9
|
import { u as st } from "../chunk/BFTV6myl.js";
|
|
10
10
|
import ct from "../tooltip/index.js";
|
|
11
11
|
import { p as U } from "../chunk/CUFsOxJ2.js";
|
|
@@ -7,7 +7,7 @@ import L from "@unicom-cloud/icons/IconUiDragDot";
|
|
|
7
7
|
import M from "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
8
8
|
import g from "lodash/isFunction";
|
|
9
9
|
import { useContext as V, useRef as q, useEffect as A } from "react";
|
|
10
|
-
import { a as B } from "../chunk/
|
|
10
|
+
import { a as B } from "../chunk/CNcLypMY.js";
|
|
11
11
|
import { p as o } from "../chunk/CUFsOxJ2.js";
|
|
12
12
|
import "../chunk/DAAff-FT.js";
|
|
13
13
|
import { o as G } from "../chunk/BKKEev13.js";
|
package/resize-box/Split.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as y, jsxs as ie } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as ce, useContext as ae, useState as D, useRef as T, useImperativeHandle as fe, useEffect as ue } from "react";
|
|
3
|
-
import { a as le } from "../chunk/
|
|
3
|
+
import { a as le } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { u as me } from "../chunk/B2yFlXke.js";
|
|
5
5
|
import { p as $ } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
import { on as l, off as m } from "../utils/dom.js";
|
package/resize-box/SplitGroup.js
CHANGED
|
@@ -5,7 +5,7 @@ import S from "lodash/isPlainObject";
|
|
|
5
5
|
import Ot from "lodash/isString";
|
|
6
6
|
import W from "lodash/isUndefined";
|
|
7
7
|
import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as y, useEffect as L, useImperativeHandle as zt } from "react";
|
|
8
|
-
import { a as Pt } from "../chunk/
|
|
8
|
+
import { a as Pt } from "../chunk/CNcLypMY.js";
|
|
9
9
|
import { p as Rt } from "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import { on as P, off as R } from "../utils/dom.js";
|
|
11
11
|
import { o as Nt } from "../chunk/BKKEev13.js";
|
package/resize-box/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as ot, jsx as rt } from "react/jsx-runtime";
|
|
2
2
|
import B from "lodash/isNumber";
|
|
3
3
|
import { forwardRef as nt, useContext as st, useState as it, useRef as E, useImperativeHandle as ct } from "react";
|
|
4
|
-
import { a as at } from "../chunk/
|
|
4
|
+
import { a as at } from "../chunk/CNcLypMY.js";
|
|
5
5
|
import { u as ut } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { u as W } from "../chunk/DeV0v__J.js";
|
|
7
7
|
import { p as mt } from "../chunk/CUFsOxJ2.js";
|
package/result/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import v from "@unicom-cloud/icons/IconUiClose";
|
|
|
4
4
|
import C from "@unicom-cloud/icons/IconUiExclamation";
|
|
5
5
|
import R from "@unicom-cloud/icons/IconUiInfo";
|
|
6
6
|
import { forwardRef as U, useContext as P } from "react";
|
|
7
|
-
import { a as b } from "../chunk/
|
|
7
|
+
import { a as b } from "../chunk/CNcLypMY.js";
|
|
8
8
|
import { u as j } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import { p as m } from "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import w from "./403.js";
|