From 3e02cc12e37aadef7b94b0e34dd4007d7fb4023a Mon Sep 17 00:00:00 2001 From: Akshay Naik Date: Sat, 13 Jul 2024 18:40:26 +0530 Subject: [PATCH 1/3] updates readme of icon-store --- packages/icon-store/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/icon-store/README.md b/packages/icon-store/README.md index c060f8d5..691d35aa 100644 --- a/packages/icon-store/README.md +++ b/packages/icon-store/README.md @@ -30,11 +30,13 @@ node scripts/generateMaterialIcons.js . ├── mi // minified material svg's react components ├── custom // minified custom svg's react components +├── mint-icons // minified mint-icons svg's react components └── types.d.ts // exports react component type │ ├── svgs │ ├── mi -│ └── custom +│ ├── custom +│ └── mint-icons │ ├── scripts │ ├── generateMaterialIcons.js // Script to copy and filter material icons from google's github repo From 7d4eaceab67fc96a4ba1e4adbc4efc4d77fddf4e Mon Sep 17 00:00:00 2001 From: Akshay Naik Date: Tue, 16 Jul 2024 00:45:31 +0530 Subject: [PATCH 2/3] Adds all mint icons to the storybook --- packages/ui-toolkit/.storybook/main.js | 5 +++- packages/ui-toolkit/package.json | 2 +- .../ui-toolkit/stories/IconStore.stories.tsx | 26 +++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/packages/ui-toolkit/.storybook/main.js b/packages/ui-toolkit/.storybook/main.js index fc1d888c..1af81022 100644 --- a/packages/ui-toolkit/.storybook/main.js +++ b/packages/ui-toolkit/.storybook/main.js @@ -5,5 +5,8 @@ module.exports = { "addons": [ "@storybook/addon-links", "@storybook/addon-essentials" - ] + ], + typescript: { + reactDocgen: 'none', + } } diff --git a/packages/ui-toolkit/package.json b/packages/ui-toolkit/package.json index 32ba77d9..0c04b8f5 100644 --- a/packages/ui-toolkit/package.json +++ b/packages/ui-toolkit/package.json @@ -113,7 +113,7 @@ "typescript": "4.5.5" }, "dependencies": { - "@groww-tech/icon-store": "1.4.1", + "@groww-tech/icon-store": "1.4.6", "@groww-tech/mint-css": "0.1.2", "flat-carousel": "0.0.1", "lodash.debounce": "^4.0.8", diff --git a/packages/ui-toolkit/stories/IconStore.stories.tsx b/packages/ui-toolkit/stories/IconStore.stories.tsx index be125793..83302617 100644 --- a/packages/ui-toolkit/stories/IconStore.stories.tsx +++ b/packages/ui-toolkit/stories/IconStore.stories.tsx @@ -4,6 +4,7 @@ import React from 'react'; import * as imgIcons from '@groww-tech/icon-store/custom'; import * as materialIcons from '@groww-tech/icon-store/mi'; +import * as mintIcons from '@groww-tech/icon-store/mint-icons'; import { copyToClipboard } from '../src/utils/helper'; @@ -67,3 +68,28 @@ export const AllMaterialIcons = () => { ); }; + + +export const AllMintIcons = () => { + return ( +
+ { + Object.keys(mintIcons).map(icon => { + const IconComponent = mintIcons[icon]; + const importCode = `import { ${icon} } from '@groww-tech/icon-store/mi';`; + + return ( + (
{ copyToClipboard(importCode); }} + > + +
{icon}
+
) + ); + }) + } +
+ ); +}; From b7724ddde0384c2dc5cfa7961c706131f3af14f1 Mon Sep 17 00:00:00 2001 From: Akshay Naik Date: Tue, 16 Jul 2024 12:00:21 +0530 Subject: [PATCH 3/3] mint icons import line corrected --- packages/ui-toolkit/stories/IconStore.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-toolkit/stories/IconStore.stories.tsx b/packages/ui-toolkit/stories/IconStore.stories.tsx index 83302617..11788c01 100644 --- a/packages/ui-toolkit/stories/IconStore.stories.tsx +++ b/packages/ui-toolkit/stories/IconStore.stories.tsx @@ -76,7 +76,7 @@ export const AllMintIcons = () => { { Object.keys(mintIcons).map(icon => { const IconComponent = mintIcons[icon]; - const importCode = `import { ${icon} } from '@groww-tech/icon-store/mi';`; + const importCode = `import { ${icon} } from '@groww-tech/icon-store/mint-icons';`; return ( (