@grantbii/design-system 1.0.65 → 1.0.67
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 +3 -0
- package/core/atoms/Badge.js +1 -0
- package/core/atoms/BrandLogo.js +1 -0
- package/core/atoms/Button.js +1 -0
- package/core/atoms/Checkbox.js +1 -0
- package/core/atoms/LinkButton.js +1 -0
- package/core/atoms/PageLoader.js +1 -0
- package/core/atoms/RadioButton.js +1 -0
- package/core/atoms/Textarea.js +1 -0
- package/core/foundations/icons.d.ts +0 -4
- package/core/foundations/icons.js +0 -4
- package/core/foundations/index.d.ts +2 -1
- package/core/foundations/index.js +2 -1
- package/core/foundations/responsive.d.ts +3 -0
- package/core/foundations/responsive.js +3 -0
- package/core/foundations/types.d.ts +1 -0
- package/core/foundations/typography.d.ts +10 -0
- package/core/foundations/typography.js +20 -0
- package/core/global/GlobalStyle.js +0 -9
- package/core/global/index.d.ts +1 -0
- package/core/global/index.js +1 -0
- package/core/molecules/FileDrop.js +28 -16
- package/core/molecules/Modal.d.ts +1 -2
- package/core/molecules/Modal.js +26 -15
- package/core/molecules/RadioButtons.js +1 -0
- package/core/organisms/GrantMatch.d.ts +9 -11
- package/core/organisms/GrantMatch.js +130 -77
- package/core/organisms/TallyModal.js +1 -0
- package/core/organisms/YesNoOptions.js +1 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/stories/molecules/Modal.stories.d.ts +2 -5
- package/stories/molecules/Modal.stories.js +4 -17
- package/stories/organisms/GrantMatch.stories.d.ts +2 -6
- package/stories/organisms/GrantMatch.stories.js +15 -18
- package/tsconfig.tsbuildinfo +1 -1
- package/core/assets/icons/grant_match.webp +0 -0
- package/core/foundations/breakpoints.d.ts +0 -1
- package/core/foundations/breakpoints.js +0 -1
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./core/atoms";
|
|
2
2
|
export * from "./core/foundations";
|
|
3
|
-
export
|
|
3
|
+
export * from "./core/global";
|
|
4
4
|
export * from "./core/integrations";
|
|
5
5
|
export * from "./core/molecules";
|
|
6
6
|
export * from "./core/organisms";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grantbii/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.67",
|
|
4
4
|
"description": "Grantbii's Design System",
|
|
5
5
|
"homepage": "https://design.grantbii.com",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build-storybook": "storybook build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@grantbii/ui-base": "1.0.
|
|
21
|
+
"@grantbii/ui-base": "1.0.18",
|
|
22
22
|
"@phosphor-icons/react": "^2.1.10",
|
|
23
23
|
"country-flag-icons": "^1.5.19",
|
|
24
24
|
"next": "^15.5.0",
|
|
@@ -6,13 +6,10 @@ type ModalExampleProps = {
|
|
|
6
6
|
footer?: ReactNode;
|
|
7
7
|
width?: string;
|
|
8
8
|
height?: string;
|
|
9
|
-
isFullScreen?: boolean;
|
|
10
9
|
};
|
|
11
10
|
declare const ModalExample: (props: ModalExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
declare const meta: Meta<typeof ModalExample>;
|
|
13
12
|
export default meta;
|
|
14
13
|
type Story = StoryObj<typeof meta>;
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const PopUpWithLongContent: Story;
|
|
18
|
-
export declare const FullScreenWithLongContent: Story;
|
|
14
|
+
export declare const ShortContent: Story;
|
|
15
|
+
export declare const LongContent: Story;
|
|
@@ -16,32 +16,19 @@ export default meta;
|
|
|
16
16
|
const header = "Grantbii";
|
|
17
17
|
const shortContent = (_jsx("p", { children: "Amplifying Business Grant Impact for SMEs & Scale-ups" }));
|
|
18
18
|
const longContent = (_jsxs("div", { children: [_jsx("p", { children: "Grantbii is an AI-powered grant intelligence and matching platform that helps grant seekers effortlessly find, match, prep & apply for the right business grants - maximizing grant funding success with minimal effort. Our platform connects businesses with a trusted Grant Enabler Network - solution providers, consulting experts, and delivery partners - ensuring that every dollar of grant funding leads to real business transformation impact." }), _jsx("p", { children: "In the future, Grantbii aims to automate the entire grant application lifecycle, from discovery to claims submission and guide you through the application process with minimal effort on your part." }), _jsx("p", { children: "To maximize your chances of grant success, you can expect to leverage on tools to assess your chances of success and offer expert support to ensure your application meets all necessary requirements." })] }));
|
|
19
|
-
export const
|
|
19
|
+
export const ShortContent = {
|
|
20
20
|
args: {
|
|
21
21
|
header,
|
|
22
22
|
content: shortContent,
|
|
23
23
|
width: "600px",
|
|
24
|
+
height: "360px",
|
|
24
25
|
},
|
|
25
26
|
};
|
|
26
|
-
export const
|
|
27
|
-
args: {
|
|
28
|
-
header,
|
|
29
|
-
content: shortContent,
|
|
30
|
-
isFullScreen: true,
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
export const PopUpWithLongContent = {
|
|
27
|
+
export const LongContent = {
|
|
34
28
|
args: {
|
|
35
29
|
header,
|
|
36
30
|
content: longContent,
|
|
37
31
|
width: "600px",
|
|
38
|
-
height: "
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
export const FullScreenWithLongContent = {
|
|
42
|
-
args: {
|
|
43
|
-
header,
|
|
44
|
-
content: longContent,
|
|
45
|
-
isFullScreen: true,
|
|
32
|
+
height: "360px",
|
|
46
33
|
},
|
|
47
34
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/nextjs-vite";
|
|
2
|
-
|
|
3
|
-
isMobile?: boolean;
|
|
4
|
-
};
|
|
5
|
-
declare const GrantMatchExample: ({ isMobile }: GrantMatchExampleProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const GrantMatchExample: () => import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
declare const meta: Meta<typeof GrantMatchExample>;
|
|
7
4
|
export default meta;
|
|
8
5
|
type Story = StoryObj<typeof meta>;
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const Mobile: Story;
|
|
6
|
+
export declare const Example: Story;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { GrantMatch } from "@/.";
|
|
3
|
+
import { useGrantMatchActiveQuery } from "@/core/organisms/GrantMatch";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import styled from "styled-components";
|
|
6
|
-
const GrantMatchExample = (
|
|
6
|
+
const GrantMatchExample = () => {
|
|
7
7
|
const [status, setStatus] = useState("pending query");
|
|
8
8
|
const performGrantMatch = (newQuery) => {
|
|
9
9
|
const fileNames = newQuery.files.map((file) => file.name).join(", ");
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const printableQuery = `files [${fileNames}] and text [${newQuery.text}]`;
|
|
11
|
+
setStatus(`finding grants using ${printableQuery}`);
|
|
12
|
+
setTimeout(() => setStatus(`found grants with ${printableQuery}`), 3000);
|
|
12
13
|
};
|
|
13
14
|
const resetGrantMatch = () => setStatus("pending query");
|
|
14
|
-
const grantMatchQueryProps =
|
|
15
|
-
return (_jsxs(Container, {
|
|
15
|
+
const grantMatchQueryProps = useGrantMatchActiveQuery({}, performGrantMatch, resetGrantMatch);
|
|
16
|
+
return (_jsxs(Container, { children: [_jsx(GrantMatch, Object.assign({}, grantMatchQueryProps)), _jsxs("p", { children: ["Status: ", status] })] }));
|
|
16
17
|
};
|
|
17
18
|
const Container = styled.div `
|
|
18
19
|
display: flex;
|
|
@@ -20,13 +21,12 @@ const Container = styled.div `
|
|
|
20
21
|
gap: 8px;
|
|
21
22
|
|
|
22
23
|
padding: 16px;
|
|
23
|
-
|
|
24
|
-
width: ${({ $isMobile = false }) => ($isMobile ? "360px" : "90vw")};
|
|
25
|
-
height: ${({ $isMobile = false }) => ($isMobile ? "600px" : "100vh")};
|
|
26
|
-
|
|
27
|
-
border: ${({ $isMobile = false }) => $isMobile ? `1px solid ${Colors.neutral.grey2}` : "none"};
|
|
28
|
-
border-radius: 32px;
|
|
29
24
|
`;
|
|
25
|
+
// width: ${({ $screenSize }) => ($screenSize === "small" ? "360px" : "90vw")};
|
|
26
|
+
// height: ${({ $screenSize }) => ($screenSize === "small" ? "600px" : "100vh")};
|
|
27
|
+
// border: ${({ $screenSize }) =>
|
|
28
|
+
// $screenSize === "small" ? `1px solid ${Colors.neutral.grey2}` : "none"};
|
|
29
|
+
// border-radius: 32px;
|
|
30
30
|
const meta = {
|
|
31
31
|
title: "Organisms/Grant Match",
|
|
32
32
|
component: GrantMatchExample,
|
|
@@ -36,9 +36,6 @@ const meta = {
|
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
38
|
export default meta;
|
|
39
|
-
export const
|
|
40
|
-
args: {
|
|
41
|
-
};
|
|
42
|
-
export const Mobile = {
|
|
43
|
-
args: { isMobile: true },
|
|
39
|
+
export const Example = {
|
|
40
|
+
args: {},
|
|
44
41
|
};
|