Sha256: 12d664658e351bc99ca502cc726812481fc4de6353140507c307dd170ce0f3d0

Contents?: true

Size: 1018 Bytes

Versions: 9

Compression:

Stored size: 1018 Bytes

Contents

<%
path = lookbook_inspect_path(item.lookup_path)
display ||= :item
label ||= item.label
item_icon = display == :node ? "layers" : "eye"
%>
<li key="nav-item-<%= item.id %>-item">
  <div id="nav-item-<%= item.id %>" x-data="navItem(<%= item.matchers.to_json %>)" :class="{hidden}" data-path="<%= path %>" x-cloak>
    <a href="<%= path %>"
      class="nav-link pr-3 py-[5px] flex items-center w-full group transition hover:bg-gray-200 hover:bg-opacity-50"
      style="padding-left: calc((<%= depth - 1 %> * 12px) + 0.5rem);"
      x-ref="link"
      :class="{'!bg-indigo-100':active}"
      @click.stop.prevent="navigate"
    >
      <div class="relative w-3.5 h-3.5 mr-1.5 <%= "ml-[3px]" if display == :node %> " :class="active ? 'text-gray-900' : 'text-indigo-500'">
        <%= icon item_icon, size: 3.5, class: "group-hover:text-indigo-800" %>
      </div>
      <div class="truncate whitespace-nowrap select-none <%= "font-bold" if display == :node %>">
        <%= label %>
      </div>
    </a>
  </div>
</li>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lookbook-0.9.8 app/views/lookbook/components/_nav_item.html.erb
lookbook-0.9.7 app/views/lookbook/components/_nav_item.html.erb
lookbook-0.9.6 app/views/lookbook/components/_nav_item.html.erb
lookbook-0.9.5 app/views/lookbook/components/_nav_item.html.erb
lookbook-0.9.4 app/views/lookbook/components/_nav_item.html.erb
lookbook-0.9.3 app/views/lookbook/components/_nav_item.html.erb
lookbook-0.9.2 app/views/lookbook/components/_nav_item.html.erb
lookbook-0.9.1 app/views/lookbook/components/_nav_item.html.erb
lookbook-0.9.0 app/views/lookbook/components/_nav_item.html.erb