Skip to content

Commit 88ba4ca

Browse files
build(dependencies): add filament-icon-picker package and configuration
Added `wallacemartinss/filament-icon-picker` (v1.1) package to dependencies. Published the configuration file (`config/filament-icon-picker.php`) with customizable options for icon sets, caching, grid layout, and modal settings. Updated `composer.lock` to reflect changes.
1 parent 7b3de35 commit 88ba4ca

File tree

3 files changed

+155
-2
lines changed

3 files changed

+155
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"laravel/framework": "^12.0",
2828
"laravel/tinker": "^2.10.1",
2929
"livewire/livewire": "^3.6",
30-
"nativephp/mobile": "^2.0"
30+
"nativephp/mobile": "^2.0",
31+
"wallacemartinss/filament-icon-picker": "^1.1"
3132
},
3233
"require-dev": {
3334
"barryvdh/laravel-debugbar": "^3.14",

composer.lock

Lines changed: 78 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/filament-icon-picker.php

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Allowed Icon Sets
7+
|--------------------------------------------------------------------------
8+
|
9+
| Define which icon sets should be available in the picker.
10+
| Leave empty array to allow all installed blade-icon sets.
11+
|
12+
| Example: ['heroicons', 'tabler', 'fontawesome']
13+
|
14+
*/
15+
'allowed_sets' => [],
16+
17+
/*
18+
|--------------------------------------------------------------------------
19+
| Icons Per Page
20+
|--------------------------------------------------------------------------
21+
|
22+
| Number of icons to load initially and on each scroll batch.
23+
| Increase this value for faster browsing, decrease for better performance.
24+
|
25+
*/
26+
'icons_per_page' => 100,
27+
28+
/*
29+
|--------------------------------------------------------------------------
30+
| Column Layout
31+
|--------------------------------------------------------------------------
32+
|
33+
| Number of columns in the icon grid for different screen sizes.
34+
|
35+
*/
36+
'columns' => [
37+
'default' => 6,
38+
'sm' => 8,
39+
'md' => 10,
40+
'lg' => 12,
41+
],
42+
43+
/*
44+
|--------------------------------------------------------------------------
45+
| Modal Size
46+
|--------------------------------------------------------------------------
47+
|
48+
| The size of the icon picker modal.
49+
| Options: 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl'
50+
|
51+
*/
52+
'modal_size' => '4xl',
53+
54+
/*
55+
|--------------------------------------------------------------------------
56+
| Cache Icons
57+
|--------------------------------------------------------------------------
58+
|
59+
| Whether to cache the icon list for better performance.
60+
| Set to false during development if you're adding new icons frequently.
61+
|
62+
*/
63+
'cache_icons' => false,
64+
65+
/*
66+
|--------------------------------------------------------------------------
67+
| Cache Duration
68+
|--------------------------------------------------------------------------
69+
|
70+
| How long to cache the icon list (in seconds).
71+
| Default: 86400 (24 hours)
72+
|
73+
*/
74+
'cache_duration' => 86400,
75+
];

0 commit comments

Comments
 (0)