Sha256: ea48ed6033a24455f7f171ff02a59d292369da3c58d2c168be258cabe1e6247a

Contents?: true

Size: 1.37 KB

Versions: 20

Compression:

Stored size: 1.37 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 %>

  <%= content_tag :div, class: class_names("w-full space-y-1", {"hidden": collapsed}),
    data: {
      menu_target: :items,
      **section_collapse_data_animation
    } do %>
    <% @items.each do |item| %>
      <%= render Avo::Sidebar::ItemSwitcherComponent.new item: item %>
    <% end %>
  <% end %>
</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
avo-3.15.1 app/components/avo/sidebar/group_component.html.erb
avo-3.15.0 app/components/avo/sidebar/group_component.html.erb
avo-3.14.5 app/components/avo/sidebar/group_component.html.erb
avo-3.14.4 app/components/avo/sidebar/group_component.html.erb
avo-3.14.3 app/components/avo/sidebar/group_component.html.erb
avo-3.14.2 app/components/avo/sidebar/group_component.html.erb
avo-3.14.1 app/components/avo/sidebar/group_component.html.erb
avo-3.14.0 app/components/avo/sidebar/group_component.html.erb
avo-3.13.7 app/components/avo/sidebar/group_component.html.erb
avo-3.13.6 app/components/avo/sidebar/group_component.html.erb
avo-3.13.5 app/components/avo/sidebar/group_component.html.erb
avo-3.13.4 app/components/avo/sidebar/group_component.html.erb
avo-3.13.3 app/components/avo/sidebar/group_component.html.erb
avo-3.13.2 app/components/avo/sidebar/group_component.html.erb
avo-3.13.1 app/components/avo/sidebar/group_component.html.erb
avo-3.13.0 app/components/avo/sidebar/group_component.html.erb
avo-3.12.0 app/components/avo/sidebar/group_component.html.erb
avo-3.11.10 app/components/avo/sidebar/group_component.html.erb
avo-3.11.9 app/components/avo/sidebar/group_component.html.erb
avo-3.11.8 app/components/avo/sidebar/group_component.html.erb