@grantbii/design-system 1.0.58 → 1.0.59
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/core/atoms/PageLoader.d.ts +3 -0
- package/core/atoms/PageLoader.js +28 -0
- package/core/atoms/index.d.ts +1 -0
- package/core/atoms/index.js +1 -0
- package/package.json +2 -1
- package/stories/atoms/PageLoader.stories.d.ts +6 -0
- package/stories/atoms/PageLoader.stories.js +13 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { MoonLoader } from "react-spinners";
|
|
14
|
+
import styled from "styled-components";
|
|
15
|
+
import { Colors } from "../foundations";
|
|
16
|
+
const PageLoader = (_a) => {
|
|
17
|
+
var { color = Colors.accent.blue1, size = 32 } = _a, restOfProps = __rest(_a, ["color", "size"]);
|
|
18
|
+
return (_jsx(BasePageLoader, { children: _jsx(MoonLoader, Object.assign({ color: color, size: size }, restOfProps)) }));
|
|
19
|
+
};
|
|
20
|
+
export default PageLoader;
|
|
21
|
+
const BasePageLoader = styled.div `
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
`;
|
package/core/atoms/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export { default as BrandLogo } from "./BrandLogo";
|
|
|
3
3
|
export { default as Button } from "./Button";
|
|
4
4
|
export { default as Checkbox } from "./Checkbox";
|
|
5
5
|
export { default as LinkButton } from "./LinkButton";
|
|
6
|
+
export { default as PageLoader } from "./PageLoader";
|
|
6
7
|
export { default as RadioButton } from "./RadioButton";
|
|
7
8
|
export { default as Textarea } from "./Textarea";
|
package/core/atoms/index.js
CHANGED
|
@@ -3,5 +3,6 @@ export { default as BrandLogo } from "./BrandLogo";
|
|
|
3
3
|
export { default as Button } from "./Button";
|
|
4
4
|
export { default as Checkbox } from "./Checkbox";
|
|
5
5
|
export { default as LinkButton } from "./LinkButton";
|
|
6
|
+
export { default as PageLoader } from "./PageLoader";
|
|
6
7
|
export { default as RadioButton } from "./RadioButton";
|
|
7
8
|
export { default as Textarea } from "./Textarea";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grantbii/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"description": "Grantbii's Design System",
|
|
5
5
|
"homepage": "https://design.grantbii.com",
|
|
6
6
|
"repository": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"react": "^19.1.0",
|
|
26
26
|
"react-dom": "^19.1.0",
|
|
27
27
|
"react-dropzone": "^14.3.8",
|
|
28
|
+
"react-spinners": "^0.17.0",
|
|
28
29
|
"styled-components": "^6.1.19"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|