diff --git a/brand-stopwords.json b/brand-stopwords.json index b30182d5a..04816fa5c 100644 --- a/brand-stopwords.json +++ b/brand-stopwords.json @@ -56,7 +56,6 @@ "kubernetes": "Kubernetes", "leetcode": "LeetCode", "leet-code": "LeetCode", - "line": "LINE", "linkedin": "LinkedIn", "lua": "Lua", "mariadb": "MariaDB", @@ -69,7 +68,7 @@ "nestjs": "NestJS", "netflix": "Netflix", "netlify": "Netlify", - "next": "Next.js", + "nextjs": "Next.js", "nodejs": "Node.js", "notion": "Notion", "nostr": "Nostr", @@ -105,7 +104,8 @@ "shopify": "Shopify", "skype": "Skype", "slack": "Slack", - "solid": "SolidJS", + "snapchat": "Snapchat", + "solidjs": "SolidJS", "soundcloud": "SoundCloud", "spotify": "Spotify", "sqlite": "SQLite", @@ -144,6 +144,5 @@ "xbox": "Xbox", "yarn": "Yarn", "youtube": "YouTube", - "zig": "Zig", - "zoom": "Zoom" + "zig": "Zig" } diff --git a/docs/guide/angular/advanced/with-lucide-lab.md b/docs/guide/angular/advanced/with-lucide-lab.md index 0f4106a2a..c5b612002 100644 --- a/docs/guide/angular/advanced/with-lucide-lab.md +++ b/docs/guide/angular/advanced/with-lucide-lab.md @@ -12,6 +12,10 @@ import Sandpack from '~/.vitepress/theme/components/editors/SandpackAngular.vue' While they aren't provided as standalone components, they can be still be passed to the `LucideIcon` component the same way as official icons: +::: info Limitation +Only custom icons that follow Lucide's [code conventions](../../../contribute/icon-design-guide.md#code-conventions) are supported. +::: + ### Directly as LucideIconData ::: sandpack {template=angular showTabs=false editorHeight=400 editorWidthPercentage=60 dependencies="@lucide/angular,@lucide/lab"} diff --git a/docs/package.json b/docs/package.json index 3a6ef4691..f0f07d9ea 100644 --- a/docs/package.json +++ b/docs/package.json @@ -8,7 +8,7 @@ "docs:dev": "pnpm run /^prebuild:.*/ && vitepress dev", "docs:build": "pnpm run /^prebuild:.*/ && vitepress build", "docs:preview": "vitepress preview", - "build:docs": "vitepress build", + "build:docs": "NODE_OPTIONS=--max-old-space-size=8192 vitepress build", "prebuild:iconNodes": "node ./scripts/writeIconNodes.mts", "prebuild:metaJson": "node ./scripts/writeIconMetaIndex.mts", "prebuild:releaseJson": "node ./scripts/writeReleaseMetadata.mts", @@ -18,9 +18,9 @@ "prebuild:iconPopularity": "node ./scripts/writeiconPopularity.mts", "prebuild:brandStopwords": "node ./scripts/writeBrandStopwords.mts", "postbuild:vercelJson": "node ./scripts/writeVercelOutput.mts", - "dev": "npx nitropack dev", - "prebuild:api": "npx nitropack prepare", - "build:api": "npx nitropack build", + "dev": "nitropack dev", + "prebuild:api": "nitropack prepare", + "build:api": "NODE_OPTIONS=--max-old-space-size=8192 nitropack build", "build": "pnpm run /^prebuild:.*/ && pnpm run build:api && pnpm run build:docs && pnpm postbuild:vercelJson", "preview": "node .output/server/index.mjs" }, diff --git a/docs/scripts/writeIconDetails.mts b/docs/scripts/writeIconDetails.mts index d1be6a871..436b05e2e 100644 --- a/docs/scripts/writeIconDetails.mts +++ b/docs/scripts/writeIconDetails.mts @@ -23,12 +23,12 @@ const writeIconFiles = icons.map(async (iconFileName) => { const location = path.resolve(iconDetailsDirectory, `${iconName}.ts`); const contents = `\ -import iconNode from '../iconNodes/${iconName}.node.json' -import metaData from '../../../../icons/${iconName}.json' -import releaseData from '../releaseMetadata/${iconName}.json' -import popularity from '../iconPopularity/${iconName}.json' +import iconNode from '../iconNodes/${iconName}.node.json' with { type: 'json' }; +import metaData from '../../../../icons/${iconName}.json' with { type: 'json' }; +import releaseData from '../releaseMetadata/${iconName}.json' with { type: 'json' }; +import popularity from '../iconPopularity/${iconName}.json' with { type: 'json' }; -const { tags, categories, contributors, aliases, deprecated, deprecationReason, toBeRemovedInVersion } = metaData +const { tags, categories, contributors, aliases, deprecated, deprecationReason, toBeRemovedInVersion } = metaData; const iconDetails = { name: '${iconName}', @@ -42,9 +42,9 @@ const iconDetails = { deprecationReason, toBeRemovedInVersion, ...releaseData, -} +}; -export default iconDetails +export default iconDetails; `; await fs.promises.writeFile(location, contents, 'utf-8'); diff --git a/icons/ad.json b/icons/ad.json index 33001d878..a8ddd9455 100644 --- a/icons/ad.json +++ b/icons/ad.json @@ -21,10 +21,15 @@ "paid", "partner", "promo", - "sponsor" + "sponsor", + "audio description", + "video description", + "described video", + "visual description" ], "categories": [ "multimedia", + "accessibility", "notifications" ] } diff --git a/icons/book-open-check.svg b/icons/book-open-check.svg index 73e8bf171..03e8211d3 100644 --- a/icons/book-open-check.svg +++ b/icons/book-open-check.svg @@ -9,7 +9,7 @@ stroke-linecap="round" stroke-linejoin="round" > - + - + diff --git a/icons/book-open-text.json b/icons/book-open-text.json index 0fbd1a0eb..265257b00 100644 --- a/icons/book-open-text.json +++ b/icons/book-open-text.json @@ -1,7 +1,8 @@ { "$schema": "../icon.schema.json", "contributors": [ - "danielbayley" + "danielbayley", + "karsa-mistmere" ], "use-cases": [], "tags": [ diff --git a/icons/book-open-text.svg b/icons/book-open-text.svg index ac82a89c6..5ce0c9103 100644 --- a/icons/book-open-text.svg +++ b/icons/book-open-text.svg @@ -9,10 +9,10 @@ stroke-linecap="round" stroke-linejoin="round" > - - - - - - + + + + + + diff --git a/icons/book-open.json b/icons/book-open.json index d952fd98b..02582969c 100644 --- a/icons/book-open.json +++ b/icons/book-open.json @@ -3,7 +3,8 @@ "contributors": [ "colebemis", "csandman", - "ericfennis" + "ericfennis", + "karsa-mistmere" ], "use-cases": [], "tags": [ diff --git a/icons/book-open.svg b/icons/book-open.svg index 690635210..9e0ace59b 100644 --- a/icons/book-open.svg +++ b/icons/book-open.svg @@ -9,6 +9,6 @@ stroke-linecap="round" stroke-linejoin="round" > - - + + diff --git a/icons/cast.json b/icons/cast.json index 3110a3498..9c3afb6ba 100644 --- a/icons/cast.json +++ b/icons/cast.json @@ -7,9 +7,18 @@ ], "use-cases": [], "tags": [ - "chromecast", - "airplay", - "screen" + "stream", + "streaming", + "screen", + "display", + "wireless", + "broadcast", + "transmit", + "media", + "receiver", + "remote display", + "screen sharing", + "media streaming" ], "categories": [ "devices", diff --git a/icons/circle-fading-plus.json b/icons/circle-fading-plus.json index 1bd99701d..ad122b9f4 100644 --- a/icons/circle-fading-plus.json +++ b/icons/circle-fading-plus.json @@ -8,10 +8,6 @@ "tags": [ "stories", "social media", - "instagram", - "facebook", - "meta", - "snapchat", "sharing", "content" ], diff --git a/icons/columns-3-cog.json b/icons/columns-3-cog.json index f24b403a5..02b152fce 100644 --- a/icons/columns-3-cog.json +++ b/icons/columns-3-cog.json @@ -3,7 +3,8 @@ "contributors": [ "irvineacosta", "danielbayley", - "karsa-mistmere" + "karsa-mistmere", + "kamilasw" ], "use-cases": [], "tags": [ diff --git a/icons/columns-3-cog.svg b/icons/columns-3-cog.svg index 945248cf5..9362d84c8 100644 --- a/icons/columns-3-cog.svg +++ b/icons/columns-3-cog.svg @@ -9,16 +9,16 @@ stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - - - + + + + + + + + + + - \ No newline at end of file + diff --git a/icons/compass.json b/icons/compass.json index 0d871b666..dc3ee2b6d 100644 --- a/icons/compass.json +++ b/icons/compass.json @@ -11,7 +11,6 @@ "east", "south", "west", - "safari", "browser" ], "categories": [ diff --git a/icons/computer.json b/icons/computer.json index 61c08c1be..3aa7e2173 100644 --- a/icons/computer.json +++ b/icons/computer.json @@ -7,8 +7,7 @@ "tags": [ "pc", "chassis", - "codespaces", - "github" + "codespaces" ], "categories": [ "devices", diff --git a/icons/container.json b/icons/container.json index f2d4b2021..6ae688794 100644 --- a/icons/container.json +++ b/icons/container.json @@ -9,7 +9,6 @@ "shipping", "freight", "supply chain", - "docker", "environment", "devops", "code", diff --git a/icons/history.json b/icons/history.json deleted file mode 100644 index 548042055..000000000 --- a/icons/history.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "$schema": "../icon.schema.json", - "contributors": [ - "ericfennis", - "danielbayley", - "jguddas", - "karsa-mistmere" - ], - "use-cases": [], - "tags": [ - "time", - "redo", - "undo", - "rewind", - "timeline", - "version", - "time machine", - "backup", - "rotate", - "ccw" - ], - "categories": [ - "arrows", - "time" - ] -} diff --git a/icons/rotate-ccw-clock.json b/icons/rotate-ccw-clock.json new file mode 100644 index 000000000..7aff411f7 --- /dev/null +++ b/icons/rotate-ccw-clock.json @@ -0,0 +1,38 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "ericfennis", + "danielbayley", + "jguddas", + "karsa-mistmere" + ], + "use-cases": [ + "To view the activity history of an account or document.", + "To browse past events in a log or audit trail.", + "To show recent actions, such as recently visited pages.", + "To restore an earlier version of a file." + ], + "tags": [ + "history", + "time", + "redo", + "undo", + "rewind", + "timeline", + "version", + "time machine", + "backup", + "ccw" + ], + "categories": [ + "arrows", + "time" + ], + "aliases": [ + { + "name": "history", + "deprecated": true, + "deprecationReason": "alias.name" + } + ] +} diff --git a/icons/history.svg b/icons/rotate-ccw-clock.svg similarity index 100% rename from icons/history.svg rename to icons/rotate-ccw-clock.svg diff --git a/icons/rotate-cw-fading-clock.json b/icons/rotate-cw-fading-clock.json new file mode 100644 index 000000000..46c3df721 --- /dev/null +++ b/icons/rotate-cw-fading-clock.json @@ -0,0 +1,24 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "NielsLazaroms" + ], + "use-cases": [ + "To indicate when you need to process items.", + "To indicate that a process is happening" + ], + "tags": [ + "clock", + "waiting", + "schedule", + "hourglass", + "loading", + "pause", + "pending", + "time", + "watch" + ], + "categories": [ + "time" + ] +} diff --git a/icons/rotate-cw-fading-clock.svg b/icons/rotate-cw-fading-clock.svg new file mode 100644 index 000000000..f8cc2ee57 --- /dev/null +++ b/icons/rotate-cw-fading-clock.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + diff --git a/icons/shield-keyhole.json b/icons/shield-keyhole.json new file mode 100644 index 000000000..dd0b40f75 --- /dev/null +++ b/icons/shield-keyhole.json @@ -0,0 +1,54 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "karsa-mistmere" + ], + "use-cases": [ + "Indicating that a resource or area is protected and requires authorized access", + "Representing access control and permission management settings", + "Showing security options for accounts, applications, or protected systems", + "Indicating content or functionality restricted to authenticated users", + "Representing authentication and secure sign-in features", + "Showing protected credentials, secrets, or other sensitive information", + "Representing identity and account protection features", + "Indicating security policies or authorization requirements" + ], + "tags": [ + "cybersecurity", + "secure", + "safety", + "protection", + "defense", + "defence", + "defender", + "block", + "threat", + "prevention", + "antivirus", + "vigilance", + "vigilant", + "detection", + "scan", + "find", + "strength", + "strong", + "tough", + "invincible", + "invincibility", + "invulnerable", + "undamaged", + "audit", + "admin", + "verification", + "crest", + "bravery", + "trooper", + "pawn" + ], + "categories": [ + "account", + "security", + "development", + "files" + ] +} diff --git a/icons/shield-keyhole.svg b/icons/shield-keyhole.svg new file mode 100644 index 000000000..9ee01cfb6 --- /dev/null +++ b/icons/shield-keyhole.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/icons/square-bottom-dashed-scissors.svg b/icons/square-bottom-dashed-scissors.svg index 7cc58c59f..1b4fb6ed2 100644 --- a/icons/square-bottom-dashed-scissors.svg +++ b/icons/square-bottom-dashed-scissors.svg @@ -9,18 +9,12 @@ stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - - - - - + + + + + + - + diff --git a/icons/square-scissors.svg b/icons/square-scissors.svg index 1ea817e6b..84f66bb65 100644 --- a/icons/square-scissors.svg +++ b/icons/square-scissors.svg @@ -9,10 +9,10 @@ stroke-linecap="round" stroke-linejoin="round" > - - - - + + + - + + diff --git a/package.json b/package.json index 87609630e..dd291b20b 100644 --- a/package.json +++ b/package.json @@ -80,5 +80,5 @@ "engines": { "node": ">=24.11.1" }, - "packageManager": "pnpm@11.6.0+sha512.9a36518224080c6fe5165afdcfe79bfa118c29be703f3f462b1e32efe1e98e47e8750b148e08286250aad4113cc7993ca413c4e2cd447752708c2ee5751bc95f" + "packageManager": "pnpm@11.16.0+sha512.b767e9a98fc87aec0f42daefcd0e84941c2cdb45d73c4e1e68860fb2bdfdbe032ab592105479e5e05c237f740c8a5ffdbbb52385797ddc2296745a1bbb883e8d" } diff --git a/packages/angular/src/lucide-dynamic-icon.spec.ts b/packages/angular/src/lucide-dynamic-icon.spec.ts index bd9e1fbb8..6dc0be2f3 100644 --- a/packages/angular/src/lucide-dynamic-icon.spec.ts +++ b/packages/angular/src/lucide-dynamic-icon.spec.ts @@ -43,13 +43,124 @@ describe('LucideDynamicIcon', () => { const supportedShapesIcon: LucideIconData = { name: 'supported-shapes', node: [ - ['path', { d: 'm1 1 2 2', fill: 'currentColor', key: 'path-key' }], - ['line', { x1: 1, x2: 2, y1: 3, y2: 4, key: 'line-key' }], - ['polygon', { points: '1 1 2 2 3 1', key: 'polygon-key' }], - ['polyline', { points: '1 1 2 2 3 1', key: 'polyline-key' }], - ['circle', { cx: 12, cy: 12, r: 8, fill: 'currentColor', key: 'circle-key' }], - ['ellipse', { cx: 12, cy: 12, rx: 8, ry: 4, key: 'ellipse-key' }], - ['rect', { x: 1, y: 2, width: 3, height: 4, rx: 5, ry: 6, key: 'rect-key' }], + [ + 'path', + { + class: 'path-class', + d: 'm1 1 2 2', + id: 'path-id', + opacity: '0.7', + stroke: 'red', + 'stroke-opacity': '0.5', + fill: 'blue', + 'fill-opacity': '0.3', + 'vector-effect': 'non-scaling-stroke', + key: 'path-key', + }, + ], + [ + 'line', + { + class: 'line-class', + id: 'line-id', + opacity: '0.7', + stroke: 'red', + 'stroke-opacity': '0.5', + fill: 'blue', + 'fill-opacity': '0.3', + x1: 1, + x2: 2, + y1: 3, + y2: 4, + 'vector-effect': 'non-scaling-stroke', + key: 'line-key', + }, + ], + [ + 'polygon', + { + class: 'polygon-class', + id: 'polygon-id', + opacity: '0.7', + stroke: 'red', + 'stroke-opacity': '0.5', + fill: 'blue', + 'fill-opacity': '0.3', + points: '1 1 2 2 3 1', + 'vector-effect': 'non-scaling-stroke', + key: 'polygon-key', + }, + ], + [ + 'polyline', + { + class: 'polyline-class', + id: 'polyline-id', + opacity: '0.7', + stroke: 'red', + 'stroke-opacity': '0.5', + fill: 'blue', + 'fill-opacity': '0.3', + points: '1 1 2 2 3 1', + 'vector-effect': 'non-scaling-stroke', + key: 'polyline-key', + }, + ], + [ + 'circle', + { + class: 'circle-class', + cx: 12, + cy: 12, + id: 'circle-id', + opacity: '0.7', + r: 8, + stroke: 'red', + 'stroke-opacity': '0.5', + fill: 'blue', + 'fill-opacity': '0.3', + 'vector-effect': 'non-scaling-stroke', + key: 'circle-key', + }, + ], + [ + 'ellipse', + { + class: 'ellipse-class', + cx: 12, + cy: 12, + id: 'ellipse-id', + opacity: '0.7', + rx: 8, + ry: 4, + stroke: 'red', + 'stroke-opacity': '0.5', + fill: 'blue', + 'fill-opacity': '0.3', + 'vector-effect': 'non-scaling-stroke', + key: 'ellipse-key', + }, + ], + [ + 'rect', + { + class: 'rect-class', + x: 1, + y: 2, + id: 'rect-id', + opacity: '0.7', + width: 3, + height: 4, + rx: 5, + ry: 6, + stroke: 'red', + 'stroke-opacity': '0.5', + fill: 'blue', + 'fill-opacity': '0.3', + 'vector-effect': 'non-scaling-stroke', + key: 'rect-key', + }, + ], ], }; function createComponent() { @@ -88,13 +199,13 @@ describe('LucideDynamicIcon', () => { fixture.detectChanges(); const children = getRenderedChildren(); expect(children.map((child) => child.outerHTML)).toEqual([ - '', - '', - '', - '', - '', - '', - '', + '', + '', + '', + '', + '', + '', + '', ]); }); diff --git a/packages/angular/src/lucide-icon-template.ts b/packages/angular/src/lucide-icon-template.ts index 1ae677ecb..ec95dc55f 100644 --- a/packages/angular/src/lucide-icon-template.ts +++ b/packages/angular/src/lucide-icon-template.ts @@ -11,13 +11,26 @@ export const lucideIconTemplate = `@if (title(); as titleValue) { @switch (child[0]) { @case ('path') { } @case ('line') { } @case ('polyline') { } @case ('circle') { } @case ('ellipse') { } @case ('rect') { }