lukas-frey / filament-icon-picker

An icon picker field for Filament
MIT License
101 stars 20 forks source link

Feature: Support nested directories #38

Closed Voltra closed 1 month ago

Voltra commented 1 month ago

IconPicker::loadIcons used to only inspect the root path of each icon set, which meant that for sets with sub-folders it'd be impossible to pick a nested icon.

This PR changes the way files are iterated to take into account sub-folders and adapts the "icon name resolution" algorithm.

It also introduces a skip for non-svg files (which can be removed and introduced separately).

lukas-frey commented 1 month ago

Hi! Thanks a lot for the PR. :) Merging.

github-actions[bot] commented 1 month ago

:tada: This PR is included in version 2.2.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: