Skip to content

1.x #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 10, 2025
Merged

1.x #25

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Components/Checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ public function render(): \Closure|View

return view('lazy::checkbox', $this->mergeData($data, [
'checkbox',
//colors
// colors
'checkbox-primary' => $color === 'primary',
'checkbox-secondary' => $color === 'secondary',
'checkbox-accent' => $color === 'accent',
'checkbox-success' => $color === 'success',
'checkbox-warning' => $color === 'warning',
'checkbox-info' => $color === 'info',
'checkbox-error' => $color === 'error',
//sizes
// sizes
'checkbox-lg' => $size === 'lg',
'checkbox-md' => $size === 'md',
'checkbox-sm' => $size === 'sm',
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function render(): \Closure|View

return view('lazy::input', $this->mergeData($data, [
'input',
//colors
// colors
'input-bordered' => ! $color || $color === 'bordered' || $color !== 'no-border',
'input-ghost' => $color === 'ghost',
'input-primary' => $color === 'primary',
Expand All @@ -45,7 +45,7 @@ public function render(): \Closure|View
'input-success' => $color === 'success',
'input-warning' => $color === 'warning',
'input-error' => $color === 'error',
//sizes
// sizes
'input-lg' => $size === 'lg',
'input-md' => $size === 'md',
'input-sm' => $size === 'sm',
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Radio.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ public function render(): \Closure|View

return view('lazy::radio', $this->mergeData($data, [
'radio',
//colors
// colors
'radio-primary' => $color === 'primary',
'radio-secondary' => $color === 'secondary',
'radio-accent' => $color === 'accent',
'radio-info' => $color === 'info',
'radio-success' => $color === 'success',
'radio-warning' => $color === 'warning',
'radio-error' => $color === 'error',
//sizes
// sizes
'radio-lg' => $size === 'lg',
'radio-md' => $size === 'md',
'radio-sm' => $size === 'sm',
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Range.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public function render(): \Closure|View

return view('lazy::range', $this->mergeData($data, [
'range',
//colors
// colors
'range-primary' => $color === 'primary',
'range-secondary' => $color === 'secondary',
'range-accent' => $color === 'accent',
'range-info' => $color === 'info',
'range-success' => $color === 'success',
'range-warning' => $color === 'warning',
'range-error' => $color === 'error',
//sizes
// sizes
'range-lg' => $size === 'lg',
'range-md' => $size === 'md',
'range-sm' => $size === 'sm',
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Richtext.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function render(): \Closure|View

return view('lazy::richtext', $this->mergeData($data, [
'textarea',
//colors
// colors
'textarea-bordered' => ! $color || $color === 'bordered' || $color !== 'no-border',
'textarea-ghost' => $color === 'ghost',
'textarea-primary' => $color === 'primary',
Expand All @@ -44,7 +44,7 @@ public function render(): \Closure|View
'textarea-success' => $color === 'success',
'textarea-warning' => $color === 'warning',
'textarea-error' => $color === 'error',
//sizes
// sizes
'textarea-lg' => $size === 'lg',
'textarea-md' => $size === 'md',
'textarea-sm' => $size === 'sm',
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function render(): \Closure|View

return view('lazy::select', $this->mergeData($data, [
'select',
//colors
// colors
'select-bordered' => ! $color || $color === 'bordered' || $color !== 'no-border',
'select-ghost' => $color === 'ghost',
'select-primary' => $color === 'primary',
Expand All @@ -45,7 +45,7 @@ public function render(): \Closure|View
'select-success' => $color === 'success',
'select-warning' => $color === 'warning',
'select-error' => $color === 'error',
//sizes
// sizes
'select-lg' => $size === 'lg',
'select-md' => $size === 'md',
'select-sm' => $size === 'sm',
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function render(): \Closure|View
return view('lazy::tabs', $this->mergeData($data, [
'tabs',
'tabs-boxed' => $this->type === 'boxed',
//sizes
// sizes
'tabs-lg' => $size === 'lg',
'tabs-md' => $size === 'md',
'tabs-sm' => $size === 'sm',
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function render(): \Closure|View

return view('lazy::textarea', $this->mergeData($data, [
'textarea',
//colors
// colors
'textarea-bordered' => ! $color || $color === 'bordered' || $color !== 'no-border',
'textarea-ghost' => $color === 'ghost',
'textarea-primary' => $color === 'primary',
Expand All @@ -36,7 +36,7 @@ public function render(): \Closure|View
'textarea-success' => $color === 'success',
'textarea-warning' => $color === 'warning',
'textarea-error' => $color === 'error',
//sizes
// sizes
'textarea-lg' => $size === 'lg',
'textarea-md' => $size === 'md',
'textarea-sm' => $size === 'sm',
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Toggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public function render(): \Closure|View

return view('lazy::toggle', $this->mergeData($data, [
'toggle',
//colors
// colors
'toggle-primary' => $color === 'primary',
'toggle-secondary' => $color === 'secondary',
'toggle-accent' => $color === 'accent',
//sizes
// sizes
'toggle-lg' => $size === 'lg',
'toggle-md' => $size === 'md',
'toggle-sm' => $size === 'sm',
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Tooltip.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function render(): Closure
'tooltip-right' => $position === 'right',
'tooltip-bottom' => $position === 'bottom',
'tooltip-left' => $position === 'left',
//colors
// colors
'tooltip-primary' => $color === 'primary',
'tooltip-secondary' => $color === 'secondary',
'tooltip-accent' => $color === 'accent',
Expand Down
2 changes: 1 addition & 1 deletion src/LazyUiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function configurePackage(Package $package): void
->hasConfigFile(['lazy/themes'])
->hasViewComponents('lazy',
// Dropdown::class,
//Carousel::class,
// Carousel::class,
Accordion::class,
Alert::class,
Avatar::class,
Expand Down
2 changes: 1 addition & 1 deletion tests/Components/BadgeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Step2dev\LazyUI\Components\Badge;

it('should have an array of allowed position', function () {
$component = new Badge();
$component = new Badge;

expect($component->allowedPosition())->toBeArray()->not()->toBeEmpty();
});
Expand Down
4 changes: 2 additions & 2 deletions tests/Components/BtnDeleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
->assertSee('btn-outline');
});

//it('can render with disabled attribute', function () {
// it('can render with disabled attribute', function () {
// $this
// ->blade('<x-lazy-btn-delete disabled/>')
// ->assertSee('btn-disabled')
// ->assertSee('disabled');
//});
// });
2 changes: 1 addition & 1 deletion tests/Components/BtnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Step2dev\LazyUI\Components\Btn;

it('should have an array of allowed colors', function () {
$component = new Btn();
$component = new Btn;

expect($component->allowedColors())->toBeArray();
});
Expand Down