Sha256: 7bb147628612a28d84e9f0b99c16969a14e7fc98d7bf94e0a112859b843d3987

Contents?: true

Size: 1.26 KB

Versions: 294

Compression:

Stored size: 1.26 KB

Contents

<%= render Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes) do %>
  <div class="ariadne-rounded-md ariadne-p-4 <%= BG_SCHEME_CLASS_MAPPINGS[@scheme] %>">
    <div class="ariadne-flex">
      <div class="ariadne-flex-shrink-0">
        <%= icon %>
      </div>
      <div class="ariadne-ml-3">
        <div class="ariadne-mt-2 ariadne-text-sm <%= CONTENT_SCHEME_CLASS_MAPPINGS[@scheme] %>">
          <p><%= content %></p>
        </div>
        <% if has_action? %>
          <div class="ariadne-mt-4 ariadne-pt-5">
            <div class="ariadne--mx-2 ariadne--my-1.5 ariadne-flex">
              <%= action %>
            </div>
          </div>
        <% end %>
      </div>
      <% if dismissible? %>
        <div class="ariadne-pl-3">
          <div class="ariadne--mx-1.5 ariadne--my-1.5">
            <button type="button" class="ariadne-inline-flex ariadne-rounded-md ariadne-p-1.5 focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2 <%= dismissible_classes %>">
              <span class="ariadne-sr-only">Dismiss</span>
              <%= ariadne_heroicon icon: :"x-mark", variant: HeroiconsHelper::Icon::VARIANT_OUTLINE %>
            </button>
          </div>
        </div>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

294 entries across 294 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.45-x86_64-darwin app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.45-arm64-darwin app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.45-x86_64-linux app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.45-aarch64-linux app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.44-aarch64-linux app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.44-arm64-darwin app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.44-x86_64-linux app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.44-x86_64-darwin app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.44-x64-mingw-ucrt app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.44 app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.39-x86_64-darwin app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.39-x86_64-linux app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.39-x64-mingw32 app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.39-aarch64-linux app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.39-x64-mingw-ucrt app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.39-arm64-darwin app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.39 app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.38-x64-mingw32 app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.38-aarch64-linux app/components/ariadne/flash_component/flash_component.html.erb
ariadne_view_components-0.0.38-x86_64-darwin app/components/ariadne/flash_component/flash_component.html.erb