-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from tallstackui/1.2.0
1.2.0
- Loading branch information
Showing
67 changed files
with
912 additions
and
426 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace App\Enums\Examples\Form; | ||
|
||
class Number | ||
{ | ||
public const BASIC = <<<'HTML' | ||
<x-number wire:model.live="quantity" /> | ||
HTML; | ||
|
||
public const LABEL_HINT = <<<'HTML' | ||
<x-number label="Quantity" | ||
hint="Press the plus button to increase one by one" | ||
wire:model.live="quantity" /> | ||
HTML; | ||
|
||
public const MIN_MAX = <<<'HTML' | ||
<x-number min="1" max="10" wire:model.live="quantity" /> | ||
HTML; | ||
|
||
public const DELAY = <<<'HTML' | ||
<x-number delay="1" min="1" max="10" wire:model.live="quantity" /> | ||
HTML; | ||
|
||
public const ICON = <<<'HTML' | ||
<x-number wire:model.live="quantity" chevron /> | ||
HTML; | ||
|
||
public const PERSONALIZATION = <<<'HTML' | ||
TallStackUi::personalize() | ||
->form('number') | ||
->block('block', 'classes'); | ||
HTML; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
namespace App\Enums\Examples\Ui; | ||
|
||
class Loading | ||
{ | ||
public const INTERACTION = <<<'HTML' | ||
<x-loading wire:loading.delay.longest wire:target="save" /> {{-- [tl! remove] --}} | ||
<x-loading delay="longest" loading="save" /> {{-- [tl! add] --}} | ||
HTML; | ||
|
||
public const USAGE = <<<'HTML' | ||
<!-- resources/views/livewire/post.blade.php --> | ||
<div> | ||
<x-loading /> {{-- [tl! add] --}} | ||
<form wire:submit="save"> | ||
<input type="text" wire:model="title"> | ||
<input type="text" wire:model="content"> | ||
<button type="submit">Save</button> | ||
</form> | ||
</div> | ||
HTML; | ||
|
||
public const BASIC = <<<'HTML' | ||
<x-loading /> | ||
HTML; | ||
|
||
public const TEXT = <<<'HTML' | ||
<x-loading> | ||
<div class="flex items-center text-primary-500 dark:text-white"> | ||
<x-icon name="arrow-path" class="mr-2 h-10 w-10 animate-spin" /> | ||
Loading ... | ||
</div> | ||
</x-loading> | ||
HTML; | ||
|
||
public const TARGET_DELAY = <<<'HTML' | ||
<!-- You can specify the target of the delay (method or property) --> | ||
<!-- You can use all the Livewire delay options: shortest, shorter, short, long, longer, longest --> | ||
<x-loading loading="save" delay="longest" /> | ||
HTML; | ||
|
||
public const PERSONALIZATION = <<<'HTML' | ||
TallStackUi::personalize() | ||
->loading() | ||
->block('block', 'classes'); | ||
HTML; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Documentation\Form; | ||
|
||
use App\Enums\Example; | ||
use App\Http\Controllers\Controller; | ||
use Illuminate\Http\Request; | ||
|
||
class Number extends Controller | ||
{ | ||
public function __invoke(Request $request) | ||
{ | ||
return view('documentation.form.number', Example::Number->variables()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Documentation; | ||
|
||
use App\Enums\Example; | ||
use App\Http\Controllers\Controller; | ||
|
||
class Loading extends Controller | ||
{ | ||
public function __invoke() | ||
{ | ||
return view('documentation.ui.loading', Example::Loading->variables()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.