@unicom-cloud/ui 0.8.75 → 0.8.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Affix.js +1 -1
- package/Alert.js +1 -1
- package/AutoComplete.js +3 -5
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +6 -2
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -4
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -3
- package/Copy.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +5 -6
- package/Mentions.js +3 -4
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +5 -4
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +5 -6
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +4 -3
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +15 -16
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +2 -2
- package/Transfer.js +3 -4
- package/Tree.js +2 -3
- package/TreeSelect.js +3 -3
- package/Trigger.js +1 -1
- package/Typography.js +3 -3
- package/affix/index.js +86 -82
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/auto-complete/index.js +13 -147
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +12 -318
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +4 -4
- package/cascader/index.js +1 -1
- package/cascader/util.js +8 -8
- package/checkbox/Checkbox.js +7 -4
- package/checkbox/Group.js +5 -5
- package/checkbox/GroupBlock.js +8 -0
- package/checkbox/index.js +7 -2
- package/chunk/{BbqvFW5R.js → 9TSjT7x_.js} +112 -112
- package/chunk/ATwvJ8j2.js +6 -0
- package/chunk/{Dv6USvVF.js → BC5fEyWK.js} +2 -1
- package/chunk/{WVoGhvMI.js → BPQXH_5i.js} +32 -31
- package/chunk/{BPD5iNdA.js → CB4jGw4K.js} +22 -18
- package/chunk/{B8hkFIar.js → CBgu99gQ.js} +1 -1
- package/chunk/CBzE-PUr.js +23 -0
- package/chunk/CNcLypMY.js +723 -0
- package/chunk/{CPlPBkN7.js → C_4I3haT.js} +1 -1
- package/chunk/{0mWCmQHr.js → CjqvxJml.js} +2 -2
- package/chunk/Cwm8LL5p.js +7818 -0
- package/chunk/D0ZWT7db.js +5 -0
- package/chunk/{CWlklVfi.js → tpmioyz1.js} +1 -1
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +2 -2
- package/color-picker/InputRgb.js +2 -2
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +15 -266
- package/color-picker/colors.js +4 -4
- package/color-picker/index.js +13 -268
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +4 -6
- package/config-provider/context.js +3 -2
- package/config-provider/index.js +4 -5
- package/copy/index.js +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/PickerRange.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +30 -21
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/form/Form.js +10 -10
- package/form/FormItem.js +1 -1
- package/form/context.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +1 -1
- package/grid/grid-item.js +1 -1
- package/grid/grid.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +453 -463
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +17 -267
- package/mentions/index.js +11 -144
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +5 -45
- package/pagination/Pagination.js +11 -243
- package/pagination/index.js +2 -2
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/Group.js +5 -5
- package/radio/GroupBlock.js +9 -0
- package/radio/Radio.js +6 -5
- package/radio/index.js +4 -3
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/select/Option.js +6 -93
- package/select/Select.js +23 -546
- package/select/index.js +3 -3
- package/select/util.js +18 -139
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +4 -3
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/statistic/Countdown.js +1 -1
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style/variables.less +0 -484
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +2 -3
- package/table/index.js +15 -109
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +2 -2
- package/transfer/Item.js +9 -104
- package/transfer/List.js +13 -184
- package/transfer/index.js +13 -180
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -4
- package/tree/NodeList.js +6 -80
- package/tree/Tree.js +17 -578
- package/tree/index.js +2 -3
- package/tree-select/List.js +6 -122
- package/tree-select/Select.js +22 -392
- package/tree-select/index.js +3 -3
- package/trigger/index.js +1 -1
- package/types/checkbox/Checkbox.d.ts +5 -2
- package/types/checkbox/GroupBlock.d.ts +7 -0
- package/types/checkbox/index.d.ts +2 -1
- package/types/config-provider/ConfigProvider.d.ts +0 -27
- package/types/config-provider/interface.d.ts +3 -1
- package/types/index.d.ts +2 -2
- package/types/menu/context.d.ts +1 -1
- package/types/radio/GroupBlock.d.ts +7 -0
- package/types/radio/Radio.d.ts +5 -3
- package/types/utils/constant.d.ts +2 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/setDarkTheme.d.ts +2 -3
- package/types/utils/setPrimaryColor.d.ts +2 -0
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +9 -22
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +10 -276
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +43 -44
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/color.js +1 -1
- package/utils/constant.js +7 -5
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +199 -195
- package/utils/setDarkTheme.js +34 -5
- package/utils/setPrimaryColor.js +26 -0
- package/utils/tinycolor.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BViFMHr-.js +0 -1820
- package/chunk/BsWphzcT.js +0 -20
- package/chunk/BxZ39GzB.js +0 -209
- package/chunk/C9XYyypq.js +0 -713
- package/chunk/CIkPwQlq.js +0 -6
- package/chunk/DFcz9ZPP.js +0 -1020
- package/chunk/DeCsZrXb.js +0 -310
- package/chunk/DskaI8QL.js +0 -25
- package/chunk/EL5Jmjgr.js +0 -170
package/Table.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defaultComponent as
|
|
3
|
-
import { TableSummary as n, TableSummaryCell as p, TableSummaryRow as S, default as C, useTableThResizable as y } from "./table/index.js";
|
|
1
|
+
import { h as s, i as l, j as o, T as u, u as m, k as t, l as b, m as T, n, o as r, p as f, q as p } from "./chunk/Cwm8LL5p.js";
|
|
2
|
+
import { defaultComponent as C } from "./table/constant.js";
|
|
4
3
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
s as TableSummary,
|
|
5
|
+
l as TableSummaryCell,
|
|
6
|
+
o as TableSummaryRow,
|
|
7
|
+
u as default,
|
|
8
|
+
C as tableDefaultComponent,
|
|
9
|
+
m as useTableColumns,
|
|
10
|
+
t as useTableComponent,
|
|
11
|
+
b as useTableExpand,
|
|
12
|
+
T as useTableRowSelection,
|
|
13
|
+
n as useTableSorter,
|
|
14
|
+
r as useTableStickyClassNames,
|
|
15
|
+
f as useTableStickyOffsets,
|
|
16
|
+
p as useTableThResizable
|
|
18
17
|
};
|
package/Tabs.js
CHANGED
package/Tag.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import "@unicom-cloud/icons/IconUiLoading";
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
|
-
import "./chunk/
|
|
6
|
+
import "./chunk/CNcLypMY.js";
|
|
7
7
|
import "./chunk/XTEsYGuF.js";
|
|
8
8
|
import "./chunk/BFTV6myl.js";
|
|
9
9
|
import "./popconfirm/index.js";
|
package/Tooltip.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "./chunk/
|
|
2
|
+
import "./chunk/9TSjT7x_.js";
|
|
3
3
|
import "lodash/isFunction";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./chunk/
|
|
5
|
+
import "./chunk/CNcLypMY.js";
|
|
6
6
|
import "./chunk/BFTV6myl.js";
|
|
7
7
|
import "./trigger/index.js";
|
|
8
8
|
import "./chunk/CUFsOxJ2.js";
|
package/Transfer.js
CHANGED
|
@@ -4,13 +4,12 @@ import "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "./button/index.js";
|
|
7
|
-
import "./chunk/
|
|
7
|
+
import "./chunk/CNcLypMY.js";
|
|
8
8
|
import "./chunk/BFTV6myl.js";
|
|
9
9
|
import "./chunk/DeV0v__J.js";
|
|
10
10
|
import "./chunk/CUFsOxJ2.js";
|
|
11
11
|
import "./chunk/ClqoGc3r.js";
|
|
12
|
-
import "./
|
|
13
|
-
import { default as c } from "./transfer/index.js";
|
|
12
|
+
import { r as x } from "./chunk/Cwm8LL5p.js";
|
|
14
13
|
export {
|
|
15
|
-
|
|
14
|
+
x as default
|
|
16
15
|
};
|
package/Tree.js
CHANGED
package/TreeSelect.js
CHANGED
package/Trigger.js
CHANGED
package/Typography.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as o, w as t } from "./chunk/Cwm8LL5p.js";
|
|
2
2
|
import { default as f } from "./typography/Paragraph.js";
|
|
3
3
|
import { default as l } from "./typography/Text.js";
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as T } from "./typography/Title.js";
|
|
5
5
|
import "./typography/Typography.js";
|
|
6
6
|
export {
|
|
7
7
|
o as TypographyEllipsis,
|
|
8
8
|
f as TypographyParagraph,
|
|
9
9
|
l as TypographyText,
|
|
10
|
-
|
|
10
|
+
T as TypographyTitle,
|
|
11
11
|
t as default
|
|
12
12
|
};
|
package/affix/index.js
CHANGED
|
@@ -1,54 +1,57 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { a as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { p as
|
|
10
|
-
import { on as
|
|
11
|
-
import { l as
|
|
12
|
-
import { r as
|
|
13
|
-
import
|
|
14
|
-
function
|
|
15
|
-
return
|
|
1
|
+
import { jsxs as P, jsx as E } from "react/jsx-runtime";
|
|
2
|
+
import h from "lodash/isFunction";
|
|
3
|
+
import $ from "lodash/isPlainObject";
|
|
4
|
+
import q from "lodash/isUndefined";
|
|
5
|
+
import { forwardRef as G, useContext as J, useState as K, useRef as C, useMemo as Q, useCallback as V, useEffect as m, useImperativeHandle as X } from "react";
|
|
6
|
+
import { a as Y } from "../chunk/CNcLypMY.js";
|
|
7
|
+
import { u as Z } from "../chunk/B2yFlXke.js";
|
|
8
|
+
import { u as tt } from "../chunk/BFTV6myl.js";
|
|
9
|
+
import { p as M } from "../chunk/CUFsOxJ2.js";
|
|
10
|
+
import { getScrollElements as et, on as A, off as p } from "../utils/dom.js";
|
|
11
|
+
import { l as rt } from "../chunk/DAAff-FT.js";
|
|
12
|
+
import { r as st } from "../chunk/CIRG541s.js";
|
|
13
|
+
import ot from "../utils/throttleByRaf.js";
|
|
14
|
+
function nt(c) {
|
|
15
|
+
return rt(c) ? {
|
|
16
16
|
top: 0,
|
|
17
17
|
bottom: window.innerHeight
|
|
18
18
|
} : c.getBoundingClientRect();
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
offsetTop: 0
|
|
22
|
-
target: () => window
|
|
20
|
+
const it = {
|
|
21
|
+
offsetTop: 0
|
|
23
22
|
};
|
|
24
|
-
function
|
|
25
|
-
const { getPrefixCls:
|
|
23
|
+
function ft(c, v) {
|
|
24
|
+
const { getPrefixCls: O, componentConfig: d, rtl: U } = J(Y), _ = tt(
|
|
26
25
|
c,
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
it,
|
|
27
|
+
d == null ? void 0 : d.Affix
|
|
29
28
|
), {
|
|
30
|
-
className:
|
|
31
|
-
style:
|
|
32
|
-
affixClassName:
|
|
33
|
-
affixStyle:
|
|
29
|
+
className: B,
|
|
30
|
+
style: H,
|
|
31
|
+
affixClassName: I,
|
|
32
|
+
affixStyle: b,
|
|
34
33
|
offsetTop: l,
|
|
35
|
-
offsetBottom:
|
|
36
|
-
target:
|
|
37
|
-
targetContainer:
|
|
38
|
-
children:
|
|
39
|
-
onChange:
|
|
40
|
-
...
|
|
41
|
-
} =
|
|
34
|
+
offsetBottom: i,
|
|
35
|
+
target: x,
|
|
36
|
+
targetContainer: a,
|
|
37
|
+
children: j,
|
|
38
|
+
onChange: S,
|
|
39
|
+
...D
|
|
40
|
+
} = _, [g, N] = K({
|
|
42
41
|
status: "MEASURE_DONE",
|
|
43
42
|
isFixed: !1,
|
|
44
43
|
sizeStyles: {},
|
|
45
44
|
fixedStyles: {}
|
|
46
|
-
}), { isFixed:
|
|
47
|
-
{ [
|
|
48
|
-
|
|
49
|
-
),
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
}), { isFixed: y, sizeStyles: W, fixedStyles: k } = g, z = C(y), F = O("affix"), L = M(
|
|
46
|
+
{ [F]: y, [`${F}-rtl`]: U },
|
|
47
|
+
I
|
|
48
|
+
), r = C(null), s = C(null), R = Q(() => {
|
|
49
|
+
var n, f;
|
|
50
|
+
let e = null;
|
|
51
|
+
return h(x) ? e = x() : e = ((f = (n = et(r.current)) == null ? void 0 : n.at) == null ? void 0 : f.call(n, -1)) || window, e;
|
|
52
|
+
}, [r.current, x]), t = V(
|
|
53
|
+
ot(() => {
|
|
54
|
+
N({
|
|
52
55
|
status: "MEASURE_START",
|
|
53
56
|
isFixed: !1,
|
|
54
57
|
fixedStyles: {},
|
|
@@ -57,70 +60,71 @@ function ot(c, T) {
|
|
|
57
60
|
}),
|
|
58
61
|
[]
|
|
59
62
|
);
|
|
60
|
-
return
|
|
61
|
-
const { status: e } =
|
|
62
|
-
if (e !== "MEASURE_START" || !
|
|
63
|
+
return Z(() => {
|
|
64
|
+
const { status: e } = g;
|
|
65
|
+
if (e !== "MEASURE_START" || !r.current || !s.current)
|
|
63
66
|
return;
|
|
64
|
-
const
|
|
65
|
-
let
|
|
66
|
-
|
|
67
|
+
const n = q(i) ? "top" : "bottom", f = r.current.getBoundingClientRect(), u = nt(s.current);
|
|
68
|
+
let o = !1, w = {};
|
|
69
|
+
n === "top" ? (o = f.top - u.top < (l || 0), w = o ? {
|
|
67
70
|
position: "fixed",
|
|
68
|
-
top:
|
|
69
|
-
} : {}) : (
|
|
71
|
+
top: u.top + (l || 0)
|
|
72
|
+
} : {}) : (o = u.bottom - f.bottom < (i || 0), w = o ? {
|
|
70
73
|
position: "fixed",
|
|
71
|
-
bottom: window.innerHeight -
|
|
74
|
+
bottom: window.innerHeight - u.bottom + (i || 0)
|
|
72
75
|
} : {});
|
|
73
|
-
const
|
|
74
|
-
width:
|
|
75
|
-
height:
|
|
76
|
+
const T = o ? {
|
|
77
|
+
width: r.current.offsetWidth,
|
|
78
|
+
height: r.current.offsetHeight
|
|
76
79
|
} : {};
|
|
77
|
-
|
|
80
|
+
N({
|
|
78
81
|
status: "MEASURE_DONE",
|
|
79
|
-
isFixed:
|
|
80
|
-
sizeStyles:
|
|
81
|
-
fixedStyles: { ...
|
|
82
|
-
}),
|
|
83
|
-
}, [
|
|
82
|
+
isFixed: o,
|
|
83
|
+
sizeStyles: T,
|
|
84
|
+
fixedStyles: { ...w, ...T }
|
|
85
|
+
}), o !== z.current && (z.current = o, h(S) && S(o));
|
|
86
|
+
}, [g, i, l, S]), m(() => (t(), () => {
|
|
84
87
|
var e;
|
|
85
88
|
(e = t == null ? void 0 : t.cancel) == null || e.call(t);
|
|
86
|
-
}), [
|
|
87
|
-
if (
|
|
88
|
-
return
|
|
89
|
-
|
|
89
|
+
}), [R, a, i, l, t]), m(() => {
|
|
90
|
+
if (s.current = R, s.current)
|
|
91
|
+
return A(s.current, "scroll", t), A(s.current, "resize", t), () => {
|
|
92
|
+
p(s.current, "scroll", t), p(s.current, "resize", t);
|
|
90
93
|
};
|
|
91
|
-
}, [
|
|
92
|
-
const e =
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
}, [R, t]), m(() => {
|
|
95
|
+
const e = h(a) ? a() : null;
|
|
96
|
+
return s.current !== window && e ? (A(e, "scroll", t), () => {
|
|
97
|
+
p(e, "scroll", t);
|
|
98
|
+
}) : () => {
|
|
99
|
+
p(e, "scroll", t);
|
|
100
|
+
};
|
|
101
|
+
}, [a, t]), X(v, () => ({
|
|
98
102
|
updatePosition: t,
|
|
99
|
-
getRootDOMNode: () =>
|
|
100
|
-
})),
|
|
101
|
-
const e =
|
|
103
|
+
getRootDOMNode: () => r.current
|
|
104
|
+
})), m(() => {
|
|
105
|
+
const e = st([r.current], t);
|
|
102
106
|
return () => {
|
|
103
107
|
e();
|
|
104
108
|
};
|
|
105
|
-
}, [
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */
|
|
109
|
+
}, [r.current]), /* @__PURE__ */ P("div", { className: M(B), style: H, ref: r, ...D, children: [
|
|
110
|
+
y && /* @__PURE__ */ E("div", { style: W }),
|
|
111
|
+
/* @__PURE__ */ E(
|
|
108
112
|
"div",
|
|
109
113
|
{
|
|
110
|
-
className:
|
|
114
|
+
className: L,
|
|
111
115
|
style: {
|
|
112
|
-
...
|
|
113
|
-
|
|
116
|
+
...k,
|
|
117
|
+
...$(b) ? b : {}
|
|
114
118
|
},
|
|
115
|
-
children:
|
|
119
|
+
children: j || /* @__PURE__ */ E("span", {})
|
|
116
120
|
}
|
|
117
121
|
)
|
|
118
122
|
] });
|
|
119
123
|
}
|
|
120
|
-
const
|
|
121
|
-
|
|
124
|
+
const ct = G(
|
|
125
|
+
ft
|
|
122
126
|
);
|
|
123
|
-
|
|
127
|
+
ct.displayName = "Affix";
|
|
124
128
|
export {
|
|
125
|
-
|
|
129
|
+
ct as default
|
|
126
130
|
};
|
package/alert/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import k from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
|
5
5
|
import R from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
6
6
|
import T from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
7
7
|
import { forwardRef as q, useRef as z, useContext as H, useState as M } from "react";
|
|
8
|
-
import { a as O } from "../chunk/
|
|
8
|
+
import { a as O } from "../chunk/CNcLypMY.js";
|
|
9
9
|
import { u as V } from "../chunk/BFTV6myl.js";
|
|
10
10
|
import { p as _ } from "../chunk/CUFsOxJ2.js";
|
|
11
11
|
import { P as B } from "../chunk/BpYX5PN4.js";
|
package/anchor/Anchor.js
CHANGED
|
@@ -6,7 +6,7 @@ import P from "lodash/isNumber";
|
|
|
6
6
|
import gt from "lodash/throttle";
|
|
7
7
|
import { forwardRef as ht, useContext as Ct, useRef as x, useState as xt, useEffect as S, useCallback as $, useImperativeHandle as kt } from "react";
|
|
8
8
|
import yt from "../affix/index.js";
|
|
9
|
-
import { a as Lt } from "../chunk/
|
|
9
|
+
import { a as Lt } from "../chunk/CNcLypMY.js";
|
|
10
10
|
import { u as Rt } from "../chunk/oopARUrq.js";
|
|
11
11
|
import { u as wt } from "../chunk/BFTV6myl.js";
|
|
12
12
|
import { u as St } from "../chunk/Duezix3m.js";
|
package/anchor/Link.js
CHANGED
|
@@ -4,7 +4,7 @@ import g from "lodash/isPlainObject";
|
|
|
4
4
|
import E from "lodash/isString";
|
|
5
5
|
import L from "lodash/isUndefined";
|
|
6
6
|
import O, { forwardRef as b, useContext as f, useRef as v, useImperativeHandle as w, useEffect as I, isValidElement as M } from "react";
|
|
7
|
-
import { a as S } from "../chunk/
|
|
7
|
+
import { a as S } from "../chunk/CNcLypMY.js";
|
|
8
8
|
import { u as $ } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import { p as z } from "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import D from "./context.js";
|
package/auto-complete/index.js
CHANGED
|
@@ -1,149 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { a as he } from "../chunk/ClqoGc3r.js";
|
|
14
|
-
const Ae = `Autocomplete_${Math.random()}`, { Option: D } = d, xe = {
|
|
15
|
-
defaultActiveFirstOption: !0,
|
|
16
|
-
triggerElement: /* @__PURE__ */ c(me, {})
|
|
17
|
-
};
|
|
18
|
-
function Ee(G, $) {
|
|
19
|
-
var k, L;
|
|
20
|
-
const { getPrefixCls: j, componentConfig: g } = ne(ie), l = ue(
|
|
21
|
-
G,
|
|
22
|
-
xe,
|
|
23
|
-
g == null ? void 0 : g.AutoComplete
|
|
24
|
-
), {
|
|
25
|
-
style: H,
|
|
26
|
-
className: K,
|
|
27
|
-
children: C,
|
|
28
|
-
data: s,
|
|
29
|
-
defaultValue: U,
|
|
30
|
-
value: _,
|
|
31
|
-
placeholder: q,
|
|
32
|
-
error: z,
|
|
33
|
-
disabled: J,
|
|
34
|
-
strict: Q,
|
|
35
|
-
allowClear: T,
|
|
36
|
-
loading: W,
|
|
37
|
-
defaultActiveFirstOption: X,
|
|
38
|
-
triggerElement: O,
|
|
39
|
-
getPopupContainer: Y,
|
|
40
|
-
dropdownRender: Z,
|
|
41
|
-
virtualListProps: P,
|
|
42
|
-
onFocus: y,
|
|
43
|
-
onBlur: h,
|
|
44
|
-
onChange: a,
|
|
45
|
-
onSearch: A,
|
|
46
|
-
onSelect: x,
|
|
47
|
-
onPressEnter: N,
|
|
48
|
-
inputProps: t
|
|
49
|
-
} = l, [E, v] = fe("", {
|
|
50
|
-
defaultValue: U,
|
|
51
|
-
value: _
|
|
52
|
-
}), [ee, F] = se(!1), f = B(null), i = B(null), b = j("autocomplete"), te = "filterOption" in l ? l.filterOption : (e, o) => Q ? o.props.value.indexOf(e) > -1 : o.props.value.toLowerCase().indexOf(e.toLowerCase()) > -1, V = p.Children.toArray(C);
|
|
53
|
-
let w = null;
|
|
54
|
-
V.length && (pe(V[0]) || de(V[0])) ? w = C : s && s.length && (w = s.map((e, o) => {
|
|
55
|
-
if (ae(e))
|
|
56
|
-
return e;
|
|
57
|
-
if (typeof e == "string")
|
|
58
|
-
return /* @__PURE__ */ c(D, { value: e, children: e }, o);
|
|
59
|
-
if (typeof e == "object") {
|
|
60
|
-
const { value: r, name: n } = e;
|
|
61
|
-
return /* @__PURE__ */ c(
|
|
62
|
-
D,
|
|
63
|
-
{
|
|
64
|
-
value: r,
|
|
65
|
-
extra: ye(e, ["value", "name"]),
|
|
66
|
-
children: n
|
|
67
|
-
},
|
|
68
|
-
o
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
return null;
|
|
72
|
-
})), ce($, () => f.current);
|
|
73
|
-
const u = typeof O == "function" ? O({ value: E }) : O, oe = p.cloneElement(u, {
|
|
74
|
-
ref: (e) => {
|
|
75
|
-
f.current = e;
|
|
76
|
-
const { ref: o } = u;
|
|
77
|
-
typeof o == "function" && o(e);
|
|
78
|
-
},
|
|
79
|
-
className: ge(
|
|
80
|
-
`${b}`,
|
|
81
|
-
t && t.className,
|
|
82
|
-
K
|
|
83
|
-
),
|
|
84
|
-
style: H,
|
|
85
|
-
value: E,
|
|
86
|
-
placeholder: q,
|
|
87
|
-
error: z,
|
|
88
|
-
status: l.status,
|
|
89
|
-
disabled: J,
|
|
90
|
-
allowClear: T,
|
|
91
|
-
...t,
|
|
92
|
-
...he(l),
|
|
93
|
-
// Empty tag to ensure the consistency of the dom structure of input, such that input won't accidentally lose focus due to structure change on input.
|
|
94
|
-
suffix: W ? /* @__PURE__ */ c(le, {}) : ((k = u == null ? void 0 : u.type) == null ? void 0 : k.displayName) === "Search" ? void 0 : (t == null ? void 0 : t.suffix) || /* @__PURE__ */ c("i", {}),
|
|
95
|
-
onFocus: (e) => {
|
|
96
|
-
var o;
|
|
97
|
-
F(!0), y == null || y(e), (o = t == null ? void 0 : t.onFocus) == null || o.call(t, e);
|
|
98
|
-
},
|
|
99
|
-
onBlur: (e) => {
|
|
100
|
-
var o;
|
|
101
|
-
F(!1), h == null || h(e), (o = t == null ? void 0 : t.onBlur) == null || o.call(t, e);
|
|
102
|
-
},
|
|
103
|
-
onKeyDown: (e) => {
|
|
104
|
-
var r, n, m, R, S;
|
|
105
|
-
const o = e.key;
|
|
106
|
-
if ((n = (r = i.current) == null ? void 0 : r.hotkeyHandler) == null || n.call(r, e), o === Ce.key && N) {
|
|
107
|
-
let M;
|
|
108
|
-
i.current && (M = i.current.getOptionInfoByValue(
|
|
109
|
-
i.current.activeOptionValue
|
|
110
|
-
)), N(e, M);
|
|
111
|
-
}
|
|
112
|
-
o === Oe.key && ((R = (m = f.current) == null ? void 0 : m.blur) == null || R.call(m)), (S = t == null ? void 0 : t.onKeyDown) == null || S.call(t, e);
|
|
113
|
-
},
|
|
114
|
-
onChange: (e, o) => {
|
|
115
|
-
var r;
|
|
116
|
-
v(e), A == null || A(e), a == null || a(e), (r = t == null ? void 0 : t.onChange) == null || r.call(t, e, o);
|
|
117
|
-
}
|
|
118
|
-
}), re = {
|
|
119
|
-
popupVisible: !!(ee && (s != null && s.length || p.Children.count(C))),
|
|
120
|
-
...l.triggerProps,
|
|
121
|
-
// Other trigger types are not supported yet
|
|
122
|
-
trigger: "focus",
|
|
123
|
-
className: [`${b}-popup`].concat((L = l == null ? void 0 : l.triggerProps) == null ? void 0 : L.className)
|
|
124
|
-
};
|
|
125
|
-
return /* @__PURE__ */ c(d, { ref: i, ...{
|
|
126
|
-
triggerElement: oe,
|
|
127
|
-
// Guarantee that onChange can always be triggered
|
|
128
|
-
value: Ae,
|
|
129
|
-
inputValue: E,
|
|
130
|
-
defaultActiveFirstOption: X,
|
|
131
|
-
triggerProps: re,
|
|
132
|
-
getPopupContainer: Y,
|
|
133
|
-
dropdownRender: Z,
|
|
134
|
-
filterOption: te,
|
|
135
|
-
virtualListProps: P,
|
|
136
|
-
notFoundContent: null,
|
|
137
|
-
onChange: (e, o) => {
|
|
138
|
-
var r, n;
|
|
139
|
-
v(e), a == null || a(e, o), e && (x == null || x(e, o)), (n = (r = f.current) == null ? void 0 : r.blur) == null || n.call(r);
|
|
140
|
-
}
|
|
141
|
-
}, children: w });
|
|
142
|
-
}
|
|
143
|
-
const Ve = p.forwardRef(Ee), I = Ve;
|
|
144
|
-
I.displayName = "AutoComplete";
|
|
145
|
-
I.Option = d.Option;
|
|
146
|
-
I.OptGroup = d.OptGroup;
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@unicom-cloud/icons/IconUiLoading";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../chunk/CNcLypMY.js";
|
|
5
|
+
import "../chunk/BFTV6myl.js";
|
|
6
|
+
import "../chunk/DeV0v__J.js";
|
|
7
|
+
import "../input/Input.js";
|
|
8
|
+
import { A as x } from "../chunk/Cwm8LL5p.js";
|
|
9
|
+
import "../chunk/CUFsOxJ2.js";
|
|
10
|
+
import "../chunk/BrOW642m.js";
|
|
11
|
+
import "../chunk/BKKEev13.js";
|
|
12
|
+
import "../chunk/ClqoGc3r.js";
|
|
147
13
|
export {
|
|
148
|
-
|
|
14
|
+
x as default
|
|
149
15
|
};
|
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/CNcLypMY.js";
|
|
5
5
|
import { p as L } from "../chunk/CUFsOxJ2.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/CNcLypMY.js";
|
|
5
5
|
import { u as T } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import k from "../popover/index.js";
|
|
7
7
|
import { p as q } from "../chunk/CUFsOxJ2.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 y, y as C } from "../chunk/BhBEMwvI.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/CNcLypMY.js";
|
|
6
6
|
import { u as $ } from "../chunk/XTEsYGuF.js";
|
|
7
7
|
import { u as q } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { P as D } from "../chunk/BpYX5PN4.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 R } from "react";
|
|
4
|
-
import { a as q } from "../chunk/
|
|
4
|
+
import { a as q } from "../chunk/CNcLypMY.js";
|
|
5
5
|
import { u as G } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { P as _ } from "../chunk/BpYX5PN4.js";
|
|
7
7
|
import { p as a } from "../chunk/CUFsOxJ2.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/CNcLypMY.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/CBgu99gQ.js";
|
|
7
7
|
import { p as v } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import { c as F } from "../chunk/DAAff-FT.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/CNcLypMY.js";
|
|
4
4
|
import { p as u } from "../chunk/CUFsOxJ2.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/CNcLypMY.js";
|
|
5
5
|
import { u as X } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { p as Z } from "../chunk/CUFsOxJ2.js";
|
|
7
7
|
import v from "./Group.js";
|