Sha256: 8b7de88708d4c0dc7df6517044652d1842296efa3052f0c767a3193e1f09bb01

Contents?: true

Size: 444 Bytes

Versions: 551

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PositionPropsCss
    POSITION_VALUES = %w[0 xxs xs sm md lg xl auto initial inherit].freeze

    def positioning_css(property, value)
      if value.is_a?(String)
        "#{property}_#{value}"
      elsif value.is_a?(Hash) && value.key?(:inset)
        "#{property}_#{value[:value]}_inset"
      elsif value.is_a?(Hash)
        "#{property}_#{value[:value]}"
      end
    end
  end
end

Version data entries

551 entries across 551 versions & 1 rubygems

Version Path
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5201 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.9 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5200 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.8 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.7 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.6 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.5 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5193 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.4 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.3 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.alpha.PBNTR662stickyrightcolumnreact5160 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.2 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.1 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5137 lib/playbook/position_props_css.rb
playbook_ui-14.11.0.pre.rc.0 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.PBNTR767advancedtablemultiheadercolumns5136 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5121 lib/playbook/position_props_css.rb
playbook_ui-14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5120 lib/playbook/position_props_css.rb
playbook_ui-14.10.0 lib/playbook/position_props_css.rb
playbook_ui-14.10.0.pre.rc.24 lib/playbook/position_props_css.rb