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.18.0.pre.alpha.PLAY785typeaheadts607 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.18.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.17.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.17.0.pre.alpha.lightboxcurrentPhotoIndex582 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.17.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.16.0.pre.alpha.tooltippositionprop566 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.16.0.pre.alpha.PLAY693tooltipwrongbg558 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.16.0.pre.alpha.PLAY693tooltipwrongbg547 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.16.0.pre.alpha.PLAY693tooltipwrongbg532 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.16.0.pre.alpha.lightboxcurrentphotoprop531 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.16.0.pre.alpha.tiptaptestingpart1528 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.16.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.15.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.14.0.pre.alpha.lightboxcurrentphotoprop460 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.14.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown457 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.14.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown456 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.14.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.13.0.pre.alpha.PLAY693tooltipwrongbg440 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.13.0.pre.alpha.addingProductTokens439 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-12.13.0.pre.alpha.PLAY705phonenumberkit438 app/pb_kits/playbook/pb_section_separator/section_separator.rb