Sha256: 8655b5c6a4155f3890b6fc52d086f82a61a59d74d79a1c0df60e744908d97649

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 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 %>
    <% items.each do |item| %>
      <div
            <%= 'role="menuitem"' if as_menu %>
            class="<%= style(:item) %>"
            data-<%= stimulus_name %>-target="searchString">
        <div class="relative ariadne-flex ariadne-cursor-default ariadne-select-none ariadne-items-center ariadne-rounded-sm ariadne-px-2 ariadne-py-1.5 ariadne-text-sm ariadne-outline-none ariadne-data-[disabled=true]:pointer-events-none ariadne-data-[selected=true]:bg-accent ariadne-data-[selected=true]:text-accent-foreground data-[disabled=true]:ariadne-opacity-50"><%= 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

1 entries across 1 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.81 app/components/ariadne/ui/list/component.html.erb