Skip to content

Commit b4a45cf

Browse files
committed
fix(switcher): adjust labels
1 parent e16e37a commit b4a45cf

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

src/Support/ComponentAPI.php

+18-18
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,11 @@ public static function checkbox(): array
379379
'default' => 'false',
380380
'required' => 'false',
381381
],
382+
'left-label' => [
383+
'type' => 'string',
384+
'default' => 'null',
385+
'required' => 'false',
386+
],
382387
'description' => [
383388
'type' => 'string',
384389
'default' => 'null',
@@ -389,11 +394,6 @@ public static function checkbox(): array
389394
'default' => 'false',
390395
'required' => 'false',
391396
],
392-
'right-label' => [
393-
'type' => 'string',
394-
'default' => 'null',
395-
'required' => 'false',
396-
],
397397
'with-validation-colors' => [
398398
'type' => 'boolean',
399399
'default' => 'false',
@@ -407,7 +407,7 @@ public static function checkbox(): array
407407
'slot' => [
408408
'description' => 'Slot to add content to the body.',
409409
],
410-
'right-label' => [
410+
'left-label' => [
411411
'description' => 'Slot to add content to the right label.',
412412
],
413413
'description' => [
@@ -1166,6 +1166,11 @@ public static function radio(): array
11661166
'default' => 'false',
11671167
'required' => 'false',
11681168
],
1169+
'left-label' => [
1170+
'type' => 'string',
1171+
'default' => 'null',
1172+
'required' => 'false',
1173+
],
11691174
'description' => [
11701175
'type' => 'string',
11711176
'default' => 'null',
@@ -1176,11 +1181,6 @@ public static function radio(): array
11761181
'default' => 'false',
11771182
'required' => 'false',
11781183
],
1179-
'right-label' => [
1180-
'type' => 'string',
1181-
'default' => 'null',
1182-
'required' => 'false',
1183-
],
11841184
'with-validation-colors' => [
11851185
'type' => 'boolean',
11861186
'default' => 'false',
@@ -1194,7 +1194,7 @@ public static function radio(): array
11941194
'slot' => [
11951195
'description' => 'Slot to add content to the body.',
11961196
],
1197-
'right-label' => [
1197+
'left-label' => [
11981198
'description' => 'Slot to add content to the right label.',
11991199
],
12001200
'description' => [
@@ -1495,6 +1495,11 @@ public static function toggle(): array
14951495
'default' => 'false',
14961496
'required' => 'false',
14971497
],
1498+
'left-label' => [
1499+
'type' => 'string',
1500+
'default' => 'null',
1501+
'required' => 'false',
1502+
],
14981503
'description' => [
14991504
'type' => 'string',
15001505
'default' => 'null',
@@ -1505,11 +1510,6 @@ public static function toggle(): array
15051510
'default' => 'false',
15061511
'required' => 'false',
15071512
],
1508-
'right-label' => [
1509-
'type' => 'string',
1510-
'default' => 'null',
1511-
'required' => 'false',
1512-
],
15131513
'with-validation-colors' => [
15141514
'type' => 'boolean',
15151515
'default' => 'false',
@@ -1523,7 +1523,7 @@ public static function toggle(): array
15231523
'slot' => [
15241524
'description' => 'Slot to add content to the body.',
15251525
],
1526-
'right-label' => [
1526+
'left-label' => [
15271527
'description' => 'Slot to add content to the right label.',
15281528
],
15291529
'description' => [

src/resources/views/sections/components/checkbox.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
<x-docs::code.preview language="blade">
4444
<x-slot name="slot" class="flex flex-wrap gap-8">
4545
@verbatim
46-
<x-checkbox id="label" label="Label in Left" wire:model="model1" value="label" />
46+
<x-checkbox id="left-label" left-label="Label in Left" wire:model="model1" value="left-label" />
4747

48-
<x-checkbox id="right-label" right-label="Label in Right" wire:model="model1" value="right-label" />
48+
<x-checkbox id="label" label="Label in Right" wire:model="model1" value="label" />
4949
@endverbatim
5050
</x-slot>
5151
</x-docs::code.preview>

src/resources/views/sections/components/radio.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
<x-docs::code.preview language="blade">
4343
<x-slot name="slot" class="flex flex-wrap gap-8">
4444
@verbatim
45-
<x-radio id="label" label="Label in Left" wire:model="model1" value="label" />
45+
<x-radio id="left-label" left-label="Label in Left" wire:model="model1" value="left-label" />
4646

47-
<x-radio id="right-label" right-label="Label in Right" wire:model="model1" value="right-label" />
47+
<x-radio id="label" label="Label in Right" wire:model="model1" value="label" />
4848
@endverbatim
4949
</x-slot>
5050
</x-docs::code.preview>

src/resources/views/sections/components/toggle.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
<x-docs::code.preview language="blade">
3434
<x-slot name="slot" class="flex flex-wrap gap-8">
3535
@verbatim
36-
<x-toggle id="label" label="Label in Left" name="toggle" />
36+
<x-toggle id="left-label" left-label="Label in Left" name="toggle" />
3737

38-
<x-toggle id="right-label" right-label="Label in Right" name="toggle" />
38+
<x-toggle id="label" label="Label in Right" name="toggle" />
3939
@endverbatim
4040
</x-slot>
4141
</x-docs::code.preview>

0 commit comments

Comments
 (0)