@unicom-cloud/ui 0.8.95 → 0.8.96
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/Message.js +1 -1
- package/Notification.js +1 -1
- package/Switch.js +1 -1
- package/Trigger.js +1 -1
- package/alert/index.js +50 -49
- package/back-top/index.js +8 -8
- package/cascader/panel/List.js +1 -1
- package/collapse/Item.js +1 -1
- package/components/common/hooks/useForceUpdate.js +6 -2
- package/components/common/hooks/useId.js +8 -8
- package/components/common/space/index.js +2 -3
- package/components/common/utils/PqbCSSTransition.js +1 -1
- package/details/index.js +32 -31
- package/dist/react-transition-group/src/CSSTransition.js +1 -1
- package/dist/react-transition-group/src/SwitchTransition.js +1 -1
- package/dist/tween/src/tween.js +24 -25
- package/hooks/index.js +50 -52
- package/index.js +674 -680
- package/input-tag/InputTag.js +1 -1
- package/message/index.js +1 -1
- package/notification/index.js +1 -1
- package/package.json +1 -1
- package/rate/index.js +1 -1
- package/slider/index.js +1 -1
- package/slider/util.js +1 -1
- package/statistic/index.js +16 -16
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +16 -16
- package/time-picker/util.js +4 -4
- package/trigger/index.js +1 -1
- package/types/common/utils/math.d.ts +1 -1
- package/types/pc/alert/interface.d.ts +2 -2
- package/types/pc/details/interface.d.ts +2 -2
- package/types/pc/hooks/index.d.ts +0 -1
- package/types/pc/utils/math.d.ts +1 -1
- package/typography/Ellipsis.js +4 -5
- package/upload/list/index.js +1 -1
- package/utils/index.js +173 -177
- package/utils/math.js +7 -11
- package/utils/reactTransitionGroup.js +1 -1
- package/version/index.js +1 -1
- package/components/common/hooks/useComputedState.js +0 -11
- package/hooks/useComputedState.js +0 -4
- package/types/common/hooks/useComputedState.d.ts +0 -4
- package/types/pc/hooks/useComputedState.d.ts +0 -1
- /package/dist/react-transition-group/chunk/{C6QwjD4L.js → CPfP7aNL.js} +0 -0
package/Message.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "./dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "./dist/react-transition-group/chunk/
|
|
5
|
+
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
6
6
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import "lodash/isNumber";
|
|
8
8
|
import "lodash/isUndefined";
|
package/Notification.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "./dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "./dist/react-transition-group/chunk/
|
|
5
|
+
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
6
6
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import "lodash/isNumber";
|
|
8
8
|
import "lodash/isUndefined";
|
package/Switch.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiLoading";
|
|
|
3
3
|
import "./dist/react-transition-group/src/CSSTransition.js";
|
|
4
4
|
import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
5
5
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
6
|
-
import "./dist/react-transition-group/chunk/
|
|
6
|
+
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
7
7
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
8
8
|
import "lodash/isArray";
|
|
9
9
|
import "react";
|
package/Trigger.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "./dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "./dist/react-transition-group/chunk/
|
|
5
|
+
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
6
6
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import "lodash/isArray";
|
|
8
8
|
import "lodash/isFunction";
|
package/alert/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import P from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
3
|
+
import R from "@unicom-cloud/icons/IconUiClose";
|
|
4
|
+
import T from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
5
|
+
import _ from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
6
|
+
import f from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
7
7
|
import { forwardRef as g, useRef as q, useContext as z, useState as H } from "react";
|
|
8
8
|
import "../config-provider/ConfigProvider.js";
|
|
9
9
|
import M from "../components/common/hooks/useMergeProps.js";
|
|
@@ -12,81 +12,82 @@ import { PqbCSSTransition as V } from "../components/common/utils/PqbCSSTransiti
|
|
|
12
12
|
import B from "../config-provider/context.js";
|
|
13
13
|
const D = {
|
|
14
14
|
showIcon: !0,
|
|
15
|
-
type: "
|
|
15
|
+
type: "default"
|
|
16
16
|
};
|
|
17
|
-
function G(
|
|
17
|
+
function G(u, r) {
|
|
18
18
|
r || (r = q());
|
|
19
|
-
const { getPrefixCls: t, componentConfig:
|
|
20
|
-
|
|
19
|
+
const { getPrefixCls: t, componentConfig: l, rtl: N } = z(B), c = M(
|
|
20
|
+
u,
|
|
21
21
|
D,
|
|
22
|
-
|
|
22
|
+
l == null ? void 0 : l.Alert
|
|
23
23
|
), {
|
|
24
|
-
style:
|
|
25
|
-
className:
|
|
24
|
+
style: b,
|
|
25
|
+
className: h,
|
|
26
26
|
action: a,
|
|
27
|
-
type: m
|
|
28
|
-
title:
|
|
27
|
+
type: m,
|
|
28
|
+
title: n,
|
|
29
29
|
content: p,
|
|
30
|
-
icon:
|
|
31
|
-
showIcon:
|
|
32
|
-
closable:
|
|
33
|
-
closeable:
|
|
34
|
-
afterClose:
|
|
35
|
-
onClose:
|
|
36
|
-
closeElement:
|
|
37
|
-
banner:
|
|
38
|
-
...
|
|
39
|
-
} = c, o = t == null ? void 0 : t("alert"), [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
icon: $,
|
|
31
|
+
showIcon: C,
|
|
32
|
+
closable: I,
|
|
33
|
+
closeable: x,
|
|
34
|
+
afterClose: i,
|
|
35
|
+
onClose: s,
|
|
36
|
+
closeElement: v,
|
|
37
|
+
banner: w,
|
|
38
|
+
...y
|
|
39
|
+
} = c, o = t == null ? void 0 : t("alert"), [U, A] = H(!0), E = $ || {
|
|
40
|
+
default: /* @__PURE__ */ e(f, {}),
|
|
41
|
+
info: /* @__PURE__ */ e(f, {}),
|
|
42
|
+
success: /* @__PURE__ */ e(P, {}),
|
|
43
|
+
warning: /* @__PURE__ */ e(_, {}),
|
|
44
|
+
error: /* @__PURE__ */ e(T, {})
|
|
44
45
|
}[m];
|
|
45
|
-
function
|
|
46
|
-
|
|
46
|
+
function F(k) {
|
|
47
|
+
A(!1), s == null || s(k);
|
|
47
48
|
}
|
|
48
|
-
const
|
|
49
|
+
const S = O(
|
|
49
50
|
o,
|
|
50
51
|
`${o}-${m}`,
|
|
51
52
|
{
|
|
52
|
-
[`${o}-with-title`]:
|
|
53
|
-
[`${o}-banner`]:
|
|
54
|
-
[`${o}-rtl`]:
|
|
53
|
+
[`${o}-with-title`]: n,
|
|
54
|
+
[`${o}-banner`]: w,
|
|
55
|
+
[`${o}-rtl`]: N
|
|
55
56
|
},
|
|
56
|
-
|
|
57
|
-
),
|
|
57
|
+
h
|
|
58
|
+
), j = "closeable" in c ? x : I;
|
|
58
59
|
return /* @__PURE__ */ e(
|
|
59
60
|
V,
|
|
60
61
|
{
|
|
61
|
-
in:
|
|
62
|
+
in: U,
|
|
62
63
|
timeout: 300,
|
|
63
64
|
classNames: "zoomInTop",
|
|
64
65
|
unmountOnExit: !0,
|
|
65
66
|
onExited: () => {
|
|
66
|
-
|
|
67
|
+
i == null || i();
|
|
67
68
|
},
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ d(
|
|
69
70
|
"div",
|
|
70
71
|
{
|
|
71
72
|
ref: r,
|
|
72
|
-
style:
|
|
73
|
-
className:
|
|
73
|
+
style: b,
|
|
74
|
+
className: S,
|
|
74
75
|
role: "alert",
|
|
75
|
-
...
|
|
76
|
+
...y,
|
|
76
77
|
children: [
|
|
77
|
-
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
|
|
78
|
+
C && /* @__PURE__ */ e("div", { className: `${o}-icon-wrapper`, children: E }),
|
|
79
|
+
/* @__PURE__ */ d("div", { className: `${o}-content-wrapper`, children: [
|
|
80
|
+
n && /* @__PURE__ */ e("div", { className: `${o}-title`, children: n }),
|
|
80
81
|
p && /* @__PURE__ */ e("div", { className: `${o}-content`, children: p })
|
|
81
82
|
] }),
|
|
82
83
|
a && /* @__PURE__ */ e("div", { className: `${o}-action`, children: a }),
|
|
83
|
-
|
|
84
|
+
j && /* @__PURE__ */ e(
|
|
84
85
|
"button",
|
|
85
86
|
{
|
|
86
87
|
type: "button",
|
|
87
|
-
onClick:
|
|
88
|
+
onClick: F,
|
|
88
89
|
className: `${o}-close-btn`,
|
|
89
|
-
children:
|
|
90
|
+
children: v || /* @__PURE__ */ e(R, {})
|
|
90
91
|
}
|
|
91
92
|
)
|
|
92
93
|
]
|
package/back-top/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import { quartOut as B } from "../dist/tween/src/easing.js";
|
|
|
5
5
|
import C, { forwardRef as E, useRef as N, useContext as R, useState as S, useEffect as q } from "react";
|
|
6
6
|
import "../config-provider/ConfigProvider.js";
|
|
7
7
|
import H from "../components/common/hooks/useKeyboardEvent.js";
|
|
8
|
-
import
|
|
9
|
-
import { PqbCSSTransition as
|
|
10
|
-
import
|
|
11
|
-
import { on as
|
|
8
|
+
import P from "../components/common/hooks/useMergeProps.js";
|
|
9
|
+
import { PqbCSSTransition as $ } from "../components/common/utils/PqbCSSTransition.js";
|
|
10
|
+
import D from "@unicom-cloud/utils/class-name";
|
|
11
|
+
import { on as I, off as K } from "../components/common/utils/dom.js";
|
|
12
12
|
import { pickDataAttributes as O } from "../components/common/utils/pick.js";
|
|
13
13
|
import { throttleByRaf as U } from "../components/common/utils/throttleByRaf.js";
|
|
14
14
|
import j from "../config-provider/context.js";
|
|
@@ -20,7 +20,7 @@ function A(T, m) {
|
|
|
20
20
|
easing: B,
|
|
21
21
|
duration: 400,
|
|
22
22
|
target: () => window
|
|
23
|
-
}, { getPrefixCls: c, componentConfig: l, rtl: b } = R(j), w = H(), t =
|
|
23
|
+
}, { getPrefixCls: c, componentConfig: l, rtl: b } = R(j), w = H(), t = P(
|
|
24
24
|
T,
|
|
25
25
|
g,
|
|
26
26
|
l == null ? void 0 : l.BackTop
|
|
@@ -31,7 +31,7 @@ function A(T, m) {
|
|
|
31
31
|
const r = t.visibleHeight, n = f(e).scrollTop;
|
|
32
32
|
v(n >= r);
|
|
33
33
|
});
|
|
34
|
-
return
|
|
34
|
+
return I(e, "scroll", o), o(), () => {
|
|
35
35
|
var r;
|
|
36
36
|
(r = o.cancel) == null || r.call(o), K(e, "scroll", o);
|
|
37
37
|
};
|
|
@@ -54,7 +54,7 @@ function A(T, m) {
|
|
|
54
54
|
{
|
|
55
55
|
...O(t),
|
|
56
56
|
ref: m,
|
|
57
|
-
className:
|
|
57
|
+
className: D(
|
|
58
58
|
`${a}`,
|
|
59
59
|
{ [`${a}-rtl`]: b },
|
|
60
60
|
t.className
|
|
@@ -65,7 +65,7 @@ function A(T, m) {
|
|
|
65
65
|
onPressEnter: u
|
|
66
66
|
}),
|
|
67
67
|
children: /* @__PURE__ */ i(
|
|
68
|
-
|
|
68
|
+
$,
|
|
69
69
|
{
|
|
70
70
|
in: h,
|
|
71
71
|
timeout: 100,
|
package/cascader/panel/List.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as d, Fragment as I, jsxs as K } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "../../dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "../../dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "../../dist/react-transition-group/chunk/
|
|
5
|
+
import "../../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
6
6
|
import z from "../../dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import H from "lodash/isEqualWith";
|
|
8
8
|
import S from "lodash/isFunction";
|
package/collapse/Item.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as v, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import "../dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "../dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "../dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import { T } from "../dist/react-transition-group/chunk/
|
|
5
|
+
import { T } from "../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
6
6
|
import "../dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import j, { useContext as E, useRef as H } from "react";
|
|
8
8
|
import "../config-provider/ConfigProvider.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
const [
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
}, []), typeof
|
|
1
|
+
import { useState as d, useEffect as n } from "react";
|
|
2
|
+
const o = {};
|
|
3
|
+
function e(t) {
|
|
4
|
+
const [u, s] = d();
|
|
5
|
+
return n(() => {
|
|
6
|
+
o[t] ?? (o[t] = 0), s(o[t]), o[t] += 1;
|
|
7
|
+
}, []), typeof u == "number" ? `${t}${u}` : void 0;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
e as default
|
|
11
11
|
};
|
|
@@ -34,17 +34,16 @@ import "lodash/isPlainObject";
|
|
|
34
34
|
import "../../../dist/react-transition-group/src/CSSTransition.js";
|
|
35
35
|
import "../../../dist/react-transition-group/src/ReplaceTransition.js";
|
|
36
36
|
import "../../../dist/react-transition-group/src/SwitchTransition.js";
|
|
37
|
-
import "../../../dist/react-transition-group/chunk/
|
|
37
|
+
import "../../../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
38
38
|
import "../../../dist/react-transition-group/src/TransitionGroup.js";
|
|
39
39
|
import "../utils/reactDOM.js";
|
|
40
40
|
import "@unicom-cloud/utils/file/saveAs";
|
|
41
41
|
import "@unicom-cloud/utils/screenfull";
|
|
42
42
|
import "@unicom-cloud/utils/tree";
|
|
43
|
-
import "
|
|
43
|
+
import { isArray as l, isNumber as I } from "@unicom-cloud/utils/is";
|
|
44
44
|
import "uuid";
|
|
45
45
|
import "../../../dist/validate/src/index.js";
|
|
46
46
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
47
|
-
import { isArray as l, isNumber as I } from "@unicom-cloud/utils/is";
|
|
48
47
|
function f(t = 8) {
|
|
49
48
|
if (I(t))
|
|
50
49
|
return t;
|
|
@@ -2,7 +2,7 @@ import { jsx as d } from "react/jsx-runtime";
|
|
|
2
2
|
import u from "../../../dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "../../../dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "../../../dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "../../../dist/react-transition-group/chunk/
|
|
5
|
+
import "../../../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
6
6
|
import "../../../dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import { useRef as f, useMemo as l, isValidElement as a, cloneElement as s } from "react";
|
|
8
8
|
import { supportRef as E } from "./is.js";
|
package/details/index.js
CHANGED
|
@@ -1,71 +1,72 @@
|
|
|
1
1
|
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import b from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
3
|
+
import j from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
4
|
+
import S from "@unicom-cloud/icons/IconUiDown";
|
|
5
|
+
import k from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
6
|
+
import d from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
7
7
|
import { forwardRef as E, useContext as M, useState as P } from "react";
|
|
8
8
|
import "../config-provider/ConfigProvider.js";
|
|
9
9
|
import R from "../components/common/hooks/useMergeProps.js";
|
|
10
|
-
import
|
|
10
|
+
import u from "@unicom-cloud/utils/class-name";
|
|
11
11
|
import T from "../config-provider/context.js";
|
|
12
12
|
const _ = {
|
|
13
|
-
type: "
|
|
13
|
+
type: "default"
|
|
14
14
|
};
|
|
15
15
|
function q(N, $) {
|
|
16
|
-
const { getPrefixCls: t, componentConfig: s, rtl:
|
|
16
|
+
const { getPrefixCls: t, componentConfig: s, rtl: C } = M(T), h = R(
|
|
17
17
|
N,
|
|
18
18
|
_,
|
|
19
19
|
s == null ? void 0 : s.Details
|
|
20
20
|
), {
|
|
21
|
-
style:
|
|
22
|
-
className:
|
|
23
|
-
type: r
|
|
21
|
+
style: x,
|
|
22
|
+
className: y,
|
|
23
|
+
type: r,
|
|
24
24
|
title: i,
|
|
25
25
|
content: n,
|
|
26
|
-
icon:
|
|
27
|
-
banner:
|
|
28
|
-
...
|
|
29
|
-
} =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
icon: I,
|
|
27
|
+
banner: g,
|
|
28
|
+
...w
|
|
29
|
+
} = h, e = t == null ? void 0 : t("details"), [D, U] = P({}), l = I || {
|
|
30
|
+
default: /* @__PURE__ */ o(d, {}),
|
|
31
|
+
info: /* @__PURE__ */ o(d, {}),
|
|
32
|
+
success: /* @__PURE__ */ o(b, {}),
|
|
33
|
+
warning: /* @__PURE__ */ o(k, {}),
|
|
34
|
+
error: /* @__PURE__ */ o(j, {})
|
|
35
|
+
}[r], v = u(
|
|
35
36
|
e,
|
|
36
37
|
`${e}-${r}`,
|
|
37
38
|
{
|
|
38
|
-
[`${e}-banner`]:
|
|
39
|
-
[`${e}-rtl`]:
|
|
39
|
+
[`${e}-banner`]: g,
|
|
40
|
+
[`${e}-rtl`]: C
|
|
40
41
|
},
|
|
41
|
-
|
|
42
|
+
y
|
|
42
43
|
);
|
|
43
44
|
return /* @__PURE__ */ f(
|
|
44
45
|
"details",
|
|
45
46
|
{
|
|
46
47
|
ref: $,
|
|
47
|
-
style:
|
|
48
|
-
className:
|
|
48
|
+
style: x,
|
|
49
|
+
className: v,
|
|
49
50
|
role: "details",
|
|
50
51
|
onToggle: (a) => {
|
|
51
52
|
var c;
|
|
52
|
-
(c = a.target) != null && c.open,
|
|
53
|
+
(c = a.target) != null && c.open, U((F) => {
|
|
53
54
|
var p;
|
|
54
|
-
const m = { ...
|
|
55
|
+
const m = { ...F };
|
|
55
56
|
return m.open = (p = a.target) == null ? void 0 : p.open, m;
|
|
56
57
|
});
|
|
57
58
|
},
|
|
58
|
-
...
|
|
59
|
+
...w,
|
|
59
60
|
children: [
|
|
60
61
|
/* @__PURE__ */ f("summary", { className: `${e}-summary-wrapper`, children: [
|
|
61
62
|
l && /* @__PURE__ */ o("div", { className: `${e}-icon`, children: l }),
|
|
62
63
|
i && /* @__PURE__ */ o("div", { className: `${e}-title`, children: i }),
|
|
63
64
|
/* @__PURE__ */ o(
|
|
64
|
-
|
|
65
|
+
S,
|
|
65
66
|
{
|
|
66
|
-
className:
|
|
67
|
+
className: u(
|
|
67
68
|
`${e}-collapse-icon`,
|
|
68
|
-
|
|
69
|
+
D.open && `${e}-collapse-icon-open`
|
|
69
70
|
)
|
|
70
71
|
}
|
|
71
72
|
)
|
|
@@ -3,7 +3,7 @@ import E from "../../dom-helpers/addClass.js";
|
|
|
3
3
|
import { P as a } from "../chunk/F6QOOr2H.js";
|
|
4
4
|
import u from "../../dom-helpers/removeClass.js";
|
|
5
5
|
import x from "react";
|
|
6
|
-
import { f as C, T as h, c as g } from "../chunk/
|
|
6
|
+
import { f as C, T as h, c as g } from "../chunk/CPfP7aNL.js";
|
|
7
7
|
var f = Object.defineProperty, v = (i, s, e) => s in i ? f(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, r = (i, s, e) => v(i, typeof s != "symbol" ? s + "" : s, e);
|
|
8
8
|
const N = (i, s) => i && s && s.split(" ").forEach((e) => E(i, e)), p = (i, s) => i && s && s.split(" ").forEach((e) => u(i, e));
|
|
9
9
|
class l extends x.Component {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { P as c } from "../chunk/F6QOOr2H.js";
|
|
3
3
|
import r from "react";
|
|
4
|
-
import { a as o, b as h, E as u } from "../chunk/
|
|
4
|
+
import { a as o, b as h, E as u } from "../chunk/CPfP7aNL.js";
|
|
5
5
|
import g from "./TransitionGroupContext.js";
|
|
6
6
|
var S = Object.defineProperty, b = (t, e, n) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, d = (t, e, n) => b(t, typeof e != "symbol" ? e + "" : e, n);
|
|
7
7
|
function x(t, e) {
|
package/dist/tween/src/tween.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import l from "
|
|
2
|
-
import m from "lodash/isString";
|
|
1
|
+
import { isFunction as l, isString as m } from "@unicom-cloud/utils/is";
|
|
3
2
|
import a from "./easing.js";
|
|
4
|
-
import { bounceIn as
|
|
5
|
-
class
|
|
3
|
+
import { bounceIn as y, bounceInOut as g, bounceOut as F, cubicIn as b, cubicInOut as k, cubicOut as T, linear as w, quadIn as S, quadInOut as v, quadOut as x, quartIn as A, quartInOut as D, quartOut as U, quintIn as j, quintInOut as z, quintOut as B, sineIn as C, sineInOut as E, sineOut as G } from "./easing.js";
|
|
4
|
+
class I {
|
|
6
5
|
constructor(s) {
|
|
7
6
|
const {
|
|
8
7
|
from: i,
|
|
@@ -46,26 +45,26 @@ class O {
|
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
I as Tween,
|
|
49
|
+
y as bounceIn,
|
|
50
|
+
g as bounceInOut,
|
|
51
|
+
F as bounceOut,
|
|
52
|
+
b as cubicIn,
|
|
53
|
+
k as cubicInOut,
|
|
54
|
+
T as cubicOut,
|
|
55
|
+
I as default,
|
|
57
56
|
a as easing,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
57
|
+
w as linear,
|
|
58
|
+
S as quadIn,
|
|
59
|
+
v as quadInOut,
|
|
60
|
+
x as quadOut,
|
|
61
|
+
A as quartIn,
|
|
62
|
+
D as quartInOut,
|
|
63
|
+
U as quartOut,
|
|
64
|
+
j as quintIn,
|
|
65
|
+
z as quintInOut,
|
|
66
|
+
B as quintOut,
|
|
67
|
+
C as sineIn,
|
|
68
|
+
E as sineInOut,
|
|
69
|
+
G as sineOut
|
|
71
70
|
};
|
package/hooks/index.js
CHANGED
|
@@ -1,60 +1,58 @@
|
|
|
1
1
|
import { useVerificationCode as t } from "./useVerificationCode.js";
|
|
2
2
|
import { useWatermark as o } from "./useWatermark.js";
|
|
3
|
-
import { default as f } from "../components/common/hooks/
|
|
4
|
-
import { default as d } from "../components/common/hooks/
|
|
5
|
-
import { default as m } from "../components/common/hooks/
|
|
6
|
-
import { default as x } from "../components/common/hooks/
|
|
7
|
-
import { default as n } from "../components/common/hooks/
|
|
8
|
-
import { default as v } from "../components/common/hooks/
|
|
9
|
-
import { default as I } from "../components/common/hooks/useInView.js";
|
|
3
|
+
import { default as f } from "../components/common/hooks/useCreate.js";
|
|
4
|
+
import { default as d } from "../components/common/hooks/useForceUpdate.js";
|
|
5
|
+
import { default as m } from "../components/common/hooks/useId.js";
|
|
6
|
+
import { default as x } from "../components/common/hooks/useIntersectionObserver.js";
|
|
7
|
+
import { default as n } from "../components/common/hooks/useInterval.js";
|
|
8
|
+
import { default as v } from "../components/common/hooks/useInView.js";
|
|
10
9
|
import { default as b } from "../components/common/hooks/useIsFirstRender.js";
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
10
|
+
import { default as O } from "../components/common/hooks/useIsomorphicLayoutEffect.js";
|
|
11
|
+
import { default as R } from "../components/common/hooks/useKeyboardEvent.js";
|
|
12
|
+
import { default as h } from "../components/common/hooks/useListenResize.js";
|
|
13
|
+
import { default as W } from "../components/common/hooks/useMedia.js";
|
|
14
|
+
import { default as z } from "../components/common/hooks/useMergeProps.js";
|
|
15
|
+
import { default as M } from "../components/common/hooks/useMergeValue.js";
|
|
16
|
+
import { default as g } from "../components/common/hooks/useOnlineStatus.js";
|
|
17
|
+
import { default as F } from "../components/common/hooks/useOverflowHidden.js";
|
|
18
|
+
import { default as U } from "../components/common/hooks/useOverrideRef.js";
|
|
19
|
+
import { default as H } from "../components/common/hooks/usePersistCallback.js";
|
|
20
|
+
import { default as j } from "../components/common/hooks/usePrefersColorSchemeDark.js";
|
|
21
|
+
import { default as A } from "../components/common/hooks/usePrevious.js";
|
|
22
|
+
import { default as G } from "../components/common/hooks/useRefs.js";
|
|
23
|
+
import { default as N } from "../components/common/hooks/useResizeObserver.js";
|
|
24
|
+
import { default as T } from "../components/common/hooks/useStateCallback.js";
|
|
25
|
+
import { default as Y } from "../components/common/hooks/useStateWithPromise.js";
|
|
26
|
+
import { default as _ } from "../components/common/hooks/useUpdateEffect.js";
|
|
27
|
+
import { default as ee } from "../components/common/hooks/useWatch.js";
|
|
28
|
+
import { default as te } from "../components/common/hooks/useWindowSize.js";
|
|
30
29
|
export {
|
|
31
|
-
f as
|
|
32
|
-
d as
|
|
33
|
-
m as
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
n as
|
|
37
|
-
v as useInterval,
|
|
30
|
+
f as useCreate,
|
|
31
|
+
d as useForceUpdate,
|
|
32
|
+
m as useId,
|
|
33
|
+
v as useInView,
|
|
34
|
+
x as useIntersectionObserver,
|
|
35
|
+
n as useInterval,
|
|
38
36
|
b as useIsFirstRender,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
O as useIsomorphicLayoutEffect,
|
|
38
|
+
R as useKeyboardEvent,
|
|
39
|
+
h as useListenResize,
|
|
40
|
+
W as useMedia,
|
|
41
|
+
z as useMergeProps,
|
|
42
|
+
M as useMergeValue,
|
|
43
|
+
g as useOnlineStatus,
|
|
44
|
+
F as useOverflowHidden,
|
|
45
|
+
U as useOverrideRef,
|
|
46
|
+
H as usePersistCallback,
|
|
47
|
+
j as usePrefersColorSchemeDark,
|
|
48
|
+
A as usePrevious,
|
|
49
|
+
G as useRefs,
|
|
50
|
+
N as useResizeObserver,
|
|
51
|
+
T as useStateCallback,
|
|
52
|
+
Y as useStateWithPromise,
|
|
53
|
+
_ as useUpdateEffect,
|
|
56
54
|
t as useVerificationCode,
|
|
57
|
-
|
|
55
|
+
ee as useWatch,
|
|
58
56
|
o as useWatermark,
|
|
59
|
-
|
|
57
|
+
te as useWindowSize
|
|
60
58
|
};
|