Skip to content

Commit 68fd8e9

Browse files
committed
begin implementing lucide by renaming repo template vars
1 parent e933e9a commit 68fd8e9

11 files changed

+146
-46
lines changed

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/blade-lucide-icons.iml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

+76
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This changelog follows [the Keep a Changelog standard](https://keepachangelog.com).
44

55

6-
## [Unreleased](https://github.com/blade-organization/blade-heroicons/compare/1.0.0...main)
6+
## [Unreleased](https://github.com/mallardduck/blade-lucide-icons/compare/1.0.0...main)
77

88

99
## 1.0.0 (20??-??-??)

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Blade Developer
3+
Copyright (c) Dan Pock
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+17-27
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
1-
# Blade Icons Template
1+
# Blade Lucide Icons
22

3-
<a href="https://github.com/blade-organization/blade-heroicons/actions?query=workflow%3ATests">
4-
<img src="https://github.com/blade-ui-kit/blade-heroicons/workflows/Tests/badge.svg" alt="Tests">
3+
<a href="https://github.com/mallardduck/blade-lucide-icons/actions?query=workflow%3ATests">
4+
<img src="https://github.com/blade-ui-kit/blade-lucide-icons/workflows/Tests/badge.svg" alt="Tests">
55
</a>
6-
<a href="https://packagist.org/packages/blade-organization/blade-heroicons">
7-
<img src="https://img.shields.io/packagist/v/blade-organization/blade-heroicons" alt="Latest Stable Version">
6+
<a href="https://packagist.org/packages/mallardduck/blade-lucide-icons">
7+
<img src="https://img.shields.io/packagist/v/mallardduck/blade-lucide-icons" alt="Latest Stable Version">
88
</a>
9-
<a href="https://packagist.org/packages/blade-organization/blade-heroicons">
10-
<img src="https://img.shields.io/packagist/dt/blade-organization/blade-heroicons" alt="Total Downloads">
9+
<a href="https://packagist.org/packages/mallardduck/blade-lucide-icons">
10+
<img src="https://img.shields.io/packagist/dt/mallardduck/blade-lucide-icons" alt="Total Downloads">
1111
</a>
1212

13-
> This is a template repository for new icon packages for [Blade Icons](https://github.com/blade-ui-kit/blade-icons). Start a new repo with this and replace the relevant things below:
14-
>
15-
> 1. `blade-organization` with your GitHub organization
16-
> 2. `blade-heroicons` with your repository name
17-
> 3. `Blade Heroicons` & `Blade Icons Template` with your icon set name
18-
> 4. Any other reference to `Heroicons` with your icon set name
19-
> 5. `Blade Developer` with your name
20-
>
21-
> Then, make sure [the implementation](./src) is correct, that you set up [icon generation](https://github.com/blade-ui-kit/blade-icons#generating-icons) and that [your tests](./tests) pass. And remove this quote block from your readme. When you've published your package on Packagist, make sure to send it in to [the Blade Icons package list](https://github.com/blade-ui-kit/blade-icons#icon-packages).
13+
A package to easily make use of [Lucide](https://github.com/lucide-icons/lucide) Icons in your Laravel Blade views.
2214

23-
A package to easily make use of [Heroicons](https://github.com/refactoringui/heroicons) in your Laravel Blade views.
24-
25-
For a full list of available icons see [the SVG directory](resources/svg) or preview them at [heroicons.com](https://heroicons.com/).
15+
For a full list of available icons see [the SVG directory](resources/svg) or preview them at [lucide.dev](https://lucide.dev/).
2616

2717
## Requirements
2818

@@ -32,7 +22,7 @@ For a full list of available icons see [the SVG directory](resources/svg) or pre
3222
## Installation
3323

3424
```bash
35-
composer require blade-organization/blade-heroicons
25+
composer require mallardduck/blade-lucide-icons
3626
```
3727

3828
## Updating
@@ -41,14 +31,14 @@ Please refer to [`the upgrade guide`](UPGRADE.md) when updating the library.
4131

4232
## Blade Icons
4333

44-
Blade Heroicons uses Blade Icons under the hood. Please refer to [the Blade Icons readme](https://github.com/blade-ui-kit/blade-icons) for additional functionality. We also recommend to [enable icon caching](https://github.com/blade-ui-kit/blade-icons#caching) with this library.
34+
Blade LucideIcons uses Blade Icons under the hood. Please refer to [the Blade Icons readme](https://github.com/blade-ui-kit/blade-icons) for additional functionality. We also recommend to [enable icon caching](https://github.com/blade-ui-kit/blade-icons#caching) with this library.
4535

4636
## Configuration
4737

48-
Blade Heroicons also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the `blade-heroicons.php` config file:
38+
Blade LucideIcons also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the `blade-lucide-icons.php` config file:
4939

5040
```bash
51-
php artisan vendor:publish --tag=blade-heroicons-config
41+
php artisan vendor:publish --tag=blade-lucide-icons-config
5242
```
5343

5444
## Usage
@@ -82,13 +72,13 @@ The solid icons can be referenced like this:
8272
If you want to use the raw SVG icons as assets, you can publish them using:
8373

8474
```bash
85-
php artisan vendor:publish --tag=blade-heroicons --force
75+
php artisan vendor:publish --tag=blade-lucide-icons --force
8676
```
8777

8878
Then use them in your views like:
8979

9080
```blade
91-
<img src="{{ asset('vendor/blade-heroicons/o-adjustments.svg') }}" width="10" height="10"/>
81+
<img src="{{ asset('vendor/blade-lucide-icons/o-adjustments.svg') }}" width="10" height="10"/>
9282
```
9383

9484
## Changelog
@@ -97,8 +87,8 @@ Check out the [CHANGELOG](CHANGELOG.md) in this repository for all the recent ch
9787

9888
## Maintainers
9989

100-
Blade Heroicons is developed and maintained by Blade Developer.
90+
Blade LucideIcons is developed and maintained by Dan Pock.
10191

10292
## License
10393

104-
Blade Heroicons is open-sourced software licensed under [the MIT license](LICENSE.md).
94+
Blade LucideIcons is open-sourced software licensed under [the MIT license](LICENSE.md).

composer.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "blade-organization/blade-heroicons",
3-
"description": "A package to easily make use of Heroicons in your Laravel Blade views.",
4-
"keywords": ["Blade", "Heroicons", "Laravel"],
5-
"homepage": "https://github.com/blade-organization/blade-heroicons",
2+
"name": "mallardduck/blade-lucide-icons",
3+
"description": "A package to easily make use of LucideIcons in your Laravel Blade views.",
4+
"keywords": ["Blade", "LucideIcons", "Laravel"],
5+
"homepage": "https://github.com/mallardduck/blade-lucide-icons",
66
"license": "MIT",
77
"authors": [
88
{
9-
"name": "Blade Developer"
9+
"name": "Dan Pock"
1010
}
1111
],
1212
"require": {
@@ -20,7 +20,7 @@
2020
},
2121
"autoload": {
2222
"psr-4": {
23-
"BladeUI\\Heroicons\\": "src"
23+
"BladeUI\\LucideIcons\\": "src"
2424
}
2525
},
2626
"autoload-dev": {
@@ -31,7 +31,7 @@
3131
"extra": {
3232
"laravel": {
3333
"providers": [
34-
"BladeUI\\Heroicons\\BladeHeroiconsServiceProvider"
34+
"BladeUI\\LucideIcons\\BladeLucideIconsServiceProvider"
3535
]
3636
}
3737
},

src/BladeHeroiconsServiceProvider.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,40 @@
22

33
declare(strict_types=1);
44

5-
namespace BladeUI\Heroicons;
5+
namespace BladeUI\LucideIcons;
66

77
use BladeUI\Icons\Factory;
88
use Illuminate\Contracts\Container\Container;
99
use Illuminate\Support\ServiceProvider;
1010

11-
final class BladeHeroiconsServiceProvider extends ServiceProvider
11+
final class BladeLucideIconsServiceProvider extends ServiceProvider
1212
{
1313
public function register(): void
1414
{
1515
$this->registerConfig();
1616

1717
$this->callAfterResolving(Factory::class, function (Factory $factory, Container $container) {
18-
$config = $container->make('config')->get('blade-heroicons', []);
18+
$config = $container->make('config')->get('blade-lucide-icons', []);
1919

2020
$factory->add('heroicons', array_merge(['path' => __DIR__.'/../resources/svg'], $config));
2121
});
2222
}
2323

2424
private function registerConfig(): void
2525
{
26-
$this->mergeConfigFrom(__DIR__.'/../config/blade-heroicons.php', 'blade-heroicons');
26+
$this->mergeConfigFrom(__DIR__.'/../config/blade-lucide-icons.php', 'blade-lucide-icons');
2727
}
2828

2929
public function boot(): void
3030
{
3131
if ($this->app->runningInConsole()) {
3232
$this->publishes([
33-
__DIR__.'/../resources/svg' => public_path('vendor/blade-heroicons'),
34-
], 'blade-heroicons');
33+
__DIR__.'/../resources/svg' => public_path('vendor/blade-lucide-icons'),
34+
], 'blade-lucide-icons');
3535

3636
$this->publishes([
37-
__DIR__.'/../config/blade-heroicons.php' => $this->app->configPath('blade-heroicons.php'),
38-
], 'blade-heroicons-config');
37+
__DIR__.'/../config/blade-lucide-icons.php' => $this->app->configPath('blade-lucide-icons.php'),
38+
], 'blade-lucide-icons-config');
3939
}
4040
}
4141
}

tests/CompilesIconsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Tests;
66

7-
use BladeUI\Heroicons\BladeHeroiconsServiceProvider;
7+
use BladeUI\LucideIcons\BladeLucideIconsServiceProvider;
88
use BladeUI\Icons\BladeIconsServiceProvider;
99
use Orchestra\Testbench\TestCase;
1010

@@ -57,7 +57,7 @@ protected function getPackageProviders($app)
5757
{
5858
return [
5959
BladeIconsServiceProvider::class,
60-
BladeHeroiconsServiceProvider::class,
60+
BladeLucideIconsServiceProvider::class,
6161
];
6262
}
6363
}

0 commit comments

Comments
 (0)