@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/input/Group.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import f, { useContext as l } from "react";
|
|
3
|
-
import { a as u } from "../chunk/
|
|
3
|
+
import { a as u } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { p as x } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
const d = f.forwardRef((o, s) => {
|
|
6
6
|
const { getPrefixCls: r } = l(u), { className: e, style: a, children: p, compact: c, ...m } = o, t = r("input-group"), n = x(
|
package/input/Input.js
CHANGED
|
@@ -3,7 +3,7 @@ import ie from "lodash/isPlainObject";
|
|
|
3
3
|
import He from "lodash/isString";
|
|
4
4
|
import Be from "lodash/isUndefined";
|
|
5
5
|
import ue, { useContext as ce, useState as re, useRef as ee, useMemo as le, useImperativeHandle as Ne, useCallback as Fe, useEffect as ye } from "react";
|
|
6
|
-
import { a as fe, I as _e } from "../chunk/
|
|
6
|
+
import { a as fe, I as _e } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import { u as Ee } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { u as he } from "../chunk/DeV0v__J.js";
|
|
9
9
|
import { p as O } from "../chunk/CUFsOxJ2.js";
|
package/input/InputElement.js
CHANGED
|
@@ -3,7 +3,7 @@ import Y from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import Z from "lodash/isFunction";
|
|
4
4
|
import _, { useState as ee, useRef as I, useImperativeHandle as te, useEffect as O } from "react";
|
|
5
5
|
import { u as oe } from "../chunk/XTEsYGuF.js";
|
|
6
|
-
import { I as ne } from "../chunk/
|
|
6
|
+
import { I as ne } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import { p as k } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import { f as re } from "../chunk/CftuXmo_.js";
|
|
9
9
|
import "../chunk/DAAff-FT.js";
|
package/input/Password.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@unicom-cloud/icons/IconUiEye";
|
|
3
3
|
import "@unicom-cloud/icons/IconUiEyeInvisible";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/CNcLypMY.js";
|
|
6
6
|
import "../chunk/XTEsYGuF.js";
|
|
7
7
|
import "../chunk/DeV0v__J.js";
|
|
8
8
|
import "../chunk/CUFsOxJ2.js";
|
package/input/Search.js
CHANGED
|
@@ -4,7 +4,7 @@ import "@unicom-cloud/icons/IconUiSearch";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../button/index.js";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/CNcLypMY.js";
|
|
8
8
|
import "../chunk/DeV0v__J.js";
|
|
9
9
|
import "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import "../chunk/BKKEev13.js";
|
package/input/Textarea.js
CHANGED
package/input-number/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import "@unicom-cloud/icons/IconUiPlus";
|
|
|
5
5
|
import "@unicom-cloud/icons/IconUiUp";
|
|
6
6
|
import "lodash/isNumber";
|
|
7
7
|
import "react";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/CNcLypMY.js";
|
|
9
9
|
import "../chunk/BFTV6myl.js";
|
|
10
10
|
import { InputNumber as I } from "../input/Input.js";
|
|
11
11
|
import "../chunk/CUFsOxJ2.js";
|
package/input-tag/InputTag.js
CHANGED
|
@@ -3,7 +3,7 @@ import Ge from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import { b as Ke } from "../chunk/BJ9_azwQ.js";
|
|
4
4
|
import $e from "lodash/isArray";
|
|
5
5
|
import Ce, { useContext as qe, useRef as C, useState as Xe, useImperativeHandle as Ye, useMemo as Je, useEffect as Qe } from "react";
|
|
6
|
-
import { a as Ze, I as et } from "../chunk/
|
|
6
|
+
import { a as Ze, I as et } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import tt from "../draggable/index.js";
|
|
8
8
|
import { u as ot } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import { u as ye } from "../chunk/DeV0v__J.js";
|
package/layout/Content.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f, useContext as i } from "react";
|
|
3
|
-
import { a as l } from "../chunk/
|
|
3
|
+
import { a as l } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { p } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
function C(t, o) {
|
|
6
6
|
const { className: n, children: e, ...s } = t, { getPrefixCls: r } = i(l), a = r("layout-content"), m = p(a, n);
|
package/layout/Footer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c, useContext as i } from "react";
|
|
3
|
-
import { a as l } from "../chunk/
|
|
3
|
+
import { a as l } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { p } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
function u(o, t) {
|
|
6
6
|
const { className: e, children: r, ...s } = o, { getPrefixCls: a } = i(l), n = a("layout-footer"), f = p(n, e);
|
package/layout/Header.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c, useContext as i } from "react";
|
|
3
|
-
import { a as d } from "../chunk/
|
|
3
|
+
import { a as d } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { p as l } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
function p(e, o) {
|
|
6
6
|
const { getPrefixCls: r } = i(d), { className: t, children: a, ...s } = e, n = r("layout-header"), m = l(n, t);
|
package/layout/Sider.js
CHANGED
|
@@ -4,7 +4,7 @@ import q from "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import X from "lodash/isArray";
|
|
5
5
|
import N 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 "../chunk/
|
|
7
|
+
import { a as ie } from "../chunk/CNcLypMY.js";
|
|
8
8
|
import { u as se } from "../chunk/DeV0v__J.js";
|
|
9
9
|
import oe from "../resize-box/index.js";
|
|
10
10
|
import { p as H } from "../chunk/CUFsOxJ2.js";
|
package/layout/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
2
|
import i from "lodash/get";
|
|
3
3
|
import p, { forwardRef as N, useContext as _, useState as F } from "react";
|
|
4
|
-
import { a as H } from "../chunk/
|
|
4
|
+
import { a as H } from "../chunk/CNcLypMY.js";
|
|
5
5
|
import { u as P } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { p as R } from "../chunk/CUFsOxJ2.js";
|
|
7
7
|
import h from "./Content.js";
|
package/link/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as $, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import y from "@unicom-cloud/icons/IconUiLink";
|
|
3
3
|
import { forwardRef as g, useContext as L } from "react";
|
|
4
|
-
import { a as P } from "../chunk/
|
|
4
|
+
import { a as P } from "../chunk/CNcLypMY.js";
|
|
5
5
|
import { u as w } from "../chunk/XTEsYGuF.js";
|
|
6
6
|
import { u as K } from "../chunk/BFTV6myl.js";
|
|
7
7
|
import { p as N } from "../chunk/CUFsOxJ2.js";
|
package/list/Item.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import p, { useContext as L } from "react";
|
|
3
|
-
import { a as M } from "../chunk/
|
|
3
|
+
import { a as M } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { u as P } from "../chunk/BFTV6myl.js";
|
|
5
5
|
import { p as R } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
import f from "./Meta.js";
|
package/list/Meta.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import p, { useContext as C } from "react";
|
|
3
|
-
import { a as h } from "../chunk/
|
|
3
|
+
import { a as h } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { p as v } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
function x(r, n) {
|
|
6
6
|
const { getPrefixCls: c } = C(h), { className: l, avatar: i, title: e, description: s, ...m } = r, t = `${c("list")}-item-meta`, d = !!i, f = !!(e || s);
|
package/list/index.js
CHANGED
|
@@ -1,269 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const X = 10, Y = 1, Ut = ["small", "default", "large"], Wt = {
|
|
17
|
-
split: !0,
|
|
18
|
-
bordered: !0,
|
|
19
|
-
defaultCurrent: 1,
|
|
20
|
-
offsetBottom: 0,
|
|
21
|
-
throttleDelay: 500
|
|
22
|
-
};
|
|
23
|
-
function Zt(rt, F) {
|
|
24
|
-
const {
|
|
25
|
-
getPrefixCls: ot,
|
|
26
|
-
loadingElement: nt,
|
|
27
|
-
size: A,
|
|
28
|
-
renderEmpty: lt,
|
|
29
|
-
componentConfig: y,
|
|
30
|
-
rtl: M
|
|
31
|
-
} = jt(Mt), p = Ht(
|
|
32
|
-
rt,
|
|
33
|
-
Wt,
|
|
34
|
-
y == null ? void 0 : y.List
|
|
35
|
-
), {
|
|
36
|
-
style: st,
|
|
37
|
-
wrapperStyle: at,
|
|
38
|
-
className: it,
|
|
39
|
-
wrapperClassName: ct,
|
|
40
|
-
children: N = [],
|
|
41
|
-
dataSource: g = [],
|
|
42
|
-
size: ut,
|
|
43
|
-
footer: H,
|
|
44
|
-
header: T,
|
|
45
|
-
pagination: t,
|
|
46
|
-
bordered: mt,
|
|
47
|
-
split: pt,
|
|
48
|
-
render: I,
|
|
49
|
-
grid: u,
|
|
50
|
-
loading: dt,
|
|
51
|
-
hoverable: ft,
|
|
52
|
-
scrollLoading: S,
|
|
53
|
-
paginationInFooter: V,
|
|
54
|
-
offsetBottom: gt,
|
|
55
|
-
throttleDelay: _,
|
|
56
|
-
defaultCurrent: ht,
|
|
57
|
-
noDataElement: Ct,
|
|
58
|
-
listRef: St,
|
|
59
|
-
onReachBottom: h,
|
|
60
|
-
onListScroll: $
|
|
61
|
-
} = p, $t = ut || (Ut.indexOf(A) > -1 ? A : "default"), e = ot("list"), v = C(null), w = C(null), d = C(null), z = C(null), E = C(!0), [Lt, Pt] = x(
|
|
62
|
-
t && typeof t == "object" && (t.pageSize || t.defaultPageSize) || X
|
|
63
|
-
), [yt, Nt] = x(
|
|
64
|
-
t && typeof t == "object" && (t.current || t.defaultCurrent) || Y
|
|
65
|
-
), [b, It] = x(ht), k = tt.Children.count(N);
|
|
66
|
-
xt(St, () => ({
|
|
67
|
-
dom: v.current,
|
|
68
|
-
scrollIntoView: (o, l) => {
|
|
69
|
-
if (w.current)
|
|
70
|
-
w.current.scrollTo({ index: o, options: l });
|
|
71
|
-
else if (z.current) {
|
|
72
|
-
const n = z.current.children[o];
|
|
73
|
-
n && Bt(n, {
|
|
74
|
-
boundary: d.current,
|
|
75
|
-
...l
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
getRootDOMNode: () => v.current
|
|
80
|
-
}));
|
|
81
|
-
const R = p.virtualListProps ? p.virtualListProps : p.height ? { height: p.height } : void 0, m = {
|
|
82
|
-
pageSize: Lt,
|
|
83
|
-
current: yt,
|
|
84
|
-
total: g.length > 0 ? g.length : k,
|
|
85
|
-
...typeof t == "object" ? t : {},
|
|
86
|
-
onPageSizeChange: (o, l) => {
|
|
87
|
-
var n;
|
|
88
|
-
Pt(o), t && typeof t == "object" && ((n = t.onPageSizeChange) == null || n.call(t, o, l));
|
|
89
|
-
},
|
|
90
|
-
onChange: (o, l) => {
|
|
91
|
-
var n;
|
|
92
|
-
Nt(o), t && typeof t == "object" && ((n = t.onChange) == null || n.call(t, o, l));
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
m.current = Math.min(
|
|
96
|
-
m.current,
|
|
97
|
-
Math.ceil(m.total / m.pageSize)
|
|
98
|
-
);
|
|
99
|
-
const B = !!($ || h), G = Dt(
|
|
100
|
-
At(() => {
|
|
101
|
-
if ($) {
|
|
102
|
-
$(d.current);
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (!d.current)
|
|
106
|
-
return;
|
|
107
|
-
const { scrollTop: o, scrollHeight: l, clientHeight: n } = d.current, a = l - (o + n);
|
|
108
|
-
Math.abs(a) < gt + 1 ? E.current && (It(b + 1), h == null || h(b + 1), E.current = !1) : E.current = !0;
|
|
109
|
-
}, _),
|
|
110
|
-
[_, b, $, h]
|
|
111
|
-
), vt = () => {
|
|
112
|
-
const o = (a) => {
|
|
113
|
-
const { current: i, pageSize: s } = m, r = (i - 1) * s;
|
|
114
|
-
return t && a.length > r ? a.slice(r, r + s) : a;
|
|
115
|
-
}, l = (a, i) => {
|
|
116
|
-
const s = o(a);
|
|
117
|
-
return i ? s.map(i) : s;
|
|
118
|
-
}, n = (a, i) => {
|
|
119
|
-
const s = o(a);
|
|
120
|
-
if (u.column || u.span) {
|
|
121
|
-
const r = [], {
|
|
122
|
-
gutter: L,
|
|
123
|
-
justify: wt,
|
|
124
|
-
align: zt,
|
|
125
|
-
column: Et,
|
|
126
|
-
...U
|
|
127
|
-
} = u, j = Et || Math.floor(24 / u.span), bt = U.span || Math.floor(24 / j);
|
|
128
|
-
let f = 0;
|
|
129
|
-
for (; f < s.length; ) {
|
|
130
|
-
const W = f + j, Z = ~~(f / j);
|
|
131
|
-
r.push(
|
|
132
|
-
/* @__PURE__ */ c(
|
|
133
|
-
Q,
|
|
134
|
-
{
|
|
135
|
-
className: `${e}-row`,
|
|
136
|
-
gutter: L,
|
|
137
|
-
justify: wt,
|
|
138
|
-
align: zt,
|
|
139
|
-
children: s.slice(f, W).map((q, J) => /* @__PURE__ */ c(
|
|
140
|
-
K,
|
|
141
|
-
{
|
|
142
|
-
className: `${e}-row-col`,
|
|
143
|
-
...U,
|
|
144
|
-
span: bt,
|
|
145
|
-
children: i ? i(q, f + J) : q
|
|
146
|
-
},
|
|
147
|
-
`${Z}_${J}`
|
|
148
|
-
))
|
|
149
|
-
},
|
|
150
|
-
Z
|
|
151
|
-
)
|
|
152
|
-
), f = W;
|
|
153
|
-
}
|
|
154
|
-
return r;
|
|
155
|
-
}
|
|
156
|
-
return /* @__PURE__ */ c(Q, { className: `${e}-row`, gutter: u.gutter, children: s.map((r, L) => /* @__PURE__ */ Ft(
|
|
157
|
-
K,
|
|
158
|
-
{
|
|
159
|
-
className: `${e}-row-col`,
|
|
160
|
-
..._t(u, ["gutter"]),
|
|
161
|
-
key: L
|
|
162
|
-
},
|
|
163
|
-
i ? i(r, L) : r
|
|
164
|
-
)) });
|
|
165
|
-
};
|
|
166
|
-
return g.length > 0 && I ? u ? n(g, I) : l(g, I) : k > 0 ? u ? n(N) : l(N) : S ? null : Ct || lt("List");
|
|
167
|
-
}, O = () => {
|
|
168
|
-
const o = vt(), l = R && R.threshold !== null && Array.isArray(o), n = t ? /* @__PURE__ */ c(
|
|
169
|
-
Tt,
|
|
170
|
-
{
|
|
171
|
-
...m,
|
|
172
|
-
className: D(
|
|
173
|
-
`${e}-pagination`,
|
|
174
|
-
m && m.className
|
|
175
|
-
)
|
|
176
|
-
}
|
|
177
|
-
) : null, a = V ? n : null, i = V ? null : n, s = S != null ? /* @__PURE__ */ c("div", { className: `${e}-item ${e}-scroll-loading`, children: S }) : null;
|
|
178
|
-
return /* @__PURE__ */ P(
|
|
179
|
-
"div",
|
|
180
|
-
{
|
|
181
|
-
ref: (r) => {
|
|
182
|
-
F = r, v.current = F;
|
|
183
|
-
},
|
|
184
|
-
style: at,
|
|
185
|
-
className: D(
|
|
186
|
-
`${e}-wrapper`,
|
|
187
|
-
{ [`${e}-wrapper-rtl`]: M },
|
|
188
|
-
ct
|
|
189
|
-
),
|
|
190
|
-
children: [
|
|
191
|
-
/* @__PURE__ */ P(
|
|
192
|
-
"div",
|
|
193
|
-
{
|
|
194
|
-
...kt(p),
|
|
195
|
-
style: st,
|
|
196
|
-
className: D(
|
|
197
|
-
e,
|
|
198
|
-
`${e}-${$t}`,
|
|
199
|
-
{
|
|
200
|
-
[`${e}-no-border`]: !mt,
|
|
201
|
-
[`${e}-no-split`]: !pt,
|
|
202
|
-
[`${e}-hoverable`]: ft,
|
|
203
|
-
[`${e}-rtl`]: M
|
|
204
|
-
},
|
|
205
|
-
it
|
|
206
|
-
),
|
|
207
|
-
ref: (r) => {
|
|
208
|
-
l || (d.current = r);
|
|
209
|
-
},
|
|
210
|
-
onScroll: !l && B ? G : void 0,
|
|
211
|
-
children: [
|
|
212
|
-
T ? /* @__PURE__ */ c("div", { className: `${e}-header`, children: T }) : null,
|
|
213
|
-
l ? /* @__PURE__ */ c(Rt, { children: /* @__PURE__ */ c(
|
|
214
|
-
Gt,
|
|
215
|
-
{
|
|
216
|
-
role: "list",
|
|
217
|
-
ref: (r) => {
|
|
218
|
-
r && (w.current = r, d.current = r.dom);
|
|
219
|
-
},
|
|
220
|
-
className: `${e}-content ${e}-virtual`,
|
|
221
|
-
data: s ? o.concat(s) : o,
|
|
222
|
-
isStaticItemHeight: !1,
|
|
223
|
-
onScroll: B ? G : void 0,
|
|
224
|
-
...R,
|
|
225
|
-
children: (r) => r
|
|
226
|
-
}
|
|
227
|
-
) }) : /* @__PURE__ */ P(
|
|
228
|
-
"div",
|
|
229
|
-
{
|
|
230
|
-
role: "list",
|
|
231
|
-
className: `${e}-content`,
|
|
232
|
-
ref: z,
|
|
233
|
-
children: [
|
|
234
|
-
o,
|
|
235
|
-
s
|
|
236
|
-
]
|
|
237
|
-
}
|
|
238
|
-
),
|
|
239
|
-
H || a ? /* @__PURE__ */ P("div", { className: `${e}-footer`, children: [
|
|
240
|
-
H,
|
|
241
|
-
a
|
|
242
|
-
] }) : null
|
|
243
|
-
]
|
|
244
|
-
}
|
|
245
|
-
),
|
|
246
|
-
i
|
|
247
|
-
]
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
};
|
|
251
|
-
return "loading" in p ? /* @__PURE__ */ c(
|
|
252
|
-
Vt,
|
|
253
|
-
{
|
|
254
|
-
style: { display: "block" },
|
|
255
|
-
loading: dt,
|
|
256
|
-
element: nt,
|
|
257
|
-
children: O()
|
|
258
|
-
}
|
|
259
|
-
) : O();
|
|
260
|
-
}
|
|
261
|
-
const et = tt.forwardRef(
|
|
262
|
-
Zt
|
|
263
|
-
);
|
|
264
|
-
et.displayName = "List";
|
|
265
|
-
et.Item = Ot;
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "lodash/throttle";
|
|
4
|
+
import "../chunk/CNcLypMY.js";
|
|
5
|
+
import "../grid/Col.js";
|
|
6
|
+
import "../grid/Row.js";
|
|
7
|
+
import "../chunk/BFTV6myl.js";
|
|
8
|
+
import { L as I } from "../chunk/Cwm8LL5p.js";
|
|
9
|
+
import "../spin/index.js";
|
|
10
|
+
import "../chunk/CUFsOxJ2.js";
|
|
11
|
+
import "../chunk/BKKEev13.js";
|
|
12
|
+
import "../chunk/ClqoGc3r.js";
|
|
13
|
+
import "../chunk/Bmvhjhzq.js";
|
|
14
|
+
import "../virtual-list/VirtualList.js";
|
|
15
|
+
import { default as c } from "./Item.js";
|
|
266
16
|
export {
|
|
267
|
-
|
|
268
|
-
|
|
17
|
+
c as ListItem,
|
|
18
|
+
I as default
|
|
269
19
|
};
|
package/mentions/index.js
CHANGED
|
@@ -1,146 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const ne = Z.TextArea, se = [V.key, S.key, v.key, N.key], ie = {
|
|
12
|
-
prefix: "@",
|
|
13
|
-
split: " ",
|
|
14
|
-
rows: 1,
|
|
15
|
-
position: "bl",
|
|
16
|
-
alignTextarea: !0
|
|
17
|
-
};
|
|
18
|
-
function ae(E, I) {
|
|
19
|
-
const { getPrefixCls: W, componentConfig: x, rtl: A } = z(Q), f = X(
|
|
20
|
-
E,
|
|
21
|
-
ie,
|
|
22
|
-
x == null ? void 0 : x.Mentions
|
|
23
|
-
), {
|
|
24
|
-
style: b,
|
|
25
|
-
className: w,
|
|
26
|
-
options: B,
|
|
27
|
-
prefix: K,
|
|
28
|
-
split: p,
|
|
29
|
-
position: O,
|
|
30
|
-
alignTextarea: M,
|
|
31
|
-
filterOption: R,
|
|
32
|
-
triggerProps: j,
|
|
33
|
-
getPopupContainer: D,
|
|
34
|
-
onChange: l,
|
|
35
|
-
onSearch: d,
|
|
36
|
-
notFoundContent: F,
|
|
37
|
-
...H
|
|
38
|
-
} = f, u = W("mentions"), g = $(null), y = $(null), m = $(null), [c, T] = Y("", {
|
|
39
|
-
value: f.value,
|
|
40
|
-
defaultValue: f.defaultValue
|
|
41
|
-
}), [e, C] = G({
|
|
42
|
-
measuring: !1,
|
|
43
|
-
location: 0,
|
|
44
|
-
text: "",
|
|
45
|
-
prefix: ""
|
|
46
|
-
});
|
|
47
|
-
J(() => {
|
|
48
|
-
m.current && y.current && (y.current.scrollTop = m.current.dom.scrollTop);
|
|
49
|
-
});
|
|
50
|
-
const h = () => {
|
|
51
|
-
C({
|
|
52
|
-
...e,
|
|
53
|
-
measuring: !1,
|
|
54
|
-
location: 0,
|
|
55
|
-
text: ""
|
|
56
|
-
});
|
|
57
|
-
}, L = (r) => {
|
|
58
|
-
const n = e.location, s = e.location + e.text.length;
|
|
59
|
-
let t = c.slice(0, n), o = c.slice(s + 1);
|
|
60
|
-
t += !t || t.endsWith(p) || t.endsWith(`
|
|
61
|
-
`) ? "" : p, o = (!o || o.startsWith(p) || o.startsWith(`
|
|
62
|
-
`) ? "" : p) + o;
|
|
63
|
-
const i = `${e.prefix}${r}`, a = `${t}${i}${o}`;
|
|
64
|
-
T(a), h(), l == null || l(a);
|
|
65
|
-
}, U = {
|
|
66
|
-
onChange: (r) => {
|
|
67
|
-
T(r), l == null || l(r);
|
|
68
|
-
},
|
|
69
|
-
onKeyDown: (r) => {
|
|
70
|
-
var s, t;
|
|
71
|
-
const n = r.key;
|
|
72
|
-
n === V.key && ((t = (s = m.current) == null ? void 0 : s.blur) == null || t.call(s)), g.current && (g.current.hotkeyHandler(r), (n === S.key || n === v.key || n === N.key) && r.preventDefault());
|
|
73
|
-
},
|
|
74
|
-
onKeyUp: (r) => {
|
|
75
|
-
const { key: n, target: s } = r;
|
|
76
|
-
if (~se.indexOf(n))
|
|
77
|
-
return;
|
|
78
|
-
const t = te(s), { location: o, prefix: i } = re(t, K), a = t.slice(
|
|
79
|
-
o + i.length
|
|
80
|
-
);
|
|
81
|
-
o > -1 && oe(a, f) ? ((n === i || e.measuring || a !== e.text || t.includes(i)) && C({
|
|
82
|
-
measuring: !0,
|
|
83
|
-
text: a,
|
|
84
|
-
prefix: i,
|
|
85
|
-
location: o
|
|
86
|
-
}), d == null || d(a, i)) : e.measuring && h();
|
|
87
|
-
},
|
|
88
|
-
onBlur: h
|
|
89
|
-
};
|
|
90
|
-
return /* @__PURE__ */ P(
|
|
91
|
-
"div",
|
|
92
|
-
{
|
|
93
|
-
ref: I,
|
|
94
|
-
style: b,
|
|
95
|
-
className: ee(
|
|
96
|
-
`${u}`,
|
|
97
|
-
{
|
|
98
|
-
[`${u}-align-textarea`]: M,
|
|
99
|
-
[`${u}-rtl`]: A
|
|
100
|
-
},
|
|
101
|
-
w
|
|
102
|
-
),
|
|
103
|
-
children: [
|
|
104
|
-
/* @__PURE__ */ k(
|
|
105
|
-
ne,
|
|
106
|
-
{
|
|
107
|
-
ref: m,
|
|
108
|
-
className: `${u}-textarea`,
|
|
109
|
-
value: c,
|
|
110
|
-
...U,
|
|
111
|
-
...H
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
/* @__PURE__ */ P("div", { ref: y, className: `${u}-measure`, children: [
|
|
115
|
-
c.slice(0, e.location),
|
|
116
|
-
/* @__PURE__ */ k(
|
|
117
|
-
_,
|
|
118
|
-
{
|
|
119
|
-
ref: g,
|
|
120
|
-
options: B,
|
|
121
|
-
inputValue: e.text,
|
|
122
|
-
notFoundContent: F,
|
|
123
|
-
triggerElement: /* @__PURE__ */ k("span", { className: `${u}-measure-trigger`, children: e.prefix }),
|
|
124
|
-
triggerProps: {
|
|
125
|
-
popupVisible: e.measuring,
|
|
126
|
-
autoAlignPopupWidth: M,
|
|
127
|
-
position: O,
|
|
128
|
-
...j
|
|
129
|
-
},
|
|
130
|
-
filterOption: R,
|
|
131
|
-
getPopupContainer: D,
|
|
132
|
-
value: void 0,
|
|
133
|
-
onChange: L
|
|
134
|
-
}
|
|
135
|
-
),
|
|
136
|
-
c.slice(e.location + e.prefix.length)
|
|
137
|
-
] })
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
const le = q.forwardRef(ae);
|
|
143
|
-
le.displayName = "Mentions";
|
|
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 "../input/Input.js";
|
|
7
|
+
import { M as s } from "../chunk/Cwm8LL5p.js";
|
|
8
|
+
import "../chunk/CUFsOxJ2.js";
|
|
9
|
+
import "../chunk/BrOW642m.js";
|
|
10
|
+
import "./util.js";
|
|
144
11
|
export {
|
|
145
|
-
|
|
12
|
+
s as default
|
|
146
13
|
};
|
package/menu/Menu.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiMenuFold";
|
|
|
3
3
|
import "@unicom-cloud/icons/IconUiMenuUnfold";
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/CNcLypMY.js";
|
|
7
7
|
import "../chunk/CQ_WOOmf.js";
|
|
8
8
|
import "../chunk/B4YRLi8r.js";
|
|
9
9
|
import "../chunk/XTEsYGuF.js";
|
|
@@ -15,7 +15,7 @@ import "../chunk/BKKEev13.js";
|
|
|
15
15
|
import "./context.js";
|
|
16
16
|
import { default as I } from "./Item.js";
|
|
17
17
|
import { default as c } from "./ItemGroup.js";
|
|
18
|
-
import { S as h, S as j, M as k } from "../chunk/
|
|
18
|
+
import { S as h, S as j, M as k } from "../chunk/CBgu99gQ.js";
|
|
19
19
|
import "./util.js";
|
|
20
20
|
export {
|
|
21
21
|
I as MenuItem,
|
package/menu/OverflowWrap.js
CHANGED
package/menu/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as o } from "../chunk/
|
|
2
|
-
import { S as r, S as a } from "../chunk/
|
|
1
|
+
import { M as o } from "../chunk/CBgu99gQ.js";
|
|
2
|
+
import { S as r, S as a } from "../chunk/CBgu99gQ.js";
|
|
3
3
|
import { default as n } from "./Item.js";
|
|
4
4
|
import { default as p } from "./ItemGroup.js";
|
|
5
5
|
export {
|
package/message/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import "lodash/isNumber";
|
|
|
4
4
|
import "lodash/isUndefined";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom/client";
|
|
7
|
-
import { M as g, m as M, u as d } from "../chunk/
|
|
7
|
+
import { M as g, m as M, u as d } from "../chunk/CNcLypMY.js";
|
|
8
8
|
import "../notification/withNotification.js";
|
|
9
9
|
import "../chunk/BpYX5PN4.js";
|
|
10
10
|
import "../chunk/CUFsOxJ2.js";
|
package/message/useMessage.js
CHANGED
package/modal/Confirm.js
CHANGED
|
@@ -4,8 +4,8 @@ import "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
|
4
4
|
import "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
5
5
|
import "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
6
6
|
import "react-dom/client";
|
|
7
|
-
import "../chunk/
|
|
8
|
-
import { c as l, n as s } from "../chunk/
|
|
7
|
+
import "../chunk/CNcLypMY.js";
|
|
8
|
+
import { c as l, n as s } from "../chunk/BPQXH_5i.js";
|
|
9
9
|
import "./config.js";
|
|
10
10
|
export {
|
|
11
11
|
l as default,
|