Sha256: a0358e6e5417df14ea0516abfea1e2df34c49ba5d2b45e4152ae57f536376fd9

Contents?: true

Size: 678 Bytes

Versions: 551

Compression:

Stored size: 678 Bytes

Contents

# frozen_string_literal: true

require "playbook/position_props_css"

module Playbook
  module Right
    include Playbook::PositionPropsCss

    def self.included(base)
      base.prop :right
    end

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

    def right_options
      {
        right: "right",
      }
    end

  private

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

      selected_props.map do |k|
        value = send(k)
        css = positioning_css("right", value) if right.present?
        css
      end.compact.join(" ")
    end
  end
end

Version data entries

551 entries across 551 versions & 1 rubygems

Version Path
playbook_ui-13.32.0.pre.alpha.PLAY14103236 lib/playbook/right.rb
playbook_ui-13.31.0.pre.alpha.play1416movealiaslogic3232 lib/playbook/right.rb
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3231 lib/playbook/right.rb
playbook_ui-13.31.0.pre.alpha.PBNTR342navtabbing3230 lib/playbook/right.rb
playbook_ui-13.32.0 lib/playbook/right.rb
playbook_ui-13.31.0.pre.alpha.powercentrainplaybookpt23212 lib/playbook/right.rb
playbook_ui-13.31.0.pre.alpha.PLAY10863204 lib/playbook/right.rb
playbook_ui-13.31.0.pre.alpha.PLAY10863202 lib/playbook/right.rb
playbook_ui-13.31.0.pre.alpha.PLAY882formpillprimaryandneutral3201 lib/playbook/right.rb
playbook_ui-13.31.0.pre.alpha.play1262iconstyles3172 lib/playbook/right.rb
playbook_ui-13.31.0.pre.alpha.play1262iconstyles3171 lib/playbook/right.rb
playbook_ui-13.31.0 lib/playbook/right.rb
playbook_ui-13.30.0.pre.alpha.play1367contenttagnoninputkits3159 lib/playbook/right.rb
playbook_ui-13.30.0.pre.alpha.20240515remotebuildkitconversion3150 lib/playbook/right.rb
playbook_ui-13.30.0.pre.alpha.PBNTR353draggablev53136 lib/playbook/right.rb
playbook_ui-13.30.0.pre.alpha.PLAY1328fixtimelinekitglobalpropsreact3096 lib/playbook/right.rb
playbook_ui-13.30.0 lib/playbook/right.rb
playbook_ui-13.29.0.pre.alpha.removeduplicatekitexampleclass3063 lib/playbook/right.rb
playbook_ui-13.29.0.pre.alpha.PBNTR329draggablev33060 lib/playbook/right.rb
playbook_ui-13.29.0.pre.alpha.PBNTR329draggablev33059 lib/playbook/right.rb