Sha256: 2844aa2d9b871004d9260b27e9062e16432413b521b974db5e466fe16ab7d1df

Contents?: true

Size: 784 Bytes

Versions: 52

Compression:

Stored size: 784 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)
      end

    private

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

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.16.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.15.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.15.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.14.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.13.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.12.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.12.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.11.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.11.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.10.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.9.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.8.4 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.8.3 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.8.2 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.8.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.8.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_section_separator/section_separator.rb