Karsa and Eric Fennis
99d25bdee2
feat(packages): extract icon build logic into @lucide/shared ( #4409 )
...
* feat(packages): extract build logic to @lucide/shared, still wip
* feat(): unify icon build logic some more, add nonScalingStroke option, marking absoluteStrokeWidth as deprecated
* feat(): unify icon build logic some more, add nonScalingStroke option, marking absoluteStrokeWidth as deprecated
* feat(packages): extract build logic to @lucide/shared, still wip
* feat(): unify icon build logic some more, add nonScalingStroke option, marking absoluteStrokeWidth as deprecated
* feat(): unify icon build logic some more, add nonScalingStroke option, marking absoluteStrokeWidth as deprecated
* chore(icons): revert git hook changes made to icons
* fix(packages/astro,react-native,vue): fix iconNode type
fix(packages/vue): fix hasA11yProp
* fix(packages/solid): make component reactive & add unit tests for checking prop changes
* test(packages/vue): add reactivity tests to @lucide/vue
* fix(packages): replace cpy-cli, accidentally removed during main merge
* docs(packages): upgrade react documentation with nonScalingStroke
* fix(tests): update snapshots for lucide-react
* feat(docs): upgraded package guides with nonScalingStroke, dropping absoluteStrokeWidth
* fix(vue,react-native): fix linting issues
* fix(icons): add proper fallback for icon width in calculatedStrokeWidth
* fix(packages/svelte): add globalProps.class to icons
* fix(packages/shared): wrap width, height & size in isDefined
* Update types.ts
* fix(packages/svelte): do not pass propsClass to mergeClasses
---------
Co-authored-by: Eric Fennis <eric.fennis@gmail.com >
2026-09-04 16:38:01 +02:00
Eric Fennis
c619ce988c
Fix tests
2026-02-06 11:55:03 +01:00
Eric Fennis
628d4f903a
Merge branch 'main' of https://github.com/lucide-icons/lucide into next
2026-01-23 08:00:19 +01:00
b6ed43d48c
feat(packages): Added aria-hidden fallback for decorative icons to all packages ( #3604 )
...
* Add aria hidden to lucide package
* Add aria-hidden to astro package
* Add tests for shared package
* Fix test for props
* add aria prop to lucide-solid
* Add aria-hidden to lucide-vue-next
* Add aria-hidden prop to angular package
* Fix builds
* Add notice about aria-label in docs
* Format code
* Update packages/svelte/tests/Icon.spec.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update packages/lucide-svelte/tests/Icon.spec.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update packages/shared/src/utils/hasA11yProp.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Adjusted docs
* Fix import
* update tests
* test(shared): fix hasA11yProp unit test
* fix(packages/lucide-angular): fix hasA11yProp import path (non-relative import path will not get properly resolved by ng-packagr)
* Format code
* Adjust aria props to root element
* Format code
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: Karsa <contact@karsa.org >
2026-01-20 15:55:02 +01:00
Eric Fennis and Copilot
0c6dfeb64c
feat(context-providers): Adding Context providers ( #3315 )
...
* Add context provider for svelte package
* Add context provider for react
* Remove old vue 2 package
* Add @lucide/vue package
* Remove old vue 2 doc
* Update docs
* Adjust export template
* Add context provider to solid package
* Fix context
* Implement context providers
* Add context provider to preact
* Adjust vue package!
* Fix tests
* Format code
* Add context provider for Vue
* Improve memoization
* Update packages/lucide-react-native/tests/context.spec.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Apply fixes
* Cleanup
* Formatting
* Move on
* Update packages/lucide-react/tests/context.spec.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update packages/lucide-preact/tests/context.spec.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update packages/vue/tests/context.spec.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Remove x
* update export template
* apply feedback
* fix export template
* Fixes types and tests
* fix tests
* apply feedback
* Remove class
* Formatting
* Update packages/svelte/src/context.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Remove fill form context providers
* formatting
* Add classname to context provider
* Apply feedback
* Format code
* Rename files
* Rename tsx to ts
* Format file
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-01-02 09:47:29 +01:00
Dante Issaias and Eric Fennis
4835ae67a9
fix(packages): consistent icon name class ( #2878 )
...
* fix: consistent icon name class
* merge classes
* fix vue-next
* update test snapshots
* fix vue-next
* fix test
* fix solid
* proper deduplication
* update snapshots
* preact
* refactor
* deprecated
* refactor tests
---------
Co-authored-by: Eric Fennis <eric.fennis@gmail.com >
2025-03-21 11:35:54 +01:00
Eric Fennis
e50582e93e
feat(icon-component): Creating icons with iconNodes ( #1997 )
...
* Add useIconComponent, lucide-react
* Add concept useIconComponent
* add useIconComponents to packages
* Add icon component
* Add icon component
* Add tests for react packages
* Reset changes in icons
* Add types
* Add support for Icon components in Lucide Vue Next
* update tests
* Update tests
* Enable Svelte component
* Fix lucide-react-native tests
* Update Solid package
* update snapshots
* Add docs
* add docs
* Update tests
* Formatting
* Formatting
* Update package lock
* Remove `useIconComponent`
* Update guides
* Update exports preact and solid package
* Formatting
* Format createIcons.ts
* Add lucide lab repo link in docs
2024-04-26 17:59:04 +02:00
Han Yeong-woo
eb035fe370
Improve formatting ( #1814 )
...
* Ignore linting for examples in docs
* Formatting JSX single attribute per line
* Separte `format` and `lint:format` in package.json
* Bump prettier version
* Run format
2024-02-01 14:38:21 +01:00
Eric Fennis
faff6a8269
Update dependencies and general improvements in packages ( #1773 )
...
* update deps and vitest
* dedupe packages
* update package.json files
* Update to latest vite and vites
* Fix build
* Update lockfile
2024-01-03 11:38:06 +01:00
Eric Fennis
75e9724072
Make sure we apply all classes to the lucide icons ( #1691 )
...
* Make sure all classes are applied for all packages
* Add class test to angular component
* Adjust lucide-static tests
* update snapshot
* Fix types
2023-11-24 13:59:12 +01:00
Eric Fennis
b684a0083b
update snapshots
2023-08-07 22:20:14 +02:00
Eric Fennis and joseph
3619dfa7f2
Bump Vitest and his dependencies ( #1414 )
...
* migration to Svelte 4
* feat: update peer dep
* feat: update lockfile
* Bump vitest and deps
---------
Co-authored-by: joseph <josephrios56@gmail.com >
2023-06-29 21:42:47 +02:00
a87ae2a92b
Introducing absoluteStrokeWidth option on Lucide Components ( #939 )
...
* Add more music icons and another mic icon (#746 )
* Revert "Add more music icons and another mic icon (#746 )" (#750 )
This reverts commit 57cba6ae0e .
* add scale Stroke width
* Added scaleStrokeWidth prop to all packages
* Add scaleStrokeWidth to types
* Rename scaleStrokeWidth to absoluteStrokeWidth
* Adds common API elements to the Angular package (#949 )
* Almost complete rewrite of the Angular package
* Update tsconfig.spec.json
* fixes icon build export file name
* Updates Angular documentation with the new properties + provider injection
* Update lucide-angular.md
* refactored scaleStrokeWidth to be absoluteStrokeWidth to match other packages
* removed codelyzer from devDeps + added flexible angular core dependencies
* Deprecates createElement helper in favour of Renderer2 to support SSR
---------
Co-authored-by: Karsa <karsa@karsa.org >
* Add absoluteStrokeWidth in docs
* update snapshots
* Manual merge of main
* Fixed incorrectly merged pnpm-lock.yaml
* Fixes lucide-angular build
* [lucide-angular] Global configuration for properties + bugfix for legacy icon provider (#1012 )
* Almost complete rewrite of the Angular package
* Update tsconfig.spec.json
* fixes icon build export file name
* Updates Angular documentation with the new properties + provider injection
* Update lucide-angular.md
* refactored scaleStrokeWidth to be absoluteStrokeWidth to match other packages
* removed codelyzer from devDeps + added flexible angular core dependencies
* Deprecates createElement helper in favour of Renderer2 to support SSR
* Added global configuration and fixed undefined bug in legacy icon provider. Also updated README.md
* Replaces removed line in README.md
* Fixes merge error
* Updates export template to use the non-deprecated type
* downgrade building to ng-cli@13
* downgrade to es2020
---------
Co-authored-by: Karsa <karsa@karsa.org >
* rename scaleStrokeWidth to absoluteStrokeWidth in readme
---------
Co-authored-by: it-is-not <72697755+it-is-not@users.noreply.github.com >
Co-authored-by: Karsa <contact@karsa.org >
Co-authored-by: Eric Fennis <eric@dreamteam.nl >
Co-authored-by: Karsa <karsa@karsa.org >
Co-authored-by: Eric Fennis <eric.fennis@nac41112.nedap.local >
2023-04-20 16:08:34 +02:00
Eric Fennis
96473f7f7d
Fix build
2023-04-08 18:57:28 +02:00
Eric Fennis
8fd8007c96
Add support for aliases ( #899 )
...
* extract workflow
* Add aliases build
* Setup types building for aliases
* Add types generation for aliases
* Finish React Aliases
* Finish aliases for lucide-react
* setup aliases preact
* Fix aliases in preact
* Add aliases preact
* Add aliases lucide-react-native
* Fix solid js build
* update lock file
* Improve solid for solid start
* update import
* update import
* lucide solid fix types generation
* Fix lucide sold
* Fix svelte aliases
* update lockfile
* Fix imports
* Fix solid js issues
* Add aliases to the vue packages
* Fix lucide react native
* Test alpha versions lucide-vue, lucide-vue-next, lucide-svelte
2023-01-17 08:04:34 +01:00
Eric Fennis
fa6ed02297
Implement: Typescript, Esbuild and vitest ( #877 )
...
* init modernization
* implement esbuild
* Make first build work
* Fix esbuild for lucide-react
* Add vitest for lucide-react
* add esbuild lucide and lucide-react
* update package lock
* implement preact
* Add typescript and vitest
* adjust workflows
* Fix mocking react-native package
* update lock file
* Add esbuild in svelte
* make svelte test work in vitest
* Refactor lucide svelte
* Transform lucide vue to typescript
* Finish lucide-vue-next typescript
* 0.104.0-beta.0
* remove version in main package.json
* cleanup
* Fix svelte tests snapshots
* clean up
* add rollup lucide-vue-next
* Fix lucide svelte package
* change to workspace link
* revert filter position
* revert preact workflow change
* cleanup
* Fix some types
* add semi
2022-12-04 22:38:56 +01:00
Eric Fennis
f70a0e1945
Add default classnames, fix #317
2021-09-17 16:23:17 +02:00
Eric Fennis
9e63e97f31
Lucide preact package ( #291 )
...
* Add preact package
* Fix types
* update types
* fix types
* remove dependecies
* bump version
* improve test setup for react as well
* Add workflow for preact
* Fix types
* bump version
* Add white space
* remove forward ref
* bump package
* Fix types
* Fix types
* bump version
* Remove proptypings
* Test new version
* Add some extra documentation
2021-05-23 13:13:18 +02:00