@unicom-cloud/ui 0.8.77 → 0.8.79
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 +3 -3
- package/AutoComplete.js +5 -5
- package/BackTop.js +5 -5
- package/Badge.js +3 -3
- package/Breadcrumb.js +4 -4
- package/Button.js +2 -2
- package/Calendar.js +4 -4
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -3
- package/Comment.js +2 -2
- package/ConfigProvider.js +1 -1
- package/Copy.js +4 -4
- package/DatePicker.js +1 -1
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Dropdown.js +5 -5
- package/Empty.js +2 -2
- package/Icon.js +9 -5
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/InputNumber.js +3 -3
- package/Layout.js +2 -2
- package/Link.js +3 -3
- package/List.js +4 -4
- package/Mentions.js +5 -5
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +9 -8
- package/Notification.js +3 -3
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +3 -3
- package/Pagination.js +1 -1
- package/Popconfirm.js +3 -3
- package/Popover.js +3 -3
- package/Progress.js +2 -2
- package/Radio.js +1 -1
- package/Rate.js +3 -3
- package/ResizeBox.js +3 -3
- package/Result.js +2 -2
- package/Select.js +1 -1
- package/SelectView.js +5 -6
- package/Skeleton.js +2 -2
- package/Slider.js +4 -4
- package/Space.js +2 -2
- package/SpeechSynthesis.js +18 -20
- package/Spin.js +3 -3
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +7 -8
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +3 -3
- package/Tooltip.js +3 -3
- package/Transfer.js +4 -4
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +9 -10
- package/Typography.js +1 -1
- package/affix/index.js +17 -17
- package/alert/index.js +13 -13
- package/anchor/Anchor.js +40 -40
- package/anchor/Link.js +14 -14
- package/anchor/util.js +2 -2
- package/auto-complete/index.js +5 -5
- package/avatar/Avatar.js +17 -17
- package/avatar/Group.js +13 -13
- package/back-top/index.js +13 -13
- package/badge/Count.js +13 -13
- package/badge/index.js +21 -21
- package/breadcrumb/Item.js +25 -25
- package/breadcrumb/index.js +12 -12
- package/button/Group.js +6 -6
- package/button/index.js +30 -30
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +1 -1
- package/calendar/index.js +4 -4
- package/card/Grid.js +13 -13
- package/card/Meta.js +13 -13
- package/card/index.js +29 -29
- package/carousel/Arrow.js +6 -6
- package/carousel/Indicator.js +27 -27
- package/carousel/index.js +24 -24
- package/cascader/Cascader.js +8 -8
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +4 -4
- package/checkbox/Group.js +4 -4
- package/checkbox/GroupBlock.js +3 -3
- package/checkbox/index.js +2 -2
- package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
- package/chunk/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
- package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
- package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
- package/chunk/BYdIoY50.js +17 -0
- package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
- package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
- package/chunk/BsUZRQDT.js +23 -0
- package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
- package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
- package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
- package/chunk/CXPOj2uy.js +19 -0
- package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
- package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
- package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
- package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
- package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
- package/chunk/DxYoPlum.js +50 -0
- package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
- package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
- package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
- package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
- package/collapse/Collapse.js +4 -4
- package/collapse/Item.js +4 -4
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +22 -22
- 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 +4 -4
- package/color-picker/index.js +3 -3
- package/comment/index.js +18 -18
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +2 -2
- package/copy/index.js +23 -23
- package/date-picker/Picker.js +41 -41
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +28 -28
- package/divider/index.js +15 -15
- package/draggable/Item.js +11 -11
- package/draggable/index.js +15 -15
- package/drawer/Drawer.js +31 -31
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +22 -22
- package/empty/index.js +2 -2
- package/form/Control.js +46 -46
- package/form/Form.js +12 -12
- package/form/FormItem.js +12 -12
- package/form/FormLabel.js +11 -11
- package/form/context.js +7 -6
- package/form/promisify.js +9 -10
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +38 -38
- package/grid/Row.js +15 -15
- package/grid/grid-item.js +17 -17
- package/grid/grid.js +28 -28
- package/hooks/index.js +6 -6
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/useVerificationCode.js +30 -30
- package/icon/index.js +20 -16
- package/icon-hover/index.js +2 -2
- package/image/Image.js +22 -22
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +11 -11
- package/image/ImagePreviewArrow.js +16 -16
- package/image/ImagePreviewGroup.js +2 -2
- package/image/ImagePreviewToolbar.js +7 -7
- package/image/TriggerForToolbar.js +7 -7
- package/image/index.js +1 -1
- package/index.js +547 -580
- package/input/Group.js +10 -10
- package/input/Input.js +213 -214
- package/input/InputElement.js +10 -11
- package/input/Password.js +4 -4
- package/input/Search.js +3 -3
- package/input/Textarea.js +7 -8
- package/input/useComposition.js +6 -6
- package/input-number/index.js +3 -3
- package/input-tag/InputTag.js +110 -111
- package/layout/Content.js +4 -4
- package/layout/Footer.js +6 -6
- package/layout/Header.js +8 -8
- package/layout/Sider.js +29 -29
- package/layout/index.js +16 -16
- package/link/index.js +27 -27
- package/list/Item.js +5 -5
- package/list/Meta.js +11 -11
- package/list/index.js +4 -4
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +5 -5
- package/menu/Item.js +11 -11
- package/menu/ItemGroup.js +8 -8
- package/menu/Menu.js +5 -5
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +3 -3
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +7 -7
- package/modal/index.js +1 -1
- package/notice/index.js +9 -8
- package/notification/index.js +3 -3
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +6 -6
- package/overflow-ellipsis/index.js +27 -27
- package/package.json +1 -1
- package/page-header/index.js +3 -3
- package/pagination/PageItem.js +7 -7
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +3 -3
- package/pagination/Pagination.js +4 -4
- package/pagination/index.js +1 -1
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +77 -77
- package/popconfirm/index.js +11 -11
- package/popover/index.js +21 -21
- package/progress/CircleProgress.js +14 -14
- package/progress/LineProgess.js +14 -14
- package/progress/StepProgress.js +9 -9
- package/progress/index.js +26 -26
- package/radio/Group.js +4 -4
- package/radio/GroupBlock.js +3 -3
- package/radio/Radio.js +4 -4
- package/radio/index.js +2 -2
- package/rate/index.js +16 -16
- package/resize-box/ResizeTrigger.js +27 -28
- package/resize-box/Split.js +21 -21
- package/resize-box/SplitGroup.js +40 -40
- package/resize-box/index.js +23 -23
- package/result/index.js +29 -29
- package/select/Option.js +2 -2
- package/select/Select.js +11 -12
- package/select/index.js +2 -2
- package/select/util.js +5 -5
- package/select-view/Core.js +104 -106
- package/select-view/index.js +22 -23
- package/skeleton/Image.js +14 -14
- package/skeleton/Text.js +16 -16
- package/skeleton/index.js +11 -11
- package/slider/Button.js +4 -4
- package/slider/Dot.js +9 -9
- package/slider/Input.js +20 -20
- package/slider/Tick.js +14 -14
- package/slider/index.js +103 -103
- package/slider/util.js +3 -3
- package/space/index.js +14 -14
- package/speech-synthesis/index.js +26 -28
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +16 -16
- package/statistic/Countdown.js +17 -17
- package/statistic/index.js +32 -32
- package/steps/Step.js +8 -8
- package/steps/index.js +17 -17
- package/style.css +1 -1
- package/switch/index.js +32 -33
- package/table/Table.js +5 -5
- package/table/index.js +1 -1
- package/tabs/Tab.js +4 -4
- package/tabs/TabContent.js +3 -3
- package/tabs/TabPane.js +11 -11
- package/tabs/index.js +2 -2
- package/tabs/util.js +1 -1
- package/tag/index.js +16 -16
- package/time-picker/Picker.js +50 -50
- package/time-picker/TimeColumn.js +8 -8
- package/time-picker/TimePicker.js +32 -32
- package/time-picker/util.js +1 -1
- package/timeline/Item.js +15 -15
- package/timeline/Timeline.js +24 -24
- package/tooltip/index.js +23 -23
- package/transfer/Item.js +4 -4
- package/transfer/List.js +4 -4
- package/transfer/index.js +4 -4
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +4 -4
- package/tree/index.js +1 -1
- package/tree-select/List.js +2 -2
- package/tree-select/Select.js +8 -9
- package/tree-select/index.js +2 -2
- package/trigger/getPopupStyle.js +18 -19
- package/trigger/index.js +32 -33
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/icon/index.d.ts +3 -1
- package/types/index.d.ts +1 -1
- package/types/menu/context.d.ts +1 -1
- package/typography/Base.js +33 -35
- package/typography/EditContent.js +16 -16
- package/typography/Ellipsis.js +24 -26
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +8 -8
- package/typography/Typography.js +7 -7
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +8 -8
- package/upload/Upload.js +64 -65
- package/upload/Uploader.js +12 -12
- package/upload/request.js +13 -12
- package/upload/request_.js +5 -6
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/caseName.js +4 -3
- package/utils/className.js +4 -3
- package/utils/constant.js +3 -3
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +5 -4
- package/utils/fileToURL.js +4 -3
- package/utils/index.js +261 -298
- package/utils/is.js +78 -115
- package/utils/keyboardCode.js +4 -26
- package/utils/math.js +10 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/saveAs.js +4 -3
- package/utils/screenfull.js +4 -3
- package/utils/scrollIntoView.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/tree.js +7 -83
- package/utils/tween.js +1 -1
- package/utils/validate.js +1 -1
- package/verification-code/VerificationCode.js +25 -25
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +8 -8
- package/chunk/ATwvJ8j2.js +0 -6
- package/chunk/BFmckYou.js +0 -25
- package/chunk/Bl7BnD1R.js +0 -119
- package/chunk/Bmvhjhzq.js +0 -24
- package/chunk/BrOW642m.js +0 -130
- package/chunk/C0pRaDCf.js +0 -96
- package/chunk/CBzE-PUr.js +0 -23
- package/chunk/CUFsOxJ2.js +0 -10
- package/chunk/Ce1j9KTi.js +0 -6
- package/chunk/D0Dlbc2g.js +0 -41
- package/chunk/DRTWRsgI.js +0 -34
- package/chunk/DeV0v__J.js +0 -20
- package/chunk/DohlrJ4S.js +0 -50
- package/chunk/XTEsYGuF.js +0 -17
- package/chunk/yl4BU7Sd.js +0 -1068
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as O } from "react/jsx-runtime";
|
|
2
2
|
import F from "@unicom-cloud/icons/IconUiCaretDown";
|
|
3
|
-
import
|
|
3
|
+
import $ from "@unicom-cloud/icons/IconUiCaretLeft";
|
|
4
4
|
import h from "@unicom-cloud/icons/IconUiCaretRight";
|
|
5
5
|
import H from "@unicom-cloud/icons/IconUiCaretUp";
|
|
6
6
|
import L from "@unicom-cloud/icons/IconUiDragDot";
|
|
7
7
|
import M from "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
8
8
|
import g from "lodash/isFunction";
|
|
9
9
|
import { useContext as V, useRef as q, useEffect as A } from "react";
|
|
10
|
-
import { a as B } from "../chunk/
|
|
11
|
-
import
|
|
12
|
-
import "../chunk/
|
|
10
|
+
import { a as B } from "../chunk/CQvM33Vg.js";
|
|
11
|
+
import o from "@unicom-cloud/utils/class-name";
|
|
12
|
+
import "../chunk/ClM74To2.js";
|
|
13
13
|
import { o as G } from "../chunk/BKKEev13.js";
|
|
14
14
|
import { r as J } from "../chunk/CIRG541s.js";
|
|
15
|
-
import "
|
|
16
|
-
|
|
17
|
-
function ar(I) {
|
|
15
|
+
import { isPlainObject as z } from "@unicom-cloud/utils/is";
|
|
16
|
+
function ce(I) {
|
|
18
17
|
const {
|
|
19
18
|
className: D,
|
|
20
19
|
direction: U,
|
|
@@ -26,54 +25,54 @@ function ar(I) {
|
|
|
26
25
|
resizable: l = !0,
|
|
27
26
|
renderChildren: c,
|
|
28
27
|
...T
|
|
29
|
-
} = I, { getPrefixCls: k, rtl: C } = V(B),
|
|
30
|
-
|
|
31
|
-
`${
|
|
32
|
-
{ [`${
|
|
33
|
-
{ [`${
|
|
28
|
+
} = I, { getPrefixCls: k, rtl: C } = V(B), r = k("resizebox-trigger"), t = U === "horizontal", y = C && !t, x = o(
|
|
29
|
+
r,
|
|
30
|
+
`${r}-${t ? "horizontal" : "vertical"}`,
|
|
31
|
+
{ [`${r}-not-resizable`]: !l },
|
|
32
|
+
{ [`${r}-rtl`]: C },
|
|
34
33
|
D
|
|
35
|
-
),
|
|
34
|
+
), m = q(), v = y ? [/* @__PURE__ */ e(h, {}, "prev"), /* @__PURE__ */ e($, {}, "next")] : [/* @__PURE__ */ e($, {}, "prev"), /* @__PURE__ */ e(h, {}, "next")], i = z(n.prev) ? {
|
|
36
35
|
...n.prev,
|
|
37
|
-
icon: n.prev.icon || (t ? /* @__PURE__ */
|
|
36
|
+
icon: n.prev.icon || (t ? /* @__PURE__ */ e(H, {}) : v[0])
|
|
38
37
|
} : {}, s = z(n.next) ? {
|
|
39
38
|
...n.next,
|
|
40
|
-
icon: n.next.icon || (t ? /* @__PURE__ */
|
|
41
|
-
} : {}, j = () => i.icon && !i.collapsed || s.collapsed ? /* @__PURE__ */
|
|
39
|
+
icon: n.next.icon || (t ? /* @__PURE__ */ e(F, {}) : v[1])
|
|
40
|
+
} : {}, j = () => i.icon && !i.collapsed || s.collapsed ? /* @__PURE__ */ e(
|
|
42
41
|
"span",
|
|
43
42
|
{
|
|
44
|
-
className: o(`${
|
|
43
|
+
className: o(`${r}-icon`, o(`${r}-prev`)),
|
|
45
44
|
onClick: i.onClick,
|
|
46
45
|
children: i.icon
|
|
47
46
|
}
|
|
48
|
-
) : /* @__PURE__ */
|
|
47
|
+
) : /* @__PURE__ */ e("span", { className: o(`${r}-icon-empty`) }), w = () => s.icon && !s.collapsed || i.collapsed ? /* @__PURE__ */ e(
|
|
49
48
|
"span",
|
|
50
49
|
{
|
|
51
|
-
className: o(`${
|
|
50
|
+
className: o(`${r}-icon`, o(`${r}-next`)),
|
|
52
51
|
onClick: s.onClick,
|
|
53
52
|
children: s.icon
|
|
54
53
|
}
|
|
55
|
-
) : /* @__PURE__ */
|
|
56
|
-
|
|
54
|
+
) : /* @__PURE__ */ e("span", { className: o(`${r}-icon-empty`) }), P = () => l ? /* @__PURE__ */ e("span", { className: `${r}-icon`, children: b || (t ? /* @__PURE__ */ e(L, {}) : /* @__PURE__ */ e(M, {})) }) : /* @__PURE__ */ e("span", { className: o(`${r}-icon-empty`) }), p = j(), f = P(), d = w(), N = () => /* @__PURE__ */ O("div", { className: `${r}-icon-wrapper`, children: [
|
|
55
|
+
p,
|
|
57
56
|
f,
|
|
58
57
|
d
|
|
59
58
|
] });
|
|
60
59
|
return l ? (A(() => {
|
|
61
60
|
if (!g(a)) return;
|
|
62
|
-
const E = J([
|
|
61
|
+
const E = J([m.current], a);
|
|
63
62
|
return () => {
|
|
64
63
|
E();
|
|
65
64
|
};
|
|
66
|
-
}, [
|
|
65
|
+
}, [m.current, a]), /* @__PURE__ */ e(
|
|
67
66
|
"div",
|
|
68
67
|
{
|
|
69
|
-
ref:
|
|
68
|
+
ref: m,
|
|
70
69
|
...G(T, ["style"]),
|
|
71
70
|
className: x,
|
|
72
71
|
onMouseDown: R,
|
|
73
|
-
children: g(c) ? c(
|
|
72
|
+
children: g(c) ? c(p, f, d) : u || N()
|
|
74
73
|
}
|
|
75
|
-
)) : /* @__PURE__ */
|
|
74
|
+
)) : /* @__PURE__ */ e("div", { className: x, children: g(c) ? c(p, f, d) : u || N() });
|
|
76
75
|
}
|
|
77
76
|
export {
|
|
78
|
-
|
|
77
|
+
ce as default
|
|
79
78
|
};
|
package/resize-box/Split.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as ce, useContext as ae, useState as D, useRef as
|
|
3
|
-
import { a as le } from "../chunk/
|
|
1
|
+
import { jsx as $, jsxs as ie } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ce, useContext as ae, useState as D, useRef as y, useImperativeHandle as fe, useEffect as ue } from "react";
|
|
3
|
+
import { a as le } from "../chunk/CQvM33Vg.js";
|
|
4
4
|
import { u as me } from "../chunk/B2yFlXke.js";
|
|
5
|
-
import
|
|
5
|
+
import T from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import { on as l, off as m } from "../utils/dom.js";
|
|
7
7
|
import de from "./ResizeTrigger.js";
|
|
8
8
|
const C = "horizontal", W = "vertical";
|
|
@@ -11,7 +11,7 @@ function ge(n, A) {
|
|
|
11
11
|
style: L,
|
|
12
12
|
className: V,
|
|
13
13
|
component: j = "div",
|
|
14
|
-
direction:
|
|
14
|
+
direction: H = "horizontal",
|
|
15
15
|
icon: B,
|
|
16
16
|
size: d = 0.5,
|
|
17
17
|
min: v,
|
|
@@ -19,29 +19,29 @@ function ge(n, A) {
|
|
|
19
19
|
panes: _,
|
|
20
20
|
disabled: Z,
|
|
21
21
|
trigger: k
|
|
22
|
-
} = n, { getPrefixCls: q, rtl:
|
|
22
|
+
} = n, { getPrefixCls: q, rtl: I } = ae(le), s = q("resizebox-split"), g = H.includes(C), p = H.includes("reverse"), G = g && I, R = !g, J = T(
|
|
23
23
|
s,
|
|
24
24
|
`${s}-${g ? C : W}`,
|
|
25
|
-
{ [`${s}-rtl`]:
|
|
25
|
+
{ [`${s}-rtl`]: I },
|
|
26
26
|
V
|
|
27
|
-
), [K, Q] = _, i = typeof d == "string", [c, E] = D(parseFloat(d)), [F, U] = D(0), t =
|
|
27
|
+
), [K, Q] = _, i = typeof d == "string", [c, E] = D(parseFloat(d)), [F, U] = D(0), t = y({
|
|
28
28
|
startX: 0,
|
|
29
29
|
startY: 0,
|
|
30
30
|
startWidth: 0,
|
|
31
31
|
startHeight: 0,
|
|
32
32
|
startOffset: 0,
|
|
33
33
|
moving: !1
|
|
34
|
-
}), w =
|
|
34
|
+
}), w = y(), O = y([]);
|
|
35
35
|
fe(A, () => w.current, []);
|
|
36
|
-
function
|
|
36
|
+
function N(e, o) {
|
|
37
37
|
return parseFloat(e) / parseFloat(o);
|
|
38
38
|
}
|
|
39
39
|
function M(e, o, r, f) {
|
|
40
|
-
const X = typeof v == "string" ?
|
|
41
|
-
let
|
|
42
|
-
|
|
43
|
-
let u = i ? o + (f - r) *
|
|
44
|
-
e * o + (f - r) *
|
|
40
|
+
const X = typeof v == "string" ? N(parseFloat(v), e) : v || 0, Y = typeof x == "string" ? N(parseFloat(x), e) : x || 1;
|
|
41
|
+
let z = p ? -1 : 1;
|
|
42
|
+
z *= G ? -1 : 1;
|
|
43
|
+
let u = i ? o + (f - r) * z : N(
|
|
44
|
+
e * o + (f - r) * z,
|
|
45
45
|
e
|
|
46
46
|
);
|
|
47
47
|
const re = i ? X * e : X, se = i ? Y * e : Y;
|
|
@@ -87,29 +87,29 @@ function ge(n, A) {
|
|
|
87
87
|
const e = parseFloat(d);
|
|
88
88
|
c !== e && E(e);
|
|
89
89
|
}, [d]);
|
|
90
|
-
const oe = j, b = /* @__PURE__ */
|
|
90
|
+
const oe = j, b = /* @__PURE__ */ $(
|
|
91
91
|
"div",
|
|
92
92
|
{
|
|
93
|
-
className:
|
|
93
|
+
className: T(`${s}-pane`, "first-pane"),
|
|
94
94
|
style: { flexBasis: ne() },
|
|
95
95
|
ref: (e) => {
|
|
96
96
|
O.current[0] = e;
|
|
97
97
|
},
|
|
98
98
|
children: K
|
|
99
99
|
}
|
|
100
|
-
), P = /* @__PURE__ */
|
|
100
|
+
), P = /* @__PURE__ */ $(
|
|
101
101
|
"div",
|
|
102
102
|
{
|
|
103
|
-
className:
|
|
103
|
+
className: T(`${s}-pane`, "second-pane"),
|
|
104
104
|
ref: (e) => {
|
|
105
105
|
O.current[1] = e;
|
|
106
106
|
},
|
|
107
107
|
children: Q
|
|
108
108
|
}
|
|
109
|
-
), S =
|
|
109
|
+
), S = p ? [P, b] : [b, P];
|
|
110
110
|
return /* @__PURE__ */ ie(oe, { style: L, className: J, ref: w, children: [
|
|
111
111
|
S[0],
|
|
112
|
-
!Z && /* @__PURE__ */
|
|
112
|
+
!Z && /* @__PURE__ */ $(
|
|
113
113
|
de,
|
|
114
114
|
{
|
|
115
115
|
className: `${s}-trigger`,
|
package/resize-box/SplitGroup.js
CHANGED
|
@@ -4,43 +4,43 @@ import Mt from "lodash/isNumber";
|
|
|
4
4
|
import S from "lodash/isPlainObject";
|
|
5
5
|
import Ot from "lodash/isString";
|
|
6
6
|
import W from "lodash/isUndefined";
|
|
7
|
-
import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as
|
|
8
|
-
import { a as Pt } from "../chunk/
|
|
9
|
-
import
|
|
7
|
+
import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as b, useEffect as L, useImperativeHandle as zt } from "react";
|
|
8
|
+
import { a as Pt } from "../chunk/CQvM33Vg.js";
|
|
9
|
+
import Rt from "@unicom-cloud/utils/class-name";
|
|
10
10
|
import { on as P, off as R } from "../utils/dom.js";
|
|
11
11
|
import { o as Nt } from "../chunk/BKKEev13.js";
|
|
12
12
|
import pt from "./ResizeTrigger.js";
|
|
13
13
|
const D = "horizontal", Y = "vertical";
|
|
14
14
|
function Tt(c, _) {
|
|
15
15
|
const {
|
|
16
|
-
panes:
|
|
16
|
+
panes: f,
|
|
17
17
|
style: J,
|
|
18
18
|
className: U,
|
|
19
19
|
component: Z = "div",
|
|
20
20
|
direction: q = "horizontal",
|
|
21
21
|
icon: K,
|
|
22
22
|
...Q
|
|
23
|
-
} = c, { getPrefixCls: tt, rtl: j } = St(Pt), et = 1 /
|
|
24
|
-
new Array(
|
|
23
|
+
} = c, { getPrefixCls: tt, rtl: j } = St(Pt), et = 1 / f.length, g = z(), y = z(
|
|
24
|
+
new Array(f.length).fill({
|
|
25
25
|
moving: !1,
|
|
26
26
|
startOffset: 0,
|
|
27
27
|
startPosition: 0
|
|
28
28
|
})
|
|
29
|
-
), nt = z([]), N = z(0), p = z([]), [l, A] =
|
|
30
|
-
new Array(
|
|
31
|
-
), [ot, k] =
|
|
32
|
-
new Array(
|
|
33
|
-
), [w, st] =
|
|
34
|
-
new Array(Math.max(
|
|
29
|
+
), nt = z([]), N = z(0), p = z([]), [l, A] = b(
|
|
30
|
+
new Array(f.length).fill(et)
|
|
31
|
+
), [ot, k] = b(!1), [E, rt] = b(
|
|
32
|
+
new Array(f.length).fill(0)
|
|
33
|
+
), [w, st] = b(
|
|
34
|
+
new Array(Math.max(f.length - 1, 0)).fill({ prev: !1, next: !1 })
|
|
35
35
|
), d = tt("resizebox-split-group"), v = q === D, ct = v && j, I = !v, it = Rt(
|
|
36
36
|
d,
|
|
37
37
|
`${d}-${v ? D : Y}`,
|
|
38
38
|
{ [`${d}-moving`]: ot },
|
|
39
39
|
{ [`${d}-rtl`]: j },
|
|
40
40
|
U
|
|
41
|
-
),
|
|
41
|
+
), at = Z, ft = () => {
|
|
42
42
|
let t = [];
|
|
43
|
-
|
|
43
|
+
f.forEach((o) => {
|
|
44
44
|
const { size: s } = o;
|
|
45
45
|
W(s) ? t.push(void 0) : t.push(M(s));
|
|
46
46
|
});
|
|
@@ -58,10 +58,10 @@ function Tt(c, _) {
|
|
|
58
58
|
return Math.min(n, 1);
|
|
59
59
|
}
|
|
60
60
|
const H = (t) => {
|
|
61
|
-
const e = Math.min(t + 1,
|
|
62
|
-
let o = M(
|
|
63
|
-
const s = M(
|
|
64
|
-
let i = M(
|
|
61
|
+
const e = Math.min(t + 1, f.length - 1), n = l[t] + l[e], r = M(f[t].min) || 0;
|
|
62
|
+
let o = M(f[t].max) || n;
|
|
63
|
+
const s = M(f[e].min) || 0;
|
|
64
|
+
let i = M(f[e].max) || n;
|
|
65
65
|
return o = Math.min(n - s, o), i = Math.min(n - r, i), {
|
|
66
66
|
currentMin: r,
|
|
67
67
|
currentMax: o,
|
|
@@ -69,16 +69,16 @@ function Tt(c, _) {
|
|
|
69
69
|
nextMax: i
|
|
70
70
|
};
|
|
71
71
|
}, ut = (t, e, n) => {
|
|
72
|
-
const r = N.current, o = r + 1, s = [...l], i = ct ? -1 : 1, h = l[r], C = l[o], x = h + C, { currentMin: m, currentMax:
|
|
72
|
+
const r = N.current, o = r + 1, s = [...l], i = ct ? -1 : 1, h = l[r], C = l[o], x = h + C, { currentMin: m, currentMax: a } = H(r);
|
|
73
73
|
let u = t + M(`${(n - e) * i}px`);
|
|
74
|
-
return u = Math.max(m, u), u = Math.min(
|
|
74
|
+
return u = Math.max(m, u), u = Math.min(a, u), s[r] = u, s[o] = x - u, s;
|
|
75
75
|
};
|
|
76
76
|
function mt(t, e) {
|
|
77
77
|
const { contentRect: n } = t[0], r = n[I ? "height" : "width"], o = [...E];
|
|
78
78
|
o[e] = r, rt(o);
|
|
79
79
|
}
|
|
80
80
|
const gt = (t) => {
|
|
81
|
-
let e =
|
|
81
|
+
let e = f[t].collapsible;
|
|
82
82
|
S(e) || (e = e ? { prev: !0, next: !0 } : {});
|
|
83
83
|
const { prev: n, next: r } = e;
|
|
84
84
|
if (!n && !r)
|
|
@@ -91,12 +91,12 @@ function Tt(c, _) {
|
|
|
91
91
|
function vt(t, e) {
|
|
92
92
|
var r;
|
|
93
93
|
(r = c.onMovingStart) == null || r.call(c, e), N.current = e;
|
|
94
|
-
const n =
|
|
94
|
+
const n = y.current[e];
|
|
95
95
|
n.moving = !0, n.startOffset = l[e], n.startPosition = v ? t.pageX : t.pageY, k(!0), P(window, "mousemove", T), P(window, "touchmove", T), P(window, "mouseup", O), P(window, "touchend", O), P(window, "contextmenu", O), document.body.style.cursor = I ? "row-resize" : "col-resize";
|
|
96
96
|
}
|
|
97
97
|
function T(t) {
|
|
98
98
|
var o;
|
|
99
|
-
const e = N.current, n =
|
|
99
|
+
const e = N.current, n = y.current[e], r = v ? g.current.offsetWidth : g.current.offsetHeight;
|
|
100
100
|
if (n.moving) {
|
|
101
101
|
const s = ut(
|
|
102
102
|
n.startOffset,
|
|
@@ -114,13 +114,13 @@ function Tt(c, _) {
|
|
|
114
114
|
function O() {
|
|
115
115
|
var e;
|
|
116
116
|
const t = N.current;
|
|
117
|
-
|
|
117
|
+
y.current[t].moving = !1, k(!1), R(window, "mousemove", T), R(window, "touchmove", T), R(window, "mouseup", O), R(window, "touchend", O), R(window, "contextmenu", O), document.body.style.cursor = "default", (e = c.onMovingEnd) == null || e.call(c, t);
|
|
118
118
|
}
|
|
119
119
|
function F(t, e, n, r) {
|
|
120
120
|
var G, V;
|
|
121
|
-
const o = e + 1, s = [...l], i = l[e], h = l[o], C = i + h, x = v ? g.current.offsetWidth : g.current.offsetHeight, { currentMin: m, nextMin:
|
|
122
|
-
let u = p.current[e],
|
|
123
|
-
n === "prev" ? (h !==
|
|
121
|
+
const o = e + 1, s = [...l], i = l[e], h = l[o], C = i + h, x = v ? g.current.offsetWidth : g.current.offsetHeight, { currentMin: m, nextMin: a } = H(e);
|
|
122
|
+
let u = p.current[e], $ = p.current[o], X = w[e][n];
|
|
123
|
+
n === "prev" ? (h !== a || $ === a) && (u = m, $ = C - m, X = !0) : (i !== m || u === m) && (u = C - a, $ = a, X = !0), s[e] = u, s[o] = $, (G = c == null ? void 0 : c.onMoving) == null || G.call(
|
|
124
124
|
c,
|
|
125
125
|
t,
|
|
126
126
|
s.map((ht) => `${ht * x}px`),
|
|
@@ -128,16 +128,16 @@ function Tt(c, _) {
|
|
|
128
128
|
), (V = c.onMovingEnd) == null || V.call(c, e), A(s), dt(r) && r(t, e, n, X);
|
|
129
129
|
}
|
|
130
130
|
return L(() => {
|
|
131
|
-
const t =
|
|
131
|
+
const t = ft();
|
|
132
132
|
A(t), p.current = t;
|
|
133
|
-
}, [JSON.stringify(
|
|
133
|
+
}, [JSON.stringify(f.map((t) => t.size))]), zt(_, () => g.current, []), L(() => {
|
|
134
134
|
const t = [];
|
|
135
135
|
l.forEach((e, n) => {
|
|
136
136
|
const r = { prev: !1, next: !1 }, o = n + 1, { currentMin: s, nextMin: i } = H(n);
|
|
137
137
|
e === s ? r.prev = !0 : l[o] === i && (r.next = !0), t.push(r);
|
|
138
138
|
}), st(t);
|
|
139
139
|
}, [l]), /* @__PURE__ */ B(
|
|
140
|
-
|
|
140
|
+
at,
|
|
141
141
|
{
|
|
142
142
|
...Nt(Q, [
|
|
143
143
|
"onMovingStart",
|
|
@@ -148,7 +148,7 @@ function Tt(c, _) {
|
|
|
148
148
|
style: J,
|
|
149
149
|
className: it,
|
|
150
150
|
ref: g,
|
|
151
|
-
children:
|
|
151
|
+
children: f.map((t, e) => {
|
|
152
152
|
const {
|
|
153
153
|
content: n,
|
|
154
154
|
disabled: r,
|
|
@@ -162,26 +162,26 @@ function Tt(c, _) {
|
|
|
162
162
|
{
|
|
163
163
|
className: `${d}-pane`,
|
|
164
164
|
style: { flexBasis: lt(e) },
|
|
165
|
-
ref: (
|
|
165
|
+
ref: (a) => nt.current[e] = a,
|
|
166
166
|
children: n
|
|
167
167
|
}
|
|
168
168
|
),
|
|
169
|
-
!r && e !==
|
|
169
|
+
!r && e !== f.length - 1 && /* @__PURE__ */ B(
|
|
170
170
|
pt,
|
|
171
171
|
{
|
|
172
172
|
className: `${d}-trigger`,
|
|
173
173
|
direction: I ? D : Y,
|
|
174
174
|
icon: K,
|
|
175
|
-
onResize: (
|
|
176
|
-
onMouseDown: (
|
|
175
|
+
onResize: (a) => mt(a, e),
|
|
176
|
+
onMouseDown: (a) => vt(a, e),
|
|
177
177
|
collapsible: {
|
|
178
178
|
prev: h ? {
|
|
179
|
-
onClick: (
|
|
179
|
+
onClick: (a) => F(a, e, "prev", x.onClick),
|
|
180
180
|
icon: x.icon,
|
|
181
181
|
collapsed: w[e].prev
|
|
182
182
|
} : void 0,
|
|
183
183
|
next: C ? {
|
|
184
|
-
onClick: (
|
|
184
|
+
onClick: (a) => F(a, e, "next", m.onClick),
|
|
185
185
|
icon: m.icon,
|
|
186
186
|
collapsed: w[e].next
|
|
187
187
|
} : void 0
|
|
@@ -195,8 +195,8 @@ function Tt(c, _) {
|
|
|
195
195
|
}
|
|
196
196
|
);
|
|
197
197
|
}
|
|
198
|
-
const
|
|
199
|
-
|
|
198
|
+
const $t = xt(Tt);
|
|
199
|
+
$t.displayName = "ResizeBoxSplitGroup";
|
|
200
200
|
export {
|
|
201
|
-
|
|
201
|
+
$t as default
|
|
202
202
|
};
|
package/resize-box/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as ot, jsx as rt } from "react/jsx-runtime";
|
|
2
2
|
import B from "lodash/isNumber";
|
|
3
3
|
import { forwardRef as nt, useContext as st, useState as it, useRef as E, useImperativeHandle as ct } from "react";
|
|
4
|
-
import { a as at } from "../chunk/
|
|
4
|
+
import { a as at } from "../chunk/CQvM33Vg.js";
|
|
5
5
|
import { u as ut } from "../chunk/BFTV6myl.js";
|
|
6
|
-
import { u as W } from "../chunk/
|
|
7
|
-
import
|
|
6
|
+
import { u as W } from "../chunk/CXPOj2uy.js";
|
|
7
|
+
import mt from "@unicom-cloud/utils/class-name";
|
|
8
8
|
import { on as g, off as l } from "../utils/dom.js";
|
|
9
9
|
import { o as dt } from "../chunk/BKKEev13.js";
|
|
10
10
|
import gt from "./ResizeTrigger.js";
|
|
11
11
|
import lt from "./Split.js";
|
|
12
12
|
import ft from "./SplitGroup.js";
|
|
13
|
-
const
|
|
14
|
-
|
|
13
|
+
const $ = "left", z = "right", b = "top", x = "bottom", pt = [
|
|
14
|
+
$,
|
|
15
15
|
z,
|
|
16
16
|
b,
|
|
17
17
|
x
|
|
@@ -30,8 +30,8 @@ const X = "left", z = "right", b = "top", x = "bottom", pt = [
|
|
|
30
30
|
return f;
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
function vt(f,
|
|
34
|
-
const { getPrefixCls:
|
|
33
|
+
function vt(f, X) {
|
|
34
|
+
const { getPrefixCls: Y, componentConfig: w, rtl: T } = st(at), r = ut(
|
|
35
35
|
f,
|
|
36
36
|
ht,
|
|
37
37
|
w == null ? void 0 : w.ResizeBox
|
|
@@ -46,7 +46,7 @@ function vt(f, Y) {
|
|
|
46
46
|
width: F,
|
|
47
47
|
height: q,
|
|
48
48
|
...K
|
|
49
|
-
} = r, L = T ? C.map((t) => wt(t)) : C, v =
|
|
49
|
+
} = r, L = T ? C.map((t) => wt(t)) : C, v = Y("resizebox"), U = mt(v, { [`${v}-rtl`]: T }, k), [V, J] = it({}), [I, N] = W(void 0, { value: F }), [S, H] = W(void 0, { value: q }), o = E({
|
|
50
50
|
startX: 0,
|
|
51
51
|
startY: 0,
|
|
52
52
|
startWidth: 0,
|
|
@@ -60,17 +60,17 @@ function vt(f, Y) {
|
|
|
60
60
|
right: 0
|
|
61
61
|
}
|
|
62
62
|
}), p = E();
|
|
63
|
-
ct(
|
|
63
|
+
ct(X, () => p.current, []);
|
|
64
64
|
function R(t) {
|
|
65
65
|
return [b, x].indexOf(t) > -1;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function M(t, e) {
|
|
68
68
|
if (t === 0)
|
|
69
69
|
return 0;
|
|
70
70
|
const n = t - e;
|
|
71
71
|
return n <= 0 ? 0 : n;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function O(t) {
|
|
74
74
|
const e = "data-pqb-origin-cursor";
|
|
75
75
|
if (t)
|
|
76
76
|
document.body.setAttribute(e, document.body.style.cursor), document.body.style.cursor = t;
|
|
@@ -83,45 +83,45 @@ function vt(f, Y) {
|
|
|
83
83
|
var i, m, d;
|
|
84
84
|
(i = r.onMovingStart) == null || i.call(r), o.current.moving = !0, o.current.startX = e.pageX, o.current.startY = e.pageY, o.current.direction = t;
|
|
85
85
|
const { top: n, left: c, right: a, bottom: s } = o.current.padding;
|
|
86
|
-
o.current.startWidth =
|
|
86
|
+
o.current.startWidth = M(
|
|
87
87
|
(m = p.current) == null ? void 0 : m.clientWidth,
|
|
88
88
|
c + a
|
|
89
|
-
), o.current.startHeight =
|
|
89
|
+
), o.current.startHeight = M(
|
|
90
90
|
(d = p.current) == null ? void 0 : d.clientHeight,
|
|
91
91
|
n + s
|
|
92
|
-
), g(window, "mousemove", h), g(window, "touchmove", h), g(window, "mouseup", u), g(window, "touchend", u), g(window, "contextmenu", u),
|
|
92
|
+
), g(window, "mousemove", h), g(window, "touchmove", h), g(window, "mouseup", u), g(window, "touchend", u), g(window, "contextmenu", u), O(
|
|
93
93
|
R(t) ? "row-resize" : "col-resize"
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
96
|
function h(t) {
|
|
97
|
-
var
|
|
97
|
+
var D;
|
|
98
98
|
if (!o.current.moving)
|
|
99
99
|
return !1;
|
|
100
100
|
const { startX: e, startY: n, startWidth: c, startHeight: a } = o.current;
|
|
101
101
|
let s = c, i = a;
|
|
102
102
|
const m = t.pageX - e, d = t.pageY - n;
|
|
103
103
|
switch (o.current.direction) {
|
|
104
|
-
case
|
|
105
|
-
s = c - m,
|
|
104
|
+
case $:
|
|
105
|
+
s = c - m, N(s);
|
|
106
106
|
break;
|
|
107
107
|
case z:
|
|
108
|
-
s = c + m,
|
|
108
|
+
s = c + m, N(s);
|
|
109
109
|
break;
|
|
110
110
|
case b:
|
|
111
|
-
i = a - d,
|
|
111
|
+
i = a - d, H(i);
|
|
112
112
|
break;
|
|
113
113
|
case x:
|
|
114
|
-
i = a + d,
|
|
114
|
+
i = a + d, H(i);
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
|
-
(
|
|
117
|
+
(D = r.onMoving) == null || D.call(r, t, {
|
|
118
118
|
width: s,
|
|
119
119
|
height: i
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
function u() {
|
|
123
123
|
var t;
|
|
124
|
-
o.current.moving = !1, Z(),
|
|
124
|
+
o.current.moving = !1, Z(), O(), (t = r.onMovingEnd) == null || t.call(r);
|
|
125
125
|
}
|
|
126
126
|
function Z() {
|
|
127
127
|
l(window, "mousemove", h), l(window, "touchmove", h), l(window, "mouseup", u), l(window, "touchend", u), l(window, "contextmenu", u);
|
|
@@ -137,7 +137,7 @@ function vt(f, Y) {
|
|
|
137
137
|
...V,
|
|
138
138
|
...P || {},
|
|
139
139
|
...B(I) ? { width: I } : {},
|
|
140
|
-
...B(
|
|
140
|
+
...B(S) ? { height: S } : {}
|
|
141
141
|
};
|
|
142
142
|
return /* @__PURE__ */ ot(
|
|
143
143
|
G,
|
package/result/index.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { jsxs as h, jsx as
|
|
1
|
+
import { jsxs as h, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import g from "@unicom-cloud/icons/IconUiCheck";
|
|
3
3
|
import v from "@unicom-cloud/icons/IconUiClose";
|
|
4
4
|
import C from "@unicom-cloud/icons/IconUiExclamation";
|
|
5
5
|
import R from "@unicom-cloud/icons/IconUiInfo";
|
|
6
6
|
import { forwardRef as U, useContext as P } from "react";
|
|
7
|
-
import { a as b } from "../chunk/
|
|
7
|
+
import { a as b } from "../chunk/CQvM33Vg.js";
|
|
8
8
|
import { u as j } from "../chunk/BFTV6myl.js";
|
|
9
|
-
import
|
|
9
|
+
import m from "@unicom-cloud/utils/class-name";
|
|
10
10
|
import w from "./403.js";
|
|
11
11
|
import y from "./404.js";
|
|
12
12
|
import k from "./500.js";
|
|
13
13
|
const E = {
|
|
14
|
-
success: /* @__PURE__ */
|
|
15
|
-
info: /* @__PURE__ */
|
|
16
|
-
warning: /* @__PURE__ */
|
|
17
|
-
error: /* @__PURE__ */
|
|
18
|
-
404: /* @__PURE__ */
|
|
19
|
-
403: /* @__PURE__ */
|
|
20
|
-
500: /* @__PURE__ */
|
|
14
|
+
success: /* @__PURE__ */ s(g, {}),
|
|
15
|
+
info: /* @__PURE__ */ s(R, {}),
|
|
16
|
+
warning: /* @__PURE__ */ s(C, {}),
|
|
17
|
+
error: /* @__PURE__ */ s(v, {}),
|
|
18
|
+
404: /* @__PURE__ */ s(y, {}),
|
|
19
|
+
403: /* @__PURE__ */ s(w, {}),
|
|
20
|
+
500: /* @__PURE__ */ s(k, {})
|
|
21
21
|
}, M = {
|
|
22
22
|
status: "info"
|
|
23
23
|
};
|
|
24
24
|
function T(f, p) {
|
|
25
|
-
const { getPrefixCls: u, componentConfig:
|
|
25
|
+
const { getPrefixCls: u, componentConfig: e, rtl: d } = P(b), r = j(
|
|
26
26
|
f,
|
|
27
27
|
M,
|
|
28
|
-
|
|
28
|
+
e == null ? void 0 : e.Result
|
|
29
29
|
), {
|
|
30
30
|
className: $,
|
|
31
|
-
style:
|
|
31
|
+
style: N,
|
|
32
32
|
status: t,
|
|
33
33
|
title: i,
|
|
34
34
|
subTitle: c,
|
|
35
35
|
extra: n,
|
|
36
36
|
children: a,
|
|
37
|
-
icon:
|
|
38
|
-
...
|
|
39
|
-
} =
|
|
37
|
+
icon: x,
|
|
38
|
+
...I
|
|
39
|
+
} = r, o = u("result"), l = "icon" in r ? x : E[t];
|
|
40
40
|
return /* @__PURE__ */ h(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
ref: p,
|
|
44
44
|
className: m(
|
|
45
|
-
|
|
45
|
+
o,
|
|
46
46
|
{
|
|
47
|
-
[`${
|
|
48
|
-
[`${
|
|
47
|
+
[`${o}-is-${t}`]: t,
|
|
48
|
+
[`${o}-rtl`]: d
|
|
49
49
|
},
|
|
50
50
|
$
|
|
51
51
|
),
|
|
52
|
-
style:
|
|
53
|
-
...
|
|
52
|
+
style: N,
|
|
53
|
+
...I,
|
|
54
54
|
children: [
|
|
55
|
-
l && /* @__PURE__ */
|
|
55
|
+
l && /* @__PURE__ */ s("div", { className: `${o}-icon`, children: /* @__PURE__ */ s(
|
|
56
56
|
"span",
|
|
57
57
|
{
|
|
58
|
-
className: m(`${
|
|
59
|
-
[`${
|
|
60
|
-
[`${
|
|
58
|
+
className: m(`${o}-icon-tip`, {
|
|
59
|
+
[`${o}-icon-${t}`]: t,
|
|
60
|
+
[`${o}-icon-custom`]: t === null
|
|
61
61
|
}),
|
|
62
62
|
children: l
|
|
63
63
|
}
|
|
64
64
|
) }),
|
|
65
|
-
i && /* @__PURE__ */
|
|
66
|
-
c && /* @__PURE__ */
|
|
67
|
-
n && /* @__PURE__ */
|
|
68
|
-
a && /* @__PURE__ */
|
|
65
|
+
i && /* @__PURE__ */ s("div", { className: `${o}-title`, children: i }),
|
|
66
|
+
c && /* @__PURE__ */ s("div", { className: `${o}-subtitle`, children: c }),
|
|
67
|
+
n && /* @__PURE__ */ s("div", { className: `${o}-extra`, children: n }),
|
|
68
|
+
a && /* @__PURE__ */ s("div", { className: `${o}-content`, children: a })
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
);
|
package/select/Option.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { O as a } from "../chunk/
|
|
4
|
-
import "
|
|
3
|
+
import { O as a } from "../chunk/B4mZh-RK.js";
|
|
4
|
+
import "@unicom-cloud/utils/class-name";
|
|
5
5
|
import "../chunk/BKKEev13.js";
|
|
6
6
|
export {
|
|
7
7
|
a as default
|