Sha256: 46511e6f02510f59664c9448fdf10ca325162ce541c0ccb095c74d5dea22ea1c

Contents?: true

Size: 613 Bytes

Versions: 19

Compression:

Stored size: 613 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module Bottom
    def self.included(base)
      base.prop :bottom
    end

    def bottom_values
      %w[0 xxs xs sm md lg xl auto initial inherit]
    end

    def bottom_options
      {
        bottom: "bottom",
      }
    end

  private

    def bottom_props
      selected_props = bottom_options.keys.select { |sk| try(sk) }
      return nil unless selected_props.present?

      selected_props.map do |k|
        value = send(k)
        return nil unless bottom_values.include? value

        "bottom_#{value}"
      end.compact.join(" ")
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
playbook_ui-13.21.0.pre.alpha.PLAY12582531 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PLAY12582516 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PLAY12582515 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PLAY12582514 lib/playbook/bottom.rb
playbook_ui-13.22.0 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PLAY12652489 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PLAY12582474 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2466 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PLAY120322465 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2451 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2441 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PBNTR225advancedtablefeedback2438 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.PBNTR238DatePickerYearBug2436 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2431 lib/playbook/bottom.rb
playbook_ui-13.21.0.pre.alpha.pbntr220improveexpansionspeed2415 lib/playbook/bottom.rb
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2404 lib/playbook/bottom.rb
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2403 lib/playbook/bottom.rb
playbook_ui-13.20.0.pre.alpha.PLAY12572402 lib/playbook/bottom.rb
playbook_ui-13.21.0 lib/playbook/bottom.rb