Sha256: 7f45f2c51ba86df05bb34980deebb6aa45220b6c405ec951bc09664a13c9c5cc

Contents?: true

Size: 717 Bytes

Versions: 406

Compression:

Stored size: 717 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbSectionSeparator
    class SectionSeparator < Playbook::KitBase
      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)
      end

    private

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

Version data entries

406 entries across 406 versions & 1 rubygems

Version Path
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease294 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.8.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease293 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease292 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease291 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.7.1.pre.alpha.alpharubyrelease281 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.7.1.pre.alpha.menu2 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.7.1.pre.alpha.menu1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.7.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.7.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.6.0.pre.alpha.sectionseparator1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.6.0.pre.alpha.menuyml1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.6.0.pre.alpha.collapsible1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.6.0.pre.alpha.cssphone1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.6.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.5.0.pre.alpha.datepickerinput1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.5.0.pre.alpha.phonerails1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.5.0.pre.alpha.filter1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.5.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb