Sha256: 2cef80878815f4bc910c1165d4e4e6a2c3b250f7fb0b6b6bfa92d1a76a49e38e

Contents?: true

Size: 796 Bytes

Versions: 114

Compression:

Stored size: 796 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbSectionSeparator
    class SectionSeparator
      include Playbook::Props

      partial "pb_section_separator/section_separator"

      prop :text
      prop :variant, type: Playbook::Props::Enum,
                     values: %w[card background],
                     default: "card"
      prop :orientation, type: Playbook::Props::Enum,
                         values: %w[horizontal vertical],
                         default: "horizontal"
      prop :dark, type: Playbook::Props::Boolean,
                  default: false

      def classname
        generate_classname("pb_section_separator_kit", variant, orientation, dark_class)
      end

    private

      def dark_class
        dark ? "dark" : nil
      end
    end
  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
playbook_ui-7.3.0.pre.alpha2 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.1.2 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.1.0.pre.alpha2 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.1.1.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.0.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.1.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.1.0.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.1.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.0.1.pre.alpha15 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-6.8.2.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.0.0.pre.alpha15 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.0.1.pre.alpha14 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.0.0.pre.alpha14 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.0.0.pre.alpha13 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.0.0.pre.alpha12 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.0.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.0.0.pre.alpha11 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-6.8.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-6.8.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb