diff --git a/composer.json b/composer.json index a6c0cfa..5917fcc 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "bastinald/laravel-bootstrap-components", + "name": "ova-studio/laravel-bootstrap-components", "homepage": "https://github.com/bastinald/laravel-bootstrap-components", "description": "Laravel Bootstrap Blade components.", "license": "MIT", @@ -11,7 +11,7 @@ } ], "require": { - "laravel/framework": "^8.0" + "laravel/framework": "^8.0|^9.0" }, "autoload": { "psr-4": { diff --git a/config/laravel-bootstrap-components.php b/config/laravel-bootstrap-components.php index 70e7cd1..ea6218d 100644 --- a/config/laravel-bootstrap-components.php +++ b/config/laravel-bootstrap-components.php @@ -2,21 +2,6 @@ return [ - /* - |-------------------------------------------------------------------------- - | Font Awesome Style - |-------------------------------------------------------------------------- - | - | This value is the default Font Awesome style to use for icons. This can - | be overridden at the component level for cases where you want to show a - | brand icon, etc. Regular and light require FA pro to be installed. - | - | Supported: "solid", "regular", "light" - | - */ - - 'font_awesome_style' => 'solid', - /* |-------------------------------------------------------------------------- | Use With Model Trait diff --git a/resources/views/components/icon.blade.php b/resources/views/components/icon.blade.php index f97b78f..99bb4ed 100644 --- a/resources/views/components/icon.blade.php +++ b/resources/views/components/icon.blade.php @@ -1,19 +1,14 @@ @props([ 'name' => null, - 'style' => config('laravel-bootstrap-components.font_awesome_style'), 'size' => null, 'color' => null, - 'spin' => false, - 'pulse' => false, ]) @php $attributes = $attributes->class([ - 'fa' . Str::limit($style, 1, null) . ' fa-fw fa-' . $name, - 'fa-' . $size => $size, + 'bi bi-' . $name, 'text-' . $color => $color, - 'fa-spin' => $spin, - 'fa-pulse' => $pulse, + 'fs-' . $size => $size ])->merge([ // ]);