-
Notifications
You must be signed in to change notification settings - Fork 126
/
svg.tsx
133 lines (119 loc) · 7.5 KB
/
svg.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import React from 'react';
import propTypes from 'prop-types';
import { ReactNodePropTypes } from '../../../lib/utils';
import { styles } from './icon.styles';
export interface SVGIconProps extends React.HTMLAttributes<HTMLSpanElement> {
color?: React.CSSProperties['color'];
}
export const SvgIcon: React.FunctionComponent<SVGIconProps> = ({ children, color = 'currentColor', ...rest }) => (
<span className={styles.root()} {...rest}>
{React.cloneElement(children as JSX.Element, {
className: styles.icon(),
fill: color,
focusable: 'false',
})}
</span>
);
SvgIcon.propTypes = {
children: ReactNodePropTypes,
color: propTypes.string,
};
export const Ok = (props: SVGIconProps) => (
<SvgIcon {...props}>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M9.4995 3C5.35742 3 2 6.35658 2 10.5C2 14.6423 5.35742 18 9.4995 18C13.6416 18 17 14.6423 17 10.5C17 6.35658 13.6416 3 9.4995 3V3ZM14.1761 8.508C14.1761 8.60542 14.1391 8.68983 14.0646 8.75917L8.71117 13.9983C8.63717 14.0708 8.54917 14.1072 8.44758 14.1072C8.347 14.1072 8.25892 14.0708 8.18442 13.9983L7.13717 12.9822C7.13717 12.9807 7.1325 12.9688 7.12158 12.9495L5.26 11.1398C5.18967 11.0679 5.15525 10.9814 5.15892 10.884C5.15892 10.7845 5.19225 10.7011 5.26 10.6318C5.26 10.6318 5.5215 10.3817 5.73258 10.1707C5.9175 9.98833 6.10192 9.9795 6.301 10.1827C6.6245 10.5078 7.12158 10.9799 7.12158 10.9799C7.1325 10.9992 7.13717 11.0112 7.13717 11.0127L8.18442 12.0287C8.25892 12.1012 8.347 12.1377 8.44758 12.1377C8.54917 12.1377 8.63717 12.1012 8.71117 12.0287C8.71117 12.0287 12.0405 8.78258 13.0361 7.79683C13.2643 7.57017 13.4201 7.62017 13.5295 7.72642C13.7499 7.94317 14.0646 8.25217 14.0646 8.25217C14.1391 8.32408 14.1761 8.4095 14.1761 8.508Z"
/>
</svg>
</SvgIcon>
);
export const Warning = (props: SVGIconProps) => (
<SvgIcon {...props}>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M17 10.5C17 14.6421 13.6421 18 9.5 18C5.35786 18 2 14.6421 2 10.5C2 6.35786 5.35786 3 9.5 3C13.6421 3 17 6.35786 17 10.5ZM10.6 6V10L10.2 12H8.8L8.4 10V6H10.6ZM9.5 15C10.3284 15 11 14.5523 11 14C11 13.4477 10.3284 13 9.5 13C8.67157 13 8 13.4477 8 14C8 14.5523 8.67157 15 9.5 15Z"
/>
</svg>
</SvgIcon>
);
export const Gear = (props: SVGIconProps) => (
<SvgIcon {...props}>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M8.6685 2V4.4062C8.06636 4.54917 7.50089 4.78681 6.98866 5.10252L5.28686 3.40072L3.40072 5.28686L5.10252 6.98866C4.78681 7.50089 4.54917 8.06636 4.4062 8.6685H2V11.3359H4.4062C4.54917 11.938 4.78681 12.5035 5.10252 13.0157L3.40072 14.7175L5.28686 16.6037L6.98866 14.9019C7.50089 15.2176 8.06636 15.4552 8.6685 15.5982V18.0044H11.3359V15.5982C11.938 15.4552 12.5035 15.2176 13.0157 14.9019L14.7175 16.6037L16.6037 14.7175L14.9019 13.0157C15.2176 12.5035 15.4552 11.938 15.5982 11.3359H18.0044V8.6685H15.5982C15.4552 8.06636 15.2176 7.50089 14.9019 6.98866L16.6037 5.28686L14.7175 3.40072L13.0157 5.10252C12.5035 4.78681 11.938 4.54917 11.3359 4.4062V2H8.6685ZM13.3364 10.0022C13.3364 11.8437 11.8437 13.3364 10.0022 13.3364C8.16074 13.3364 6.66795 11.8437 6.66795 10.0022C6.66795 8.16074 8.16074 6.66795 10.0022 6.66795C11.8437 6.66795 13.3364 8.16074 13.3364 10.0022Z"
/>
</svg>
</SvgIcon>
);
export const User = (props: SVGIconProps) => (
<SvgIcon {...props}>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M3.37042 18C2.96022 18 2.63083 17.8757 2.38222 17.6271C2.13362 17.3785 2.00622 17.0491 2 16.6389V15C2 15 4.5 14.5 7.4537 12.5463V11.1852C7.0435 10.9055 6.71411 10.5171 6.46551 10.0199C6.2169 9.52268 6.0926 9.00062 6.0926 8.4537V6.41206C6.0926 5.45494 6.422 4.64699 7.0808 3.98819C7.73959 3.32939 8.54754 3 9.50466 3C10.4618 3 11.2697 3.32939 11.9285 3.98819C12.5873 4.64699 12.9167 5.45494 12.9167 6.41206V8.4537C12.9105 9.00062 12.7831 9.52268 12.5345 10.0199C12.2859 10.5171 11.9565 10.9055 11.5463 11.1852V12.5463C11.5463 12.5463 14.5 14.5 17 15V16.6389C17 17.0491 16.8757 17.3785 16.6271 17.6271C16.3785 17.8757 16.0491 18 15.6389 18H3.37042Z"
/>
</svg>
</SvgIcon>
);
export const Wait = (props: SVGIconProps) => (
<SvgIcon {...props}>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M17 10.5C17 14.6421 13.6421 18 9.5 18C5.35786 18 2 14.6421 2 10.5C2 6.35786 5.35786 3 9.5 3C13.6421 3 17 6.35786 17 10.5ZM15 10.5C15 13.5376 12.5376 16 9.5 16C6.46243 16 4 13.5376 4 10.5C4 7.46243 6.46243 5 9.5 5C12.5376 5 15 7.46243 15 10.5ZM8.15918 7.45947L6.54285 8.54204L9.02449 12.5586L13.3955 11.3898L12.8567 9.49533L9.98753 10.3614L8.15918 7.45947Z"
/>
</svg>
</SvgIcon>
);
export const Clear = (props: SVGIconProps) => (
<SvgIcon {...props}>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M9.5 18C13.6421 18 17 14.6421 17 10.5C17 6.35786 13.6421 3 9.5 3C5.35786 3 2 6.35786 2 10.5C2 14.6421 5.35786 18 9.5 18ZM8.36863 10.5L5.75233 7.88371L6.88371 6.75233L9.5 9.36863L12.1163 6.75233L13.2477 7.88371L10.6314 10.5L13.2477 13.1163L12.1163 14.2477L9.5 11.6314L6.88371 14.2477L5.75233 13.1163L8.36863 10.5Z"
/>
</svg>
</SvgIcon>
);
export const Money = (props: SVGIconProps) => (
<SvgIcon {...props}>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M17 10.5C17 14.6421 13.6421 18 9.5 18C5.35786 18 2 14.6421 2 10.5C2 6.35786 5.35786 3 9.5 3C13.6421 3 17 6.35786 17 10.5ZM6 10H7V6H11.0021C12.1055 6 13 6.8939 13 8.00488V8.99512C13 10.1024 12.1017 11 11.0021 11H8V12H11V13H8V15H7V13H6V12H7V11H6V10ZM8.2 9.8V7.2H11.0021C11.4435 7.2 11.8 7.55733 11.8 8.00488V8.99512C11.8 9.43892 11.4397 9.8 11.0021 9.8H8.2Z"
/>
</svg>
</SvgIcon>
);
export const HelpCircle = (props: SVGIconProps) => (
<SvgIcon {...props}>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M10 3C14.1 3 17.5 6.4 17.5 10.5C17.5 14.7 14.1 18 10 18C5.8 18 2.5 14.7 2.5 10.5C2.5 6.4 5.8 3 10 3V3ZM9 15.1H10.5V13.5H9V15.1ZM13.2 8.3C13.2 7.5 12.9 6.9 12.3 6.4C11.6 5.9 10.8 5.6 9.9 5.6C9 5.6 8.2 5.9 7.5 6.4C6.9 7 6.5 7.7 6.3 8.7L7.8 8.9C7.9 8.3 8.1 7.9 8.5 7.6C8.9 7.3 9.4 7.1 10 7.1C10.6 7.1 11 7.2 11.2 7.4C11.5 7.7 11.6 8 11.6 8.5C11.6 9.1 11.2 9.6 10.4 10C10.2 10.1 9.92372 10.2993 9.62372 10.5993C9.42372 10.7993 9 11.1874 9 11.7V12.4H10.5C10.5 12.4 10.3021 11.7005 10.91 11.2841C11.518 10.8676 12.0064 10.505 12.3 10.2L12.7569 9.78925C12.9569 9.48925 13 9.4 13.1 9.1C13.2 8.9 13.2 8.7 13.2 8.6C13.2 8.5 13.2 8.4 13.2 8.3Z"
/>
</svg>
</SvgIcon>
);
export const Kebab = (props: SVGIconProps) => (
<SvgIcon {...props}>
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M12 5C12 6.10457 11.1046 7 10 7C8.89543 7 8 6.10457 8 5C8 3.89543 8.89543 3 10 3C11.1046 3 12 3.89543 12 5ZM12 11C12 12.1046 11.1046 13 10 13C8.89543 13 8 12.1046 8 11C8 9.89543 8.89543 9 10 9C11.1046 9 12 9.89543 12 11ZM10 19C11.1046 19 12 18.1046 12 17C12 15.8954 11.1046 15 10 15C8.89543 15 8 15.8954 8 17C8 18.1046 8.89543 19 10 19Z"
/>
</svg>
</SvgIcon>
);