Sha256: ac5ecb7ce73e6cd67087e7350959614e2a059e0e4a4bd352be7c5e48972f7a48

Contents?: true

Size: 1.25 KB

Versions: 3

Compression:

Stored size: 1.25 KB

Contents

<div
  data-controller="<%= stimulus_id %>"
  class="w-full relative overflow-visible"
  data-action="
    keydown.up-><%= stimulus_id %>#selectPrev
    keydown.down-><%= stimulus_id %>#selectNext
    keydown.enter-><%= stimulus_id %>#selectResult
  "
  data-<%= stimulus_id %>-loading-text-value="<%= t('.loading') %>"
  data-<%= stimulus_id %>-initial-text-value="<%= t('.initial') %>"
  data-<%= stimulus_id %>-empty-text-value="<%= t('.empty') %>"
>
  <div>
    <div class="peer">
      <%= render component("ui/forms/search_field").new(
        id: "#{stimulus_id}--search-field--#{@id}",
        "data-action": "
          #{stimulus_id}#search
          #{stimulus_id}#showResults
        ",
        "data-#{stimulus_id}-target": "searchField",
        **@attributes,
      ) %>
    </div>

    <div class="px-6 relative overflow-visible">
      <div
        class="
          absolute
          left-0
          top-2
          bg-white
          z-30
          w-full
          rounded-lg
          shadow
          border
          border-gray-100
          p-2
          flex
          flex-col
          gap-1
          max-h-screen
          overflow-y-auto
        "
        data-<%= stimulus_id %>-target="results"
      >
      </div>
    </div>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/ui/forms/search/component.html.erb
solidus_admin-0.3.1 app/components/solidus_admin/ui/forms/search/component.html.erb
solidus_admin-0.3.0 app/components/solidus_admin/ui/forms/search/component.html.erb