Skip to content

Commit

Permalink
feat: add some new icons (#16)
Browse files Browse the repository at this point in the history
* feat: add some new icons

* ci: update scripts/changelog.json

* build: meta.json
  • Loading branch information
simonguo authored Oct 29, 2024
1 parent ceb2e05 commit a0a3add
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@
"WechatSubmessageOutline",
"Width",
"Zoomin",
"Zoomout"
"Zoomout",
"Spinner",
"Star",
"Heart"
]
}
]
19 changes: 19 additions & 0 deletions src/icons/action/Heart.tsx
Original file line number Diff line number Diff line change
@@ -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<SVGSVGElement>, ref: Ref<SVGSVGElement>) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 32 32"
fill="currentColor"
ref={ref}
{...props}
>
<path d="M16 29.714a1.1 1.1 0 0 1-.786-.321L4.071 18.643c-.143-.125-4.071-3.714-4.071-8 0-5.232 3.196-8.357 8.536-8.357 3.125 0 6.054 2.464 7.464 3.857 1.411-1.393 4.339-3.857 7.464-3.857 5.339 0 8.536 3.125 8.536 8.357 0 4.286-3.929 7.875-4.089 8.036L16.786 29.393c-.214.214-.5.321-.786.321" />
</svg>
);
const ForwardRef = forwardRef(Heart);
export default ForwardRef;
19 changes: 19 additions & 0 deletions src/icons/action/Star.tsx
Original file line number Diff line number Diff line change
@@ -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<SVGSVGElement>, ref: Ref<SVGSVGElement>) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 30 32"
fill="currentColor"
ref={ref}
{...props}
>
<path d="M29.714 11.554c0 .321-.232.625-.464.857l-6.482 6.321 1.536 8.929c.018.125.018.232.018.357 0 .464-.214.893-.732.893-.25 0-.5-.089-.714-.214l-8.018-4.214-8.018 4.214c-.232.125-.464.214-.714.214-.518 0-.75-.429-.75-.893 0-.125.018-.232.036-.357l1.536-8.929-6.5-6.321c-.214-.232-.446-.536-.446-.857 0-.536.554-.75 1-.821l8.964-1.304 4.018-8.125c.161-.339.464-.732.875-.732s.714.393.875.732l4.018 8.125 8.964 1.304c.429.071 1 .286 1 .821z" />
</svg>
);
const ForwardRef = forwardRef(Star);
export default ForwardRef;
19 changes: 19 additions & 0 deletions src/icons/status/Spinner.tsx
Original file line number Diff line number Diff line change
@@ -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<SVGSVGElement>, ref: Ref<SVGSVGElement>) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 32 32"
fill="currentColor"
ref={ref}
{...props}
>
<path d="M9.393 24.893a2.29 2.29 0 0 1-2.286 2.286 2.3 2.3 0 0 1-2.286-2.286 2.29 2.29 0 0 1 2.286-2.286 2.28 2.28 0 0 1 2.286 2.286m8.893 3.678c0 1.268-1.018 2.286-2.286 2.286s-2.286-1.018-2.286-2.286 1.018-2.286 2.286-2.286 2.286 1.018 2.286 2.286M5.714 16c0 1.268-1.018 2.286-2.286 2.286S1.142 17.268 1.142 16s1.018-2.286 2.286-2.286S5.714 14.732 5.714 16m21.465 8.893a2.3 2.3 0 0 1-2.286 2.286 2.29 2.29 0 0 1-2.286-2.286 2.28 2.28 0 0 1 2.286-2.286 2.29 2.29 0 0 1 2.286 2.286M9.964 7.107c0 1.571-1.286 2.857-2.857 2.857S4.25 8.678 4.25 7.107 5.536 4.25 7.107 4.25s2.857 1.286 2.857 2.857M30.857 16c0 1.268-1.018 2.286-2.286 2.286S26.285 17.268 26.285 16s1.018-2.286 2.286-2.286 2.286 1.018 2.286 2.286M19.429 3.429a3.43 3.43 0 0 1-6.858 0 3.43 3.43 0 0 1 6.858 0m9.464 3.678c0 2.214-1.804 4-4 4-2.214 0-4-1.786-4-4 0-2.196 1.786-4 4-4 2.196 0 4 1.804 4 4" />
</svg>
);
const ForwardRef = forwardRef(Spinner);
export default ForwardRef;
15 changes: 15 additions & 0 deletions src/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
"iconName": "Gear",
"categoryName": "action"
},
{
"iconName": "Heart",
"categoryName": "action",
"version": "1.3.0"
},
{
"iconName": "ImportSite",
"categoryName": "action",
Expand Down Expand Up @@ -173,6 +178,11 @@
"categoryName": "action",
"version": "1.3.0"
},
{
"iconName": "Star",
"categoryName": "action",
"version": "1.3.0"
},
{
"iconName": "Tools",
"categoryName": "action"
Expand Down Expand Up @@ -1106,6 +1116,11 @@
"categoryName": "status",
"version": "1.3.0"
},
{
"iconName": "Spinner",
"categoryName": "status",
"version": "1.3.0"
},
{
"iconName": "TimeRound",
"categoryName": "status"
Expand Down
12 changes: 12 additions & 0 deletions src/react/Heart.tsx
Original file line number Diff line number Diff line change
@@ -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;
12 changes: 12 additions & 0 deletions src/react/Spinner.tsx
Original file line number Diff line number Diff line change
@@ -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;
12 changes: 12 additions & 0 deletions src/react/Star.tsx
Original file line number Diff line number Diff line change
@@ -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;
3 changes: 3 additions & 0 deletions src/react/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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';
Expand Down
4 changes: 4 additions & 0 deletions src/svg/action/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/svg/action/star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/svg/status/spinner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0a3add

Please sign in to comment.