@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/qr-code/index.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 h from "../config-provider/context.js";
|
|
60
60
|
const q = {
|
package/spin/DotLoading.js
CHANGED
|
@@ -3,7 +3,7 @@ import m from "lodash/isNumber";
|
|
|
3
3
|
import { useContext as a } from "react";
|
|
4
4
|
import "../config-provider/ConfigProvider.js";
|
|
5
5
|
import l from "../config-provider/context.js";
|
|
6
|
-
function
|
|
6
|
+
function z(t) {
|
|
7
7
|
const { getPrefixCls: r } = a(l), i = `${r?.("spin")}-dot`, o = {
|
|
8
8
|
width: t.size,
|
|
9
9
|
height: t.size
|
|
@@ -16,10 +16,10 @@ function x(t) {
|
|
|
16
16
|
height: t.size,
|
|
17
17
|
width: m(e) && e > 0 ? e * 7 : ""
|
|
18
18
|
},
|
|
19
|
-
children: [...new Array(5)].map((d, n) => /* @__PURE__ */ s("div", { className: i, style: o }, n))
|
|
19
|
+
children: [...new Array(5)].map((d, n, f) => /* @__PURE__ */ s("div", { className: i, style: o }, n))
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
z as default
|
|
25
25
|
};
|
package/spin/index.js
CHANGED
|
@@ -1,93 +1,106 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { jsx as n, jsxs as N, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import P from "@unicom-cloud/icons/IconUiLoading";
|
|
3
|
+
import _ from "@unicom-cloud/icons/IconUiLoadingDots";
|
|
4
|
+
import D from "@unicom-cloud/icons/IconUiLoadingInfinity";
|
|
5
|
+
import F from "@unicom-cloud/icons/IconUiLoadingRing";
|
|
6
|
+
import H from "@unicom-cloud/icons/IconUiLoadingSpinner";
|
|
7
|
+
import M from "lodash/debounce";
|
|
8
|
+
import h, { useContext as q, useState as A, useCallback as B, useRef as G, useImperativeHandle as J, useEffect as K } from "react";
|
|
5
9
|
import "../config-provider/ConfigProvider.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { isEmptyReactNode as
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
import O from "../components/common/hooks/useMergeProps.js";
|
|
11
|
+
import m from "@unicom-cloud/utils/class-name";
|
|
12
|
+
import { isEmptyReactNode as Q } from "../components/common/utils/is.js";
|
|
13
|
+
import T from "../config-provider/context.js";
|
|
14
|
+
function V(C, S) {
|
|
15
|
+
const {
|
|
16
|
+
prefixCls: x,
|
|
17
|
+
getPrefixCls: I,
|
|
18
|
+
componentConfig: L
|
|
19
|
+
} = q(T), v = O(C, {}, L?.Spin), {
|
|
20
|
+
style: R,
|
|
21
|
+
className: b,
|
|
15
22
|
children: r,
|
|
16
|
-
loading:
|
|
17
|
-
size:
|
|
23
|
+
loading: t,
|
|
24
|
+
size: s,
|
|
18
25
|
icon: f,
|
|
19
|
-
element:
|
|
20
|
-
tip:
|
|
21
|
-
|
|
26
|
+
element: z,
|
|
27
|
+
tip: a,
|
|
28
|
+
type: U,
|
|
22
29
|
delay: i,
|
|
23
|
-
block:
|
|
30
|
+
block: k = !1,
|
|
24
31
|
fullscreen: p,
|
|
25
|
-
...
|
|
26
|
-
} =
|
|
27
|
-
|
|
32
|
+
...E
|
|
33
|
+
} = v, [g, u] = A(i ? !1 : t), o = B(M(u, i), [i]), c = i ? g : t, e = I?.("spin"), y = G(null);
|
|
34
|
+
J(S, () => ({
|
|
28
35
|
// 潘启宝添加于 2023年10月23日 星期一 10时52分55秒 CST
|
|
29
|
-
dom:
|
|
30
|
-
loading:
|
|
31
|
-
setLoading:
|
|
32
|
-
debouncedSetLoading:
|
|
33
|
-
})),
|
|
34
|
-
|
|
35
|
-
}), [
|
|
36
|
-
const j =
|
|
37
|
-
|
|
36
|
+
dom: y.current,
|
|
37
|
+
loading: g,
|
|
38
|
+
setLoading: u,
|
|
39
|
+
debouncedSetLoading: o
|
|
40
|
+
})), K(() => (i && o(t), () => {
|
|
41
|
+
o && o.cancel();
|
|
42
|
+
}), [o, i, t]);
|
|
43
|
+
const j = {
|
|
44
|
+
dot: _,
|
|
45
|
+
infinity: D,
|
|
46
|
+
ring: F,
|
|
47
|
+
circle: H,
|
|
48
|
+
default: P
|
|
49
|
+
}[U || "default"], w = /* @__PURE__ */ n("span", { className: `${e}-icon`, children: f ? h.cloneElement(f, {
|
|
50
|
+
className: `${x}-icon-ui-loading`,
|
|
38
51
|
style: {
|
|
39
|
-
fontSize:
|
|
52
|
+
fontSize: s
|
|
40
53
|
}
|
|
41
|
-
}) :
|
|
42
|
-
|
|
43
|
-
|
|
54
|
+
}) : z || /* @__PURE__ */ n(j, { style: { fontSize: s } }) }), d = /* @__PURE__ */ N($, { children: [
|
|
55
|
+
w,
|
|
56
|
+
a ? /* @__PURE__ */ n("div", { className: `${e}-tip`, children: a }) : null
|
|
44
57
|
] });
|
|
45
|
-
let
|
|
46
|
-
return
|
|
58
|
+
let l;
|
|
59
|
+
return Q(r) ? p ? c && (l = /* @__PURE__ */ n(
|
|
47
60
|
"div",
|
|
48
61
|
{
|
|
49
|
-
className:
|
|
62
|
+
className: m(
|
|
50
63
|
`${e}-loading-layer`,
|
|
51
64
|
`${e}-fullscreen`
|
|
52
65
|
),
|
|
53
|
-
style: { fontSize:
|
|
54
|
-
children:
|
|
66
|
+
style: { fontSize: s },
|
|
67
|
+
children: d
|
|
55
68
|
}
|
|
56
|
-
)) :
|
|
69
|
+
)) : l = d : l = /* @__PURE__ */ N($, { children: [
|
|
57
70
|
/* @__PURE__ */ n("div", { className: `${e}-children`, children: r }),
|
|
58
|
-
|
|
71
|
+
c && /* @__PURE__ */ n(
|
|
59
72
|
"div",
|
|
60
73
|
{
|
|
61
|
-
className:
|
|
74
|
+
className: m(
|
|
62
75
|
`${e}-loading-layer`,
|
|
63
76
|
p && `${e}-fullscreen`
|
|
64
77
|
// 潘启宝添加
|
|
65
78
|
),
|
|
66
|
-
style: { fontSize:
|
|
67
|
-
children: /* @__PURE__ */ n("span", { className: `${e}-loading-layer-inner`, children:
|
|
79
|
+
style: { fontSize: s },
|
|
80
|
+
children: /* @__PURE__ */ n("span", { className: `${e}-loading-layer-inner`, children: d })
|
|
68
81
|
}
|
|
69
82
|
)
|
|
70
83
|
] }), /* @__PURE__ */ n(
|
|
71
84
|
"div",
|
|
72
85
|
{
|
|
73
|
-
ref:
|
|
74
|
-
className:
|
|
86
|
+
ref: y,
|
|
87
|
+
className: m(
|
|
75
88
|
e,
|
|
76
89
|
{
|
|
77
|
-
[`${e}-block`]:
|
|
78
|
-
[`${e}-loading`]:
|
|
79
|
-
[`${e}-with-tip`]:
|
|
90
|
+
[`${e}-block`]: k,
|
|
91
|
+
[`${e}-loading`]: c,
|
|
92
|
+
[`${e}-with-tip`]: a && !r
|
|
80
93
|
},
|
|
81
|
-
|
|
94
|
+
b
|
|
82
95
|
),
|
|
83
|
-
style:
|
|
84
|
-
...
|
|
85
|
-
children:
|
|
96
|
+
style: R,
|
|
97
|
+
...E,
|
|
98
|
+
children: l
|
|
86
99
|
}
|
|
87
100
|
);
|
|
88
101
|
}
|
|
89
|
-
const
|
|
90
|
-
|
|
102
|
+
const W = h.forwardRef(V);
|
|
103
|
+
W.displayName = "Spin";
|
|
91
104
|
export {
|
|
92
|
-
|
|
105
|
+
W as default
|
|
93
106
|
};
|