rc-lib-ui 1.0.27 → 1.0.29
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.
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { SwitchTransition as
|
|
4
|
-
import { Ball as
|
|
5
|
-
import { SpinnerGrow as
|
|
6
|
-
import { SpinnerBorder as
|
|
7
|
-
import { Spinner3D as
|
|
8
|
-
import { Time as
|
|
9
|
-
import { Cube as
|
|
10
|
-
import { RotateCube as
|
|
11
|
-
import './Preloaders.css';const
|
|
12
|
-
container:
|
|
13
|
-
preloader:
|
|
14
|
-
fadeEnter:
|
|
15
|
-
fadeExit:
|
|
16
|
-
fadeEnterActive:
|
|
17
|
-
fadeExitActive:
|
|
18
|
-
},
|
|
19
|
-
SpinnerGrow:
|
|
20
|
-
SpinnerBorder:
|
|
21
|
-
Spinner3D:
|
|
22
|
-
Ball:
|
|
23
|
-
Time:
|
|
24
|
-
Cube:
|
|
25
|
-
RotateCube:
|
|
26
|
-
},
|
|
27
|
-
const
|
|
28
|
-
return /* @__PURE__ */ e(
|
|
29
|
-
|
|
2
|
+
import p, { useRef as s } from "react";
|
|
3
|
+
import { SwitchTransition as l, CSSTransition as _ } from "react-transition-group";
|
|
4
|
+
import { Ball as E } from "./components/Ball/Ball.js";
|
|
5
|
+
import { SpinnerGrow as x } from "./components/SpinnerGrow/SpinnerGrow.js";
|
|
6
|
+
import { SpinnerBorder as h } from "./components/SpinnerBorder/SpinnerBorder.js";
|
|
7
|
+
import { Spinner3D as u } from "./components/Spinner3D/Spinner3D.js";
|
|
8
|
+
import { Time as v } from "./components/Time/Time.js";
|
|
9
|
+
import { Cube as A } from "./components/Cube/Cube.js";
|
|
10
|
+
import { RotateCube as g } from "./components/RotateCube/RotateCube.js";
|
|
11
|
+
import './Preloaders.css';const S = "_container_hrgp5_1", C = "_preloader_hrgp5_9", R = "_fadeEnter_hrgp5_15", P = "_fadeExit_hrgp5_23", k = "_fadeEnterActive_hrgp5_31", w = "_fadeExitActive_hrgp5_41", t = {
|
|
12
|
+
container: S,
|
|
13
|
+
preloader: C,
|
|
14
|
+
fadeEnter: R,
|
|
15
|
+
fadeExit: P,
|
|
16
|
+
fadeEnterActive: k,
|
|
17
|
+
fadeExitActive: w
|
|
18
|
+
}, y = {
|
|
19
|
+
SpinnerGrow: x,
|
|
20
|
+
SpinnerBorder: h,
|
|
21
|
+
Spinner3D: u,
|
|
22
|
+
Ball: E,
|
|
23
|
+
Time: v,
|
|
24
|
+
Cube: A,
|
|
25
|
+
RotateCube: g
|
|
26
|
+
}, T = ({ timeout: i = 300, show: a, name: c, children: m = null, ...d }) => {
|
|
27
|
+
const f = y[c], r = s(null), o = a ? { key: "preloader", element: /* @__PURE__ */ e(f, { ref: r, ...d }) } : { key: "content", element: /* @__PURE__ */ e(n, { children: m }) };
|
|
28
|
+
return /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e(
|
|
29
|
+
_,
|
|
30
30
|
{
|
|
31
31
|
nodeRef: r,
|
|
32
|
-
timeout:
|
|
32
|
+
timeout: i,
|
|
33
33
|
classNames: {
|
|
34
34
|
enter: t.fadeEnter,
|
|
35
35
|
enterActive: t.fadeEnterActive,
|
|
@@ -41,7 +41,7 @@ import './Preloaders.css';const g = "_container_hrgp5_1", S = "_preloader_hrgp5_
|
|
|
41
41
|
},
|
|
42
42
|
o.key
|
|
43
43
|
) });
|
|
44
|
-
},
|
|
44
|
+
}, z = p.memo(T);
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
z as Preloaders
|
|
47
47
|
};
|