@towsila/icons 1.0.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/icons/location.tsx +14 -0
- package/src/icons/picker.tsx +18 -0
- package/src/index.ts +3 -1
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Svg, { Path, SvgProps } from "react-native-svg";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface Props extends SvgProps {
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export default function Location({ width = 20, height = 20, color = "#000000", ...props }: Props){
|
|
8
|
+
return (
|
|
9
|
+
<Svg width={width} height={height} viewBox="0 0 20 20" fill="none" {...props}>
|
|
10
|
+
<Path d="M10 1.875C9.2942 1.82126 8.56915 1.89668 7.87459 2.10789C5.73318 2.72287 3.92422 4.79916 3.85597 7.22656C4.08168 11.6276 6.58008 15.0471 8.85944 18.3463C8.98608 18.521 9.15967 18.6693 9.35777 18.77C9.5557 18.8711 9.77775 18.9244 10 18.9242C10.0001 18.9242 10.0001 18.9242 10.0002 18.9242C10.2224 18.9243 10.4444 18.871 10.6422 18.77C10.8403 18.6693 11.0139 18.521 11.1444 18.3412C13.4206 15.0477 15.9192 11.6276 16.144 7.22656C16.0758 4.79916 14.2668 2.72287 12.1254 2.10789C11.4309 1.89668 10.7058 1.82126 10 1.875C10.706 1.92798 11.3924 2.1045 12.0181 2.3923C13.9569 3.25955 15.2332 5.26398 15.106 7.22656C14.6221 10.8704 12.0833 14.2489 9.85562 17.395C9.86849 17.3769 9.89093 17.3575 9.91661 17.3443C9.94227 17.3311 9.97111 17.3242 9.99997 17.3242C9.99998 17.3242 9.99999 17.3242 10 17.3242C10.0289 17.3242 10.0577 17.3311 10.0834 17.3443C10.1091 17.3575 10.1315 17.3769 10.1483 17.4003C7.91742 14.2486 5.37852 10.87 4.89403 7.22656C4.76676 5.26398 6.0431 3.25955 7.98194 2.3923C8.60757 2.1045 9.29398 1.92798 10 1.875ZM10 1.875" fill={color}/>
|
|
11
|
+
<Path d="M10 5.625C9.80327 5.67829 9.62396 5.75949 9.46733 5.86087C8.83233 6.27146 8.61023 6.97116 8.725 7.5C8.85941 8.17642 9.44117 8.58244 10 8.575C10 8.575 10 8.575 10 8.575C10.5588 8.58244 11.1406 8.17642 11.275 7.5C11.3898 6.97116 11.1677 6.27146 10.5327 5.86087C10.376 5.75949 10.1967 5.67829 10 5.625C10.1966 5.57157 10.4096 5.55167 10.6266 5.57173C11.5015 5.63193 12.3836 6.44539 12.475 7.5C12.658 8.82106 11.4387 10.2161 10 10.175C10 10.175 10 10.175 10 10.175C8.56135 10.2161 7.34202 8.82106 7.525 7.5C7.61638 6.44539 8.49853 5.63193 9.37345 5.57173C9.59039 5.55167 9.80344 5.57157 10 5.625ZM10 5.625" fill={color}/>
|
|
12
|
+
</Svg>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Svg, { Circle, Path, SvgProps } from "react-native-svg";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
interface Props extends SvgProps {
|
|
5
|
+
color?: string;
|
|
6
|
+
bgColor?: string;
|
|
7
|
+
}
|
|
8
|
+
export default function Picker({ width = 28, height = 28, color = "white",bgColor, ...props }: Props){
|
|
9
|
+
return (
|
|
10
|
+
<Svg width={width} height={height} viewBox="0 0 28 28" fill="none" {...props}>
|
|
11
|
+
<Path d="M0 14C0.466667 14.2 0.933333 14.39 1.4 14.57C5.6 16.19 9.8 17 14 17C18.2 17 22.4 16.19 26.6 14.57C27.0667 14.39 27.5333 14.2 28 14C27.5333 13.8 27.0667 13.61 26.6 13.43C22.4 11.81 18.2 11 14 11C9.8 11 5.6 11.81 1.4 13.43C0.933333 13.61 0.466667 13.8 0 14Z" fill={color}/>
|
|
12
|
+
<Path d="M14 0C13.8 0.466667 13.61 0.933333 13.43 1.4C11.81 5.6 11 9.8 11 14C11 18.2 11.81 22.4 13.43 26.6C13.61 27.0667 13.8 27.5333 14 28C14.2 27.5333 14.39 27.0667 14.57 26.6C16.19 22.4 17 18.2 17 14C17 9.8 16.19 5.6 14.57 1.4C14.39 0.933333 14.2 0.466667 14 0Z" fill={color}/>
|
|
13
|
+
<Path d="M14 5.5625C12.3312 5.5625 10.6999 6.05735 9.31238 6.98447C7.92484 7.9116 6.84338 9.22936 6.20477 10.7711C5.56616 12.3129 5.39907 14.0094 5.72463 15.6461C6.05019 17.2828 6.85378 18.7862 8.03379 19.9662C9.2138 21.1462 10.7172 21.9498 12.3539 22.2754C13.9906 22.6009 15.6871 22.4338 17.2289 21.7952C18.7706 21.1566 20.0884 20.0752 21.0155 18.6876C21.9427 17.3001 22.4375 15.6688 22.4375 14C22.4375 11.7622 21.5486 9.61612 19.9662 8.03379C18.3839 6.45145 16.2378 5.5625 14 5.5625Z" fill={bgColor}/>
|
|
14
|
+
<Path d="M14 5.5625C13.1164 5.50891 12.216 5.59835 11.3457 5.8309C10.5842 6.03402 9.84593 6.34641 9.16133 6.75842C7.69238 7.63852 6.48052 8.98727 5.75438 10.5845C5.02299 12.1788 4.78199 14.0138 5.09018 15.7723C5.39229 17.5314 6.24273 19.2047 7.50346 20.4965C8.75962 21.7925 10.4199 22.6999 12.1985 23.0569C12.7908 23.1769 13.3953 23.2375 14 23.2375C15.2092 23.2381 16.4179 22.9932 17.5303 22.5228C19.2009 21.8206 20.6448 20.6036 21.6157 19.0887C22.592 17.5768 23.0906 15.775 23.0375 14C22.9798 11.6298 21.9193 9.33677 20.2137 7.7863C19.1958 6.85144 17.9601 6.17821 16.6543 5.8309C15.7841 5.59832 14.8836 5.50889 14 5.5625C14.8837 5.61562 15.7501 5.80604 16.5604 6.12002C17.7765 6.59002 18.8635 7.33978 19.7187 8.28127C21.152 9.84712 21.9111 11.9472 21.8375 14C21.7895 15.5396 21.2849 17.0453 20.4153 18.2866C19.549 19.5305 18.3212 20.5062 16.9275 21.0677C15.9992 21.4436 14.9998 21.6379 13.9999 21.6375C13.5001 21.6375 13.0003 21.5894 12.5094 21.4938C11.036 21.2092 9.64812 20.4874 8.56412 19.4359C7.47742 18.3875 6.69857 17.0127 6.35907 15.5199C6.01557 14.0284 6.11335 12.4237 6.65516 10.9577C7.19272 9.49065 8.1735 8.16767 9.46343 7.21053C10.0644 6.7632 10.7305 6.39448 11.4396 6.12002C12.2499 5.80608 13.1163 5.61564 14 5.5625ZM14 5.5625" fill={color}/>
|
|
15
|
+
<Circle cx="14" cy="14" r="4" fill={color}/>
|
|
16
|
+
</Svg>
|
|
17
|
+
)
|
|
18
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -22,4 +22,6 @@ export {default as Settings} from "./icons/settingsIcon";
|
|
|
22
22
|
export {default as Shield} from "./icons/shield";
|
|
23
23
|
export {default as Trash} from "./icons/trash";
|
|
24
24
|
export {default as Warning} from "./icons/warning";
|
|
25
|
-
export {IconType} from "./types/iconType";
|
|
25
|
+
export {IconType} from "./types/iconType";
|
|
26
|
+
export {default as Picker} from "./icons/picker";
|
|
27
|
+
export {default as Location} from "./icons/location";
|