Sha256: 83981bac42a36ffe5cf2af0b0e70f28953257197475ecf7e70d6554f256f4705

Contents?: true

Size: 902 Bytes

Versions: 722

Compression:

Stored size: 902 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
      prop :line_style, type: Playbook::Props::Enum,
                        values: %w[dashed solid],
                        default: "solid"

      def classname
        generate_classname("pb_section_separator_kit", variant, orientation, line_style == "dashed" ? "dashed" : nil)
      end

    private

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

Version data entries

722 entries across 722 versions & 1 rubygems

Version Path
playbook_ui-14.11.0.pre.rc.5 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5193 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.4 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.3 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.alpha.PBNTR662stickyrightcolumnreact5160 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.2 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5137 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.9.0.pre.alpha.PBNTR767advancedtablemultiheadercolumns5136 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5121 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5120 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.rc.24 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.rc.23 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.rc.22 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.rc.21 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment5060 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.rc.20 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.rc.19 app/pb_kits/playbook/pb_section_separator/section_separator.rb