@grantbii/design-system 1.23.6 → 1.24.1
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/assets/logos/brand_logomark-full_color.webp +0 -0
- package/core/assets/logos/brand_logomark-reversed_color.webp +0 -0
- package/core/atoms/BrandLogo.d.ts +9 -2
- package/core/atoms/BrandLogo.js +34 -7
- package/core/atoms/BrandLogo.js.map +1 -1
- package/core/molecules/Checkbox.d.ts +0 -1
- package/core/molecules/Checkbox.js +6 -1
- package/core/molecules/Checkbox.js.map +1 -1
- package/package.json +9 -9
- package/stories/atoms/BrandLogo.stories.d.ts +4 -3
- package/stories/atoms/BrandLogo.stories.js +17 -6
- package/stories/atoms/BrandLogo.stories.js.map +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- /package/core/assets/logos/{brand_logo-dark.webp → brand_logo-full_color.webp} +0 -0
- /package/core/assets/logos/{brand_logo-light.webp → brand_logo-reversed_color.webp} +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
type ColorVariant = "full" | "reversed";
|
|
1
2
|
type BrandLogoProps = {
|
|
2
|
-
|
|
3
|
+
colorVariant?: ColorVariant;
|
|
4
|
+
isLogomark?: boolean;
|
|
5
|
+
smallScreenWidth?: string;
|
|
6
|
+
smallScreenHeight?: string;
|
|
7
|
+
bigScreenWidth?: string;
|
|
8
|
+
bigScreenHeight?: string;
|
|
9
|
+
borderRadius?: string;
|
|
3
10
|
alt?: string;
|
|
4
11
|
};
|
|
5
|
-
declare const BrandLogo: ({
|
|
12
|
+
declare const BrandLogo: ({ colorVariant, isLogomark, smallScreenWidth, smallScreenHeight, bigScreenWidth, bigScreenHeight, borderRadius, alt, }: BrandLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
13
|
export default BrandLogo;
|
package/core/atoms/BrandLogo.js
CHANGED
|
@@ -1,20 +1,47 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import Image from "next/image";
|
|
3
3
|
import styled from "styled-components";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import fullColorLogo from "../assets/logos/brand_logo-full_color.webp";
|
|
5
|
+
import reversedColorLogo from "../assets/logos/brand_logo-reversed_color.webp";
|
|
6
|
+
import fullColorLogomark from "../assets/logos/brand_logomark-full_color.webp";
|
|
7
|
+
import reversedColorLogomark from "../assets/logos/brand_logomark-reversed_color.webp";
|
|
6
8
|
import * as Responsive from "../atoms/Responsive";
|
|
7
|
-
const BrandLogo = ({
|
|
9
|
+
const BrandLogo = ({ colorVariant = "full", isLogomark = false, smallScreenWidth = "125px", smallScreenHeight = "40px", bigScreenWidth = "150px", bigScreenHeight = "48px", borderRadius = "0px", alt = "Grantbii", }) => {
|
|
10
|
+
const src = isLogomark
|
|
11
|
+
? variantToLogomarkSrc(colorVariant)
|
|
12
|
+
: variantToLogoSrc(colorVariant);
|
|
13
|
+
const imageProps = {
|
|
14
|
+
src,
|
|
15
|
+
alt,
|
|
16
|
+
priority: true,
|
|
17
|
+
width: ORIGINAL_WIDTH,
|
|
18
|
+
height: ORIGINAL_HEIGHT,
|
|
19
|
+
$smallScreenWidth: smallScreenWidth,
|
|
20
|
+
$smallScreenHeight: smallScreenHeight,
|
|
21
|
+
$bigScreenWidth: bigScreenWidth,
|
|
22
|
+
$bigScreenHeight: bigScreenHeight,
|
|
23
|
+
$borderRadius: borderRadius,
|
|
24
|
+
$isLogomark: isLogomark,
|
|
25
|
+
};
|
|
26
|
+
return _jsx(BrandImage, { ...imageProps });
|
|
27
|
+
};
|
|
8
28
|
export default BrandLogo;
|
|
29
|
+
const ORIGINAL_WIDTH = 250;
|
|
30
|
+
const ORIGINAL_HEIGHT = 80;
|
|
31
|
+
const variantToLogomarkSrc = (colorVariant) => colorVariant === "full" ? fullColorLogomark : reversedColorLogomark;
|
|
32
|
+
const variantToLogoSrc = (colorVariant) => colorVariant === "full" ? fullColorLogo : reversedColorLogo;
|
|
9
33
|
const BrandImage = styled(Image) `
|
|
34
|
+
display: block;
|
|
35
|
+
border-radius: ${(props) => props.$borderRadius};
|
|
36
|
+
|
|
10
37
|
@media (width < ${Responsive.widthBreakpoint.laptop}) {
|
|
11
|
-
width:
|
|
12
|
-
height:
|
|
38
|
+
width: ${(props) => props.$isLogomark ? props.$smallScreenHeight : props.$smallScreenWidth};
|
|
39
|
+
height: ${(props) => props.$smallScreenHeight};
|
|
13
40
|
}
|
|
14
41
|
|
|
15
42
|
@media (width >= ${Responsive.widthBreakpoint.laptop}) {
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
43
|
+
width: ${(props) => props.$isLogomark ? props.$bigScreenHeight : props.$bigScreenWidth};
|
|
44
|
+
height: ${(props) => props.$bigScreenHeight};
|
|
18
45
|
}
|
|
19
46
|
`;
|
|
20
47
|
//# sourceMappingURL=BrandLogo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrandLogo.js","sourceRoot":"","sources":["../../../core/atoms/BrandLogo.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"BrandLogo.js","sourceRoot":"","sources":["../../../core/atoms/BrandLogo.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,aAAa,MAAM,4CAA4C,CAAC;AACvE,OAAO,iBAAiB,MAAM,gDAAgD,CAAC;AAC/E,OAAO,iBAAiB,MAAM,gDAAgD,CAAC;AAC/E,OAAO,qBAAqB,MAAM,oDAAoD,CAAC;AACvF,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAelD,MAAM,SAAS,GAAG,CAAC,EACjB,YAAY,GAAG,MAAM,EACrB,UAAU,GAAG,KAAK,EAClB,gBAAgB,GAAG,OAAO,EA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AkB,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB;cAC9D,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,kBAAkB;;;qBAG5B,UAAU,CAAC,eAAe,CAAC,MAAM;aACzC,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe;cAC1D,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB;;CAE9C,CAAC","sourcesContent":["import Image from \"next/image\";\nimport styled from \"styled-components\";\nimport fullColorLogo from \"../assets/logos/brand_logo-full_color.webp\";\nimport reversedColorLogo from \"../assets/logos/brand_logo-reversed_color.webp\";\nimport fullColorLogomark from \"../assets/logos/brand_logomark-full_color.webp\";\nimport reversedColorLogomark from \"../assets/logos/brand_logomark-reversed_color.webp\";\nimport * as Responsive from \"../atoms/Responsive\";\n\ntype ColorVariant = \"full\" | \"reversed\";\n\ntype BrandLogoProps = {\n colorVariant?: ColorVariant;\n isLogomark?: boolean;\n smallScreenWidth?: string;\n smallScreenHeight?: string;\n bigScreenWidth?: string;\n bigScreenHeight?: string;\n borderRadius?: string;\n alt?: string;\n};\n\nconst BrandLogo = ({\n colorVariant = \"full\",\n isLogomark = false,\n smallScreenWidth = \"125px\",\n smallScreenHeight = \"40px\",\n bigScreenWidth = \"150px\",\n bigScreenHeight = \"48px\",\n borderRadius = \"0px\",\n alt = \"Grantbii\",\n}: BrandLogoProps) => {\n const src = isLogomark\n ? variantToLogomarkSrc(colorVariant)\n : variantToLogoSrc(colorVariant);\n\n const imageProps = {\n src,\n alt,\n priority: true,\n width: ORIGINAL_WIDTH,\n height: ORIGINAL_HEIGHT,\n $smallScreenWidth: smallScreenWidth,\n $smallScreenHeight: smallScreenHeight,\n $bigScreenWidth: bigScreenWidth,\n $bigScreenHeight: bigScreenHeight,\n $borderRadius: borderRadius,\n $isLogomark: isLogomark,\n };\n\n return <BrandImage {...imageProps} />;\n};\n\nexport default BrandLogo;\n\nconst ORIGINAL_WIDTH = 250;\nconst ORIGINAL_HEIGHT = 80;\n\nconst variantToLogomarkSrc = (colorVariant: ColorVariant) =>\n colorVariant === \"full\" ? fullColorLogomark : reversedColorLogomark;\n\nconst variantToLogoSrc = (colorVariant: ColorVariant) =>\n colorVariant === \"full\" ? fullColorLogo : reversedColorLogo;\n\ntype BrandImageProps = {\n $isLogomark: boolean;\n $smallScreenWidth: string;\n $smallScreenHeight: string;\n $bigScreenWidth: string;\n $bigScreenHeight: string;\n $borderRadius: string;\n};\n\nconst BrandImage = styled(Image)<BrandImageProps>`\n display: block;\n border-radius: ${(props) => props.$borderRadius};\n\n @media (width < ${Responsive.widthBreakpoint.laptop}) {\n width: ${(props) =>\n props.$isLogomark ? props.$smallScreenHeight : props.$smallScreenWidth};\n height: ${(props) => props.$smallScreenHeight};\n }\n\n @media (width >= ${Responsive.widthBreakpoint.laptop}) {\n width: ${(props) =>\n props.$isLogomark ? props.$bigScreenHeight : props.$bigScreenWidth};\n height: ${(props) => props.$bigScreenHeight};\n }\n`;\n"]}
|
|
@@ -7,5 +7,10 @@ export default Checkbox;
|
|
|
7
7
|
const BaseCheckbox = styled.input `
|
|
8
8
|
accent-color: ${Color.brand.grantbiiBlue};
|
|
9
9
|
`;
|
|
10
|
-
const CheckboxLabel = ({ id, label }) => (_jsx(
|
|
10
|
+
const CheckboxLabel = ({ id, label }) => (_jsx(BaseCheckboxLabel, { htmlFor: `${id ?? label}-checkbox`, children: label }));
|
|
11
|
+
const BaseCheckboxLabel = styled.label `
|
|
12
|
+
&:hover {
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
11
16
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../core/molecules/Checkbox.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MA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Content":["import type { DetailedHTMLProps, InputHTMLAttributes, ReactNode } from \"react\";\nimport styled from \"styled-components\";\nimport { Color } from \"../atoms\";\nimport { LabelledInput } from \"../shared\";\n\ntype CheckboxProps = {\n label: ReactNode;\n labelBefore?: boolean;\n} & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;\n\nconst Checkbox = ({\n id,\n label,\n labelBefore = false,\n ...checkboxProps\n}: CheckboxProps) => (\n <LabelledInput>\n {label && labelBefore ? <CheckboxLabel id={id} label={label} /> : <></>}\n <BaseCheckbox {...checkboxProps} id={`${id}-checkbox`} type=\"checkbox\" />\n {label && !labelBefore ? <CheckboxLabel id={id} label={label} /> : <></>}\n </LabelledInput>\n);\n\nexport default Checkbox;\n\nconst BaseCheckbox = styled.input`\n accent-color: ${Color.brand.grantbiiBlue};\n`;\n\ntype CheckboxLabelProps = {\n id?: string;\n label: ReactNode;\n};\n\nconst CheckboxLabel = ({ id, label }: CheckboxLabelProps) => (\n <BaseCheckboxLabel htmlFor={`${id ?? label}-checkbox`}>\n {label}\n </BaseCheckboxLabel>\n);\n\nconst BaseCheckboxLabel = styled.label`\n &:hover {\n cursor: pointer;\n }\n`;\n"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@grantbii/design-system",
|
|
3
3
|
"author": "Grantbii",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.24.1",
|
|
6
6
|
"description": "Grantbii's Design System",
|
|
7
7
|
"homepage": "https://design.grantbii.com",
|
|
8
8
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@phosphor-icons/react": "2.1.10",
|
|
24
|
-
"country-flag-icons": "1.6.
|
|
24
|
+
"country-flag-icons": "1.6.17",
|
|
25
25
|
"react-dropzone": "15.0.0",
|
|
26
26
|
"react-spinners": "0.17.0"
|
|
27
27
|
},
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@chromatic-com/storybook": "5.1.2",
|
|
37
37
|
"@grantbii/ui-core": "1.8.5",
|
|
38
|
-
"@storybook/addon-a11y": "10.3.
|
|
39
|
-
"@storybook/addon-docs": "10.3.
|
|
40
|
-
"@storybook/addon-onboarding": "10.3.
|
|
41
|
-
"@storybook/addon-vitest": "10.3.
|
|
42
|
-
"@storybook/nextjs-vite": "10.3.
|
|
38
|
+
"@storybook/addon-a11y": "10.3.6",
|
|
39
|
+
"@storybook/addon-docs": "10.3.6",
|
|
40
|
+
"@storybook/addon-onboarding": "10.3.6",
|
|
41
|
+
"@storybook/addon-vitest": "10.3.6",
|
|
42
|
+
"@storybook/nextjs-vite": "10.3.6",
|
|
43
43
|
"@types/node": "22.19.17",
|
|
44
44
|
"@types/react": "19.2.14",
|
|
45
45
|
"@types/react-dom": "19.2.3",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"eslint": "9.39.4",
|
|
50
50
|
"eslint-config-next": "16.2.4",
|
|
51
51
|
"eslint-config-prettier": "10.1.8",
|
|
52
|
-
"eslint-plugin-storybook": "10.3.
|
|
52
|
+
"eslint-plugin-storybook": "10.3.6",
|
|
53
53
|
"husky": "9.1.7",
|
|
54
54
|
"lint-staged": "16.4.0",
|
|
55
55
|
"next": "16.2.4",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"prettier": "3.8.3",
|
|
58
58
|
"react": "19.2.5",
|
|
59
59
|
"react-dom": "19.2.5",
|
|
60
|
-
"storybook": "10.3.
|
|
60
|
+
"storybook": "10.3.6",
|
|
61
61
|
"styled-components": "6.4.1",
|
|
62
62
|
"typescript": "6.0.3",
|
|
63
63
|
"vitest": "4.1.5"
|
|
@@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/nextjs-vite";
|
|
|
3
3
|
declare const meta: Meta<typeof BrandLogo>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
6
|
+
export declare const FullColor: Story;
|
|
7
|
+
export declare const ReversedColor: Story;
|
|
8
|
+
export declare const FullColorLogomark: Story;
|
|
9
|
+
export declare const ReversedColorLogomark: Story;
|
|
@@ -5,17 +5,28 @@ const meta = {
|
|
|
5
5
|
tags: ["autodocs"],
|
|
6
6
|
};
|
|
7
7
|
export default meta;
|
|
8
|
-
export const
|
|
9
|
-
args: {
|
|
8
|
+
export const FullColor = {
|
|
9
|
+
args: {
|
|
10
|
+
colorVariant: "full",
|
|
11
|
+
isLogomark: false,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
export const ReversedColor = {
|
|
15
|
+
args: {
|
|
16
|
+
colorVariant: "reversed",
|
|
17
|
+
isLogomark: false,
|
|
18
|
+
},
|
|
10
19
|
};
|
|
11
|
-
export const
|
|
20
|
+
export const FullColorLogomark = {
|
|
12
21
|
args: {
|
|
13
|
-
|
|
22
|
+
colorVariant: "full",
|
|
23
|
+
isLogomark: true,
|
|
14
24
|
},
|
|
15
25
|
};
|
|
16
|
-
export const
|
|
26
|
+
export const ReversedColorLogomark = {
|
|
17
27
|
args: {
|
|
18
|
-
|
|
28
|
+
colorVariant: "reversed",
|
|
29
|
+
isLogomark: true,
|
|
19
30
|
},
|
|
20
31
|
};
|
|
21
32
|
//# sourceMappingURL=BrandLogo.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrandLogo.stories.js","sourceRoot":"","sources":["../../../stories/atoms/BrandLogo.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAGhC,MAAM,IAAI,GAA2B;IACnC,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"BrandLogo.stories.js","sourceRoot":"","sources":["../../../stories/atoms/BrandLogo.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAGhC,MAAM,IAAI,GAA2B;IACnC,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,SAAS;IACpB,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM;QACpB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAU;IAClC,IAAI,EAAE;QACJ,YAAY,EAAE,UAAU;QACxB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAU;IACtC,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM;QACpB,UAAU,EAAE,IAAI;KACjB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAU;IAC1C,IAAI,EAAE;QACJ,YAAY,EAAE,UAAU;QACxB,UAAU,EAAE,IAAI;KACjB;CACF,CAAC","sourcesContent":["import { BrandLogo } from \"@/.\";\nimport type { Meta, StoryObj } from \"@storybook/nextjs-vite\";\n\nconst meta: Meta<typeof BrandLogo> = {\n title: \"Atoms/Brand Logo\",\n component: BrandLogo,\n tags: [\"autodocs\"],\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const FullColor: Story = {\n args: {\n colorVariant: \"full\",\n isLogomark: false,\n },\n};\n\nexport const ReversedColor: Story = {\n args: {\n colorVariant: \"reversed\",\n isLogomark: false,\n },\n};\n\nexport const FullColorLogomark: Story = {\n args: {\n colorVariant: \"full\",\n isLogomark: true,\n },\n};\n\nexport const ReversedColorLogomark: Story = {\n args: {\n colorVariant: \"reversed\",\n isLogomark: true,\n },\n};\n"]}
|