-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dddd003
commit b836a59
Showing
37 changed files
with
419 additions
and
179 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 |
---|---|---|
|
@@ -6,6 +6,5 @@ composer.lock | |
/.vscode | ||
node_modules/ | ||
yarn.lock | ||
mix-manifest.json | ||
package-lock.json | ||
.DS_Store |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
{ | ||
"/livewire-tables/app.css": "/livewire-tables/app.css?id=ed1b839a769f2a0479f8cd315e809815" | ||
} |
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 |
---|---|---|
@@ -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": { | ||
|
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
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
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
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 |
---|---|---|
@@ -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> |
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 |
---|---|---|
@@ -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> |
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 |
---|---|---|
@@ -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> |
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
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 |
---|---|---|
@@ -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> |
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 |
---|---|---|
@@ -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> |
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
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
Oops, something went wrong.