@unicom-cloud/ui 0.8.102 → 0.8.104
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/Copy.js +1 -1
- package/LiquidFill.js +1 -1
- package/Marquee.js +2 -2
- package/QrCode.js +1 -1
- package/Spin.js +6 -3
- package/Tour.js +1 -1
- package/badge/Count.js +12 -12
- package/badge/index.js +35 -35
- package/components/common/space/index.js +24 -24
- package/copy/index.js +1 -1
- package/divider/index.js +45 -31
- package/grid/Col.js +32 -32
- package/grid/Row.js +53 -44
- package/liquid-fill/index.js +1 -1
- package/liquid-fill/interface.js +1 -0
- package/marquee/index.js +143 -221
- package/marquee/interface.js +1 -0
- package/marquee-/index.js +260 -0
- package/marquee-/interface.js +1 -0
- package/package.json +1 -1
- package/qr-code/index.js +1 -1
- package/spin/DotLoading.js +3 -3
- package/spin/index.js +70 -57
- package/style.css +1 -1
- package/table/hook/useThResizable.js +1 -1
- package/table/th-resizable/index.js +1 -1
- package/tour/index.js +1 -1
- package/tour/interface.js +1 -0
- package/types/pc/config-provider/interface.d.ts +8 -8
- package/types/pc/divider/interface.d.ts +9 -1
- package/types/pc/grid/Row.d.ts +2 -1
- package/types/pc/index.d.ts +4 -4
- package/types/pc/liquid-fill/index.d.ts +2 -113
- package/types/pc/liquid-fill/interface.d.ts +113 -0
- package/types/pc/marquee/index.d.ts +3 -60
- package/types/pc/marquee/interface.d.ts +95 -0
- package/types/pc/marquee-/index.d.ts +8 -0
- package/types/pc/marquee-/interface.d.ts +56 -0
- package/types/pc/qr-code/index.d.ts +1 -31
- package/types/pc/qr-code/interface.d.ts +26 -33
- package/types/pc/spin/interface.d.ts +2 -3
- package/types/pc/tour/index.d.ts +2 -45
- package/types/pc/tour/interface.d.ts +46 -0
- package/types/pc/utils/responsiveObserve.d.ts +8 -4
- package/typography/Ellipsis.js +1 -1
- package/typography/Operations.js +1 -1
- package/utils/responsiveObserve.js +32 -25
- package/version/index.js +1 -1
package/Copy.js
CHANGED
|
@@ -44,6 +44,7 @@ import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
|
44
44
|
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
45
45
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
46
46
|
import "./components/common/utils/reactDOM.js";
|
|
47
|
+
import "uuid";
|
|
47
48
|
import "@unicom-cloud/utils/file/saveAs";
|
|
48
49
|
import "@unicom-cloud/utils/screenfull";
|
|
49
50
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -53,7 +54,6 @@ import "lodash/isPlainObject";
|
|
|
53
54
|
import "react-is";
|
|
54
55
|
import "@unicom-cloud/utils/tree";
|
|
55
56
|
import "@unicom-cloud/utils/is";
|
|
56
|
-
import "uuid";
|
|
57
57
|
import "./dist/validate/src/index.js";
|
|
58
58
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
59
59
|
import "./config-provider/context.js";
|
package/LiquidFill.js
CHANGED
|
@@ -46,6 +46,7 @@ import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
|
46
46
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
47
47
|
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
48
48
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
49
|
+
import "uuid";
|
|
49
50
|
import "@unicom-cloud/utils/file/saveAs";
|
|
50
51
|
import "@unicom-cloud/utils/screenfull";
|
|
51
52
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -54,7 +55,6 @@ import "@unicom-cloud/utils/constant/ui.js";
|
|
|
54
55
|
import "react-is";
|
|
55
56
|
import "@unicom-cloud/utils/tree";
|
|
56
57
|
import "@unicom-cloud/utils/is";
|
|
57
|
-
import "uuid";
|
|
58
58
|
import "./dist/validate/src/index.js";
|
|
59
59
|
import "./config-provider/context.js";
|
|
60
60
|
import { default as fo } from "./liquid-fill/index.js";
|
package/Marquee.js
CHANGED
|
@@ -46,6 +46,7 @@ import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
|
46
46
|
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
47
47
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
48
48
|
import "./components/common/utils/resizeObserver.js";
|
|
49
|
+
import "uuid";
|
|
49
50
|
import "@unicom-cloud/utils/file/saveAs";
|
|
50
51
|
import "@unicom-cloud/utils/screenfull";
|
|
51
52
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -54,10 +55,9 @@ import "@unicom-cloud/utils/constant/ui.js";
|
|
|
54
55
|
import "react-is";
|
|
55
56
|
import "@unicom-cloud/utils/tree";
|
|
56
57
|
import "@unicom-cloud/utils/is";
|
|
57
|
-
import "uuid";
|
|
58
58
|
import "./dist/validate/src/index.js";
|
|
59
59
|
import "./config-provider/context.js";
|
|
60
|
-
import { default as fo } from "./marquee
|
|
60
|
+
import { default as fo } from "./marquee-/index.js";
|
|
61
61
|
export {
|
|
62
62
|
fo as default
|
|
63
63
|
};
|
package/QrCode.js
CHANGED
|
@@ -46,6 +46,7 @@ import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
|
46
46
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
47
47
|
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
48
48
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
49
|
+
import "uuid";
|
|
49
50
|
import "@unicom-cloud/utils/file/saveAs";
|
|
50
51
|
import "@unicom-cloud/utils/screenfull";
|
|
51
52
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -54,7 +55,6 @@ import "@unicom-cloud/utils/constant/ui.js";
|
|
|
54
55
|
import "react-is";
|
|
55
56
|
import "@unicom-cloud/utils/tree";
|
|
56
57
|
import "@unicom-cloud/utils/is";
|
|
57
|
-
import "uuid";
|
|
58
58
|
import "./dist/validate/src/index.js";
|
|
59
59
|
import "./config-provider/context.js";
|
|
60
60
|
import { default as fo } from "./qr-code/index.js";
|
package/Spin.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/icons/IconUiLoading";
|
|
3
|
+
import "@unicom-cloud/icons/IconUiLoadingDots";
|
|
4
|
+
import "@unicom-cloud/icons/IconUiLoadingInfinity";
|
|
5
|
+
import "@unicom-cloud/icons/IconUiLoadingRing";
|
|
6
|
+
import "@unicom-cloud/icons/IconUiLoadingSpinner";
|
|
3
7
|
import "lodash/debounce";
|
|
4
8
|
import "react";
|
|
5
9
|
import "./config-provider/ConfigProvider.js";
|
|
6
10
|
import "./components/common/hooks/useMergeProps.js";
|
|
7
11
|
import "@unicom-cloud/utils/class-name";
|
|
8
12
|
import "./components/common/utils/is.js";
|
|
9
|
-
import "./spin/DotLoading.js";
|
|
10
13
|
import "./config-provider/context.js";
|
|
11
|
-
import { default as
|
|
14
|
+
import { default as g } from "./spin/index.js";
|
|
12
15
|
export {
|
|
13
|
-
|
|
16
|
+
g as default
|
|
14
17
|
};
|
package/Tour.js
CHANGED
|
@@ -52,6 +52,7 @@ import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
|
52
52
|
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
53
53
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
54
54
|
import "./components/common/utils/resizeObserver.js";
|
|
55
|
+
import "uuid";
|
|
55
56
|
import "@unicom-cloud/utils/file/saveAs";
|
|
56
57
|
import "@unicom-cloud/utils/screenfull";
|
|
57
58
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -60,7 +61,6 @@ import "@unicom-cloud/utils/constant/ui.js";
|
|
|
60
61
|
import "react-is";
|
|
61
62
|
import "@unicom-cloud/utils/tree";
|
|
62
63
|
import "@unicom-cloud/utils/is";
|
|
63
|
-
import "uuid";
|
|
64
64
|
import "./dist/validate/src/index.js";
|
|
65
65
|
import "./config-provider/context.js";
|
|
66
66
|
import { default as co } from "./tour/index.js";
|
package/badge/Count.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import { PqbCSSTransition as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
const [
|
|
2
|
+
import { useState as u } from "react";
|
|
3
|
+
import d from "../components/common/hooks/usePrevious.js";
|
|
4
|
+
import { PqbCSSTransition as p } from "../components/common/utils/PqbCSSTransition.js";
|
|
5
|
+
import c from "@unicom-cloud/utils/class-name";
|
|
6
|
+
function $({ prefixCls: t, maxCount: r, count: e, className: n, style: o }) {
|
|
7
|
+
const [a, m] = u(!1), i = d(e), l = e !== i;
|
|
8
8
|
return /* @__PURE__ */ s(
|
|
9
|
-
|
|
9
|
+
p,
|
|
10
10
|
{
|
|
11
|
-
classNames:
|
|
11
|
+
classNames: `${t}-zoom`,
|
|
12
12
|
in: e > 0,
|
|
13
13
|
timeout: 300,
|
|
14
14
|
appear: !0,
|
|
@@ -17,11 +17,11 @@ function S({ prefixCls: t, maxCount: r, count: e, className: n, style: a }) {
|
|
|
17
17
|
onEntered: () => {
|
|
18
18
|
m(!0);
|
|
19
19
|
},
|
|
20
|
-
children: /* @__PURE__ */ s("span", { className: n, style:
|
|
20
|
+
children: /* @__PURE__ */ s("span", { className: n, style: o, children: /* @__PURE__ */ s(
|
|
21
21
|
"span",
|
|
22
22
|
{
|
|
23
|
-
className:
|
|
24
|
-
[`${t}-number-text`]:
|
|
23
|
+
className: c({
|
|
24
|
+
[`${t}-number-text`]: a && l
|
|
25
25
|
}),
|
|
26
26
|
children: r && e > r ? `${r}+` : e
|
|
27
27
|
},
|
|
@@ -31,5 +31,5 @@ function S({ prefixCls: t, maxCount: r, count: e, className: n, style: a }) {
|
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
$ as default
|
|
35
35
|
};
|
package/badge/index.js
CHANGED
|
@@ -40,14 +40,14 @@ function Q(O, B) {
|
|
|
40
40
|
dot: g,
|
|
41
41
|
dotAnimation: C,
|
|
42
42
|
maxCount: T,
|
|
43
|
-
color:
|
|
43
|
+
color: e,
|
|
44
44
|
dotStyle: w,
|
|
45
45
|
offset: E,
|
|
46
46
|
style: j,
|
|
47
47
|
status: m,
|
|
48
48
|
children: N,
|
|
49
49
|
...v
|
|
50
|
-
} = R, p = H(null),
|
|
50
|
+
} = R, p = H(null), t = D?.("badge"), a = { ...w || {} }, [x, y] = E || [];
|
|
51
51
|
x && (a.marginRight = -x), y && (a.marginTop = y), L(B, () => ({
|
|
52
52
|
dom: p.current,
|
|
53
53
|
getRootDOMNode() {
|
|
@@ -59,42 +59,42 @@ function Q(O, B) {
|
|
|
59
59
|
return /* @__PURE__ */ o(
|
|
60
60
|
"span",
|
|
61
61
|
{
|
|
62
|
-
className: l(`${
|
|
62
|
+
className: l(`${t}-custom-dot`, i),
|
|
63
63
|
style: a,
|
|
64
64
|
children: n
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
const r =
|
|
68
|
-
return u && !
|
|
67
|
+
const r = e ? f.includes(e) : !1, c = !e || r ? {} : { backgroundColor: e };
|
|
68
|
+
return u && !e && !m ? /* @__PURE__ */ o(
|
|
69
69
|
"span",
|
|
70
70
|
{
|
|
71
|
-
className: l(`${
|
|
71
|
+
className: l(`${t}-text`, i),
|
|
72
72
|
style: a,
|
|
73
73
|
children: u
|
|
74
74
|
}
|
|
75
|
-
) : m ||
|
|
76
|
-
!!b && /* @__PURE__ */ o("span", { className: `${
|
|
75
|
+
) : m || e && typeof n == "number" && n <= 0 ? /* @__PURE__ */ d("span", { className: `${t}-status-wrapper`, children: [
|
|
76
|
+
!!b && /* @__PURE__ */ o("span", { className: `${t}-status-prefix-text`, children: b }),
|
|
77
77
|
/* @__PURE__ */ o(
|
|
78
78
|
"span",
|
|
79
79
|
{
|
|
80
80
|
style: { ...c, ...a },
|
|
81
81
|
className: l(
|
|
82
|
-
`${
|
|
82
|
+
`${t}-status-dot`,
|
|
83
83
|
{
|
|
84
|
-
[`${
|
|
85
|
-
[`${
|
|
86
|
-
[`${
|
|
84
|
+
[`${t}-dot-pulse`]: C,
|
|
85
|
+
[`${t}-status-${m}`]: m,
|
|
86
|
+
[`${t}-color-${e}`]: e && r
|
|
87
87
|
},
|
|
88
88
|
i
|
|
89
89
|
)
|
|
90
90
|
}
|
|
91
91
|
),
|
|
92
|
-
!!u && /* @__PURE__ */ o("span", { className: `${
|
|
93
|
-
] }) : (g ||
|
|
92
|
+
!!u && /* @__PURE__ */ o("span", { className: `${t}-status-text`, children: u })
|
|
93
|
+
] }) : (g || e) && typeof n == "number" && n > 0 ? /* @__PURE__ */ o(
|
|
94
94
|
F,
|
|
95
95
|
{
|
|
96
|
-
classNames:
|
|
97
|
-
in: g || !!
|
|
96
|
+
classNames: `${t}-zoom`,
|
|
97
|
+
in: g || !!e,
|
|
98
98
|
timeout: 200,
|
|
99
99
|
appear: !0,
|
|
100
100
|
mountOnEnter: !0,
|
|
@@ -103,10 +103,10 @@ function Q(O, B) {
|
|
|
103
103
|
"span",
|
|
104
104
|
{
|
|
105
105
|
className: l(
|
|
106
|
-
`${
|
|
106
|
+
`${t}-dot`,
|
|
107
107
|
{
|
|
108
|
-
[`${
|
|
109
|
-
[`${
|
|
108
|
+
[`${t}-dot-pulse`]: C,
|
|
109
|
+
[`${t}-color-${e}`]: e && r
|
|
110
110
|
},
|
|
111
111
|
i
|
|
112
112
|
),
|
|
@@ -117,8 +117,8 @@ function Q(O, B) {
|
|
|
117
117
|
) : /* @__PURE__ */ o(
|
|
118
118
|
h,
|
|
119
119
|
{
|
|
120
|
-
prefixCls:
|
|
121
|
-
className: l(`${
|
|
120
|
+
prefixCls: t,
|
|
121
|
+
className: l(`${t}-number`, i),
|
|
122
122
|
style: { ...c, ...a },
|
|
123
123
|
maxCount: T,
|
|
124
124
|
count: n
|
|
@@ -134,18 +134,18 @@ function Q(O, B) {
|
|
|
134
134
|
"div",
|
|
135
135
|
{
|
|
136
136
|
className: l(
|
|
137
|
-
`${
|
|
138
|
-
`${
|
|
137
|
+
`${t}-ribbon`,
|
|
138
|
+
`${t}-ribbon-${M}`,
|
|
139
139
|
{
|
|
140
|
-
[`${
|
|
141
|
-
[`${
|
|
140
|
+
[`${t}-rtl`]: $,
|
|
141
|
+
[`${t}-color-${r}`]: r && c
|
|
142
142
|
},
|
|
143
143
|
s.className
|
|
144
144
|
),
|
|
145
145
|
style: I,
|
|
146
146
|
children: [
|
|
147
|
-
/* @__PURE__ */ o("span", { className: `${
|
|
148
|
-
/* @__PURE__ */ o("div", { className: `${
|
|
147
|
+
/* @__PURE__ */ o("span", { className: `${t}-ribbon-text`, children: s.text }),
|
|
148
|
+
/* @__PURE__ */ o("div", { className: `${t}-ribbon-corner` })
|
|
149
149
|
]
|
|
150
150
|
}
|
|
151
151
|
);
|
|
@@ -154,13 +154,13 @@ function Q(O, B) {
|
|
|
154
154
|
"span",
|
|
155
155
|
{
|
|
156
156
|
className: l(
|
|
157
|
-
|
|
157
|
+
t,
|
|
158
158
|
{
|
|
159
|
-
[`${
|
|
160
|
-
[`${
|
|
161
|
-
[`${
|
|
159
|
+
[`${t}-status`]: m,
|
|
160
|
+
[`${t}-no-children`]: !N,
|
|
161
|
+
[`${t}-rtl`]: $
|
|
162
162
|
},
|
|
163
|
-
!!s && `${
|
|
163
|
+
!!s && `${t}-ribbon-wrapper`,
|
|
164
164
|
A
|
|
165
165
|
),
|
|
166
166
|
ref: p,
|
|
@@ -176,7 +176,7 @@ function Q(O, B) {
|
|
|
176
176
|
const S = q(Q);
|
|
177
177
|
S.displayName = "Badge";
|
|
178
178
|
S.Count = h;
|
|
179
|
-
const
|
|
179
|
+
const st = f, nt = [
|
|
180
180
|
"default",
|
|
181
181
|
"processing",
|
|
182
182
|
"success",
|
|
@@ -184,8 +184,8 @@ const se = f, ne = [
|
|
|
184
184
|
"error"
|
|
185
185
|
];
|
|
186
186
|
export {
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
st as BADGE_COLORS,
|
|
188
|
+
nt as BADGE_STATUS,
|
|
189
189
|
h as BadgeCount,
|
|
190
190
|
S as default
|
|
191
191
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as s, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import { UI_COMMON_PREFIX as b } from "@unicom-cloud/utils/constant/ui";
|
|
3
3
|
import O from "lodash/isArray";
|
|
4
4
|
import R from "lodash/isNumber";
|
|
@@ -15,57 +15,57 @@ const u = {
|
|
|
15
15
|
size: "small",
|
|
16
16
|
direction: "horizontal"
|
|
17
17
|
}, d = f(
|
|
18
|
-
function(a,
|
|
19
|
-
const
|
|
18
|
+
function(a, $) {
|
|
19
|
+
const y = E(a, U, {}), {
|
|
20
20
|
className: N,
|
|
21
21
|
style: S,
|
|
22
22
|
children: h,
|
|
23
23
|
gap: G,
|
|
24
|
-
size:
|
|
24
|
+
size: w,
|
|
25
25
|
direction: n = "horizontal",
|
|
26
|
-
align:
|
|
27
|
-
alignItems:
|
|
26
|
+
align: x,
|
|
27
|
+
alignItems: P,
|
|
28
28
|
justifyContent: l,
|
|
29
|
-
wrap:
|
|
29
|
+
wrap: V,
|
|
30
30
|
split: p,
|
|
31
|
-
rtl:
|
|
31
|
+
rtl: j,
|
|
32
32
|
...z
|
|
33
|
-
} =
|
|
34
|
-
|
|
33
|
+
} = y, t = `${b}-space`, r = G ?? w, m = P ?? x ?? (n === "horizontal" ? "center" : ""), A = F(
|
|
34
|
+
t,
|
|
35
35
|
{
|
|
36
|
-
[`${
|
|
37
|
-
[`${
|
|
38
|
-
[`${
|
|
39
|
-
[`${
|
|
40
|
-
[`${e}-rtl`]: w
|
|
36
|
+
[`${t}-${n}`]: n,
|
|
37
|
+
[`${t}-justify-content-${l}`]: l,
|
|
38
|
+
[`${t}-align-items-${m}`]: m,
|
|
39
|
+
[`${t}-rtl`]: j
|
|
41
40
|
},
|
|
41
|
+
V ? `${t}-wrap` : `${t}-no-wrap`,
|
|
42
42
|
N
|
|
43
|
-
), i = (
|
|
43
|
+
), i = (e) => R(e) ? e : u[e] ?? u.small, C = {
|
|
44
44
|
...(() => {
|
|
45
45
|
if (typeof r == "string" || typeof r == "number")
|
|
46
46
|
return {
|
|
47
47
|
gap: `${i(r)}px`
|
|
48
48
|
};
|
|
49
49
|
if (O(r)) {
|
|
50
|
-
const
|
|
50
|
+
const e = i(r[1]), o = i(r[0]);
|
|
51
51
|
return {
|
|
52
|
-
rowGap: `${
|
|
53
|
-
columnGap: `${
|
|
52
|
+
rowGap: `${e}px`,
|
|
53
|
+
columnGap: `${o}px`
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
return {};
|
|
57
57
|
})(),
|
|
58
58
|
...S
|
|
59
59
|
}, v = L(h);
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
const I =
|
|
60
|
+
return /* @__PURE__ */ s("div", { ref: $, className: A, style: C, ...z, children: v.map((e, o) => {
|
|
61
|
+
const I = e?.key ?? o, M = p != null && o > 0;
|
|
62
62
|
return /* @__PURE__ */ _(k, { children: [
|
|
63
|
-
M && /* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
63
|
+
M && /* @__PURE__ */ s("div", { className: `${t}-item-split`, children: p }),
|
|
64
|
+
/* @__PURE__ */ s("div", { className: `${t}-item`, children: e })
|
|
65
65
|
] }, I);
|
|
66
66
|
}) });
|
|
67
67
|
}
|
|
68
|
-
), g = f((c, a) => /* @__PURE__ */
|
|
68
|
+
), g = f((c, a) => /* @__PURE__ */ s(d, { ref: a, ...c, direction: "vertical" })), T = Object.assign(d, {
|
|
69
69
|
displayName: "Space",
|
|
70
70
|
Vertical: g
|
|
71
71
|
});
|
package/copy/index.js
CHANGED
|
@@ -44,6 +44,7 @@ import "../dist/react-transition-group/src/SwitchTransition.js";
|
|
|
44
44
|
import "../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
45
45
|
import "../dist/react-transition-group/src/TransitionGroup.js";
|
|
46
46
|
import "../components/common/utils/reactDOM.js";
|
|
47
|
+
import "uuid";
|
|
47
48
|
import "@unicom-cloud/utils/file/saveAs";
|
|
48
49
|
import "@unicom-cloud/utils/screenfull";
|
|
49
50
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -53,7 +54,6 @@ import "lodash/isPlainObject";
|
|
|
53
54
|
import "react-is";
|
|
54
55
|
import "@unicom-cloud/utils/tree";
|
|
55
56
|
import { isFunction as v } from "@unicom-cloud/utils/is";
|
|
56
|
-
import "uuid";
|
|
57
57
|
import "../dist/validate/src/index.js";
|
|
58
58
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
59
59
|
import F from "../config-provider/context.js";
|
package/divider/index.js
CHANGED
|
@@ -1,47 +1,61 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f, useContext as b, useMemo as D } from "react";
|
|
3
3
|
import "../config-provider/ConfigProvider.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
4
|
+
import g from "../components/common/hooks/useMergeProps.js";
|
|
5
|
+
import P from "@unicom-cloud/utils/class-name";
|
|
6
|
+
import w from "../config-provider/context.js";
|
|
7
|
+
const z = {
|
|
8
8
|
type: "horizontal",
|
|
9
9
|
orientation: "center"
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
const { getPrefixCls:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
), {
|
|
11
|
+
function S(n, a) {
|
|
12
|
+
const { getPrefixCls: u, componentConfig: x } = b(w), h = g(
|
|
13
|
+
n,
|
|
14
|
+
z,
|
|
15
|
+
x?.Divider
|
|
16
|
+
), {
|
|
17
|
+
children: o,
|
|
18
|
+
style: m,
|
|
19
|
+
className: $,
|
|
20
|
+
type: p,
|
|
21
|
+
orientation: l,
|
|
22
|
+
borderStyle: r,
|
|
23
|
+
// 潘启宝添加
|
|
24
|
+
borderWidth: i,
|
|
25
|
+
// 潘启宝添加
|
|
26
|
+
...v
|
|
27
|
+
} = h, s = p === "horizontal", t = u?.("divider"), N = P(
|
|
17
28
|
t,
|
|
18
|
-
`${t}-${
|
|
29
|
+
`${t}-${p}`,
|
|
19
30
|
{
|
|
20
|
-
[`${t}-with-text`]:
|
|
21
|
-
[`${t}-with-text-${
|
|
31
|
+
[`${t}-with-text`]: o,
|
|
32
|
+
[`${t}-with-text-${l}`]: o && l
|
|
22
33
|
},
|
|
23
|
-
|
|
24
|
-
)
|
|
25
|
-
|
|
34
|
+
$
|
|
35
|
+
), C = D(() => {
|
|
36
|
+
const e = { ...m };
|
|
37
|
+
return r && (s ? e.borderBottomStyle = r : e.borderLeftStyle = r), i && (s ? e.borderBottomWidth = i : e.borderLeftWidth = i), e;
|
|
38
|
+
}, [r, i, s, m]);
|
|
39
|
+
return /* @__PURE__ */ c(
|
|
26
40
|
"div",
|
|
27
41
|
{
|
|
28
42
|
role: "separator",
|
|
29
|
-
ref:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
children:
|
|
43
|
+
ref: a,
|
|
44
|
+
style: C,
|
|
45
|
+
className: N,
|
|
46
|
+
...v,
|
|
47
|
+
children: o && s ? /* @__PURE__ */ c("span", { className: `${t}-text ${t}-text-${l}`, children: o }) : null
|
|
34
48
|
}
|
|
35
49
|
);
|
|
36
50
|
}
|
|
37
|
-
const
|
|
38
|
-
|
|
51
|
+
const d = f(
|
|
52
|
+
S
|
|
39
53
|
);
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
54
|
+
d.displayName = "Divider";
|
|
55
|
+
const y = f((n, a) => /* @__PURE__ */ c(d, { ref: a, type: "vertical", ...n }));
|
|
56
|
+
y.displayName = "DividerVertical";
|
|
57
|
+
d.Vertical = y;
|
|
44
58
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
59
|
+
y as DividerVertical,
|
|
60
|
+
d as default
|
|
47
61
|
};
|