Sha256: b930aeab58359eb3fd8366799eef1fc6926c24964b9fb9ceaae1171692d408be

Contents?: true

Size: 935 Bytes

Versions: 14

Compression:

Stored size: 935 Bytes

Contents

<%= render_component_tag :li,
  id: id,
  key: "#{id}-entity-#{type}",
  class: "list-none",
  "x-show": "!filteredOut",
  data: { "entity-type": type },
  cloak: true do %>
  <%= lookbook_tag href.present? ? :a : :button,
    href: href,
    key: "#{id}-action",
    class: "nav-action",
    style: "padding-left: #{left_pad}px",
    "x-bind": "bindings.#{href.present? ? "link" : "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 <% if node.type == :preview %>font-bold<% end %>"><%= label %></span>
    </div>
  <% end %>
  
  <% if children? %>
    <ul x-ref="items" x-show="open" x-cloak>
      <%= safe_join(children) %>
    </ul>
  <% end %>  
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

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