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-5.0.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-5.0.1.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.18.1.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.18.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.18.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.17.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.17.0.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.16.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.15.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.14.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.15.1.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.13.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.13.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-4.12.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb