Skip to content

Commit

Permalink
Move schema namespace and generate schema layout components
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Nov 26, 2024
1 parent a394e9e commit aa72500
Show file tree
Hide file tree
Showing 437 changed files with 1,579 additions and 1,429 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/monorepo-split.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- infolists
- notifications
- panels
- schema
- schemas
- spark-billing-provider
- spatie-laravel-google-fonts-plugin
- spatie-laravel-media-library-plugin
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Filament\Forms\FormsServiceProvider;
use Filament\Infolists\InfolistsServiceProvider;
use Filament\Notifications\NotificationsServiceProvider;
use Filament\Schema\SchemaServiceProvider;
use Filament\Schemas\SchemaServiceProvider;
use Filament\SpatieLaravelTranslatablePluginServiceProvider;
use Filament\Support\SupportServiceProvider;
use Filament\Tables\TablesServiceProvider;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"Filament\\FontProviders\\": "packages/spatie-laravel-google-fonts-plugin/src",
"Filament\\Infolists\\": "packages/infolists/src",
"Filament\\Notifications\\": "packages/notifications/src",
"Filament\\Schema\\": "packages/schema/src",
"Filament\\Schemas\\": "packages/schemas/src",
"Filament\\Support\\": "packages/support/src",
"Filament\\Tables\\": "packages/tables/src",
"Filament\\Tests\\": "tests/src",
Expand Down
571 changes: 247 additions & 324 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs-assets/app/app/Livewire/ActionsDemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Filament\Forms\Components\TextInput;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
use Filament\Schema\Components\Wizard\Step;
use Filament\Schemas\Components\Wizard\Step;
use Filament\Support\Enums\ActionSize;
use Filament\Support\Enums\IconPosition;
use Livewire\Component;
Expand Down
4 changes: 2 additions & 2 deletions docs-assets/app/app/Livewire/Forms/FieldsDemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
use Filament\Forms\Components\ToggleButtons;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
use Filament\Schema\Components\Group;
use Filament\Schema\Schema;
use Filament\Schemas\Components\Group;
use Filament\Schemas\Schema;
use Illuminate\Support\HtmlString;
use Livewire\Component;

Expand Down
6 changes: 3 additions & 3 deletions docs-assets/app/app/Livewire/Forms/GettingStartedDemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use Filament\Forms\Components\TextInput;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
use Filament\Schema\Components\Group;
use Filament\Schema\Components\Section;
use Filament\Schema\Schema;
use Filament\Schemas\Components\Group;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
use Livewire\Component;

class GettingStartedDemo extends Component implements HasForms
Expand Down
4 changes: 2 additions & 2 deletions docs-assets/app/app/Livewire/Infolists/EntriesDemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
use Filament\Infolists\Components\TextEntry;
use Filament\Infolists\Concerns\InteractsWithInfolists;
use Filament\Infolists\Contracts\HasInfolists;
use Filament\Schema\Components\Group;
use Filament\Schema\Schema;
use Filament\Schemas\Components\Group;
use Filament\Schemas\Schema;
use Filament\Support\Enums\FontFamily;
use Filament\Support\Enums\FontWeight;
use Filament\Support\Enums\IconPosition;
Expand Down
20 changes: 10 additions & 10 deletions docs-assets/app/app/Livewire/Schema/LayoutDemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
use Filament\Forms\Components\Toggle;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;
use Filament\Schema\Components\Actions;
use Filament\Schema\Components\Fieldset;
use Filament\Schema\Components\Grid;
use Filament\Schema\Components\Group;
use Filament\Schema\Components\Section;
use Filament\Schema\Components\Split;
use Filament\Schema\Components\Tabs;
use Filament\Schema\Components\Tabs\Tab;
use Filament\Schema\Components\Wizard;
use Filament\Schema\Schema;
use Filament\Schemas\Components\Actions;
use Filament\Schemas\Components\Fieldset;
use Filament\Schemas\Components\Grid;
use Filament\Schemas\Components\Group;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Components\Split;
use Filament\Schemas\Components\Tabs;
use Filament\Schemas\Components\Tabs\Tab;
use Filament\Schemas\Components\Wizard;
use Filament\Schemas\Schema;
use Filament\Support\Enums\Alignment;
use Filament\Support\Enums\IconPosition;
use Filament\Support\Enums\VerticalAlignment;
Expand Down
4 changes: 2 additions & 2 deletions docs-assets/app/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/08-plugins/03-build-a-standalone-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Next, we'll need to create our component. Create a new file at `src/Heading.php`
namespace Awcodes\Headings;

