class Playbook::PbCard::Card

def background_class

def background_class
  background == "none" ? nil : "background_#{background}"
end

def body_align_content

def body_align_content
  if align_content.present?
    "align_content_#{align_content}"
  else
    ""
  end
end

def body_align_items

def body_align_items
  if align_items.present?
    "align_items_#{align_items}"
  else
    ""
  end
end

def body_align_self

def body_align_self
  if align_self.present?
    "align_self_#{align_self}"
  else
    ""
  end
end

def body_flex

def body_flex
  if flex.present?
    "flex_#{flex}"
  else
    ""
  end
end

def body_flex_direction

def body_flex_direction
  if flex_direction.present?
    "flex_direction_#{flex_direction}"
  else
    ""
  end
end

def body_flex_grow

def body_flex_grow
  if flex_grow.present?
    "flex_grow_#{flex_grow}"
  else
    ""
  end
end

def body_flex_shrink

def body_flex_shrink
  if flex_shrink.present?
    "flex_shrink_#{flex_shrink}"
  else
    ""
  end
end

def body_flex_wrap

def body_flex_wrap
  if flex_wrap.present?
    "flex_wrap_#{flex_wrap}"
  else
    ""
  end
end

def body_justify_content

def body_justify_content
  if justify_content.present?
    "justify_content_#{justify_content}"
  else
    ""
  end
end

def body_justify_self

def body_justify_self
  if justify_self.present?
    "justify_self_#{justify_self}"
  else
    ""
  end
end

def body_order

def body_order
  if order.present?
    "order_#{order}"
  else
    ""
  end
end

def body_padding

def body_padding
  if padding.present?
    ""
  else
    "p_md"
  end
end

def border_class

def border_class
  border_none == true ? "border_none" : nil
end

def border_radius_class

def border_radius_class
  border_radius != "md" ? "border_radius_#{border_radius}" : nil
end

def classname

def classname
  generate_classname("pb_card_kit",
                     selected_class,
                     border_class,
                     border_radius_class,
                     background_class,
                     highlight_position_class,
                     highlight_color_class)
end

def highlight_color_class

def highlight_color_class
  highlight[:color].present? ? "highlight_#{highlight[:color]}" : nil
end

def highlight_position_class

def highlight_position_class
  highlight[:position].present? ? "highlight_#{highlight[:position]}" : nil
end

def selected_class

def selected_class
  selected ? "selected" : "deselected"
end