Sha256: eb1aca41162d28f21d5547bff5ff92a8f1c0bb420828179217d9585213abd8e4

Contents?: true

Size: 1.29 KB

Versions: 10

Compression:

Stored size: 1.29 KB

Contents

<div
  class="ariadne-contents"
  data-controller="<%= stimulus_name %>"
  data-action="click@window-><%= stimulus_name %>#windowClick"
  <%= html_attrs.to_html %>>
  <%= trigger %>

  <dialog
    class="<%= style %>"
    data-<%= stimulus_name %>-target="dialog">
    <div>
      <div class="ariadne-p-6 ariadne-space-y-6">
        <div class="ariadne-flex ariadne-flex-col ariadne-gap-3 ariadne-pe-5">
          <h2 class="ariadne-text-lg ariadne-font-semibold ariadne-leading-none ariadne-tracking-tight"><%= title %></h2>
          <% if description %><p class="ariadne-text-sm ariadne-text-muted-foreground"><%= description %></p><% end %>
        </div>
        <div><%= content %></div>
        <% if footer? %>
          <div class="ariadne-flex ariadne-gap-2 ariadne-flex-wrap"><%= footer %></div>
        <% end %>
      </div>
      <div class="ariadne-absolute ariadne-end-3 ariadne-top-3">
        <%= render Ariadne::UI::Button::Component.new(
          theme: :nude, icon_only: :yes,
          html_attrs: { "data-action": "click->#{stimulus_name}#triggerClick" }) do %>
          <span class="sr-only"><%= trigger_close_label %></span>
          <%= render Ariadne::UI::Heroicon::Component.new(icon: :"x-mark", size: :sm, variant: :outline) %>
        <% end %>
      </div>
    </div>
  </dialog>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.78 app/components/ariadne/ui/dialog/component.html.erb
ariadne_view_components-0.0.77 app/components/ariadne/ui/dialog/component.html.erb
ariadne_view_components-0.0.76.1 app/components/ariadne/ui/dialog/component.html.erb
ariadne_view_components-0.0.76 app/components/ariadne/ui/dialog/component.html.erb
ariadne_view_components-0.0.75 app/components/ariadne/ui/dialog/component.html.erb
ariadne_view_components-0.0.74.1 app/components/ariadne/ui/dialog/component.html.erb
ariadne_view_components-0.0.74 app/components/ariadne/ui/dialog/component.html.erb
ariadne_view_components-0.0.73 app/components/ariadne/ui/dialog/component.html.erb
ariadne_view_components-0.0.72 app/components/ariadne/ui/dialog/component.html.erb
ariadne_view_components-0.0.71 app/components/ariadne/ui/dialog/component.html.erb