class Playbook::PbFlex::Flex

def align_class

def align_class
  if align == "none"
    vertical_class
  else
    "align_items_#{align}"
  end
end

def align_self_class

def align_self_class
  if align_self == "none"
    nil
  else
    "align_self_#{align_self}"
  end
end

def classname

def classname
  generate_classname("pb_flex_kit",
                     orientation_class,
                     justify_class,
                     align_class,
                     inline_class,
                     reverse_class,
                     wrap_class,
                     spacing_class,
                     gap_class,
                     row_gap_class,
                     column_gap_class,
                     align_self_class)
end

def column_gap_class

def column_gap_class
  if column_gap == "none"
    nil
  else
    "columnGap_#{column_gap}"
  end
end

def gap_class

def gap_class
  if gap == "none"
    nil
  else
    "gap_#{gap}"
  end
end

def horizontal_class

def horizontal_class
  if orientation == "row"
    "justify_content_#{horizontal}"
  elsif align == "none"
    "align_items_#{horizontal}"
  end
end

def inline_class

def inline_class
  inline ? "inline" : nil
end

def justify_class

def justify_class
  if justify == "none"
    horizontal_class
  else
    "justify_content_#{justify}"
  end
end

def orientation_class

def orientation_class
  "orientation_#{orientation}"
end

def reverse_class

def reverse_class
  reverse ? "reverse" : nil
end

def row_gap_class

def row_gap_class
  if row_gap == "none"
    nil
  else
    "rowGap_#{row_gap}"
  end
end

def spacing_class

def spacing_class
  "spacing_#{spacing}"
end

def vertical_class

def vertical_class
  if orientation == "row"
    "align_items_#{vertical}"
  elsif justify == "none"
    "justify_content_#{vertical}"
  end
end

def wrap_class

def wrap_class
  wrap ? "wrap" : nil
end