From dc3c8c67b27c829d6eb973b7e26ab07aaeb596f7 Mon Sep 17 00:00:00 2001 From: Neeraj Lagwankar Date: Fri, 3 Jan 2020 13:44:58 +0530 Subject: [PATCH] Added Gumroad filled icon and corrected file location in README --- packages/icons-svg/ReadMe.md | 16 ++++++++++------ packages/icons-svg/scripts/digest.txt | 1 + packages/icons-svg/svg/filled/gumroad.svg | 3 +++ 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 packages/icons-svg/svg/filled/gumroad.svg diff --git a/packages/icons-svg/ReadMe.md b/packages/icons-svg/ReadMe.md index 64bba946a..17b939b23 100644 --- a/packages/icons-svg/ReadMe.md +++ b/packages/icons-svg/ReadMe.md @@ -13,7 +13,7 @@ Ant Design Icons -Check [all icons list](./docs/list.md). +Check [all icons list](./docs/all-icons-list.mdx). ## Install @@ -85,14 +85,14 @@ export interface AbstractNode { ``` ## Render Helpers + ```ts import { AccountBookFill } from '@ant-design/icons-svg'; import { renderIconDefinitionToSVGElement } from '@ant-design/icons-svg/es/helpers'; -const svgHTMLString = renderIconDefinitionToSVGElement( - AccountBookFill, - { extraSVGAttrs: { width: '1em', height: '1em', fill: 'currentColor' } } -); +const svgHTMLString = renderIconDefinitionToSVGElement(AccountBookFill, { + extraSVGAttrs: { width: '1em', height: '1em', fill: 'currentColor' } +}); console.log(svgHTMLString); // ==> @@ -102,7 +102,10 @@ console.log(svgHTMLString); - Interfaces ```ts -declare function renderIconDefinitionToSVGElement(icon: IconDefinition, options?: HelperRenderOptions): string; +declare function renderIconDefinitionToSVGElement( + icon: IconDefinition, + options?: HelperRenderOptions +): string; interface HelperRenderOptions { placeholders?: { @@ -116,6 +119,7 @@ interface HelperRenderOptions { ``` ## Build Project + ```bash npm run generate # Generate files to ./src npm run build # Build library diff --git a/packages/icons-svg/scripts/digest.txt b/packages/icons-svg/scripts/digest.txt index e8c5ea442..a19ff6038 100644 --- a/packages/icons-svg/scripts/digest.txt +++ b/packages/icons-svg/scripts/digest.txt @@ -384,6 +384,7 @@ google-plus-outlined google-plus-square-filled google-square-filled group-outlined +gumroad-filled hdd-filled hdd-outlined hdd-twotone diff --git a/packages/icons-svg/svg/filled/gumroad.svg b/packages/icons-svg/svg/filled/gumroad.svg new file mode 100644 index 000000000..e1945c5d3 --- /dev/null +++ b/packages/icons-svg/svg/filled/gumroad.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file