Skip to content

Commit e3f9c57

Browse files
Baspagithub-actions[bot]
authored andcommitted
Fix styling
1 parent 7356189 commit e3f9c57

File tree

12 files changed

+17
-29
lines changed

12 files changed

+17
-29
lines changed

src/Fields/Checkbox.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Backstage\Fields\Models\Field;
77
use Filament\Forms;
88
use Filament\Forms\Components\Checkbox as Input;
9-
use Backstage\Fields\Base;
109

1110
class Checkbox extends Base implements FieldContract
1211
{

src/Fields/CheckboxList.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Backstage\Fields\Models\Field;
88
use Filament\Forms;
99
use Filament\Forms\Components\CheckboxList as Input;
10-
use Backstage\Fields\Base;
1110

1211
class CheckboxList extends Base implements FieldContract
1312
{
@@ -95,16 +94,16 @@ public function getForm(): array
9594
//
9695
Forms\Components\TextInput::make('config.noSearchResultsMessage')
9796
->label(__('No search results message'))
98-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
97+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
9998
Forms\Components\TextInput::make('config.searchPrompt')
10099
->label(__('Search prompt'))
101-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
100+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
102101
Forms\Components\TextInput::make('config.searchDebounce')
103102
->numeric()
104103
->minValue(0)
105104
->step(100)
106105
->label(__('Search debounce'))
107-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
106+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
108107
]),
109108
]),
110109
])->columnSpanFull(),

src/Fields/Color.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Backstage\Fields\Models\Field;
88
use Filament\Forms;
99
use Filament\Forms\Components\ColorPicker as Input;
10-
use Backstage\Fields\Base;
1110

