From beec1d92e7b64eb2fcf608dcad4bf8c91856ee57 Mon Sep 17 00:00:00 2001 From: Augustin Mauroy Date: Mon, 23 Dec 2024 11:38:47 +0100 Subject: [PATCH 1/6] feat(icons): introduce package manager -npm -pnpm -yarn --- apps/site/components/.DS_Store | Bin 0 -> 6148 bytes .../components/Icons/PackageManager/Npm.tsx | 21 +++++++++++++++++ .../components/Icons/PackageManager/Pnpm.tsx | 22 ++++++++++++++++++ .../components/Icons/PackageManager/Yarn.tsx | 19 +++++++++++++++ .../__design__/package-manager.stories.tsx | 17 ++++++++++++++ 5 files changed, 79 insertions(+) create mode 100644 apps/site/components/.DS_Store create mode 100644 apps/site/components/Icons/PackageManager/Npm.tsx create mode 100644 apps/site/components/Icons/PackageManager/Pnpm.tsx create mode 100644 apps/site/components/Icons/PackageManager/Yarn.tsx create mode 100644 apps/site/components/__design__/package-manager.stories.tsx diff --git a/apps/site/components/.DS_Store b/apps/site/components/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ef9939cee6fcac97eefccb501b0d72c7498e093c GIT binary patch literal 6148 zcmeHKI|>3Z5S{S@f{mqRuHX%VXkqOI1O*#eLD70E&*jm4^J$jFP7CD?OkOgXmylQN z?1+diZ-<4*OhhJdLwVTHH`_Pw*&rhdgyW3seS2w6=jPbUeHSq9ST?ekvosyP?a-(I z6`%rCfC^B7Pb-iWb~63+!90%&P=TLUz`hR!ZdeoBK>u`L@D>0#Lf8#+?GNs z1|kB}paO%c*> = props => ( + + + + + + +); + +export default NpmIcon; diff --git a/apps/site/components/Icons/PackageManager/Pnpm.tsx b/apps/site/components/Icons/PackageManager/Pnpm.tsx new file mode 100644 index 0000000000000..7e7e25a048258 --- /dev/null +++ b/apps/site/components/Icons/PackageManager/Pnpm.tsx @@ -0,0 +1,22 @@ +import type { FC, SVGProps } from 'react'; + +const PnpmIcon: FC> = props => ( + + + + + + + + + + +); + +export default PnpmIcon; diff --git a/apps/site/components/Icons/PackageManager/Yarn.tsx b/apps/site/components/Icons/PackageManager/Yarn.tsx new file mode 100644 index 0000000000000..1f58af505b1a6 --- /dev/null +++ b/apps/site/components/Icons/PackageManager/Yarn.tsx @@ -0,0 +1,19 @@ +import type { FC, SVGProps } from 'react'; + +/** + * @see https://github.com/yarnpkg/assets/blob/master/yarn-kitten-circle.svg + */ +const YarnIcon: FC> = props => ( + + + + +); + +export default YarnIcon; diff --git a/apps/site/components/__design__/package-manager.stories.tsx b/apps/site/components/__design__/package-manager.stories.tsx new file mode 100644 index 0000000000000..6707083b4f510 --- /dev/null +++ b/apps/site/components/__design__/package-manager.stories.tsx @@ -0,0 +1,17 @@ +import type { Meta as MetaObj, StoryObj } from '@storybook/react'; + +import NpmIcon from '@/components/Icons/PackageManager/Npm'; +import PnpmIcon from '@/components/Icons/PackageManager/Pnpm'; +import YarnIcon from '@/components/Icons/PackageManager/Yarn'; + +export const PackageManager: StoryObj = { + render: () => ( +
+ + + +
+ ), +}; + +export default { title: 'Design System' } as MetaObj; From 11a1aaaf1656b744f07b95037658e4fec4cd7342 Mon Sep 17 00:00:00 2001 From: Augustin Mauroy Date: Mon, 23 Dec 2024 11:43:29 +0100 Subject: [PATCH 2/6] fix: svg in tsx --- apps/site/components/Icons/PackageManager/Npm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/components/Icons/PackageManager/Npm.tsx b/apps/site/components/Icons/PackageManager/Npm.tsx index 5c895597c7f68..989ece9979787 100644 --- a/apps/site/components/Icons/PackageManager/Npm.tsx +++ b/apps/site/components/Icons/PackageManager/Npm.tsx @@ -8,7 +8,7 @@ const NpmIcon: FC> = props => ( xmlns="http://www.w3.org/2000/svg" {...props} > - + Date: Mon, 23 Dec 2024 11:56:13 +0100 Subject: [PATCH 3/6] add jsdoc for provenance --- apps/site/components/Icons/PackageManager/Npm.tsx | 3 +++ apps/site/components/Icons/PackageManager/Pnpm.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/site/components/Icons/PackageManager/Npm.tsx b/apps/site/components/Icons/PackageManager/Npm.tsx index 989ece9979787..24911afb459a7 100644 --- a/apps/site/components/Icons/PackageManager/Npm.tsx +++ b/apps/site/components/Icons/PackageManager/Npm.tsx @@ -1,5 +1,8 @@ import type { FC, SVGProps } from 'react'; +/** + * @see https://github.com/npm/logos/blob/master/npm%20square/n.svg + */ const NpmIcon: FC> = props => ( > = props => ( Date: Mon, 23 Dec 2024 23:03:39 +0100 Subject: [PATCH 4/6] use righ size --- apps/site/components/Icons/PackageManager/Npm.tsx | 4 ++-- apps/site/components/Icons/PackageManager/Pnpm.tsx | 4 ++-- apps/site/components/Icons/PackageManager/Yarn.tsx | 8 +++++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/site/components/Icons/PackageManager/Npm.tsx b/apps/site/components/Icons/PackageManager/Npm.tsx index 24911afb459a7..b59d06d75e024 100644 --- a/apps/site/components/Icons/PackageManager/Npm.tsx +++ b/apps/site/components/Icons/PackageManager/Npm.tsx @@ -5,8 +5,8 @@ import type { FC, SVGProps } from 'react'; */ const NpmIcon: FC> = props => ( > = props => ( > = props => ( - + Date: Mon, 23 Dec 2024 23:19:17 +0100 Subject: [PATCH 5/6] Delete .DS_Store --- apps/site/components/.DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 apps/site/components/.DS_Store diff --git a/apps/site/components/.DS_Store b/apps/site/components/.DS_Store deleted file mode 100644 index ef9939cee6fcac97eefccb501b0d72c7498e093c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKI|>3Z5S{S@f{mqRuHX%VXkqOI1O*#eLD70E&*jm4^J$jFP7CD?OkOgXmylQN z?1+diZ-<4*OhhJdLwVTHH`_Pw*&rhdgyW3seS2w6=jPbUeHSq9ST?ekvosyP?a-(I z6`%rCfC^B7Pb-iWb~63+!90%&P=TLUz`hR!ZdeoBK>u`L@D>0#Lf8#+?GNs z1|kB}paO%c* Date: Tue, 24 Dec 2024 19:01:27 +0000 Subject: [PATCH 6/6] chore: remove unnecessary see tags --- apps/site/components/Icons/PackageManager/Npm.tsx | 3 --- apps/site/components/Icons/PackageManager/Pnpm.tsx | 3 --- apps/site/components/Icons/PackageManager/Yarn.tsx | 3 --- 3 files changed, 9 deletions(-) diff --git a/apps/site/components/Icons/PackageManager/Npm.tsx b/apps/site/components/Icons/PackageManager/Npm.tsx index b59d06d75e024..88b3d3b3fd738 100644 --- a/apps/site/components/Icons/PackageManager/Npm.tsx +++ b/apps/site/components/Icons/PackageManager/Npm.tsx @@ -1,8 +1,5 @@ import type { FC, SVGProps } from 'react'; -/** - * @see https://github.com/npm/logos/blob/master/npm%20square/n.svg - */ const NpmIcon: FC> = props => ( > = props => ( > = props => (