@unicom-cloud/ui 0.8.100 → 0.8.101
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/Details.js +13 -2
- package/Divider.js +3 -2
- package/Flex.js +14 -4
- package/Loading.js +16 -3
- package/Space.js +3 -3
- package/Splitter.js +4 -3
- package/SuspenseFallbackTest.js +2 -4
- package/alert/index.js +60 -62
- package/back-top/index.js +32 -33
- package/calendar/index.js +85 -84
- package/components/common/development/index.js +44 -29
- package/components/common/empty/index.js +35 -23
- package/components/common/flex/index.js +64 -0
- package/components/common/flex/interface.js +9 -0
- package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
- package/components/common/space/index.js +71 -91
- package/components/common/suspense-fallback-test/index.js +16 -0
- package/components/common/utils/toArray.js +12 -0
- package/details/index.js +102 -62
- package/divider/index.js +27 -21
- package/empty/index.js +13 -13
- package/flex/index.js +43 -55
- package/flex/interface.js +1 -34
- package/icon/interface.js +1 -0
- package/icon-hover/interface.js +1 -0
- package/index.js +537 -536
- package/loading/index.js +72 -53
- package/loading/interface.js +1 -0
- package/modal/Modal.js +73 -74
- package/package.json +1 -1
- package/portal/interface.js +1 -0
- package/segmented/index.js +47 -47
- package/space/index.js +41 -35
- package/speech-synthesis/interface.js +1 -0
- package/splitter/Splitter.js +85 -89
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/index.js +5 -4
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +2 -11
- package/suspense-fallback-test/interface.js +1 -0
- package/table/Table.js +38 -38
- package/trigger/index.js +67 -70
- package/types/common/development/index.d.ts +7 -1
- package/types/common/development/interface.d.ts +22 -0
- package/types/common/empty/index.d.ts +2 -1
- package/types/common/flex/index.d.ts +14 -0
- package/types/common/flex/interface.d.ts +62 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
- package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
- package/types/common/space/index.d.ts +4 -4
- package/types/common/space/interface.d.ts +10 -18
- package/types/common/suspense-fallback-test/index.d.ts +7 -0
- package/types/common/suspense-fallback-test/interface.d.ts +1 -0
- package/types/common/utils/PqbCSSTransition.d.ts +1 -1
- package/types/common/utils/toArray.d.ts +13 -0
- package/types/pc/alert/index.d.ts +2 -1
- package/types/pc/alert/interface.d.ts +7 -1
- package/types/pc/badge/Count.d.ts +1 -1
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/WeekList.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/header/Panel.d.ts +1 -1
- package/types/pc/calendar/header/index.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/calendar/interface.d.ts +2 -1
- package/types/pc/cascader/interface.d.ts +1 -1
- package/types/pc/cascader/panel/List.d.ts +1 -1
- package/types/pc/cascader/panel/Option.d.ts +1 -1
- package/types/pc/cascader/panel/Search.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +2 -2
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/IconCheck.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +4 -0
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/date-picker/panel/Footer.d.ts +1 -1
- package/types/pc/date-picker/panel/Header.d.ts +1 -1
- package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
- package/types/pc/date-picker/panel/date/index.d.ts +1 -1
- package/types/pc/date-picker/panel/month/index.d.ts +1 -1
- package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
- package/types/pc/date-picker/panel/range/index.d.ts +1 -1
- package/types/pc/date-picker/panel/week/index.d.ts +1 -1
- package/types/pc/date-picker/panel/year/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +3 -2
- package/types/pc/details/interface.d.ts +16 -0
- package/types/pc/development/index.d.ts +2 -1
- package/types/pc/development/interface.d.ts +15 -0
- package/types/pc/divider/index.d.ts +7 -2
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/flex/index.d.ts +4 -4
- package/types/pc/flex/interface.d.ts +8 -53
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/IconSymbol.d.ts +1 -1
- package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
- package/types/pc/icon/index.d.ts +2 -7
- package/types/pc/icon/interface.d.ts +13 -0
- package/types/pc/icon-hover/index.d.ts +2 -8
- package/types/pc/icon-hover/interface.d.ts +8 -0
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
- package/types/pc/image/TriggerForToolbar.d.ts +1 -1
- package/types/pc/index.d.ts +60 -51
- package/types/pc/loading/index.d.ts +4 -3
- package/types/pc/loading/interface.d.ts +6 -0
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
- package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
- package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
- package/types/pc/overflow-ellipsis/index.d.ts +1 -1
- package/types/pc/pagination/PageItem.d.ts +3 -3
- package/types/pc/pagination/PageJumper.d.ts +1 -1
- package/types/pc/pagination/PageOption.d.ts +1 -1
- package/types/pc/portal/Portal.d.ts +2 -6
- package/types/pc/portal/index.d.ts +2 -9
- package/types/pc/portal/interface.d.ts +14 -0
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/LineProgess.d.ts +1 -1
- package/types/pc/progress/StepProgress.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +2 -2
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
- package/types/pc/result/403.d.ts +1 -1
- package/types/pc/result/404.d.ts +1 -1
- package/types/pc/result/500.d.ts +1 -1
- package/types/pc/segmented/interface.d.ts +6 -6
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +2 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/Input.d.ts +1 -1
- package/types/pc/slider/Tick.d.ts +1 -1
- package/types/pc/space/index.d.ts +6 -5
- package/types/pc/speech-synthesis/index.d.ts +3 -1
- package/types/pc/speech-synthesis/interface.d.ts +7 -0
- package/types/pc/spin/DotLoading.d.ts +1 -1
- package/types/pc/splitter/index.d.ts +5 -4
- package/types/pc/splitter/interface.d.ts +16 -16
- package/types/pc/suspense-fallback-test/index.d.ts +2 -3
- package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/summary/Cell.d.ts +1 -1
- package/types/pc/table/summary/Row.d.ts +1 -1
- package/types/pc/table/tbody/Td.d.ts +1 -1
- package/types/pc/table/tbody/index.d.ts +1 -1
- package/types/pc/table/tfoot/index.d.ts +1 -1
- package/types/pc/table/th-resizable/index.d.ts +1 -1
- package/types/pc/table/thead/Column.d.ts +1 -1
- package/types/pc/table/thead/index.d.ts +1 -1
- package/types/pc/tabs/TabContent.d.ts +1 -1
- package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimeColumn.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/upload/list/index.d.ts +1 -1
- package/types/pc/utils/toArray.d.ts +1 -5
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/virtual-list/VirtualList.d.ts +2 -38
- package/types/pc/virtual-list/index.d.ts +2 -1
- package/types/pc/virtual-list/interface.d.ts +56 -0
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/utils/index.js +1 -1
- package/utils/toArray.js +3 -10
- package/version/index.js +1 -1
- package/virtual-list/interface.js +1 -0
- package/components/common/space/toArray.js +0 -11
- package/flex/utils.js +0 -13
- package/loading/style/index.module.less.js +0 -4
- package/types/common/space/toArray.d.ts +0 -3
- package/types/pc/flex/utils.d.ts +0 -9
- package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
- /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
package/details/index.js
CHANGED
|
@@ -1,81 +1,121 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import b from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
3
|
+
import j from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
4
|
+
import T from "@unicom-cloud/icons/IconUiDown";
|
|
5
|
+
import M from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
6
|
+
import f from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
7
|
+
import { forwardRef as R, useContext as _, useState as q, useEffect as z } from "react";
|
|
8
8
|
import "../config-provider/ConfigProvider.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
9
|
+
import "lodash/isEqualWith";
|
|
10
|
+
import "../components/common/utils/is.js";
|
|
11
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
12
|
+
import "lodash/isNumber";
|
|
13
|
+
import "lodash/merge";
|
|
14
|
+
import "../components/common/utils/dom.js";
|
|
15
|
+
import "../components/common/hooks/useIntersectionObserver.js";
|
|
16
|
+
import A from "../components/common/hooks/useMergeProps.js";
|
|
17
|
+
import "../components/common/utils/reactDOM.js";
|
|
18
|
+
import "@unicom-cloud/utils/constant";
|
|
19
|
+
import B from "../components/common/hooks/useUpdateEffect.js";
|
|
20
|
+
import "lodash/debounce";
|
|
21
|
+
import d from "@unicom-cloud/utils/class-name";
|
|
22
|
+
import G from "../config-provider/context.js";
|
|
23
|
+
const H = {
|
|
13
24
|
type: "default"
|
|
14
25
|
};
|
|
15
|
-
function
|
|
16
|
-
const { getPrefixCls:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
function J(u, C) {
|
|
27
|
+
const { getPrefixCls: N, componentConfig: $, rtl: g } = _(G), v = A(
|
|
28
|
+
u,
|
|
29
|
+
H,
|
|
30
|
+
$?.Details
|
|
20
31
|
), {
|
|
21
|
-
style:
|
|
22
|
-
className:
|
|
23
|
-
type:
|
|
24
|
-
title:
|
|
25
|
-
content:
|
|
26
|
-
icon:
|
|
27
|
-
banner:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
style: h,
|
|
33
|
+
className: x,
|
|
34
|
+
type: s = "default",
|
|
35
|
+
title: l,
|
|
36
|
+
content: c,
|
|
37
|
+
icon: y,
|
|
38
|
+
banner: D,
|
|
39
|
+
open: t,
|
|
40
|
+
defaultOpen: I,
|
|
41
|
+
onOpen: U,
|
|
42
|
+
onClose: w,
|
|
43
|
+
...F
|
|
44
|
+
} = v, e = N?.("details"), [k, a] = q({ open: !!I }), n = t === void 0 ? k.open : t, m = y || {
|
|
45
|
+
default: /* @__PURE__ */ o(f, {}),
|
|
46
|
+
info: /* @__PURE__ */ o(f, {}),
|
|
47
|
+
success: /* @__PURE__ */ o(b, {}),
|
|
48
|
+
warning: /* @__PURE__ */ o(M, {}),
|
|
49
|
+
error: /* @__PURE__ */ o(j, {})
|
|
50
|
+
}[s], E = d(
|
|
36
51
|
e,
|
|
37
|
-
`${e}-${
|
|
52
|
+
`${e}-${s}`,
|
|
38
53
|
{
|
|
39
|
-
[`${e}-banner`]:
|
|
40
|
-
[`${e}-rtl`]:
|
|
54
|
+
[`${e}-banner`]: D,
|
|
55
|
+
[`${e}-rtl`]: g
|
|
41
56
|
},
|
|
42
|
-
|
|
57
|
+
x
|
|
43
58
|
);
|
|
44
|
-
|
|
59
|
+
B(() => (n ? U?.() : w?.(), () => {
|
|
60
|
+
}), [n]), z(() => {
|
|
61
|
+
if (t !== void 0)
|
|
62
|
+
return a((r) => {
|
|
63
|
+
const i = { ...r };
|
|
64
|
+
return i.open = t, i;
|
|
65
|
+
}), () => {
|
|
66
|
+
};
|
|
67
|
+
}, [t]);
|
|
68
|
+
const O = (r) => {
|
|
69
|
+
if (t !== void 0) {
|
|
70
|
+
r.preventDefault();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const i = r.target;
|
|
74
|
+
a((S) => ({
|
|
75
|
+
...S,
|
|
76
|
+
open: i.open
|
|
77
|
+
}));
|
|
78
|
+
}, P = (r) => {
|
|
79
|
+
t !== void 0 && r.preventDefault();
|
|
80
|
+
};
|
|
81
|
+
return /* @__PURE__ */ p(
|
|
45
82
|
"details",
|
|
46
83
|
{
|
|
47
|
-
ref:
|
|
48
|
-
style:
|
|
49
|
-
className:
|
|
84
|
+
ref: C,
|
|
85
|
+
style: h,
|
|
86
|
+
className: E,
|
|
50
87
|
role: "details",
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return l.open = i.target?.open, l;
|
|
55
|
-
});
|
|
56
|
-
},
|
|
57
|
-
...y,
|
|
88
|
+
open: n,
|
|
89
|
+
onToggle: O,
|
|
90
|
+
...F,
|
|
58
91
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
P,
|
|
64
|
-
|
|
65
|
-
className: m
|
|
66
|
-
|
|
67
|
-
|
|
92
|
+
/* @__PURE__ */ p(
|
|
93
|
+
"summary",
|
|
94
|
+
{
|
|
95
|
+
className: `${e}-summary-wrapper`,
|
|
96
|
+
onClick: P,
|
|
97
|
+
children: [
|
|
98
|
+
m && /* @__PURE__ */ o("div", { className: `${e}-icon`, children: m }),
|
|
99
|
+
l && /* @__PURE__ */ o("div", { className: `${e}-title`, children: l }),
|
|
100
|
+
/* @__PURE__ */ o(
|
|
101
|
+
T,
|
|
102
|
+
{
|
|
103
|
+
className: d(
|
|
104
|
+
`${e}-collapse-icon`,
|
|
105
|
+
n && `${e}-collapse-icon-open`
|
|
106
|
+
)
|
|
107
|
+
}
|
|
68
108
|
)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */ o("div", { className: `${e}-content-wrapper`, children:
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ o("div", { className: `${e}-content-wrapper`, children: c && /* @__PURE__ */ o("div", { className: `${e}-content`, children: c }) })
|
|
73
113
|
]
|
|
74
114
|
}
|
|
75
115
|
);
|
|
76
116
|
}
|
|
77
|
-
const
|
|
78
|
-
|
|
117
|
+
const K = R(J);
|
|
118
|
+
K.displayName = "Details";
|
|
79
119
|
export {
|
|
80
|
-
|
|
120
|
+
K as default
|
|
81
121
|
};
|
package/divider/index.js
CHANGED
|
@@ -1,41 +1,47 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as l, useContext as v } from "react";
|
|
3
3
|
import "../config-provider/ConfigProvider.js";
|
|
4
|
-
import
|
|
4
|
+
import N from "../components/common/hooks/useMergeProps.js";
|
|
5
5
|
import C from "@unicom-cloud/utils/class-name";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import h from "../config-provider/context.js";
|
|
7
|
+
const y = {
|
|
8
8
|
type: "horizontal",
|
|
9
9
|
orientation: "center"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
const { getPrefixCls:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
), { children: e, style:
|
|
11
|
+
function D(r, o) {
|
|
12
|
+
const { getPrefixCls: m, componentConfig: p } = v(h), d = N(
|
|
13
|
+
r,
|
|
14
|
+
y,
|
|
15
|
+
p?.Divider
|
|
16
|
+
), { children: e, style: f, className: x, type: n, orientation: i, ...$ } = d, t = m?.("divider"), u = C(
|
|
17
17
|
t,
|
|
18
|
-
`${t}-${
|
|
18
|
+
`${t}-${n}`,
|
|
19
19
|
{
|
|
20
20
|
[`${t}-with-text`]: e,
|
|
21
|
-
[`${t}-with-text-${
|
|
21
|
+
[`${t}-with-text-${i}`]: e && i
|
|
22
22
|
},
|
|
23
|
-
|
|
23
|
+
x
|
|
24
24
|
);
|
|
25
25
|
return /* @__PURE__ */ s(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
role: "separator",
|
|
29
|
-
ref:
|
|
30
|
-
className:
|
|
31
|
-
style:
|
|
32
|
-
|
|
33
|
-
children: e &&
|
|
29
|
+
ref: o,
|
|
30
|
+
className: u,
|
|
31
|
+
style: f,
|
|
32
|
+
...$,
|
|
33
|
+
children: e && n === "horizontal" ? /* @__PURE__ */ s("span", { className: `${t}-text ${t}-text-${i}`, children: e }) : null
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
const a = l(
|
|
38
|
+
D
|
|
39
|
+
);
|
|
40
|
+
a.displayName = "Divider";
|
|
41
|
+
const c = l((r, o) => /* @__PURE__ */ s(a, { ref: o, type: "vertical", ...r }));
|
|
42
|
+
c.displayName = "DividerVertical";
|
|
43
|
+
a.Vertical = c;
|
|
39
44
|
export {
|
|
40
|
-
|
|
45
|
+
c as DividerVertical,
|
|
46
|
+
a as default
|
|
41
47
|
};
|
package/empty/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import y from "../components/common/empty/index.js";
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { memo as f, forwardRef as c, useContext as l } from "react";
|
|
3
|
+
import { Empty as y } from "../components/common/empty/index.js";
|
|
4
4
|
import "../config-provider/ConfigProvider.js";
|
|
5
5
|
import C from "../components/common/hooks/useMergeProps.js";
|
|
6
6
|
import x from "../config-provider/context.js";
|
|
7
|
-
function
|
|
7
|
+
function E(o, t) {
|
|
8
8
|
const {
|
|
9
|
-
getPrefixCls:
|
|
10
|
-
locale:
|
|
11
|
-
componentConfig:
|
|
9
|
+
getPrefixCls: m,
|
|
10
|
+
locale: r,
|
|
11
|
+
componentConfig: e
|
|
12
12
|
} = l(x), p = C(
|
|
13
13
|
o,
|
|
14
14
|
{},
|
|
15
|
-
|
|
16
|
-
), { ...n } = p, s =
|
|
17
|
-
return /* @__PURE__ */
|
|
15
|
+
e?.Empty
|
|
16
|
+
), { ...n } = p, s = m?.("empty"), i = r.Empty.noData;
|
|
17
|
+
return /* @__PURE__ */ a(y, { ref: t, prefixCls: s, description: i, ...n });
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const g = f(c(E));
|
|
20
|
+
g.displayName = "Empty";
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
g as default
|
|
23
23
|
};
|
package/flex/index.js
CHANGED
|
@@ -1,59 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m, useContext as x } from "react";
|
|
3
|
+
import d from "../components/common/flex/index.js";
|
|
3
4
|
import "../config-provider/ConfigProvider.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
[`${t}-vertical`]: v
|
|
37
|
-
},
|
|
38
|
-
z(t, l)
|
|
39
|
-
), $ = {
|
|
40
|
-
...g,
|
|
41
|
-
...a ? { flex: a } : {},
|
|
42
|
-
...e && !i(e) ? { gap: e } : {}
|
|
43
|
-
};
|
|
44
|
-
return /* @__PURE__ */ c(F, { ref: o, className: y, style: $, ...P, children: N });
|
|
45
|
-
}
|
|
46
|
-
const s = n(
|
|
47
|
-
j
|
|
5
|
+
import "lodash/isEqualWith";
|
|
6
|
+
import "../components/common/utils/is.js";
|
|
7
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
8
|
+
import "lodash/isNumber";
|
|
9
|
+
import "lodash/merge";
|
|
10
|
+
import "../components/common/utils/dom.js";
|
|
11
|
+
import "../components/common/hooks/useIntersectionObserver.js";
|
|
12
|
+
import C from "../components/common/hooks/useMergeProps.js";
|
|
13
|
+
import "../components/common/utils/reactDOM.js";
|
|
14
|
+
import "@unicom-cloud/utils/constant";
|
|
15
|
+
import "lodash/debounce";
|
|
16
|
+
import F from "@unicom-cloud/utils/class-name";
|
|
17
|
+
import u from "../config-provider/context.js";
|
|
18
|
+
const N = {
|
|
19
|
+
children: void 0
|
|
20
|
+
}, r = m(
|
|
21
|
+
(o, t) => {
|
|
22
|
+
const { getPrefixCls: s, componentConfig: p, rtl: l } = x(u), n = C(
|
|
23
|
+
o,
|
|
24
|
+
N,
|
|
25
|
+
p?.Flex
|
|
26
|
+
), { className: a, ...c } = n, f = s?.("flex");
|
|
27
|
+
return /* @__PURE__ */ e(
|
|
28
|
+
d,
|
|
29
|
+
{
|
|
30
|
+
ref: t,
|
|
31
|
+
className: F(f, a),
|
|
32
|
+
rtl: l,
|
|
33
|
+
...c
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
}
|
|
48
37
|
);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
s.Vertical = m;
|
|
38
|
+
r.displayName = "Flex";
|
|
39
|
+
const i = m((o, t) => /* @__PURE__ */ e(r, { ref: t, direction: "column", ...o }));
|
|
40
|
+
i.displayName = "FlexVertical";
|
|
41
|
+
const B = Object.assign(r, {
|
|
42
|
+
Vertical: i
|
|
43
|
+
});
|
|
56
44
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
i as FlexVertical,
|
|
46
|
+
B as default
|
|
59
47
|
};
|
package/flex/interface.js
CHANGED
|
@@ -1,34 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"wrap",
|
|
3
|
-
"nowrap",
|
|
4
|
-
"wrap-reverse"
|
|
5
|
-
], t = [
|
|
6
|
-
"flex-start",
|
|
7
|
-
"flex-end",
|
|
8
|
-
"start",
|
|
9
|
-
"end",
|
|
10
|
-
"center",
|
|
11
|
-
"space-between",
|
|
12
|
-
"space-around",
|
|
13
|
-
"space-evenly",
|
|
14
|
-
"stretch",
|
|
15
|
-
"normal",
|
|
16
|
-
"left",
|
|
17
|
-
"right"
|
|
18
|
-
], s = [
|
|
19
|
-
"center",
|
|
20
|
-
"start",
|
|
21
|
-
"end",
|
|
22
|
-
"flex-start",
|
|
23
|
-
"flex-end",
|
|
24
|
-
"self-start",
|
|
25
|
-
"self-end",
|
|
26
|
-
"baseline",
|
|
27
|
-
"normal",
|
|
28
|
-
"stretch"
|
|
29
|
-
];
|
|
30
|
-
export {
|
|
31
|
-
s as alignItemsValues,
|
|
32
|
-
e as flexWrapValues,
|
|
33
|
-
t as justifyContentValues
|
|
34
|
-
};
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|