Skip to content

Commit

Permalink
updating dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Oct 17, 2023
1 parent 67ed744 commit 3d71971
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 59 deletions.
13 changes: 6 additions & 7 deletions app/Enums/Examples/Ui/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,19 @@ class Avatar
HTML;

public const MODELABLE = <<<'HTML'
<x-avatar.modelable :model="auth()->user()" />
<x-avatar :model="auth()->user()" color="fff" />
HTML;

public const MODELABLE_CUSTOMIZED = <<<'HTML'
<x-avatar.modelable :model="auth()->user()" property="email" />
<x-avatar :model="auth()->user()" property="email" color="fff" />
HTML;

public const MODELABLE_CUSTOMIZED_COLORS = <<<'HTML'
<!-- "background" and "color" must be hexadecimals -->
<x-avatar.modelable :model="auth()->user()"
property="email"
background="ff0000"
color="f2f2f2" />
<x-avatar :model="auth()->user()"
property="email"
background="ff0000"
color="fff" />
HTML;

public const PLACEHOLDER = <<<'HTML'
Expand Down
90 changes: 45 additions & 45 deletions composer.lock

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

7 changes: 3 additions & 4 deletions config/tallstackui.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/*
|--------------------------------------------------------------------------
| Components Settings
| Component Settings
|--------------------------------------------------------------------------
|
| General components settings.
Expand Down Expand Up @@ -45,15 +45,14 @@

/*
|--------------------------------------------------------------------------
| Components List
| Component List
|--------------------------------------------------------------------------
|
| List of all TallStackUi components.
*/
'components' => [
'alert' => Components\Alert::class,
'avatar' => Components\Avatar\Avatar::class,
'avatar.modelable' => Components\Avatar\Modelable::class,
'avatar' => Components\Avatar::class,
'badge' => Components\Badge::class,
'button' => Components\Button\Button::class,
'button.circle' => Components\Button\Circle::class,
Expand Down
6 changes: 3 additions & 3 deletions resources/views/documentation/ui/avatar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@
description="An option to generate a UI Avatar from a model based on name property."
language="blade"
:contents="$modelable">
<x-avatar.modelable :model="auth()->user()" />
<x-avatar :model="auth()->user()" color="fff" />
</x-preview>
<x-preview title="Modelable Custom Property"
description="An option to generate a UI Avatar from a model based on a property different than name."
language="blade"
:contents="$modelableCustomized">
<x-avatar.modelable :model="auth()->user()" property="email" />
<x-avatar :model="auth()->user()" property="email" color="fff" />
</x-preview>
<x-preview title="Customizing Colors"
description="An option to generate a UI Avatar from a model based customizing the colors."
language="blade"
:contents="$modelableCustomizedColors">
<x-avatar.modelable :model="auth()->user()" property="email" background="ff0000" color="f2f2f2" />
<x-avatar :model="auth()->user()" property="email" background="ff0000" color="fff" />
</x-preview>
</x-section>
<x-section>
Expand Down

0 comments on commit 3d71971

Please sign in to comment.