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.21.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.20.0.pre.alpha.movemarkdown668 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.20.0.pre.alpha.title2667 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.20.0.pre.alpha.title2665 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.20.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.19.0.pre.alpha.PLAY699zindexresponsive650 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.19.0.pre.alpha.movemarkdown639 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.19.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown638 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.19.0.pre.alpha.movemarkdown637 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.PLAY785typeaheadts632 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.19.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown629 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown628 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.play786multilevelselectimprovements627 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown626 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown617 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.PLAY735mobileheadersfix616 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.play786multilevelselectimprovements613 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.PLAY747carddarktokens610 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0.pre.alpha.PLAY785typeaheadts608 app/pb_kits/playbook/pb_section_separator/section_separator.rb