chore: add codeigniter-icons library as dependency + fix styling

This commit is contained in:
Yassine Doghri 2024-04-26 10:58:14 +00:00
parent d731ddd6c3
commit 9b534b21cf
4 changed files with 249 additions and 1161 deletions

View File

@ -42,7 +42,9 @@ class Alert extends Component
$this->variant = 'default';
}
$glyph = icon(($this->glyph ?? $variants[$this->variant]['glyph']), ['class' => 'flex-shrink-0 mr-2 text-lg']);
$glyph = icon(($this->glyph ?? $variants[$this->variant]['glyph']), [
'class' => 'flex-shrink-0 mr-2 text-lg',
]);
$title = $this->title === null ? '' : '<div class="font-semibold">' . $this->title . '</div>';
$class = 'inline-flex w-full p-2 text-sm border rounded ' . $variants[$this->variant]['class'] . ' ' . $this->class;

View File

@ -26,12 +26,8 @@
"opawg/user-agents-v2-php": "dev-main",
"phpseclib/phpseclib": "~2.0.47",
"vlucas/phpdotenv": "v5.6.0",
<<<<<<< HEAD
"whichbrowser/parser": "^v2.1.8",
=======
"whichbrowser/parser": "^v2.1.7",
"yassinedoghri/codeigniter-icons": "dev-develop",
>>>>>>> 644a47fb (refactor(icons): use php-icons library to load icons)
"yassinedoghri/podcast-feed": "dev-main"
},
"require-dev": {

1393
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -5,14 +5,11 @@ declare(strict_types=1);
use PHPIcons\Config\PHPIconsConfig;
return PHPIconsConfig::configure()
->withPaths([
__DIR__ . '/app',
__DIR__ . '/themes',
])
->withPaths([__DIR__ . '/app', __DIR__ . '/themes'])
->withLocalIconSets([
'funding' => __DIR__ . '/app/Resources/icons/funding',
'funding' => __DIR__ . '/app/Resources/icons/funding',
'podcasting' => __DIR__ . '/app/Resources/icons/podcasting',
'social' => __DIR__ . '/app/Resources/icons/social',
'social' => __DIR__ . '/app/Resources/icons/social',
])
->withDefaultPrefix('ri')
->withPlaceholder('<27>');