@unicom-cloud/ui 0.8.98 → 0.8.99
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/Badge.js +53 -7
- package/LiquidFill.js +59 -2
- package/Marquee.js +61 -0
- package/QrCode.js +13 -9
- package/Segmented.js +11 -0
- package/Space.js +14 -6
- package/Splitter.js +7 -0
- package/Tour.js +13 -9
- package/badge/index.js +177 -84
- package/collapse/Collapse.js +54 -48
- package/components/common/space/index.js +90 -106
- package/index.js +356 -353
- package/liquid-fill/index.js +255 -2
- package/marquee/index.js +282 -0
- package/menu/Item.js +17 -16
- package/package.json +1 -1
- package/qr-code/index.js +53 -36
- package/rate/index.js +8 -8
- package/segmented/index.js +217 -0
- package/space/index.js +28 -29
- package/splitter/index.js +117 -0
- package/splitter/interface.js +1 -0
- package/style.css +1 -1
- package/tour/index.js +110 -88
- package/types/common/hooks/useMergeProps.d.ts +1 -1
- package/types/common/space/index.d.ts +6 -5
- package/types/common/space/interface.d.ts +29 -16
- package/types/pc/badge/index.d.ts +4 -4
- package/types/pc/badge/interface.d.ts +26 -0
- package/types/pc/collapse/interface.d.ts +4 -0
- package/types/pc/config-provider/interface.d.ts +7 -1
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/index.d.ts +10 -4
- package/types/pc/liquid-fill/index.d.ts +114 -1
- package/types/pc/marquee/index.d.ts +61 -0
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/qr-code/index.d.ts +1 -1
- package/types/pc/rate/index.d.ts +2 -2
- package/types/pc/segmented/index.d.ts +8 -0
- package/types/pc/segmented/interface.d.ts +88 -0
- package/types/pc/space/index.d.ts +3 -1
- package/types/pc/space/interface.d.ts +6 -10
- package/types/pc/splitter/index.d.ts +4 -0
- package/types/pc/splitter/interface.d.ts +70 -0
- package/types/pc/tour/index.d.ts +6 -1
- package/types/pc/utils/names.d.ts +18 -0
- package/typography/Ellipsis.js +1 -1
- package/utils/names.js +12 -0
- package/version/index.js +1 -1
- package/_virtual/_commonjsHelpers.js +0 -6
- package/_virtual/index.js +0 -7
- package/_virtual/index2.js +0 -4
- package/liquid-fill/LiquidFill.js +0 -226
- package/liquid-fill/LiquidFill2.js +0 -3
- package/space-/index.js +0 -93
- package/types/common/utils/color.d.ts +0 -1
- package/types/common/utils/computeScrollIntoView.d.ts +0 -1
- package/types/common/utils/index.d.ts +0 -45
- package/types/common/utils/math.d.ts +0 -1
- package/types/common/utils/reactTransitionGroup.d.ts +0 -1
- package/types/common/utils/tree.d.ts +0 -1
- package/types/common/utils/tween.d.ts +0 -1
- package/types/common/utils/uuid.d.ts +0 -1
- package/types/common/utils/validate.d.ts +0 -1
- package/types/pc/liquid-fill/LiquidFill.d.ts +0 -115
- package/types/pc/liquid-fill/LiquidFill2.d.ts +0 -1
- package/types/pc/space-/index.d.ts +0 -6
- package/types/pc/space-/interface.d.ts +0 -38
- /package/{space- → components/common/space}/toArray.js +0 -0
- /package/{space- → segmented}/interface.js +0 -0
- /package/types/{pc/space- → common/space}/toArray.d.ts +0 -0
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import { useContext as nt, useRef as P, useState as O, useEffect as j } from "react";
|
|
3
|
-
import "../config-provider/ConfigProvider.js";
|
|
4
|
-
import "@unicom-cloud/utils/case-name";
|
|
5
|
-
import at from "@unicom-cloud/utils/class-name";
|
|
6
|
-
import "../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
7
|
-
import "@unicom-cloud/utils/constant/ui";
|
|
8
|
-
import "../utils/contextHolder.js";
|
|
9
|
-
import "@unicom-cloud/utils/dayjs";
|
|
10
|
-
import "@unicom-cloud/utils/clipboard-copy";
|
|
11
|
-
import "../components/common/utils/dayjs.js";
|
|
12
|
-
import "../components/common/utils/dom.js";
|
|
13
|
-
import "@unicom-cloud/utils/file/fileToURL";
|
|
14
|
-
import "lodash/escapeRegExp";
|
|
15
|
-
import "lodash/isArray";
|
|
16
|
-
import "lodash/isNumber";
|
|
17
|
-
import "lodash/isString";
|
|
18
|
-
import "lodash/isFunction";
|
|
19
|
-
import "lodash/throttle";
|
|
20
|
-
import "../components/common/utils/is.js";
|
|
21
|
-
import "lodash/camelCase";
|
|
22
|
-
import "lodash/capitalize";
|
|
23
|
-
import "lodash/cloneDeep";
|
|
24
|
-
import "lodash/debounce";
|
|
25
|
-
import "lodash/get";
|
|
26
|
-
import "lodash/has";
|
|
27
|
-
import "lodash/kebabCase";
|
|
28
|
-
import st from "lodash/merge";
|
|
29
|
-
import "lodash/mergeWith";
|
|
30
|
-
import "lodash/set";
|
|
31
|
-
import "lodash/setWith";
|
|
32
|
-
import "lodash/snakeCase";
|
|
33
|
-
import "lodash/startCase";
|
|
34
|
-
import "lodash/uniq";
|
|
35
|
-
import "lodash/upperFirst";
|
|
36
|
-
import "@unicom-cloud/utils/math";
|
|
37
|
-
import "lodash/isPlainObject";
|
|
38
|
-
import "../dist/react-transition-group/src/CSSTransition.js";
|
|
39
|
-
import "../dist/react-transition-group/src/ReplaceTransition.js";
|
|
40
|
-
import "../dist/react-transition-group/src/SwitchTransition.js";
|
|
41
|
-
import "../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
42
|
-
import "../dist/react-transition-group/src/TransitionGroup.js";
|
|
43
|
-
import "../components/common/utils/reactDOM.js";
|
|
44
|
-
import "@unicom-cloud/utils/file/saveAs";
|
|
45
|
-
import "@unicom-cloud/utils/screenfull";
|
|
46
|
-
import "@unicom-cloud/utils/constant/ui.js";
|
|
47
|
-
import "@unicom-cloud/utils/tree";
|
|
48
|
-
import "@unicom-cloud/utils/is";
|
|
49
|
-
import { v4 as b } from "uuid";
|
|
50
|
-
import "../dist/validate/src/index.js";
|
|
51
|
-
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
52
|
-
import mt from "../config-provider/context.js";
|
|
53
|
-
const se = (D) => {
|
|
54
|
-
const { getPrefixCls: I, componentConfig: V } = nt(mt), {
|
|
55
|
-
style: _,
|
|
56
|
-
className: E,
|
|
57
|
-
value: A = 0.5,
|
|
58
|
-
size: i = 200,
|
|
59
|
-
fontSize: h,
|
|
60
|
-
waveColor: F = "rgb(var(--pqb-blue-6))",
|
|
61
|
-
backgroundColor: N = "var(--pqb-color-neutral-1)",
|
|
62
|
-
textColor: H = "var(--pqb-color-neutral-8)",
|
|
63
|
-
showPercent: Y = !0,
|
|
64
|
-
duration: y = 2e3,
|
|
65
|
-
waveCount: c = 3,
|
|
66
|
-
waveAmplitude: J = 10,
|
|
67
|
-
borderColor: q = "var(--pqb-color-neutral-4)",
|
|
68
|
-
borderWidth: g = 2,
|
|
69
|
-
outerBorderColor: K = q,
|
|
70
|
-
outerBorderWidth: w = 0,
|
|
71
|
-
borderGap: Q = 2,
|
|
72
|
-
decimalPlaces: U = 0,
|
|
73
|
-
percentFontScale: X = 0.5,
|
|
74
|
-
waveSpeedVariation: Z = 0.5
|
|
75
|
-
} = st({}, V?.LiquidFill, D), n = I?.("liquid-fill"), d = P({
|
|
76
|
-
clipPath: b(),
|
|
77
|
-
// 裁剪路径ID
|
|
78
|
-
waveGradient: b(),
|
|
79
|
-
// 波浪渐变ID
|
|
80
|
-
bgGradient: b()
|
|
81
|
-
// 背景渐变ID
|
|
82
|
-
}).current, tt = P(null), o = P({
|
|
83
|
-
fill: 0,
|
|
84
|
-
// 填充动画ID
|
|
85
|
-
wave: 0,
|
|
86
|
-
// 波浪动画ID
|
|
87
|
-
startTime: 0
|
|
88
|
-
// 动画开始时间
|
|
89
|
-
}).current, [$, G] = O(0), [et, z] = O([]), M = i / 2 - w / 2, W = M - Q - g / 2, m = W - g / 2, e = i / 2, S = m * 2, rt = S * ($ / 100) + g / 2, k = (r, t) => {
|
|
90
|
-
if (typeof t == "string") return null;
|
|
91
|
-
const { from: s, to: l, direction: p = "vertical" } = t;
|
|
92
|
-
return /* @__PURE__ */ x("linearGradient", { id: r, x1: "0%", y1: "0%", x2: p === "horizontal" ? "100%" : "0%", y2: p === "horizontal" ? "0%" : "100%", children: [
|
|
93
|
-
/* @__PURE__ */ a("stop", { offset: "0%", stopColor: s }),
|
|
94
|
-
/* @__PURE__ */ a("stop", { offset: "100%", stopColor: l })
|
|
95
|
-
] });
|
|
96
|
-
}, B = (r, t) => typeof r == "string" ? r : `url(#${t})`, ot = (r, t, s) => {
|
|
97
|
-
const l = [], v = e - m, L = e + m;
|
|
98
|
-
for (let f = 0; f <= 30; f++) {
|
|
99
|
-
const u = v + f / 30 * S, C = Math.min(
|
|
100
|
-
e + m - rt + // 这里原来是减去 waterHeight,现在直接使用 waterHeight
|
|
101
|
-
r * Math.sin((u - v) * t + s),
|
|
102
|
-
e + m
|
|
103
|
-
);
|
|
104
|
-
l.push([u, C]);
|
|
105
|
-
}
|
|
106
|
-
return l.push([L, e + m]), l.push([v, e + m]), l.map(([f, u], C) => `${C === 0 ? "M" : "L"}${f} ${u}`).join(" ");
|
|
107
|
-
}, it = () => Array.from({ length: c }).map((r, t) => {
|
|
108
|
-
const s = J * (c - t) / c, l = 0.02 * (t + 1), p = et[t] || 0;
|
|
109
|
-
return /* @__PURE__ */ a(
|
|
110
|
-
"path",
|
|
111
|
-
{
|
|
112
|
-
className: `${n}-path`,
|
|
113
|
-
d: ot(s, l, p),
|
|
114
|
-
fill: B(F, d.waveGradient),
|
|
115
|
-
fillOpacity: 0.3 + 0.7 / c * t
|
|
116
|
-
},
|
|
117
|
-
t
|
|
118
|
-
);
|
|
119
|
-
}), R = () => {
|
|
120
|
-
z(
|
|
121
|
-
(r) => r.map(
|
|
122
|
-
(t, s) => t + 0.02 * (s + 1) * (1 + Z * Math.random())
|
|
123
|
-
)
|
|
124
|
-
), $ < 100 && (o.wave = requestAnimationFrame(R));
|
|
125
|
-
}, T = (r) => {
|
|
126
|
-
o.startTime || (o.startTime = r);
|
|
127
|
-
const t = r - o.startTime, s = Math.min(t / y, 1) * A * 100;
|
|
128
|
-
G(s), t < y && (o.fill = requestAnimationFrame(T));
|
|
129
|
-
};
|
|
130
|
-
return j(() => {
|
|
131
|
-
z(Array.from({ length: c }, (r, t) => t * Math.PI));
|
|
132
|
-
}, [c]), j(() => (cancelAnimationFrame(o.fill), cancelAnimationFrame(o.wave), o.startTime = 0, G(0), o.fill = requestAnimationFrame(T), o.wave = requestAnimationFrame(R), () => {
|
|
133
|
-
cancelAnimationFrame(o.fill), cancelAnimationFrame(o.wave);
|
|
134
|
-
}), [A, y, c]), /* @__PURE__ */ a(
|
|
135
|
-
"div",
|
|
136
|
-
{
|
|
137
|
-
className: at(n, E),
|
|
138
|
-
style: {
|
|
139
|
-
width: i,
|
|
140
|
-
height: i,
|
|
141
|
-
..._
|
|
142
|
-
},
|
|
143
|
-
children: /* @__PURE__ */ x(
|
|
144
|
-
"svg",
|
|
145
|
-
{
|
|
146
|
-
className: `${n}-svg`,
|
|
147
|
-
ref: tt,
|
|
148
|
-
width: i,
|
|
149
|
-
height: i,
|
|
150
|
-
viewBox: `0 0 ${i} ${i}`,
|
|
151
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
152
|
-
children: [
|
|
153
|
-
/* @__PURE__ */ x("defs", { children: [
|
|
154
|
-
k(d.waveGradient, F),
|
|
155
|
-
k(d.bgGradient, N),
|
|
156
|
-
/* @__PURE__ */ a("clipPath", { id: d.clipPath, className: `${n}-clipPath`, children: /* @__PURE__ */ a(
|
|
157
|
-
"circle",
|
|
158
|
-
{
|
|
159
|
-
className: `${n}-clipPath-circle`,
|
|
160
|
-
cx: e,
|
|
161
|
-
cy: e,
|
|
162
|
-
r: m
|
|
163
|
-
}
|
|
164
|
-
) })
|
|
165
|
-
] }),
|
|
166
|
-
w > 0 && /* @__PURE__ */ a(
|
|
167
|
-
"circle",
|
|
168
|
-
{
|
|
169
|
-
className: `${n}-outerBorder`,
|
|
170
|
-
cx: e,
|
|
171
|
-
cy: e,
|
|
172
|
-
r: M,
|
|
173
|
-
fill: "none",
|
|
174
|
-
stroke: K,
|
|
175
|
-
strokeWidth: w,
|
|
176
|
-
strokeOpacity: 0.5
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
/* @__PURE__ */ a(
|
|
180
|
-
"circle",
|
|
181
|
-
{
|
|
182
|
-
className: `${n}-border`,
|
|
183
|
-
cx: e,
|
|
184
|
-
cy: e,
|
|
185
|
-
r: W,
|
|
186
|
-
fill: B(N, d.bgGradient),
|
|
187
|
-
stroke: q,
|
|
188
|
-
strokeWidth: g
|
|
189
|
-
}
|
|
190
|
-
),
|
|
191
|
-
/* @__PURE__ */ a("g", { className: `${n}-g`, clipPath: `url(#${d.clipPath})`, children: it() }),
|
|
192
|
-
Y && /* @__PURE__ */ x(
|
|
193
|
-
"text",
|
|
194
|
-
{
|
|
195
|
-
className: `${n}-text`,
|
|
196
|
-
x: e,
|
|
197
|
-
y: e,
|
|
198
|
-
fill: H,
|
|
199
|
-
fontSize: typeof h == "string" ? h : i * 0.15,
|
|
200
|
-
textAnchor: "middle",
|
|
201
|
-
dominantBaseline: "middle",
|
|
202
|
-
children: [
|
|
203
|
-
$.toFixed(U),
|
|
204
|
-
/* @__PURE__ */ a(
|
|
205
|
-
"tspan",
|
|
206
|
-
{
|
|
207
|
-
style: {
|
|
208
|
-
fontSize: `calc(${typeof h == "string" ? h : `${i * 0.15}px`} * ${X})`
|
|
209
|
-
},
|
|
210
|
-
className: `${n}-text-tspan`,
|
|
211
|
-
alignmentBaseline: "mathematical",
|
|
212
|
-
children: "%"
|
|
213
|
-
}
|
|
214
|
-
)
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
)
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
)
|
|
221
|
-
}
|
|
222
|
-
);
|
|
223
|
-
};
|
|
224
|
-
export {
|
|
225
|
-
se as default
|
|
226
|
-
};
|
package/space-/index.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { jsx as c, jsxs as M } from "react/jsx-runtime";
|
|
2
|
-
import P from "lodash/isArray";
|
|
3
|
-
import R from "lodash/isNumber";
|
|
4
|
-
import { forwardRef as $, useContext as V, Fragment as b } from "react";
|
|
5
|
-
import "../config-provider/ConfigProvider.js";
|
|
6
|
-
import j from "../components/common/hooks/useMergeProps.js";
|
|
7
|
-
import k from "@unicom-cloud/utils/class-name";
|
|
8
|
-
import D from "./toArray.js";
|
|
9
|
-
import F from "../config-provider/context.js";
|
|
10
|
-
const H = {
|
|
11
|
-
size: "small",
|
|
12
|
-
direction: "horizontal"
|
|
13
|
-
};
|
|
14
|
-
function O(s, m) {
|
|
15
|
-
const { getPrefixCls: N, componentConfig: C, rtl: g } = V(F), v = j(
|
|
16
|
-
s,
|
|
17
|
-
H,
|
|
18
|
-
C?.Space
|
|
19
|
-
), {
|
|
20
|
-
className: S,
|
|
21
|
-
style: x,
|
|
22
|
-
children: w,
|
|
23
|
-
size: i,
|
|
24
|
-
direction: a,
|
|
25
|
-
align: B,
|
|
26
|
-
wrap: l,
|
|
27
|
-
split: p,
|
|
28
|
-
...z
|
|
29
|
-
} = v, e = N?.("space-"), d = B || (a === "horizontal" ? "center" : ""), A = k(
|
|
30
|
-
e,
|
|
31
|
-
{
|
|
32
|
-
[`${e}-${a}`]: a,
|
|
33
|
-
[`${e}-align-${d}`]: d,
|
|
34
|
-
[`${e}-wrap`]: l,
|
|
35
|
-
[`${e}-rtl`]: g
|
|
36
|
-
},
|
|
37
|
-
S
|
|
38
|
-
);
|
|
39
|
-
function f(t) {
|
|
40
|
-
if (R(t))
|
|
41
|
-
return t;
|
|
42
|
-
switch (t) {
|
|
43
|
-
case "mini":
|
|
44
|
-
return 4;
|
|
45
|
-
case "small":
|
|
46
|
-
return 8;
|
|
47
|
-
case "medium":
|
|
48
|
-
return 16;
|
|
49
|
-
case "large":
|
|
50
|
-
return 24;
|
|
51
|
-
default:
|
|
52
|
-
return 8;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
const h = D(w);
|
|
56
|
-
function L(t) {
|
|
57
|
-
const n = h.length === t + 1, o = g ? "marginLeft" : "marginRight";
|
|
58
|
-
if (typeof i == "string" || typeof i == "number") {
|
|
59
|
-
const r = f(i);
|
|
60
|
-
return l ? n ? { marginBottom: r } : {
|
|
61
|
-
[`${o}`]: r,
|
|
62
|
-
marginBottom: r
|
|
63
|
-
} : n ? {} : {
|
|
64
|
-
[a === "vertical" ? "marginBottom" : o]: r
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
if (P(i)) {
|
|
68
|
-
const r = f(i[0]), u = f(i[1]);
|
|
69
|
-
return l ? n ? { marginBottom: u } : {
|
|
70
|
-
[`${o}`]: r,
|
|
71
|
-
marginBottom: u
|
|
72
|
-
} : a === "vertical" ? { marginBottom: u } : { [`${o}`]: r };
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return /* @__PURE__ */ c("div", { ref: m, className: A, style: x, ...z, children: h.map((t, n) => {
|
|
76
|
-
const o = t?.key || n, r = p != null && n > 0;
|
|
77
|
-
return /* @__PURE__ */ M(b, { children: [
|
|
78
|
-
r && /* @__PURE__ */ c("div", { className: `${e}-item-split`, children: p }),
|
|
79
|
-
/* @__PURE__ */ c("div", { className: `${e}-item`, style: L(n), children: t })
|
|
80
|
-
] }, o);
|
|
81
|
-
}) });
|
|
82
|
-
}
|
|
83
|
-
const y = $(O);
|
|
84
|
-
y.displayName = "Space-";
|
|
85
|
-
function q(s, m) {
|
|
86
|
-
return /* @__PURE__ */ c(y, { ref: m, ...s, direction: "vertical", children: s.children });
|
|
87
|
-
}
|
|
88
|
-
const E = $(q);
|
|
89
|
-
E.displayName = "SpaceVertical-";
|
|
90
|
-
export {
|
|
91
|
-
E as SpaceVertical,
|
|
92
|
-
y as default
|
|
93
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { uiColor as color } from "@unicom-cloud/tinycolor";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { compute, default as computeScrollIntoView, default, } from '@unicom-cloud/compute-scroll-into-view';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export * from './caseName';
|
|
2
|
-
export * from './className';
|
|
3
|
-
export * from './color';
|
|
4
|
-
export * from './computeScrollIntoView';
|
|
5
|
-
export * from './constant';
|
|
6
|
-
export * from './convertToDurationBasedOnTimeUnits';
|
|
7
|
-
export * from './copy';
|
|
8
|
-
export * from './dayjs';
|
|
9
|
-
export * from './dom';
|
|
10
|
-
export * from './fileToURL';
|
|
11
|
-
export * from './fillNBSP';
|
|
12
|
-
export * from './findScrollParent';
|
|
13
|
-
export * from './getHighlightText';
|
|
14
|
-
export * from './getHotkeyHandler';
|
|
15
|
-
export * from './getStringLength';
|
|
16
|
-
export * from './include';
|
|
17
|
-
export * from './intersectionObserver';
|
|
18
|
-
export * from './is';
|
|
19
|
-
export * from './lodash';
|
|
20
|
-
export * from './math';
|
|
21
|
-
export * from './mergedToString';
|
|
22
|
-
export * from './mergeProps';
|
|
23
|
-
export * from './mutationObserver';
|
|
24
|
-
export * from './omit';
|
|
25
|
-
export * from './pad';
|
|
26
|
-
export * from './pick';
|
|
27
|
-
export * from './PqbCSSTransition';
|
|
28
|
-
export * from './reactDOM';
|
|
29
|
-
export * from './reactTransitionGroup';
|
|
30
|
-
export * from './resizeObserver';
|
|
31
|
-
export * from './saveAs';
|
|
32
|
-
export * from './screenfull';
|
|
33
|
-
export * from './scrollIntoView';
|
|
34
|
-
export * from './setDarkTheme';
|
|
35
|
-
export * from './setPrimaryColor';
|
|
36
|
-
export * from './style';
|
|
37
|
-
export * from './throttleByRaf';
|
|
38
|
-
export * from './tinycolor';
|
|
39
|
-
export * from './tree';
|
|
40
|
-
export * from './tween';
|
|
41
|
-
export * from './type';
|
|
42
|
-
export * from './uuid';
|
|
43
|
-
export * from './validate';
|
|
44
|
-
export * from './warning';
|
|
45
|
-
export { keyboardCode } from './keyboardCode';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, div, default as math, minus, plus, times, } from '@unicom-cloud/utils/math';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CSSTransition, default, default as reactTransitionGroup, ReplaceTransition, SwitchTransition, Transition, TransitionGroup, } from '@unicom-cloud/react-transition-group';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, findNodeBy, getChildWithParentBy, getItemBy, getItemBy2, getItemBy3, getItemByID, getLabelFromDictionaryByValue, default as tree, } from '@unicom-cloud/utils/tree';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, easing, default as tween } from '@unicom-cloud/tween';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { v4 as uuid, v4 as uuidv4 } from 'uuid';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DefaultValidateMessage, Schema, default as validate, } from '@unicom-cloud/validate';
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import React, { type CSSProperties } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 颜色配置类型,支持纯色和渐变色
|
|
4
|
-
*/
|
|
5
|
-
type ColorType = string | {
|
|
6
|
-
/** 渐变起始颜色 */
|
|
7
|
-
from: string;
|
|
8
|
-
/** 渐变结束颜色 */
|
|
9
|
-
to: string;
|
|
10
|
-
/**
|
|
11
|
-
* 渐变方向
|
|
12
|
-
* @default 'vertical' 垂直渐变
|
|
13
|
-
*/
|
|
14
|
-
direction?: 'horizontal' | 'vertical';
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* 水球填充组件的属性接口
|
|
18
|
-
*/
|
|
19
|
-
export interface LiquidFillProps {
|
|
20
|
-
/** 自定义容器样式 */
|
|
21
|
-
style?: CSSProperties;
|
|
22
|
-
/** 自定义类名 */
|
|
23
|
-
className?: string | string[];
|
|
24
|
-
/**
|
|
25
|
-
* 当前填充比例 (0-1)
|
|
26
|
-
* @default 0.5
|
|
27
|
-
*/
|
|
28
|
-
value: number;
|
|
29
|
-
/**
|
|
30
|
-
* 组件尺寸 (像素)
|
|
31
|
-
* @default 200
|
|
32
|
-
*/
|
|
33
|
-
size?: number;
|
|
34
|
-
/**
|
|
35
|
-
* 字体大小
|
|
36
|
-
* @default size * 0.15
|
|
37
|
-
*/
|
|
38
|
-
fontSize?: number | string;
|
|
39
|
-
/**
|
|
40
|
-
* 波浪颜色,支持纯色或渐变色
|
|
41
|
-
* @default 'rgb(var(--pqb-blue-6))'
|
|
42
|
-
*/
|
|
43
|
-
waveColor?: ColorType;
|
|
44
|
-
/**
|
|
45
|
-
* 背景颜色,支持纯色或渐变色
|
|
46
|
-
* @default 'var(--pqb-color-neutral-1)'
|
|
47
|
-
*/
|
|
48
|
-
backgroundColor?: ColorType;
|
|
49
|
-
/**
|
|
50
|
-
* 文字颜色
|
|
51
|
-
* @default 'var(--pqb-color-neutral-8)'
|
|
52
|
-
*/
|
|
53
|
-
textColor?: string;
|
|
54
|
-
/**
|
|
55
|
-
* 是否显示百分比
|
|
56
|
-
* @default true
|
|
57
|
-
*/
|
|
58
|
-
showPercent?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* 动画持续时间(毫秒)
|
|
61
|
-
* @default 2000
|
|
62
|
-
*/
|
|
63
|
-
duration?: number;
|
|
64
|
-
/**
|
|
65
|
-
* 波浪数量
|
|
66
|
-
* @default 3
|
|
67
|
-
*/
|
|
68
|
-
waveCount?: number;
|
|
69
|
-
/**
|
|
70
|
-
* 波浪振幅
|
|
71
|
-
* @default 10
|
|
72
|
-
*/
|
|
73
|
-
waveAmplitude?: number;
|
|
74
|
-
/**
|
|
75
|
-
* 内层边框颜色
|
|
76
|
-
* @default 'var(--pqb-color-neutral-4)'
|
|
77
|
-
*/
|
|
78
|
-
borderColor?: string;
|
|
79
|
-
/**
|
|
80
|
-
* 内层边框宽度
|
|
81
|
-
* @default 2
|
|
82
|
-
*/
|
|
83
|
-
borderWidth?: number;
|
|
84
|
-
/**
|
|
85
|
-
* 外层边框颜色(默认使用内层边框颜色但透明度30%)
|
|
86
|
-
*/
|
|
87
|
-
outerBorderColor?: string;
|
|
88
|
-
/**
|
|
89
|
-
* 外层边框宽度
|
|
90
|
-
* @default 0(不显示)
|
|
91
|
-
*/
|
|
92
|
-
outerBorderWidth?: number;
|
|
93
|
-
/**
|
|
94
|
-
* 内外层边框间距
|
|
95
|
-
* @default 2
|
|
96
|
-
*/
|
|
97
|
-
borderGap?: number;
|
|
98
|
-
/**
|
|
99
|
-
* 百分比显示的小数位数
|
|
100
|
-
* @default 0(整数)
|
|
101
|
-
*/
|
|
102
|
-
decimalPlaces?: number;
|
|
103
|
-
/**
|
|
104
|
-
* 百分号相对于数字的缩放比例
|
|
105
|
-
* @default 0.7
|
|
106
|
-
*/
|
|
107
|
-
percentFontScale?: number;
|
|
108
|
-
/**
|
|
109
|
-
* 波浪速度变化系数(值越大速度差异越大)
|
|
110
|
-
* @default 0.5
|
|
111
|
-
*/
|
|
112
|
-
waveSpeedVariation?: number;
|
|
113
|
-
}
|
|
114
|
-
declare const LiquidFill: React.FC<LiquidFillProps>;
|
|
115
|
-
export default LiquidFill;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SpaceProps, SpaceSize } from './interface';
|
|
2
|
-
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
|
|
3
|
-
declare const SpaceVertical: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
|
|
4
|
-
export { SpaceVertical };
|
|
5
|
-
export default Space;
|
|
6
|
-
export type { SpaceProps, SpaceSize };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
export type SpaceSize = 'mini' | 'small' | 'medium' | 'large' | number;
|
|
3
|
-
/**
|
|
4
|
-
* @title Space
|
|
5
|
-
*/
|
|
6
|
-
export interface SpaceProps {
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
className?: string | string[];
|
|
9
|
-
/**
|
|
10
|
-
* @zh 对齐方式
|
|
11
|
-
* @en Alignment of items
|
|
12
|
-
*/
|
|
13
|
-
align?: 'start' | 'end' | 'center' | 'baseline';
|
|
14
|
-
/**
|
|
15
|
-
* @zh 间距方向
|
|
16
|
-
* @en The space direction
|
|
17
|
-
* @defaultValue horizontal
|
|
18
|
-
*/
|
|
19
|
-
direction?: 'vertical' | 'horizontal';
|
|
20
|
-
/**
|
|
21
|
-
* @zh 尺寸。( `2.15.0` 开始支持数组形式 )
|
|
22
|
-
* @en The space size. ( Array format add in `2.15.0` )
|
|
23
|
-
* @defaultValue small
|
|
24
|
-
*/
|
|
25
|
-
size?: SpaceSize | SpaceSize[];
|
|
26
|
-
/**
|
|
27
|
-
* @zh 环绕类型的间距,用于折行的场景。
|
|
28
|
-
* @en Whether to wrap line automatic
|
|
29
|
-
*/
|
|
30
|
-
wrap?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @zh 设置分隔符
|
|
33
|
-
* @en Set separator
|
|
34
|
-
* @version 2.22.0
|
|
35
|
-
*/
|
|
36
|
-
split?: ReactNode;
|
|
37
|
-
children?: ReactNode;
|
|
38
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|