add icon
This commit is contained in:
1 parent
844145aeaf
commit
a3774bc6fb
2 files changed
+27
-15
No files matched your search
@@ -1,22 +1,24 @@
|
||||
import { ComponentStory } from "@storybook/react";
|
||||
import { usePageTheme } from "styles/page";
|
||||
import { IconBase } from "./base";
|
||||
import {PencilIcon, CheckMarkIcon} from ".";
|
||||
import { PencilIcon, CheckMarkIcon } from ".";
|
||||
import { AddIcon } from './index';
|
||||
|
||||
export default {
|
||||
title: 'Icons',
|
||||
component: IconBase,
|
||||
title: 'Icons',
|
||||
component: IconBase,
|
||||
};
|
||||
|
||||
|
||||
|
||||
export const IconList: ComponentStory<typeof IconBase> = (args) => {
|
||||
const {classes} = usePageTheme({});
|
||||
return <div className={classes.page}>
|
||||
<PencilIcon {...args}/>
|
||||
<CheckMarkIcon {...args}/>
|
||||
</div>
|
||||
const { classes } = usePageTheme({});
|
||||
return <div className={classes.page}>
|
||||
<PencilIcon {...args} />
|
||||
<CheckMarkIcon {...args} />
|
||||
<AddIcon {...args} />
|
||||
</div>
|
||||
}
|
||||
IconList.args = {
|
||||
size: 2,
|
||||
color: 'red'
|
||||
size: 2,
|
||||
color: 'red'
|
||||
}
|
||||
@@ -3,19 +3,29 @@ import { IconBase, IconBaseProps } from "./base";
|
||||
|
||||
|
||||
export const PencilIcon: FC<IconBaseProps> = props => <IconBase {...props} viewBox="0 0 512 512">
|
||||
<path d="M358.752,51.159L70.113,339.798l102.063,102.064L455.088,158.95L512,0.282L358.752,51.159z M172.176,419.287
|
||||
<path d="M358.752,51.159L70.113,339.798l102.063,102.064L455.088,158.95L512,0.282L358.752,51.159z M172.176,419.287
|
||||
l-79.488-79.489L349.536,82.949l0.069,11.622l22.52-0.089l0.089,22.667l22.625,0.048l-0.048,22.691l22.467-0.271l0.27,22.847
|
||||
l11.538-0.068L172.176,419.287z M442.648,146.351l-9.345,0.055l-0.27-22.946l-22.244,0.269l0.048-22.464l-22.721-0.048
|
||||
l-0.091-22.764l-22.551,0.089l-0.068-11.463l1.963-1.963l75.812-25.169l4.761,23.811l22.704,4.541L442.648,146.351z
|
||||
M461.506,50.195l-3.062-15.313l27.457-9.116l-9.808,27.346L461.506,50.195z"/>
|
||||
|
||||
<rect x="37.686" y="394.032" transform="matrix(-0.7071 -0.7071 0.7071 -0.7071 -97.0284 763.8365)" width="143.992" height="15.962"/>
|
||||
<path d="M10.388,399.522c-13.851,13.852-13.851,36.391,0,50.244l51.546,51.545c6.711,6.711,15.632,10.406,25.122,10.406
|
||||
<rect x="37.686" y="394.032" transform="matrix(-0.7071 -0.7071 0.7071 -0.7071 -97.0284 763.8365)" width="143.992" height="15.962" />
|
||||
<path d="M10.388,399.522c-13.851,13.852-13.851,36.391,0,50.244l51.546,51.545c6.711,6.711,15.632,10.406,25.122,10.406
|
||||
s18.412-3.696,25.122-10.406l37.073-37.073L47.462,362.45L10.388,399.522z M100.891,490.025
|
||||
c-3.695,3.696-8.608,5.731-13.834,5.731s-10.139-2.036-13.834-5.731L21.676,438.48c-7.629-7.628-7.629-20.042,0-27.67
|
||||
l25.785-25.785l79.215,79.216L100.891,490.025z"/>
|
||||
</IconBase>;
|
||||
|
||||
export const CheckMarkIcon: FC<IconBaseProps> = props => <IconBase {...props} viewBox="0 0 24 24">
|
||||
<path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/>
|
||||
<path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z" />
|
||||
</IconBase>;
|
||||
|
||||
|
||||
export const AddIcon: FC<IconBaseProps> = props => <IconBase {...props} viewBox="20 20 297 297">
|
||||
<path d="M242.158,110.922l-56.096,0.008l0.009-56.121c0-2.775-1.101-5.436-3.063-7.398c-1.962-1.961-4.623-3.063-7.397-3.063
|
||||
l-54.193,0.008c-5.774,0.001-10.454,4.682-10.456,10.456l-0.009,56.129l-56.104,0.007c-5.774,0.001-10.455,4.682-10.456,10.456
|
||||
l-0.01,54.215c0,2.775,1.102,5.435,3.063,7.396c1.961,1.961,4.622,3.063,7.396,3.063l56.099-0.007l-0.008,56.119
|
||||
c0,2.775,1.103,5.436,3.063,7.398c1.961,1.961,4.622,3.063,7.394,3.063c0.002,0,0.003,0,0.003,0l54.192-0.01
|
||||
c5.774-0.001,10.454-4.682,10.456-10.456l0.008-56.126l56.106-0.009c5.774-0.001,10.454-4.682,10.455-10.457l0.008-54.213
|
||||
c0-2.773-1.103-5.434-3.064-7.396C247.592,112.022,244.932,110.922,242.158,110.922z"/>
|
||||
</IconBase>
|
||||
Reference in new issue
Block a user