2024-11-04 20:27:31 -05:00
|
|
|
<%# locals: (title:, back_path: nil) %>
|
|
|
|
|
2025-07-18 08:30:00 -04:00
|
|
|
<%= render DS::Dialog.new do |dialog| %>
|
2025-04-30 18:14:22 -04:00
|
|
|
<div class="flex flex-col relative" data-controller="list-keyboard-navigation">
|
|
|
|
<div class="border-b border-tertiary md:border-alpha-black-25 px-4 pb-4 text-gray-800 flex items-center justify-between gap-2">
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
<% if back_path %>
|
2025-07-18 08:30:00 -04:00
|
|
|
<%= render DS::Link.new(
|
2025-04-30 18:14:22 -04:00
|
|
|
variant: "icon",
|
|
|
|
icon: "arrow-left",
|
|
|
|
href: back_path,
|
|
|
|
size: "lg"
|
|
|
|
) %>
|
2024-11-04 20:27:31 -05:00
|
|
|
<% end %>
|
|
|
|
|
2025-04-30 18:14:22 -04:00
|
|
|
<span class="text-primary"><%= title %></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= icon("x", as_button: true, size: "lg", data: { action: "dialog#close" }) %>
|
2024-11-04 20:27:31 -05:00
|
|
|
</div>
|
|
|
|
|
2025-04-23 10:42:30 -03:00
|
|
|
<div class="p-2 text-subdued">
|
2024-11-04 20:27:31 -05:00
|
|
|
<button hidden data-controller="hotkey" data-hotkey="k,K,ArrowUp,ArrowLeft" data-action="list-keyboard-navigation#focusPrevious">Previous</button>
|
|
|
|
<button hidden data-controller="hotkey" data-hotkey="j,J,ArrowDown,ArrowRight" data-action="list-keyboard-navigation#focusNext">Next</button>
|
|
|
|
|
|
|
|
<%= yield %>
|
|
|
|
</div>
|
|
|
|
|
2025-04-30 18:14:22 -04:00
|
|
|
<div class="border-t border-alpha-black-25 px-4 pt-4 text-secondary text-sm justify-between hidden md:flex">
|
2024-11-04 20:27:31 -05:00
|
|
|
<div class="flex space-x-5">
|
|
|
|
<div class="flex items-center space-x-2">
|
|
|
|
<span>Select</span>
|
2025-04-30 18:14:22 -04:00
|
|
|
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center">
|
|
|
|
<%= icon("corner-down-left", size: "xs") %>
|
|
|
|
</kbd>
|
2024-11-04 20:27:31 -05:00
|
|
|
</div>
|
|
|
|
<div class="flex items-center space-x-2">
|
|
|
|
<span>Navigate</span>
|
2025-04-30 18:14:22 -04:00
|
|
|
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center">
|
|
|
|
<%= icon("arrow-up", size: "xs") %>
|
|
|
|
</kbd>
|
|
|
|
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center">
|
|
|
|
<%= icon("arrow-down", size: "xs") %>
|
|
|
|
</kbd>
|
2024-11-04 20:27:31 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center space-x-2">
|
2025-04-30 18:14:22 -04:00
|
|
|
<button data-action="dialog#close">Close</button>
|
2024-11-04 20:27:31 -05:00
|
|
|
<kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-8 h-5 shrink-0 grow-0 items-center justify-center text-xs">ESC</kbd>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|