generated from filamentphp/plugin-skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from 199ocero/enhancement
added css hook classes and minor bug fixes
- Loading branch information
Showing
8 changed files
with
92 additions
and
45 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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@props(['heading', 'description' => null, 'aside' => true]) | ||
|
||
<section @class([ | ||
'fi-timeline-section', | ||
'bg-white shadow-sm rounded-xl ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10' => !$aside, | ||
'grid items-start grid-cols-1 gap-x-6 gap-y-4 md:grid-cols-3' => $aside, | ||
])> | ||
<header @class([ | ||
'fi-timeline-section-header', | ||
'flex flex-col gap-3 px-6 py-4 overflow-hidden sm:flex-row sm:items-center' => !$aside, | ||
'flex flex-col gap-3 overflow-hidden sm:flex-row sm:items-center' => $aside, | ||
])> | ||
<div class="grid flex-1 gap-y-1"> | ||
<h3 | ||
class="text-base font-semibold leading-6 fi-timeline-section-header-heading text-gray-950 dark:text-white"> | ||
{{ $heading }} | ||
</h3> | ||
<p class="text-sm text-gray-500 fi-timeline-section-header-description dark:text-gray-400"> | ||
{{ $description }} | ||
</p> | ||
</div> | ||
</header> | ||
|
||
@if ($aside) | ||
<div | ||
class="p-6 bg-white shadow-sm fi-timeline-section-content md:col-span-2 rounded-xl ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10"> | ||
{{ $slot }} | ||
</div> | ||
@else | ||
<div class="p-6 border-t border-gray-200 fi-timeline-section-content dark:border-white/10"> | ||
{{ $slot }} | ||
</div> | ||
@endif | ||
</section> |
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,3 @@ | ||
<span class="flex-shrink-0 text-xs font-medium text-gray-500 uppercase dark:text-gray-400"> | ||
<span class="flex-shrink-0 text-xs font-medium text-gray-500 uppercase fi-timeline-item-date dark:text-gray-400"> | ||
{{ $getState() != null ? $getDate($getState()) : $getPlaceholder() }} | ||
</span> |
2 changes: 1 addition & 1 deletion
2
resources/views/infolists/components/activity-description.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
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