From a0a3add3ff0b3d3adf0c498c7b31936b2c52425a Mon Sep 17 00:00:00 2001 From: Simon Guo Date: Tue, 29 Oct 2024 09:25:59 +0800 Subject: [PATCH] feat: add some new icons (#16) * feat: add some new icons * ci: update scripts/changelog.json * build: meta.json --- scripts/changelog.json | 5 ++++- src/icons/action/Heart.tsx | 19 +++++++++++++++++++ src/icons/action/Star.tsx | 19 +++++++++++++++++++ src/icons/status/Spinner.tsx | 19 +++++++++++++++++++ src/meta.json | 15 +++++++++++++++ src/react/Heart.tsx | 12 ++++++++++++ src/react/Spinner.tsx | 12 ++++++++++++ src/react/Star.tsx | 12 ++++++++++++ src/react/index.ts | 3 +++ src/svg/action/heart.svg | 4 ++++ src/svg/action/star.svg | 4 ++++ src/svg/status/spinner.svg | 4 ++++ 12 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 src/icons/action/Heart.tsx create mode 100644 src/icons/action/Star.tsx create mode 100644 src/icons/status/Spinner.tsx create mode 100644 src/react/Heart.tsx create mode 100644 src/react/Spinner.tsx create mode 100644 src/react/Star.tsx create mode 100755 src/svg/action/heart.svg create mode 100755 src/svg/action/star.svg create mode 100755 src/svg/status/spinner.svg diff --git a/scripts/changelog.json b/scripts/changelog.json index 712d04f..def35a2 100644 --- a/scripts/changelog.json +++ b/scripts/changelog.json @@ -72,7 +72,10 @@ "WechatSubmessageOutline", "Width", "Zoomin", - "Zoomout" + "Zoomout", + "Spinner", + "Star", + "Heart" ] } ] diff --git a/src/icons/action/Heart.tsx b/src/icons/action/Heart.tsx new file mode 100644 index 0000000..510ec01 --- /dev/null +++ b/src/icons/action/Heart.tsx @@ -0,0 +1,19 @@ +// Generated by script, please do not edit this file. +import * as React from 'react'; +import type { SVGProps } from 'react'; +import { Ref, forwardRef } from 'react'; +const Heart = (props: SVGProps, ref: Ref) => ( + + + +); +const ForwardRef = forwardRef(Heart); +export default ForwardRef; diff --git a/src/icons/action/Star.tsx b/src/icons/action/Star.tsx new file mode 100644 index 0000000..282a995 --- /dev/null +++ b/src/icons/action/Star.tsx @@ -0,0 +1,19 @@ +// Generated by script, please do not edit this file. +import * as React from 'react'; +import type { SVGProps } from 'react'; +import { Ref, forwardRef } from 'react'; +const Star = (props: SVGProps, ref: Ref) => ( + + + +); +const ForwardRef = forwardRef(Star); +export default ForwardRef; diff --git a/src/icons/status/Spinner.tsx b/src/icons/status/Spinner.tsx new file mode 100644 index 0000000..b8e9b2c --- /dev/null +++ b/src/icons/status/Spinner.tsx @@ -0,0 +1,19 @@ +// Generated by script, please do not edit this file. +import * as React from 'react'; +import type { SVGProps } from 'react'; +import { Ref, forwardRef } from 'react'; +const Spinner = (props: SVGProps, ref: Ref) => ( + + + +); +const ForwardRef = forwardRef(Spinner); +export default ForwardRef; diff --git a/src/meta.json b/src/meta.json index a99ca81..0b2a7b5 100644 --- a/src/meta.json +++ b/src/meta.json @@ -76,6 +76,11 @@ "iconName": "Gear", "categoryName": "action" }, + { + "iconName": "Heart", + "categoryName": "action", + "version": "1.3.0" + }, { "iconName": "ImportSite", "categoryName": "action", @@ -173,6 +178,11 @@ "categoryName": "action", "version": "1.3.0" }, + { + "iconName": "Star", + "categoryName": "action", + "version": "1.3.0" + }, { "iconName": "Tools", "categoryName": "action" @@ -1106,6 +1116,11 @@ "categoryName": "status", "version": "1.3.0" }, + { + "iconName": "Spinner", + "categoryName": "status", + "version": "1.3.0" + }, { "iconName": "TimeRound", "categoryName": "status" diff --git a/src/react/Heart.tsx b/src/react/Heart.tsx new file mode 100644 index 0000000..24ab075 --- /dev/null +++ b/src/react/Heart.tsx @@ -0,0 +1,12 @@ +// Generated by script, don't edit it please. +import createSvgIcon from '../createSvgIcon'; +import HeartSvg from '../icons/action/Heart'; + +const Heart = createSvgIcon({ + as: HeartSvg, + ariaLabel: 'heart', + category: 'action', + displayName: 'Heart' +}); + +export default Heart; diff --git a/src/react/Spinner.tsx b/src/react/Spinner.tsx new file mode 100644 index 0000000..1396218 --- /dev/null +++ b/src/react/Spinner.tsx @@ -0,0 +1,12 @@ +// Generated by script, don't edit it please. +import createSvgIcon from '../createSvgIcon'; +import SpinnerSvg from '../icons/status/Spinner'; + +const Spinner = createSvgIcon({ + as: SpinnerSvg, + ariaLabel: 'spinner', + category: 'status', + displayName: 'Spinner' +}); + +export default Spinner; diff --git a/src/react/Star.tsx b/src/react/Star.tsx new file mode 100644 index 0000000..f4e1e70 --- /dev/null +++ b/src/react/Star.tsx @@ -0,0 +1,12 @@ +// Generated by script, don't edit it please. +import createSvgIcon from '../createSvgIcon'; +import StarSvg from '../icons/action/Star'; + +const Star = createSvgIcon({ + as: StarSvg, + ariaLabel: 'star', + category: 'action', + displayName: 'Star' +}); + +export default Star; diff --git a/src/react/index.ts b/src/react/index.ts index feb3607..1a7268d 100644 --- a/src/react/index.ts +++ b/src/react/index.ts @@ -18,6 +18,7 @@ export { default as FileDownload } from './FileDownload'; export { default as FileUpload } from './FileUpload'; export { default as Funnel } from './Funnel'; export { default as Gear } from './Gear'; +export { default as Heart } from './Heart'; export { default as ImportSite } from './ImportSite'; export { default as ImportStorage } from './ImportStorage'; export { default as Key } from './Key'; @@ -40,6 +41,7 @@ export { default as SettingHorizontal } from './SettingHorizontal'; export { default as ShareOutline } from './ShareOutline'; export { default as ShareRound } from './ShareRound'; export { default as Signature } from './Signature'; +export { default as Star } from './Star'; export { default as Tools } from './Tools'; export { default as Touch } from './Touch'; export { default as Trash } from './Trash'; @@ -259,6 +261,7 @@ export { default as RemindOutline } from './RemindOutline'; export { default as RemindRound } from './RemindRound'; export { default as RunningRound } from './RunningRound'; export { default as SendRound } from './SendRound'; +export { default as Spinner } from './Spinner'; export { default as TimeRound } from './TimeRound'; export { default as Unvisible } from './Unvisible'; export { default as UpdateRound } from './UpdateRound'; diff --git a/src/svg/action/heart.svg b/src/svg/action/heart.svg new file mode 100755 index 0000000..ecfeca1 --- /dev/null +++ b/src/svg/action/heart.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/svg/action/star.svg b/src/svg/action/star.svg new file mode 100755 index 0000000..1ce2081 --- /dev/null +++ b/src/svg/action/star.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/svg/status/spinner.svg b/src/svg/status/spinner.svg new file mode 100755 index 0000000..6d28b1c --- /dev/null +++ b/src/svg/status/spinner.svg @@ -0,0 +1,4 @@ + + + +