module Playbook::Bottom

def self.included(base)

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

def bottom_options

def bottom_options
  {
    bottom: "bottom",
  }
end

def bottom_props

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)
    css = if value.is_a?(Hash) && value[:inset] && bottom_values.include?(value[:value])
            "bottom_#{value[:value]}_inset"
          elsif bottom_values.include?(value)
            "bottom_#{value}"
          end
    css
  end.compact.join(" ")
end

def bottom_values

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