rc-lib-ui 1.0.9 → 1.0.11
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/README.md +4 -0
- package/dist/Preloaders/Preloaders.d.ts +1 -1
- package/dist/Preloaders/Preloaders.js +10 -10
- package/package.json +15 -11
package/README.md
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import { Preloaders } from 'rc-lib-ui'
|
|
6
6
|
|
|
7
7
|
export const App = () => {
|
|
8
|
+
//SpinnerGrow | SpinnerBorder | Spinner3D | Ball | Time | Cube | RotateCube
|
|
9
|
+
|
|
8
10
|
return (
|
|
9
11
|
<>
|
|
10
12
|
<Preloaders name='Ball' show={true} >
|
|
@@ -13,5 +15,7 @@ export const App = () => {
|
|
|
13
15
|
</>
|
|
14
16
|
)
|
|
15
17
|
}
|
|
18
|
+
|
|
16
19
|
```
|
|
17
20
|
|
|
21
|
+
|
|
@@ -23,7 +23,7 @@ type ListPreloaders_P = ({
|
|
|
23
23
|
} & RotateCubeProps);
|
|
24
24
|
export type PreloadersProps = {
|
|
25
25
|
show: boolean;
|
|
26
|
-
children
|
|
26
|
+
children?: React.ReactNode;
|
|
27
27
|
} & ListPreloaders_P;
|
|
28
28
|
export declare const Preloaders: React.NamedExoticComponent<PreloadersProps>;
|
|
29
29
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
1
|
+
import { jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
2
|
import f, { useRef as p } from "react";
|
|
3
3
|
import { SwitchTransition as s, CSSTransition as l } from "react-transition-group";
|
|
4
4
|
import { Ball as _ } from "./components/Ball/Ball.js";
|
|
5
5
|
import { SpinnerGrow as E } from "./components/SpinnerGrow/SpinnerGrow.js";
|
|
6
6
|
import { SpinnerBorder as x } from "./components/SpinnerBorder/SpinnerBorder.js";
|
|
7
7
|
import { Spinner3D as h } from "./components/Spinner3D/Spinner3D.js";
|
|
8
|
-
import { Time as
|
|
9
|
-
import { Cube as
|
|
10
|
-
import { RotateCube as
|
|
8
|
+
import { Time as u } from "./components/Time/Time.js";
|
|
9
|
+
import { Cube as v } from "./components/Cube/Cube.js";
|
|
10
|
+
import { RotateCube as A } from "./components/RotateCube/RotateCube.js";
|
|
11
11
|
import './Preloaders.css';const g = "_container_hrgp5_1", S = "_preloader_hrgp5_9", C = "_fadeEnter_hrgp5_15", R = "_fadeExit_hrgp5_23", P = "_fadeEnterActive_hrgp5_31", k = "_fadeExitActive_hrgp5_41", t = {
|
|
12
12
|
container: g,
|
|
13
13
|
preloader: S,
|
|
@@ -20,11 +20,11 @@ import './Preloaders.css';const g = "_container_hrgp5_1", S = "_preloader_hrgp5_
|
|
|
20
20
|
SpinnerBorder: x,
|
|
21
21
|
Spinner3D: h,
|
|
22
22
|
Ball: _,
|
|
23
|
-
Time:
|
|
24
|
-
Cube:
|
|
25
|
-
RotateCube:
|
|
26
|
-
}, y = ({ show:
|
|
27
|
-
const
|
|
23
|
+
Time: u,
|
|
24
|
+
Cube: v,
|
|
25
|
+
RotateCube: A
|
|
26
|
+
}, y = ({ show: i, name: a, children: c = null, ...m }) => {
|
|
27
|
+
const d = w[a], r = p(null), o = i ? { key: "preloader", element: /* @__PURE__ */ e(d, { ref: r, ...m }) } : { key: "content", element: /* @__PURE__ */ e(n, { children: c }) };
|
|
28
28
|
return /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(
|
|
29
29
|
l,
|
|
30
30
|
{
|
|
@@ -37,7 +37,7 @@ import './Preloaders.css';const g = "_container_hrgp5_1", S = "_preloader_hrgp5_
|
|
|
37
37
|
exitActive: t.fadeExitActive
|
|
38
38
|
},
|
|
39
39
|
unmountOnExit: !0,
|
|
40
|
-
children: /* @__PURE__ */ e(
|
|
40
|
+
children: /* @__PURE__ */ e(n, { children: o.element })
|
|
41
41
|
},
|
|
42
42
|
o.key
|
|
43
43
|
) });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rc-lib-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"author": "SinGlEBW",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
|
+
"workspaces": [
|
|
15
|
+
"packages/*"
|
|
16
|
+
],
|
|
14
17
|
"publishConfig": {
|
|
15
18
|
"access": "public",
|
|
16
19
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -28,25 +31,26 @@
|
|
|
28
31
|
"doc-build": "storybook build"
|
|
29
32
|
},
|
|
30
33
|
"dependencies": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"classnames": "^2.5.1",
|
|
37
|
-
"rc-lib-ui": "^1.0.0",
|
|
34
|
+
"react-transition-group": "^4.4.5",
|
|
35
|
+
"classnames": "^2.5.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
38
|
"react": "^18.2.0 || ^19.0.0",
|
|
39
39
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
40
|
-
"
|
|
40
|
+
"@mui/styled-engine": "^6.1.0",
|
|
41
|
+
"@emotion/react": "^11.13.3",
|
|
42
|
+
"@emotion/styled": "^11.13.0",
|
|
43
|
+
"@mui/material": "^5.15.15 || ^6.0.0"
|
|
44
|
+
|
|
41
45
|
},
|
|
42
46
|
"devDependencies": {
|
|
43
|
-
"@storybook/builder-vite": "^8.3.0",
|
|
44
47
|
"@chromatic-com/storybook": "^1.9.0",
|
|
45
48
|
"@storybook/addon-essentials": "^8.3.0",
|
|
46
49
|
"@storybook/addon-interactions": "^8.3.0",
|
|
47
50
|
"@storybook/addon-links": "^8.3.0",
|
|
48
51
|
"@storybook/addon-onboarding": "^8.3.0",
|
|
49
52
|
"@storybook/blocks": "^8.3.0",
|
|
53
|
+
"@storybook/builder-vite": "^8.3.0",
|
|
50
54
|
"@storybook/react": "^8.3.0",
|
|
51
55
|
"@storybook/react-vite": "^8.3.0",
|
|
52
56
|
"@storybook/test": "^8.3.0",
|
|
@@ -62,6 +66,7 @@
|
|
|
62
66
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
63
67
|
"eslint-plugin-storybook": "^0.8.0",
|
|
64
68
|
"glob": "^11.0.0",
|
|
69
|
+
"lerna": "^8.1.8",
|
|
65
70
|
"prettier": "^3.3.3",
|
|
66
71
|
"sass": "^1.78.0",
|
|
67
72
|
"sass-embedded": "^1.78.0",
|
|
@@ -72,5 +77,4 @@
|
|
|
72
77
|
"vite-plugin-dts": "^4.2.1",
|
|
73
78
|
"vite-plugin-lib-inject-css": "^2.1.1"
|
|
74
79
|
}
|
|
75
|
-
|
|
76
80
|
}
|