Sha256: 0f157bda60a902e957b581e4f1a35cd1841e60b7485d3539cbe07c1669611a6a

Contents?: true

Size: 1.09 KB

Versions: 23

Compression:

Stored size: 1.09 KB

Contents

<%= content_tag(:div,
    aria: object.aria,
    class: object.classname,
    data: object.data) do %>
  <% if object.label.present? %>
    <%= pb_rails("caption", props: { text: object.label, dark: object.dark, classname: "pb_text_input_kit_label" }) %>
  <% end %>
  <%= content_tag(:div,
      class: "text_input_wrapper") do %>
    <% if object.children.present? %>
      <%= capture(&object.children) %>
      <% if object.error %>
        <%= pb_rails("body", props: {dark: object.dark, status: "negative", text: object.error}) %>
      <% end %>
    <% else %>
      <%= tag(:input,
          class: "text_input",
          data: object.validation_data,
          disabled: object.disabled,
          id: object.id,
          name: object.name,
          pattern: object.validation_pattern,
          placeholder: object.placeholder,
          required: object.required,
          type: object.type,
          value: object.value) %>
      <% if object.error %>
        <%= pb_rails("body", props: {dark: object.dark, status: "negative", text: object.error}) %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
playbook_ui-7.0.1.pre.alpha8 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.1.pre.alpha7 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.1.pre.alpha6 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.1.pre.alpha5 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.1.pre.alpha4 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.1.pre.alpha3 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.1.pre.alpha2 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-6.4.2 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.1.pre.alpha1 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.0.pre.alpha9 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.0.pre.alpha8 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.0.pre.alpha7 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-6.4.1 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.0.pre.alpha6 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.0.pre.alpha5 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-6.4.0 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-6.3.1 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.0.pre.alpha4 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.0.pre.alpha3 app/pb_kits/playbook/pb_text_input/_text_input.html.erb
playbook_ui-7.0.0.pre.alpha2 app/pb_kits/playbook/pb_text_input/_text_input.html.erb