Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ead5a81916 | ||
|
|
3d92eb3833 | ||
|
|
8b88ddf07e | ||
|
|
fb03374041 | ||
|
|
1eee03451a | ||
|
|
337d005c78 | ||
|
|
612729a897 | ||
|
|
35cbb8826e | ||
|
|
deaeefd247 | ||
|
|
1f32d59aaf | ||
|
|
ec102a252d | ||
|
|
6d60416009 |
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
ISC License
|
||||
|
||||
Copyright (c) 2020, Lucide Contributors
|
||||
Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
|
||||
13
icons/bone.svg
Normal file
@@ -0,0 +1,13 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M18.6 9.82c-.52-.21-1.15-.25-1.54.15l-7.07 7.06c-.39.39-.36 1.03-.15 1.54.12.3.16.6.16.93a2.5 2.5 0 0 1-5 0c0-.26-.24-.5-.5-.5a2.5 2.5 0 1 1 .96-4.82c.5.21 1.14.25 1.53-.15l7.07-7.06c.39-.39.36-1.03.15-1.54-.12-.3-.21-.6-.21-.93a2.5 2.5 0 0 1 5 0c.01.26.24.49.5.5a2.5 2.5 0 1 1-.9 4.82Z" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 510 B |
18
icons/flip-horizontal-2.svg
Normal file
@@ -0,0 +1,18 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="m3 7 5 5-5 5V7" />
|
||||
<path d="m21 7-5 5 5 5V7" />
|
||||
<path d="M12 20v2" />
|
||||
<path d="M12 14v2" />
|
||||
<path d="M12 8v2" />
|
||||
<path d="M12 2v2" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 381 B |
18
icons/flip-horizontal.svg
Normal file
@@ -0,0 +1,18 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3" />
|
||||
<path d="M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3" />
|
||||
<path d="M12 20v2" />
|
||||
<path d="M12 14v2" />
|
||||
<path d="M12 8v2" />
|
||||
<path d="M12 2v2" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 414 B |
18
icons/flip-vertical-2.svg
Normal file
@@ -0,0 +1,18 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="m17 3-5 5-5-5h10" />
|
||||
<path d="m17 21-5-5-5 5h10" />
|
||||
<path d="M4 12H2" />
|
||||
<path d="M10 12H8" />
|
||||
<path d="M16 12h-2" />
|
||||
<path d="M22 12h-2" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 388 B |
18
icons/flip-vertical.svg
Normal file
@@ -0,0 +1,18 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M21 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v3" />
|
||||
<path d="M21 16v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3" />
|
||||
<path d="M4 12H2" />
|
||||
<path d="M10 12H8" />
|
||||
<path d="M16 12h-2" />
|
||||
<path d="M22 12h-2" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 417 B |
16
icons/git-compare.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="18" cy="18" r="3" />
|
||||
<circle cx="6" cy="6" r="3" />
|
||||
<path d="M13 6h3a2 2 0 0 1 2 2v7" />
|
||||
<path d="M11 18H8a2 2 0 0 1-2-2V9" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 355 B |
18
icons/git-pull-request-closed.svg
Normal file
@@ -0,0 +1,18 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="18" cy="18" r="3" />
|
||||
<circle cx="6" cy="6" r="3" />
|
||||
<path d="M18 11.5V15" />
|
||||
<path d="m21 3-6 6" />
|
||||
<path d="m21 9-6-6" />
|
||||
<line x1="6" y1="9" x2="6" y2="21" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 393 B |
17
icons/git-pull-request-draft.svg
Normal file
@@ -0,0 +1,17 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="18" cy="18" r="3" />
|
||||
<circle cx="6" cy="6" r="3" />
|
||||
<path d="M18 6V5" />
|
||||
<path d="M18 11v-1" />
|
||||
<line x1="6" y1="9" x2="6" y2="21" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 364 B |
16
icons/joystick.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M21 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2Z"/>
|
||||
<path d="M6 15v-2"/>
|
||||
<path d="M12 15V9"/>
|
||||
<circle cx="12" cy="6" r="3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 375 B |
15
icons/mail-check.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8" />
|
||||
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
|
||||
<path d="m16 19 2 2 4-4" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 368 B |
15
icons/mail-minus.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M22 15V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8" />
|
||||
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
|
||||
<path d="M16 19h6" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 362 B |
14
icons/mail-open.svg
Normal file
@@ -0,0 +1,14 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z" />
|
||||
<path d="m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 387 B |
16
icons/mail-plus.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8" />
|
||||
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
|
||||
<path d="M19 16v6" />
|
||||
<path d="M16 19h6" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 386 B |
16
icons/mail-question.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5" />
|
||||
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
|
||||
<path d="M18 15.28c.2-.4.5-.8.9-1a2.1 2.1 0 0 1 2.6.4c.3.4.5.8.5 1.3 0 1.3-2 2-2 2" />
|
||||
<path d="M20 22v.01" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 458 B |
17
icons/mail-search.svg
Normal file
@@ -0,0 +1,17 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M22 12.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h7.5" />
|
||||
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
|
||||
<path d="M18 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6v0Z" />
|
||||
<circle cx="18" cy="18" r="3" />
|
||||
<path d="m22 22-1.5-1.5" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 460 B |
16
icons/mail-warning.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5" />
|
||||
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
|
||||
<path d="M20 14v4" />
|
||||
<path d="M20 22v.01" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 393 B |
16
icons/mail-x.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h9" />
|
||||
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
|
||||
<path d="m17 17 4 4" />
|
||||
<path d="m21 17-4 4" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 390 B |
@@ -9,6 +9,6 @@
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" />
|
||||
<polyline points="22,6 12,13 2,6" />
|
||||
<rect x="2" y="4" width="20" height="16" rx="2" />
|
||||
<path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 318 B |
15
icons/mails.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<rect x="6" y="4" width="16" height="13" rx="2" />
|
||||
<path d="m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7" />
|
||||
<path d="M2 8v11c0 1.1.9 2 2 2h14" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 355 B |
@@ -9,6 +9,6 @@
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M2 12V2h10l9.44 9.44a2 2 0 0 1 0 2.82l-7.18 7.18a2 2 0 0 1-2.82 0L2 12Z" />
|
||||
<path d="M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z" />
|
||||
<path d="M7 7h.01" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 329 B |
15
icons/tags.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M9 5H2v7l6.29 6.29c.94.94 2.48.94 3.42 0l3.58-3.58c.94-.94.94-2.48 0-3.42L9 5Z" />
|
||||
<path d="M6 9.01V9" />
|
||||
<path d="m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 382 B |
19
icons/usb.svg
Normal file
@@ -0,0 +1,19 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="4" cy="20" r="1" />
|
||||
<circle cx="10" cy="7" r="1" />
|
||||
<path d="M4 20 19 5" />
|
||||
<path d="m21 3-3 1 2 2 1-3Z" />
|
||||
<path d="m10 7-5 5 2 5" />
|
||||
<path d="m10 14 5 2 4-4" />
|
||||
<path d="m18 12 1-1 1 1-1 1-1-1Z" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 434 B |
20
icons/wand-2.svg
Normal file
@@ -0,0 +1,20 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z" />
|
||||
<path d="m14 7 3 3" />
|
||||
<path d="M5 6v4" />
|
||||
<path d="M19 14v4" />
|
||||
<path d="M10 2v2" />
|
||||
<path d="M7 8H3" />
|
||||
<path d="M21 16h-4" />
|
||||
<path d="M11 3H9" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 530 B |
10
package.json
@@ -18,7 +18,15 @@
|
||||
"**/react-dom",
|
||||
"**/react-dom/**",
|
||||
"**/react-test-renderer",
|
||||
"**/react-test-renderer/**"
|
||||
"**/react-test-renderer/**",
|
||||
"**/vue",
|
||||
"**/vue/**",
|
||||
"**/vue-template-compiler",
|
||||
"**/vue-template-compiler/**",
|
||||
"**/vue-template-es2015-compiler",
|
||||
"**/vue-template-es2015-compiler/**",
|
||||
"**/@testing-library/vue",
|
||||
"**/@testing-library/vue/**"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
"jest": "^26.6.3",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "^16.5.1",
|
||||
"react-dom": "^16.5.1",
|
||||
"react-native": "^0.69.0",
|
||||
"react-native-svg": "^12.0.0"
|
||||
},
|
||||
|
||||
66
packages/lucide-react-native/tests/__mocks__/react-native-svg.js
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
// @flow
|
||||
|
||||
// https://github.com/FormidableLabs/react-native-svg-mock
|
||||
import React from 'react';
|
||||
|
||||
const createComponent = function(name) {
|
||||
const component = (props) => {
|
||||
return React.createElement(name, props, props.children);
|
||||
}
|
||||
|
||||
component.displayName = name;
|
||||
|
||||
return component
|
||||
};
|
||||
|
||||
// Mock all react-native-svg exports
|
||||
// from https://github.com/magicismight/react-native-svg/blob/master/index.js
|
||||
const Svg = createComponent('svg');
|
||||
const Circle = createComponent('circle');
|
||||
const Ellipse = createComponent('ellipse');
|
||||
const G = createComponent('g');
|
||||
const Text = createComponent('text');
|
||||
const TextPath = createComponent('textPath');
|
||||
const TSpan = createComponent('tSpan');
|
||||
const Path = createComponent('path');
|
||||
const Polygon = createComponent('polygon');
|
||||
const Polyline = createComponent('polyline');
|
||||
const Line = createComponent('line');
|
||||
const Rect = createComponent('rect');
|
||||
const Use = createComponent('use');
|
||||
const Image = createComponent('image');
|
||||
const Symbol = createComponent('symbol');
|
||||
const Defs = createComponent('defs');
|
||||
const LinearGradient = createComponent('linearGradient');
|
||||
const RadialGradient = createComponent('radialGradient');
|
||||
const Stop = createComponent('stop');
|
||||
const ClipPath = createComponent('clipPath');
|
||||
const Pattern = createComponent('pattern');
|
||||
const Mask = createComponent('mask');
|
||||
|
||||
export {
|
||||
Svg,
|
||||
Circle,
|
||||
Ellipse,
|
||||
G,
|
||||
Text,
|
||||
TextPath,
|
||||
TSpan,
|
||||
Path,
|
||||
Polygon,
|
||||
Polyline,
|
||||
Line,
|
||||
Rect,
|
||||
Use,
|
||||
Image,
|
||||
Symbol,
|
||||
Defs,
|
||||
LinearGradient,
|
||||
RadialGradient,
|
||||
Stop,
|
||||
ClipPath,
|
||||
Pattern,
|
||||
Mask,
|
||||
};
|
||||
|
||||
export default Svg;
|
||||
@@ -1,5 +1,5 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Using lucide icon components should adjust the size, stroke color and stroke width 1`] = `"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"48\\" height=\\"48\\" viewBox=\\"0 0 24 24\\" fill=\\"none\\" stroke=\\"red\\" stroke-width=\\"4\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" class=\\"lucide lucide-grid\\" data-testid=\\"grid-icon\\"><rect x=\\"3\\" y=\\"3\\" width=\\"18\\" height=\\"18\\" rx=\\"2\\" ry=\\"2\\"></rect><line x1=\\"3\\" y1=\\"9\\" x2=\\"21\\" y2=\\"9\\"></line><line x1=\\"3\\" y1=\\"15\\" x2=\\"21\\" y2=\\"15\\"></line><line x1=\\"9\\" y1=\\"3\\" x2=\\"9\\" y2=\\"21\\"></line><line x1=\\"15\\" y1=\\"3\\" x2=\\"15\\" y2=\\"21\\"></line></svg>"`;
|
||||
exports[`Using lucide icon components should adjust the size, stroke color and stroke width 1`] = `"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"48\\" height=\\"48\\" viewBox=\\"0 0 24 24\\" fill=\\"none\\" stroke=\\"red\\" stroke-width=\\"4\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" data-testid=\\"grid-icon\\"><rect x=\\"3\\" y=\\"3\\" width=\\"18\\" height=\\"18\\" rx=\\"2\\" ry=\\"2\\"></rect><line x1=\\"3\\" y1=\\"9\\" x2=\\"21\\" y2=\\"9\\"></line><line x1=\\"3\\" y1=\\"15\\" x2=\\"21\\" y2=\\"15\\"></line><line x1=\\"9\\" y1=\\"3\\" x2=\\"9\\" y2=\\"21\\"></line><line x1=\\"15\\" y1=\\"3\\" x2=\\"15\\" y2=\\"21\\"></line></svg>"`;
|
||||
|
||||
exports[`Using lucide icon components should render an component 1`] = `"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-width=\\"2\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" class=\\"lucide lucide-grid\\"><rect x=\\"3\\" y=\\"3\\" width=\\"18\\" height=\\"18\\" rx=\\"2\\" ry=\\"2\\"></rect><line x1=\\"3\\" y1=\\"9\\" x2=\\"21\\" y2=\\"9\\"></line><line x1=\\"3\\" y1=\\"15\\" x2=\\"21\\" y2=\\"15\\"></line><line x1=\\"9\\" y1=\\"3\\" x2=\\"9\\" y2=\\"21\\"></line><line x1=\\"15\\" y1=\\"3\\" x2=\\"15\\" y2=\\"21\\"></line></svg>"`;
|
||||
exports[`Using lucide icon components should render an component 1`] = `"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"24\\" height=\\"24\\" viewBox=\\"0 0 24 24\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-width=\\"2\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"><rect x=\\"3\\" y=\\"3\\" width=\\"18\\" height=\\"18\\" rx=\\"2\\" ry=\\"2\\"></rect><line x1=\\"3\\" y1=\\"9\\" x2=\\"21\\" y2=\\"9\\"></line><line x1=\\"3\\" y1=\\"15\\" x2=\\"21\\" y2=\\"15\\"></line><line x1=\\"9\\" y1=\\"3\\" x2=\\"9\\" y2=\\"21\\"></line><line x1=\\"15\\" y1=\\"3\\" x2=\\"15\\" y2=\\"21\\"></line></svg>"`;
|
||||
|
||||
@@ -36,13 +36,13 @@
|
||||
"babel-preset-preact": "^2.0.0",
|
||||
"jest": "^26.6.3",
|
||||
"rollup-plugin-svelte": "^7.1.0",
|
||||
"svelte": "^3.45.0",
|
||||
"svelte": "^3.49.0",
|
||||
"svelte-jester": "^2.3.1",
|
||||
"svelte-preprocess": "^4.10.1",
|
||||
"svelte2tsx": "^0.4.12"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^3.45.0",
|
||||
"svelte": "^3.49.0",
|
||||
"svelte2tsx": "^0.4.12"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,8 +37,6 @@ describe('Using lucide icon components', () => {
|
||||
|
||||
const [icon] = document.getElementsByClassName('my-icon');
|
||||
|
||||
console.log(icon);
|
||||
|
||||
expect(icon).toHaveClass('my-icon')
|
||||
});
|
||||
|
||||
|
||||
@@ -30,11 +30,11 @@
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "^5.16.2",
|
||||
"@testing-library/vue": "^5.8.2",
|
||||
"@vue/test-utils": "^1.1.2",
|
||||
"@vue/test-utils": "1.3.0",
|
||||
"jest-serializer-vue": "^2.0.2",
|
||||
"vue": "^2.6.12",
|
||||
"vue": "2.6.14",
|
||||
"vue-jest": "^3.0.7",
|
||||
"vue-template-compiler": "^2.6.12"
|
||||
"vue-template-compiler": "2.6.14"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vue": "^2.6.12"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { mount } from '@vue/test-utils'
|
||||
import {render, fireEvent} from '@testing-library/vue'
|
||||
import { Smile } from '../src/icons'
|
||||
|
||||
|
||||
141
tags.json
@@ -360,6 +360,7 @@
|
||||
"baggage-claim": [
|
||||
"baggage",
|
||||
"luggage",
|
||||
"suitcase",
|
||||
"travel",
|
||||
"cart",
|
||||
"trolley"
|
||||
@@ -533,6 +534,13 @@
|
||||
"explode",
|
||||
"explosive"
|
||||
],
|
||||
"bone": [
|
||||
"medical",
|
||||
"health",
|
||||
"death",
|
||||
"pet",
|
||||
"gaming"
|
||||
],
|
||||
"book": [
|
||||
"read",
|
||||
"dictionary",
|
||||
@@ -1703,6 +1711,26 @@
|
||||
"flask-round": [
|
||||
"beaker"
|
||||
],
|
||||
"flip-horizontal": [
|
||||
"reflect",
|
||||
"mirror",
|
||||
"alignment"
|
||||
],
|
||||
"flip-horizontal-2": [
|
||||
"reflect",
|
||||
"mirror",
|
||||
"alignment"
|
||||
],
|
||||
"flip-vertical": [
|
||||
"reflect",
|
||||
"mirror",
|
||||
"alignment"
|
||||
],
|
||||
"flip-vertical-2": [
|
||||
"reflect",
|
||||
"mirror",
|
||||
"alignment"
|
||||
],
|
||||
"flower": [
|
||||
"sustainability",
|
||||
"nature",
|
||||
@@ -1896,6 +1924,11 @@
|
||||
"code",
|
||||
"automation"
|
||||
],
|
||||
"joystick": [
|
||||
"game",
|
||||
"console",
|
||||
"control stick"
|
||||
],
|
||||
"gamepad": [
|
||||
"console"
|
||||
],
|
||||
@@ -1937,6 +1970,10 @@
|
||||
"code",
|
||||
"version control"
|
||||
],
|
||||
"git-compare": [
|
||||
"code",
|
||||
"version control"
|
||||
],
|
||||
"git-fork": [
|
||||
"code",
|
||||
"version control"
|
||||
@@ -1949,6 +1986,16 @@
|
||||
"code",
|
||||
"version control"
|
||||
],
|
||||
"git-pull-request-draft": [
|
||||
"code",
|
||||
"version control",
|
||||
"draft"
|
||||
],
|
||||
"git-pull-request-closed": [
|
||||
"code",
|
||||
"version control",
|
||||
"rejected"
|
||||
],
|
||||
"github": [
|
||||
"logo",
|
||||
"version control"
|
||||
@@ -2425,6 +2472,7 @@
|
||||
"luggage": [
|
||||
"baggage",
|
||||
"luggage",
|
||||
"suitcase",
|
||||
"travel"
|
||||
],
|
||||
"magnet": [
|
||||
@@ -2436,7 +2484,73 @@
|
||||
"mail": [
|
||||
"email",
|
||||
"message",
|
||||
"letter"
|
||||
"letter",
|
||||
"unread"
|
||||
],
|
||||
"mail-check": [
|
||||
"email",
|
||||
"message",
|
||||
"letter",
|
||||
"subscribe",
|
||||
"delivered",
|
||||
"success"
|
||||
],
|
||||
"mail-minus": [
|
||||
"email",
|
||||
"message",
|
||||
"letter",
|
||||
"remove",
|
||||
"delete"
|
||||
],
|
||||
"mail-open": [
|
||||
"email",
|
||||
"message",
|
||||
"letter",
|
||||
"read"
|
||||
],
|
||||
"mail-plus": [
|
||||
"email",
|
||||
"message",
|
||||
"letter",
|
||||
"add",
|
||||
"create",
|
||||
"new",
|
||||
"compose"
|
||||
],
|
||||
"mail-question": [
|
||||
"email",
|
||||
"message",
|
||||
"letter",
|
||||
"delivery",
|
||||
"undelivered"
|
||||
],
|
||||
"mail-search": [
|
||||
"email",
|
||||
"message",
|
||||
"letter",
|
||||
"search"
|
||||
],
|
||||
"mail-warning": [
|
||||
"email",
|
||||
"message",
|
||||
"letter",
|
||||
"delivery error"
|
||||
],
|
||||
"mail-x": [
|
||||
"email",
|
||||
"message",
|
||||
"letter",
|
||||
"remove",
|
||||
"delete"
|
||||
],
|
||||
"mails": [
|
||||
"emails",
|
||||
"messages",
|
||||
"letters",
|
||||
"multiple",
|
||||
"mailing list",
|
||||
"newsletter",
|
||||
"copy"
|
||||
],
|
||||
"map": [
|
||||
"location",
|
||||
@@ -3535,7 +3649,18 @@
|
||||
"device"
|
||||
],
|
||||
"tag": [
|
||||
"label"
|
||||
"label",
|
||||
"badge",
|
||||
"ticket",
|
||||
"mark"
|
||||
],
|
||||
"tags": [
|
||||
"labels",
|
||||
"badges",
|
||||
"tickets",
|
||||
"marks",
|
||||
"copy",
|
||||
"multiple"
|
||||
],
|
||||
"target": [
|
||||
"logo",
|
||||
@@ -3750,6 +3875,14 @@
|
||||
"upload-cloud": [
|
||||
"file"
|
||||
],
|
||||
"usb": [
|
||||
"universal",
|
||||
"serial",
|
||||
"bus",
|
||||
"controller",
|
||||
"connector",
|
||||
"interface"
|
||||
],
|
||||
"user": [
|
||||
"person",
|
||||
"account",
|
||||
@@ -3875,6 +4008,10 @@
|
||||
"magic",
|
||||
"selection"
|
||||
],
|
||||
"wand-2": [
|
||||
"magic",
|
||||
"wizard"
|
||||
],
|
||||
"watch": [
|
||||
"clock",
|
||||
"time"
|
||||
|
||||