Sha256: 118e484cf866b618a55ad340d6b4c8c62fb34b1b445e2cbe034ff0ab260b863f

Contents?: true

Size: 929 Bytes

Versions: 25

Compression:

Stored size: 929 Bytes

Contents

<div x-data="filter" class="bg-white rounded-md border border-gray-200 " :class="{'!border-gray-300': focussed}">
  <input
    type="text"
    class="text-sm pl-3 pr-8 w-full border-0 bg-transparent focus:outline-none outline-none focus:ring-0 text-gray-500 placeholder:italic placeholder:text-gray-500"
    placeholder="Filter by name&hellip;"
    x-ref="input"
    x-model="$store.filter.raw"
    x-effect="if (!$store.layout.desktop && $store.sidebar.open) focus()"
    @keyup.stop="checkEsc"
    @keyup.f.document="focus"
    @filter:clear.document="clear"
    @filter:focus.document="focus"
    @focus.stop="focussed = true"
    @blur.stop="focussed = false">
  <button class="text-gray-400 hover:text-indigo-500 focus:ring-0 focus:outline-none absolute top-1/2 right-5 -translate-y-1/2" @click="clear" :class="{hidden: !$store.filter.active}">
    <%= icon "x", size: 3, class: "hover:text-indigo-500" %>
  </button>
</div>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
lookbook-0.9.8 app/views/lookbook/components/_filter.html.erb
lookbook-0.9.7 app/views/lookbook/components/_filter.html.erb
lookbook-0.9.6 app/views/lookbook/components/_filter.html.erb
lookbook-0.9.5 app/views/lookbook/components/_filter.html.erb
lookbook-0.9.4 app/views/lookbook/components/_filter.html.erb
lookbook-0.9.3 app/views/lookbook/components/_filter.html.erb
lookbook-0.9.2 app/views/lookbook/components/_filter.html.erb
lookbook-0.9.1 app/views/lookbook/components/_filter.html.erb
lookbook-0.9.0 app/views/lookbook/components/_filter.html.erb
lookbook-0.8.3 app/views/lookbook/components/_filter.html.erb
lookbook-0.8.2 app/views/lookbook/components/_filter.html.erb
lookbook-0.8.1 app/views/lookbook/components/_filter.html.erb
lookbook-0.8.0 app/views/lookbook/components/_filter.html.erb
lookbook-0.8.0.beta.0 app/views/lookbook/components/_filter.html.erb
lookbook-0.7.4 app/views/lookbook/components/_filter.html.erb
lookbook-0.7.3 app/views/lookbook/components/_filter.html.erb
lookbook-0.7.2 app/views/lookbook/components/_filter.html.erb
lookbook-0.7.2.beta.5 app/views/lookbook/components/_filter.html.erb
lookbook-0.7.2.beta.4 app/views/lookbook/components/_filter.html.erb
lookbook-0.7.2.beta.3 app/views/lookbook/components/_filter.html.erb