Sha256: 504581fd1f822593ad5bfc65fc8d8fef68f5cc39eba2411d25203d37de61de16

Contents?: true

Size: 427 Bytes

Versions: 48

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbFormPill
    class FormPill < Playbook::KitBase
      prop :avatar_url
      prop :name
      prop :text
      prop :size

      def classname
        generate_classname("pb_form_pill_kit", "primary", name, text)
      end

      def display_text
        name.downcase
      end

      def size_class
        size == "small" ? " small" : ""
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
playbook_ui-10.14.1.pre.alpha2 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.14.1.pre.alpha1 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.14.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.13.1 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.13.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.13.0.pre.node.update app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.12.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.11.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.10.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.9.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.8.1.pre.alpha.flexdeps app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.9.0.pre.alpha1 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.8.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.7.1 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.7.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.6.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.5.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb
playbook_ui-10.4.0 app/pb_kits/playbook/pb_form_pill/form_pill.rb