@unicom-cloud/ui 0.8.81 → 0.8.83
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 +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +2 -2
- 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 +2 -2
- package/Comment.js +1 -1
- package/ConfigProvider.js +5 -4
- package/Copy.js +1 -1
- package/DatePicker.js +7 -7
- 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/Input.js +11 -10
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +5 -5
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.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/Select.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +1 -1
- package/Spin.js +1 -1
- package/Statistic.js +2 -2
- 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 +2 -2
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/affix/index.js +60 -57
- package/alert/index.js +53 -53
- package/anchor/Anchor.js +72 -72
- package/anchor/Link.js +27 -27
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +31 -31
- package/avatar/Group.js +25 -25
- package/back-top/index.js +30 -30
- package/badge/index.js +37 -37
- package/breadcrumb/index.js +26 -26
- package/button/Group.js +7 -7
- package/button/index.js +29 -29
- package/calendar/index.js +2 -2
- package/card/Grid.js +12 -12
- package/card/Meta.js +17 -17
- package/card/index.js +44 -44
- package/carousel/Arrow.js +19 -19
- package/carousel/Indicator.js +25 -25
- package/carousel/index.js +77 -77
- package/cascader/Cascader.js +2 -2
- 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/B6r8jPCd.js +6 -0
- package/chunk/{DLBfXSnU.js → BmulTYLW.js} +2880 -2878
- package/chunk/C9oo3EJI.js +692 -0
- package/chunk/{C5X4hOkx.js → CVSWh4ZZ.js} +80 -80
- package/chunk/DILUZgXW.js +1464 -0
- package/chunk/DSRHFFrc.js +53 -0
- package/chunk/{yLRv5RIK.js → DdJVL_4g.js} +181 -181
- package/chunk/{DYspELhF.js → DlHiTTJO.js} +223 -223
- package/chunk/{BG7YGUsx.js → R-uQJib2.js} +119 -119
- package/chunk/{DEiyXzBZ.js → ev6oHWqY.js} +63 -63
- package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +36 -36
- package/color-picker/InputAlpha.js +11 -11
- package/color-picker/InputHex.js +24 -24
- package/color-picker/InputRgb.js +23 -23
- package/color-picker/Palette.js +18 -18
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +2 -2
- package/comment/index.js +31 -31
- package/config-provider/ConfigProvider.js +5 -3
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +4 -3
- package/copy/index.js +28 -28
- package/date-picker/Picker.js +276 -276
- package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
- package/date-picker/index.js +26 -27
- package/descriptions/index.js +33 -33
- package/divider/index.js +12 -12
- package/draggable/index.js +23 -23
- package/drawer/Drawer.js +81 -81
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +56 -56
- package/empty/index.js +1 -1
- package/form/Form.js +76 -76
- package/form/FormItem.js +64 -64
- package/form/context.js +1 -1
- package/grid/Col.js +53 -53
- package/grid/Row.js +34 -34
- package/grid/grid-item.js +29 -29
- package/grid/grid.js +50 -50
- package/icon/index.js +20 -19
- package/icon-hover/index.js +1 -1
- package/image/Image.js +86 -86
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +22 -22
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +498 -493
- package/input/Button.js +11 -0
- package/input/Group.js +8 -8
- package/input/Input.js +488 -434
- 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/index.js +9 -8
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +40 -40
- package/layout/Content.js +7 -7
- package/layout/Footer.js +9 -9
- package/layout/Header.js +7 -7
- package/layout/Sider.js +55 -55
- package/layout/index.js +32 -32
- package/link/index.js +35 -35
- package/list/Item.js +29 -29
- package/list/Meta.js +12 -12
- package/list/index.js +2 -2
- package/mentions/index.js +2 -2
- 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 +5 -5
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +12 -12
- package/overflow-ellipsis/index.js +24 -24
- package/package.json +1 -1
- package/page-header/index.js +38 -38
- package/pagination/PageItem.js +16 -16
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +2 -2
- package/pagination/Pagination.js +2 -2
- package/pagination/index.js +1 -1
- package/picker/Input.js +69 -69
- package/picker/InputRange.js +111 -111
- package/popconfirm/index.js +61 -61
- package/popover/index.js +35 -35
- package/progress/index.js +22 -22
- 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 +49 -49
- package/resize-box/ResizeTrigger.js +34 -34
- package/resize-box/Split.js +56 -56
- package/resize-box/SplitGroup.js +55 -55
- package/resize-box/index.js +51 -51
- package/result/index.js +41 -41
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select/index.js +2 -2
- package/select/util.js +1 -1
- package/select-view/Core.js +125 -125
- package/skeleton/index.js +20 -20
- package/slider/Button.js +57 -57
- package/slider/index.js +116 -116
- package/space/index.js +46 -44
- package/speech-synthesis/index.js +1 -1
- package/spin/DotLoading.js +10 -10
- package/spin/index.js +44 -44
- package/statistic/Countdown.js +34 -34
- package/statistic/index.js +67 -67
- package/steps/index.js +55 -55
- package/style.css +1 -1
- package/switch/index.js +54 -54
- package/table/Table.js +3 -3
- package/table/index.js +1 -1
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +12 -12
- package/tabs/index.js +2 -2
- package/tag/index.js +45 -45
- package/time-picker/Picker.js +76 -76
- package/time-picker/TimePicker.js +136 -136
- package/time-picker/index.js +8 -8
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +47 -47
- package/timeline/Timeline.js +41 -41
- package/tooltip/index.js +29 -29
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +2 -2
- package/tree/Animation.js +2 -2
- package/tree/Node.js +2 -2
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +2 -2
- package/tree-select/index.js +2 -2
- package/trigger/index.js +60 -60
- package/types/config-provider/ConfigProvider.d.ts +2 -2
- package/types/config-provider/context.d.ts +1 -1
- package/types/date-picker/index.d.ts +8 -9
- package/types/date-picker/interface.d.ts +9 -9
- package/types/index.d.ts +2 -2
- package/types/input/Button.d.ts +5 -0
- package/types/input/Input.d.ts +4 -1
- package/types/input/interface.d.ts +7 -0
- package/types/picker/Input.d.ts +2 -2
- package/types/space/index.d.ts +2 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/names.d.ts +1 -1
- package/types/utils/setTheme.d.ts +2 -0
- package/typography/Base.js +53 -53
- package/typography/Ellipsis.js +10 -8
- package/typography/Operations.js +28 -28
- package/typography/Paragraph.js +8 -8
- package/typography/Typography.js +7 -7
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +47 -47
- package/upload/Upload.js +184 -184
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/constant.js +1 -1
- package/utils/contextHolder.js +3 -3
- package/utils/dom.js +1 -1
- package/utils/index.js +116 -114
- package/utils/names.js +1 -1
- package/utils/setDarkTheme.js +23 -22
- package/utils/setPrimaryColor.js +22 -16
- package/utils/setTheme.js +9 -0
- package/utils/tween.js +1 -1
- package/verification-code/VerificationCode.js +49 -49
- package/version/index.js +1 -1
- package/watermark/Watermark.js +24 -24
- package/chunk/CQvM33Vg.js +0 -724
- package/chunk/D0ZWT7db.js +0 -5
- package/chunk/yhU2zeeu.js +0 -1461
- /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
package/link/index.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { a as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as y, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import N from "@unicom-cloud/icons/IconUiLink";
|
|
3
|
+
import { forwardRef as C, useContext as L } from "react";
|
|
4
|
+
import { a as w } from "../chunk/C9oo3EJI.js";
|
|
5
|
+
import { u as K } from "../chunk/BYdIoY50.js";
|
|
6
|
+
import { u as g } from "../chunk/BFTV6myl.js";
|
|
7
|
+
import D from "@unicom-cloud/utils/class-name";
|
|
8
|
+
const E = {
|
|
9
9
|
hoverable: !0
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
const { getPrefixCls:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
function P(d, f) {
|
|
12
|
+
const { getPrefixCls: n, componentConfig: r, rtl: p } = L(w), o = g(
|
|
13
|
+
d,
|
|
14
|
+
E,
|
|
15
|
+
r == null ? void 0 : r.Link
|
|
16
16
|
), {
|
|
17
17
|
className: u,
|
|
18
18
|
style: h,
|
|
19
19
|
children: k,
|
|
20
|
-
icon:
|
|
21
|
-
status:
|
|
22
|
-
disabled:
|
|
23
|
-
hoverable:
|
|
24
|
-
|
|
25
|
-
} =
|
|
26
|
-
var
|
|
27
|
-
|
|
20
|
+
icon: s,
|
|
21
|
+
status: i,
|
|
22
|
+
disabled: t,
|
|
23
|
+
hoverable: $,
|
|
24
|
+
...b
|
|
25
|
+
} = o, v = K({ onKeyDown: o.onKeyDown }), e = n == null ? void 0 : n("link"), x = "href" in o ? "a" : "span", l = (a) => {
|
|
26
|
+
var c;
|
|
27
|
+
t ? (a.preventDefault(), a.stopPropagation()) : (c = o.onClick) == null || c.call(o, a);
|
|
28
28
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
|
|
29
|
+
return /* @__PURE__ */ y(
|
|
30
|
+
x,
|
|
31
31
|
{
|
|
32
|
-
className:
|
|
32
|
+
className: D(
|
|
33
33
|
e,
|
|
34
34
|
{
|
|
35
|
-
[`${e}-disabled`]:
|
|
36
|
-
[`${e}-is-${
|
|
37
|
-
[`${e}-with-icon`]:
|
|
38
|
-
[`${e}-hoverless`]:
|
|
35
|
+
[`${e}-disabled`]: t,
|
|
36
|
+
[`${e}-is-${i}`]: i,
|
|
37
|
+
[`${e}-with-icon`]: s,
|
|
38
|
+
[`${e}-hoverless`]: !$,
|
|
39
39
|
[`${e}-rtl`]: p
|
|
40
40
|
},
|
|
41
41
|
u
|
|
42
42
|
),
|
|
43
43
|
ref: f,
|
|
44
|
-
tabIndex:
|
|
45
|
-
|
|
44
|
+
tabIndex: t ? -1 : void 0,
|
|
45
|
+
...b,
|
|
46
46
|
style: h,
|
|
47
|
-
onClick:
|
|
48
|
-
...
|
|
49
|
-
onPressEnter:
|
|
47
|
+
onClick: l,
|
|
48
|
+
...v({
|
|
49
|
+
onPressEnter: l
|
|
50
50
|
}),
|
|
51
51
|
children: [
|
|
52
|
-
|
|
52
|
+
s ? /* @__PURE__ */ m("span", { className: `${e}-icon`, children: s === !0 ? /* @__PURE__ */ m(N, {}) : s }) : null,
|
|
53
53
|
k
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
|
-
const j =
|
|
58
|
+
const j = C(P);
|
|
59
59
|
j.displayName = "Link";
|
|
60
60
|
export {
|
|
61
61
|
j as default
|
package/list/Item.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { a as M } from "../chunk/
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
1
|
+
import { jsx as n, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import d, { useContext as L } from "react";
|
|
3
|
+
import { a as M } from "../chunk/C9oo3EJI.js";
|
|
4
|
+
import { u as R } from "../chunk/BFTV6myl.js";
|
|
5
|
+
import j from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import f from "./Meta.js";
|
|
7
|
-
const
|
|
7
|
+
const w = {
|
|
8
8
|
actionLayout: "horizontal"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
const { getPrefixCls:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
), { children:
|
|
16
|
-
|
|
17
|
-
t && t.type && t.type === f ?
|
|
10
|
+
function z(h, C) {
|
|
11
|
+
const { getPrefixCls: s, componentConfig: i } = L(M), N = R(
|
|
12
|
+
h,
|
|
13
|
+
w,
|
|
14
|
+
i && i["List.Item"]
|
|
15
|
+
), { children: x, className: $, actions: e, extra: c, actionLayout: r, ...v } = N, o = `${s == null ? void 0 : s("list")}-item`, l = [], a = [];
|
|
16
|
+
d.Children.forEach(x, (t) => {
|
|
17
|
+
t && t.type && t.type === f ? l.push(t) : a.push(t);
|
|
18
18
|
});
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
const y = a.length ? /* @__PURE__ */ n("div", { className: `${o}-content`, children: a }) : null, I = c ? /* @__PURE__ */ n("div", { className: `${o}-extra-content`, children: c }) : null, m = e && e.length ? /* @__PURE__ */ n("div", { className: `${o}-action`, children: e.map((t, g) => /* @__PURE__ */ n("li", { children: t }, `${o}-action-${g}`)) }) : null;
|
|
20
|
+
return /* @__PURE__ */ p(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
23
|
role: "listitem",
|
|
24
|
-
ref:
|
|
25
|
-
className:
|
|
26
|
-
...
|
|
24
|
+
ref: C,
|
|
25
|
+
className: j(o, $),
|
|
26
|
+
...v,
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
r === "vertical" ?
|
|
28
|
+
/* @__PURE__ */ p("div", { className: `${o}-main`, children: [
|
|
29
|
+
l,
|
|
30
|
+
y,
|
|
31
|
+
r === "vertical" ? m : null
|
|
32
32
|
] }),
|
|
33
|
-
r === "horizontal" ?
|
|
34
|
-
|
|
33
|
+
r === "horizontal" ? m : null,
|
|
34
|
+
I
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const b = d.forwardRef(z), u = b;
|
|
40
|
+
u.displayName = "ListItem";
|
|
41
|
+
u.Meta = f;
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
u as default
|
|
44
44
|
};
|
package/list/Meta.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { a as
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
const { getPrefixCls:
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
d && /* @__PURE__ */
|
|
9
|
-
|
|
10
|
-
s && /* @__PURE__ */
|
|
11
|
-
e && /* @__PURE__ */
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import f, { useContext as N } from "react";
|
|
3
|
+
import { a as h } from "../chunk/C9oo3EJI.js";
|
|
4
|
+
import v from "@unicom-cloud/utils/class-name";
|
|
5
|
+
function C(c, r) {
|
|
6
|
+
const { getPrefixCls: a } = N(h), { className: m, avatar: i, title: s, description: e, ...l } = c, t = `${a == null ? void 0 : a("list")}-item-meta`, d = !!i, p = !!(s || e);
|
|
7
|
+
return /* @__PURE__ */ n("div", { ref: r, ...l, className: v(t, m), children: [
|
|
8
|
+
d && /* @__PURE__ */ o("div", { className: `${t}-avatar`, children: i }),
|
|
9
|
+
p && /* @__PURE__ */ n("div", { className: `${t}-content`, children: [
|
|
10
|
+
s && /* @__PURE__ */ o("div", { className: `${t}-title`, children: s }),
|
|
11
|
+
e && /* @__PURE__ */ o("div", { className: `${t}-description`, children: e })
|
|
12
12
|
] })
|
|
13
13
|
] });
|
|
14
14
|
}
|
|
15
|
-
const x =
|
|
15
|
+
const x = f.forwardRef(C);
|
|
16
16
|
x.displayName = "ListItemMeta";
|
|
17
17
|
export {
|
|
18
18
|
x as default
|
package/list/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "lodash/throttle";
|
|
4
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/C9oo3EJI.js";
|
|
5
5
|
import "../grid/Col.js";
|
|
6
6
|
import "../grid/Row.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
|
-
import { L as I } from "../chunk/
|
|
8
|
+
import { L as I } from "../chunk/BmulTYLW.js";
|
|
9
9
|
import "../spin/index.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../chunk/BKKEev13.js";
|
package/mentions/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/C9oo3EJI.js";
|
|
4
4
|
import "../chunk/BFTV6myl.js";
|
|
5
5
|
import "../chunk/CXPOj2uy.js";
|
|
6
6
|
import "../input/Input.js";
|
|
7
|
-
import { M as s } from "../chunk/
|
|
7
|
+
import { M as s } from "../chunk/BmulTYLW.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
10
10
|
import "./util.js";
|
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/C9oo3EJI.js";
|
|
7
7
|
import "../chunk/CQ_WOOmf.js";
|
|
8
8
|
import "../chunk/B4YRLi8r.js";
|
|
9
9
|
import "../chunk/BYdIoY50.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/CVSWh4ZZ.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/CVSWh4ZZ.js";
|
|
2
|
+
import { S as r, S as a } from "../chunk/CVSWh4ZZ.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/C9oo3EJI.js";
|
|
8
8
|
import "../notification/withNotification.js";
|
|
9
9
|
import "../chunk/NPajzdOv.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
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/C9oo3EJI.js";
|
|
8
|
+
import { c as l, n as s } from "../chunk/DlHiTTJO.js";
|
|
9
9
|
import "./config.js";
|
|
10
10
|
export {
|
|
11
11
|
l as default,
|
package/modal/Modal.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import "lodash/isFunction";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../button/index.js";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/C9oo3EJI.js";
|
|
7
7
|
import "../chunk/oopARUrq.js";
|
|
8
8
|
import "../chunk/BFTV6myl.js";
|
|
9
9
|
import "../chunk/CXPOj2uy.js";
|
|
@@ -15,7 +15,7 @@ import "../utils/dom.js";
|
|
|
15
15
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
16
16
|
import "../chunk/BKKEev13.js";
|
|
17
17
|
import "../chunk/BZ3igxQN.js";
|
|
18
|
-
import { E as k } from "../chunk/
|
|
18
|
+
import { E as k } from "../chunk/DlHiTTJO.js";
|
|
19
19
|
import "./config.js";
|
|
20
20
|
export {
|
|
21
21
|
k as default
|
package/modal/index.js
CHANGED
package/notice/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
|
7
7
|
import "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
8
8
|
import "@unicom-cloud/icons/IconUiLoading";
|
|
9
9
|
import "react";
|
|
10
|
-
import {
|
|
10
|
+
import { f as w } from "../chunk/C9oo3EJI.js";
|
|
11
11
|
import "lodash/isEqualWith";
|
|
12
12
|
import "../chunk/ClM74To2.js";
|
|
13
13
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
package/notification/index.js
CHANGED
|
@@ -5,13 +5,13 @@ import "lodash/isUndefined";
|
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "react-dom/client";
|
|
8
|
-
import { N as
|
|
8
|
+
import { N as d, g, n as u, d as N } from "../chunk/C9oo3EJI.js";
|
|
9
9
|
import "../chunk/NPajzdOv.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "./withNotification.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
d as default,
|
|
14
|
+
g as getPosition,
|
|
15
|
+
u as notificationTypes,
|
|
16
|
+
N as useNotification
|
|
17
17
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import u from "lodash/isFunction";
|
|
3
|
-
import { useContext as a, useRef as
|
|
4
|
-
import { a as
|
|
5
|
-
import
|
|
6
|
-
import { r as
|
|
3
|
+
import { useContext as a, useRef as d, useEffect as f } from "react";
|
|
4
|
+
import { a as l } from "../chunk/C9oo3EJI.js";
|
|
5
|
+
import h from "@unicom-cloud/utils/class-name";
|
|
6
|
+
import { r as z } from "../chunk/CIRG541s.js";
|
|
7
7
|
function w(e) {
|
|
8
|
-
const { getPrefixCls:
|
|
9
|
-
|
|
8
|
+
const { getPrefixCls: t } = a(l), o = t == null ? void 0 : t("overflow-item"), r = d();
|
|
9
|
+
f(() => {
|
|
10
10
|
if (!u(e.onResize)) return;
|
|
11
|
-
const m =
|
|
12
|
-
var
|
|
13
|
-
e.onResize((
|
|
11
|
+
const m = z([r.current], (n) => {
|
|
12
|
+
var i;
|
|
13
|
+
e.onResize((i = n == null ? void 0 : n[0]) == null ? void 0 : i.target);
|
|
14
14
|
});
|
|
15
15
|
return () => {
|
|
16
16
|
m();
|
|
17
17
|
};
|
|
18
|
-
}, [r.current, e.onResize]),
|
|
18
|
+
}, [r.current, e.onResize]), f(() => (e.onResize(r.current), () => {
|
|
19
19
|
e.unregister(r.current);
|
|
20
20
|
}), []);
|
|
21
21
|
const c = e.hidden;
|
|
@@ -23,8 +23,8 @@ function w(e) {
|
|
|
23
23
|
"div",
|
|
24
24
|
{
|
|
25
25
|
ref: r,
|
|
26
|
-
className:
|
|
27
|
-
[`${
|
|
26
|
+
className: h(o, e.className, {
|
|
27
|
+
[`${o}-hidden`]: c
|
|
28
28
|
}),
|
|
29
29
|
children: e.children
|
|
30
30
|
}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useContext as j, useState as
|
|
3
|
-
import { a as z } from "../chunk/
|
|
1
|
+
import { jsxs as g, jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as j, useState as u, useLayoutEffect as k, useRef as b, useEffect as E } from "react";
|
|
3
|
+
import { a as z } from "../chunk/C9oo3EJI.js";
|
|
4
4
|
import I from "@unicom-cloud/utils/class-name";
|
|
5
5
|
import { r as M } from "../chunk/CIRG541s.js";
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
const { getPrefixCls:
|
|
6
|
+
import O from "./OverflowItem.js";
|
|
7
|
+
function A(c) {
|
|
8
|
+
const { getPrefixCls: i } = j(z), a = i == null ? void 0 : i("overflow"), { items: d, suffixItems: y } = c, N = c.ellipsisNode || (({ ellipsisCount: e }) => `+${e}`), [m, W] = u(), [h, _] = u(), [l, w] = u({}), [x, p] = u({}), v = d.length - h, $ = v > 0 ? N({ ellipsisCount: v }) : null;
|
|
9
9
|
k(() => {
|
|
10
10
|
const e = Object.values(l).length;
|
|
11
11
|
let r = Object.values(x).reduce((t, o) => t + ((o == null ? void 0 : o.width) || 0), 0), s = e;
|
|
12
12
|
Object.keys(l).some((t, o) => {
|
|
13
13
|
const n = l[t];
|
|
14
|
-
if (n && r + n.width >
|
|
14
|
+
if (n && r + n.width > m)
|
|
15
15
|
return s = o, !0;
|
|
16
16
|
r += (n == null ? void 0 : n.width) || 0;
|
|
17
|
-
}),
|
|
18
|
-
}, [l,
|
|
19
|
-
const
|
|
17
|
+
}), _(Math.max(s, 0));
|
|
18
|
+
}, [l, m, x]);
|
|
19
|
+
const f = b();
|
|
20
20
|
return E(() => {
|
|
21
|
-
const e = M([
|
|
21
|
+
const e = M([f.current], (r) => {
|
|
22
22
|
var s, t;
|
|
23
|
-
|
|
23
|
+
W(((t = (s = r == null ? void 0 : r[0]) == null ? void 0 : s.target) == null ? void 0 : t.clientWidth) || 0);
|
|
24
24
|
});
|
|
25
25
|
return () => {
|
|
26
26
|
e();
|
|
27
27
|
};
|
|
28
|
-
}, [
|
|
29
|
-
|
|
28
|
+
}, [f.current]), /* @__PURE__ */ g("div", { ref: f, className: I(a, c.className), children: [
|
|
29
|
+
d.map((e, r) => {
|
|
30
30
|
const s = `${(e == null ? void 0 : e.key) || r}_overflow_item_${r}`;
|
|
31
31
|
return /* @__PURE__ */ C(
|
|
32
|
-
|
|
32
|
+
O,
|
|
33
33
|
{
|
|
34
34
|
onResize: (t) => {
|
|
35
|
-
|
|
35
|
+
w((o) => (o[s] = { node: t, width: t.clientWidth }, o));
|
|
36
36
|
},
|
|
37
37
|
unregister: () => {
|
|
38
|
-
|
|
38
|
+
w((t) => (delete t[s], t));
|
|
39
39
|
},
|
|
40
|
-
hidden:
|
|
40
|
+
hidden: h < r + 1,
|
|
41
41
|
children: e
|
|
42
42
|
},
|
|
43
43
|
s
|
|
44
44
|
);
|
|
45
45
|
}),
|
|
46
|
-
[
|
|
46
|
+
[$, ...y].map((e, r) => {
|
|
47
47
|
if (!e)
|
|
48
48
|
return null;
|
|
49
49
|
const s = `${(e == null ? void 0 : e.key) || r}_overflow_suffix_item`;
|
|
50
50
|
return /* @__PURE__ */ C(
|
|
51
|
-
|
|
51
|
+
O,
|
|
52
52
|
{
|
|
53
|
-
className: `${
|
|
53
|
+
className: `${a}-suffix-item`,
|
|
54
54
|
onResize: (t) => {
|
|
55
|
-
|
|
55
|
+
p((o) => ({
|
|
56
56
|
...o,
|
|
57
57
|
[`${s}`]: { node: t, width: t.clientWidth }
|
|
58
58
|
}));
|
|
59
59
|
},
|
|
60
60
|
unregister: () => {
|
|
61
|
-
|
|
61
|
+
p((t) => (delete t[s], {
|
|
62
62
|
...t
|
|
63
63
|
}));
|
|
64
64
|
},
|
|
@@ -70,5 +70,5 @@ function q(u) {
|
|
|
70
70
|
] });
|
|
71
71
|
}
|
|
72
72
|
export {
|
|
73
|
-
|
|
73
|
+
A as default
|
|
74
74
|
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@unicom-cloud/ui","version":"0.8.
|
|
1
|
+
{"name":"@unicom-cloud/ui","version":"0.8.83","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"type":"module","types":"types/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
|