Skip to content

Commit

Permalink
feat: use original naming convention (#64)
Browse files Browse the repository at this point in the history
* feat: use original naming convention

BREAKING CHANGE: changes the file structure

* trigger workflow

* fix tar

* chore: update to iconoir v7.4.0 (#63)

* test: fix tests

* docs: update readme

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Arne Becker <buddhaCode@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 26, 2024
1 parent add34dc commit c9aa1ff
Show file tree
Hide file tree
Showing 1,554 changed files with 27 additions and 11 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,31 @@ jobs:
- name: Download iconoir
if: steps.new-version.outputs.exists
run: |
# Download the latest version of iconoir
curl -sSL https://github.com/${{ env.repository }}/archive/refs/tags/${{ steps.latest-version.outputs.release }}.tar.gz -o iconoir.tar.gz
rm resources/svg/*.svg
# Remove existing icons
rm -rf resources/svg/*
# Extract the new icon directories in resources/svg
tar -C resources/svg \
--wildcards \
--show-transformed-names \
--transform 's,[^/]*/[^/]*/\([^/]*\)/\([^/]*\),\L\1-\2,' \
-zxvf iconoir.tar.gz \
--strip-components=2 \
-zxf iconoir.tar.gz \
'iconoir-*/icons/**/*.svg'
# Move the regular icons to resources/svg
mv -v resources/svg/regular/*.svg resources/svg
# Add the "-solid" suffix to the solid icons and move them to resources/svg
for file in resources/svg/solid/*.svg; do
mv -v "$file" "resources/svg/$(basename "$file" .svg)-solid.svg"
done
# Clean up
rm iconoir.tar.gz
rmdir resources/svg/regular
rmdir resources/svg/solid
- name: Update .version
if: steps.new-version.outputs.exists
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ composer require andreiio/blade-iconoir

Icons can be used a self-closing Blade components which will be compiled to SVG icons:
```blade
<x-iconoir-regular-bookmark />
<x-iconoir-bookmark />
```

You can also pass classes to your icon components:
```blade
<x-iconoir-regular-mail class="w-6 h-6 text-gray-500 fill-current" />
<x-iconoir-mail class="w-6 h-6 text-gray-500 fill-current" />
```

And even use inline styles:
```blade
<x-iconoir-solid-warning-triangle style="fill: #F00" />
<x-iconoir-warning-triangle-solid style="fill: #F00" />
```

### Raw SVG Icons
Expand All @@ -53,7 +53,7 @@ php artisan vendor:publish --tag=blade-iconoir --force
Then use them in your views like:

```blade
<img src="{{ asset('vendor/blade-iconoir/regular-bicycle.svg') }}" width="10" height="10"/>
<img src="{{ asset('vendor/blade-iconoir/bicycle.svg') }}" width="10" height="10"/>
```

### Blade Icons
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit c9aa1ff

Please sign in to comment.