1211
/**
1312
* For validation regex patterns, check the Filament documentation.

src/Fields/DateTime.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Baspa\Timezones\Facades\Timezones;
99
use Filament\Forms;
1010
use Filament\Forms\Components\DateTimePicker as Input;
11-
use Backstage\Fields\Base;
1211

1312
class DateTime extends Base implements FieldContract
1413
{

src/Fields/KeyValue.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Backstage\Fields\Models\Field;
77
use Filament\Forms;
88
use Filament\Forms\Components\KeyValue as Input;
9-
use Backstage\Fields\Base;
109

1110
class KeyValue extends Base implements FieldContract
1211
{

src/Fields/Radio.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Backstage\Fields\Models\Field;
88
use Filament\Forms;
99
use Filament\Forms\Components\Radio as Input;
10-
use Backstage\Fields\Base;
1110

1211
class Radio extends Base implements FieldContract
1312
{

src/Fields/Repeater.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use Illuminate\Support\Collection;
2222
use Illuminate\Support\Str;
2323
use Saade\FilamentAdjacencyList\Forms\Components\AdjacencyList;
24-
use Backstage\Fields\Base;
2524

2625
class Repeater extends Base implements FieldContract
2726
{
@@ -112,15 +111,15 @@ public function getForm(): array
112111
Forms\Components\Toggle::make('config.reorderableWithButtons')
113112
->label(__('Reorderable with buttons'))
114113
->dehydrated()
115-
->disabled(fn(Forms\Get $get): bool => $get('config.reorderable') === false)
114+
->disabled(fn (Forms\Get $get): bool => $get('config.reorderable') === false)
116115
->inline(false),
117116
]),
118117
Forms\Components\Toggle::make('config.collapsible')
119118
->label(__('Collapsible'))
120119
->inline(false),
121120
Forms\Components\Toggle::make('config.collapsed')
122121
->label(__('Collapsed'))
123-
->visible(fn(Forms\Get $get): bool => $get('config.collapsible') === true)
122+
->visible(fn (Forms\Get $get): bool => $get('config.collapsible') === true)
124123
->inline(false),
125124
Forms\Components\Toggle::make('config.cloneable')
126125
->label(__('Cloneable'))
@@ -139,9 +138,9 @@ public function getForm(): array
139138
->live(debounce: 250)
140139
->labelKey('name')
141140
->maxDepth(0)
142-
->addable(fn(string $operation) => $operation !== 'create')
143-
->disabled(fn(string $operation) => $operation === 'create')
144-
->hint(fn(string $operation) => $operation === 'create' ? __('Fields can be added once the field is created.') : '')
141+
->addable(fn (string $operation) => $operation !== 'create')
142+
->disabled(fn (string $operation) => $operation === 'create')
143+
->hint(fn (string $operation) => $operation === 'create' ? __('Fields can be added once the field is created.') : '')
145144
->hintColor('primary')
146145
->form([
147146
Section::make('Field')
@@ -156,7 +155,7 @@ public function getForm(): array
156155
->required()
157156
->placeholder(__('Name'))
158157
->live(debounce: 250)
159-
->afterStateUpdated(fn(Set $set, ?string $state) => $set('slug', Str::slug($state))),
158+
->afterStateUpdated(fn (Set $set, ?string $state) => $set('slug', Str::slug($state))),
160159
TextInput::make('slug')
161160
->readonly(),
162161
Select::make('field_type')
@@ -186,10 +185,10 @@ function () {
186185
])->columnSpanFull(),
187186
Section::make('Configuration')
188187
->columns(3)
189-
->schema(fn(Get $get) => $this->getFieldTypeFormSchema(
188+
->schema(fn (Get $get) => $this->getFieldTypeFormSchema(
190189
$get('field_type')
191190
))
192-
->visible(fn(Get $get) => filled($get('field_type'))),
191+
->visible(fn (Get $get) => filled($get('field_type'))),
193192
]),
194193
])->columns(2),
195194
])->columnSpanFull(),

src/Fields/RichEditor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Backstage\Fields\Models\Field;
88
use Filament\Forms;
99
use Filament\Forms\Components\RichEditor as Input;
10-
use Backstage\Fields\Base;
1110

1211
class RichEditor extends Base implements FieldContract
1312
{

src/Fields/Tags.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Backstage\Fields\Models\Field;
77
use Filament\Forms;
88
use Filament\Forms\Components\TagsInput as Input;
9-
use Backstage\Fields\Base;
109

1110
class Tags extends Base implements FieldContract
1211
{

src/Fields/Text.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
namespace Backstage\Fields;
44

5-
use Filament\Forms;
6-
use Backstage\Fields\Base;
7-
use Backstage\Fields\Models\Field;
85
use Backstage\Fields\Concerns\HasAffixes;
96
use Backstage\Fields\Contracts\FieldContract;
7+
use Backstage\Fields\Models\Field;
8+
use Filament\Forms;
109
use Filament\Forms\Components\TextInput as Input;
1110

1211
class Text extends Base implements FieldContract
@@ -137,7 +136,7 @@ public function getForm(): array
137136
->numeric()
138137
->minValue(0)
139138
->label(__('Step'))
140-
->visible(fn(Forms\Get $get): bool => $get('config.type') === 'numeric'),
139+
->visible(fn (Forms\Get $get): bool => $get('config.type') === 'numeric'),
141140
Forms\Components\Select::make('config.inputMode')
142141
->label(__('Input mode'))
143142
->options([
@@ -150,13 +149,13 @@ public function getForm(): array
150149
'email' => __('Email'),
151150
'url' => __('URL'),
152151
])
153-
->visible(fn(Forms\Get $get): bool => $get('config.type') === 'numeric'),
152+
->visible(fn (Forms\Get $get): bool => $get('config.type') === 'numeric'),
154153
Forms\Components\Toggle::make('config.revealable')
155154
->label(__('Revealable'))
156-
->visible(fn(Forms\Get $get): bool => $get('config.type') === 'password'),
155+
->visible(fn (Forms\Get $get): bool => $get('config.type') === 'password'),
157156
Forms\Components\TextInput::make('config.telRegex')
158157
->label(__('Telephone regex'))
159-
->visible(fn(Forms\Get $get): bool => $get('config.type') === 'tel'),
158+
->visible(fn (Forms\Get $get): bool => $get('config.type') === 'tel'),
160159
]),
161160
]),
162161
])->columnSpanFull(),

0 commit comments

Comments
 (0)