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-9.2.1 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-9.2.0 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-9.1.0 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-9.0.0 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.3.0.alpha.select.pre.margin app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.3.0 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.2.1.pre.alpha5 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.2.1.pre.alpha4 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.2.1.alpha.iconacc app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.2.1.pre.alpha3 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.2.1.pre.alpha2 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.3.0.deps2 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.3.0.pre.alpha1 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.2.1.pre.alpha1 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.2.1 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.1.3 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.4.0.alpha.dependencies.2 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.4.0.alpha.dependencies.1 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.2.0.pre.alpha4 app/pb_kits/playbook/pb_pill/pill.rb
playbook_ui-8.2.0.pre.alpha3 app/pb_kits/playbook/pb_pill/pill.rb