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
Showing
13 changed files
with
157 additions
and
183 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
packages/admin/resources/views/components/layouts/app/topbar/user-menu.blade.php
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,5 @@ | ||
{{-- TODO: use dropdown here --}} | ||
|
||
@php | ||
$user = \Filament\Facades\Filament::auth()->user(); | ||
@endphp | ||
|
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
10 changes: 10 additions & 0 deletions
10
packages/forms/resources/views/components/dropdown/index.blade.php
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,10 @@ | ||
@captureSlots([ | ||
'trigger', | ||
]) | ||
|
||
<x-filament-support::dropdown | ||
:attributes="\Filament\Support\prepare_inherited_attributes($attributes)->merge($slots)" | ||
:dark-mode="config('forms.dark_mode')" | ||
> | ||
{{ $slot }} | ||
</x-filament-support::dropdown> |
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
56 changes: 56 additions & 0 deletions
56
packages/support/resources/views/components/dropdown/index.blade.php
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,56 @@ | ||
@props([ | ||
'darkMode' => false, | ||
'width' => 'sm', | ||
'trigger' => null, | ||
]) | ||
|
||
<div {{ $attributes->class('relative filament-dropdown') }} x-data="{}"> | ||
@isset($trigger) | ||
<div | ||
x-on:click="$refs.panel.toggle" | ||
{{ $trigger->attributes->class(['filament-dropdown-trigger']) }} | ||
> | ||
{{ $trigger }} | ||
</div> | ||
@endisset | ||
|
||
<div | ||
x-ref="panel" | ||
x-cloak | ||
x-transition | ||
x-transition:enter="transition" | ||
x-transition:enter-start="-translate-y-1 opacity-0" | ||
x-transition:enter-end="translate-y-0 opacity-100" | ||
x-transition:leave="transition" | ||
x-transition:leave-start="translate-y-0 opacity-100" | ||
x-transition:leave-end="-translate-y-1 opacity-0" | ||
{{-- x-float.placement.bottom.flip.offset="{ offset: 8 }" --}} | ||
{{-- x-float.placement.bottom-start.flip.offset="{ offset: 8 }" --}} | ||
{{-- x-float.placement.bottom-end.flip.offset.shift.teleport="{ offset: 8 }" --}} | ||
{{-- x-float.placement.bottom-end.offset="{ offset: 8 }" --}} | ||
x-float.placement.bottom-end.offset="{ offset: 8 }" | ||
@class([ | ||
'filament-dropdown-panel absolute hidden z-20 w-screen shadow-xl rounded-xl top-full', | ||
match ($width) { | ||
'xs' => 'max-w-xs', | ||
'md' => 'max-w-md', | ||
'lg' => 'max-w-lg', | ||
'xl' => 'max-w-xl', | ||
'2xl' => 'max-w-2xl', | ||
'3xl' => 'max-w-3xl', | ||
'4xl' => 'max-w-4xl', | ||
'5xl' => 'max-w-5xl', | ||
'6xl' => 'max-w-6xl', | ||
'7xl' => 'max-w-7xl', | ||
default => 'max-w-sm', | ||
}, | ||
]) | ||
> | ||
<ul @class([ | ||
'py-1 space-y-1 bg-white shadow rounded-xl shadow-xl ring-1 ring-gray-900/10 overflow-hidden rounded-xl', | ||
'dark:bg-gray-700 dark:divide-gray-600 dark:ring-white/20' => $darkMode, | ||
])> | ||
{{ $slot }} | ||
</ul> | ||
</div> | ||
</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
1 change: 0 additions & 1 deletion
1
packages/tables/resources/views/components/bulk-actions/trigger.blade.php
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,6 +1,5 @@ | ||
<x-tables::icon-button | ||
icon="heroicon-o-dots-vertical" | ||
x-on:click="$refs.panel.toggle" | ||
:label="__('tables::table.buttons.open_actions.label')" | ||
{{ $attributes->class(['filament-tables-bulk-actions-trigger']) }} | ||
/> |
10 changes: 10 additions & 0 deletions
10
packages/tables/resources/views/components/dropdown/index.blade.php
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,10 @@ | ||
@captureSlots([ | ||
'trigger', | ||
]) | ||
|
||
<x-filament-support::dropdown | ||
:attributes="\Filament\Support\prepare_inherited_attributes($attributes)->merge($slots)" | ||
:dark-mode="config('tables.dark_mode')" | ||
> | ||
{{ $slot }} | ||
</x-filament-support::dropdown> |
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
1 change: 0 additions & 1 deletion
1
packages/tables/resources/views/components/filters/trigger.blade.php
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,6 +1,5 @@ | ||
<x-tables::icon-button | ||
icon="heroicon-o-filter" | ||
x-on:click="$refs.popoverPanel.toggle" | ||
:label="__('tables::table.buttons.filter.label')" | ||
{{ $attributes->class(['filament-tables-filters-trigger']) }} | ||
/> |
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.