Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.30.0 #33

Merged
merged 5 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/Enums/Example.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use App\Enums\Examples\Form\Upload;
use App\Enums\Examples\Form\WithoutLivewire;
use App\Enums\Examples\Others\Alpine;
use App\Enums\Examples\Others\Command;
use App\Enums\Examples\Others\Configuration;
use App\Enums\Examples\Others\Contribution;
use App\Enums\Examples\Others\DarkTheme;
Expand Down Expand Up @@ -77,6 +78,7 @@ enum Example: string
case ColorPersonalization = ColorPersonalization::class;
case Configuration = Configuration::class;
case Contribution = Contribution::class;
case Command = Command::class;
case Date = Date::class;
case DarkTheme = DarkTheme::class;
case DebugMode = DebugMode::class;
Expand Down
10 changes: 10 additions & 0 deletions app/Enums/Examples/Others/Command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Enums\Examples\Others;

class Command
{
public const FIND_COMPONENT = <<<'HTML'
php artisan tallstackui:find-component
HTML;
}
22 changes: 22 additions & 0 deletions app/Enums/Examples/Personalization/SoftPersonalization.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,28 @@ public function boot(): void
</x-alert>
HTML;

public const SCOPED_PERSONALIZATION_WITH_CLASS_BLADE_EXAMPLE = <<<'HTML'
<x-alert :personalize="\App\ScopedPersonalization\Alert::class" />
HTML;

public const SCOPED_PERSONALIZATION_WITH_CLASS_PHP_EXAMPLE = <<<'HTML'
namespace App\ScopedPersonalization;

class Alert
{
public function __invoke(array $classes): array
{
return [
'wrapper' => [
'replace' => [
'rounded-lg' => 'rounded-full',
],
],
];
}
}
HTML;

public const DATA = <<<'HTML'
[
"id" => null
Expand Down
4 changes: 3 additions & 1 deletion app/Enums/Examples/Ui/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ class Modal
HTML;

public const BLUR = <<<'HTML'
<x-modal title="TallStackUi" blur>
<!-- sm, md, lg, xl -->

<x-modal title="TallStackUi" blur> <!-- sm blur -->
TallStackUi
</x-modal>
HTML;
Expand Down
4 changes: 3 additions & 1 deletion app/Enums/Examples/Ui/Slide.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ class Slide
HTML;

public const BLUR = <<<'HTML'
<x-slide blur>
<!-- sm, md, lg, xl -->

<x-slide blur> <!-- sm blur -->
TallStackUi
</x-slide>
HTML;
Expand Down
142 changes: 108 additions & 34 deletions composer.lock

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

Binary file added public/assets/images/find-component-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion resources/views/components/layout/navigation/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class="hidden w-full items-center rounded-md pr-3 pl-2 text-sm leading-6 text-sl
<x-layout.navigation.link :href="route('documentation.ui.banner')" text="Banner" />
</li>
<li class="relative ml-4">
<x-layout.navigation.link :href="route('documentation.ui.boolean')" text="Boolean" new />
<x-layout.navigation.link :href="route('documentation.ui.boolean')" text="Boolean" />
</li>
<li class="relative ml-4">
<x-layout.navigation.link :href="route('documentation.ui.button')" text="Button" />
Expand Down Expand Up @@ -213,6 +213,9 @@ class="hidden w-full items-center rounded-md pr-3 pl-2 text-sm leading-6 text-sl
<li class="relative ml-4">
<x-layout.navigation.link :href="route('documentation.configuration')" text="Configurations" />
</li>
<li class="relative ml-4">
<x-layout.navigation.link :href="route('documentation.command')" text="Commands" new />
</li>
<li class="relative ml-4">
<x-layout.navigation.link :href="route('documentation.translation')" text="Translations" />
</li>
Expand Down
6 changes: 4 additions & 2 deletions resources/views/components/top-bar.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<x-banner :color="['background' => 'bg-pink-900', 'text' => 'text-white']" :until="now()->subDay()">
//
<x-banner :color="['background' => 'bg-pink-900', 'text' => 'text-white']"
:until="now()->addWeek()">
<b>New version 1.30.0 is now available</b> 🎉
<a class="underline" href="{{ route('documentation.command').'#find-component' }}">Introducing a useful command to search for component usage.</a>
</x-banner>
Loading