Sha256: 243232dad225a58d979fecd642a0d075f3ef24923d603718119b61c9c6e1096e

Contents?: true

Size: 1.26 KB

Versions: 228

Compression:

Stored size: 1.26 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>
          <!-- TODO: fix this -->
          <% 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

228 entries across 228 versions & 1 rubygems

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