mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
Merge branch '3.x' of https://github.com/filamentphp/filament into 3.x
This commit is contained in:
@@ -2,17 +2,12 @@
|
||||
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\Concerns\InteractsWithActions;
|
||||
use Filament\Actions\Contracts\HasActions;
|
||||
use Filament\Forms\Components\Checkbox;
|
||||
use Filament\Forms\Components\Grid;
|
||||
use Filament\Forms\Components\Group;
|
||||
use Filament\Forms\Components\RichEditor;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Forms\Components\Wizard\Step;
|
||||
use Filament\Forms\Concerns\InteractsWithForms;
|
||||
use Filament\Forms\Contracts\HasForms;
|
||||
use Filament\Forms\Form;
|
||||
@@ -226,7 +221,7 @@ class Forms extends Component implements HasForms
|
||||
->label('Domain')
|
||||
->default('filament')
|
||||
->options([
|
||||
'filament' => 'filamentphp'
|
||||
'filament' => 'filamentphp',
|
||||
])
|
||||
->prefix('https://')
|
||||
->suffix('.com'),
|
||||
@@ -241,7 +236,7 @@ class Forms extends Component implements HasForms
|
||||
->label('Domain')
|
||||
->default('filament')
|
||||
->options([
|
||||
'filament' => 'filamentphp'
|
||||
'filament' => 'filamentphp',
|
||||
])
|
||||
->suffixIcon('heroicon-m-globe-alt'),
|
||||
]),
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
'type' => blank($mask) ? $getType() : 'text',
|
||||
], escape: false)
|
||||
->class([
|
||||
'filament-forms-input block w-full shadow-sm outline-none transition duration-75 focus:relative focus:z-[1] focus:ring-1 focus:ring-inset disabled:opacity-70 dark:bg-gray-700 dark:text-white sm:text-sm placeholder:text-gray-500',
|
||||
'filament-forms-input block w-full shadow-sm outline-none transition duration-75 placeholder:text-gray-500 focus:relative focus:z-[1] focus:ring-1 focus:ring-inset disabled:opacity-70 dark:bg-gray-700 dark:text-white sm:text-sm',
|
||||
'rounded-s-lg' => ! ($prefixLabel || $prefixIcon),
|
||||
'rounded-e-lg' => ! ($suffixLabel || $suffixIcon),
|
||||
])
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
->merge($getExtraAttributes(), escape: false)
|
||||
->merge($getExtraInputAttributes(), escape: false)
|
||||
->class([
|
||||
'filament-forms-textarea-component filament-forms-input block w-full rounded-lg shadow-sm outline-none transition duration-75 focus:ring-1 focus:ring-inset disabled:opacity-70 dark:bg-gray-700 dark:text-white sm:text-sm placeholder:text-gray-500',
|
||||
'filament-forms-textarea-component filament-forms-input block w-full rounded-lg shadow-sm outline-none transition duration-75 placeholder:text-gray-500 focus:ring-1 focus:ring-inset disabled:opacity-70 dark:bg-gray-700 dark:text-white sm:text-sm',
|
||||
'border-gray-300 focus:border-primary-500 focus:ring-primary-500 dark:border-gray-600 dark:focus:border-primary-500' => ! $errors->has($statePath),
|
||||
'border-danger-600 ring-danger-600 dark:border-danger-400 dark:ring-danger-400' => $errors->has($statePath),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user