Sha256: 36909a2268c43866c65367367667cb9d6365e6b83be223f433a1a28cbb29f1d3

Contents?: true

Size: 1.06 KB

Versions: 37

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

module Playbook
  module PbSectionSeparator
    class SectionSeparator < Playbook::KitBase
      prop :color, type: Playbook::Props::Enum,
                   values: %w[default primary],
                   default: "default"
      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, color != "default" ? "color_#{color}" : nil)
      end

    private

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5341 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5340 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5339 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.12.0.pre.rc.3 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.12.0.pre.rc.2 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.12.0.pre.rc.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.12.0.pre.rc.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5315 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5314 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.alpha.PLAY1750pbcontenttagkitbutton5308 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.1 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_section_separator/section_separator.rb