Replace deprecated 1:1 classes

This commit is contained in:
Dan Harrin
2024-03-24 08:33:29 +00:00
parent 8163e5fcfa
commit 56cb9dd526
33 changed files with 32 additions and 369 deletions
-12
View File
@@ -1,12 +0,0 @@
<?php
namespace Filament\Actions\Exceptions;
use Filament\Support\Exceptions\Halt;
/**
* @deprecated Throw `Halt` instead.
*/
class Hold extends Halt
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Actions\Modal\Actions;
use Filament\Actions\StaticAction;
/**
* @deprecated Use `\Filament\Actions\StaticAction` instead.
*/
class Action extends StaticAction
{
}
@@ -1,10 +0,0 @@
<?php
namespace Filament\Forms\Components;
/**
* @deprecated Use `CheckboxList` with the `relationship()` method instead.
*/
class BelongsToManyCheckboxList extends CheckboxList
{
}
@@ -1,10 +0,0 @@
<?php
namespace Filament\Forms\Components;
/**
* @deprecated Use `MultiSelect` with the `relationship()` method instead.
*/
class BelongsToManyMultiSelect extends MultiSelect
{
}
@@ -1,10 +0,0 @@
<?php
namespace Filament\Forms\Components;
/**
* @deprecated Use `Select` with the `relationship()` method instead.
*/
class BelongsToSelect extends Select
{
}
-10
View File
@@ -1,10 +0,0 @@
<?php
namespace Filament\Forms\Components;
/**
* @deprecated Use `Section` with an empty heading instead.
*/
class Card extends Section
{
}
@@ -1,14 +0,0 @@
<?php
namespace Filament\Forms\Components\Concerns;
use Filament\Support\Concerns\HasExtraAlpineAttributes as BaseTrait;
/**
* @deprecated Use `\Filament\Support\Concerns\HasExtraAlpineAttributes` instead.
* @see BaseTrait
*/
trait HasExtraAlpineAttributes
{
use BaseTrait;
}
@@ -1,14 +0,0 @@
<?php
namespace Filament\Forms\Components\Concerns;
use Filament\Support\Concerns\HasExtraAttributes as BaseTrait;
/**
* @deprecated Use `\Filament\Support\Concerns\HasExtraAttributes` instead.
* @see BaseTrait
*/
trait HasExtraAttributes
{
use BaseTrait;
}
@@ -1,10 +0,0 @@
<?php
namespace Filament\Forms\Components;
/**
* @deprecated Use `Repeater` with the `relationship()` method instead.
*/
class HasManyRepeater extends RelationshipRepeater
{
}
@@ -1,10 +0,0 @@
<?php
namespace Filament\Forms\Components;
/**
* @deprecated Use `Repeater` with the `relationship()` method instead.
*/
class MorphManyRepeater extends RelationshipRepeater
{
}
@@ -1,10 +0,0 @@
<?php
namespace Filament\Infolists\Components;
/**
* @deprecated Use `Section` with an empty heading instead.
*/
class Card extends Section
{
}
@@ -1,10 +0,0 @@
<?php
namespace Filament\Http\Livewire\Auth;
/**
* @deprecated Extend `\Filament\Pages\Auth\Login` instead.
*/
class Login extends \Filament\Pages\Auth\Login
{
}
@@ -1,10 +0,0 @@
<?php
namespace Filament\Navigation;
/**
* @deprecated Use `MenuItem` instead.
*/
class UserMenuItem extends MenuItem
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\Action as BaseAction;
/**
* @deprecated Use `\Filament\Actions\Action` instead.
*/
class Action extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\ActionGroup as BaseActionGroup;
/**
* @deprecated Use `\Filament\Actions\ActionGroup` instead.
*/
class ActionGroup extends BaseActionGroup
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\Action as BaseAction;
/**
* @deprecated Use `\Filament\Actions\Action` instead.
*/
class ButtonAction extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\CreateAction as BaseAction;
/**
* @deprecated Use `\Filament\Actions\CreateAction` instead.
*/
class CreateAction extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\DeleteAction as BaseAction;
/**
* @deprecated Use `\Filament\Actions\DeleteAction` instead.
*/
class DeleteAction extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\EditAction as BaseAction;
/**
* @deprecated Use `\Filament\Actions\EditAction` instead.
*/
class EditAction extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\ForceDeleteAction as BaseAction;
/**
* @deprecated Use `\Filament\Actions\ForceDeleteAction` instead.
*/
class ForceDeleteAction extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions\Modal\Actions;
use Filament\Actions\StaticAction;
/**
* @deprecated Use `\Filament\Actions\StaticAction` instead.
*/
class Action extends StaticAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions\Modal\Actions;
use Filament\Actions\StaticAction;
/**
* @deprecated Use `\Filament\Actions\StaticAction` instead.
*/
class ButtonAction extends StaticAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\ReplicateAction as BaseAction;
/**
* @deprecated Use `\Filament\Actions\ReplicateAction` instead.
*/
class ReplicateAction extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\RestoreAction as BaseAction;
/**
* @deprecated Use `\Filament\Actions\RestoreAction` instead.
*/
class RestoreAction extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\SelectAction as BaseAction;
/**
* @deprecated Use `\Filament\Actions\SelectAction` instead.
*/
class SelectAction extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Pages\Actions;
use Filament\Actions\ViewAction as BaseAction;
/**
* @deprecated Use `\Filament\Actions\ViewAction` instead.
*/
class ViewAction extends BaseAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Resources\Pages\ListRecords;
use Filament\Resources\Components\Tab as BaseTab;
/**
* @deprecated Use `\Filament\Resources\Components\Tab` instead.
*/
class Tab extends BaseTab
{
}
@@ -1,11 +0,0 @@
<?php
namespace Filament\Tables\Actions;
/**
* @deprecated Use `\Filament\Tables\Actions\Action` instead.
* @see Action
*/
class LinkAction extends Action
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Tables\Actions\Modal\Actions;
use Filament\Actions\StaticAction;
/**
* @deprecated Use `\Filament\Actions\StaticAction` instead.
*/
class Action extends StaticAction
{
}
@@ -1,12 +0,0 @@
<?php
namespace Filament\Tables\Actions\Modal\Actions;
use Filament\Actions\StaticAction;
/**
* @deprecated Use `\Filament\Actions\StaticAction` instead.
*/
class ButtonAction extends StaticAction
{
}
@@ -1,14 +0,0 @@
<?php
namespace Filament\Tables\Columns\Concerns;
use Filament\Support\Concerns\HasExtraAttributes as BaseTrait;
/**
* @deprecated Use `\Filament\Support\Concerns\HasExtraAttributes` instead.
* @see Action
*/
trait HasExtraAttributes
{
use BaseTrait;
}
+32
View File
@@ -20,6 +20,38 @@ return static function (RectorConfig $rectorConfig): void {
'Filament\\Forms\\Commands\\Aliases\\MakeLayoutComponentCommand' => 'Filament\\Commands\\Aliases\\MakeLayoutComponentCommand',
'Filament\\Forms\\Commands\\MakeLayoutComponentCommand' => 'Filament\\Commands\\MakeLayoutComponentCommand',
'Filament\\Forms\\Testing\\TestsComponentActions' => 'Filament\\Testing\\TestsComponentActions',
'Filament\\Pages\\Actions\\Action' => 'Filament\\Actions\\Action',
'Filament\\Forms\\Components\\BelongsToManyCheckboxList' => 'Filament\\Forms\\Components\\CheckboxList',
'Filament\\Forms\\Components\\BelongsToManyMultiSelect' => 'Filament\\Forms\\Components\\MultiSelect',
'Filament\\Forms\\Components\\BelongsToSelect' => 'Filament\\Forms\\Components\\Select',
'Filament\\Forms\\Components\\Card' => 'Filament\\Components\\Section',
'Filament\\Forms\\Components\\HasManyRepeater' => 'Filament\\Forms\\Components\\RelationshipRepeater',
'Filament\\Forms\\Components\\MorphManyRepeater' => 'Filament\\Forms\\Components\\RelationshipRepeater',
'Filament\\Actions\\Exceptions\\Hold' => 'Filament\\Support\\Exceptions\\Halt',
'Filament\\Actions\\Modal\\Actions' => 'Filament\\Actions\\StaticAction',
'Filament\\Forms\\Components\\Concerns\\HasExtraAlpineAttributes' => 'Filament\\Support\\Concerns\\HasExtraAlpineAttributes',
'Filament\\Forms\\Components\\Concerns\\HasExtraAttributes' => 'Filament\\Support\\Concerns\\HasExtraAttributes',
'Filament\\Infolists\\Components\\Card' => 'Filament\\Components\\Section',
'Filament\\Http\\Livewire\\Auth\\Login' => 'Filament\\Pages\\Auth\\Login',
'Filament\\\Navigation\\UserMenuItem' => 'Filament\\Navigation\\MenuItem',
'Filament\\Pages\\Actions\\Modal\\Actions\\Action' => 'Filament\\Actions\\StaticAction',
'Filament\\Pages\\Actions\\Modal\\Actions\\ButtonAction' => 'Filament\\Actions\\StaticAction',
'Filament\\Pages\\Actions\\ActionGroup' => 'Filament\\Actions\\ActionGroup',
'Filament\\Pages\\Actions\\ButtonAction' => 'Filament\\Actions\\Action',
'Filament\\Pages\\Actions\\CreateAction' => 'Filament\\Actions\\CreateAction',
'Filament\\Pages\\Actions\\DeleteAction' => 'Filament\\Actions\\DeleteAction',
'Filament\\Pages\\Actions\\EditAction' => 'Filament\\Actions\\EditAction',
'Filament\\Pages\\Actions\\ForceDeleteAction' => 'Filament\\Actions\\ForceDeleteAction',
'Filament\\Pages\\Actions\\ReplicateAction' => 'Filament\\Actions\\ReplicateAction',
'Filament\\Pages\\Actions\\RestoreAction' => 'Filament\\Actions\\RestoreAction',
'Filament\\Pages\\Actions\\SelectAction' => 'Filament\\Actions\\SelectAction',
'Filament\\Pages\\Actions\\ViewAction' => 'Filament\\Actions\\ViewAction',
'Filament\\\Resources\\Pages\\ListRecords\\Tab' => 'Filament\\Resources\\Components\\Tab',
'Filament\\Tables\\Actions\\Modal\\Actions\\Action' => 'Filament\\Actions\\StaticAction',
'Filament\\Tables\\Actions\\Modal\\Actions\\ButtonAction' => 'Filament\\Actions\\StaticAction',
'Filament\\Tables\\Actions\\LinkAction' => 'Filament\\Actions\\Action',
'Filament\\Tables\\Columns\\Concerns\\HasExtraAttributes' => 'Filament\\Support\\Concerns\\HasExtraAttributes',
'Filament\\Widgets\\StatsOverviewWidget\\Card' => 'Filament\\Widgets\\StatsOverviewWidget\\Stat',
],
);
@@ -1,10 +0,0 @@
<?php
namespace Filament\Widgets\StatsOverviewWidget;
/**
* @deprecated Use `Stat` instead.
*/
class Card extends Stat
{
}