@unicom-cloud/ui 0.8.106 → 0.8.108
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/App.js +7 -0
- package/BackTop.js +2 -4
- package/Calendar.js +2 -2
- package/ColorPicker.js +15 -14
- package/Constant.js +4 -0
- package/Copy.js +4 -3
- package/Countdown.js +25 -0
- package/Grid.js +8 -10
- package/LiquidFill.js +4 -3
- package/List.js +7 -6
- package/Marquee.js +4 -3
- package/Modal.js +4 -2
- package/PageHeader.js +3 -2
- package/QrCode.js +4 -3
- package/RowCol.js +8 -0
- package/Segmented.js +14 -4
- package/Statistic.js +5 -4
- package/Tour.js +4 -3
- package/Transfer.js +4 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +26 -0
- package/app/context.js +9 -0
- package/app/index.js +9 -0
- package/app/interface.js +1 -0
- package/app/useApp.js +8 -0
- package/avatar/Group.js +1 -1
- package/back-top/index.js +44 -56
- package/button/index.js +52 -51
- package/calendar/Lunar.js +71 -0
- package/calendar/index.js +11 -11
- package/cascader/base/node.js +22 -20
- package/cascader/base/store.js +10 -10
- package/cascader/util.js +29 -27
- package/color-picker/Mode.js +8 -7
- package/color-picker/hooks/useColorPicker.js +56 -55
- package/color-picker/index.js +49 -48
- package/color-picker/utils.js +58 -57
- package/components/common/empty/index.js +2 -2
- package/components/common/flex/index.js +64 -55
- package/components/common/flex/interface.js +6 -6
- package/components/common/hooks/useInterval.js +6 -6
- package/components/common/icons/file/index.js +13 -11
- package/components/common/space/index.js +53 -53
- package/components/common/utils/dayjs.js +114 -126
- package/components/common/utils/is.js +98 -104
- package/components/common/utils/setDir.js +12 -0
- package/components/common/utils/setTheme.js +13 -13
- package/components/common/utils/toArray.js +7 -5
- package/config-provider/ConfigProvider.js +32 -30
- package/constant/index.js +4 -0
- package/copy/index.js +2 -1
- package/countdown/index.js +113 -0
- package/countdown/interface.js +1 -0
- package/countdown/util.js +29 -0
- package/descriptions/index.js +45 -45
- package/divider/index.js +28 -20
- package/dropdown/Button.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +30 -29
- package/form/FormItem.js +126 -122
- package/grid/Grid.js +56 -90
- package/grid/Item.js +44 -65
- package/grid/context.js +2 -6
- package/grid/index.js +6 -8
- package/grid/util.js +6 -44
- package/hooks/useResponsiveState.js +54 -0
- package/index.js +614 -605
- package/input/Button.js +12 -12
- package/input/Group.js +11 -12
- package/input/Input.js +112 -102
- package/input/InputElement.js +25 -24
- package/input/Search.js +24 -24
- package/layout/Sider.js +1 -1
- package/liquid-fill/index.js +4 -3
- package/list/Item.js +21 -21
- package/list/index.js +53 -52
- package/marquee/index.js +20 -19
- package/marquee-/index.js +4 -3
- package/mentions/util.js +9 -8
- package/modal/Confirm.js +17 -17
- package/modal/Modal.js +247 -237
- package/modal/index.js +4 -2
- package/modal/use-modal/index.js +2 -2
- package/package.json +1 -1
- package/page-header/index.js +57 -56
- package/pagination/Pagination.js +89 -92
- package/qr-code/index.js +4 -3
- package/radio/Group.js +1 -1
- package/row-col/Col-.js +88 -0
- package/row-col/Col.js +159 -0
- package/row-col/Row.js +73 -0
- package/row-col/context.js +5 -0
- package/row-col/index.js +11 -0
- package/row-col/interface.js +1 -0
- package/segmented/index.js +257 -206
- package/select/Select.js +191 -191
- package/select/util.js +50 -50
- package/select-view/Core.js +31 -28
- package/space/index.js +15 -13
- package/splitter/SplitBar.js +44 -46
- package/statistic/index.js +56 -55
- package/statistic/interface.js +4 -1
- package/style.css +1 -1
- package/table/Table.js +198 -210
- package/table/hook/useColumns.js +27 -26
- package/table/hook/useStickyClassNames.js +9 -8
- package/table/hook/useThResizable.js +4 -3
- package/table/th-resizable/index.js +2 -2
- package/table/thead/index.js +18 -16
- package/time-picker/util.js +20 -30
- package/timeline/Item.js +1 -1
- package/tour/index.js +4 -3
- package/transfer/index.js +93 -91
- package/trigger/index.js +66 -66
- package/types/common/development/interface.d.ts +3 -3
- package/types/common/flex/index.d.ts +3 -9
- package/types/common/flex/interface.d.ts +15 -4
- package/types/common/space/index.d.ts +3 -5
- package/types/common/space/interface.d.ts +2 -0
- package/types/common/utils/dayjs.d.ts +3 -1
- package/types/common/utils/is.d.ts +3 -4
- package/types/common/utils/setDir.d.ts +2 -0
- package/types/pc/app/App.d.ts +6 -0
- package/types/pc/app/context.d.ts +4 -0
- package/types/pc/app/index.d.ts +5 -0
- package/types/pc/app/interface.d.ts +17 -0
- package/types/pc/app/useApp.d.ts +3 -0
- package/types/pc/back-top/interface.d.ts +4 -17
- package/types/pc/button/interface.d.ts +2 -2
- package/types/pc/calendar/Lunar.d.ts +17 -0
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +17 -12
- package/types/pc/constant/index.d.ts +1 -0
- package/types/pc/countdown/interface.d.ts +65 -0
- package/types/pc/countdown/util.d.ts +7 -0
- package/types/pc/divider/interface.d.ts +1 -0
- package/types/pc/flex/index.d.ts +8 -6
- package/types/pc/flex/interface.d.ts +3 -10
- package/types/pc/form/FormItem.d.ts +1 -1
- package/types/pc/form/interface.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +2 -4
- package/types/pc/grid/Item.d.ts +1 -5
- package/types/pc/grid/context.d.ts +4 -15
- package/types/pc/grid/index.d.ts +4 -6
- package/types/pc/grid/interface.d.ts +14 -142
- package/types/pc/grid/util.d.ts +1 -10
- package/types/pc/hooks/useResponsiveState.d.ts +3 -0
- package/types/pc/index.d.ts +10 -4
- package/types/pc/input/Button.d.ts +2 -2
- package/types/pc/list/interface.d.ts +2 -1
- package/types/pc/message/index.d.ts +1 -9
- package/types/pc/message/interface.d.ts +8 -0
- package/types/pc/message/useMessage.d.ts +1 -2
- package/types/pc/modal/Modal.d.ts +1 -0
- package/types/pc/modal/config.d.ts +1 -2
- package/types/pc/modal/index.d.ts +2 -1
- package/types/pc/modal/interface.d.ts +17 -5
- package/types/pc/notification/index.d.ts +2 -9
- package/types/pc/notification/interface.d.ts +7 -0
- package/types/pc/notification/useNotification.d.ts +1 -2
- package/types/pc/pagination/PageOption.d.ts +0 -1
- package/types/pc/pagination/interface.d.ts +5 -6
- package/types/pc/{grid → row-col}/Col-.d.ts +1 -1
- package/types/pc/{grid → row-col}/Col.d.ts +1 -2
- package/types/pc/{grid → row-col}/Row.d.ts +1 -2
- package/types/pc/row-col/context.d.ts +6 -0
- package/types/pc/row-col/index.d.ts +7 -0
- package/types/pc/row-col/interface.d.ts +112 -0
- package/types/pc/segmented/index.d.ts +3 -7
- package/types/pc/segmented/interface.d.ts +38 -5
- package/types/pc/select-view/Core.d.ts +1 -8
- package/types/pc/select-view/index.d.ts +1 -8
- package/types/pc/select-view/interface.d.ts +9 -2
- package/types/pc/space/index.d.ts +5 -7
- package/types/pc/space/interface.d.ts +3 -10
- package/types/pc/statistic/index.d.ts +1 -1
- package/types/pc/statistic/interface.d.ts +1 -49
- package/types/pc/utils/is.d.ts +1 -1
- package/types/pc/utils/names.d.ts +422 -111
- package/types/pc/utils/responsiveObserve.d.ts +8 -8
- package/typography/Ellipsis.js +5 -4
- package/typography/Operations.js +4 -3
- package/utils/dayjs.js +13 -11
- package/utils/index.js +245 -244
- package/utils/is.js +65 -66
- package/utils/names.js +309 -150
- package/utils/responsiveObserve.js +43 -36
- package/version/index.js +1 -1
- package/grid/Col-.js +0 -86
- package/grid/Col.js +0 -169
- package/grid/Row.js +0 -96
- package/grid/hook/useResponsiveState.js +0 -38
- package/statistic/Countdown.js +0 -56
- package/statistic/util.js +0 -33
- package/types/pc/grid/hook/useResponsiveState.d.ts +0 -2
- package/types/pc/statistic/util.d.ts +0 -1
- /package/types/pc/{statistic/Countdown.d.ts → countdown/index.d.ts} +0 -0
package/descriptions/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import C from "lodash/isArray";
|
|
3
3
|
import V from "lodash/isNumber";
|
|
4
4
|
import q from "lodash/isPlainObject";
|
|
@@ -18,7 +18,7 @@ function Y(u) {
|
|
|
18
18
|
getPrefixCls: f,
|
|
19
19
|
componentConfig: h,
|
|
20
20
|
rtl: I,
|
|
21
|
-
size:
|
|
21
|
+
size: v
|
|
22
22
|
} = B(W), w = Q(
|
|
23
23
|
u,
|
|
24
24
|
X,
|
|
@@ -27,17 +27,17 @@ function Y(u) {
|
|
|
27
27
|
style: D,
|
|
28
28
|
className: L,
|
|
29
29
|
column: p,
|
|
30
|
-
title:
|
|
30
|
+
title: g,
|
|
31
31
|
data: b,
|
|
32
32
|
border: O,
|
|
33
|
-
labelStyle:
|
|
34
|
-
valueStyle:
|
|
33
|
+
labelStyle: $,
|
|
34
|
+
valueStyle: y,
|
|
35
35
|
colon: N,
|
|
36
36
|
layout: m,
|
|
37
|
-
size:
|
|
37
|
+
size: S,
|
|
38
38
|
tableLayout: j
|
|
39
|
-
} = w, n = f?.("descriptions"), [A, E] = G(),
|
|
40
|
-
K(() => (
|
|
39
|
+
} = w, n = f?.("descriptions"), [A, E] = G(), d = J();
|
|
40
|
+
K(() => (d.current = P.subscribe((s) => {
|
|
41
41
|
for (let t = 0; t < k.length; t++) {
|
|
42
42
|
const e = k[t];
|
|
43
43
|
if (s[e]) {
|
|
@@ -46,42 +46,42 @@ function Y(u) {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}), () => {
|
|
49
|
-
P.unsubscribe(
|
|
49
|
+
d.current && P.unsubscribe(d.current);
|
|
50
50
|
}), []);
|
|
51
|
-
let
|
|
52
|
-
q(p) && (
|
|
51
|
+
let r = 3;
|
|
52
|
+
q(p) && (r = p[A] || 3), V(p) && p > 0 && (r = p);
|
|
53
53
|
const i = [];
|
|
54
|
-
if (C(b) && b.length > 0 &&
|
|
54
|
+
if (C(b) && b.length > 0 && r) {
|
|
55
55
|
b.forEach((e) => {
|
|
56
|
-
const o = i[i.length - 1],
|
|
57
|
-
|
|
56
|
+
const o = i[i.length - 1], l = z(o);
|
|
57
|
+
l === 0 ? i.push([
|
|
58
58
|
{
|
|
59
59
|
...e,
|
|
60
|
-
span: e.span ? e.span >
|
|
60
|
+
span: e.span ? e.span > r ? r : e.span : 1
|
|
61
61
|
}
|
|
62
|
-
]) :
|
|
62
|
+
]) : l === r ? i.push([
|
|
63
63
|
{
|
|
64
64
|
...e,
|
|
65
|
-
span: e.span ? e.span >
|
|
65
|
+
span: e.span ? e.span > r ? r : e.span : 1
|
|
66
66
|
}
|
|
67
67
|
]) : o.push({
|
|
68
68
|
...e,
|
|
69
|
-
span: e.span ? e.span +
|
|
69
|
+
span: e.span ? e.span + l > r ? r - l : e.span : 1
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
const s = i[i.length - 1], t = z(s);
|
|
73
|
-
t <
|
|
73
|
+
t < r && (s[s.length - 1].span = s[s.length - 1].span + r - t);
|
|
74
74
|
}
|
|
75
75
|
function F(s, t) {
|
|
76
76
|
return /* @__PURE__ */ c(x, { children: [
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
const
|
|
77
|
+
/* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, o) => {
|
|
78
|
+
const l = e.span > 1 ? { colSpan: e.span } : {};
|
|
79
79
|
return /* @__PURE__ */ c(
|
|
80
80
|
"td",
|
|
81
81
|
{
|
|
82
82
|
className: `${n}-item-label`,
|
|
83
|
-
...
|
|
84
|
-
style:
|
|
83
|
+
...l,
|
|
84
|
+
style: $,
|
|
85
85
|
children: [
|
|
86
86
|
e.label,
|
|
87
87
|
N
|
|
@@ -90,14 +90,14 @@ function Y(u) {
|
|
|
90
90
|
`${e.key || o}_label`
|
|
91
91
|
);
|
|
92
92
|
}) }),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
const
|
|
95
|
-
return /* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, o) => {
|
|
94
|
+
const l = e.span > 1 ? { colSpan: e.span } : {};
|
|
95
|
+
return /* @__PURE__ */ a(
|
|
96
96
|
"td",
|
|
97
97
|
{
|
|
98
98
|
className: `${n}-item-value`,
|
|
99
|
-
...
|
|
100
|
-
style:
|
|
99
|
+
...l,
|
|
100
|
+
style: y,
|
|
101
101
|
children: e.value
|
|
102
102
|
},
|
|
103
103
|
`${e.key || o}_value`
|
|
@@ -106,19 +106,19 @@ function Y(u) {
|
|
|
106
106
|
] }, t);
|
|
107
107
|
}
|
|
108
108
|
function H(s, t) {
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
-
const
|
|
109
|
+
return /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, o) => {
|
|
110
|
+
const l = e.span > 1 ? { colSpan: e.span * 2 - 1 } : {};
|
|
111
111
|
return /* @__PURE__ */ c(x, { children: [
|
|
112
|
-
/* @__PURE__ */ c("td", { className: `${n}-item-label`, style:
|
|
112
|
+
/* @__PURE__ */ c("td", { className: `${n}-item-label`, style: $, children: [
|
|
113
113
|
e.label,
|
|
114
114
|
N
|
|
115
115
|
] }),
|
|
116
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ a(
|
|
117
117
|
"td",
|
|
118
118
|
{
|
|
119
119
|
className: `${n}-item-value`,
|
|
120
|
-
...
|
|
121
|
-
style:
|
|
120
|
+
...l,
|
|
121
|
+
style: y,
|
|
122
122
|
children: e.value
|
|
123
123
|
}
|
|
124
124
|
)
|
|
@@ -126,30 +126,30 @@ function Y(u) {
|
|
|
126
126
|
}) }, t);
|
|
127
127
|
}
|
|
128
128
|
function M(s, t) {
|
|
129
|
-
return /* @__PURE__ */
|
|
130
|
-
const
|
|
129
|
+
return /* @__PURE__ */ a("tr", { className: `${n}-row`, children: s.map((e, o) => {
|
|
130
|
+
const l = e.span > 1 ? { colSpan: e.span } : {};
|
|
131
131
|
return /* @__PURE__ */ c(
|
|
132
132
|
"td",
|
|
133
133
|
{
|
|
134
|
-
...
|
|
134
|
+
...l,
|
|
135
135
|
className: `${n}-item`,
|
|
136
136
|
children: [
|
|
137
137
|
/* @__PURE__ */ c(
|
|
138
138
|
"div",
|
|
139
139
|
{
|
|
140
140
|
className: `${n}-item-label-inline`,
|
|
141
|
-
style:
|
|
141
|
+
style: $,
|
|
142
142
|
children: [
|
|
143
143
|
e.label,
|
|
144
144
|
N
|
|
145
145
|
]
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ a(
|
|
149
149
|
"div",
|
|
150
150
|
{
|
|
151
151
|
className: `${n}-item-value-inline`,
|
|
152
|
-
style:
|
|
152
|
+
style: y,
|
|
153
153
|
children: e.value
|
|
154
154
|
}
|
|
155
155
|
)
|
|
@@ -167,15 +167,15 @@ function Y(u) {
|
|
|
167
167
|
{
|
|
168
168
|
[`${n}-border`]: O,
|
|
169
169
|
[`${n}-layout-${m}`]: m,
|
|
170
|
-
[`${n}-size-${
|
|
171
|
-
[`${n}-table-layout-fixed`]: j === "fixed"
|
|
172
|
-
[`${n}-rtl`]: I
|
|
170
|
+
[`${n}-size-${S || v}`]: S || v,
|
|
171
|
+
[`${n}-table-layout-fixed`]: j === "fixed"
|
|
173
172
|
},
|
|
173
|
+
I ? `${n}-rtl` : `${n}-ltr`,
|
|
174
174
|
L
|
|
175
175
|
);
|
|
176
176
|
return /* @__PURE__ */ c("div", { className: T, style: D, children: [
|
|
177
|
-
|
|
178
|
-
/* @__PURE__ */
|
|
177
|
+
g && /* @__PURE__ */ a("div", { className: `${n}-title`, children: g }),
|
|
178
|
+
/* @__PURE__ */ a("div", { className: `${n}-body`, children: /* @__PURE__ */ a("table", { className: `${n}-table`, cellPadding: 0, cellSpacing: 0, children: /* @__PURE__ */ a("tbody", { children: i.map((s, t) => R(s, t)) }) }) })
|
|
179
179
|
] });
|
|
180
180
|
}
|
|
181
181
|
Y.displayName = "Descriptions";
|
package/divider/index.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as f, useContext as
|
|
2
|
+
import { forwardRef as f, useContext as D, useMemo as g } from "react";
|
|
3
3
|
import "../config-provider/ConfigProvider.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import P from "../components/common/hooks/useMergeProps.js";
|
|
5
|
+
import S from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import w from "../config-provider/context.js";
|
|
7
7
|
const z = {
|
|
8
8
|
type: "horizontal",
|
|
9
9
|
orientation: "center"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
const { getPrefixCls:
|
|
11
|
+
function V(n, l) {
|
|
12
|
+
const { getPrefixCls: x, componentConfig: u } = D(w), h = P(
|
|
13
13
|
n,
|
|
14
14
|
z,
|
|
15
|
-
|
|
15
|
+
u?.Divider
|
|
16
16
|
), {
|
|
17
17
|
children: o,
|
|
18
18
|
style: m,
|
|
19
|
-
|
|
19
|
+
textStyle: $,
|
|
20
|
+
className: v,
|
|
20
21
|
type: p,
|
|
21
|
-
orientation:
|
|
22
|
+
orientation: a,
|
|
22
23
|
borderStyle: r,
|
|
23
24
|
// 潘启宝添加
|
|
24
25
|
borderWidth: i,
|
|
25
26
|
// 潘启宝添加
|
|
26
|
-
...
|
|
27
|
-
} = h, s = p === "horizontal", t =
|
|
27
|
+
...N
|
|
28
|
+
} = h, s = p === "horizontal", t = x?.("divider"), C = S(
|
|
28
29
|
t,
|
|
29
30
|
`${t}-${p}`,
|
|
30
31
|
{
|
|
31
32
|
[`${t}-with-text`]: o,
|
|
32
|
-
[`${t}-with-text-${
|
|
33
|
+
[`${t}-with-text-${a}`]: o && a
|
|
33
34
|
},
|
|
34
|
-
|
|
35
|
-
),
|
|
35
|
+
v
|
|
36
|
+
), b = g(() => {
|
|
36
37
|
const e = { ...m };
|
|
37
38
|
return r && (s ? e.borderBottomStyle = r : e.borderLeftStyle = r), i && (s ? e.borderBottomWidth = i : e.borderLeftWidth = i), e;
|
|
38
39
|
}, [r, i, s, m]);
|
|
@@ -40,19 +41,26 @@ function S(n, a) {
|
|
|
40
41
|
"div",
|
|
41
42
|
{
|
|
42
43
|
role: "separator",
|
|
43
|
-
ref:
|
|
44
|
-
style:
|
|
45
|
-
className:
|
|
46
|
-
...
|
|
47
|
-
children: o && s ? /* @__PURE__ */ c(
|
|
44
|
+
ref: l,
|
|
45
|
+
style: b,
|
|
46
|
+
className: C,
|
|
47
|
+
...N,
|
|
48
|
+
children: o && s ? /* @__PURE__ */ c(
|
|
49
|
+
"span",
|
|
50
|
+
{
|
|
51
|
+
style: $,
|
|
52
|
+
className: `${t}-text ${t}-text-${a}`,
|
|
53
|
+
children: o
|
|
54
|
+
}
|
|
55
|
+
) : null
|
|
48
56
|
}
|
|
49
57
|
);
|
|
50
58
|
}
|
|
51
59
|
const d = f(
|
|
52
|
-
|
|
60
|
+
V
|
|
53
61
|
);
|
|
54
62
|
d.displayName = "Divider";
|
|
55
|
-
const y = f((n,
|
|
63
|
+
const y = f((n, l) => /* @__PURE__ */ c(d, { ref: l, type: "vertical", ...n }));
|
|
56
64
|
y.displayName = "DividerVertical";
|
|
57
65
|
d.Vertical = y;
|
|
58
66
|
export {
|
package/dropdown/Button.js
CHANGED
package/empty/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function E(o, t) {
|
|
|
13
13
|
o,
|
|
14
14
|
{},
|
|
15
15
|
e?.Empty
|
|
16
|
-
), { ...n } = p, s = m?.("empty"), i = r
|
|
16
|
+
), { ...n } = p, s = m?.("empty"), i = r?.Empty?.noData;
|
|
17
17
|
return /* @__PURE__ */ a(y, { ref: t, prefixCls: s, description: i, ...n });
|
|
18
18
|
}
|
|
19
19
|
const g = f(c(E));
|
package/flex/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i, useContext as x } from "react";
|
|
3
3
|
import d from "../components/common/flex/index.js";
|
|
4
4
|
import "../config-provider/ConfigProvider.js";
|
|
5
5
|
import "lodash/isEqualWith";
|
|
@@ -9,39 +9,40 @@ import "lodash/isNumber";
|
|
|
9
9
|
import "lodash/merge";
|
|
10
10
|
import "../components/common/utils/dom.js";
|
|
11
11
|
import "../components/common/hooks/useIntersectionObserver.js";
|
|
12
|
-
import
|
|
12
|
+
import u from "../components/common/hooks/useMergeProps.js";
|
|
13
13
|
import "../components/common/utils/reactDOM.js";
|
|
14
14
|
import "@unicom-cloud/utils/constant";
|
|
15
15
|
import "lodash/debounce";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import C from "@unicom-cloud/utils/class-name";
|
|
17
|
+
import F from "../config-provider/context.js";
|
|
18
18
|
const N = {
|
|
19
19
|
children: void 0
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
)
|
|
38
|
-
r
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
20
|
+
}, m = i((o, t) => {
|
|
21
|
+
const { getPrefixCls: r, componentConfig: e, rtl: l } = x(F), n = u(
|
|
22
|
+
o,
|
|
23
|
+
N,
|
|
24
|
+
e?.Flex
|
|
25
|
+
), { className: c, ...a } = n, f = r?.("flex");
|
|
26
|
+
return /* @__PURE__ */ s(
|
|
27
|
+
d,
|
|
28
|
+
{
|
|
29
|
+
ref: t,
|
|
30
|
+
className: C(f, c),
|
|
31
|
+
rtl: l,
|
|
32
|
+
...a
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
});
|
|
36
|
+
m.displayName = "Flex";
|
|
37
|
+
const p = i((o, t) => {
|
|
38
|
+
const { direction: r = "column", ...e } = o;
|
|
39
|
+
return /* @__PURE__ */ s(m, { ...e, ref: t, direction: r });
|
|
40
|
+
});
|
|
41
|
+
p.displayName = "FlexVertical";
|
|
42
|
+
const B = Object.assign(m, {
|
|
43
|
+
Vertical: p
|
|
43
44
|
});
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
p as FlexVertical,
|
|
46
47
|
B as default
|
|
47
48
|
};
|