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-13.29.0.pre.alpha.testingcollapsibleissue3052 lib/playbook/position_props_css.rb
playbook_ui-13.29.0 lib/playbook/position_props_css.rb
playbook_ui-13.28.0.pre.alpha.PBNTR297gradientoverlay3029 lib/playbook/position_props_css.rb
playbook_ui-13.28.0.pre.alpha.pbntr312tableheaderflexremoval3019 lib/playbook/position_props_css.rb
playbook_ui-13.28.0.pre.alpha.dialogturbostreameventlistener3017 lib/playbook/position_props_css.rb
playbook_ui-13.28.0.pre.alpha.PLAY1338alpha3001 lib/playbook/position_props_css.rb
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2987 lib/playbook/position_props_css.rb
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2986 lib/playbook/position_props_css.rb
playbook_ui-13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2984 lib/playbook/position_props_css.rb
playbook_ui-13.27.0 lib/playbook/position_props_css.rb
playbook_ui-13.26.0.pre.alpha.PBNTR291Dropdownrailsv22840 lib/playbook/position_props_css.rb
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12820 lib/playbook/position_props_css.rb
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12816 lib/playbook/position_props_css.rb
playbook_ui-13.25.0.pre.alpha.PBNTR291Dropdownrailsv22812 lib/playbook/position_props_css.rb
playbook_ui-13.26.0 lib/playbook/position_props_css.rb
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2785 lib/playbook/position_props_css.rb
playbook_ui-13.25.0.pre.alpha.PLAY1249fixTooltipswrappingformelementscausingmisalignment2783 lib/playbook/position_props_css.rb
playbook_ui-13.25.0.pre.alpha.PBNTR272Dropdownkitv42769 lib/playbook/position_props_css.rb
playbook_ui-13.25.0.pre.alpha.barchartfix2766 lib/playbook/position_props_css.rb
playbook_ui-13.25.0.pre.alpha.PLAY761globalpaddingpropsbuttons2713 lib/playbook/position_props_css.rb