From 3e96dc8637642b1ee00ba77be2e425bedb4906e1 Mon Sep 17 00:00:00 2001 From: AJ Date: Mon, 9 Oct 2023 20:37:11 -0300 Subject: [PATCH] updating dependencies --- .env.example | 2 +- app/Enums/Examples/Ui/Toast.php | 6 ++++++ composer.json | 2 +- composer.lock | 14 +++++++------- config/tallstackui.php | 8 ++++++-- database/seeders/CreateUserSeeder.php | 5 +---- .../views/documentation/ui/toast.blade.php | 7 +++++++ resources/views/layouts/app.blade.php | 9 +++++++++ .../dialog/confirmation.blade.php | 1 - .../interactions/dialog/examples.blade.php | 1 - .../interactions/toast/confirmation.blade.php | 1 - .../interactions/toast/examples.blade.php | 1 - .../interactions/toast/timeout.blade.php | 19 +++++++++++++++++++ .../ui/select/searchable.blade.php | 4 ++-- 14 files changed, 59 insertions(+), 21 deletions(-) create mode 100644 resources/views/livewire/documentation/interactions/toast/timeout.blade.php diff --git a/.env.example b/.env.example index c8fa99af..26174088 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -APP_NAME=Laravel +APP_NAME="TallStackUi, TALL Stack Components." APP_ENV=local APP_KEY= APP_DEBUG=true diff --git a/app/Enums/Examples/Ui/Toast.php b/app/Enums/Examples/Ui/Toast.php index 5b0bdfdb..989cdd69 100644 --- a/app/Enums/Examples/Ui/Toast.php +++ b/app/Enums/Examples/Ui/Toast.php @@ -72,6 +72,12 @@ public function cancelled(string $message): void } HTML; + public const TIME = <<<'HTML' + $this->toast() + ->timeout(seconds: 10) + ->success('Success', 'This is a success message.'); + HTML; + public const Z_INDEX = <<<'HTML' HTML; diff --git a/composer.json b/composer.json index 2ce1af59..9bac42ba 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "laravel/tinker": "^2.8", "livewire/livewire": "^3.0", "livewire/volt": "^1.0", - "tallstackui/tallstackui": "^0.1.0", + "tallstackui/tallstackui": "^0.2.0", "torchlight/torchlight-laravel": "^0.5.14" }, "require-dev": { diff --git a/composer.lock b/composer.lock index ae538a5b..af4a1e19 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c6ccb28feaca4b086fb1032dd18ddb01", + "content-hash": "9311c04ce2d0f75cf0367015d0c16fa7", "packages": [ { "name": "brick/math", @@ -5566,16 +5566,16 @@ }, { "name": "tallstackui/tallstackui", - "version": "v0.1.9", + "version": "v0.2.0", "source": { "type": "git", "url": "https://github.com/tallstackui/tallstackui.git", - "reference": "266d92366165752508bca8842170c4525a634fb7" + "reference": "82246f5494ad5620db1718e17f1bb23048f6ab1c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tallstackui/tallstackui/zipball/266d92366165752508bca8842170c4525a634fb7", - "reference": "266d92366165752508bca8842170c4525a634fb7", + "url": "https://api.github.com/repos/tallstackui/tallstackui/zipball/82246f5494ad5620db1718e17f1bb23048f6ab1c", + "reference": "82246f5494ad5620db1718e17f1bb23048f6ab1c", "shasum": "" }, "require": { @@ -5621,9 +5621,9 @@ "description": "A curated list of TallStack UI Components", "support": { "issues": "https://github.com/tallstackui/tallstackui/issues", - "source": "https://github.com/tallstackui/tallstackui/tree/v0.1.9" + "source": "https://github.com/tallstackui/tallstackui/tree/v0.2.0" }, - "time": "2023-10-08T23:32:53+00:00" + "time": "2023-10-09T23:08:35+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", diff --git a/config/tallstackui.php b/config/tallstackui.php index f9537517..561da65c 100644 --- a/config/tallstackui.php +++ b/config/tallstackui.php @@ -8,7 +8,7 @@ | Icon Style |-------------------------------------------------------------------------- | - | Configure the default icon style. Supported: "solid", "outline" + | Configure the default icon style. Alloweds: "solid", "outline" */ 'icon' => 'solid', @@ -21,7 +21,9 @@ */ 'personalizations' => [ 'input' => [ + /* Input, Textarea & Password */ 'square' => false, + /* Input & Password Only */ 'round' => false, ], 'tabs' => [ @@ -29,11 +31,13 @@ ], 'dialog' => [ 'z-index' => 'z-50', - 'closeable' => true, + 'blur' => false, + 'uncloseable' => false, 'square' => false, ], 'toast' => [ 'z-index' => 'z-50', + /* Alloweds: "top-right", "top-left", "bottom-right", "bottom-left" */ 'position' => 'top-right', 'square' => false, ], diff --git a/database/seeders/CreateUserSeeder.php b/database/seeders/CreateUserSeeder.php index ebc1dddf..ae484aaa 100644 --- a/database/seeders/CreateUserSeeder.php +++ b/database/seeders/CreateUserSeeder.php @@ -9,9 +9,6 @@ class CreateUserSeeder extends Seeder { public function run(): void { - User::factory()->create([ - 'name' => 'Test User', - 'email' => 'test@example.com', - ]); + User::create(['name' => 'Test User', 'email' => 'test@example.com', 'password' => bcrypt('password')]); } } diff --git a/resources/views/documentation/ui/toast.blade.php b/resources/views/documentation/ui/toast.blade.php index 20dd0991..478f1bee 100644 --- a/resources/views/documentation/ui/toast.blade.php +++ b/resources/views/documentation/ui/toast.blade.php @@ -29,5 +29,12 @@ + + + + + diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 1ebae228..1e139ef6 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -9,6 +9,15 @@ class="h-full antialiased" {{ config('app.name', 'Laravel') }} + + + + + + + + + diff --git a/resources/views/livewire/documentation/interactions/dialog/confirmation.blade.php b/resources/views/livewire/documentation/interactions/dialog/confirmation.blade.php index 2e31ff73..cb744c43 100644 --- a/resources/views/livewire/documentation/interactions/dialog/confirmation.blade.php +++ b/resources/views/livewire/documentation/interactions/dialog/confirmation.blade.php @@ -1,6 +1,5 @@ toast() + ->timeout(seconds: 10) + ->success('Success', 'This is a success message.'); + } +} ?> + +
+ 10 seconds +
diff --git a/resources/views/livewire/documentation/ui/select/searchable.blade.php b/resources/views/livewire/documentation/ui/select/searchable.blade.php index 887ca90b..ea38ea93 100644 --- a/resources/views/livewire/documentation/ui/select/searchable.blade.php +++ b/resources/views/livewire/documentation/ui/select/searchable.blade.php @@ -2,8 +2,8 @@ use function Livewire\Volt\{state}; -$model = state('model', 1); -$value = state('value', 1); +$model = state('model', 1); +$value = state('value', 1); $options = state('options', [1,2,3]); ?>