@unicom-cloud/ui 0.8.113 → 0.8.115
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 +2 -2
- package/Alert.js +2 -2
- package/AutoComplete.js +1 -1
- package/BackTop.js +3 -3
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +1 -1
- package/Countdown.js +4 -4
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +4 -4
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +1 -1
- package/Flex.js +4 -4
- package/Form.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +4 -4
- package/List.js +6 -5
- package/Loading.js +4 -4
- package/Marquee.js +7 -6
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +4 -4
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +4 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +7 -7
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/RichText.js +1 -1
- package/Segmented.js +4 -4
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +4 -4
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +2 -2
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +4 -4
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +2 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +3 -3
- package/badge/Count.js +1 -1
- package/badge/index.js +2 -2
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +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/{C6A94b7f.js → BcWPf1id.js} +1 -1
- package/chunk/BcdTSJks.js +48 -0
- package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
- package/chunk/{yWKJUe_w.js → CKojyqln.js} +4 -4
- package/chunk/{DrYaod6k.js → CRgtPpMG.js} +1 -1
- package/chunk/{3t4FwEoB.js → CVjWKHBo.js} +1 -1
- package/chunk/{DB0hUIM1.js → CYPFoLks.js} +4 -4
- package/chunk/{D0dVE1v1.js → CcH9qbbg.js} +418 -416
- package/chunk/{Bzx5BueA.js → Ch4iApRQ.js} +2 -2
- package/chunk/{CbXCgtzv.js → Cs9GrNJa.js} +5 -5
- package/chunk/CxbF1opI.js +231 -0
- package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
- package/chunk/{DzlfiVe2.js → D6I1_o6O.js} +1 -1
- package/chunk/{DA5AMZwY.js → DPDyV8yt.js} +3 -3
- package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
- package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
- package/chunk/{CYDaUML7.js → DstheLSK.js} +4 -4
- package/chunk/{BHAu6wbC.js → HFPyZ48d.js} +37 -35
- package/chunk/{Bcl7dWlJ.js → efH9HX0H.js} +3 -3
- package/chunk/exc7v_Hl.js +53 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +1 -1
- package/countdown/index.js +4 -4
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +4 -4
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +89 -93
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +1 -1
- package/flex/index.js +4 -4
- package/form/Control.js +115 -103
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/index.js +1 -1
- package/form/promisify.js +10 -19
- package/form/store.js +3 -3
- package/form/util.js +62 -52
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +3 -3
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/icon/addFromIconFontCn.js +1 -1
- package/icon/index.js +2 -2
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +6 -6
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +739 -726
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- 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/autoSizeTextAreaHeight.js +29 -20
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +2 -2
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +4 -4
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +2 -1
- package/loading/index.js +4 -4
- package/locale/en-US.js +5 -3
- package/locale/tr-TR.js +5 -3
- package/marquee/index.js +7 -6
- package/marquee-/index.js +7 -6
- package/mentions/index.js +1 -1
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +2 -2
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +5 -5
- package/modal/index.js +2 -2
- package/notice/index.js +4 -4
- package/notification/index.js +2 -2
- 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 +103 -31
- package/pagination/Pagination.js +38 -35
- package/pagination/index.js +2 -0
- 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/qr-code/index.js +1233 -45
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/rich-text/index.js +1 -1
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/segmented/index.js +21 -21
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +2 -2
- package/space/index.js +4 -4
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +2 -2
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +2 -2
- package/table/Table.js +5 -4
- package/table/index.js +4 -4
- 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 +1 -1
- package/tour/index.js +4 -4
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +2 -2
- package/tree-select/index.js +1 -1
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.js +145 -145
- package/types/common/hooks/useWindowSize.d.ts +4 -4
- package/types/common/utils/dom.d.ts +1 -1
- package/types/common/utils/lodash.d.ts +2 -1
- package/types/common/utils/reactDOM.d.ts +10 -1
- package/types/common/utils/validate.d.ts +2 -0
- package/types/pc/form/interface.d.ts +6 -1
- package/types/pc/form/promisify.d.ts +5 -0
- package/types/pc/form/store.d.ts +1 -1
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
- package/types/pc/pagination/PageOption.d.ts +3 -0
- package/types/pc/pagination/index.d.ts +2 -0
- package/types/pc/pagination/interface.d.ts +5 -0
- package/types/pc/qr-code/examples/demo.d.ts +1 -0
- package/types/pc/qr-code/examples/download.d.ts +2 -0
- package/types/pc/qr-code/examples/full.d.ts +2 -0
- package/types/pc/qr-code/examples/image.d.ts +2 -0
- package/types/pc/qr-code/index.d.ts +2 -0
- package/types/pc/qr-code/src/index.d.ts +116 -0
- package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
- package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
- package/types/pc/utils/validate.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +2 -2
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +1 -1
- package/upload/request_.js +1972 -41
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +247 -235
- package/utils/lodash.js +33 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/validate.js +15 -5
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/CXrVhA6-.js +0 -54
- package/chunk/De8RLlOK.js +0 -231
- package/chunk/d1c9z8T1.js +0 -49
package/drawer/Drawer.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as x, Fragment as pe, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import me from "@unicom-cloud/icons/IconUiClose";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { a as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { P as
|
|
11
|
-
import
|
|
12
|
-
import { a as
|
|
13
|
-
import { Esc as
|
|
14
|
-
import { o as
|
|
15
|
-
import { f as
|
|
16
|
-
const
|
|
3
|
+
import O from "lodash/isFunction";
|
|
4
|
+
import ue, { useContext as fe, useRef as B, useState as c, useCallback as he, useImperativeHandle as Ce, useEffect as D } from "react";
|
|
5
|
+
import R from "../button/index.js";
|
|
6
|
+
import { a as xe, I as ye, b as S } from "../chunk/DstheLSK.js";
|
|
7
|
+
import { u as Ne } from "../chunk/FgWHhRFz.js";
|
|
8
|
+
import { u as ge } from "../chunk/BqWBaRtM.js";
|
|
9
|
+
import ke from "../portal/index.js";
|
|
10
|
+
import { P as T } from "../chunk/DQ8_XXrH.js";
|
|
11
|
+
import y from "@unicom-cloud/utils/class-name";
|
|
12
|
+
import { a as be, c as we } from "../chunk/BcdTSJks.js";
|
|
13
|
+
import { Esc as ve } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
14
|
+
import { o as Ie } from "../chunk/BKKEev13.js";
|
|
15
|
+
import { f as Pe } from "../chunk/exc7v_Hl.js";
|
|
16
|
+
const $e = {
|
|
17
17
|
placement: "right",
|
|
18
18
|
width: 250,
|
|
19
19
|
height: 250,
|
|
@@ -24,87 +24,83 @@ const Oe = {
|
|
|
24
24
|
mountOnEnter: !0,
|
|
25
25
|
getPopupContainer: () => document.body
|
|
26
26
|
};
|
|
27
|
-
function
|
|
28
|
-
const d =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
function Ee(z, F) {
|
|
28
|
+
const d = fe(xe), { locale: N, getPrefixCls: j, componentConfig: H, rtl: Z } = d, o = Ne(
|
|
29
|
+
z,
|
|
30
|
+
$e,
|
|
31
|
+
H?.Drawer
|
|
32
32
|
), {
|
|
33
|
-
style:
|
|
34
|
-
className:
|
|
35
|
-
children:
|
|
36
|
-
wrapClassName:
|
|
37
|
-
maskStyle:
|
|
38
|
-
headerStyle:
|
|
39
|
-
bodyStyle:
|
|
33
|
+
style: L,
|
|
34
|
+
className: M,
|
|
35
|
+
children: W,
|
|
36
|
+
wrapClassName: q,
|
|
37
|
+
maskStyle: G,
|
|
38
|
+
headerStyle: K,
|
|
39
|
+
bodyStyle: U,
|
|
40
40
|
title: p,
|
|
41
41
|
footer: i,
|
|
42
|
-
okText:
|
|
43
|
-
cancelText:
|
|
44
|
-
width:
|
|
45
|
-
height:
|
|
42
|
+
okText: _,
|
|
43
|
+
cancelText: A,
|
|
44
|
+
width: J,
|
|
45
|
+
height: Q,
|
|
46
46
|
placement: a,
|
|
47
47
|
mask: m,
|
|
48
48
|
visible: r,
|
|
49
|
-
closable:
|
|
50
|
-
maskClosable:
|
|
51
|
-
confirmLoading:
|
|
49
|
+
closable: V,
|
|
50
|
+
maskClosable: X,
|
|
51
|
+
confirmLoading: Y,
|
|
52
52
|
mountOnEnter: u,
|
|
53
53
|
unmountOnExit: g,
|
|
54
|
-
afterOpen:
|
|
55
|
-
afterClose:
|
|
54
|
+
afterOpen: ee,
|
|
55
|
+
afterClose: ne,
|
|
56
56
|
getPopupContainer: f,
|
|
57
|
-
escToExit:
|
|
57
|
+
escToExit: te,
|
|
58
58
|
getChildrenPopupContainer: k,
|
|
59
|
-
okButtonProps:
|
|
60
|
-
cancelButtonProps:
|
|
61
|
-
zIndex:
|
|
62
|
-
closeIcon:
|
|
59
|
+
okButtonProps: oe,
|
|
60
|
+
cancelButtonProps: re,
|
|
61
|
+
zIndex: b,
|
|
62
|
+
closeIcon: w,
|
|
63
63
|
okButton: l,
|
|
64
|
-
...
|
|
65
|
-
} = o, s =
|
|
64
|
+
...se
|
|
65
|
+
} = o, s = B(null), v = B(null), [Be, ie] = c(!1), [h, le] = c(), t = j?.("drawer"), [I, C] = c(!1), [De, P] = c(!1), $ = /* @__PURE__ */ x(pe, { children: [
|
|
66
66
|
o.cancelButton?.visible !== !1 && /* @__PURE__ */ n(
|
|
67
|
-
|
|
67
|
+
R,
|
|
68
68
|
{
|
|
69
69
|
onClick: o.onCancel,
|
|
70
|
-
...
|
|
70
|
+
...re,
|
|
71
71
|
...o.cancelButton?.props,
|
|
72
|
-
children: o.cancelButton?.props?.children || o.cancelButton?.label || o.cancelButton?.text ||
|
|
72
|
+
children: o.cancelButton?.props?.children || o.cancelButton?.label || o.cancelButton?.text || A || N?.Drawer.cancelText
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
75
|
l?.visible !== !1 && /* @__PURE__ */ n(
|
|
76
|
-
|
|
76
|
+
R,
|
|
77
77
|
{
|
|
78
78
|
type: "primary",
|
|
79
|
-
loading:
|
|
79
|
+
loading: Y,
|
|
80
80
|
onClick: o.onOk,
|
|
81
|
-
...
|
|
81
|
+
...oe,
|
|
82
82
|
...l?.props,
|
|
83
|
-
children: l?.props?.children || l?.label || l?.text ||
|
|
83
|
+
children: l?.props?.children || l?.label || l?.text || _ || N?.Drawer.okText
|
|
84
84
|
}
|
|
85
85
|
)
|
|
86
|
-
] }),
|
|
86
|
+
] }), E = he(() => {
|
|
87
87
|
const e = f?.();
|
|
88
|
-
return
|
|
89
|
-
}, [f]), ae =
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
ke(x, { hidden: (r || P) && m }), ye(z, () => s.current), B(() => {
|
|
95
|
-
r && o.getPopupContainer && ie(!0);
|
|
96
|
-
}, []), B(() => {
|
|
97
|
-
r && Ie(document.body, s.current) && s.current?.focus?.();
|
|
88
|
+
return Pe(e) || document.body;
|
|
89
|
+
}, [f]), ae = !be && E() === document.body;
|
|
90
|
+
ge(E, { hidden: (r || I) && m }), Ce(F, () => s.current), D(() => {
|
|
91
|
+
r && O(o.getPopupContainer) && ie(!0);
|
|
92
|
+
}, []), D(() => {
|
|
93
|
+
r && we(document.body, s.current) && s.current?.focus?.();
|
|
98
94
|
}, [r]);
|
|
99
95
|
const ce = () => {
|
|
100
96
|
if (r && h === void 0 && s.current) {
|
|
101
97
|
const e = +window.getComputedStyle(s.current, null)?.zIndex;
|
|
102
98
|
isNaN(e) || le(e + 1);
|
|
103
99
|
}
|
|
104
|
-
}, de = /* @__PURE__ */
|
|
105
|
-
p !== null && /* @__PURE__ */ n("div", { className: `${t}-header`, style:
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
}, de = /* @__PURE__ */ x("div", { className: `${t}-scroll`, tabIndex: -1, children: [
|
|
101
|
+
p !== null && /* @__PURE__ */ n("div", { className: `${t}-header`, style: K, children: /* @__PURE__ */ n("div", { className: `${t}-header-title`, children: p }) }),
|
|
102
|
+
V && (w !== void 0 ? /* @__PURE__ */ n("span", { onClick: o.onCancel, className: `${t}-close-icon`, children: w }) : /* @__PURE__ */ n(
|
|
103
|
+
ye,
|
|
108
104
|
{
|
|
109
105
|
onClick: o.onCancel,
|
|
110
106
|
className: `${t}-close-icon`,
|
|
@@ -115,53 +111,53 @@ function Be(T, z) {
|
|
|
115
111
|
"div",
|
|
116
112
|
{
|
|
117
113
|
ref: (e) => {
|
|
118
|
-
|
|
114
|
+
v.current = e, ce();
|
|
119
115
|
},
|
|
120
|
-
style:
|
|
121
|
-
className:
|
|
116
|
+
style: U,
|
|
117
|
+
className: y(`${t}-content`, {
|
|
122
118
|
[`${t}-content-nofooter`]: i === null,
|
|
123
119
|
[`${t}-content-noheader`]: p === null
|
|
124
120
|
}),
|
|
125
121
|
children: /* @__PURE__ */ n(
|
|
126
|
-
|
|
122
|
+
S,
|
|
127
123
|
{
|
|
128
124
|
...d,
|
|
129
125
|
childrenName: "Drawer",
|
|
130
126
|
zIndex: h || 1050,
|
|
131
|
-
getPopupContainer: (e) => typeof k == "function" ? k(e) :
|
|
132
|
-
children:
|
|
127
|
+
getPopupContainer: (e) => typeof k == "function" ? k(e) : v.current,
|
|
128
|
+
children: W
|
|
133
129
|
}
|
|
134
130
|
)
|
|
135
131
|
}
|
|
136
132
|
),
|
|
137
|
-
i !== null && /* @__PURE__ */ n("div", { className: `${t}-footer`, children:
|
|
133
|
+
i !== null && /* @__PURE__ */ n("div", { className: `${t}-footer`, children: O(i) ? i($) : i || $ })
|
|
138
134
|
] });
|
|
139
135
|
return /* @__PURE__ */ n(
|
|
140
|
-
|
|
136
|
+
ke,
|
|
141
137
|
{
|
|
142
138
|
forceRender: !u,
|
|
143
139
|
visible: r,
|
|
144
140
|
getContainer: f,
|
|
145
|
-
children: /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ x(
|
|
146
142
|
"div",
|
|
147
143
|
{
|
|
148
|
-
|
|
144
|
+
...Ie(se, ["onCancel", "onOk"]),
|
|
149
145
|
ref: s,
|
|
150
146
|
onKeyDown: (e) => {
|
|
151
|
-
e.key ===
|
|
147
|
+
e.key === ve.key && te && r && o.onCancel?.(e);
|
|
152
148
|
},
|
|
153
|
-
className:
|
|
149
|
+
className: y(
|
|
154
150
|
`${t}-wrapper`,
|
|
155
151
|
{
|
|
156
152
|
[`${t}-no-mask`]: !m,
|
|
157
153
|
[`${t}-wrapper-hide`]: !r
|
|
158
154
|
},
|
|
159
|
-
|
|
155
|
+
q
|
|
160
156
|
),
|
|
161
|
-
style: ae ? { position: "fixed", zIndex:
|
|
157
|
+
style: ae ? { position: "fixed", zIndex: b } : { zIndex: b || "inherit", position: "absolute" },
|
|
162
158
|
children: [
|
|
163
159
|
m ? /* @__PURE__ */ n(
|
|
164
|
-
|
|
160
|
+
T,
|
|
165
161
|
{
|
|
166
162
|
in: r,
|
|
167
163
|
appear: !0,
|
|
@@ -173,16 +169,16 @@ function Be(T, z) {
|
|
|
173
169
|
"div",
|
|
174
170
|
{
|
|
175
171
|
className: `${t}-mask`,
|
|
176
|
-
style:
|
|
172
|
+
style: G,
|
|
177
173
|
onClick: (e) => {
|
|
178
|
-
!
|
|
174
|
+
!I && X && o.onCancel?.(e);
|
|
179
175
|
}
|
|
180
176
|
}
|
|
181
177
|
)
|
|
182
178
|
}
|
|
183
179
|
) : null,
|
|
184
180
|
/* @__PURE__ */ n(
|
|
185
|
-
|
|
181
|
+
T,
|
|
186
182
|
{
|
|
187
183
|
in: r,
|
|
188
184
|
appear: !0,
|
|
@@ -199,25 +195,25 @@ function Be(T, z) {
|
|
|
199
195
|
e && (e.parentNode.style.display = "block", C(!1));
|
|
200
196
|
},
|
|
201
197
|
onEntered: () => {
|
|
202
|
-
|
|
198
|
+
P(!0), ee?.();
|
|
203
199
|
},
|
|
204
200
|
onExit: () => {
|
|
205
|
-
|
|
201
|
+
P(!1), C(!0);
|
|
206
202
|
},
|
|
207
203
|
onExited: (e) => {
|
|
208
|
-
e && (C(!1), e.parentNode.style.display = "",
|
|
204
|
+
e && (C(!1), e.parentNode.style.display = "", ne?.());
|
|
209
205
|
},
|
|
210
206
|
children: /* @__PURE__ */ n(
|
|
211
207
|
"div",
|
|
212
208
|
{
|
|
213
|
-
className:
|
|
209
|
+
className: y(t, M, { [`${t}-rtl`]: Z }),
|
|
214
210
|
style: Object.assign(
|
|
215
|
-
a === "left" || a === "right" ? { width:
|
|
211
|
+
a === "left" || a === "right" ? { width: J } : { height: Q },
|
|
216
212
|
{ [a]: 0 },
|
|
217
|
-
|
|
213
|
+
L
|
|
218
214
|
),
|
|
219
215
|
children: /* @__PURE__ */ n("div", { className: `${t}-inner`, children: /* @__PURE__ */ n(
|
|
220
|
-
|
|
216
|
+
S,
|
|
221
217
|
{
|
|
222
218
|
...d,
|
|
223
219
|
childrenName: "Drawer",
|
|
@@ -235,8 +231,8 @@ function Be(T, z) {
|
|
|
235
231
|
}
|
|
236
232
|
);
|
|
237
233
|
}
|
|
238
|
-
const
|
|
239
|
-
|
|
234
|
+
const Oe = ue.forwardRef(Ee);
|
|
235
|
+
Oe.displayName = "Drawer";
|
|
240
236
|
export {
|
|
241
|
-
|
|
237
|
+
Oe as default
|
|
242
238
|
};
|
package/dropdown/Button.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiMore";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { DropdownButton as f } from "./index.js";
|
|
5
5
|
import "../button/index.js";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/DstheLSK.js";
|
|
7
7
|
import "../chunk/FgWHhRFz.js";
|
|
8
8
|
import "../chunk/ClqoGc3r.js";
|
|
9
9
|
export {
|
package/dropdown/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as q } from "react/jsx-runtime";
|
|
2
2
|
import v from "lodash/get";
|
|
3
3
|
import s, { forwardRef as H, useContext as $, useRef as I } from "react";
|
|
4
|
-
import { a as A } from "../chunk/
|
|
4
|
+
import { a as A } from "../chunk/DstheLSK.js";
|
|
5
5
|
import { u as j } from "../chunk/FgWHhRFz.js";
|
|
6
6
|
import { u as J } from "../chunk/2vdCeheu.js";
|
|
7
7
|
import K, { EventsByTriggerNeed as S } from "../trigger/index.js";
|
|
@@ -9,7 +9,7 @@ import T from "@unicom-cloud/utils/class-name";
|
|
|
9
9
|
import { s as W } from "../chunk/DsaQZE4X.js";
|
|
10
10
|
import { o as X } from "../chunk/BKKEev13.js";
|
|
11
11
|
import { a as U, p as Y } from "../chunk/ClqoGc3r.js";
|
|
12
|
-
import { f as Z } from "../chunk/
|
|
12
|
+
import { f as Z } from "../chunk/exc7v_Hl.js";
|
|
13
13
|
import z from "@unicom-cloud/icons/IconUiMore";
|
|
14
14
|
import M from "../button/index.js";
|
|
15
15
|
const oo = {
|
package/empty/index.js
CHANGED
package/flex/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { UI_COMMON_PREFIX as M } from "@unicom-cloud/utils/constant/ui";
|
|
|
4
4
|
import { u as j } from "../chunk/FgWHhRFz.js";
|
|
5
5
|
import w from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import "../chunk/DsaQZE4X.js";
|
|
7
|
-
import { G as N, a as S } from "../chunk/
|
|
7
|
+
import { G as N, a as S } from "../chunk/DstheLSK.js";
|
|
8
8
|
import { isBoolean as _, isArray as A, isString as h } from "@unicom-cloud/utils/is";
|
|
9
9
|
import "@unicom-cloud/utils/constant/platform";
|
|
10
10
|
import "../chunk/CdXR6dj7.js";
|
|
@@ -21,9 +21,9 @@ import "lodash/isEqualWith";
|
|
|
21
21
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
22
22
|
import "lodash/isNumber";
|
|
23
23
|
import "lodash/merge";
|
|
24
|
-
import "../chunk/
|
|
25
|
-
import "../chunk/
|
|
26
|
-
import "../chunk/
|
|
24
|
+
import "../chunk/BcdTSJks.js";
|
|
25
|
+
import "../chunk/CEAeR6xB.js";
|
|
26
|
+
import "../chunk/exc7v_Hl.js";
|
|
27
27
|
import "@unicom-cloud/utils/constant";
|
|
28
28
|
function g(o, t, i) {
|
|
29
29
|
if (i === void 0)
|