generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LWB-264 Adding all of the Input types as individual components
- Loading branch information
Showing
88 changed files
with
3,960 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="button" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="checkbox" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="color" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="date" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="datetimelocal" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="email" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="file" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="hidden" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="image" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="month" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="number" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="password" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="radio" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="range" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="reset" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="search" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="submit" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="tel" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="text" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="time" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="url" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<input type="week" {!! $globalAttributes !!} {!! $specificAttributes !!}> | ||
{{ $slot }} | ||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace T73biz\LwBits\Components\Forms\Inputs; | ||
|
||
use Illuminate\Contracts\Foundation\Application as ContractedApplication; | ||
use Illuminate\Contracts\View\Factory; | ||
use Illuminate\Contracts\View\View as ContractedView; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\View\View; | ||
use Livewire\Component; | ||
use Livewire\Features\SupportAttributes\AttributeCollection; | ||
use T73biz\LwBits\Components\GlobalAttributesTrait; | ||
|
||
/** | ||
* Class Button | ||
*/ | ||
class Button extends Component | ||
{ | ||
use GlobalAttributesTrait; | ||
|
||
/** | ||
* The specific attributes for the Button component | ||
*/ | ||
private AttributeCollection $specificAttributes; | ||
|
||
/** | ||
* Standard mount function | ||
* | ||
* @throws \T73biz\LwBits\Exceptions\InvalidAttributeException | ||
*/ | ||
public function mount(): void | ||
{ | ||
$this->setGlobalAttributes(); | ||
$this->specificAttributes = new AttributeCollection(); | ||
} | ||
|
||
/** | ||
* Standard render function | ||
*/ | ||
public function render(): Application|ContractedApplication|ContractedView|Factory|View | ||
{ | ||
return view( | ||
'lw-bits::forms.inputs.button', | ||
[ | ||
'globalAttributes' => $this->getGlobalAttributes(), | ||
'specificAttributes' => $this->parseAttributes($this->specificAttributes), | ||
'slot' => '', | ||
] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace T73biz\LwBits\Components\Forms\Inputs; | ||
|
||
use Illuminate\Contracts\Foundation\Application as ContractedApplication; | ||
use Illuminate\Contracts\View\Factory; | ||
use Illuminate\Contracts\View\View as ContractedView; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\View\View; | ||
use Livewire\Component; | ||
use Livewire\Features\SupportAttributes\AttributeCollection; | ||
use T73biz\LwBits\Components\GlobalAttributesTrait; | ||
|
||
/** | ||
* Class Checkbox | ||
*/ | ||
class Checkbox extends Component | ||
{ | ||
use GlobalAttributesTrait; | ||
|
||
/** | ||
* The specific attributes for the Checkbox component | ||
*/ | ||
private AttributeCollection $specificAttributes; | ||
|
||
/** | ||
* Standard mount function | ||
* | ||
* @throws \T73biz\LwBits\Exceptions\InvalidAttributeException | ||
*/ | ||
public function mount(): void | ||
{ | ||
$this->setGlobalAttributes(); | ||
$this->specificAttributes = new AttributeCollection(); | ||
} | ||
|
||
/** | ||
* Standard render function | ||
*/ | ||
public function render(): Application|ContractedApplication|ContractedView|Factory|View | ||
{ | ||
return view( | ||
'lw-bits::forms.inputs.checkbox', | ||
[ | ||
'globalAttributes' => $this->getGlobalAttributes(), | ||
'specificAttributes' => $this->parseAttributes($this->specificAttributes), | ||
'slot' => '', | ||
] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace T73biz\LwBits\Components\Forms\Inputs; | ||
|
||
use Illuminate\Contracts\Foundation\Application as ContractedApplication; | ||
use Illuminate\Contracts\View\Factory; | ||
use Illuminate\Contracts\View\View as ContractedView; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\View\View; | ||
use Livewire\Component; | ||
use Livewire\Features\SupportAttributes\AttributeCollection; | ||
use T73biz\LwBits\Components\GlobalAttributesTrait; | ||
|
||
/** | ||
* Class Color | ||
*/ | ||
class Color extends Component | ||
{ | ||
use GlobalAttributesTrait; | ||
|
||
/** | ||
* The specific attributes for the Color component | ||
*/ | ||
private AttributeCollection $specificAttributes; | ||
|
||
/** | ||
* Standard mount function | ||
* | ||
* @throws \T73biz\LwBits\Exceptions\InvalidAttributeException | ||
*/ | ||
public function mount(): void | ||
{ | ||
$this->setGlobalAttributes(); | ||
$this->specificAttributes = new AttributeCollection(); | ||
} | ||
|
||
/** | ||
* Standard render function | ||
*/ | ||
public function render(): Application|ContractedApplication|ContractedView|Factory|View | ||
{ | ||
return view( | ||
'lw-bits::forms.inputs.color', | ||
[ | ||
'globalAttributes' => $this->getGlobalAttributes(), | ||
'specificAttributes' => $this->parseAttributes($this->specificAttributes), | ||
'slot' => '', | ||
] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace T73biz\LwBits\Components\Forms\Inputs; | ||
|
||
use Illuminate\Contracts\Foundation\Application as ContractedApplication; | ||
use Illuminate\Contracts\View\Factory; | ||
use Illuminate\Contracts\View\View as ContractedView; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\View\View; | ||
use Livewire\Component; | ||
use Livewire\Features\SupportAttributes\AttributeCollection; | ||
use T73biz\LwBits\Components\GlobalAttributesTrait; | ||
|
||
/** | ||
* Class Date | ||
*/ | ||
class Date extends Component | ||
{ | ||
use GlobalAttributesTrait; | ||
|
||
/** | ||
* The specific attributes for the Date component | ||
*/ | ||
private AttributeCollection $specificAttributes; | ||
|
||
/** | ||
* Standard mount function | ||
* | ||
* @throws \T73biz\LwBits\Exceptions\InvalidAttributeException | ||
*/ | ||
public function mount(): void | ||
{ | ||
$this->setGlobalAttributes(); | ||
$this->specificAttributes = new AttributeCollection(); | ||
} | ||
|
||
/** | ||
* Standard render function | ||
*/ | ||
public function render(): Application|ContractedApplication|ContractedView|Factory|View | ||
{ | ||
return view( | ||
'lw-bits::forms.inputs.date', | ||
[ | ||
'globalAttributes' => $this->getGlobalAttributes(), | ||
'specificAttributes' => $this->parseAttributes($this->specificAttributes), | ||
'slot' => '', | ||
] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace T73biz\LwBits\Components\Forms\Inputs; | ||
|
||
use Illuminate\Contracts\Foundation\Application as ContractedApplication; | ||
use Illuminate\Contracts\View\Factory; | ||
use Illuminate\Contracts\View\View as ContractedView; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\View\View; | ||
use Livewire\Component; | ||
use Livewire\Features\SupportAttributes\AttributeCollection; | ||
use T73biz\LwBits\Components\GlobalAttributesTrait; | ||
|
||
/** | ||
* Class DateTimeLocal | ||
*/ | ||
class DateTimeLocal extends Component | ||
{ | ||
use GlobalAttributesTrait; | ||
|
||
/** | ||
* The specific attributes for the DateTimeLocal component | ||
*/ | ||
private AttributeCollection $specificAttributes; | ||
|
||
/** | ||
* Standard mount function | ||
* | ||
* @throws \T73biz\LwBits\Exceptions\InvalidAttributeException | ||
*/ | ||
public function mount(): void | ||
{ | ||
$this->setGlobalAttributes(); | ||
$this->specificAttributes = new AttributeCollection(); | ||
} | ||
|
||
/** | ||
* Standard render function | ||
*/ | ||
public function render(): Application|ContractedApplication|ContractedView|Factory|View | ||
{ | ||
return view( | ||
'lw-bits::forms.inputs.datetimelocal', | ||
[ | ||
'globalAttributes' => $this->getGlobalAttributes(), | ||
'specificAttributes' => $this->parseAttributes($this->specificAttributes), | ||
'slot' => '', | ||
] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace T73biz\LwBits\Components\Forms\Inputs; | ||
|
||
use Illuminate\Contracts\Foundation\Application as ContractedApplication; | ||
use Illuminate\Contracts\View\Factory; | ||
use Illuminate\Contracts\View\View as ContractedView; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\View\View; | ||
use Livewire\Component; | ||
use Livewire\Features\SupportAttributes\AttributeCollection; | ||
use T73biz\LwBits\Components\GlobalAttributesTrait; | ||
|
||
/** | ||
* Class Email | ||
*/ | ||
class Email extends Component | ||
{ | ||
use GlobalAttributesTrait; | ||
|
||
/** | ||
* The specific attributes for the Email component | ||
*/ | ||
private AttributeCollection $specificAttributes; | ||
|
||
/** | ||
* Standard mount function | ||
* | ||
* @throws \T73biz\LwBits\Exceptions\InvalidAttributeException | ||
*/ | ||
public function mount(): void | ||
{ | ||
$this->setGlobalAttributes(); | ||
$this->specificAttributes = new AttributeCollection(); | ||
} | ||
|
||
/** | ||
* Standard render function | ||
*/ | ||
public function render(): Application|ContractedApplication|ContractedView|Factory|View | ||
{ | ||
return view( | ||
'lw-bits::forms.inputs.email', | ||
[ | ||
'globalAttributes' => $this->getGlobalAttributes(), | ||
'specificAttributes' => $this->parseAttributes($this->specificAttributes), | ||
'slot' => '', | ||
] | ||
); | ||
} | ||
} |
Oops, something went wrong.