Sha256: 4b241d66b314b1540e5bc73d44a6e1dc59bf704f4d9803c86df341c452ac9aba

Contents?: true

Size: 820 Bytes

Versions: 16

Compression:

Stored size: 820 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">
      <%= icon nil,
        size: 3,
        class: "nav-toggle-icon",
        "x-effect": "iconName = open ? 'chevron-down' : 'chevron-right'" if children? %>
      <%= 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

16 entries across 16 versions & 1 rubygems

Version Path
lookbook-1.5.5 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.5.4 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.beta.4 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.beta.3 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.beta.2 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.5.3 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.beta.1 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.5.2 app/components/lookbook/nav/directory/component.html.erb
lookbook-2.0.0.beta.0 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.5.1 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.5.0 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.4.5 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.4.4 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.4.3 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.4.2 app/components/lookbook/nav/directory/component.html.erb
lookbook-1.4.1 app/components/lookbook/nav/directory/component.html.erb