Merge branch 'main' of https://github.com/lucide-icons/lucide
@@ -92,7 +92,7 @@ Thank you to all the people who contributed to Lucide!
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="docs/public/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="docs/public/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"@rollup/plugin-replace": "^6.0.3",
|
||||
"@types/semver": "^7.7.1",
|
||||
"h3": "^1.15.9",
|
||||
"nitropack": "^2.12.4",
|
||||
"nitropack": "^2.13.4",
|
||||
"rollup-plugin-copy": "^3.5.0",
|
||||
"svg-path-commander": "^2.1.11",
|
||||
"vitepress": "^1.6.4",
|
||||
@@ -43,7 +43,7 @@
|
||||
"semver": "^7.7.3",
|
||||
"sharp": "^0.34.5",
|
||||
"shiki": "^3.15.0",
|
||||
"simple-git": "^3.32.3",
|
||||
"simple-git": "^3.36.0",
|
||||
"sitemap": "^7.1.2",
|
||||
"svg-pathdata": "^6.0.3",
|
||||
"svgson": "^5.3.1"
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"contributors": [
|
||||
"rrod497",
|
||||
"jamiemlaw",
|
||||
"karsa-mistmere"
|
||||
],
|
||||
"tags": [
|
||||
"leafy",
|
||||
"crisp",
|
||||
"fresh",
|
||||
"culinary",
|
||||
"vegetation",
|
||||
"vegetable",
|
||||
"food",
|
||||
"healthy",
|
||||
"vegan",
|
||||
"vegetarian",
|
||||
"nutrition",
|
||||
"diet",
|
||||
"plant",
|
||||
"green",
|
||||
"produce"
|
||||
],
|
||||
"categories": [
|
||||
"food-beverage"
|
||||
]
|
||||
}
|
||||
@@ -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="M10 13a3 3 0 0 1-2.121-5.121" />
|
||||
<path d="M15.606 14.204c-3.5 1.5-5.899 4.503-8.899 7.503A1 1 0 0 1 6 22c-2 0-4-2-4-4a1 1 0 0 1 .293-.707c1.911-1.911 3.823-3.578 5.347-5.441" />
|
||||
<path d="M16.573 14.737A4 4 0 0 1 14 11" />
|
||||
<path d="M7.14 10.907a4 4 0 1 1 2.756-7.43A4 4 0 0 1 16.7 4.48a2 2 0 0 1 2.82 2.82 4 4 0 0 1 1.002 6.805A4 4 0 1 1 13 16" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 572 B |
@@ -2,7 +2,8 @@
|
||||
"$schema": "../icon.schema.json",
|
||||
"contributors": [
|
||||
"danielbayley",
|
||||
"karsa-mistmere"
|
||||
"karsa-mistmere",
|
||||
"jguddas"
|
||||
],
|
||||
"tags": [
|
||||
"sugar",
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M5.7 21a2 2 0 0 1-3.5-2l8.6-14a6 6 0 0 1 10.4 6 2 2 0 1 1-3.464-2 2 2 0 1 0-3.464-2Z" />
|
||||
<path d="m10.8 5 2.111 4.223" />
|
||||
<path d="M17.75 7 15 2.1" />
|
||||
<path d="M10.9 4.8 13 9" />
|
||||
<path d="m7.9 9.7 2 4.4" />
|
||||
<path d="M4.9 14.7 7 18.9" />
|
||||
<path d="m4.874 14.647 2.12 4.24" />
|
||||
<path d="M5.7 21a2 2 0 0 1-3.5-2l8.6-14a6 6 0 0 1 10.4 6 2 2 0 1 1-3.464-2 2 2 0 1 0-3.464-2z" />
|
||||
<path d="m7.906 9.712 2.005 4.411" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 453 B |
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"contributors": [
|
||||
"karsa-mistmere"
|
||||
"karsa-mistmere",
|
||||
"jguddas"
|
||||
],
|
||||
"tags": [
|
||||
"statistics",
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M12 16v5" />
|
||||
<path d="M16 14v7" />
|
||||
<path d="M20 10v11" />
|
||||
<path d="M16 14.639V21" />
|
||||
<path d="M20 10.656V21" />
|
||||
<path d="m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15" />
|
||||
<path d="M4 18v3" />
|
||||
<path d="M8 14v7" />
|
||||
<path d="M4 18.463V21" />
|
||||
<path d="M8 14.656V21" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 432 B |
@@ -3,7 +3,8 @@
|
||||
"contributors": [
|
||||
"connium",
|
||||
"ericfennis",
|
||||
"karsa-mistmere"
|
||||
"karsa-mistmere",
|
||||
"jamiemlaw"
|
||||
],
|
||||
"tags": [
|
||||
"bank",
|
||||
@@ -17,12 +18,21 @@
|
||||
"institute",
|
||||
"pediment",
|
||||
"portico",
|
||||
"doric",
|
||||
"columns",
|
||||
"pillars",
|
||||
"classical",
|
||||
"architecture",
|
||||
"government",
|
||||
"institution"
|
||||
"institution",
|
||||
"monument",
|
||||
"site",
|
||||
"history",
|
||||
"historic",
|
||||
"library",
|
||||
"temple",
|
||||
"ancient",
|
||||
"structure"
|
||||
],
|
||||
"categories": [
|
||||
"finance",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M10 18v-7" />
|
||||
<path d="M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z" />
|
||||
<path d="M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z" />
|
||||
<path d="M14 18v-7" />
|
||||
<path d="M18 18v-7" />
|
||||
<path d="M3 22h18" />
|
||||
|
||||
|
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 432 B |
@@ -4,7 +4,16 @@
|
||||
"ericfennis"
|
||||
],
|
||||
"tags": [
|
||||
"select"
|
||||
"select",
|
||||
"caret",
|
||||
"type",
|
||||
"typing",
|
||||
"write",
|
||||
"writing",
|
||||
"edit",
|
||||
"insert",
|
||||
"input",
|
||||
"textarea"
|
||||
],
|
||||
"categories": [
|
||||
"text",
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1" />
|
||||
<path d="M7 22h1a4 4 0 0 0 4-4v-1" />
|
||||
<path d="M7 2h1a4 4 0 0 1 4 4v1" />
|
||||
<path d="M7 22h1a4 4 0 0 0 4-4" />
|
||||
<path d="M7 2h1a4 4 0 0 1 4 4" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 338 B |
@@ -2,7 +2,8 @@
|
||||
"$schema": "../icon.schema.json",
|
||||
"contributors": [
|
||||
"danielbayley",
|
||||
"jguddas"
|
||||
"jguddas",
|
||||
"jamiemlaw"
|
||||
],
|
||||
"tags": [
|
||||
"beach",
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M11.1 7.1a16.55 16.55 0 0 1 10.9 4" />
|
||||
<path d="M12 12a12.6 12.6 0 0 1-8.7 5" />
|
||||
<path d="M16.8 13.6a16.55 16.55 0 0 1-9 7.5" />
|
||||
<path d="M20.7 17a12.8 12.8 0 0 0-8.7-5 13.3 13.3 0 0 1 0-10" />
|
||||
<path d="M6.3 3.8a16.55 16.55 0 0 0 1.9 11.5" />
|
||||
<path d="M11 7a16 16 20 0 1 10.98 4.362" />
|
||||
<path d="M12 12a13 13 0 0 1-8.66 5" />
|
||||
<path d="M16.83 13.634a16 16 0 0 1-9.267 7.328" />
|
||||
<path d="M20.66 17A13 13 0 0 0 12 12a13 13 0 0 1 0-10" />
|
||||
<path d="M8.17 15.366a16 16 0 0 1-1.713-11.69" />
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 496 B |
@@ -71,7 +71,7 @@
|
||||
"prettier": "3.2.4",
|
||||
"prettier-plugin-astro": "^0.14.1",
|
||||
"semver": "^7.7.3",
|
||||
"simple-git": "^3.32.3",
|
||||
"simple-git": "^3.36.0",
|
||||
"svgo": "^3.3.3",
|
||||
"svgson": "^5.3.1",
|
||||
"vitest": "4.0.12",
|
||||
|
||||
@@ -75,7 +75,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
|
||||
|
||||
### Hero backers 🦸
|
||||
|
||||
<a href="https://https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
<a href="https://zephyr-cloud.io/"><img src="https://lucide.dev/sponsors/zephyr-cloud.svg" width="180" alt="Zephyr Cloud – From idea to prod: fast micro-frontend delivery!" /></a>
|
||||
|
||||
### Awesome backers 🍺
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ const createLucideIcon =
|
||||
iconNode,
|
||||
name: iconName,
|
||||
},
|
||||
slots,
|
||||
slots.default ? { default: slots.default } : undefined,
|
||||
);
|
||||
|
||||
export default createLucideIcon;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { describe, it, expect, vi, afterEach } from 'vitest';
|
||||
import { render, fireEvent, cleanup } from '@testing-library/vue';
|
||||
import { Smile, Edit2, Pen } from '../src/lucide-vue';
|
||||
import createLucideIcon from '../src/createLucideIcon';
|
||||
import defaultAttributes from '../src/defaultAttributes';
|
||||
|
||||
describe('Using lucide icon components', () => {
|
||||
@@ -108,6 +109,25 @@ describe('Using lucide icon components', () => {
|
||||
expect(container).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('should handle non-extensible slots objects', () => {
|
||||
const Icon = createLucideIcon('test-icon', [['path', { d: 'M0 0h1', key: 'test-key' }]]);
|
||||
const slots = Object.freeze({
|
||||
default: () => 'Hello World',
|
||||
});
|
||||
|
||||
expect(() =>
|
||||
Icon(
|
||||
{},
|
||||
{
|
||||
attrs: {},
|
||||
emit: vi.fn(),
|
||||
expose: vi.fn(),
|
||||
slots,
|
||||
},
|
||||
),
|
||||
).not.toThrow();
|
||||
});
|
||||
|
||||
it('should render the alias icon', () => {
|
||||
const { container } = render(Pen, {
|
||||
props: {
|
||||
|
||||