Sha256: 83981bac42a36ffe5cf2af0b0e70f28953257197475ecf7e70d6554f256f4705

Contents?: true

Size: 902 Bytes

Versions: 662

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

662 entries across 662 versions & 1 rubygems

Version Path
playbook_ui-14.7.0.pre.rc.13 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PBNTR666advancedtablefirstcolumn4406 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.7.0.pre.rc.12 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PLAY15814384 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4380 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.7.0.pre.rc.11 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.7.0.pre.rc.10 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PLAY1551tiptapextbump4350 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PLAY15814348 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.7.0.pre.rc.9 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.7.0.pre.rc.8 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4316 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.7.0.pre.rc.7 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4312 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4305 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.7.0.pre.rc.6 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4304 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4303 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4296 app/pb_kits/playbook/pb_section_separator/section_separator.rb
playbook_ui-14.6.2.pre.alpha.PLAY1550lazysizesupgrade4295 app/pb_kits/playbook/pb_section_separator/section_separator.rb