This commit is contained in:
Dan Harrin
2023-07-18 06:21:42 +01:00
parent 55d5ea9b67
commit 392c0ef0dd
24 changed files with 437 additions and 285 deletions
@@ -361,6 +361,27 @@ class FieldsDemo extends Component implements HasForms
'livewire' => 'Laravel Livewire',
]),
]),
Group::make()
->id('checkboxListOptionDescriptions')
->extraAttributes([
'class' => 'p-16 max-w-xl',
])
->schema([
CheckboxList::make('checkboxListOptionDescriptions')
->label('Technologies')
->options([
'tailwind' => 'Tailwind CSS',
'alpine' => 'Alpine.js',
'laravel' => 'Laravel',
'livewire' => 'Laravel Livewire',
])
->descriptions([
'tailwind' => 'A utility-first CSS framework for rapidly building modern websites without ever leaving your HTML.',
'alpine' => 'A rugged, minimal tool for composing behavior directly in your markup.',
'laravel' => 'A web application framework with expressive, elegant syntax.',
'livewire' => 'A full-stack framework that makes building dynamic interfaces simple, without leaving the comfort of Laravel.',
]),
]),
Group::make()
->id('checkboxListColumns')
->extraAttributes([
+8
View File
@@ -61,6 +61,14 @@
{
"type": "path",
"url": "../../packages/*"
},
{
"type": "path",
"url": "../../../../livewire3"
},
{
"type": "path",
"url": "../../../../pest-plugin-livewire"
}
],
"config": {
+293 -190
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "b99550002df049e736a382e3f7c0ebee",
"content-hash": "431effab1db33cf39e5e26d23d801808",
"packages": [
{
"name": "blade-ui-kit/blade-heroicons",
@@ -688,10 +688,9 @@
"dist": {
"type": "path",
"url": "../../packages/actions",
"reference": "2e8b6944e54126f8618afe4b1ee6777108afc37e"
"reference": "a8cc932ccc8307d9268604660cdbae5caeb56286"
},
"require": {
"blade-ui-kit/blade-heroicons": "^2.0",
"filament/forms": "self.version",
"filament/infolists": "self.version",
"filament/notifications": "self.version",
@@ -699,7 +698,6 @@
"illuminate/contracts": "^9.0|^10.0",
"illuminate/database": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0",
"livewire/livewire": "^2.10.7",
"php": "^8.1",
"spatie/laravel-package-tools": "^1.9"
},
@@ -719,7 +717,7 @@
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered modals and slide-overs.",
"description": "Easily add beautiful action modals to any Livewire component.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
@@ -735,7 +733,7 @@
"dist": {
"type": "path",
"url": "../../packages/panels",
"reference": "4f069c4aed389fc3a1e6a3180bb51936dda56718"
"reference": "b14ff856bfec53bb63b4cf5ba6c340b847b9a971"
},
"require": {
"danharrin/livewire-rate-limiting": "^0.3|^1.0",
@@ -756,7 +754,6 @@
"illuminate/session": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0",
"illuminate/view": "^9.0|^10.0",
"livewire/livewire": "^2.10.7",
"php": "^8.1",
"spatie/laravel-package-tools": "^1.9"
},
@@ -770,6 +767,7 @@
},
"autoload": {
"files": [
"src/global_helpers.php",
"src/helpers.php"
],
"psr-4": {
@@ -779,7 +777,7 @@
"license": [
"MIT"
],
"description": "Effortlessly build TALL-stack apps and admin panels.",
"description": "A collection of full-stack components for accelerated Laravel app development.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
@@ -795,10 +793,9 @@
"dist": {
"type": "path",
"url": "../../packages/forms",
"reference": "5128c1af4a75d454779e6213db0365bc75c293f6"
"reference": "e6697370c7e46051022f31866f4d2efc010a4351"
},
"require": {
"blade-ui-kit/blade-heroicons": "^2.0",
"danharrin/date-format-converter": "^0.3",
"filament/actions": "self.version",
"filament/support": "self.version",
@@ -809,7 +806,6 @@
"illuminate/support": "^9.0|^10.0",
"illuminate/validation": "^9.0|^10.0",
"illuminate/view": "^9.0|^10.0",
"livewire/livewire": "^2.10.7",
"php": "^8.1",
"spatie/laravel-package-tools": "^1.9"
},
@@ -832,7 +828,7 @@
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered forms.",
"description": "Easily add beautiful forms to any Livewire component.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
@@ -848,10 +844,9 @@
"dist": {
"type": "path",
"url": "../../packages/infolists",
"reference": "280ef84ee884372573bfcb26685ee759a3015d0b"
"reference": "dd04207623c7aefc3bc9c4023fe42e05ca969b8c"
},
"require": {
"blade-ui-kit/blade-heroicons": "^2.0",
"filament/actions": "self.version",
"filament/support": "self.version",
"illuminate/console": "^9.0|^10.0",
@@ -879,7 +874,7 @@
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered description-lists (infolists).",
"description": "Easily add beautiful read-only infolists to any Livewire component.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
@@ -895,17 +890,15 @@
"dist": {
"type": "path",
"url": "../../packages/notifications",
"reference": "8e3deef589c9800b5862228702bf430ce64078aa"
"reference": "c8649a5f370cf178d05aec6e94885120bdb62cd9"
},
"require": {
"blade-ui-kit/blade-heroicons": "^2.0",
"filament/actions": "self.version",
"filament/support": "self.version",
"illuminate/contracts": "^9.0|^10.0",
"illuminate/filesystem": "^9.0|^10.0",
"illuminate/notifications": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0",
"livewire/livewire": "^2.10.7",
"php": "^8.1",
"spatie/laravel-package-tools": "^1.9"
},
@@ -928,7 +921,7 @@
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered notifications.",
"description": "Easily add beautiful notifications to any Livewire app.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
@@ -944,20 +937,21 @@
"dist": {
"type": "path",
"url": "../../packages/support",
"reference": "2cf5399008d39c42f5eae11b664f3ce8ccde39c4"
"reference": "f8252702d923c6fae2286795f32ae6fde64be288"
},
"require": {
"blade-ui-kit/blade-icons": "^1.4",
"blade-ui-kit/blade-heroicons": "^2.0",
"ext-intl": "*",
"illuminate/contracts": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0",
"illuminate/view": "^9.0|^10.0",
"livewire/livewire": "*",
"php": "^8.1",
"ryangjchandler/blade-capture-directive": "^0.2|^0.3",
"spatie/color": "^1.5",
"spatie/invade": "^1.0",
"spatie/laravel-package-tools": "^1.9",
"tgalopin/html-sanitizer": "^1.5"
"symfony/html-sanitizer": "^6.1"
},
"type": "library",
"extra": {
@@ -978,7 +972,7 @@
"license": [
"MIT"
],
"description": "Associated helper methods and foundation code for Filament packages.",
"description": "Core helper methods and foundation code for all Filament packages.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
@@ -994,10 +988,9 @@
"dist": {
"type": "path",
"url": "../../packages/tables",
"reference": "6eaf70d6227416d1c0f7cd5e656e8b1bc7c539b4"
"reference": "28b2c8b58616aca74bc4d0b3089d73d5ba148d19"
},
"require": {
"blade-ui-kit/blade-heroicons": "^2.0",
"filament/actions": "self.version",
"filament/forms": "self.version",
"filament/support": "self.version",
@@ -1008,7 +1001,6 @@
"illuminate/support": "^9.0|^10.0",
"illuminate/view": "^9.0|^10.0",
"kirschbaum-development/eloquent-power-joins": "^2.6",
"livewire/livewire": "^2.10.7",
"php": "^8.1",
"spatie/laravel-package-tools": "^1.9"
},
@@ -1028,7 +1020,7 @@
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered tables.",
"description": "Easily add beautiful tables to any Livewire component.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
@@ -1044,12 +1036,10 @@
"dist": {
"type": "path",
"url": "../../packages/widgets",
"reference": "6e8cb25fe377cc7c56f672b88d07b58143c5eeb9"
"reference": "b6bfc6390cdf0a8707311edc4504e14c33ff61f8"
},
"require": {
"blade-ui-kit/blade-heroicons": "^2.0",
"filament/support": "self.version",
"livewire/livewire": "^2.10.7",
"php": "^8.1",
"spatie/laravel-package-tools": "^1.9"
},
@@ -1069,7 +1059,7 @@
"license": [
"MIT"
],
"description": "Effortlessly build TALL-powered dashboard widgets.",
"description": "Easily add beautiful dashboard widgets to any Livewire component.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
@@ -1685,16 +1675,16 @@
},
{
"name": "laravel/framework",
"version": "v10.14.1",
"version": "v10.15.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "6f89a2b74b232d8bf2e1d9ed87e311841263dfcb"
"reference": "c7599dc92e04532824bafbd226c2936ce6a905b8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/6f89a2b74b232d8bf2e1d9ed87e311841263dfcb",
"reference": "6f89a2b74b232d8bf2e1d9ed87e311841263dfcb",
"url": "https://api.github.com/repos/laravel/framework/zipball/c7599dc92e04532824bafbd226c2936ce6a905b8",
"reference": "c7599dc92e04532824bafbd226c2936ce6a905b8",
"shasum": ""
},
"require": {
@@ -1881,7 +1871,7 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2023-06-28T14:25:16+00:00"
"time": "2023-07-11T13:43:52+00:00"
},
{
"name": "laravel/sanctum",
@@ -2470,43 +2460,53 @@
"time": "2022-04-17T13:12:02+00:00"
},
{
"name": "league/uri-parser",
"version": "1.4.1",
"name": "league/uri",
"version": "6.8.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/uri-parser.git",
"reference": "671548427e4c932352d9b9279fdfa345bf63fa00"
"url": "https://github.com/thephpleague/uri.git",
"reference": "a700b4656e4c54371b799ac61e300ab25a2d1d39"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/uri-parser/zipball/671548427e4c932352d9b9279fdfa345bf63fa00",
"reference": "671548427e4c932352d9b9279fdfa345bf63fa00",
"url": "https://api.github.com/repos/thephpleague/uri/zipball/a700b4656e4c54371b799ac61e300ab25a2d1d39",
"reference": "a700b4656e4c54371b799ac61e300ab25a2d1d39",
"shasum": ""
},
"require": {
"php": ">=7.0.0"
"ext-json": "*",
"league/uri-interfaces": "^2.3",
"php": "^8.1",
"psr/http-message": "^1.0.1"
},
"conflict": {
"league/uri-schemes": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0",
"phpstan/phpstan": "^0.9.2",
"phpstan/phpstan-phpunit": "^0.9.4",
"phpstan/phpstan-strict-rules": "^0.9.0",
"phpunit/phpunit": "^6.0"
"friendsofphp/php-cs-fixer": "^v3.9.5",
"nyholm/psr7": "^1.5.1",
"php-http/psr7-integration-tests": "^1.1.1",
"phpbench/phpbench": "^1.2.6",
"phpstan/phpstan": "^1.8.5",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.1.1",
"phpstan/phpstan-strict-rules": "^1.4.3",
"phpunit/phpunit": "^9.5.24",
"psr/http-factory": "^1.0.1"
},
"suggest": {
"ext-intl": "Allow parsing RFC3987 compliant hosts",
"league/uri-schemes": "Allow validating and normalizing URI parsing results"
"ext-fileinfo": "Needed to create Data URI from a filepath",
"ext-intl": "Needed to improve host validation",
"league/uri-components": "Needed to easily manipulate URI objects",
"psr/http-factory": "Needed to use the URI factory"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
"dev-master": "6.x-dev"
}
},
"autoload": {
"files": [
"src/functions_include.php"
],
"psr-4": {
"League\\Uri\\": "src"
}
@@ -2522,52 +2522,137 @@
"homepage": "https://nyamsprod.com"
}
],
"description": "userland URI parser RFC 3986 compliant",
"homepage": "https://github.com/thephpleague/uri-parser",
"description": "URI manipulation library",
"homepage": "https://uri.thephpleague.com",
"keywords": [
"data-uri",
"file-uri",
"ftp",
"hostname",
"http",
"https",
"middleware",
"parse_str",
"parse_url",
"parser",
"psr-7",
"query-string",
"querystring",
"rfc3986",
"rfc3987",
"rfc6570",
"uri",
"uri-template",
"url",
"ws"
],
"support": {
"docs": "https://uri.thephpleague.com",
"forum": "https://thephpleague.slack.com",
"issues": "https://github.com/thephpleague/uri/issues",
"source": "https://github.com/thephpleague/uri/tree/6.8.0"
},
"funding": [
{
"url": "https://github.com/sponsors/nyamsprod",
"type": "github"
}
],
"time": "2022-09-13T19:58:47+00:00"
},
{
"name": "league/uri-interfaces",
"version": "2.3.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/uri-interfaces.git",
"reference": "00e7e2943f76d8cb50c7dfdc2f6dee356e15e383"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/00e7e2943f76d8cb50c7dfdc2f6dee356e15e383",
"reference": "00e7e2943f76d8cb50c7dfdc2f6dee356e15e383",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": "^7.2 || ^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.19",
"phpstan/phpstan": "^0.12.90",
"phpstan/phpstan-phpunit": "^0.12.19",
"phpstan/phpstan-strict-rules": "^0.12.9",
"phpunit/phpunit": "^8.5.15 || ^9.5"
},
"suggest": {
"ext-intl": "to use the IDNA feature",
"symfony/intl": "to use the IDNA feature via Symfony Polyfill"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
}
},
"autoload": {
"psr-4": {
"League\\Uri\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ignace Nyamagana Butera",
"email": "nyamsprod@gmail.com",
"homepage": "https://nyamsprod.com"
}
],
"description": "Common interface for URI representation",
"homepage": "http://github.com/thephpleague/uri-interfaces",
"keywords": [
"rfc3986",
"rfc3987",
"uri",
"url"
],
"support": {
"issues": "https://github.com/thephpleague/uri-parser/issues",
"source": "https://github.com/thephpleague/uri-parser/tree/master"
"issues": "https://github.com/thephpleague/uri-interfaces/issues",
"source": "https://github.com/thephpleague/uri-interfaces/tree/2.3.0"
},
"abandoned": true,
"time": "2018-11-22T07:55:51+00:00"
"funding": [
{
"url": "https://github.com/sponsors/nyamsprod",
"type": "github"
}
],
"time": "2021-06-28T04:27:21+00:00"
},
{
"name": "livewire/livewire",
"version": "v2.12.3",
"source": {
"type": "git",
"url": "https://github.com/livewire/livewire.git",
"reference": "019b1e69d8cd8c7e749eba7a38e4fa69ecbc8f74"
},
"version": "2.99.99",
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/livewire/livewire/zipball/019b1e69d8cd8c7e749eba7a38e4fa69ecbc8f74",
"reference": "019b1e69d8cd8c7e749eba7a38e4fa69ecbc8f74",
"shasum": ""
"type": "path",
"url": "../../../../livewire3",
"reference": "a0fde84bb5445b6baa53ab194a4584162b1a7ce8"
},
"require": {
"illuminate/database": "^7.0|^8.0|^9.0|^10.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0",
"illuminate/validation": "^7.0|^8.0|^9.0|^10.0",
"illuminate/database": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0",
"illuminate/validation": "^9.0|^10.0",
"league/mime-type-detection": "^1.9",
"php": "^7.2.5|^8.0",
"php": "^8.1",
"symfony/http-kernel": "^5.0|^6.0"
},
"require-dev": {
"calebporzio/sushi": "^2.1",
"laravel/framework": "^7.0|^8.0|^9.0|^10.0",
"laravel/framework": "^9.0|^10.0",
"mockery/mockery": "^1.3.1",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
"orchestra/testbench-dusk": "^5.2|^6.0|^7.0|^8.0",
"phpunit/phpunit": "^8.4|^9.0",
"orchestra/testbench": "^7.0|^8.0",
"orchestra/testbench-dusk": "^7.0|^8.0",
"phpunit/phpunit": "^9.0",
"psy/psysh": "@stable"
},
"type": "library",
@@ -2577,7 +2662,7 @@
"Livewire\\LivewireServiceProvider"
],
"aliases": {
"Livewire": "Livewire\\Livewire"
"Livewire": "Livewire\\LivewireManager"
}
}
},
@@ -2589,7 +2674,13 @@
"Livewire\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"autoload-dev": {
"psr-4": {
"App\\": "vendor/orchestra/testbench-core/laravel/app",
"Tests\\": "tests/",
"LegacyTests\\": "legacy_tests/"
}
},
"license": [
"MIT"
],
@@ -2600,17 +2691,9 @@
}
],
"description": "A front-end framework for Laravel.",
"support": {
"issues": "https://github.com/livewire/livewire/issues",
"source": "https://github.com/livewire/livewire/tree/v2.12.3"
},
"funding": [
{
"url": "https://github.com/livewire",
"type": "github"
}
],
"time": "2023-03-03T20:12:38+00:00"
"transport-options": {
"relative": true
}
},
{
"name": "masterminds/html5",
@@ -2782,16 +2865,16 @@
},
{
"name": "nesbot/carbon",
"version": "2.67.0",
"version": "2.68.1",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "c1001b3bc75039b07f38a79db5237c4c529e04c8"
"reference": "4f991ed2a403c85efbc4f23eb4030063fdbe01da"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/c1001b3bc75039b07f38a79db5237c4c529e04c8",
"reference": "c1001b3bc75039b07f38a79db5237c4c529e04c8",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4f991ed2a403c85efbc4f23eb4030063fdbe01da",
"reference": "4f991ed2a403c85efbc4f23eb4030063fdbe01da",
"shasum": ""
},
"require": {
@@ -2880,7 +2963,7 @@
"type": "tidelift"
}
],
"time": "2023-05-25T22:09:47+00:00"
"time": "2023-06-20T18:29:04+00:00"
},
{
"name": "nette/schema",
@@ -3460,16 +3543,16 @@
},
{
"name": "psr/http-message",
"version": "2.0",
"version": "1.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71"
"reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71",
"reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"shasum": ""
},
"require": {
@@ -3478,7 +3561,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
"dev-master": "1.1.x-dev"
}
},
"autoload": {
@@ -3493,7 +3576,7 @@
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
@@ -3507,9 +3590,9 @@
"response"
],
"support": {
"source": "https://github.com/php-fig/http-message/tree/2.0"
"source": "https://github.com/php-fig/http-message/tree/1.1"
},
"time": "2023-04-04T09:54:51+00:00"
"time": "2023-04-04T09:50:52+00:00"
},
{
"name": "psr/log",
@@ -3614,16 +3697,16 @@
},
{
"name": "psy/psysh",
"version": "v0.11.18",
"version": "v0.11.19",
"source": {
"type": "git",
"url": "https://github.com/bobthecow/psysh.git",
"reference": "4f00ee9e236fa6a48f4560d1300b9c961a70a7ec"
"reference": "1724ceff278daeeac5a006744633bacbb2dc4706"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/4f00ee9e236fa6a48f4560d1300b9c961a70a7ec",
"reference": "4f00ee9e236fa6a48f4560d1300b9c961a70a7ec",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/1724ceff278daeeac5a006744633bacbb2dc4706",
"reference": "1724ceff278daeeac5a006744633bacbb2dc4706",
"shasum": ""
},
"require": {
@@ -3684,9 +3767,9 @@
],
"support": {
"issues": "https://github.com/bobthecow/psysh/issues",
"source": "https://github.com/bobthecow/psysh/tree/v0.11.18"
"source": "https://github.com/bobthecow/psysh/tree/v0.11.19"
},
"time": "2023-05-23T02:31:11+00:00"
"time": "2023-07-15T19:42:19+00:00"
},
{
"name": "ralouphie/getallheaders",
@@ -4692,6 +4775,75 @@
],
"time": "2023-04-02T01:25:41+00:00"
},
{
"name": "symfony/html-sanitizer",
"version": "v6.3.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/html-sanitizer.git",
"reference": "eae9b0a9ad7a2ed1963f819547d59ff99ad9e0fd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/html-sanitizer/zipball/eae9b0a9ad7a2ed1963f819547d59ff99ad9e0fd",
"reference": "eae9b0a9ad7a2ed1963f819547d59ff99ad9e0fd",
"shasum": ""
},
"require": {
"ext-dom": "*",
"league/uri": "^6.5",
"masterminds/html5": "^2.7.2",
"php": ">=8.1"
},
"type": "library",
"autoload": {
"psr-4": {
"Symfony\\Component\\HtmlSanitizer\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Titouan Galopin",
"email": "galopintitouan@gmail.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.",
"homepage": "https://symfony.com",
"keywords": [
"Purifier",
"html",
"sanitizer"
],
"support": {
"source": "https://github.com/symfony/html-sanitizer/tree/v6.3.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2023-02-14T09:04:20+00:00"
},
{
"name": "symfony/http-foundation",
"version": "v6.3.1",
@@ -6419,55 +6571,6 @@
],
"time": "2023-06-21T12:08:28+00:00"
},
{
"name": "tgalopin/html-sanitizer",
"version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/tgalopin/html-sanitizer.git",
"reference": "5d02dcb6f2ea4f505731eac440798caa1b3b0913"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tgalopin/html-sanitizer/zipball/5d02dcb6f2ea4f505731eac440798caa1b3b0913",
"reference": "5d02dcb6f2ea4f505731eac440798caa1b3b0913",
"shasum": ""
},
"require": {
"ext-dom": "*",
"league/uri-parser": "^1.4.1",
"masterminds/html5": "^2.4",
"php": ">=7.1",
"psr/log": "^1.0|^2.0|^3.0"
},
"require-dev": {
"phpunit/phpunit": "^7.4",
"symfony/var-dumper": "^4.1"
},
"type": "library",
"autoload": {
"psr-4": {
"HtmlSanitizer\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Titouan Galopin",
"email": "galopintitouan@gmail.com"
}
],
"description": "Sanitize untrustworthy HTML user input",
"support": {
"issues": "https://github.com/tgalopin/html-sanitizer/issues",
"source": "https://github.com/tgalopin/html-sanitizer/tree/1.5.0"
},
"abandoned": "symfony/html-sanitizer",
"time": "2021-09-14T08:27:50+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
"version": "2.2.6",
@@ -6809,16 +6912,16 @@
},
{
"name": "filp/whoops",
"version": "2.15.2",
"version": "2.15.3",
"source": {
"type": "git",
"url": "https://github.com/filp/whoops.git",
"reference": "aac9304c5ed61bf7b1b7a6064bf9806ab842ce73"
"reference": "c83e88a30524f9360b11f585f71e6b17313b7187"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filp/whoops/zipball/aac9304c5ed61bf7b1b7a6064bf9806ab842ce73",
"reference": "aac9304c5ed61bf7b1b7a6064bf9806ab842ce73",
"url": "https://api.github.com/repos/filp/whoops/zipball/c83e88a30524f9360b11f585f71e6b17313b7187",
"reference": "c83e88a30524f9360b11f585f71e6b17313b7187",
"shasum": ""
},
"require": {
@@ -6868,7 +6971,7 @@
],
"support": {
"issues": "https://github.com/filp/whoops/issues",
"source": "https://github.com/filp/whoops/tree/2.15.2"
"source": "https://github.com/filp/whoops/tree/2.15.3"
},
"funding": [
{
@@ -6876,7 +6979,7 @@
"type": "github"
}
],
"time": "2023-04-12T12:00:00+00:00"
"time": "2023-07-13T12:00:00+00:00"
},
{
"name": "hamcrest/hamcrest-php",
@@ -6931,16 +7034,16 @@
},
{
"name": "laravel/pint",
"version": "v1.10.3",
"version": "v1.10.5",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "c472786bca01e4812a9bb7933b23edfc5b6877b7"
"reference": "a458fb057bfa2f5a09888a8aa349610be807b0c3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/c472786bca01e4812a9bb7933b23edfc5b6877b7",
"reference": "c472786bca01e4812a9bb7933b23edfc5b6877b7",
"url": "https://api.github.com/repos/laravel/pint/zipball/a458fb057bfa2f5a09888a8aa349610be807b0c3",
"reference": "a458fb057bfa2f5a09888a8aa349610be807b0c3",
"shasum": ""
},
"require": {
@@ -6951,9 +7054,9 @@
"php": "^8.1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.18.0",
"friendsofphp/php-cs-fixer": "^3.21.1",
"illuminate/view": "^10.5.1",
"laravel-zero/framework": "^10.0.2",
"laravel-zero/framework": "^10.1.1",
"mockery/mockery": "^1.5.1",
"nunomaduro/larastan": "^2.5.1",
"nunomaduro/termwind": "^1.15.1",
@@ -6993,20 +7096,20 @@
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2023-06-20T15:55:03+00:00"
"time": "2023-07-14T10:26:01+00:00"
},
{
"name": "laravel/sail",
"version": "v1.23.0",
"version": "v1.23.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/sail.git",
"reference": "a2e046f748e87d3ef8b2b381e0e5c5a11f34e46b"
"reference": "62582606f80466aa81fba40b193b289106902853"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/sail/zipball/a2e046f748e87d3ef8b2b381e0e5c5a11f34e46b",
"reference": "a2e046f748e87d3ef8b2b381e0e5c5a11f34e46b",
"url": "https://api.github.com/repos/laravel/sail/zipball/62582606f80466aa81fba40b193b289106902853",
"reference": "62582606f80466aa81fba40b193b289106902853",
"shasum": ""
},
"require": {
@@ -7058,7 +7161,7 @@
"issues": "https://github.com/laravel/sail/issues",
"source": "https://github.com/laravel/sail"
},
"time": "2023-06-16T21:20:12+00:00"
"time": "2023-06-28T18:31:28+00:00"
},
{
"name": "mockery/mockery",
@@ -7726,16 +7829,16 @@
},
{
"name": "phpunit/phpunit",
"version": "10.2.3",
"version": "10.2.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "35c8cac1734ede2ae354a6644f7088356ff5b08e"
"reference": "1c17815c129f133f3019cc18e8d0c8622e6d9bcd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/35c8cac1734ede2ae354a6644f7088356ff5b08e",
"reference": "35c8cac1734ede2ae354a6644f7088356ff5b08e",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1c17815c129f133f3019cc18e8d0c8622e6d9bcd",
"reference": "1c17815c129f133f3019cc18e8d0c8622e6d9bcd",
"shasum": ""
},
"require": {
@@ -7807,7 +7910,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.2.3"
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.2.6"
},
"funding": [
{
@@ -7823,7 +7926,7 @@
"type": "tidelift"
}
],
"time": "2023-06-30T06:17:38+00:00"
"time": "2023-07-17T12:08:28+00:00"
},
{
"name": "sebastian/cli-parser",
@@ -8799,16 +8902,16 @@
},
{
"name": "spatie/flare-client-php",
"version": "1.4.0",
"version": "1.4.1",
"source": {
"type": "git",
"url": "https://github.com/spatie/flare-client-php.git",
"reference": "82138174d5fe2829a7f085a6bdb2a06f6def9f7a"
"reference": "943894c6a6b00501365ac0b91ae0dce56f2226fa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/flare-client-php/zipball/82138174d5fe2829a7f085a6bdb2a06f6def9f7a",
"reference": "82138174d5fe2829a7f085a6bdb2a06f6def9f7a",
"url": "https://api.github.com/repos/spatie/flare-client-php/zipball/943894c6a6b00501365ac0b91ae0dce56f2226fa",
"reference": "943894c6a6b00501365ac0b91ae0dce56f2226fa",
"shasum": ""
},
"require": {
@@ -8857,7 +8960,7 @@
],
"support": {
"issues": "https://github.com/spatie/flare-client-php/issues",
"source": "https://github.com/spatie/flare-client-php/tree/1.4.0"
"source": "https://github.com/spatie/flare-client-php/tree/1.4.1"
},
"funding": [
{
@@ -8865,7 +8968,7 @@
"type": "github"
}
],
"time": "2023-06-28T11:08:09+00:00"
"time": "2023-07-06T09:29:49+00:00"
},
{
"name": "spatie/ignition",
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
function i({state:t}){return{newTag:"",state:t,createTag:function(){if(this.newTag=this.newTag.trim(),this.newTag!==""){if(this.state.includes(this.newTag)){this.newTag="";return}this.state.push(this.newTag),this.newTag=""}},deleteTag:function(e){this.state=this.state.filter(n=>n!==e)}}}export{i as default};
function i({state:a,splitKeys:n}){return{newTag:"",state:a,createTag:function(){if(this.newTag=this.newTag.trim(),this.newTag!==""){if(this.state.includes(this.newTag)){this.newTag="";return}this.state.push(this.newTag),this.newTag=""}},deleteTag:function(t){this.state=this.state.filter(e=>e!==t)},input:{["x-on:blur"]:"createTag()",["x-model"]:"newTag",["x-on:keydown"](t){["Enter",...n].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.createTag())},["x-on:paste"](){$nextTick(()=>{let t=n.map(e=>e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")).join("|");this.newTag.split(new RegExp(t,"g")).forEach(e=>{this.newTag=e,this.createTag()})})}}}}export{i as default};
@@ -1 +1 @@
function t(){return{init:function(){this.$nextTick(()=>{this.render()})},render:function(){this.$el.scrollHeight>0&&(this.$el.style.height="150px",this.$el.style.height=this.$el.scrollHeight+2+"px")}}}export{t as default};
function t({initialHeight:e}){return{render:function(){this.$el.scrollHeight>0&&(this.$el.style.height=e+"rem",this.$el.style.height=this.$el.scrollHeight+"px")}}}export{t as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
(()=>{function x(n){n.directive("collapse",e),e.inline=(t,{modifiers:i})=>{i.includes("min")&&(t._x_doShow=()=>{},t._x_doHide=()=>{})};function e(t,{modifiers:i}){let r=l(i,"duration",250)/1e3,u=l(i,"min",0),h=!i.includes("min");t._x_isShown||(t.style.height=`${u}px`),!t._x_isShown&&h&&(t.hidden=!0),t._x_isShown||(t.style.overflow="hidden");let c=(s,d)=>{let o=n.setStyles(s,d);return d.height?()=>{}:o},f={transitionProperty:"height",transitionDuration:`${r}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};t._x_transition={in(s=()=>{},d=()=>{}){h&&(t.hidden=!1),h&&(t.style.display=null);let o=t.getBoundingClientRect().height;t.style.height="auto";let a=t.getBoundingClientRect().height;o===a&&(o=u),n.transition(t,n.setStyles,{during:f,start:{height:o+"px"},end:{height:a+"px"}},()=>t._x_isShown=!0,()=>{t.getBoundingClientRect().height==a&&(t.style.overflow=null)})},out(s=()=>{},d=()=>{}){let o=t.getBoundingClientRect().height;n.transition(t,c,{during:f,start:{height:o+"px"},end:{height:u+"px"}},()=>t.style.overflow="hidden",()=>{t._x_isShown=!1,t.style.height==`${u}px`&&h&&(t.style.display="none",t.hidden=!0)})}}}}function l(n,e,t){if(n.indexOf(e)===-1)return t;let i=n[n.indexOf(e)+1];if(!i)return t;if(e==="duration"){let r=i.match(/([0-9]+)ms/);if(r)return r[1]}if(e==="min"){let r=i.match(/([0-9]+)px/);if(r)return r[1]}return i}var g=x;document.addEventListener("alpine:init",()=>{window.Alpine.plugin(g)});})();
(()=>{})();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-4
View File
@@ -1,7 +1,3 @@
@import 'tippy.js/dist/tippy.css';
@import 'tippy.js/themes/light.css';
@import '../../vendor/filament/forms/dist/index.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

+9
View File
@@ -579,6 +579,15 @@ export default {
deviceScaleFactor: 3,
},
},
'forms/fields/checkbox-list/option-descriptions': {
url: 'forms/fields',
selector: '#checkboxListOptionDescriptions',
viewport: {
width: 1920,
height: 640,
deviceScaleFactor: 3,
},
},
'forms/fields/checkbox-list/columns': {
url: 'forms/fields',
selector: '#checkboxListColumns',
@@ -36,6 +36,32 @@ class App extends Model
}
```
## Setting option descriptions
You can optionally provide descriptions to each option using the `descriptions()` method:
```php
use Filament\Forms\Components\CheckboxList;
CheckboxList::make('technologies')
->options([
'tailwind' => 'Tailwind CSS',
'alpine' => 'Alpine.js',
'laravel' => 'Laravel',
'livewire' => 'Laravel Livewire',
])
->descriptions([
'tailwind' => 'A utility-first CSS framework for rapidly building modern websites without ever leaving your HTML.',
'alpine' => 'A rugged, minimal tool for composing behavior directly in your markup.',
'laravel' => 'A web application framework with expressive, elegant syntax.',
'livewire' => 'A full-stack framework for Laravel building dynamic interfaces simple, without leaving the comfort of Laravel.',
])
```
<AutoScreenshot name="forms/fields/checkbox-list/option-descriptions" alt="Checkbox list with option descriptions" version="3.x" />
Be sure to use the same `key` in the descriptions array as the `key` in the options array so the right description matches the right option.
## Splitting options into columns
You may split options into columns by using the `columns()` method: