@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
package/input/InputElement.js
CHANGED
|
@@ -2,16 +2,15 @@ import { jsxs as K, Fragment as L, jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import Y from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import Z from "lodash/isFunction";
|
|
4
4
|
import _, { useState as ee, useRef as I, useImperativeHandle as te, useEffect as O } from "react";
|
|
5
|
-
import { u as oe } from "../chunk/
|
|
6
|
-
import { I as ne } from "../chunk/
|
|
7
|
-
import
|
|
5
|
+
import { u as oe } from "../chunk/BYdIoY50.js";
|
|
6
|
+
import { I as ne } from "../chunk/CQvM33Vg.js";
|
|
7
|
+
import k from "@unicom-cloud/utils/class-name";
|
|
8
8
|
import { f as re } from "../chunk/CftuXmo_.js";
|
|
9
|
-
import "../chunk/
|
|
9
|
+
import "../chunk/ClM74To2.js";
|
|
10
10
|
import { o as ie } from "../chunk/BKKEev13.js";
|
|
11
11
|
import { r as ae } from "../chunk/CIRG541s.js";
|
|
12
12
|
import se from "./useComposition.js";
|
|
13
|
-
import "
|
|
14
|
-
import h from "lodash/isPlainObject.js";
|
|
13
|
+
import { isPlainObject as h } from "@unicom-cloud/utils/is";
|
|
15
14
|
const le = 2, ue = (o) => {
|
|
16
15
|
if (!o)
|
|
17
16
|
return {};
|
|
@@ -47,12 +46,12 @@ const le = 2, ue = (o) => {
|
|
|
47
46
|
value: v,
|
|
48
47
|
autoFitWidth: n,
|
|
49
48
|
onClear: x,
|
|
50
|
-
readOnly:
|
|
49
|
+
readOnly: N,
|
|
51
50
|
onChange: T,
|
|
52
51
|
onKeyDown: j,
|
|
53
52
|
onPressEnter: F,
|
|
54
53
|
maxLength: m,
|
|
55
|
-
clearIcon:
|
|
54
|
+
clearIcon: P,
|
|
56
55
|
...i
|
|
57
56
|
} = o, V = ie(i, [
|
|
58
57
|
"error",
|
|
@@ -98,7 +97,7 @@ const le = 2, ue = (o) => {
|
|
|
98
97
|
), w = {
|
|
99
98
|
"aria-invalid": o.status === "error" || void 0,
|
|
100
99
|
...V,
|
|
101
|
-
readOnly:
|
|
100
|
+
readOnly: N,
|
|
102
101
|
maxLength: B,
|
|
103
102
|
disabled: l,
|
|
104
103
|
placeholder: d,
|
|
@@ -167,7 +166,7 @@ const le = 2, ue = (o) => {
|
|
|
167
166
|
}, [u.current]), /* @__PURE__ */ K(L, { children: [
|
|
168
167
|
y ? /* @__PURE__ */ K(L, { children: [
|
|
169
168
|
/* @__PURE__ */ c("input", { ref: r, ...w }),
|
|
170
|
-
!
|
|
169
|
+
!N && !l && y && v ? P !== void 0 ? /* @__PURE__ */ c(
|
|
171
170
|
"span",
|
|
172
171
|
{
|
|
173
172
|
tabIndex: 0,
|
|
@@ -179,7 +178,7 @@ const le = 2, ue = (o) => {
|
|
|
179
178
|
onMouseDown: (e) => {
|
|
180
179
|
e.preventDefault();
|
|
181
180
|
},
|
|
182
|
-
children:
|
|
181
|
+
children: P
|
|
183
182
|
}
|
|
184
183
|
) : /* @__PURE__ */ c(
|
|
185
184
|
ne,
|
package/input/Password.js
CHANGED
|
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@unicom-cloud/icons/IconUiEye";
|
|
3
3
|
import "@unicom-cloud/icons/IconUiEyeInvisible";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
6
|
-
import "../chunk/
|
|
7
|
-
import "../chunk/
|
|
8
|
-
import "
|
|
5
|
+
import "../chunk/CQvM33Vg.js";
|
|
6
|
+
import "../chunk/BYdIoY50.js";
|
|
7
|
+
import "../chunk/CXPOj2uy.js";
|
|
8
|
+
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
10
|
import { InputPassword as u } from "./Input.js";
|
|
11
11
|
export {
|
package/input/Search.js
CHANGED
|
@@ -4,9 +4,9 @@ import "@unicom-cloud/icons/IconUiSearch";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../button/index.js";
|
|
7
|
-
import "../chunk/
|
|
8
|
-
import "../chunk/
|
|
9
|
-
import "
|
|
7
|
+
import "../chunk/CQvM33Vg.js";
|
|
8
|
+
import "../chunk/CXPOj2uy.js";
|
|
9
|
+
import "@unicom-cloud/utils/class-name";
|
|
10
10
|
import "../chunk/BKKEev13.js";
|
|
11
11
|
import { InputSearch as h } from "./Input.js";
|
|
12
12
|
export {
|
package/input/Textarea.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/CQvM33Vg.js";
|
|
5
5
|
import "../chunk/B2yFlXke.js";
|
|
6
|
-
import "../chunk/
|
|
7
|
-
import "
|
|
8
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/CXPOj2uy.js";
|
|
7
|
+
import "@unicom-cloud/utils/class-name";
|
|
8
|
+
import "../chunk/ClM74To2.js";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
|
-
import { InputTextArea as
|
|
10
|
+
import { InputTextArea as s } from "./Input.js";
|
|
11
11
|
import "./autoSizeTextAreaHeight.js";
|
|
12
12
|
import "./useComposition.js";
|
|
13
|
-
import "
|
|
14
|
-
import "lodash/isPlainObject.js";
|
|
13
|
+
import "@unicom-cloud/utils/is";
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
s as default
|
|
17
16
|
};
|
package/input/useComposition.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef as d, useState as k } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Enter as y } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
3
3
|
function S({
|
|
4
4
|
value: a,
|
|
5
5
|
maxLength: v,
|
|
@@ -7,9 +7,9 @@ function S({
|
|
|
7
7
|
onKeyDown: u,
|
|
8
8
|
onPressEnter: f,
|
|
9
9
|
beforeTriggerValueChangeCallback: m,
|
|
10
|
-
normalizeHandler:
|
|
10
|
+
normalizeHandler: r
|
|
11
11
|
}) {
|
|
12
|
-
const c = d(!1), [e,
|
|
12
|
+
const c = d(!1), [e, p] = k(""), o = (t, i) => {
|
|
13
13
|
m && m(t), // Avoid triggering onChange repeatedly for the same value
|
|
14
14
|
// Compositionend is earlier than onchange in Firefox, different with chrome
|
|
15
15
|
t !== a && (v === void 0 || t.length <= v) && (s == null || s(t, i));
|
|
@@ -18,17 +18,17 @@ function S({
|
|
|
18
18
|
compositionValue: e,
|
|
19
19
|
triggerValueChangeCallback: o,
|
|
20
20
|
compositionHandler: (t) => {
|
|
21
|
-
c.current = t.type !== "compositionend", c.current || (
|
|
21
|
+
c.current = t.type !== "compositionend", c.current || (p(void 0), o(t.target.value, t));
|
|
22
22
|
},
|
|
23
23
|
valueChangeHandler: (t) => {
|
|
24
24
|
const i = t.target.value;
|
|
25
|
-
c.current ? (c.current = !1,
|
|
25
|
+
c.current ? (c.current = !1, p(i)) : (e && p(void 0), o(i, t));
|
|
26
26
|
},
|
|
27
27
|
keyDownHandler: (t) => {
|
|
28
28
|
const i = t.key;
|
|
29
29
|
if (!c.current && (u == null || u(t), i === y.key)) {
|
|
30
30
|
f == null || f(t);
|
|
31
|
-
const l =
|
|
31
|
+
const l = r == null ? void 0 : r("onPressEnter");
|
|
32
32
|
l && o(l(t.target.value), t);
|
|
33
33
|
}
|
|
34
34
|
}
|
package/input-number/index.js
CHANGED
|
@@ -5,11 +5,11 @@ import "@unicom-cloud/icons/IconUiPlus";
|
|
|
5
5
|
import "@unicom-cloud/icons/IconUiUp";
|
|
6
6
|
import "lodash/isNumber";
|
|
7
7
|
import "react";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/CQvM33Vg.js";
|
|
9
9
|
import "../chunk/BFTV6myl.js";
|
|
10
10
|
import { InputNumber as I } from "../input/Input.js";
|
|
11
|
-
import "
|
|
12
|
-
import "
|
|
11
|
+
import "@unicom-cloud/utils/class-name";
|
|
12
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
13
13
|
import "../chunk/BKKEev13.js";
|
|
14
14
|
import "./decimal.js";
|
|
15
15
|
import "./useSelectionRange.js";
|
package/input-tag/InputTag.js
CHANGED
|
@@ -1,56 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i, jsxs as _, Fragment as Ue } from "react/jsx-runtime";
|
|
2
2
|
import Ge from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import { b as Ke } from "../chunk/BJ9_azwQ.js";
|
|
4
|
-
import
|
|
4
|
+
import Te from "lodash/isArray";
|
|
5
5
|
import Ce, { useContext as qe, useRef as C, useState as Xe, useImperativeHandle as Ye, useMemo as Je, useEffect as Qe } from "react";
|
|
6
|
-
import { a as Ze, I as et } from "../chunk/
|
|
6
|
+
import { a as Ze, I as et } from "../chunk/CQvM33Vg.js";
|
|
7
7
|
import tt from "../draggable/index.js";
|
|
8
8
|
import { u as ot } from "../chunk/BFTV6myl.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as be } from "../chunk/CXPOj2uy.js";
|
|
10
10
|
import at from "../input/InputElement.js";
|
|
11
11
|
import rt from "../overflow-ellipsis/index.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
12
|
+
import st from "../popover/index.js";
|
|
13
|
+
import nt from "../tag/index.js";
|
|
14
|
+
import A from "@unicom-cloud/utils/class-name";
|
|
15
15
|
import { f as lt } from "../chunk/CftuXmo_.js";
|
|
16
|
-
import { g as
|
|
17
|
-
import "../chunk/
|
|
18
|
-
import {
|
|
16
|
+
import { g as ct } from "../chunk/Dh7Osrvr.js";
|
|
17
|
+
import "../chunk/ClM74To2.js";
|
|
18
|
+
import { Backspace as it } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
19
19
|
import { o as ut } from "../chunk/BKKEev13.js";
|
|
20
|
-
import { P as
|
|
21
|
-
import "
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
closable: i.closable
|
|
20
|
+
import { P as ye } from "../chunk/NPajzdOv.js";
|
|
21
|
+
import { isPlainObject as Pe } from "@unicom-cloud/utils/is";
|
|
22
|
+
const X = 300, pt = "responsive", ft = `__input_${Math.random().toFixed(10).slice(2)}`, T = (n) => n == null, M = (n) => {
|
|
23
|
+
n.target.tagName !== "INPUT" && n.preventDefault();
|
|
24
|
+
}, Ie = (n) => Te(n) ? n.map((c) => Pe(c) ? {
|
|
25
|
+
...c,
|
|
26
|
+
label: "label" in c ? c.label : c.value,
|
|
27
|
+
value: c.value,
|
|
28
|
+
closable: c.closable
|
|
30
29
|
} : {
|
|
31
|
-
label:
|
|
32
|
-
value:
|
|
33
|
-
}) : [], dt = (
|
|
34
|
-
const
|
|
30
|
+
label: c,
|
|
31
|
+
value: c
|
|
32
|
+
}) : [], dt = (n) => {
|
|
33
|
+
const c = C(0), d = C(n.length);
|
|
35
34
|
return Qe(() => {
|
|
36
|
-
|
|
37
|
-
}, [
|
|
38
|
-
},
|
|
39
|
-
prefixCls:
|
|
40
|
-
children:
|
|
35
|
+
c.current = n.length === 0 && d.current > 0 ? X : 0, d.current = n.length;
|
|
36
|
+
}, [n]), c;
|
|
37
|
+
}, $e = ({
|
|
38
|
+
prefixCls: n,
|
|
39
|
+
children: c,
|
|
41
40
|
animation: d
|
|
42
|
-
}) => /* @__PURE__ */
|
|
41
|
+
}) => /* @__PURE__ */ i("div", { className: `${n}-inner`, children: d ? /* @__PURE__ */ i(Ke, { component: null, children: c }) : c }), mt = {
|
|
43
42
|
animation: !0,
|
|
44
|
-
validate: (
|
|
43
|
+
validate: (n, c) => n && c.every((d) => d.value !== n)
|
|
45
44
|
};
|
|
46
|
-
function gt(
|
|
45
|
+
function gt(n, c) {
|
|
47
46
|
const {
|
|
48
47
|
getPrefixCls: d,
|
|
49
48
|
size: Ve,
|
|
50
49
|
componentConfig: E,
|
|
51
50
|
rtl: Y
|
|
52
51
|
} = qe(Ze), f = ot(
|
|
53
|
-
|
|
52
|
+
n,
|
|
54
53
|
mt,
|
|
55
54
|
E == null ? void 0 : E.InputTag
|
|
56
55
|
), {
|
|
@@ -67,7 +66,7 @@ function gt(s, i) {
|
|
|
67
66
|
animation: J,
|
|
68
67
|
saveOnBlur: ke,
|
|
69
68
|
dragToSort: xe,
|
|
70
|
-
icon:
|
|
69
|
+
icon: N,
|
|
71
70
|
prefix: Q,
|
|
72
71
|
suffix: Z,
|
|
73
72
|
addBefore: ee,
|
|
@@ -85,40 +84,40 @@ function gt(s, i) {
|
|
|
85
84
|
onBlur: H,
|
|
86
85
|
onPressEnter: W,
|
|
87
86
|
onRemove: L,
|
|
88
|
-
onClear:
|
|
87
|
+
onClear: B,
|
|
89
88
|
onClick: re,
|
|
90
89
|
...ze
|
|
91
|
-
} = f, o = d("input-tag"), V = "size" in f ? f.size : Ve,
|
|
92
|
-
defaultValue: "defaultValue" in f ?
|
|
93
|
-
value: "value" in f ?
|
|
94
|
-
}), [
|
|
90
|
+
} = f, o = d("input-tag"), V = "size" in f ? f.size : Ve, b = typeof m == "object" ? m.count : m, y = C(), U = C(null), G = C(), [w, se] = Xe(!1), [a, Oe] = be([], {
|
|
91
|
+
defaultValue: "defaultValue" in f ? Ie(f.defaultValue) : void 0,
|
|
92
|
+
value: "value" in f ? Ie(f.value) : void 0
|
|
93
|
+
}), [I, S] = be("", {
|
|
95
94
|
value: f.inputValue
|
|
96
95
|
}), Fe = dt(a), je = !!(xe && !g && !h);
|
|
97
|
-
Ye(
|
|
96
|
+
Ye(c, () => {
|
|
98
97
|
var e, t;
|
|
99
98
|
return {
|
|
100
|
-
blur: (e =
|
|
101
|
-
focus: (t =
|
|
99
|
+
blur: (e = y.current) == null ? void 0 : e.blur,
|
|
100
|
+
focus: (t = y.current) == null ? void 0 : t.focus,
|
|
102
101
|
getRootDOMNode: () => G.current
|
|
103
102
|
};
|
|
104
103
|
}, []);
|
|
105
|
-
const
|
|
104
|
+
const $ = (e, t) => {
|
|
106
105
|
h || g || ("value" in f || Oe(e), F == null || F(Me ? e : e.map((r) => r == null ? void 0 : r.value), t));
|
|
107
|
-
},
|
|
108
|
-
L == null || L(e, t, r),
|
|
106
|
+
}, ne = (e, t, r) => {
|
|
107
|
+
L == null || L(e, t, r), $(
|
|
109
108
|
[...a.slice(0, t), ...a.slice(t + 1)],
|
|
110
109
|
"remove"
|
|
111
110
|
);
|
|
112
|
-
}, He =
|
|
111
|
+
}, He = ct(
|
|
113
112
|
/* @__PURE__ */ new Map([
|
|
114
113
|
[
|
|
115
|
-
|
|
114
|
+
it.key,
|
|
116
115
|
(e) => {
|
|
117
116
|
if (!e.target.value && a.length)
|
|
118
117
|
for (let t = a.length - 1; t >= 0; t--) {
|
|
119
118
|
const r = a[t];
|
|
120
119
|
if (r.closable !== !1) {
|
|
121
|
-
|
|
120
|
+
ne(r, t, e);
|
|
122
121
|
return;
|
|
123
122
|
}
|
|
124
123
|
}
|
|
@@ -127,31 +126,31 @@ function gt(s, i) {
|
|
|
127
126
|
])
|
|
128
127
|
), le = async () => {
|
|
129
128
|
try {
|
|
130
|
-
const e = typeof P == "function" ? await P(
|
|
131
|
-
e && (
|
|
129
|
+
const e = typeof P == "function" ? await P(I, a) : !0;
|
|
130
|
+
e && ($(
|
|
132
131
|
a.concat({
|
|
133
|
-
value: e === !0 ?
|
|
134
|
-
label:
|
|
132
|
+
value: e === !0 ? I : e,
|
|
133
|
+
label: I
|
|
135
134
|
}),
|
|
136
135
|
"add"
|
|
137
136
|
), S(""));
|
|
138
137
|
} catch (e) {
|
|
139
138
|
console.error(e);
|
|
140
139
|
}
|
|
141
|
-
},
|
|
142
|
-
const
|
|
140
|
+
}, ce = (e, t, r = !1) => {
|
|
141
|
+
const s = e.value;
|
|
143
142
|
let l = e.label, u = !g && !h && e.closable !== !1;
|
|
144
|
-
const p = typeof
|
|
145
|
-
|
|
143
|
+
const p = typeof s == "object" ? t : s, v = (Be) => {
|
|
144
|
+
ne(e, t, Be);
|
|
146
145
|
};
|
|
147
|
-
if (!r && typeof
|
|
148
|
-
return t === a.length - 1 ? (l =
|
|
146
|
+
if (!r && typeof b == "number" && t >= b)
|
|
147
|
+
return t === a.length - 1 ? (l = ie(a.length - Number(b)), u = !1, { valueKey: p, dom: l }) : { valueKey: p, dom: null };
|
|
149
148
|
if (oe)
|
|
150
149
|
return {
|
|
151
150
|
valueKey: p,
|
|
152
151
|
dom: oe(
|
|
153
152
|
{
|
|
154
|
-
value:
|
|
153
|
+
value: s,
|
|
155
154
|
label: l,
|
|
156
155
|
closable: u,
|
|
157
156
|
onClose: v
|
|
@@ -165,7 +164,7 @@ function gt(s, i) {
|
|
|
165
164
|
onClose: v,
|
|
166
165
|
visible: !0,
|
|
167
166
|
children: lt(l),
|
|
168
|
-
closeIcon:
|
|
167
|
+
closeIcon: N == null ? void 0 : N.removeIcon,
|
|
169
168
|
__closeIconProps: {
|
|
170
169
|
onMouseDown: M
|
|
171
170
|
},
|
|
@@ -174,20 +173,20 @@ function gt(s, i) {
|
|
|
174
173
|
}),
|
|
175
174
|
title: typeof l == "string" ? l : void 0
|
|
176
175
|
};
|
|
177
|
-
return { valueKey: p, dom: /* @__PURE__ */
|
|
176
|
+
return { valueKey: p, dom: /* @__PURE__ */ i(nt, { ...Le }, `${p}-tag`) };
|
|
178
177
|
};
|
|
179
|
-
function
|
|
178
|
+
function ie(e) {
|
|
180
179
|
const t = typeof m == "object" && m.render ? m.render : () => /* @__PURE__ */ _("span", { className: `${o}-tag-ellipsis`, children: [
|
|
181
180
|
"+",
|
|
182
181
|
e
|
|
183
182
|
] }), r = Pe(m) && m.popoverProps;
|
|
184
|
-
return /* @__PURE__ */
|
|
185
|
-
|
|
183
|
+
return /* @__PURE__ */ i(
|
|
184
|
+
st,
|
|
186
185
|
{
|
|
187
|
-
content: /* @__PURE__ */
|
|
188
|
-
({ tagValue:
|
|
186
|
+
content: /* @__PURE__ */ i(Ue, { children: a.map((s, l) => ({ tagValue: s, tagIndex: l })).slice(-e).map(
|
|
187
|
+
({ tagValue: s, tagIndex: l }) => {
|
|
189
188
|
var u;
|
|
190
|
-
return (u =
|
|
189
|
+
return (u = ce(s, l, !0)) == null ? void 0 : u.dom;
|
|
191
190
|
}
|
|
192
191
|
) }),
|
|
193
192
|
...r || {},
|
|
@@ -196,66 +195,66 @@ function gt(s, i) {
|
|
|
196
195
|
);
|
|
197
196
|
}
|
|
198
197
|
const ue = async (e) => {
|
|
199
|
-
if (
|
|
198
|
+
if (U.current = null, Te(k) && k.length) {
|
|
200
199
|
const t = e.split(
|
|
201
200
|
new RegExp(`[${k.join("")}]`)
|
|
202
201
|
);
|
|
203
202
|
if (t.length > 1) {
|
|
204
|
-
|
|
203
|
+
U.current = Date.now();
|
|
205
204
|
const r = [];
|
|
206
205
|
await Promise.all(
|
|
207
|
-
t.map(async (
|
|
208
|
-
const l =
|
|
206
|
+
t.map(async (s) => {
|
|
207
|
+
const l = s ? typeof P == "function" ? await P(s, a) : !0 : !1;
|
|
209
208
|
l && r.push({
|
|
210
|
-
value: l === !0 ?
|
|
211
|
-
label:
|
|
209
|
+
value: l === !0 ? s : l,
|
|
210
|
+
label: s
|
|
212
211
|
});
|
|
213
212
|
})
|
|
214
|
-
), r.length &&
|
|
213
|
+
), r.length && $(a.concat(r), "add");
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
|
-
}, pe = _e && !h && !g && a.length ? /* @__PURE__ */
|
|
216
|
+
}, pe = _e && !h && !g && a.length ? /* @__PURE__ */ i(
|
|
218
217
|
et,
|
|
219
218
|
{
|
|
220
219
|
size: V,
|
|
221
220
|
className: `${o}-clear-icon`,
|
|
222
221
|
onClick: (e) => {
|
|
223
222
|
var t;
|
|
224
|
-
e.stopPropagation(),
|
|
223
|
+
e.stopPropagation(), $([], "clear"), w || (t = y.current) == null || t.focus(), B == null || B();
|
|
225
224
|
},
|
|
226
|
-
children:
|
|
225
|
+
children: N && N.clearIcon || /* @__PURE__ */ i(Ge, {})
|
|
227
226
|
},
|
|
228
227
|
"clearIcon"
|
|
229
228
|
) : null, fe = h || Ee, K = Je(() => {
|
|
230
229
|
const e = {};
|
|
231
|
-
return a.map((r,
|
|
230
|
+
return a.map((r, s) => {
|
|
232
231
|
const l = e[r.value] || 0, u = l >= 1;
|
|
233
232
|
e[r.value] = l + 1;
|
|
234
|
-
const { dom: p, valueKey: v } =
|
|
235
|
-
return Ce.isValidElement(p) ? /* @__PURE__ */
|
|
236
|
-
|
|
233
|
+
const { dom: p, valueKey: v } = ce(r, s);
|
|
234
|
+
return Ce.isValidElement(p) ? /* @__PURE__ */ i(
|
|
235
|
+
ye,
|
|
237
236
|
{
|
|
238
237
|
timeout: X,
|
|
239
238
|
classNames: "zoomIn",
|
|
240
239
|
children: p
|
|
241
240
|
},
|
|
242
|
-
u ? `${v}-${
|
|
241
|
+
u ? `${v}-${s}` : v
|
|
243
242
|
) : p;
|
|
244
243
|
});
|
|
245
244
|
}, [a]), q = [
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
|
|
245
|
+
/* @__PURE__ */ i(
|
|
246
|
+
ye,
|
|
248
247
|
{
|
|
249
248
|
timeout: X,
|
|
250
249
|
classNames: "zoomIn",
|
|
251
|
-
children: /* @__PURE__ */
|
|
250
|
+
children: /* @__PURE__ */ i(
|
|
252
251
|
at,
|
|
253
252
|
{
|
|
254
253
|
autoComplete: "off",
|
|
255
254
|
size: V,
|
|
256
255
|
disabled: fe,
|
|
257
256
|
readOnly: g,
|
|
258
|
-
ref:
|
|
257
|
+
ref: y,
|
|
259
258
|
autoFocus: Ae,
|
|
260
259
|
placeholder: a.length ? "" : De,
|
|
261
260
|
prefixCls: `${o}-input`,
|
|
@@ -264,17 +263,17 @@ function gt(s, i) {
|
|
|
264
263
|
pure: !0
|
|
265
264
|
},
|
|
266
265
|
onPressEnter: async (e) => {
|
|
267
|
-
|
|
266
|
+
I && e.preventDefault(), W == null || W(e), await le();
|
|
268
267
|
},
|
|
269
268
|
onFocus: (e) => {
|
|
270
|
-
!fe && !g && (
|
|
269
|
+
!fe && !g && (se(!0), j == null || j(e));
|
|
271
270
|
},
|
|
272
271
|
onBlur: async (e) => {
|
|
273
|
-
|
|
272
|
+
se(!1), H == null || H(e), ke && await le(), S("");
|
|
274
273
|
},
|
|
275
|
-
value:
|
|
274
|
+
value: I,
|
|
276
275
|
onChange: (e, t) => {
|
|
277
|
-
x == null || x(e, t), t.nativeEvent.inputType !== "insertFromPaste" && ue(e),
|
|
276
|
+
x == null || x(e, t), t.nativeEvent.inputType !== "insertFromPaste" && ue(e), U.current ? S("") : S(e);
|
|
278
277
|
},
|
|
279
278
|
onKeyDown: (e) => {
|
|
280
279
|
He(e), z == null || z(e);
|
|
@@ -287,7 +286,7 @@ function gt(s, i) {
|
|
|
287
286
|
},
|
|
288
287
|
ft
|
|
289
288
|
)
|
|
290
|
-
], We =
|
|
289
|
+
], We = !T(Q), de = !T(Z) || !T(pe), me = !T(ee), ge = !T(te), D = me || ge, ve = f.status || (Re ? "error" : void 0), he = A(o, {
|
|
291
290
|
[`${o}-size-${V}`]: V,
|
|
292
291
|
[`${o}-disabled`]: h,
|
|
293
292
|
[`${o}-${ve}`]: ve,
|
|
@@ -296,7 +295,7 @@ function gt(s, i) {
|
|
|
296
295
|
[`${o}-has-suffix`]: de,
|
|
297
296
|
[`${o}-has-placeholder`]: !a.length,
|
|
298
297
|
[`${o}-rtl`]: Y
|
|
299
|
-
}), R = { style: Se, className: we },
|
|
298
|
+
}), R = { style: Se, className: we }, Ne = /* @__PURE__ */ i(
|
|
300
299
|
"div",
|
|
301
300
|
{
|
|
302
301
|
...ut(ze, ["status", "size", "defaultValue", "value", "inputValue"]),
|
|
@@ -307,26 +306,26 @@ function gt(s, i) {
|
|
|
307
306
|
},
|
|
308
307
|
onClick: (e) => {
|
|
309
308
|
var t;
|
|
310
|
-
!w && ((t =
|
|
309
|
+
!w && ((t = y.current) == null || t.focus()), re && re(e);
|
|
311
310
|
},
|
|
312
311
|
ref: D ? void 0 : G,
|
|
313
312
|
children: /* @__PURE__ */ _("div", { className: `${o}-view`, children: [
|
|
314
|
-
We && /* @__PURE__ */
|
|
315
|
-
je ? /* @__PURE__ */
|
|
316
|
-
|
|
313
|
+
We && /* @__PURE__ */ i("div", { className: `${o}-prefix`, onMouseDown: M, children: Q }),
|
|
314
|
+
je ? /* @__PURE__ */ i(
|
|
315
|
+
$e,
|
|
317
316
|
{
|
|
318
317
|
prefixCls: o,
|
|
319
318
|
animation: J,
|
|
320
|
-
children: /* @__PURE__ */
|
|
319
|
+
children: /* @__PURE__ */ i(
|
|
321
320
|
tt,
|
|
322
321
|
{
|
|
323
322
|
itemWrapperStyle: { display: "inline-block" },
|
|
324
323
|
direction: "horizontal",
|
|
325
324
|
onIndexChange: (e, t) => {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
const p = l > u, [v] =
|
|
329
|
-
return
|
|
325
|
+
$(function(s, l, u) {
|
|
326
|
+
s = s.slice();
|
|
327
|
+
const p = l > u, [v] = s.splice(l, 1);
|
|
328
|
+
return s.splice(p ? u : u - 1, 0, v), s;
|
|
330
329
|
}(a, t, e), "sort");
|
|
331
330
|
},
|
|
332
331
|
children: K.concat(q)
|
|
@@ -334,21 +333,21 @@ function gt(s, i) {
|
|
|
334
333
|
)
|
|
335
334
|
},
|
|
336
335
|
"transitionGroupWithDrag"
|
|
337
|
-
) : /* @__PURE__ */
|
|
338
|
-
|
|
336
|
+
) : /* @__PURE__ */ i(
|
|
337
|
+
$e,
|
|
339
338
|
{
|
|
340
339
|
prefixCls: o,
|
|
341
340
|
animation: J,
|
|
342
|
-
children:
|
|
341
|
+
children: b === pt ? /* @__PURE__ */ i(
|
|
343
342
|
rt,
|
|
344
343
|
{
|
|
345
344
|
items: K,
|
|
346
345
|
suffixItems: q,
|
|
347
|
-
ellipsisNode: ({ ellipsisCount: e }) =>
|
|
346
|
+
ellipsisNode: ({ ellipsisCount: e }) => ie(e)
|
|
348
347
|
}
|
|
349
348
|
) : K.concat(q)
|
|
350
349
|
},
|
|
351
|
-
`max_tag_group_${
|
|
350
|
+
`max_tag_group_${b}`
|
|
352
351
|
),
|
|
353
352
|
de && /* @__PURE__ */ _("div", { className: `${o}-suffix`, onMouseDown: M, children: [
|
|
354
353
|
pe,
|
|
@@ -370,12 +369,12 @@ function gt(s, i) {
|
|
|
370
369
|
),
|
|
371
370
|
ref: G,
|
|
372
371
|
children: [
|
|
373
|
-
me && /* @__PURE__ */
|
|
374
|
-
|
|
375
|
-
ge && /* @__PURE__ */
|
|
372
|
+
me && /* @__PURE__ */ i("div", { className: `${o}-addbefore`, children: ee }),
|
|
373
|
+
Ne,
|
|
374
|
+
ge && /* @__PURE__ */ i("div", { className: `${o}-addafter`, children: te })
|
|
376
375
|
]
|
|
377
376
|
}
|
|
378
|
-
) :
|
|
377
|
+
) : Ne;
|
|
379
378
|
}
|
|
380
379
|
const vt = Ce.forwardRef(
|
|
381
380
|
gt
|
package/layout/Content.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f, useContext as i } from "react";
|
|
3
|
-
import { a as l } from "../chunk/
|
|
4
|
-
import
|
|
3
|
+
import { a as l } from "../chunk/CQvM33Vg.js";
|
|
4
|
+
import p from "@unicom-cloud/utils/class-name";
|
|
5
5
|
function C(t, o) {
|
|
6
|
-
const { className:
|
|
7
|
-
return /* @__PURE__ */ c("main", { ref: o, ...
|
|
6
|
+
const { className: s, children: e, ...n } = t, { getPrefixCls: a } = i(l), r = a("layout-content"), m = p(r, s);
|
|
7
|
+
return /* @__PURE__ */ c("main", { ref: o, ...n, className: m, children: e });
|
|
8
8
|
}
|
|
9
9
|
const u = f(C);
|
|
10
10
|
u.displayName = "LayoutContent";
|
package/layout/Footer.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as c, useContext as
|
|
3
|
-
import { a as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, useContext as l } from "react";
|
|
3
|
+
import { a as i } from "../chunk/CQvM33Vg.js";
|
|
4
|
+
import p from "@unicom-cloud/utils/class-name";
|
|
5
5
|
function u(o, t) {
|
|
6
|
-
const { className: e, children:
|
|
7
|
-
return /* @__PURE__ */
|
|
6
|
+
const { className: e, children: s, ...r } = o, { getPrefixCls: a } = l(i), m = a("layout-footer"), n = p(m, e);
|
|
7
|
+
return /* @__PURE__ */ f("footer", { ref: t, ...r, className: n, children: s });
|
|
8
8
|
}
|
|
9
9
|
const x = c(u);
|
|
10
10
|
x.displayName = "LayoutFooter";
|