Sha256: 91253b78e56fbf33b3cc8863683bcff998dcf714e72687ab250bf9f24d0d3403

Contents?: true

Size: 1.28 KB

Versions: 66

Compression:

Stored size: 1.28 KB

Contents

<%= render Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes) do |list| %>
  <% panels.each_with_index do |panel, idx| %>
    <%= render Ariadne::BaseComponent.new(tag: :li, classes: panel.classes, attributes: panel.attributes) do %>
      <%= render Ariadne::BaseComponent.new(tag: :div, classes: Ariadne::PanelBarComponent::PanelItem::DEFAULT_WRAPPER_CLASSES) do %>
        <span class="ariadne-px-6 ariadne-py-4 ariadne-flex ariadne-items-center ariadne-text-sm ariadne-font-medium">
          <%= panel.icon %>
          <span class="ariadne-ml-4 ariadne-text-sm ariadne-font-medium ariadne-text-gray-900"><%= panel.label %></span>
          <!-- Arrow separator for lg screens and up -->
          <% if idx + 1 < panels.size %>
            <div class="md:ariadne-block ariadne-hidden ariadne-absolute ariadne-top-0 ariadne-right-0 ariadne-h-full ariadne-w-5" aria-hidden="true">
              <svg class="ariadne-h-full ariadne-w-full ariadne-text-gray-300" viewBox="0 0 22 80" fill="none" preserveAspectRatio="none">
                <path d="M0 -2L20 40L0 82" vector-effect="non-scaling-stroke" stroke="currentcolor" stroke-linejoin="round"></path>
              </svg>
            </div>
          <% end %>
        </span>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.18 app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.18-x86_64-linux app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.18-x86_64-darwin app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.18-x64-mingw32 app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.18-x64-mingw-ucrt app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.18-arm64-darwin app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.18-aarch64-linux app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.17-x86_64-linux app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.17-x86_64-darwin app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.17-x64-mingw32 app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.17-x64-mingw-ucrt app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.17-arm64-darwin app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.17-aarch64-linux app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.17 app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.16-x86_64-linux app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.16-x86_64-darwin app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.16-x64-mingw32 app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.16-x64-mingw-ucrt app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.16-arm64-darwin app/components/ariadne/panel_bar_component.html.erb
ariadne_view_components-0.0.16-aarch64-linux app/components/ariadne/panel_bar_component.html.erb