Skip to content

Commit e4f4ee9

Browse files
committed
Replace blade ui kit
1 parent 60c86ce commit e4f4ee9

19 files changed

+72
-45
lines changed

config/blade-ui-kit.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@
2525
// 'cron' => Components\Support\Cron::class,
2626
// 'dropdown' => Components\Navigation\Dropdown::class,
2727
// 'easy-mde' => Components\Editors\EasyMDE::class,
28-
'email' => Components\Forms\Inputs\Email::class,
28+
// 'email' => Components\Forms\Inputs\Email::class,
2929
// 'error' => Components\Forms\Error::class,
3030
'form' => Components\Forms\Form::class,
31-
'form-button' => Components\Buttons\FormButton::class,
31+
// 'form-button' => Components\Buttons\FormButton::class,
3232
// 'html' => Components\Layouts\Html::class,
33-
'input' => Components\Forms\Inputs\Input::class,
34-
'label' => Components\Forms\Label::class,
35-
'logout' => Components\Buttons\Logout::class,
33+
// 'input' => Components\Forms\Inputs\Input::class,
34+
// 'label' => Components\Forms\Label::class,
35+
// 'logout' => Components\Buttons\Logout::class,
3636
// 'mapbox' => Components\Maps\Mapbox::class,
37-
'markdown' => Components\Markdown\Markdown::class,
38-
'password' => Components\Forms\Inputs\Password::class,
37+
// 'markdown' => Components\Markdown\Markdown::class,
38+
// 'password' => Components\Forms\Inputs\Password::class,
3939
// 'pikaday' => Components\Forms\Inputs\Pikaday::class,
4040
// 'social-meta' => Components\Layouts\SocialMeta::class,
41-
'textarea' => Components\Forms\Inputs\Textarea::class,
41+
// 'textarea' => Components\Forms\Inputs\Textarea::class,
4242
// 'toc' => Components\Markdown\ToC::class,
4343
// 'trix' => Components\Editors\Trix::class,
4444
// 'unsplash' => Components\Support\Unsplash::class,

resources/views/auth/login.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@extends('layouts.small')
44

55
@section('small-content')
6-
<x-buk-form action="{{ route('login.post') }}" method="POST" class="space-y-6">
6+
<x-forms.form action="{{ route('login.post') }}" method="POST" class="space-y-6">
77
<div>
88
<x-forms.label for="username" />
99

@@ -33,7 +33,7 @@
3333
Sign in
3434
</x-buttons.primary-button>
3535
</div>
36-
</x-buk-form>
36+
</x-forms.form>
3737

3838
<div class="mt-6">
3939
<div class="relative">

resources/views/auth/passwords/email.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@section('small-content')
66
<p class="mb-4">{{ Session::get('status', 'Please fill in your email address below.') }}</p>
77

8-
<x-buk-form action="{{ route('password.forgot.post') }}" method="POST" class="space-y-6">
8+
<x-forms.form action="{{ route('password.forgot.post') }}" method="POST" class="space-y-6">
99
<div>
1010
<x-forms.label for="email" />
1111

@@ -15,5 +15,5 @@
1515
<x-buttons.primary-button type="submit" fullWidth>
1616
Send Password Reset Link
1717
</x-buttons.primary-button>
18-
</x-buk-form>
18+
</x-forms.form>
1919
@endsection

resources/views/auth/passwords/reset.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@extends('layouts.small')
44

55
@section('small-content')
6-
<x-buk-form action="{{ route('password.reset.post') }}" method="POST" class="space-y-6">
6+
<x-forms.form action="{{ route('password.reset.post') }}" method="POST" class="space-y-6">
77
<input type="hidden" name="token" value="{{ $token }}" />
88

99
<div>
@@ -27,5 +27,5 @@
2727
<x-buttons.primary-button type="submit" fullWidth>
2828
Reset Password
2929
</x-buttons.primary-button>
30-
</x-buk-form>
30+
</x-forms.form>
3131
@endsection

resources/views/auth/register.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</span>
1414
</x-buttons.secondary-button>
1515
@else
16-
<x-buk-form action="{{ route('register.post') }}" method="POST" class="space-y-6">
16+
<x-forms.form action="{{ route('register.post') }}" method="POST" class="space-y-6">
1717
<div>
1818
<x-forms.label for="name" />
1919

@@ -47,6 +47,6 @@
4747
<x-buttons.primary-button type="submit" fullWidth>
4848
Register
4949
</x-buttons.primary-button>
50-
</x-buk-form>
50+
</x-forms.form>
5151
@endif
5252
@endsection

resources/views/auth/verify.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
<p class="mb-4">If you did not receive the email, click below to request another.</p>
99

10-
<x-buk-form action="{{ route('verification.resend') }}" method="POST" class="w-full">
10+
<x-forms.form action="{{ route('verification.resend') }}" method="POST" class="w-full">
1111
<x-buttons.primary-button type="submit" fullWidth>
1212
Request Another
1313
</x-buttons.primary-button>
14-
</x-buk-form>
14+
</x-forms.form>
1515
@endsection

resources/views/components/articles/form.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
'selectedTags' => []
77
])
88

9-
<x-buk-form
9+
<x-forms.form
1010
action="{{ route(...$route) }}"
1111
:method="$method"
1212
>
@@ -154,4 +154,4 @@ class="block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:t
154154
@endunless
155155
</div>
156156
</div>
157-
</x-buk-form>
157+
</x-forms.form>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@props(['action' => null, 'method' => 'POST'])
2+
3+
<form method="POST" @isset($action) action="{{ $action }}" @endisset>
4+
@csrf
5+
@method($method)
6+
7+
<button type="submit" {{ $attributes }}>
8+
{{ $slot }}
9+
</button>
10+
</form>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@props([
2+
'action' => null,
3+
'method' => 'POST',
4+
])
5+
6+
<form method="{{ $method !== 'GET' ? 'POST' : 'GET' }}" @isset($action) action="{{ $action }}" @endisset {{ $attributes }}>
7+
@csrf
8+
@method($method)
9+
10+
{{ $slot }}
11+
</form>
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
<x-buk-label :for="$for" {{ $attributes->merge(['class' => 'block text-sm font-medium leading-5 text-gray-700']) }}>
2-
{{ $slot->isNotEmpty() ? $slot : $fallback }}
3-
</x-buk-label>
1+
@props(['for'])
2+
3+
<label :for="$for" {{ $attributes->merge(['class' => 'block text-sm font-medium leading-5 text-gray-700']) }}>
4+
{{ $slot->isNotEmpty() ? $slot : Str::ucfirst(str_replace('_', ' ', $for)) }}
5+
</label>

0 commit comments

Comments
 (0)