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.0.0.pre.alpha.PLAY15063511 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.PA1477timestampkit3509 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.PLAY14733507 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.PBNTR416formpillsizes3506 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.PA1477timestampkit3502 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.PBNTR415starratingform3493 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.PBNTR415starratingform3492 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.PLAY1475bumpaxecoredependency3483 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.PLAY14733479 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.dependabotnpmandyarnreactjoyride2823478 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.PLAY14113475 lib/playbook/position_props_css.rb
playbook_ui-14.0.0.pre.alpha.play1447alphatest3462 lib/playbook/position_props_css.rb
playbook_ui-14.1.0 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3455 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3451 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.PLAY14043436 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3413 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3411 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3409 lib/playbook/position_props_css.rb
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3404 lib/playbook/position_props_css.rb