Sha256: f4d5431396476dc28a5858c4aeae943000d425c6657de746ed857173bc6141f6

Contents?: true

Size: 1.27 KB

Versions: 172

Compression:

Stored size: 1.27 KB

Contents

<div class="pb-2 space-y-1"
  <% if collapsable %>
    data-controller="menu"
    data-menu-target="self"
    data-menu-key-param="<%= key %>"
    data-menu-default-collapsed-state="<%= collapsed ? 'collapsed' : 'expanded' %>"
  <% end %>
>
  <% if item.name.present? %>
    <% if collapsable %>
      <div
        class="flex justify-between cursor-pointer px-10 pr-2 pt-2 pb-0 text-gray-400"
        data-action="click->menu#triggerCollapse"
        data-menu-key-param="<%= key %>"
      >
        <div class="flex items-center text-xs uppercase font-semibold leading-none">
          <%= item.name %>
        </div>
        <div class="<%= 'rotate-90' if collapsed %>"
          data-menu-target="svg"
          >
          <%= helpers.svg 'heroicons/outline/chevron-down', class: "h-4 mr-0.5"%>
        </div>
      </div>
    <% else %>
      <div class="flex justify-between px-10 pr-2 pt-2 pb-0 text-gray-400">
        <div class="flex items-center text-xs uppercase font-semibold leading-none">
          <%= item.name %>
        </div>
      </div>
    <% end %>
  <% end %>
  <div class="w-full space-y-1 <%= 'hidden' if collapsed %>" data-menu-target="items">
    <% items.each do |item| %>
      <%= render Avo::Sidebar::ItemSwitcherComponent.new item: item %>
    <% end %>
  </div>
</div>

Version data entries

172 entries across 172 versions & 1 rubygems

Version Path
avo-3.0.1.beta14 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta12 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta13 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta10 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta11 app/components/avo/sidebar/group_component.html.erb
avo-3.0.0.pre19 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta8 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta9 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta6 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta7 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta5 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta2 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta4 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta3 app/components/avo/sidebar/group_component.html.erb
avo-3.0.0.beta1 app/components/avo/sidebar/group_component.html.erb
avo-3.0.1.beta1 app/components/avo/sidebar/group_component.html.erb
avo-3.0.0.pre17 app/components/avo/sidebar/group_component.html.erb
avo-3.0.0.pre18 app/components/avo/sidebar/group_component.html.erb
avo-3.0.0.pre14 app/components/avo/sidebar/group_component.html.erb
avo-3.0.0.pre16 app/components/avo/sidebar/group_component.html.erb