File tree Expand file tree Collapse file tree 5 files changed +10
-22
lines changed
Expand file tree Collapse file tree 5 files changed +10
-22
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,12 @@ class Button extends Component
1111 public readonly ButtonVariant $ resolvedVariant ;
1212
1313 public function __construct (
14- public readonly string $ type = 'submit ' ,
14+ public readonly string $ type = 'submit ' ,
1515 public string |ButtonVariant $ variant = 'fresh ' ,
16- public readonly string $ color = 'primary ' ,
17- public readonly string $ size = 'md ' ,
18- public readonly bool $ loading = false ,
19- )
20- {
16+ public readonly string $ color = 'primary ' ,
17+ public readonly string $ size = 'md ' ,
18+ public readonly bool $ loading = false ,
19+ ) {
2120 $ this ->resolvedVariant = $ variant instanceof ButtonVariant
2221 ? $ variant
2322 : ButtonVariant::from (strtolower ($ variant ));
Original file line number Diff line number Diff line change @@ -9,10 +9,7 @@ class FormError extends Component
99{
1010 public function __construct (
1111 public ?string $ for
12- )
13- {
14- }
15-
12+ ) {}
1613
1714 public function classes (): string
1815 {
Original file line number Diff line number Diff line change 77
88class FormInput extends Component
99{
10-
1110 public function __construct (
1211 public ?string $ name ,
13- )
14- {
15-
16- }
12+ ) {}
1713
1814 public function classes (): string
1915 {
20- return " block w-full rounded-md border-gray-300 dark:border-gray-500 text-gray-700 shadow-sm focus:border-gray-600 focus:ring-gray-300 focus:ring-2 ring-offset-3 sm:text-sm " ;
16+ return ' block w-full rounded-md border-gray-300 dark:border-gray-500 text-gray-700 shadow-sm focus:border-gray-600 focus:ring-gray-300 focus:ring-2 ring-offset-3 sm:text-sm ' ;
2117 }
2218
2319 public function render (): View
Original file line number Diff line number Diff line change 77
88class FormLabel extends Component
99{
10-
11-
1210 public function classes (): string
1311 {
1412 return 'block text-sm font-medium text-gray-700 dark:text-gray-300 ' ;
Original file line number Diff line number Diff line change 77class FormTextarea extends Component
88{
99 public function __construct (
10- public bool $ autoGrow = false ,
10+ public bool $ autoGrow ,
1111 public ?string $ name ,
12- )
13- {
14- }
12+ ) {}
1513
1614 public function classes (): string
1715 {
You can’t perform that action at this time.
0 commit comments