Sha256: 5f922f4059f5251e3d9a438bad035edf8dbc9d43bb89e6bea9fad86d3fddf55e

Contents?: true

Size: 917 Bytes

Versions: 23

Compression:

Stored size: 917 Bytes

Contents

<%= render_component_tag :li,
  id: id,
  key: "#{id}-directory",
  class: "list-none",
  "x-show": "!filteredOut",
  data: { "entity-type": :directory },
  cloak: true do %>
  <%= lookbook_tag :button,
    key: "#{id}-action",
    class: "nav-action",
    style: "padding-left: #{left_pad}px",
    "x-bind": "bindings.toggle" do %>
    <div class="nav-action-inner">
      <% if children? %>
        <%= icon "chevron-down", size: 3, class: "nav-toggle-icon", "x-show": "open", "x-cloak": "true" %>
        <%= icon "chevron-right", size: 3, class: "nav-toggle-icon", "x-show": "!open", "x-cloak": "true" %>
      <% end %>
      <%= icon nav_icon, size: 3.5, class: "mr-1.5 text-lookbook-nav-icon-stroke" %>
      <span class="truncate"><%= label %></span>
    </div>
  <% end %>
  
  <% if children? %>
    <ul x-ref="items" x-show="open" x-cloak>
      <%= safe_join(children) %>
    </ul>
  <% end %>  
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.3.3 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.3.2 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.3.0 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.2.2 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.2.1 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.2.0 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.1.1 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.1.0 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.5 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.4 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.3 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.2 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.1 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.rc.3 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.rc.2 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.rc.1 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.beta.9 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.beta.8 app/components/lookbook/nav/directory/component.html.erb