use Closure;
use Filament\Schema\Components\Component;
use Filament\Schemas\Components\Component;
use Filament\Support\Colors\Color;
use Filament\Support\Concerns\HasColor;

Expand Down
6 changes: 3 additions & 3 deletions packages/actions/docs/03-modals.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ Action::make('updateAuthor')

### Using a wizard as a modal form

You may create a [multistep form wizard](../schema/layout/wizard) inside a modal. Instead of using a `form()`, define a `steps()` array and pass your `Step` objects:
You may create a [multistep form wizard](../schemas/layout/wizard) inside a modal. Instead of using a `form()`, define a `steps()` array and pass your `Step` objects:

```php
use Filament\Actions\Action;
use Filament\Forms\Components\MarkdownEditor;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schema\Components\Wizard\Step;
use Filament\Schemas\Components\Wizard\Step;

Action::make('create')
->steps([
Expand Down Expand Up @@ -363,7 +363,7 @@ You may execute code within a closure when the modal opens, by passing it to the

```php
use Filament\Actions\Action;
use Filament\Schema\Schema;
use Filament\Schemas\Schema;

Action::make('create')
->mountUsing(function (Schema $form) {
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/docs/06-prebuilt-actions/01-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ use Filament\Actions\CreateAction;
use Filament\Forms\Components\MarkdownEditor;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schema\Components\Wizard\Step;
use Filament\Schemas\Components\Wizard\Step;

CreateAction::make()
->steps([
Expand Down
4 changes: 2 additions & 2 deletions packages/actions/src/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Closure;
use Filament\Notifications\Notification;
use Filament\Schema\Components\Actions\ActionContainer;
use Filament\Schema\Components\Actions\ActionContainer as InfolistActionContainer;
use Filament\Schemas\Components\Actions\ActionContainer;
use Filament\Schemas\Components\Actions\ActionContainer as InfolistActionContainer;
use Filament\Support\Components\ViewComponent;
use Filament\Support\Concerns\HasBadge;
use Filament\Support\Concerns\HasColor;
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/AssociateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Closure;
use Filament\Actions\Concerns\CanCustomizeProcess;
use Filament\Forms\Components\Select;
use Filament\Schema\Schema;
use Filament\Schemas\Schema;
use Filament\Support\Enums\MaxWidth;
use Filament\Tables\Table;
use Illuminate\Database\Connection;
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/AttachAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Closure;
use Filament\Actions\Concerns\CanCustomizeProcess;
use Filament\Forms\Components\Select;
use Filament\Schema\Schema;
use Filament\Schemas\Schema;
use Filament\Support\Enums\MaxWidth;
use Filament\Support\Services\RelationshipJoiner;
use Filament\Tables\Table;
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/Concerns/BelongsToSchemaComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Filament\Actions\Concerns;

use Filament\Schema\Components\Component;
use Filament\Schemas\Components\Component;

trait BelongsToSchemaComponent
{
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/Concerns/CanBeMounted.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Filament\Actions\Concerns;

use Closure;
use Filament\Schema\Schema;
use Filament\Schemas\Schema;

trait CanBeMounted
{
Expand Down
6 changes: 3 additions & 3 deletions packages/actions/src/Concerns/CanExportRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
use Filament\Actions\Exports\Models\Export;
use Filament\Forms;
use Filament\Notifications\Notification;
use Filament\Schema\Components\Fieldset;
use Filament\Schema\Components\Split;
use Filament\Schema\Components\Utilities\Get;
use Filament\Schemas\Components\Fieldset;
use Filament\Schemas\Components\Split;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Support\Facades\FilamentIcon;
use Filament\Tables\Contracts\HasTable;
use Illuminate\Bus\PendingBatch;
Expand Down
4 changes: 2 additions & 2 deletions packages/actions/src/Concerns/HasForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Filament\Actions\Concerns;

use Closure;
use Filament\Schema\Components\Component;
use Filament\Schema\Schema;
use Filament\Schemas\Components\Component;
use Filament\Schemas\Schema;

trait HasForm
{
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/Concerns/HasInfolist.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Filament\Actions\Concerns;

use Closure;
use Filament\Schema\Components\Component;
use Filament\Schemas\Components\Component;

trait HasInfolist
{
Expand Down
6 changes: 3 additions & 3 deletions packages/actions/src/Concerns/HasSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Filament\Actions\Concerns;

use Closure;
use Filament\Schema\Components\Component;
use Filament\Schema\Components\Wizard;
use Filament\Schema\Schema;
use Filament\Schemas\Components\Component;
use Filament\Schemas\Components\Wizard;
use Filament\Schemas\Schema;

trait HasSchema
{
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/Concerns/HasWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Filament\Actions\Concerns;

use Closure;
use Filament\Schema\Components\Wizard\Step;
use Filament\Schemas\Components\Wizard\Step;

trait HasWizard
{
Expand Down
8 changes: 4 additions & 4 deletions packages/actions/src/Concerns/InteractsWithActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Closure;
use Filament\Actions\Action;
use Filament\Actions\Exceptions\ActionNotResolvableException;
use Filament\Schema\Components\Contracts\ExposesStateToActionData;
use Filament\Schema\Concerns\InteractsWithSchemas;
use Filament\Schema\Contracts\HasSchemas;
use Filament\Schema\Schema;
use Filament\Schemas\Components\Contracts\ExposesStateToActionData;
use Filament\Schemas\Concerns\InteractsWithSchemas;
use Filament\Schemas\Contracts\HasSchemas;
use Filament\Schemas\Schema;
use Filament\Support\Exceptions\Cancel;
use Filament\Support\Exceptions\Halt;
use Filament\Tables\Contracts\HasTable;
Expand Down
4 changes: 2 additions & 2 deletions packages/actions/src/CreateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Closure;
use Filament\Actions\Concerns\CanCustomizeProcess;
use Filament\Actions\Contracts\HasActions;
use Filament\Schema\Contracts\HasSchemas;
use Filament\Schema\Schema;
use Filament\Schemas\Contracts\HasSchemas;
use Filament\Schemas\Schema;
use Filament\Support\Facades\FilamentIcon;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/EditAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Closure;
use Filament\Actions\Concerns\CanCustomizeProcess;
use Filament\Actions\Contracts\HasActions;
use Filament\Schema\Contracts\HasSchemas;
use Filament\Schemas\Contracts\HasSchemas;
use Filament\Support\Facades\FilamentIcon;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Model;
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/Exports/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Carbon\CarbonInterface;
use Filament\Actions\Exports\Enums\ExportFormat;
use Filament\Actions\Exports\Models\Export;
use Filament\Schema\Components\Component;
use Filament\Schemas\Components\Component;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\Middleware\WithoutOverlapping;
Expand Down
6 changes: 3 additions & 3 deletions packages/actions/src/ImportAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\Select;
use Filament\Notifications\Notification;
use Filament\Schema\Components\Fieldset;
use Filament\Schema\Components\Utilities\Get;
use Filament\Schema\Components\Utilities\Set;
use Filament\Schemas\Components\Fieldset;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Components\Utilities\Set;
use Filament\Support\ChunkIterator;
use Filament\Support\Facades\FilamentIcon;
use Illuminate\Bus\PendingBatch;
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/Imports/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Carbon\CarbonInterface;
use Filament\Actions\Imports\Models\Import;
use Filament\Schema\Components\Component;
use Filament\Schemas\Components\Component;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\Middleware\WithoutOverlapping;
use Illuminate\Support\Facades\Validator;
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/src/ViewAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Closure;
use Filament\Actions\Contracts\HasActions;
use Filament\Schema\Contracts\HasSchemas;
use Filament\Schemas\Contracts\HasSchemas;
use Filament\Support\Facades\FilamentIcon;
use Illuminate\Database\Eloquent\Model;

Expand Down
Loading

0 comments on commit aa72500

Please sign in to comment.