Skip to content

Commit

Permalink
Update split_packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 26, 2022
1 parent dddd003 commit b836a59
Show file tree
Hide file tree
Showing 37 changed files with 419 additions and 179 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ composer.lock
/.vscode
node_modules/
yarn.lock
mix-manifest.json
package-lock.json
.DS_Store
9 changes: 3 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "lunarphp/livewire-tables",
"type": "project",
"description": "Livewire Tables",
"keywords": ["lunarphp", "laravel", "livewire", "tables"],
"keywords": ["lunar", "laravel", "livewire", "tables"],
"license": "MIT",
"authors": [
{
"name": "Lunar",
"name": "LunarPHP",
"homepage": "https://lunarphp.io/"
}
],
Expand All @@ -15,7 +15,7 @@
"livewire/livewire": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5.10",
"phpunit/phpunit": "^9.5",
"mockery/mockery": "^1.4.4",
"orchestra/testbench": "^6.0|^7.0",
"laravel/pint": "^1.1"
Expand All @@ -31,9 +31,6 @@
}
},
"extra": {
"lunar": {
"name": "Livewire Tables"
},
"laravel": {
"providers": [
"Lunar\\LivewireTables\\LivewireTablesServiceProvider"
Expand Down
2 changes: 1 addition & 1 deletion dist/livewire-tables/app.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"/livewire-tables/app.css": "/livewire-tables/app.css?id=ed1b839a769f2a0479f8cd315e809815"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "lunarphp-livewire-tables",
"name": "lunar-livewire-tables",
"version": "1.0.0",
"main": "index.js",
"repository": "https://[email protected]/lunarphp/livewire-tables",
"repository": "https://[email protected]/lunar/livewire-tables",
"author": "LunarPHP <[email protected]>",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</coverage>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">packages/**/tests</directory>
<directory suffix="Test.php">tests</directory>
</testsuite>
<!-- <testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
Expand Down
1 change: 1 addition & 0 deletions resources/views/action-cell.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class="lt-relative">
<span>
Actions
</span>

<svg xmlns="http://www.w3.org/2000/svg"
class="lt-w-4 lt-h-4"
viewBox="0 0 20 20"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/actions/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class="lt-text-xs lt-font-medium lt-rounded-md lt-text-gray-600 lt-block lt-px-3
</span>
</a>
@else
<p class="text-sm font-medium lt-text-gray-600 lt-px-3 lt-py-2">
<p class="lt-text-sm lt-font-medium lt-text-gray-600 lt-px-3 lt-py-2">
<span class="lt-capitalize">
{{ $label }}
</span>
Expand Down
13 changes: 11 additions & 2 deletions resources/views/actions/bulk.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<div>
<button x-on:click="showFilters = !showFilters"
<div x-data="{ showModal: false }">
<button type="button"
wire:click="$set('showModal', true)"
class="lt-px-3 lt-py-2 lt-text-sm lt-font-medium lt-text-gray-600 lt-transition lt-bg-white lt-border lt-border-gray-200 lt-rounded-md hover:lt-bg-gray-50 hover:lt-text-gray-700 hover:lt-shadow-sm focus:lt-outline-none focus:lt-ring focus:lt-ring-blue-100 focus:lt-border-blue-300">
<span class="lt-capitalize">
{{ $label }}
</span>
</button>

<x-tables::support.modal wire:model="showModal">
<div>
@livewire('hub.components.tables.actions.update-status', [
'ids' => $selectedIds,
])
</div>
</x-tables::support.modal>
</div>
3 changes: 2 additions & 1 deletion resources/views/columns/avatar.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<div>
<img src="{{ $value }}" class="rounded-full w-6 h-6" />
<img src="{{ $value }}"
class="lt-rounded-full lt-w-6 lt-h-6" />
</div>
18 changes: 10 additions & 8 deletions resources/views/columns/badge.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<div>
<span @class([
'text-xs inline-block py-1 px-2 rounded',
'text-green-600 bg-green-50' => !@empty($success),
'text-yellow-600 bg-yellow-50' => !@empty($warning),
'text-red-600 bg-red-50' => !@empty($danger),
])>
{{ $value }}
</span>
<span @class([
'lt-text-xs lt-inline-block lt-py-1 lt-px-2 lt-rounded',
'lt-text-green-600 lt-bg-green-50' => !@empty($success),
'lt-text-yellow-600 lt-bg-yellow-50' => !@empty(
$warning
),
'lt-text-red-600 lt-bg-red-50' => !@empty($danger),
])>
{{ $value }}
</span>
</div>
6 changes: 4 additions & 2 deletions resources/views/columns/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
<a href="{{ call_user_func($url, $record) }}"
class="lt-text-blue-600 hover:lt-underline">
@endif
{{ $value }}
@if($url)

{{ $value }}

@if ($url)
</a>
@endif
</div>
10 changes: 6 additions & 4 deletions resources/views/columns/image.blade.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<div>
@if($url)
@if ($url)
<a href="{{ call_user_func($url, $record) }}">
@endif
@if ($thumbnail = $value)
<img class="rounded w-10"
<img class="lt-rounded lt-w-10 lt-h-10"
src="{{ $thumbnail }}"
loading="lazy" />
@else
<x-hub::icon ref="photograph" class="w-10 h-10 text-gray-300" />
<x-hub::icon ref="photograph"
class="lt-w-10 lt-h-10 lt-text-gray-300" />
@endif
@if($url)

@if ($url)
</a>
@endif
</div>
9 changes: 4 additions & 5 deletions resources/views/columns/status.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<div>
<span
@class([
'block w-3 h-3 border rounded-full',
'border-green-500 bg-green-400' => !!$value,
])></span>
<span @class([
'lt-block lt-w-3 lt-h-3 lt-border lt-rounded-full',
'lt-border-green-500 lt-bg-green-400' => !!$value,
])></span>
</div>
42 changes: 21 additions & 21 deletions resources/views/filters/date.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@ class="lt-block lt-text-xs lt-font-medium lt-text-gray-700 lt-capitalize">
{{ $heading }}
</label>

<div
x-data="{
value: @entangle('filters.'.$field),
<div x-data="{
value: @entangle('filters.' . $field),
init() {
this.$nextTick(() => {
flatpickr($refs.input, {
mode: 'range',
this.$nextTick(() => {
flatpickr($refs.input, {
mode: 'range',
})
})
})
}
}"
@change="value = $event.target.value"
class="lt-flex lt-relative lt-mt-1"
>
<x-hub::input.text
x-ref="input"
type="text"
x-bind:value="value"
/>
<div x-show="value" class="absolute right-0 mr-3">
<button x-on:click="value = null" type="button" class="lt-inline-flex lt-items-center lt-text-sm lt-text-gray-400 lt-hover:text-gray-800">
<x-hub::icon ref="x-circle" class="w-4 mt-2" />
</button>
</div>
}"
x-on:change="value = $event.target.value"
class="lt-flex lt-relative lt-mt-1">
<x-hub::input.text x-ref="input"
type="text"
x-bind:value="value" />
<div x-show="value"
class="lt-absolute lt-right-0 lt-mr-3">
<button x-on:click="value = null"
type="button"
class="lt-inline-flex lt-items-center lt-text-sm lt-text-gray-400 lt-hover:text-gray-800">
<x-hub::icon ref="x-circle"
class="lt-w-4 l-h-4 lt-mt-2" />
</button>
</div>
</div>

</div>
2 changes: 1 addition & 1 deletion resources/views/head.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<th class="lt-px-4 lt-py-3 lt-text-sm lt-font-medium lt-text-left lt-text-gray-700">
<th class="lt-px-4 lt-py-3 lt-text-sm lt-font-medium lt-text-left lt-text-gray-700 lt-whitespace-nowrap">
@unless($sortable)
<span class="lt-capitalize">
{{ $heading }}
Expand Down
Loading

0 comments on commit b836a59

Please sign in to comment.