Skip to content

Commit

Permalink
fix(switcher): adjust labels
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopalopes24 committed May 24, 2024
1 parent e16e37a commit b4a45cf
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
36 changes: 18 additions & 18 deletions src/Support/ComponentAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ public static function checkbox(): array
'default' => 'false',
'required' => 'false',
],
'left-label' => [
'type' => 'string',
'default' => 'null',
'required' => 'false',
],
'description' => [
'type' => 'string',
'default' => 'null',
Expand All @@ -389,11 +394,6 @@ public static function checkbox(): array
'default' => 'false',
'required' => 'false',
],
'right-label' => [
'type' => 'string',
'default' => 'null',
'required' => 'false',
],
'with-validation-colors' => [
'type' => 'boolean',
'default' => 'false',
Expand All @@ -407,7 +407,7 @@ public static function checkbox(): array
'slot' => [
'description' => 'Slot to add content to the body.',
],
'right-label' => [
'left-label' => [
'description' => 'Slot to add content to the right label.',
],
'description' => [
Expand Down Expand Up @@ -1166,6 +1166,11 @@ public static function radio(): array
'default' => 'false',
'required' => 'false',
],
'left-label' => [
'type' => 'string',
'default' => 'null',
'required' => 'false',
],
'description' => [
'type' => 'string',
'default' => 'null',
Expand All @@ -1176,11 +1181,6 @@ public static function radio(): array
'default' => 'false',
'required' => 'false',
],
'right-label' => [
'type' => 'string',
'default' => 'null',
'required' => 'false',
],
'with-validation-colors' => [
'type' => 'boolean',
'default' => 'false',
Expand All @@ -1194,7 +1194,7 @@ public static function radio(): array
'slot' => [
'description' => 'Slot to add content to the body.',
],
'right-label' => [
'left-label' => [
'description' => 'Slot to add content to the right label.',
],
'description' => [
Expand Down Expand Up @@ -1495,6 +1495,11 @@ public static function toggle(): array
'default' => 'false',
'required' => 'false',
],
'left-label' => [
'type' => 'string',
'default' => 'null',
'required' => 'false',
],
'description' => [
'type' => 'string',
'default' => 'null',
Expand All @@ -1505,11 +1510,6 @@ public static function toggle(): array
'default' => 'false',
'required' => 'false',
],
'right-label' => [
'type' => 'string',
'default' => 'null',
'required' => 'false',
],
'with-validation-colors' => [
'type' => 'boolean',
'default' => 'false',
Expand All @@ -1523,7 +1523,7 @@ public static function toggle(): array
'slot' => [
'description' => 'Slot to add content to the body.',
],
'right-label' => [
'left-label' => [
'description' => 'Slot to add content to the right label.',
],
'description' => [
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/sections/components/checkbox.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
<x-docs::code.preview language="blade">
<x-slot name="slot" class="flex flex-wrap gap-8">
@verbatim
<x-checkbox id="label" label="Label in Left" wire:model="model1" value="label" />
<x-checkbox id="left-label" left-label="Label in Left" wire:model="model1" value="left-label" />

<x-checkbox id="right-label" right-label="Label in Right" wire:model="model1" value="right-label" />
<x-checkbox id="label" label="Label in Right" wire:model="model1" value="label" />
@endverbatim
</x-slot>
</x-docs::code.preview>
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/sections/components/radio.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
<x-docs::code.preview language="blade">
<x-slot name="slot" class="flex flex-wrap gap-8">
@verbatim
<x-radio id="label" label="Label in Left" wire:model="model1" value="label" />
<x-radio id="left-label" left-label="Label in Left" wire:model="model1" value="left-label" />

<x-radio id="right-label" right-label="Label in Right" wire:model="model1" value="right-label" />
<x-radio id="label" label="Label in Right" wire:model="model1" value="label" />
@endverbatim
</x-slot>
</x-docs::code.preview>
Expand Down
4 changes: 2 additions & 2 deletions src/resources/views/sections/components/toggle.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<x-docs::code.preview language="blade">
<x-slot name="slot" class="flex flex-wrap gap-8">
@verbatim
<x-toggle id="label" label="Label in Left" name="toggle" />
<x-toggle id="left-label" left-label="Label in Left" name="toggle" />

<x-toggle id="right-label" right-label="Label in Right" name="toggle" />
<x-toggle id="label" label="Label in Right" name="toggle" />
@endverbatim
</x-slot>
</x-docs::code.preview>
Expand Down

0 comments on commit b4a45cf

Please sign in to comment.