Sha256: 0bbb466f5c202357abb45bd20e90e881b892947be001e97ee9bc3c7bf9a63e29

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

<div class="<%= html_attrs[:class] %>" <%= html_attributes %>>
  <% if filter_field? %>
    <div class="ariadne-pb-1.5 ariadne-px-1">
      <%= render filter_field %>
    </div>
  <% end %>
  <div class="<%= style(:items) %>">
    <% links.each do |link| %>
      <div class="" role="menuitem"><%= link %></div>
    <% end %>
    <% checkboxes.each do |checkbox| %>
      <div
            class="<%= style(:item) %>"
            data-<%= stimulus_name %>-target="searchString">
        <div class="ariadne-truncate" role="menuitemcheckbox"><%= checkbox %></div>
      </div>
    <% end %>
    <% radio_buttons.each do |radio_button| %>
      <div
            class="<%= style(:item) %>"
            data-<%= stimulus_name %>-target="searchString">
        <div class="ariadne-truncate" role="menuitemradiobutton"><%= radio_button %></div>
      </div>
    <% end %>
    <% items.each do |item| %>
      <div
            <%= 'role="menuitem"' if as_menu %>
            class="<%= style(:item) %>"
            data-<%= stimulus_name %>-target="searchString">
        <div class="ariadne-relative ariadne-flex "><%= item %></div>
      </div>
    <% end %>
    <div class="ariadne-text-center ariadne-hidden" data-<%= stimulus_name %>-target="emptyRoot">
      <span class="ariadne-py-3 ariadne-text-md ariadne-text-zinc-600 dark:ariadne-text-zinc-400"><%= @empty_placeholder %> </span>
    </div>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.85 app/components/ariadne/ui/list/component.html.erb
ariadne_view_components-0.0.84 app/components/ariadne/ui/list/component.html.erb
ariadne_view_components-0.0.83.3 app/components/ariadne/ui/list/component.html.erb
ariadne_view_components-0.0.83.2 app/components/ariadne/ui/list/component.html.erb
ariadne_view_components-0.0.83.1 app/components/ariadne/ui/list/component.html.erb
ariadne_view_components-0.0.83 app/components/ariadne/ui/list/component.html.erb