Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Aug 14, 2024
1 parent 4a9b089 commit 31618dd
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
8 changes: 8 additions & 0 deletions app/Enums/Examples/Ui/Stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ class Stats
<x-stats href="https://tallstackui.com" target="_blank" :number="100" />
HTML;

public const NAVIGATE = <<<'HTML'
<!-- <a href="https://tallstackui.com" wire:navigate ...> -->
<x-stats href="https://tallstackui.com" target="_blank" :number="100" navigate />
<!-- <a href="https://tallstackui.com" wire:navigate.hover ...> -->
<x-stats href="https://tallstackui.com" target="_blank" :number="100" navigate-nover />
HTML;

public const ICONS = <<<'HTML'
<x-stats icon="swatch" :number="100" />
<x-stats icon="swatch" :number="100" light />
Expand Down
3 changes: 2 additions & 1 deletion contents/on-this-page.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"3": "Selectable",
"4": "Custom Colors",
"5": "Events",
"6": "Invalidate"
"6": "Invalidate",
"7": "Configurations"
},
"docs.form.number": {
"0": "Basic Usage",
Expand Down
6 changes: 6 additions & 0 deletions resources/views/documentation/form/color.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
<x-preview language="blade" :contents="$custom">
<x-color :colors="['#83493D', '#3D8357', '#693D83', '#3AB3D1', '#5DD116']" />
</x-preview>
<x-warning class="mt-4">
<u>Starting from version 1.35.0</u>, you can now set the custom colors
using the configuration file to avoid the need to pass it every time
you need to use the component.
</x-warning>
</x-section>
<x-section title="Events">
<x-preview language="blade" :contents="$events">
Expand All @@ -53,4 +58,5 @@
<x-color invalidate />
</x-preview>
</x-section>
<x-available-configuration />
</x-layout>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</x-preview>
<div class="mt-4 space-y-4">
<p>
<u>As of version 1.10.0</u>, the Dialog has been improved to allow more flexibility in the format of use:
<u>Starting from version 1.10.0</u>, the Dialog has been improved to allow more flexibility in the format of use:
</p>
<x-code :contents="$confirmationExplanation" disable-copy />
</div>
Expand Down
5 changes: 5 additions & 0 deletions resources/views/documentation/ui/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
</div>
</div>
</x-preview>
<p class="mt-2">
<u>Starting from version 1.35.0</u> you can use the <x-block>position</x-block> attribute
to define the position of the loading icon: <x-block>left</x-block> or <x-block>right</x-block>,
by default it will be on the left.
</p>
</x-section>
<x-section title="Color Variations" anchor="normal-color-variations">
<x-preview language="blade" :contents="$color">
Expand Down
4 changes: 4 additions & 0 deletions resources/views/documentation/ui/stats.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
:number="10.000" />
</div>
</x-preview>
<p>
<u>Starting from version 1.35.0</u> you can now use <x-block>navigate</x-block> and <x-block>navigate-hover</x-block>:
</p>
<x-code language="blade" :contents="$navigate" />
</x-section>
<x-section title="Icons">
<x-preview language="blade" :contents="$icons" :background="false">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/documentation/ui/tab.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</x-tab>
</x-preview>
</x-section>
<x-section title="Events">
<x-section title="Events" new>
<x-preview language="blade" :background="false" :contents="$events">
<x-tab selected="Invoices" x-on:navigate="alert($event.detail.select)">
<x-tab.items tab="Invoices">
Expand Down

0 comments on commit 31618dd

Please sign in to comment.