Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User interface updates (round 3) #385

Open
11 tasks
agentphoenix opened this issue Jul 9, 2024 · 2 comments
Open
11 tasks

User interface updates (round 3) #385

agentphoenix opened this issue Jul 9, 2024 · 2 comments
Milestone

Comments

@agentphoenix
Copy link
Member

agentphoenix commented Jul 9, 2024

Blocked by future updates to Catalyst.

  • Combobox
  • Command palette
  • Date picker
  • Description list
  • File input
  • Headings
  • Notification
  • Radio panel
  • Slide-over
  • Tabs
  • Tooltip

Flux

@agentphoenix agentphoenix converted this from a draft issue Jul 9, 2024
@agentphoenix agentphoenix moved this to Todo in Nova 3 Jul 9, 2024
@agentphoenix agentphoenix moved this from Todo to Blocked in Nova 3 Jul 9, 2024
@agentphoenix agentphoenix added this to the Beta milestone Aug 29, 2024
@agentphoenix agentphoenix moved this from Blocked to Todo in Nova 3 Aug 29, 2024
@agentphoenix agentphoenix modified the milestones: Beta, 3.0 Sep 25, 2024
@agentphoenix agentphoenix added this to the Beta milestone Jan 4, 2025
@agentphoenix agentphoenix moved this from Todo to Blocked in Nova 3 Jan 19, 2025
@agentphoenix
Copy link
Member Author

Blocked by the release of Tailwind 4 and Filament 4

@agentphoenix
Copy link
Member Author

agentphoenix commented Jan 27, 2025

Updated modal content view

https://dribbble.com/shots/25441770-Share-your-project-Untitled-UI

Image Image Image Image

modal-content.blade.php

@props([
    'icon' => null,
    'color' => null,
    'title',
    'action',
])

@php
    $color ??= $action->getColor();
    $icon ??= $action->getIcon();
@endphp

{{-- format-ignore-start --}}
<div class="flex flex-col gap-6">
    @if ($icon)
        <div class="inline-flex">
            <div class="p-[3px] rounded-xl bg-white ring-1 ring-gray-950/15 shadow-lg">
                <div
                    @class([
                        'rounded-[calc(theme(borderRadius.xl)-3px)] p-2 ring-1 ring-inset ring-gray-950/10',
                        match ($color) {
                            'primary' => 'bg-primary-500',
                            'danger' => 'bg-danger-500',
                            'info' => 'bg-info-500',
                            'success' => 'bg-success-500',
                            'warning' => 'bg-warning-500',
                            'gray' => 'bg-gray-800',
                            default => $color,
                        }
                    ])
                >
                    <x-icon :name="$icon" size="lg" class="text-white"></x-icon>
                </div>
            </div>
        </div>
    @endif

    <x-h2>{{ $title }}</x-h2>

    <div class="flex flex-col gap-4">
        {{ $slot }}
    </div>
</div>
{{-- format-ignore-end --}}

Update calls to modalContent:

$this->modalContent(fn (?Model $record): View => view($this->modalContentView, [
    'record' => $record,
    'action' => $this,
]));

Update the use of the modal-content component:

<x-filament.modal-content :$action color="gray" title="Add-on actions">

notification-discord-global-settings.blade.php

<x-filament.modal-content :$action color="bg-[#5865f2]" title="Global Discord settings">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Blocked
Development

No branches or pull requests

1 participant