Sha256: 844f1c04a06894af0da8238d7f3dc4899586247180ce4627e7b94a8fec61d3d7

Contents?: true

Size: 1.1 KB

Versions: 37

Compression:

Stored size: 1.1 KB

Contents

<%= render Primer::BaseComponent.new(**@system_arguments) do %>
  <div class="<%= @form_group_classes %>">
    <label for="<%= @input_id %>" class="FormControl-label <% if @visually_hide_label %>sr-only<% end %>">
      <%= @label_text %>
    </label>
    <% if leading_visual || @show_clear_button %>
        <div class="<%= @field_wrap_classes %> <% if leading_visual %>FormControl-input-wrap--leadingVisual<% end %>">
            <span class="FormControl-input-leadingVisualWrap">
                <%= leading_visual %>
            </span>
            <%= input %>
            <% if @show_clear_button %>
              <button id="<%= @input_id %>-clear" class="FormControl-input-trailingAction" aria-label="Clear"><%= primer_octicon "x-circle-fill" %></button>
            <% end %>
        </div>
    <% else %>
      <%= input %>
    <% end %>
  </div>
  <div class="Overlay-backdrop--anchor">
    <div class="<%= @overlay_classes %>">
      <div class="Overlay-body Overlay-body--paddingNone">
        <%= results %>
      </div>
    </div>
  </div>
  <div id="<%= @list_id %>-feedback" class="sr-only"></div>
<% end %>

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.18.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.17.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.17.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.14.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.16.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.15.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.14.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.13.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.13.2 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.13.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.13.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.13.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.12.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.11.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.12.1 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.10.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.11.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.10.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
primer_view_components-0.9.0 app/components/primer/beta/auto_complete/auto_complete.html.erb
openproject-primer_view_components-0.9.1 app/components/primer/beta/auto_complete/auto_complete.html.erb