Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Feb 9, 2024
1 parent e409b9a commit e8b73c1
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion public/css/filament/filament/app.css

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions public/js/filament/forms/components/file-upload.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
isOpenable: @js($isOpenable()),
isPreviewable: @js($isPreviewable()),
isReorderable: @js($isReorderable()),
itemPanelAspectRatio: @js($getItemPanelAspectRatio()),
loadingIndicatorPosition: @js($getLoadingIndicatorPosition()),
locale: @js(app()->getLocale()),
panelAspectRatio: @js($getPanelAspectRatio()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
$icon = $getIcon($state);
$iconColor = $getIconColor($state);
$itemIsCopyable = $isCopyable($state);
$lineClamp = $getLineClamp($state);
$size = $getSize($state);
$weight = $getWeight($state);
Expand Down Expand Up @@ -200,6 +201,7 @@
@class([
'group-hover/item:underline group-focus-visible/item:underline' => $url,
$proseClasses => $isProse || $isMarkdown,
'line-clamp-[--line-clamp]' => $lineClamp,
match ($size) {
TextEntrySize::ExtraSmall, 'xs' => 'text-xs',
TextEntrySize::Small, 'sm', null => 'text-sm leading-6',
Expand Down Expand Up @@ -236,6 +238,7 @@
shades: [400, 600],
alias: 'infolists::components.text-entry.item.label',
) => ! in_array($color, [null, 'gray']),
"--line-clamp: {$lineClamp}" => $lineClamp,
])
>
{{ $formattedState }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
$icon = $getIcon($state);
$iconColor = $getIconColor($state) ?? $color;
$itemIsCopyable = $isCopyable($state);
$lineClamp = $getLineClamp($state);
$size = $getSize($state);
$weight = $getWeight($state);
Expand Down Expand Up @@ -197,6 +198,7 @@
@class([
'fi-ta-text-item-label',
'group-hover/item:underline group-focus-visible/item:underline' => $url,
'line-clamp-[--line-clamp]' => $lineClamp,
match ($size) {
TextColumnSize::ExtraSmall, 'xs' => 'text-xs',
TextColumnSize::Small, 'sm', null => 'text-sm leading-6',
Expand Down Expand Up @@ -233,6 +235,7 @@
shades: [400, 600],
alias: 'tables::columns.text-column.item.label',
) => ! in_array($color, [null, 'gray']),
"--line-clamp: {$lineClamp}" => $lineClamp,
])
>
{{ $formattedState }}
Expand Down
28 changes: 11 additions & 17 deletions resources/views/vendor/filament/components/modal/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
}"
@if ($id)
x-on:{{ $closeEventName }}.window="if ($event.detail.id === '{{ $id }}') close()"
x-on:{{ $openEventName }}.window="if ($event.detail.id === '{{ $id }}') open()"
x-on:{{ $openEventName }}.window="if ($event.detail.id === '{{ $id }}') open()"
@endif
x-trap.noscroll="isOpen"
x-bind:class="{
Expand All @@ -108,13 +108,7 @@
</div>
@endif

<div
x-cloak
x-show="isOpen"
@if ($closeByClickingAway)
x-on:click="{{ $closeEventHandler }}"
@endif
>
<div x-cloak x-show="isOpen">
<div
aria-hidden="true"
x-show="isOpen"
Expand All @@ -133,6 +127,9 @@
>
<div
x-ref="modalContainer"
@if ($closeByClickingAway)
x-on:click.self="{{ $closeEventHandler }}"
@endif
{{
$attributes->class([
'relative grid min-h-full grid-rows-[1fr_auto_1fr] justify-items-center sm:grid-rows-[1fr_auto_3fr]',
Expand All @@ -148,24 +145,21 @@
$watch('isOpen', () => (isShown = isOpen))
})
"
@if ($closeByClickingAway)
x-on:click.stop
@endif
x-on:keydown.window.escape="{{ $closeEventHandler }}"
x-show="isShown"
x-transition:enter="duration-300"
x-transition:leave="duration-300"
@if ($width === MaxWidth::Screen)
@elseif ($slideOver)
x-transition:enter-start="translate-x-full rtl:-translate-x-full"
x-transition:enter-end="translate-x-0"
x-transition:leave-start="translate-x-0"
x-transition:leave-end="translate-x-full rtl:-translate-x-full"
x-transition:enter-end="translate-x-0"
x-transition:leave-start="translate-x-0"
x-transition:leave-end="translate-x-full rtl:-translate-x-full"
@else
x-transition:enter-start="scale-95 opacity-0"
x-transition:enter-end="scale-100 opacity-100"
x-transition:leave-start="scale-100 opacity-100"
x-transition:leave-end="scale-95 opacity-0"
x-transition:enter-end="scale-100 opacity-100"
x-transition:leave-start="scale-100 opacity-100"
x-transition:leave-end="scale-95 opacity-0"
@endif
@class([
'fi-modal-window pointer-events-auto relative row-start-2 flex w-full cursor-default flex-col bg-white shadow-xl ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10',
Expand Down

0 comments on commit e8b73c1

Please sign in to comment.