Skip to content

Commit

Permalink
feat(number) cria o campo number
Browse files Browse the repository at this point in the history
  • Loading branch information
irineujunior committed Apr 24, 2024
1 parent b08cbb6 commit f2a4c64
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/BladeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ public function bootComponents(): void
Blade::component($prefix . 'form.email', Components\Forms\Inputs\Email::class);
Blade::component($prefix . 'form.input', Components\Forms\Inputs\Input::class);
Blade::component($prefix . 'form.image-library', Components\Forms\Inputs\ImageLibrary::class);
Blade::component($prefix . 'form.number', Components\Forms\Inputs\Number::class);
Blade::component($prefix . 'form.password', Components\Forms\Inputs\Password::class);
Blade::component($prefix . 'form.plaintext', Components\Forms\Inputs\Plaintext::class);
Blade::component($prefix . 'form.radio', Components\Forms\Inputs\Radio::class);
Blade::component($prefix . 'form.select', Components\Forms\Inputs\Select::class);
Blade::component($prefix . 'form.textarea', Components\Forms\Inputs\Textarea::class);
Blade::component($prefix . 'form.time', Components\Forms\Inputs\Time::class);
Blade::component($prefix . 'form.toggle', Components\Forms\Inputs\Toggle::class);
Blade::component($prefix . 'form.toggle-notification', Components\Forms\Inputs\ToggleNotification::class);
Blade::component($prefix . 'modal.body', Components\Modal\Body::class);
Blade::component($prefix . 'modal.close', Components\Modal\Close::class);
Blade::component($prefix . 'modal.footer', Components\Modal\Footer::class);
Expand Down
20 changes: 20 additions & 0 deletions src/View/Components/Forms/Inputs/Number.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace Agenciafmd\Ui\View\Components\Forms\Inputs;

class Number extends Input
{
public function __construct(
public string $name = '',
public string $label = '',
public string $hint = '',
public string $type = 'number',
) {
parent::__construct(
$name,
$label,
$hint,
$type,
);
}
}

0 comments on commit f2a4c64

Please sign in to comment.