Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 1215474

Browse files
committed
wip
1 parent 2249c91 commit 1215474

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+633
-594
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: true
1616
matrix:
1717
os: [ubuntu-latest]
18-
php: [7.4, 8.0]
18+
php: [8.0]
1919
laravel: [8.*]
2020
dependency-version: [prefer-lowest, prefer-stable]
2121
include:

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.4|^8.0",
25-
"ext-json": "*",
24+
"php": "^8.0",
2625
"illuminate/filesystem": "^8.0",
2726
"illuminate/support": "^8.0",
2827
"illuminate/view": "^8.0"

config/form-components.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
|
197197
*/
198198
'assets' => [
199-
'alpine' => 'https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.7.0/dist/alpine.min.js',
199+
'alpine' => 'https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.0/dist/alpine.min.js',
200200

201201
'flatpickr' => [
202202
'https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css',

psalm.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@
1818
<plugins>
1919
<pluginClass class="Psalm\LaravelPlugin\Plugin"/>
2020
</plugins>
21+
22+
<issueHandlers>
23+
<UndefinedThisPropertyFetch errorLevel="suppress" />
24+
</issueHandlers>
2125
</psalm>

resources/lang/en/messages.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
return [
4+
'filepond_instructions' => '<span class="filepond--label-action">Upload a file</span> or drag and drop',
5+
'file_upload_label' => 'Select File',
6+
'file_upload_processing' => 'Processing...',
7+
'custom_select_filter_placeholder' => 'Search...',
8+
'custom_select_clear_button' => 'Clear selected',
9+
'custom_select_placeholder' => 'Select an option',
10+
'custom_select_empty_text' => 'No options available...',
11+
'date_picker_placeholder' => 'Y-m-d',
12+
'timezone_select_placeholder' => 'Select a timezone',
13+
];

resources/sass/utils/_choice.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@
1717
.choice-description {
1818
@apply text-blue-gray-500;
1919
}
20+
21+
// Disabled state
22+
.form-checkbox,
23+
.form-radio {
24+
&[disabled],
25+
&.disabled {
26+
@apply opacity-75 text-blue-gray-300;
27+
}
28+
}

resources/sass/utils/_input.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
py-2
1111
border-blue-gray-300
1212
rounded-md
13+
placeholder-gray-400
1314
sm:text-sm;
1415

1516
&:not(.password-toggleable) {

resources/views/components/choice/checkbox-or-radio.blade.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="choice-container">
22
<div class="choice-input">
33
<input {!! $attributes->merge(['class' => $type === 'checkbox' ? 'form-checkbox' : 'form-radio'])->filter(fn ($value, $key) => $key !== 'type') !!}
4-
name="{{ $name }}"
4+
@if ($name) name="{{ $name }}" @endif
55
@if ($id) id="{{ $id }}" @endif
66
type="{{ $type }}"
77
@if ($value) value="{{ $value }}" @endif
@@ -11,13 +11,15 @@
1111

1212
@if (! $slot->isEmpty() || $label || $description)
1313
<div class="choice-label">
14-
<label for="{{ $id }}">
15-
@if ($label)
16-
{{ $label }}
17-
@else
18-
{{ $slot }}
19-
@endif
20-
</label>
14+
@if (! $slot->isEmpty() || $label)
15+
<label for="{{ $id }}">
16+
@if ($label)
17+
{{ $label }}
18+
@else
19+
{{ $slot }}
20+
@endif
21+
</label>
22+
@endif
2123

2224
@if ($description)
2325
<p class="choice-description">{{ $description }}</p>

resources/views/components/files/file-pond.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
>
6969
<input x-ref="input"
7070
type="file"
71-
style="display:none;"
71+
style="display: none;"
7272
@if ($accepts()) accept="{{ $accepts() }}" @endif
7373

7474
@if ($hasErrorsAndShow($name))

resources/views/components/files/file-upload.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class="space-y-4 w-full"
1616
class="sr-only"
1717
type="file"
1818
@if ($multiple) multiple @endif
19-
name="{{ $name }}"
19+
@if ($name) name="{{ $name }}" @endif
2020
@if ($id) id="{{ $id }}" @endif
2121
@if ($accepts()) accept="{{ $accepts() }}" @endif
2222

@@ -49,7 +49,7 @@ class="file-upload__label"
4949
<div class="relative" x-show.transition.opacity.duration.150ms="isUploading" x-cloak>
5050
<div class="flex mb-2 items-center justify-between">
5151
<div class="file-upload__badge inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium leading-4 bg-green-100 text-green-800">
52-
{{ __('Processing...') }}
52+
{{ __('form-components::messages.file_upload_processing') }}
5353
</div>
5454

5555
<div class="text-right">

0 commit comments

Comments
 (0)