@unicom-cloud/ui 0.8.110 → 0.8.112
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 +3 -3
- 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 +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +2 -2
- package/Countdown.js +17 -17
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +19 -19
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +18 -18
- package/Form.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/LiquidFill.js +19 -19
- package/List.js +1 -1
- package/Loading.js +18 -18
- package/Marquee.js +19 -19
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +18 -18
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +18 -18
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +13 -70
- package/Segmented.js +20 -20
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +18 -18
- 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/Tour.js +19 -19
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +2 -2
- package/affix/index.js +3 -3
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- 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 +2 -2
- 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/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{Y_GQsZUt.js → 0BhDjhcd.js} +1 -1
- package/chunk/{BDMqvmVH.js → BCmfDFV4.js} +28 -30
- package/chunk/{n1tirBXA.js → BfVlSL8A.js} +3 -3
- package/chunk/BiZSULcr.js +1872 -0
- package/chunk/{BcEZk8pT.js → C1vY8016.js} +14 -14
- package/chunk/{qsVvkBLU.js → C3kH2ES3.js} +1 -1
- package/chunk/{BGJspFG9.js → C5CbL5ku.js} +1 -1
- package/chunk/CAA93JLq.js +6 -0
- package/chunk/{B8W1N4er.js → CHQ8c547.js} +11 -10
- package/chunk/{Dbw0YUY1.js → CYssV-zz.js} +36 -36
- package/chunk/CrOzsnI0.js +51 -0
- package/chunk/{CFyN9Eio.js → CtCFA4ht.js} +4 -4
- package/chunk/{BnUWOu3_.js → Cx92e1S8.js} +3 -3
- package/chunk/{BeHcDey_.js → CylbdYce.js} +1 -1
- package/chunk/{BUNoUPLs.js → DMv8Hn4u.js} +1 -1
- package/chunk/{zFFM4RBT.js → DfUcAhyT.js} +703 -680
- package/chunk/{DSqW_efI.js → DfbO4QTS.js} +152 -156
- package/chunk/{CgN4U7Ou.js → DhAvt6tJ.js} +2 -2
- package/chunk/DsuIQH0F.js +200 -0
- package/chunk/{Lyh0cz3R.js → KPBMJlOB.js} +1 -1
- package/chunk/{B_c0gPsX.js → vP3qfmKM.js} +24 -23
- package/collapse/Collapse.js +1 -1
- package/collapse/Item.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 +2 -2
- package/countdown/index.js +17 -17
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +19 -19
- package/development/index.js +1 -1
- 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/flex/index.js +18 -18
- package/form/Form.js +2 -2
- package/form/FormItem.js +1 -1
- package/form/index.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +96 -97
- package/hooks/useId.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useResizeObserver.js +58 -2
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +22 -22
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +691 -693
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +2 -2
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +2 -2
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.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/liquid-fill/index.js +24 -24
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +18 -18
- package/marquee/index.js +22 -22
- package/marquee-/index.js +22 -22
- package/mentions/index.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +2 -2
- 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 +2 -2
- package/notice/index.js +18 -18
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +2 -2
- package/overflow-ellipsis/index.js +2 -2
- package/package.json +1 -1
- package/page-header/index.js +2 -2
- 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/CircleProgress.js +1 -1
- package/progress/index.js +1 -1
- package/qr-code/index.js +18 -18
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.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 +2 -2
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/core.js +1 -1
- package/rich-text/index.js +65 -128
- package/rich-text/rich.js +406 -936
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +71 -74
- package/row-col/Row.js +1 -1
- package/segmented/index.js +23 -23
- package/select/Option.js +1 -1
- package/select/Select.js +4 -4
- 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 +18 -18
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +3 -3
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +61 -11
- package/table/index.js +4 -4
- package/tabs/Tab.js +3 -3
- 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 +1 -1
- package/tour/index.js +27 -27
- 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 +3 -3
- package/tree-select/index.js +1 -1
- package/trigger/index.js +2 -2
- package/types/common/hooks/src/use-size/index.d.ts +1 -1
- package/types/common/hooks/src/use-theme/index.d.ts +2 -2
- package/types/common/hooks/src/utils/isBrowser.d.ts +1 -1
- package/types/common/hooks/useResizeObserver.d.ts +1 -5
- package/types/common/hooks/useWindowSize.d.ts +1 -1
- package/types/common/utils/emitter.d.ts +1 -0
- package/types/common/utils/index.d.ts +1 -1
- package/types/pc/index.d.ts +1 -1
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/rich-text/blots/scroll.d.ts +2 -8
- package/types/pc/rich-text/core/emitter.d.ts +2 -3
- package/types/pc/rich-text/core/rich.d.ts +11 -44
- package/types/pc/rich-text/core/selection.d.ts +1 -8
- package/types/pc/rich-text/core/theme.d.ts +3 -0
- package/types/pc/rich-text/parchment/blot/abstract/parent.d.ts +2 -4
- package/types/pc/rich-text/themes/base.d.ts +3 -0
- package/types/pc/rich-text/themes/{snow.d.ts → pqb.d.ts} +2 -2
- package/types/pc/rich-text/ui/tooltip.d.ts +2 -0
- package/types/pc/utils/emitter.d.ts +1 -0
- package/types/pc/utils/index.d.ts +1 -1
- package/typography/Base.js +2 -2
- package/typography/Ellipsis.js +3 -3
- package/typography/Operations.js +2 -2
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/emitter.js +5 -0
- package/utils/index.js +3 -3
- package/utils/resizeObserver.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +2 -2
- package/watermark/Watermark.js +1 -1
- package/chunk/BDgzrqDN.js +0 -154
- package/chunk/COc48wzV.js +0 -64
- package/chunk/COsRZOz1.js +0 -1813
- package/chunk/CylJZkp8.js +0 -6
- package/chunk/Di5KBCVQ.js +0 -4
- package/chunk/cW_5U6dL.js +0 -28
- package/rich-text/eventemitter/index.d.ts +0 -135
- package/types/common/utils/mitt.d.ts +0 -1
- package/types/pc/rich-text/eventemitter/index.d.ts +0 -101
- package/types/pc/rich-text/themes/bubble.d.ts +0 -18
- package/types/pc/utils/mitt.d.ts +0 -1
- package/utils/mitt.js +0 -5
package/row-col/Col-.js
CHANGED
|
@@ -3,7 +3,7 @@ import G from "lodash/isArray";
|
|
|
3
3
|
import H from "lodash/isNumber";
|
|
4
4
|
import T from "lodash/isPlainObject";
|
|
5
5
|
import { forwardRef as q, useContext as j, useMemo as D } from "react";
|
|
6
|
-
import { a as I } from "../chunk/
|
|
6
|
+
import { a as I } from "../chunk/C1vY8016.js";
|
|
7
7
|
import { COLS as J } from "../constant/index.js";
|
|
8
8
|
import { u as K } from "../chunk/FgWHhRFz.js";
|
|
9
9
|
import Q from "@unicom-cloud/utils/class-name";
|
package/row-col/Col.js
CHANGED
|
@@ -1,124 +1,121 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as U, useContext as E, useMemo as x, useEffect as W } from "react";
|
|
3
|
-
import { a as X } from "../chunk/
|
|
4
|
-
import { COLS as
|
|
3
|
+
import { a as X } from "../chunk/C1vY8016.js";
|
|
4
|
+
import { COLS as b } from "../constant/index.js";
|
|
5
5
|
import { u as Y } from "../chunk/FgWHhRFz.js";
|
|
6
6
|
import { useResponsive as Z, isResponsiveValue as ee } from "../hooks/useResponsiveState.js";
|
|
7
7
|
import te from "@unicom-cloud/utils/class-name";
|
|
8
8
|
import "../chunk/DsaQZE4X.js";
|
|
9
|
-
import { responsiveArray as
|
|
9
|
+
import { responsiveArray as v } from "../utils/responsiveObserve.js";
|
|
10
10
|
import { RowContext as se } from "./context.js";
|
|
11
|
-
import { isNil as oe, isNumber as l, isPlainObject as
|
|
12
|
-
function
|
|
13
|
-
const { getPrefixCls:
|
|
14
|
-
span:
|
|
11
|
+
import { isNil as oe, isNumber as l, isPlainObject as L, isArray as re } from "@unicom-cloud/utils/is";
|
|
12
|
+
function ne(M, z) {
|
|
13
|
+
const { getPrefixCls: B, componentConfig: y, rtl: P } = E(X), o = B?.("col"), k = Y(M, {
|
|
14
|
+
span: b
|
|
15
15
|
// 默认占据 24 列
|
|
16
16
|
}, {
|
|
17
|
-
...
|
|
18
|
-
...
|
|
19
|
-
}),
|
|
20
|
-
className:
|
|
21
|
-
style:
|
|
17
|
+
...y?.Col,
|
|
18
|
+
...y?.GridCol
|
|
19
|
+
}), F = E(se), { gutter: C, div: f } = F, {
|
|
20
|
+
className: V,
|
|
21
|
+
style: q,
|
|
22
22
|
children: D,
|
|
23
|
-
span: d =
|
|
24
|
-
offset:
|
|
23
|
+
span: d = b,
|
|
24
|
+
offset: p,
|
|
25
25
|
order: c,
|
|
26
26
|
pull: u,
|
|
27
|
-
push:
|
|
27
|
+
push: m,
|
|
28
28
|
xs: N,
|
|
29
|
-
sm:
|
|
30
|
-
md:
|
|
31
|
-
lg:
|
|
32
|
-
xl:
|
|
33
|
-
xxl:
|
|
34
|
-
xxxl:
|
|
29
|
+
sm: w,
|
|
30
|
+
md: I,
|
|
31
|
+
lg: R,
|
|
32
|
+
xl: _,
|
|
33
|
+
xxl: S,
|
|
34
|
+
xxxl: j,
|
|
35
35
|
flex: h,
|
|
36
|
-
breakpoints:
|
|
36
|
+
breakpoints: G,
|
|
37
37
|
...H
|
|
38
|
-
} =
|
|
38
|
+
} = k, g = "flex" in k && !oe(h), O = Z(), a = x(() => ({ ...G, xs: N, sm: w, md: I, lg: R, xl: _, xxl: S, xxxl: j }), [G, R, I, w, _, N, S, j]), J = x(() => {
|
|
39
39
|
const e = {
|
|
40
|
-
[`${
|
|
41
|
-
[`${
|
|
42
|
-
[`${
|
|
43
|
-
[`${
|
|
44
|
-
[`${
|
|
45
|
-
[`${
|
|
46
|
-
[`${
|
|
40
|
+
[`${o}`]: !f,
|
|
41
|
+
[`${o}-order-${c}`]: c,
|
|
42
|
+
[`${o}-${d}`]: !f && !ee(a),
|
|
43
|
+
[`${o}-offset-${p}`]: p,
|
|
44
|
+
[`${o}-pull-${u}`]: u,
|
|
45
|
+
[`${o}-push-${m}`]: m,
|
|
46
|
+
[`${o}-rtl`]: P
|
|
47
47
|
};
|
|
48
|
-
for (const
|
|
49
|
-
const
|
|
50
|
-
if (l(
|
|
51
|
-
e[`${
|
|
52
|
-
else if (
|
|
48
|
+
for (const s in a) {
|
|
49
|
+
const t = a[s];
|
|
50
|
+
if (l(t))
|
|
51
|
+
e[`${o}-${s}-${t}`] = !0;
|
|
52
|
+
else if (L(t)) {
|
|
53
53
|
const {
|
|
54
54
|
span: n,
|
|
55
|
-
offset:
|
|
56
|
-
order:
|
|
55
|
+
offset: r,
|
|
56
|
+
order: $,
|
|
57
57
|
pull: i,
|
|
58
58
|
push: A
|
|
59
|
-
} =
|
|
60
|
-
e[`${
|
|
59
|
+
} = t;
|
|
60
|
+
e[`${o}-${s}-${n}`] = n, e[`${o}-${s}-offset-${r}`] = r, e[`${o}-${s}-order-${$}`] = $, e[`${o}-${s}-pull-${i}`] = i, e[`${o}-${s}-push-${A}`] = A;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return e;
|
|
64
|
-
}, [
|
|
64
|
+
}, [o, f, c, d, a, p, u, m, P]), K = x(() => {
|
|
65
65
|
const e = {};
|
|
66
66
|
if (f)
|
|
67
67
|
return e;
|
|
68
68
|
if (re(C)) {
|
|
69
|
-
const [
|
|
70
|
-
if (
|
|
71
|
-
let n = l(
|
|
69
|
+
const [s, t] = C;
|
|
70
|
+
if (s) {
|
|
71
|
+
let n = l(s) ? `${s}px` : s;
|
|
72
72
|
n = `calc(${n} / 2)`, e.paddingLeft = n, e.paddingRight = n;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
76
|
}, [C, f]), Q = x(() => {
|
|
77
77
|
const e = {};
|
|
78
|
-
if (
|
|
79
|
-
|
|
80
|
-
return e.flex = t, ne(t) && (["auto", "none"].includes(t) ? e.flex = t : /\d+\w{1,}/.test(t) && (e.flex = `0 0 ${t}`)), l(t) && (e.flex = t), e;
|
|
81
|
-
}
|
|
78
|
+
if (g)
|
|
79
|
+
return e.flex = h, e;
|
|
82
80
|
if (f)
|
|
83
81
|
return e;
|
|
84
|
-
function
|
|
85
|
-
return `${100 /
|
|
82
|
+
function s(r) {
|
|
83
|
+
return `${100 / b * r}%`;
|
|
86
84
|
}
|
|
87
|
-
const
|
|
85
|
+
const t = {
|
|
88
86
|
span: d,
|
|
89
|
-
offset:
|
|
87
|
+
offset: p,
|
|
90
88
|
order: c,
|
|
91
89
|
pull: u,
|
|
92
|
-
push:
|
|
93
|
-
}, n =
|
|
94
|
-
if (n !== -1) for (let
|
|
95
|
-
const
|
|
90
|
+
push: m
|
|
91
|
+
}, n = v.findIndex((r, $, i) => O[r]);
|
|
92
|
+
if (n !== -1) for (let r = n; r < v.length; r++) {
|
|
93
|
+
const $ = v[r], i = a[$];
|
|
96
94
|
if (i !== void 0) {
|
|
97
|
-
if (
|
|
98
|
-
Object.assign(
|
|
95
|
+
if (L(i)) {
|
|
96
|
+
Object.assign(t, i);
|
|
99
97
|
break;
|
|
100
98
|
}
|
|
101
99
|
if (l(i)) {
|
|
102
|
-
|
|
100
|
+
t.span = i;
|
|
103
101
|
break;
|
|
104
102
|
}
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
|
-
if (l(
|
|
108
|
-
const
|
|
109
|
-
e.width =
|
|
105
|
+
if (l(t.span)) {
|
|
106
|
+
const r = s(t.span);
|
|
107
|
+
e.width = r, e.flexGrow = 0, e.flexShrink = 0, e.flexBasis = r;
|
|
110
108
|
}
|
|
111
|
-
return l(
|
|
109
|
+
return l(t.offset) && (e.marginInlineStart = s(t.offset)), l(t.pull) && (e.insetInlineEnd = s(t.pull)), l(t.push) && (e.insetInlineStart = s(t.push)), l(t.order) && (e.order = t.order), e;
|
|
112
110
|
}, [
|
|
113
|
-
|
|
111
|
+
a,
|
|
114
112
|
f,
|
|
115
113
|
h,
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
g,
|
|
115
|
+
p,
|
|
118
116
|
c,
|
|
119
117
|
u,
|
|
120
|
-
|
|
121
|
-
g,
|
|
118
|
+
m,
|
|
122
119
|
O,
|
|
123
120
|
d
|
|
124
121
|
]);
|
|
@@ -126,20 +123,20 @@ function ie(L, M) {
|
|
|
126
123
|
}, []), /* @__PURE__ */ T(
|
|
127
124
|
"div",
|
|
128
125
|
{
|
|
129
|
-
ref:
|
|
126
|
+
ref: z,
|
|
130
127
|
...H,
|
|
131
128
|
style: {
|
|
132
|
-
...B,
|
|
133
129
|
...K,
|
|
134
|
-
...Q
|
|
130
|
+
...Q,
|
|
131
|
+
...q
|
|
135
132
|
},
|
|
136
|
-
className: te(
|
|
133
|
+
className: te(g ? o : J, V),
|
|
137
134
|
children: D
|
|
138
135
|
}
|
|
139
136
|
);
|
|
140
137
|
}
|
|
141
|
-
const
|
|
142
|
-
|
|
138
|
+
const ie = U(ne);
|
|
139
|
+
ie.displayName = "Col";
|
|
143
140
|
export {
|
|
144
|
-
|
|
141
|
+
ie as default
|
|
145
142
|
};
|
package/row-col/Row.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N, useContext as h, useEffect as v } from "react";
|
|
3
|
-
import { a as P } from "../chunk/
|
|
3
|
+
import { a as P } from "../chunk/C1vY8016.js";
|
|
4
4
|
import { u as j } from "../chunk/FgWHhRFz.js";
|
|
5
5
|
import { useResponsiveState as c } from "../hooks/useResponsiveState.js";
|
|
6
6
|
import z from "@unicom-cloud/utils/class-name";
|
package/segmented/index.js
CHANGED
|
@@ -1,42 +1,30 @@
|
|
|
1
1
|
import { jsx as h, jsxs as H, Fragment as ho } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as yo, useContext as zo, useMemo as xo, useState as vo, useRef as L, useEffect as K, useImperativeHandle as wo } from "react";
|
|
3
|
-
import { a as So } from "../chunk/
|
|
3
|
+
import { a as So } from "../chunk/C1vY8016.js";
|
|
4
4
|
import "../chunk/DsaQZE4X.js";
|
|
5
|
-
import "../chunk/CdXR6dj7.js";
|
|
6
|
-
import { u as ko } from "../chunk/BJeTDXdz.js";
|
|
7
|
-
import "@unicom-cloud/utils/js-cookie";
|
|
8
|
-
import "dayjs";
|
|
9
|
-
import "lodash/debounce";
|
|
10
|
-
import { u as Co } from "../chunk/DfChiMIE.js";
|
|
11
|
-
import "@unicom-cloud/utils/screenfull";
|
|
12
|
-
import "../chunk/BDgzrqDN.js";
|
|
13
|
-
import "lodash/throttle";
|
|
14
|
-
import "@unicom-cloud/utils/constant/platform";
|
|
15
|
-
import "lodash/isPlainObject";
|
|
16
|
-
import "@unicom-cloud/utils/query-string";
|
|
17
|
-
import "react-router";
|
|
18
|
-
import "lodash/isEqualWith";
|
|
19
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
20
|
-
import "lodash/isNumber";
|
|
21
|
-
import "lodash/merge";
|
|
22
|
-
import "../chunk/d1c9z8T1.js";
|
|
23
5
|
import "@unicom-cloud/utils/date";
|
|
24
6
|
import "@unicom-cloud/utils/case-name";
|
|
25
7
|
import M from "@unicom-cloud/utils/class-name";
|
|
26
8
|
import "@unicom-cloud/utils/constant/ui";
|
|
27
9
|
import "@unicom-cloud/utils/clipboard-copy";
|
|
28
10
|
import "../chunk/DS_deHpN.js";
|
|
11
|
+
import "../chunk/d1c9z8T1.js";
|
|
12
|
+
import "@unicom-cloud/utils/emitter";
|
|
29
13
|
import "@unicom-cloud/utils/file/fileToURL";
|
|
30
14
|
import "lodash/escapeRegExp";
|
|
31
15
|
import "lodash/isArray";
|
|
16
|
+
import "lodash/isNumber";
|
|
32
17
|
import "lodash/isString";
|
|
33
18
|
import "lodash/isFunction";
|
|
19
|
+
import "lodash/throttle";
|
|
34
20
|
import "lodash/camelCase";
|
|
35
21
|
import "lodash/capitalize";
|
|
36
22
|
import "lodash/cloneDeep";
|
|
23
|
+
import "lodash/debounce";
|
|
37
24
|
import "lodash/get";
|
|
38
25
|
import "lodash/has";
|
|
39
26
|
import "lodash/kebabCase";
|
|
27
|
+
import "lodash/merge";
|
|
40
28
|
import "lodash/mergeWith";
|
|
41
29
|
import "lodash/set";
|
|
42
30
|
import "lodash/setWith";
|
|
@@ -45,19 +33,31 @@ import "lodash/startCase";
|
|
|
45
33
|
import "lodash/uniq";
|
|
46
34
|
import "lodash/upperFirst";
|
|
47
35
|
import "@unicom-cloud/utils/math";
|
|
48
|
-
import "
|
|
36
|
+
import "lodash/isPlainObject";
|
|
49
37
|
import "@unicom-cloud/utils/pinyin";
|
|
50
38
|
import "../chunk/BJ9_azwQ.js";
|
|
51
39
|
import "../chunk/CXrVhA6-.js";
|
|
52
40
|
import "@unicom-cloud/utils/file/saveAs";
|
|
41
|
+
import "@unicom-cloud/utils/screenfull";
|
|
53
42
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
54
43
|
import "@unicom-cloud/utils/tinycolor";
|
|
55
44
|
import "@unicom-cloud/utils/ui-color";
|
|
56
45
|
import "react-is";
|
|
57
46
|
import "@unicom-cloud/utils/tree";
|
|
58
|
-
import { isString as
|
|
47
|
+
import { isString as ko, isNumber as T, isFunction as W } from "@unicom-cloud/utils/is";
|
|
59
48
|
import "uuid";
|
|
60
49
|
import "../chunk/hc_ufgVf.js";
|
|
50
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
51
|
+
import "@unicom-cloud/utils/constant/platform";
|
|
52
|
+
import "../chunk/CdXR6dj7.js";
|
|
53
|
+
import { u as Co } from "../chunk/BJeTDXdz.js";
|
|
54
|
+
import "@unicom-cloud/utils/js-cookie";
|
|
55
|
+
import "dayjs";
|
|
56
|
+
import { u as Io } from "../chunk/DfChiMIE.js";
|
|
57
|
+
import "../chunk/DsuIQH0F.js";
|
|
58
|
+
import "@unicom-cloud/utils/query-string";
|
|
59
|
+
import "react-router";
|
|
60
|
+
import "lodash/isEqualWith";
|
|
61
61
|
import "../chunk/RjJoagzL.js";
|
|
62
62
|
import { u as No } from "../chunk/FgWHhRFz.js";
|
|
63
63
|
import "@unicom-cloud/utils/constant";
|
|
@@ -139,7 +139,7 @@ function qo(B, J) {
|
|
|
139
139
|
immediateTrigger: to = !1,
|
|
140
140
|
onChange: P,
|
|
141
141
|
...io
|
|
142
|
-
} = c, R =
|
|
142
|
+
} = c, R = Co(), e = Q?.("segmented"), ro = x === "vertical", V = z === "pill", U = "value" in c, n = xo(() => C.map((o) => ko(o) || T(o) ? { value: o, label: o } : o), [C]), [no, so] = vo(_), E = L(null), v = L([]), a = U ? oo : no, p = G[y] || G.medium;
|
|
143
143
|
function ao() {
|
|
144
144
|
let o = I;
|
|
145
145
|
return "gap" in c ? o = I : o = p.root.padding, o;
|
|
@@ -276,7 +276,7 @@ function qo(B, J) {
|
|
|
276
276
|
`${d}-${s}-${i}`
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
|
-
return
|
|
279
|
+
return Io(() => {
|
|
280
280
|
a === void 0 || n.some((i) => i.value === a) || g(void 0);
|
|
281
281
|
}, [n]), K(() => {
|
|
282
282
|
const o = requestAnimationFrame(() => {
|
package/select/Option.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as g, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import E from "react";
|
|
3
|
-
import { C as L } from "../chunk/
|
|
3
|
+
import { C as L } from "../chunk/C3kH2ES3.js";
|
|
4
4
|
import _ from "@unicom-cloud/utils/class-name";
|
|
5
5
|
import { o as j } from "../chunk/BKKEev13.js";
|
|
6
6
|
function y(l, f) {
|
package/select/Select.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx as E, jsxs as Ot } from "react/jsx-runtime";
|
|
|
2
2
|
import m from "lodash/isArray";
|
|
3
3
|
import vt from "lodash/isFunction";
|
|
4
4
|
import bt, { useContext as Vt, useState as j, useMemo as Ee, useRef as V, useCallback as oe, useEffect as O, useImperativeHandle as yt } from "react";
|
|
5
|
-
import { C as wt } from "../chunk/
|
|
6
|
-
import { a as kt } from "../chunk/
|
|
7
|
-
import { u as xt } from "../chunk/
|
|
5
|
+
import { C as wt } from "../chunk/C3kH2ES3.js";
|
|
6
|
+
import { a as kt } from "../chunk/C1vY8016.js";
|
|
7
|
+
import { u as xt } from "../chunk/C5CbL5ku.js";
|
|
8
8
|
import { u as St } from "../chunk/FgWHhRFz.js";
|
|
9
9
|
import { u as Me } from "../chunk/2vdCeheu.js";
|
|
10
10
|
import It from "../select-view/index.js";
|
|
@@ -14,7 +14,7 @@ import { g as _t } from "../chunk/Dh7Osrvr.js";
|
|
|
14
14
|
import "../chunk/DsaQZE4X.js";
|
|
15
15
|
import { Esc as Et, Enter as Fe, Tab as Ae, ArrowUp as Mt, ArrowDown as Ft } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
16
16
|
import { o as At } from "../chunk/BKKEev13.js";
|
|
17
|
-
import { r as Nt } from "../chunk/
|
|
17
|
+
import { r as Nt } from "../chunk/CHQ8c547.js";
|
|
18
18
|
import Lt from "../utils/warning.js";
|
|
19
19
|
import Tt from "../virtual-list/VirtualList.js";
|
|
20
20
|
import Dt from "./OptGroup.js";
|
package/select-view/Core.js
CHANGED
|
@@ -6,7 +6,7 @@ import oo from "@unicom-cloud/icons/IconUiLoading";
|
|
|
6
6
|
import no from "@unicom-cloud/icons/IconUiSearch";
|
|
7
7
|
import to from "lodash/isFunction";
|
|
8
8
|
import le from "lodash/isUndefined";
|
|
9
|
-
import { a as ro, I as so } from "../chunk/
|
|
9
|
+
import { a as ro, I as so } from "../chunk/C1vY8016.js";
|
|
10
10
|
import { u as ao } from "../chunk/BJeTDXdz.js";
|
|
11
11
|
import { u as co } from "../chunk/Ca6eMq_Y.js";
|
|
12
12
|
import lo from "../input-tag/InputTag.js";
|
package/skeleton/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as $ } from "react/jsx-runtime";
|
|
2
2
|
import k from "lodash/isPlainObject";
|
|
3
3
|
import S, { forwardRef as j, useContext as v } from "react";
|
|
4
|
-
import { a as b } from "../chunk/
|
|
4
|
+
import { a as b } from "../chunk/C1vY8016.js";
|
|
5
5
|
import { u as y } from "../chunk/FgWHhRFz.js";
|
|
6
6
|
import R from "@unicom-cloud/utils/class-name";
|
|
7
7
|
import { a as w } from "../chunk/ClqoGc3r.js";
|
package/slider/Button.js
CHANGED
|
@@ -3,7 +3,7 @@ import p from "lodash/isFunction";
|
|
|
3
3
|
import W from "lodash/isNumber";
|
|
4
4
|
import q from "lodash/isString";
|
|
5
5
|
import G, { useState as H, useContext as J, useMemo as N, useRef as v, useEffect as Q } from "react";
|
|
6
|
-
import { a as Z } from "../chunk/
|
|
6
|
+
import { a as Z } from "../chunk/C1vY8016.js";
|
|
7
7
|
import { u as _ } from "../chunk/Bvxzb1wd.js";
|
|
8
8
|
import { u as tt } from "../chunk/2vdCeheu.js";
|
|
9
9
|
import et from "../trigger/index.js";
|
package/slider/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import _ from "lodash/isArray";
|
|
|
4
4
|
import ee from "lodash/isFunction";
|
|
5
5
|
import te from "lodash/isPlainObject";
|
|
6
6
|
import Ge, { useMemo as ne, useCallback as T, forwardRef as He, useContext as Qe, useRef as $ } from "react";
|
|
7
|
-
import { a as Ze } from "../chunk/
|
|
7
|
+
import { a as Ze } from "../chunk/C1vY8016.js";
|
|
8
8
|
import { u as _e } from "../chunk/FgWHhRFz.js";
|
|
9
9
|
import { u as et } from "../chunk/2vdCeheu.js";
|
|
10
10
|
import { u as tt } from "../chunk/DfChiMIE.js";
|
package/space/index.js
CHANGED
|
@@ -1,40 +1,30 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as a, useContext as u } from "react";
|
|
3
|
-
import { a as C, S as x } from "../chunk/
|
|
3
|
+
import { a as C, S as x } from "../chunk/C1vY8016.js";
|
|
4
4
|
import "../chunk/DsaQZE4X.js";
|
|
5
|
-
import "../chunk/CdXR6dj7.js";
|
|
6
|
-
import "@unicom-cloud/utils/js-cookie";
|
|
7
|
-
import "dayjs";
|
|
8
|
-
import "lodash/debounce";
|
|
9
|
-
import "@unicom-cloud/utils/screenfull";
|
|
10
|
-
import "../chunk/BDgzrqDN.js";
|
|
11
|
-
import "lodash/throttle";
|
|
12
|
-
import "@unicom-cloud/utils/constant/platform";
|
|
13
|
-
import "lodash/isPlainObject";
|
|
14
|
-
import "@unicom-cloud/utils/query-string";
|
|
15
|
-
import "react-router";
|
|
16
|
-
import "lodash/isEqualWith";
|
|
17
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
18
|
-
import "lodash/isNumber";
|
|
19
|
-
import "lodash/merge";
|
|
20
|
-
import "../chunk/d1c9z8T1.js";
|
|
21
5
|
import "@unicom-cloud/utils/date";
|
|
22
6
|
import "@unicom-cloud/utils/case-name";
|
|
23
7
|
import N from "@unicom-cloud/utils/class-name";
|
|
24
8
|
import "@unicom-cloud/utils/constant/ui";
|
|
25
9
|
import "@unicom-cloud/utils/clipboard-copy";
|
|
26
10
|
import "../chunk/DS_deHpN.js";
|
|
11
|
+
import "../chunk/d1c9z8T1.js";
|
|
12
|
+
import "@unicom-cloud/utils/emitter";
|
|
27
13
|
import "@unicom-cloud/utils/file/fileToURL";
|
|
28
14
|
import "lodash/escapeRegExp";
|
|
29
15
|
import "lodash/isArray";
|
|
16
|
+
import "lodash/isNumber";
|
|
30
17
|
import "lodash/isString";
|
|
31
18
|
import "lodash/isFunction";
|
|
19
|
+
import "lodash/throttle";
|
|
32
20
|
import "lodash/camelCase";
|
|
33
21
|
import "lodash/capitalize";
|
|
34
22
|
import "lodash/cloneDeep";
|
|
23
|
+
import "lodash/debounce";
|
|
35
24
|
import "lodash/get";
|
|
36
25
|
import "lodash/has";
|
|
37
26
|
import "lodash/kebabCase";
|
|
27
|
+
import "lodash/merge";
|
|
38
28
|
import "lodash/mergeWith";
|
|
39
29
|
import "lodash/set";
|
|
40
30
|
import "lodash/setWith";
|
|
@@ -43,11 +33,12 @@ import "lodash/startCase";
|
|
|
43
33
|
import "lodash/uniq";
|
|
44
34
|
import "lodash/upperFirst";
|
|
45
35
|
import "@unicom-cloud/utils/math";
|
|
46
|
-
import "
|
|
36
|
+
import "lodash/isPlainObject";
|
|
47
37
|
import "@unicom-cloud/utils/pinyin";
|
|
48
38
|
import "../chunk/BJ9_azwQ.js";
|
|
49
39
|
import "../chunk/CXrVhA6-.js";
|
|
50
40
|
import "@unicom-cloud/utils/file/saveAs";
|
|
41
|
+
import "@unicom-cloud/utils/screenfull";
|
|
51
42
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
52
43
|
import "@unicom-cloud/utils/tinycolor";
|
|
53
44
|
import "@unicom-cloud/utils/ui-color";
|
|
@@ -56,6 +47,15 @@ import "@unicom-cloud/utils/tree";
|
|
|
56
47
|
import "@unicom-cloud/utils/is";
|
|
57
48
|
import "uuid";
|
|
58
49
|
import "../chunk/hc_ufgVf.js";
|
|
50
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
51
|
+
import "@unicom-cloud/utils/constant/platform";
|
|
52
|
+
import "../chunk/CdXR6dj7.js";
|
|
53
|
+
import "@unicom-cloud/utils/js-cookie";
|
|
54
|
+
import "dayjs";
|
|
55
|
+
import "../chunk/DsuIQH0F.js";
|
|
56
|
+
import "@unicom-cloud/utils/query-string";
|
|
57
|
+
import "react-router";
|
|
58
|
+
import "lodash/isEqualWith";
|
|
59
59
|
import "../chunk/RjJoagzL.js";
|
|
60
60
|
import { u as g } from "../chunk/FgWHhRFz.js";
|
|
61
61
|
import "@unicom-cloud/utils/constant";
|
package/spin/DotLoading.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import a from "lodash/isNumber";
|
|
3
3
|
import { useContext as m } from "react";
|
|
4
|
-
import { a as l } from "../chunk/
|
|
4
|
+
import { a as l } from "../chunk/C1vY8016.js";
|
|
5
5
|
function x(t) {
|
|
6
6
|
const { getPrefixCls: r } = m(l), i = `${r?.("spin")}-dot`, n = {
|
|
7
7
|
width: t.size,
|
package/spin/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import F from "@unicom-cloud/icons/IconUiLoadingRing";
|
|
|
6
6
|
import H from "@unicom-cloud/icons/IconUiLoadingSpinner";
|
|
7
7
|
import M from "lodash/debounce";
|
|
8
8
|
import h, { useContext as q, useState as A, useCallback as B, useRef as G, useImperativeHandle as J, useEffect as K } from "react";
|
|
9
|
-
import { a as O } from "../chunk/
|
|
9
|
+
import { a as O } from "../chunk/C1vY8016.js";
|
|
10
10
|
import { u as Q } from "../chunk/FgWHhRFz.js";
|
|
11
11
|
import f from "@unicom-cloud/utils/class-name";
|
|
12
12
|
import { b as T } from "../chunk/DsaQZE4X.js";
|
package/splitter/Panel.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import p, { forwardRef as x } from "react";
|
|
3
|
-
import { a as d } from "../chunk/
|
|
3
|
+
import { a as d } from "../chunk/C1vY8016.js";
|
|
4
4
|
import C from "@unicom-cloud/utils/class-name";
|
|
5
5
|
const N = x((o, t) => {
|
|
6
6
|
const { getPrefixCls: l } = p.useContext(d), {
|
package/splitter/SplitBar.js
CHANGED
|
@@ -4,9 +4,9 @@ import "@unicom-cloud/icons/IconUiLeft";
|
|
|
4
4
|
import "@unicom-cloud/icons/IconUiRight";
|
|
5
5
|
import "@unicom-cloud/icons/IconUiUp";
|
|
6
6
|
import "react";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/C1vY8016.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
|
9
|
-
import { S as l } from "../chunk/
|
|
9
|
+
import { S as l } from "../chunk/CylbdYce.js";
|
|
10
10
|
export {
|
|
11
11
|
l as default
|
|
12
12
|
};
|
package/splitter/Splitter.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as Y, jsx as L } from "react/jsx-runtime";
|
|
2
2
|
import p, { useState as ae, useRef as ce, useEffect as le, useImperativeHandle as fe } from "react";
|
|
3
|
-
import { a as ue } from "../chunk/
|
|
3
|
+
import { a as ue } from "../chunk/C1vY8016.js";
|
|
4
4
|
import { u as me } from "../chunk/FgWHhRFz.js";
|
|
5
5
|
import pe from "@unicom-cloud/utils/class-name";
|
|
6
|
-
import { r as ze } from "../chunk/
|
|
7
|
-
import { u as D, S as Se } from "../chunk/
|
|
6
|
+
import { r as ze } from "../chunk/CHQ8c547.js";
|
|
7
|
+
import { u as D, S as Se } from "../chunk/CylbdYce.js";
|
|
8
8
|
import { t as de } from "../chunk/CTMmW21t.js";
|
|
9
9
|
import { InternalPanel as Ce } from "./Panel.js";
|
|
10
10
|
function ge(t) {
|
package/statistic/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import W from "dayjs";
|
|
|
4
4
|
import X from "lodash/isFunction";
|
|
5
5
|
import c from "lodash/isNumber";
|
|
6
6
|
import { forwardRef as z, useContext as B, useRef as w, useState as G, useEffect as J, useImperativeHandle as K, useMemo as Q } from "react";
|
|
7
|
-
import { a as Y } from "../chunk/
|
|
7
|
+
import { a as Y } from "../chunk/C1vY8016.js";
|
|
8
8
|
import Z from "../countdown/index.js";
|
|
9
9
|
import { u as ee } from "../chunk/FgWHhRFz.js";
|
|
10
10
|
import te from "../skeleton/index.js";
|
package/steps/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as D } from "react/jsx-runtime";
|
|
2
2
|
import d, { forwardRef as R, useContext as k } from "react";
|
|
3
|
-
import { a as A } from "../chunk/
|
|
3
|
+
import { a as A } from "../chunk/C1vY8016.js";
|
|
4
4
|
import { u as E } from "../chunk/FgWHhRFz.js";
|
|
5
5
|
import I from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import { a as j } from "../chunk/ClqoGc3r.js";
|