Sha256: 3b79dd7d2545f5350a7443bda543b5340bc9f9180448a1f1cde9afeb8b353c97

Contents?: true

Size: 438 Bytes

Versions: 119

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbPill
    class Pill < Playbook::KitBase
      prop :text
      prop :variant, type: Playbook::Props::Enum,
                     values: %w[success warning error info neutral primary],
                     default: "neutral"

      def classname
        generate_classname("pb_pill_kit", variant)
      end

      def display_text
        text.downcase
      end
    end
  end
end

Version data entries

119 entries across 119 versions & 1 rubygems

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