@grantbii/design-system 1.4.3 → 1.4.5
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/foundations/colors.js +23 -23
- package/core/foundations/colors.js.map +1 -1
- package/core/templates/PageLoader.d.ts +3 -1
- package/core/templates/PageLoader.js +26 -4
- package/core/templates/PageLoader.js.map +1 -1
- package/package.json +18 -18
- package/stories/templates/PageLoader.stories.d.ts +5 -2
- package/stories/templates/PageLoader.stories.js +8 -2
- package/stories/templates/PageLoader.stories.js.map +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
export const main = {
|
|
2
|
-
grantbiiBlue: "#
|
|
3
|
-
grantbiiOrange: "#
|
|
2
|
+
grantbiiBlue: "#16538A",
|
|
3
|
+
grantbiiOrange: "#EBA338",
|
|
4
4
|
};
|
|
5
5
|
export const base = {
|
|
6
6
|
black: "#232022",
|
|
7
|
-
white: "#
|
|
7
|
+
white: "#FFFFFF",
|
|
8
8
|
};
|
|
9
9
|
export const neutral = {
|
|
10
10
|
grey1: "#999999",
|
|
11
|
-
grey2: "#
|
|
12
|
-
grey3: "#
|
|
13
|
-
grey4: "#
|
|
11
|
+
grey2: "#CCCCCC",
|
|
12
|
+
grey3: "#EEEEEE",
|
|
13
|
+
grey4: "#FAFAFA",
|
|
14
14
|
};
|
|
15
15
|
export const accent = {
|
|
16
16
|
// usually includes dangerous, wrong or rejected information
|
|
17
|
-
red1: "#
|
|
18
|
-
red2: "#
|
|
19
|
-
red3: "#
|
|
17
|
+
red1: "#C02318",
|
|
18
|
+
red2: "#F88E86",
|
|
19
|
+
red3: "#FFE9E7",
|
|
20
20
|
// usually indicates warning, progressing, etc
|
|
21
|
-
yellow1: "#
|
|
22
|
-
yellow2: "#
|
|
23
|
-
yellow3: "#
|
|
21
|
+
yellow1: "#EDAB03",
|
|
22
|
+
yellow2: "#F4CC68",
|
|
23
|
+
yellow3: "#FFF9E8",
|
|
24
24
|
// usually indicates success, correct, passed, etc
|
|
25
|
-
green1: "#
|
|
26
|
-
green2: "#
|
|
27
|
-
green3: "#
|
|
25
|
+
green1: "#08A45E",
|
|
26
|
+
green2: "#6BC89E",
|
|
27
|
+
green3: "#EBFFF6",
|
|
28
28
|
// usually indicates info, no emotion
|
|
29
|
-
blue1: "#
|
|
30
|
-
blue2: "#
|
|
31
|
-
blue3: "#
|
|
29
|
+
blue1: "#1878E4",
|
|
30
|
+
blue2: "#74AEEF",
|
|
31
|
+
blue3: "#ECF5FF",
|
|
32
32
|
};
|
|
33
33
|
export const typography = {
|
|
34
|
-
blackHigh: "#
|
|
34
|
+
blackHigh: "#000000E5",
|
|
35
35
|
blackMedium: "#00000099",
|
|
36
|
-
blackLow: "#
|
|
37
|
-
whiteHigh: "#
|
|
38
|
-
whiteMedium: "#
|
|
39
|
-
whiteLow: "#
|
|
36
|
+
blackLow: "#0000004D",
|
|
37
|
+
whiteHigh: "#FFFFFF",
|
|
38
|
+
whiteMedium: "#FFFFFF99",
|
|
39
|
+
whiteLow: "#0000001A",
|
|
40
40
|
};
|
|
41
41
|
export const semantic = {
|
|
42
42
|
overlay: "#13131366",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../core/foundations/colors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,SAAS;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,4DAA4D;IAC5D,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,8CAA8C;IAC9C,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,kDAAkD;IAClD,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,qCAAqC;IACrC,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,WAAW;CACrB,CAAC","sourcesContent":["export const main = {\n grantbiiBlue: \"#
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../core/foundations/colors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,YAAY,EAAE,SAAS;IACvB,cAAc,EAAE,SAAS;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,4DAA4D;IAC5D,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,8CAA8C;IAC9C,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,kDAAkD;IAClD,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,qCAAqC;IACrC,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE,WAAW;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,WAAW;CACrB,CAAC","sourcesContent":["export const main = {\n grantbiiBlue: \"#16538A\",\n grantbiiOrange: \"#EBA338\",\n};\n\nexport const base = {\n black: \"#232022\",\n white: \"#FFFFFF\",\n};\n\nexport const neutral = {\n grey1: \"#999999\",\n grey2: \"#CCCCCC\",\n grey3: \"#EEEEEE\",\n grey4: \"#FAFAFA\",\n};\n\nexport const accent = {\n // usually includes dangerous, wrong or rejected information\n red1: \"#C02318\",\n red2: \"#F88E86\",\n red3: \"#FFE9E7\",\n // usually indicates warning, progressing, etc\n yellow1: \"#EDAB03\",\n yellow2: \"#F4CC68\",\n yellow3: \"#FFF9E8\",\n // usually indicates success, correct, passed, etc\n green1: \"#08A45E\",\n green2: \"#6BC89E\",\n green3: \"#EBFFF6\",\n // usually indicates info, no emotion\n blue1: \"#1878E4\",\n blue2: \"#74AEEF\",\n blue3: \"#ECF5FF\",\n};\n\nexport const typography = {\n blackHigh: \"#000000E5\",\n blackMedium: \"#00000099\",\n blackLow: \"#0000004D\",\n whiteHigh: \"#FFFFFF\",\n whiteMedium: \"#FFFFFF99\",\n whiteLow: \"#0000001A\",\n};\n\nexport const semantic = {\n overlay: \"#13131366\",\n};\n"]}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { LoaderSizeMarginProps } from "react-spinners/helpers/props";
|
|
2
2
|
type PageLoaderProps = {
|
|
3
3
|
isPacman?: boolean;
|
|
4
|
+
loadingText?: string;
|
|
5
|
+
tip?: string;
|
|
4
6
|
} & LoaderSizeMarginProps;
|
|
5
7
|
/**
|
|
6
8
|
* The animation to show when loading the whole page
|
|
7
9
|
*/
|
|
8
|
-
declare const PageLoader: ({ isPacman, color, size, ...restOfProps }: PageLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const PageLoader: ({ loadingText, tip, isPacman, color, size, ...restOfProps }: PageLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export default PageLoader;
|
|
@@ -1,18 +1,40 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { MoonLoader, PacmanLoader } from "react-spinners";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
import { Colors } from "../foundations";
|
|
4
|
+
import { Colors, Responsive, Typography } from "../foundations";
|
|
5
5
|
/**
|
|
6
6
|
* The animation to show when loading the whole page
|
|
7
7
|
*/
|
|
8
|
-
const PageLoader = ({ isPacman = false, color = Colors.accent.blue1, size, ...restOfProps }) => (
|
|
8
|
+
const PageLoader = ({ loadingText, tip, isPacman = false, color = Colors.accent.blue1, size, ...restOfProps }) => (_jsxs(Background, { children: [isPacman ? (_jsx(PacmanLoader, { color: color, size: size ? size : 20, ...restOfProps })) : (_jsx(MoonLoader, { color: color, size: size ? size : 32, ...restOfProps })), loadingText || tip ? (_jsxs(Text, { children: [loadingText ? _jsx(LoadingText, { children: loadingText }) : _jsx(_Fragment, {}), tip ? _jsx(Tip, { children: tip }) : _jsx(_Fragment, {})] })) : (_jsx(_Fragment, {}))] }));
|
|
9
9
|
export default PageLoader;
|
|
10
10
|
const Background = styled.div `
|
|
11
11
|
display: flex;
|
|
12
|
-
|
|
12
|
+
flex-direction: column;
|
|
13
13
|
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 20px;
|
|
14
16
|
|
|
15
17
|
width: 100%;
|
|
16
18
|
height: 100%;
|
|
17
19
|
`;
|
|
20
|
+
const Text = styled.div `
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 8px;
|
|
25
|
+
`;
|
|
26
|
+
const LoadingText = styled.p `
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
`;
|
|
29
|
+
const Tip = styled.p `
|
|
30
|
+
color: ${Colors.typography.blackMedium};
|
|
31
|
+
|
|
32
|
+
@media (width < ${Responsive.WIDTH_BREAKPOINTS.laptop}) {
|
|
33
|
+
font-size: ${Typography.HELPER_FONT_SIZES.small};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (width >= ${Responsive.WIDTH_BREAKPOINTS.laptop}) {
|
|
37
|
+
font-size: ${Typography.HELPER_FONT_SIZES.big};
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
18
40
|
//# sourceMappingURL=PageLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLoader.js","sourceRoot":"","sources":["../../../core/templates/PageLoader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"PageLoader.js","sourceRoot":"","sources":["../../../core/templates/PageLoader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAQhE;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,EAClB,WAAW,EACX,GAAG,EACH,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAC3B,IAAI,EACJ,GAAG,WAAW,EACE,EAAE,EAAE,CAAC,CACrB,MAAC,UAAU,eACR,QAAQ,CAAC,CAAC,CAAC,CACV,KAAC,YAAY,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAM,WAAW,GAAI,CACxE,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAM,WAAW,GAAI,CACtE,EAEA,WAAW,IAAI,GAAG,CAAC,CAAC,CAAC,CACpB,MAAC,IAAI,eACF,WAAW,CAAC,CAAC,CAAC,KAAC,WAAW,cAAE,WAAW,GAAe,CAAC,CAAC,CAAC,mBAAK,EAC9D,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,cAAE,GAAG,GAAO,CAAC,CAAC,CAAC,mBAAK,IAC1B,CACR,CAAC,CAAC,CAAC,CACF,mBAAK,CACN,IACU,CACd,CAAC;AAEF,eAAe,UAAU,CAAC;AAE1B,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CAS5B,CAAC;AAEF,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKtB,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAA;;CAE3B,CAAC;AAEF,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAA;WACT,MAAM,CAAC,UAAU,CAAC,WAAW;;oBAEpB,UAAU,CAAC,iBAAiB,CAAC,MAAM;iBACtC,UAAU,CAAC,iBAAiB,CAAC,KAAK;;;qBAG9B,UAAU,CAAC,iBAAiB,CAAC,MAAM;iBACvC,UAAU,CAAC,iBAAiB,CAAC,GAAG;;CAEhD,CAAC","sourcesContent":["import { MoonLoader, PacmanLoader } from \"react-spinners\";\nimport type { LoaderSizeMarginProps } from \"react-spinners/helpers/props\";\nimport styled from \"styled-components\";\nimport { Colors, Responsive, Typography } from \"../foundations\";\n\ntype PageLoaderProps = {\n isPacman?: boolean;\n loadingText?: string;\n tip?: string;\n} & LoaderSizeMarginProps;\n\n/**\n * The animation to show when loading the whole page\n */\nconst PageLoader = ({\n loadingText,\n tip,\n isPacman = false,\n color = Colors.accent.blue1,\n size,\n ...restOfProps\n}: PageLoaderProps) => (\n <Background>\n {isPacman ? (\n <PacmanLoader color={color} size={size ? size : 20} {...restOfProps} />\n ) : (\n <MoonLoader color={color} size={size ? size : 32} {...restOfProps} />\n )}\n\n {loadingText || tip ? (\n <Text>\n {loadingText ? <LoadingText>{loadingText}</LoadingText> : <></>}\n {tip ? <Tip>{tip}</Tip> : <></>}\n </Text>\n ) : (\n <></>\n )}\n </Background>\n);\n\nexport default PageLoader;\n\nconst Background = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 20px;\n\n width: 100%;\n height: 100%;\n`;\n\nconst Text = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n`;\n\nconst LoadingText = styled.p`\n font-weight: 500;\n`;\n\nconst Tip = styled.p`\n color: ${Colors.typography.blackMedium};\n\n @media (width < ${Responsive.WIDTH_BREAKPOINTS.laptop}) {\n font-size: ${Typography.HELPER_FONT_SIZES.small};\n }\n\n @media (width >= ${Responsive.WIDTH_BREAKPOINTS.laptop}) {\n font-size: ${Typography.HELPER_FONT_SIZES.big};\n }\n`;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grantbii/design-system",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"description": "Grantbii's Design System",
|
|
5
5
|
"homepage": "https://design.grantbii.com",
|
|
6
6
|
"repository": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"build-storybook": "storybook build"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@grantbii/ui-core": "1.1.
|
|
22
|
+
"@grantbii/ui-core": "1.1.4",
|
|
23
23
|
"@phosphor-icons/react": "2.1.10",
|
|
24
|
-
"country-flag-icons": "1.5.
|
|
25
|
-
"next": "15.5.
|
|
24
|
+
"country-flag-icons": "1.5.21",
|
|
25
|
+
"next": "15.5.4",
|
|
26
26
|
"react": "19.1.1",
|
|
27
27
|
"react-dom": "19.1.1",
|
|
28
28
|
"react-dropzone": "14.3.8",
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@chromatic-com/storybook": "4.1.1",
|
|
34
|
-
"@eslint/js": "9.
|
|
35
|
-
"@next/eslint-plugin-next": "15.5.
|
|
36
|
-
"@storybook/addon-a11y": "9.1.
|
|
37
|
-
"@storybook/addon-docs": "9.1.
|
|
38
|
-
"@storybook/addon-onboarding": "9.1.
|
|
39
|
-
"@storybook/addon-vitest": "9.1.
|
|
40
|
-
"@storybook/nextjs-vite": "9.1.
|
|
34
|
+
"@eslint/js": "9.36.0",
|
|
35
|
+
"@next/eslint-plugin-next": "15.5.4",
|
|
36
|
+
"@storybook/addon-a11y": "9.1.8",
|
|
37
|
+
"@storybook/addon-docs": "9.1.8",
|
|
38
|
+
"@storybook/addon-onboarding": "9.1.8",
|
|
39
|
+
"@storybook/addon-vitest": "9.1.8",
|
|
40
|
+
"@storybook/nextjs-vite": "9.1.8",
|
|
41
41
|
"@types/node": "22.18.0",
|
|
42
|
-
"@types/react": "19.1.
|
|
42
|
+
"@types/react": "19.1.13",
|
|
43
43
|
"@types/react-dom": "19.1.9",
|
|
44
44
|
"@vitest/browser": "3.2.4",
|
|
45
45
|
"@vitest/coverage-v8": "3.2.4",
|
|
46
|
-
"eslint": "9.
|
|
47
|
-
"eslint-config-next": "15.5.
|
|
48
|
-
"eslint-plugin-storybook": "9.1.
|
|
46
|
+
"eslint": "9.36.0",
|
|
47
|
+
"eslint-config-next": "15.5.4",
|
|
48
|
+
"eslint-plugin-storybook": "9.1.8",
|
|
49
49
|
"husky": "9.1.7",
|
|
50
|
-
"lint-staged": "16.
|
|
51
|
-
"playwright": "1.55.
|
|
50
|
+
"lint-staged": "16.2.0",
|
|
51
|
+
"playwright": "1.55.1",
|
|
52
52
|
"prettier": "3.6.2",
|
|
53
|
-
"storybook": "9.1.
|
|
53
|
+
"storybook": "9.1.8",
|
|
54
54
|
"typescript": "5.9.2",
|
|
55
55
|
"vitest": "3.2.4"
|
|
56
56
|
},
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/nextjs-vite";
|
|
2
2
|
type PageLoaderExampleProps = {
|
|
3
3
|
isPacman?: boolean;
|
|
4
|
+
loadingText?: string;
|
|
5
|
+
tip?: string;
|
|
4
6
|
};
|
|
5
|
-
declare const PageLoaderExample: (
|
|
7
|
+
declare const PageLoaderExample: (props: PageLoaderExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
declare const meta: Meta<typeof PageLoaderExample>;
|
|
7
9
|
export default meta;
|
|
8
10
|
type Story = StoryObj<typeof meta>;
|
|
9
|
-
export declare const
|
|
11
|
+
export declare const GrantInsights: Story;
|
|
12
|
+
export declare const GrantbiiDashboard: Story;
|
|
10
13
|
export declare const AdminConsole: Story;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { PageLoader } from "@/.";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
const PageLoaderExample = (
|
|
4
|
+
const PageLoaderExample = (props) => (_jsx(BaseExample, { children: _jsx(PageLoader, { ...props }) }));
|
|
5
5
|
const BaseExample = styled.div `
|
|
6
6
|
width: 100vw;
|
|
7
7
|
height: 100vh;
|
|
@@ -15,9 +15,15 @@ const meta = {
|
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
export default meta;
|
|
18
|
-
export const
|
|
18
|
+
export const GrantInsights = {
|
|
19
19
|
args: {},
|
|
20
20
|
};
|
|
21
|
+
export const GrantbiiDashboard = {
|
|
22
|
+
args: {
|
|
23
|
+
loadingText: "Loading...",
|
|
24
|
+
tip: "Pro tip: go grab a cup of coffee while waiting for the page to load",
|
|
25
|
+
},
|
|
26
|
+
};
|
|
21
27
|
export const AdminConsole = {
|
|
22
28
|
args: { isPacman: true },
|
|
23
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLoader.stories.js","sourceRoot":"","sources":["../../../stories/templates/PageLoader.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,MAAM,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"PageLoader.stories.js","sourceRoot":"","sources":["../../../stories/templates/PageLoader.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAQvC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAE,EAAE,CAAC,CAC3D,KAAC,WAAW,cACV,KAAC,UAAU,OAAK,KAAK,GAAI,GACb,CACf,CAAC;AAEF,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAG7B,CAAC;AAEF,MAAM,IAAI,GAAmC;IAC3C,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,iBAAiB;IAC5B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,aAAa,GAAU;IAClC,IAAI,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAU;IACtC,IAAI,EAAE;QACJ,WAAW,EAAE,YAAY;QACzB,GAAG,EAAE,qEAAqE;KAC3E;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAU;IACjC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;CACzB,CAAC","sourcesContent":["import { PageLoader } from \"@/.\";\nimport type { Meta, StoryObj } from \"@storybook/nextjs-vite\";\nimport styled from \"styled-components\";\n\ntype PageLoaderExampleProps = {\n isPacman?: boolean;\n loadingText?: string;\n tip?: string;\n};\n\nconst PageLoaderExample = (props: PageLoaderExampleProps) => (\n <BaseExample>\n <PageLoader {...props} />\n </BaseExample>\n);\n\nconst BaseExample = styled.div`\n width: 100vw;\n height: 100vh;\n`;\n\nconst meta: Meta<typeof PageLoaderExample> = {\n title: \"Templates/Page Loader\",\n component: PageLoaderExample,\n tags: [\"autodocs\"],\n parameters: {\n layout: \"fullscreen\",\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const GrantInsights: Story = {\n args: {},\n};\n\nexport const GrantbiiDashboard: Story = {\n args: {\n loadingText: \"Loading...\",\n tip: \"Pro tip: go grab a cup of coffee while waiting for the page to load\",\n },\n};\n\nexport const AdminConsole: Story = {\n args: { isPacman: true },\n};\n"]}
|