From c6d3f75e8c750349d736014ae76464e3aaeb927e Mon Sep 17 00:00:00 2001 From: Danylo Kolodij <46485085+chaker2710@users.noreply.github.com> Date: Sat, 19 Feb 2022 15:28:16 +0200 Subject: [PATCH 1/3] Add support for Laravel v9 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a6c0cfa..7bc117c 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "laravel/framework": "^8.0" + "laravel/framework": "^8.0|^9.0" }, "autoload": { "psr-4": { From 52b983ae47dcd6712a1589d5aa36c9c906e48e0f Mon Sep 17 00:00:00 2001 From: Danylo Kolodij <46485085+chaker2710@users.noreply.github.com> Date: Sat, 19 Feb 2022 15:41:31 +0200 Subject: [PATCH 2/3] Change vendor for publish in packagist --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7bc117c..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", From 53756970c800273b187eb663d5610dbd4c070107 Mon Sep 17 00:00:00 2001 From: Danylo Kolodiy Date: Thu, 7 Apr 2022 13:21:03 +0300 Subject: [PATCH 3/3] bootstrap icons --- config/laravel-bootstrap-components.php | 15 --------------- resources/views/components/icon.blade.php | 9 ++------- 2 files changed, 2 insertions(+), 22 deletions(-) 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([ // ]);