@unicom-cloud/ui 0.8.69 → 0.8.70
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 +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- 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 +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- 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 +1 -1
- package/Mentions.js +1 -1
- 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/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- 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 +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/Trigger.js +1 -1
- package/affix/index.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/auto-complete/index.js +1 -1
- 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 +2 -2
- 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 +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/index.js +1 -1
- package/chunk/{CpGBWmuz.js → -C2QiGwq.js} +2 -2
- package/chunk/B80D01PB.js +257 -0
- package/chunk/BL9DMeor.js +9 -0
- package/chunk/{Clo26EcR.js → BPD5iNdA.js} +16 -21
- package/chunk/{SSK90wgo.js → Bh8AO6R8.js} +1 -1
- package/chunk/CASwN1hB.js +710 -0
- package/chunk/{BDB0LByj.js → CSk3yQDO.js} +1 -1
- package/chunk/{CKyu68pu.js → Cm9BS47C.js} +2 -2
- package/chunk/{CzQObzKd.js → DC-pxreh.js} +4 -4
- package/chunk/{C98ks5S8.js → DFf75sXd.js} +1 -1
- package/chunk/{CD3AUpzo.js → DcYqcuGl.js} +1 -1
- package/chunk/{BjpUSKM3.js → YUHbzjGj.js} +1 -1
- package/chunk/a3hR6zLw.js +12 -0
- package/chunk/{vmgkWLYf.js → bgmEVbGy.js} +2 -2
- package/chunk/{Bi4UkwOR.js → iOWILwNv.js} +3 -3
- package/chunk/{CgurXnoy.js → tIRvN_q7.js} +2 -2
- 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 +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +1 -1
- package/date-picker/Picker.js +2 -2
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +80 -75
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/form/Form.js +1 -1
- package/form/FormItem.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 +36 -34
- package/hooks/useListenResize.js +4 -0
- package/hooks/useUpdateEffect.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 +3 -3
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +582 -580
- 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 +1 -1
- package/mentions/index.js +1 -1
- 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/notification/withNotification.js +43 -35
- 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 +1 -1
- package/pagination/Pagination.js +1 -1
- 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 +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- 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 +1 -1
- package/select/Select.js +2 -2
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +2 -2
- package/space/index.js +20 -20
- 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/switch/index.js +1 -1
- package/table/Table.js +3 -3
- package/table/index.js +89 -81
- 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 +2 -2
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +2 -2
- package/trigger/index.js +1 -1
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/useListenResize.d.ts +1 -0
- package/types/message/interface.d.ts +0 -1
- package/types/notification/interface.d.ts +0 -1
- package/types/space/index.d.ts +3 -4
- package/types/table/hook/useThResizable.d.ts +1 -1
- package/typography/Base.js +2 -2
- package/typography/Ellipsis.js +8 -8
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +8 -8
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +2 -2
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BSCrLtfQ.js +0 -10
- package/chunk/BSaQv6mx.js +0 -251
- package/chunk/ll867Bf3.js +0 -730
package/avatar/Avatar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as W, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import j from "lodash/isNumber";
|
|
3
3
|
import y, { forwardRef as E, useContext as v, useRef as C, useImperativeHandle as H, useEffect as T } from "react";
|
|
4
|
-
import { a as D } from "../chunk/
|
|
4
|
+
import { a as D } from "../chunk/CASwN1hB.js";
|
|
5
5
|
import { m as L } from "../chunk/JPPo5nY_.js";
|
|
6
6
|
import M from "./context.js";
|
|
7
7
|
const O = {
|
package/avatar/Group.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import I from "lodash/isNumber";
|
|
3
3
|
import R, { forwardRef as $, useContext as b } from "react";
|
|
4
|
-
import { a as j } from "../chunk/
|
|
4
|
+
import { a as j } from "../chunk/CASwN1hB.js";
|
|
5
5
|
import { u as T } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import k from "../popover/index.js";
|
|
7
7
|
import { m as q } from "../chunk/JPPo5nY_.js";
|
package/back-top/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import x from "@unicom-cloud/icons/IconUiToTop";
|
|
3
3
|
import { q as C, I as y } from "../chunk/uKZyjtff.js";
|
|
4
4
|
import B, { forwardRef as E, useRef as P, useContext as N, useState as R, useEffect as S } from "react";
|
|
5
|
-
import { a as H } from "../chunk/
|
|
5
|
+
import { a as H } from "../chunk/CASwN1hB.js";
|
|
6
6
|
import { u as I } from "../chunk/XTEsYGuF.js";
|
|
7
7
|
import { u as $ } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { P as q } from "../chunk/DzVH9IBy.js";
|
package/badge/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as x, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import j from "lodash/isPlainObject";
|
|
3
3
|
import { forwardRef as w, useContext as A } from "react";
|
|
4
|
-
import { a as R } from "../chunk/
|
|
4
|
+
import { a as R } from "../chunk/CASwN1hB.js";
|
|
5
5
|
import { u as q } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { P as G } from "../chunk/DzVH9IBy.js";
|
|
7
7
|
import { m as a } from "../chunk/JPPo5nY_.js";
|
package/breadcrumb/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import O from "@unicom-cloud/icons/IconUiObliqueLine";
|
|
3
3
|
import c, { forwardRef as S, useContext as _ } from "react";
|
|
4
|
-
import { a as k } from "../chunk/
|
|
4
|
+
import { a as k } from "../chunk/CASwN1hB.js";
|
|
5
5
|
import { u as q } from "../chunk/BFTV6myl.js";
|
|
6
|
-
import { M as C } from "../chunk/
|
|
6
|
+
import { M as C } from "../chunk/DFf75sXd.js";
|
|
7
7
|
import { m as v } from "../chunk/JPPo5nY_.js";
|
|
8
8
|
import { a as F } from "../chunk/D-TPB2Do.js";
|
|
9
9
|
import { o as K } from "../chunk/BKKEev13.js";
|
package/button/Group.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import f, { useContext as i } from "react";
|
|
3
|
-
import { a as l } from "../chunk/
|
|
3
|
+
import { a as l } from "../chunk/CASwN1hB.js";
|
|
4
4
|
import { m as u } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
function x(o, t) {
|
|
6
6
|
const { className: r, style: s, children: e, ...n } = o, { getPrefixCls: a } = i(l), m = a("btn-group"), p = u(m, r);
|
package/button/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l, jsxs as A, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import Q from "@unicom-cloud/icons/IconUiLoading";
|
|
3
3
|
import _, { forwardRef as W, useContext as Y, useState as H, useRef as J, useEffect as K } from "react";
|
|
4
|
-
import { a as V } from "../chunk/
|
|
4
|
+
import { a as V } from "../chunk/CASwN1hB.js";
|
|
5
5
|
import { u as X } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { m as Z } from "../chunk/JPPo5nY_.js";
|
|
7
7
|
import v from "./Group.js";
|
package/calendar/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as M, jsx as e, Fragment as K } from "react/jsx-runtime";
|
|
2
2
|
import he from "lodash/merge";
|
|
3
3
|
import { useMemo as q, useContext as pe, useState as T } from "react";
|
|
4
|
-
import { a as ue } from "../chunk/
|
|
4
|
+
import { a as ue } from "../chunk/CASwN1hB.js";
|
|
5
5
|
import { u as fe } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { m as J } from "../chunk/JPPo5nY_.js";
|
|
7
7
|
import { a as F, g as A, m as V } from "../chunk/tamGhTJp.js";
|
|
@@ -13,7 +13,7 @@ import X from "@unicom-cloud/icons/IconUiRight";
|
|
|
13
13
|
import Z from "lodash/isArray";
|
|
14
14
|
import De from "../button/index.js";
|
|
15
15
|
import { u as we } from "../chunk/XTEsYGuF.js";
|
|
16
|
-
import { R as Ne } from "../chunk/
|
|
16
|
+
import { R as Ne } from "../chunk/DcYqcuGl.js";
|
|
17
17
|
import _ from "../select/Select.js";
|
|
18
18
|
import be from "@unicom-cloud/icons/IconUiDoubleLeft";
|
|
19
19
|
import Me from "@unicom-cloud/icons/IconUiDoubleRight";
|
package/card/Grid.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import d, { useContext as f } from "react";
|
|
3
|
-
import { a as c } from "../chunk/
|
|
3
|
+
import { a as c } from "../chunk/CASwN1hB.js";
|
|
4
4
|
import { m as l } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
function p(o, e) {
|
|
6
6
|
const { children: t, style: a, className: s, hoverable: i } = o, { getPrefixCls: m } = f(c), r = m("card-grid");
|
package/card/Meta.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import N, { useContext as v } from "react";
|
|
3
|
-
import { a as h } from "../chunk/
|
|
3
|
+
import { a as h } from "../chunk/CASwN1hB.js";
|
|
4
4
|
import { m as n } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
function u(c, l) {
|
|
6
6
|
const { className: m, title: a, avatar: e, description: s, actionList: r, ...d } = c, { getPrefixCls: f } = v(h), t = f("card-meta"), p = n(t, m);
|
package/card/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import l, { useContext as L } from "react";
|
|
3
|
-
import { a as k } from "../chunk/
|
|
3
|
+
import { a as k } from "../chunk/CASwN1hB.js";
|
|
4
4
|
import { u as q } from "../chunk/BFTV6myl.js";
|
|
5
5
|
import A from "../spin/index.js";
|
|
6
6
|
import { m as C } from "../chunk/JPPo5nY_.js";
|
package/carousel/Arrow.js
CHANGED
|
@@ -4,7 +4,7 @@ import x from "@unicom-cloud/icons/IconUiLeft";
|
|
|
4
4
|
import u from "@unicom-cloud/icons/IconUiRight";
|
|
5
5
|
import C from "@unicom-cloud/icons/IconUiUp";
|
|
6
6
|
import b, { useContext as y } from "react";
|
|
7
|
-
import { a as I } from "../chunk/
|
|
7
|
+
import { a as I } from "../chunk/CASwN1hB.js";
|
|
8
8
|
import { u as P } from "../chunk/XTEsYGuF.js";
|
|
9
9
|
import { m as $ } from "../chunk/JPPo5nY_.js";
|
|
10
10
|
function g(i, c) {
|
package/carousel/Indicator.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import h, { useContext as I } from "react";
|
|
3
|
-
import { a as w } from "../chunk/
|
|
3
|
+
import { a as w } from "../chunk/CASwN1hB.js";
|
|
4
4
|
import { m as c } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
function N(f, m) {
|
|
6
6
|
const { getPrefixCls: p } = I(w), {
|
package/carousel/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as ye, jsx as N } from "react/jsx-runtime";
|
|
2
2
|
import P, { useContext as xe, useRef as F, useState as p, useEffect as z, useImperativeHandle as Ie } from "react";
|
|
3
|
-
import { a as Ne } from "../chunk/
|
|
3
|
+
import { a as Ne } from "../chunk/CASwN1hB.js";
|
|
4
4
|
import { u as Ce } from "../chunk/C4OrxKE6.js";
|
|
5
5
|
import { u as Pe } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { m as C } from "../chunk/JPPo5nY_.js";
|
package/cascader/Cascader.js
CHANGED
|
@@ -9,17 +9,17 @@ import "lodash/isFunction";
|
|
|
9
9
|
import "lodash/isPlainObject";
|
|
10
10
|
import "lodash/isString";
|
|
11
11
|
import "react";
|
|
12
|
-
import "../chunk/
|
|
12
|
+
import "../chunk/CASwN1hB.js";
|
|
13
13
|
import "../chunk/CQ_WOOmf.js";
|
|
14
14
|
import "../chunk/B4YRLi8r.js";
|
|
15
15
|
import "../chunk/BFTV6myl.js";
|
|
16
16
|
import "../chunk/CdaT1b_F.js";
|
|
17
|
-
import "../chunk/
|
|
17
|
+
import "../chunk/a3hR6zLw.js";
|
|
18
18
|
import "../select-view/index.js";
|
|
19
19
|
import "../trigger/index.js";
|
|
20
20
|
import "../chunk/JPPo5nY_.js";
|
|
21
21
|
import "../chunk/BrOW642m.js";
|
|
22
|
-
import { D as k, C as n } from "../chunk/
|
|
22
|
+
import { D as k, C as n } from "../chunk/iOWILwNv.js";
|
|
23
23
|
export {
|
|
24
24
|
k as DefaultFieldNames,
|
|
25
25
|
n as default
|
package/cascader/index.js
CHANGED
package/cascader/util.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as s, a as t, S as r, V as o, f as l, g as S, c as u, b as V, r as f, t as g, v as m } from "../chunk/
|
|
1
|
+
import { P as s, a as t, S as r, V as o, f as l, g as S, c as u, b as V, r as f, t as g, v as m } from "../chunk/iOWILwNv.js";
|
|
2
2
|
export {
|
|
3
3
|
s as PANEL_MODE,
|
|
4
4
|
t as SHOW_CHILD,
|
package/checkbox/Checkbox.js
CHANGED
|
@@ -4,12 +4,12 @@ import "@unicom-cloud/icons/IconUiMinus";
|
|
|
4
4
|
import "lodash/isFunction";
|
|
5
5
|
import "lodash/isNil";
|
|
6
6
|
import "react";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/CASwN1hB.js";
|
|
8
8
|
import "../chunk/BFTV6myl.js";
|
|
9
9
|
import "../chunk/CdaT1b_F.js";
|
|
10
10
|
import "../chunk/JPPo5nY_.js";
|
|
11
11
|
import "../chunk/BKKEev13.js";
|
|
12
|
-
import { C } from "../chunk/
|
|
12
|
+
import { C } from "../chunk/Bh8AO6R8.js";
|
|
13
13
|
import "./useCheckbox.js";
|
|
14
14
|
export {
|
|
15
15
|
C as default
|
package/checkbox/Group.js
CHANGED
|
@@ -2,11 +2,11 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isArray";
|
|
3
3
|
import "lodash/isPlainObject";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/CASwN1hB.js";
|
|
6
6
|
import "../chunk/CdaT1b_F.js";
|
|
7
7
|
import "../chunk/JPPo5nY_.js";
|
|
8
8
|
import "../utils/constant.js";
|
|
9
|
-
import { a as b, b as s, G as u } from "../chunk/
|
|
9
|
+
import { a as b, b as s, G as u } from "../chunk/Bh8AO6R8.js";
|
|
10
10
|
export {
|
|
11
11
|
b as CheckboxGroupContext,
|
|
12
12
|
s as ClearCheckboxGroupContext,
|
package/checkbox/index.js
CHANGED
|
@@ -6,10 +6,10 @@ import G from "lodash/isArray";
|
|
|
6
6
|
import Ge from "lodash/isPlainObject";
|
|
7
7
|
import Fn from "lodash/isUndefined";
|
|
8
8
|
import _n, { useContext as ce, useMemo as un, forwardRef as Wn, useRef as Ve, useImperativeHandle as Bn, useState as ie, useEffect as Ke } from "react";
|
|
9
|
-
import { a as Re } from "./
|
|
9
|
+
import { a as Re } from "./CASwN1hB.js";
|
|
10
10
|
import { u as zn } from "./BFTV6myl.js";
|
|
11
11
|
import { u as Xt } from "./VSe_Wq1g.js";
|
|
12
|
-
import { u as Zt } from "./
|
|
12
|
+
import { u as Zt } from "./a3hR6zLw.js";
|
|
13
13
|
import qn from "../picker/InputRange.js";
|
|
14
14
|
import Un from "../trigger/index.js";
|
|
15
15
|
import { m as ge } from "./JPPo5nY_.js";
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { jsxs as w, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import U from "@unicom-cloud/icons/IconUiCaretLeft";
|
|
3
|
+
import L from "@unicom-cloud/icons/IconUiCaretRight";
|
|
4
|
+
import V from "lodash/isFunction";
|
|
5
|
+
import M, { useContext as K, useRef as A, createContext as B } from "react";
|
|
6
|
+
import { a as T, I as S } from "./CASwN1hB.js";
|
|
7
|
+
import { u as q } from "./BFTV6myl.js";
|
|
8
|
+
import { u as D } from "./CdaT1b_F.js";
|
|
9
|
+
import { m } from "./JPPo5nY_.js";
|
|
10
|
+
import { o as G } from "./BKKEev13.js";
|
|
11
|
+
import { u as J } from "./DzVH9IBy.js";
|
|
12
|
+
import { u as Q } from "./XTEsYGuF.js";
|
|
13
|
+
import { off as W, on as X } from "../utils/dom.js";
|
|
14
|
+
function Y(f, u) {
|
|
15
|
+
var I;
|
|
16
|
+
const { getPrefixCls: g } = K(T), o = K(j), $ = Q(), {
|
|
17
|
+
children: s,
|
|
18
|
+
name: a,
|
|
19
|
+
header: H,
|
|
20
|
+
className: E,
|
|
21
|
+
style: b,
|
|
22
|
+
contentStyle: N,
|
|
23
|
+
extra: y,
|
|
24
|
+
disabled: c,
|
|
25
|
+
destroyOnHide: v,
|
|
26
|
+
expandIcon: C,
|
|
27
|
+
showExpandIcon: P = !0,
|
|
28
|
+
...R
|
|
29
|
+
} = f, i = A(null), p = A(null), n = g("collapse-item"), d = ((I = o.activeKeys) == null ? void 0 : I.indexOf(a)) > -1, x = P ? "expandIcon" in f ? C : o.expandIcon : null, h = (e, t) => {
|
|
30
|
+
var O;
|
|
31
|
+
if (c)
|
|
32
|
+
return;
|
|
33
|
+
const { triggerRegion: l } = o;
|
|
34
|
+
(t === (l === "icon" ? 0 : l === "header" ? 1 : 2) || // When triggerRegion is set to header, clicking icon should trigger onChange as well
|
|
35
|
+
l === "header" && [0, 1].includes(t)) && ((O = o.onToggle) == null || O.call(o, a, e));
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ w(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref: u,
|
|
41
|
+
...R,
|
|
42
|
+
className: m(
|
|
43
|
+
n,
|
|
44
|
+
{
|
|
45
|
+
[`${n}-active`]: d,
|
|
46
|
+
[`${n}-no-icon`]: !x,
|
|
47
|
+
[`${n}-disabled`]: c
|
|
48
|
+
},
|
|
49
|
+
E
|
|
50
|
+
),
|
|
51
|
+
style: b,
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ w(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
role: "button",
|
|
57
|
+
"aria-disabled": c,
|
|
58
|
+
"aria-expanded": d,
|
|
59
|
+
"data-active-region": o.triggerRegion,
|
|
60
|
+
tabIndex: c ? -1 : 0,
|
|
61
|
+
className: m(
|
|
62
|
+
`${n}-header`,
|
|
63
|
+
`${n}-header-${o.expandIconPosition}`,
|
|
64
|
+
{
|
|
65
|
+
[`${n}-header-disabled`]: c
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
onClick: (e) => h(e, 2),
|
|
69
|
+
...$({
|
|
70
|
+
onPressEnter: (e) => {
|
|
71
|
+
!c && o.onToggle(a, e);
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
children: [
|
|
75
|
+
x && /* @__PURE__ */ r(
|
|
76
|
+
S,
|
|
77
|
+
{
|
|
78
|
+
prefix: n,
|
|
79
|
+
disabled: c,
|
|
80
|
+
className: m({
|
|
81
|
+
[`${n}-icon-hover-right`]: o.expandIconPosition === "right",
|
|
82
|
+
[`${n}-header-icon-right`]: o.expandIconPosition === "right"
|
|
83
|
+
}),
|
|
84
|
+
onClick: (e) => h(e, 0),
|
|
85
|
+
children: /* @__PURE__ */ r(
|
|
86
|
+
"span",
|
|
87
|
+
{
|
|
88
|
+
className: m(`${n}-header-icon`, {
|
|
89
|
+
[`${n}-header-icon-down`]: d
|
|
90
|
+
}),
|
|
91
|
+
children: x
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ r(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
className: `${n}-header-title`,
|
|
100
|
+
onClick: (e) => h(e, 1),
|
|
101
|
+
children: H
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
y && /* @__PURE__ */ r(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
className: `${n}-header-extra`,
|
|
108
|
+
onClick: (e) => {
|
|
109
|
+
e.stopPropagation();
|
|
110
|
+
},
|
|
111
|
+
children: y
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ r(
|
|
118
|
+
J,
|
|
119
|
+
{
|
|
120
|
+
nodeRef: i,
|
|
121
|
+
in: d,
|
|
122
|
+
addEndListener: (e) => {
|
|
123
|
+
W(i.current, "transitionend", e), X(i.current, "transitionend", e);
|
|
124
|
+
},
|
|
125
|
+
mountOnEnter: "destroyOnHide" in f ? v : o.destroyOnHide || o.lazyload,
|
|
126
|
+
unmountOnExit: "destroyOnHide" in f ? v : o.destroyOnHide,
|
|
127
|
+
onEnter: (e) => {
|
|
128
|
+
const t = i.current;
|
|
129
|
+
t.style.height = "0", t.style.display = "block";
|
|
130
|
+
},
|
|
131
|
+
onEntering: (e) => {
|
|
132
|
+
const t = i.current, l = p.current;
|
|
133
|
+
t.style.height = `${Math.max(t.scrollHeight, l.scrollHeight)}px`;
|
|
134
|
+
},
|
|
135
|
+
onEntered: (e) => {
|
|
136
|
+
const t = i.current;
|
|
137
|
+
t.style.height = "auto";
|
|
138
|
+
},
|
|
139
|
+
onExit: (e) => {
|
|
140
|
+
const t = i.current, l = p.current;
|
|
141
|
+
t.offsetHeight, l.offsetHeight, t.style.display = "block", t.style.height = `${t.offsetHeight}px`, t.style.height = `${Math.max(t.offsetHeight, l.offsetHeight)}px`, t.offsetHeight, l.offsetHeight;
|
|
142
|
+
},
|
|
143
|
+
onExiting: (e) => {
|
|
144
|
+
const t = i.current;
|
|
145
|
+
t.style.height = "0";
|
|
146
|
+
},
|
|
147
|
+
onExited: (e) => {
|
|
148
|
+
const t = i.current;
|
|
149
|
+
t.style.display = "none", t.style.height = "auto";
|
|
150
|
+
},
|
|
151
|
+
children: /* @__PURE__ */ r(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
ref: i,
|
|
155
|
+
role: "region",
|
|
156
|
+
className: m(`${n}-content`, {
|
|
157
|
+
[`${n}-content-expanded`]: d
|
|
158
|
+
}),
|
|
159
|
+
children: /* @__PURE__ */ r(
|
|
160
|
+
"div",
|
|
161
|
+
{
|
|
162
|
+
ref: p,
|
|
163
|
+
style: N,
|
|
164
|
+
className: `${n}-content-box`,
|
|
165
|
+
children: s
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
const z = M.forwardRef(
|
|
177
|
+
Y
|
|
178
|
+
);
|
|
179
|
+
z.displayName = "CollapseItem";
|
|
180
|
+
const k = (f, u) => {
|
|
181
|
+
const g = [].concat(f);
|
|
182
|
+
return u ? g.slice(0, 1) : g;
|
|
183
|
+
}, Z = {
|
|
184
|
+
bordered: !0,
|
|
185
|
+
lazyload: !0,
|
|
186
|
+
expandIconPosition: "left"
|
|
187
|
+
}, j = B({
|
|
188
|
+
expandIconPosition: "left",
|
|
189
|
+
expandIcon: /* @__PURE__ */ r(L, {}),
|
|
190
|
+
activeKeys: [],
|
|
191
|
+
onToggle: () => {
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
function _(f, u) {
|
|
195
|
+
const { getPrefixCls: g, componentConfig: o, rtl: $ } = K(T), s = q(
|
|
196
|
+
f,
|
|
197
|
+
Z,
|
|
198
|
+
o == null ? void 0 : o.Collapse
|
|
199
|
+
), [a, H] = D([], {
|
|
200
|
+
defaultValue: "defaultActiveKey" in s ? k(s.defaultActiveKey, s.accordion) : void 0,
|
|
201
|
+
value: "activeKey" in s ? k(s.activeKey, s.accordion) : void 0
|
|
202
|
+
}), {
|
|
203
|
+
children: E,
|
|
204
|
+
className: b,
|
|
205
|
+
style: N,
|
|
206
|
+
bordered: y,
|
|
207
|
+
lazyload: c,
|
|
208
|
+
expandIcon: v,
|
|
209
|
+
expandIconPosition: C,
|
|
210
|
+
destroyOnHide: P,
|
|
211
|
+
accordion: R,
|
|
212
|
+
triggerRegion: i,
|
|
213
|
+
onChange: p,
|
|
214
|
+
...n
|
|
215
|
+
} = s, d = g("collapse"), x = (h, I) => {
|
|
216
|
+
let e = [...a || []];
|
|
217
|
+
const t = a == null ? void 0 : a.indexOf(h);
|
|
218
|
+
t > -1 ? e.splice(t, 1) : R ? e = [h] : e.push(h), "activeKey" in s || H(e), V(p) && p(h, e, I);
|
|
219
|
+
};
|
|
220
|
+
return /* @__PURE__ */ r(
|
|
221
|
+
j.Provider,
|
|
222
|
+
{
|
|
223
|
+
value: {
|
|
224
|
+
activeKeys: a,
|
|
225
|
+
triggerRegion: i,
|
|
226
|
+
lazyload: c,
|
|
227
|
+
destroyOnHide: P,
|
|
228
|
+
expandIconPosition: C,
|
|
229
|
+
onToggle: x,
|
|
230
|
+
expandIcon: "expandIcon" in s ? v : C === "right" ? /* @__PURE__ */ r(U, {}) : /* @__PURE__ */ r(L, {})
|
|
231
|
+
},
|
|
232
|
+
children: /* @__PURE__ */ r(
|
|
233
|
+
"div",
|
|
234
|
+
{
|
|
235
|
+
ref: u,
|
|
236
|
+
...G(n, ["activeKey", "defaultActiveKey"]),
|
|
237
|
+
className: m(
|
|
238
|
+
d,
|
|
239
|
+
`${d}-${y ? "border" : "borderless"}`,
|
|
240
|
+
{ [`${d}-rtl`]: $ },
|
|
241
|
+
b
|
|
242
|
+
),
|
|
243
|
+
style: N,
|
|
244
|
+
children: E
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
const ee = M.forwardRef(_), F = ee;
|
|
251
|
+
F.displayName = "Collapse";
|
|
252
|
+
F.Item = z;
|
|
253
|
+
export {
|
|
254
|
+
F as C,
|
|
255
|
+
z as I,
|
|
256
|
+
j as a
|
|
257
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useEffect as t } from "react";
|
|
2
|
+
function o(e, n = []) {
|
|
3
|
+
t(() => (window.addEventListener("resize", e), window.addEventListener("orientationchange", e), () => {
|
|
4
|
+
window.removeEventListener("resize", e), window.removeEventListener("orientationchange", e);
|
|
5
|
+
}), [...n]);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
o as u
|
|
9
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useState as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import d from "lodash/debounce";
|
|
2
|
+
import { useState as c, useDeferredValue as h, useCallback as i, useEffect as w } from "react";
|
|
3
|
+
import { u as f } from "./BL9DMeor.js";
|
|
4
|
+
const p = (r = !1) => {
|
|
5
|
+
const [o, s] = c({
|
|
6
|
+
width: (window == null ? void 0 : window.innerWidth) ?? 0,
|
|
7
|
+
height: (window == null ? void 0 : window.innerHeight) ?? 0
|
|
8
|
+
}), u = h(
|
|
9
|
+
o
|
|
9
10
|
// 延迟一个值与防抖和节流之间有什么不同?
|
|
10
11
|
// 防抖 是指在用户停止输入一段时间(例如一秒钟)之后再更新列表。
|
|
11
12
|
// 节流 是指每隔一段时间(例如最多每秒一次)更新列表。
|
|
@@ -13,22 +14,16 @@ const l = (i = !1) => {
|
|
|
13
14
|
// 与防抖或节流不同,useDeferredValue 不需要选择任何固定延迟时间。如果用户的设备很快(比如性能强劲的笔记本电脑),延迟的重渲染几乎会立即发生并且不会被察觉。如果用户的设备较慢,那么列表会相应地“滞后”于输入,滞后的程度与设备的速度有关。
|
|
14
15
|
// 此外,与防抖或节流不同,useDeferredValue 执行的延迟重新渲染默认是可中断的。这意味着,如果 React 正在重新渲染一个大型列表,但用户进行了另一次键盘输入,React 会放弃该重新渲染,先处理键盘输入,然后再次开始在后台渲染。相比之下,防抖和节流仍会产生不顺畅的体验,因为它们是阻塞的:它们仅仅是将渲染阻塞键盘输入的时刻推迟了。
|
|
15
16
|
// 如果你要优化的工作不是在渲染期间发生的,那么防抖和节流仍然非常有用。例如,它们可以让你减少网络请求的次数。你也可以同时使用这些技术。
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
o({
|
|
17
|
+
), t = i((e) => {
|
|
18
|
+
const n = (e == null ? void 0 : e.currentTarget) ?? (e == null ? void 0 : e.target) ?? window;
|
|
19
|
+
s({
|
|
20
20
|
width: n.innerWidth,
|
|
21
21
|
height: n.innerHeight
|
|
22
22
|
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const e = i ? d : t;
|
|
27
|
-
return window.addEventListener("resize", e), () => {
|
|
28
|
-
window.removeEventListener("resize", e);
|
|
29
|
-
};
|
|
30
|
-
}, []), s;
|
|
23
|
+
}, []), a = i(d(t, 123), []);
|
|
24
|
+
return f(r ? a : t, []), w(() => () => {
|
|
25
|
+
}, []), u;
|
|
31
26
|
};
|
|
32
27
|
export {
|
|
33
|
-
|
|
28
|
+
p as u
|
|
34
29
|
};
|
|
@@ -4,7 +4,7 @@ import W from "@unicom-cloud/icons/IconUiMinus";
|
|
|
4
4
|
import E from "lodash/isFunction";
|
|
5
5
|
import q from "lodash/isNil";
|
|
6
6
|
import $, { createContext as B, useState as J, useContext as I, useCallback as F, useRef as K, useEffect as Q } from "react";
|
|
7
|
-
import { a as M, I as X } from "./
|
|
7
|
+
import { a as M, I as X } from "./CASwN1hB.js";
|
|
8
8
|
import { u as Y } from "./BFTV6myl.js";
|
|
9
9
|
import { u as S } from "./CdaT1b_F.js";
|
|
10
10
|
import { m as U } from "./JPPo5nY_.js";
|