@grantbii/design-system 1.16.0 → 1.17.0
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/archive/LinkButton.d.ts +3 -3
- package/core/archive/LinkButton.js +1 -1
- package/core/archive/LinkButton.js.map +1 -1
- package/core/archive/LocationIcon.js +2 -2
- package/core/archive/LocationIcon.js.map +1 -1
- package/core/atoms/index.d.ts +1 -2
- package/core/atoms/index.js +1 -2
- package/core/atoms/index.js.map +1 -1
- package/core/molecules/Badge.d.ts +3 -3
- package/core/molecules/Badge.js +2 -2
- package/core/molecules/Badge.js.map +1 -1
- package/core/molecules/Button.d.ts +3 -3
- package/core/molecules/Button.js +1 -1
- package/core/molecules/Button.js.map +1 -1
- package/core/{atoms → molecules}/Overlay.js +1 -1
- package/core/molecules/Overlay.js.map +1 -0
- package/core/molecules/index.d.ts +1 -0
- package/core/molecules/index.js +1 -0
- package/core/molecules/index.js.map +1 -1
- package/core/organisms/FileDrop.js +3 -3
- package/core/organisms/FileDrop.js.map +1 -1
- package/core/organisms/GrantMatch/ActiveQueryFiles.js +2 -2
- package/core/organisms/GrantMatch/ActiveQueryFiles.js.map +1 -1
- package/core/organisms/GrantMatch/SearchBar.js +4 -4
- package/core/organisms/GrantMatch/SearchBar.js.map +1 -1
- package/core/organisms/Modal.js +2 -2
- package/core/organisms/Modal.js.map +1 -1
- package/core/shared.d.ts +2 -2
- package/core/shared.js +4 -4
- package/core/shared.js.map +1 -1
- package/package.json +3 -3
- package/stories/archive/LinkButton.stories.d.ts +1 -1
- package/stories/archive/LinkButton.stories.js +6 -6
- package/stories/archive/LinkButton.stories.js.map +1 -1
- package/stories/molecules/Badge.stories.js +3 -3
- package/stories/molecules/Badge.stories.js.map +1 -1
- package/stories/molecules/Button.stories.d.ts +1 -1
- package/stories/molecules/Button.stories.js +7 -7
- package/stories/molecules/Button.stories.js.map +1 -1
- package/stories/{atoms → molecules}/Overlay.stories.js +1 -1
- package/stories/molecules/Overlay.stories.js.map +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/core/atoms/Overlay.js.map +0 -1
- package/stories/atoms/Overlay.stories.js.map +0 -1
- /package/core/{atoms → molecules}/Overlay.d.ts +0 -0
- /package/stories/{atoms → molecules}/Overlay.stories.d.ts +0 -0
|
@@ -6,5 +6,5 @@ type Story = StoryObj<typeof meta>;
|
|
|
6
6
|
export declare const TextOnly: Story;
|
|
7
7
|
export declare const LeftIcon: Story;
|
|
8
8
|
export declare const RightIcon: Story;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const BothSystemIcon: Story;
|
|
10
10
|
export declare const Underline: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color,
|
|
1
|
+
import { Color, SystemIcon, LinkButton } from "@/.";
|
|
2
2
|
const meta = {
|
|
3
3
|
title: "Archive/Link Button",
|
|
4
4
|
component: LinkButton,
|
|
@@ -15,20 +15,20 @@ export const TextOnly = {
|
|
|
15
15
|
export const LeftIcon = {
|
|
16
16
|
args: {
|
|
17
17
|
...baseArgs,
|
|
18
|
-
LeftIcon:
|
|
18
|
+
LeftIcon: SystemIcon.PlusIcon,
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
21
|
export const RightIcon = {
|
|
22
22
|
args: {
|
|
23
23
|
...baseArgs,
|
|
24
|
-
RightIcon:
|
|
24
|
+
RightIcon: SystemIcon.MinusIcon,
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
|
-
export const
|
|
27
|
+
export const BothSystemIcon = {
|
|
28
28
|
args: {
|
|
29
29
|
...baseArgs,
|
|
30
|
-
LeftIcon:
|
|
31
|
-
RightIcon:
|
|
30
|
+
LeftIcon: SystemIcon.SmileyXEyesIcon,
|
|
31
|
+
RightIcon: SystemIcon.SmileyMeltingIcon,
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
export const Underline = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkButton.stories.js","sourceRoot":"","sources":["../../../stories/archive/LinkButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"LinkButton.stories.js","sourceRoot":"","sources":["../../../stories/archive/LinkButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGpD,MAAM,IAAI,GAA4B;IACpC,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,UAAU;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,QAAQ,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;AAEjE,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,GAAG,QAAQ;QACX,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC;KACxC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,GAAG,QAAQ;QACX,QAAQ,EAAE,UAAU,CAAC,QAAQ;KAC9B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,GAAG,QAAQ;QACX,SAAS,EAAE,UAAU,CAAC,SAAS;KAChC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,IAAI,EAAE;QACJ,GAAG,QAAQ;QACX,QAAQ,EAAE,UAAU,CAAC,eAAe;QACpC,SAAS,EAAE,UAAU,CAAC,iBAAiB;KACxC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,GAAG,QAAQ;QACX,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW;KACpC;CACF,CAAC","sourcesContent":["import { Color, SystemIcon, LinkButton } from \"@/.\";\nimport type { Meta, StoryObj } from \"@storybook/nextjs-vite\";\n\nconst meta: Meta<typeof LinkButton> = {\n title: \"Archive/Link Button\",\n component: LinkButton,\n tags: [\"autodocs\"],\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nconst baseArgs = { label: \"Link\", href: \"https://grantbii.com\" };\n\nexport const TextOnly: Story = {\n args: {\n ...baseArgs,\n onClick: () => alert(\"clicked on link\"),\n },\n};\n\nexport const LeftIcon: Story = {\n args: {\n ...baseArgs,\n LeftIcon: SystemIcon.PlusIcon,\n },\n};\n\nexport const RightIcon: Story = {\n args: {\n ...baseArgs,\n RightIcon: SystemIcon.MinusIcon,\n },\n};\n\nexport const BothSystemIcon: Story = {\n args: {\n ...baseArgs,\n LeftIcon: SystemIcon.SmileyXEyesIcon,\n RightIcon: SystemIcon.SmileyMeltingIcon,\n },\n};\n\nexport const Underline: Story = {\n args: {\n ...baseArgs,\n underline: true,\n color: Color.typography.blackMedium,\n },\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Badge,
|
|
1
|
+
import { Badge, SystemIcon } from "@/.";
|
|
2
2
|
const meta = {
|
|
3
3
|
title: "Molecules/Badge",
|
|
4
4
|
component: Badge,
|
|
@@ -15,7 +15,7 @@ export const TextOnly = {
|
|
|
15
15
|
};
|
|
16
16
|
export const Icon = {
|
|
17
17
|
args: {
|
|
18
|
-
Icon:
|
|
18
|
+
Icon: SystemIcon.SmileyXEyesIcon,
|
|
19
19
|
label: defaultText,
|
|
20
20
|
},
|
|
21
21
|
};
|
|
@@ -33,7 +33,7 @@ export const LongText = {
|
|
|
33
33
|
};
|
|
34
34
|
export const AlmostEverything = {
|
|
35
35
|
args: {
|
|
36
|
-
Icon:
|
|
36
|
+
Icon: SystemIcon.SmileyXEyesIcon,
|
|
37
37
|
label: longText,
|
|
38
38
|
labelWidthPixels: 160,
|
|
39
39
|
onClickClose,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.stories.js","sourceRoot":"","sources":["../../../stories/molecules/Badge.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Badge.stories.js","sourceRoot":"","sources":["../../../stories/molecules/Badge.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGxC,MAAM,IAAI,GAAuB;IAC/B,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,WAAW,GAAG,OAAO,CAAC;AAC5B,MAAM,QAAQ,GAAG,6CAA6C,CAAC;AAC/D,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAE/D,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,KAAK,EAAE,WAAW;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,UAAU,CAAC,eAAe;QAChC,KAAK,EAAE,WAAW;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,KAAK,EAAE,WAAW;QAClB,YAAY;KACb;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,KAAK,EAAE,QAAQ;QACf,gBAAgB,EAAE,GAAG;KACtB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAU;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,UAAU,CAAC,eAAe;QAChC,KAAK,EAAE,QAAQ;QACf,gBAAgB,EAAE,GAAG;QACrB,YAAY;KACb;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,KAAK,EAAE,UAAU;QACjB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC;KACzC;CACF,CAAC","sourcesContent":["import { Badge, SystemIcon } from \"@/.\";\nimport type { Meta, StoryObj } from \"@storybook/nextjs-vite\";\n\nconst meta: Meta<typeof Badge> = {\n title: \"Molecules/Badge\",\n component: Badge,\n tags: [\"autodocs\"],\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nconst defaultText = \"Badge\";\nconst longText = \"the quick brown fox jumps over the lazy dog\";\nconst onClickClose = () => alert(\"You have closed the badge.\");\n\nexport const TextOnly: Story = {\n args: {\n label: defaultText,\n },\n};\n\nexport const Icon: Story = {\n args: {\n Icon: SystemIcon.SmileyXEyesIcon,\n label: defaultText,\n },\n};\n\nexport const Closeable: Story = {\n args: {\n label: defaultText,\n onClickClose,\n },\n};\n\nexport const LongText: Story = {\n args: {\n label: longText,\n labelWidthPixels: 160,\n },\n};\n\nexport const AlmostEverything: Story = {\n args: {\n Icon: SystemIcon.SmileyXEyesIcon,\n label: longText,\n labelWidthPixels: 160,\n onClickClose,\n },\n};\n\nexport const Clickable: Story = {\n args: {\n label: \"Click Me\",\n onClick: () => alert(\"Clicked on badge\"),\n },\n};\n"]}
|
|
@@ -6,6 +6,6 @@ type Story = StoryObj<typeof meta>;
|
|
|
6
6
|
export declare const TextOnly: Story;
|
|
7
7
|
export declare const LeftIcon: Story;
|
|
8
8
|
export declare const RightIcon: Story;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const BothSystemIcon: Story;
|
|
10
10
|
export declare const Underline: Story;
|
|
11
11
|
export declare const GrantObjectivesFilter: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, Color,
|
|
2
|
+
import { Button, Color, SystemIcon } from "@/.";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
const meta = {
|
|
5
5
|
title: "Molecules/Button",
|
|
@@ -17,20 +17,20 @@ export const TextOnly = {
|
|
|
17
17
|
export const LeftIcon = {
|
|
18
18
|
args: {
|
|
19
19
|
...baseArgs,
|
|
20
|
-
LeftIcon:
|
|
20
|
+
LeftIcon: SystemIcon.PlusIcon,
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
23
|
export const RightIcon = {
|
|
24
24
|
args: {
|
|
25
25
|
...baseArgs,
|
|
26
|
-
RightIcon:
|
|
26
|
+
RightIcon: SystemIcon.MinusIcon,
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
|
-
export const
|
|
29
|
+
export const BothSystemIcon = {
|
|
30
30
|
args: {
|
|
31
31
|
...baseArgs,
|
|
32
|
-
LeftIcon:
|
|
33
|
-
RightIcon:
|
|
32
|
+
LeftIcon: SystemIcon.SmileyXEyesIcon,
|
|
33
|
+
RightIcon: SystemIcon.SmileyMeltingIcon,
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
36
|
export const Underline = {
|
|
@@ -53,7 +53,7 @@ export const GrantObjectivesFilter = {
|
|
|
53
53
|
backgroundColor: Color.neutral.white,
|
|
54
54
|
color: Color.typography.blackMedium,
|
|
55
55
|
onClick: () => alert("You have clicked on the button."),
|
|
56
|
-
label: (_jsxs(Content, { children: [_jsx("p", { children: "Select grant objectives" }), _jsx(
|
|
56
|
+
label: (_jsxs(Content, { children: [_jsx("p", { children: "Select grant objectives" }), _jsx(SystemIcon.CaretRightIcon, { size: 20 })] })),
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
59
|
//# sourceMappingURL=Button.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["../../../stories/molecules/Button.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Button.stories.js","sourceRoot":"","sources":["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AAC,OAAO,CAAC,KAAK;QAChC,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;QACpC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW;QACnC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,iCAAiC,CAAC;QACvD,KAAK,EAAE,CACL,MAAC,OAAO,eACN,kDAA8B,EAC9B,KAAC,UAAU,CAAC,cAAc,IAAC,IAAI,EAAE,EAAE,GAAI,IAC/B,CACX;KACF;CACF,CAAC","sourcesContent":["import { Button, Color, SystemIcon } from \"@/.\";\nimport type { Meta, StoryObj } from \"@storybook/nextjs-vite\";\nimport styled from \"styled-components\";\n\nconst meta: Meta<typeof Button> = {\n title: \"Molecules/Button\",\n component: Button,\n tags: [\"autodocs\"],\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nconst baseArgs = {\n label: \"Button\",\n onClick: () => alert(\"You have clicked on the button.\"),\n};\n\nexport const TextOnly: Story = {\n args: baseArgs,\n};\n\nexport const LeftIcon: Story = {\n args: {\n ...baseArgs,\n LeftIcon: SystemIcon.PlusIcon,\n },\n};\n\nexport const RightIcon: Story = {\n args: {\n ...baseArgs,\n RightIcon: SystemIcon.MinusIcon,\n },\n};\n\nexport const BothSystemIcon: Story = {\n args: {\n ...baseArgs,\n LeftIcon: SystemIcon.SmileyXEyesIcon,\n RightIcon: SystemIcon.SmileyMeltingIcon,\n },\n};\n\nexport const Underline: Story = {\n args: {\n ...baseArgs,\n underline: true,\n color: Color.typography.blackMedium,\n },\n};\n\nconst Content = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n width: 200px;\n`;\n\nexport const GrantObjectivesFilter: Story = {\n args: {\n borderColor: Color.neutral.grey3,\n backgroundColor: Color.neutral.white,\n color: Color.typography.blackMedium,\n onClick: () => alert(\"You have clicked on the button.\"),\n label: (\n <Content>\n <p>Select grant objectives</p>\n <SystemIcon.CaretRightIcon size={20} />\n </Content>\n ),\n },\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Overlay.stories.js","sourceRoot":"","sources":["../../../stories/molecules/Overlay.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAG9B,MAAM,IAAI,GAAyB;IACjC,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAU;IACpC,IAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE;CACpD,CAAC","sourcesContent":["import { Overlay } from \"@/.\";\nimport type { Meta, StoryObj } from \"@storybook/nextjs-vite\";\n\nconst meta: Meta<typeof Overlay> = {\n title: \"Molecules/Overlay\",\n component: Overlay,\n tags: [\"autodocs\"],\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Default: Story = {\n args: { children: \"Content\" },\n};\n\nexport const CenteredContent: Story = {\n args: { children: \"Content\", $centerContent: true },\n};\n"]}
|