class Playbook::PbFlex::FlexItem

def align_self_class

def align_self_class
  align_self ? "align_self_#{align_self}" : ""
end

def classname

def classname
  generate_classname("pb_flex_item_kit", fixed_size_class, grow_class, shrink_class, display_flex_class) + align_self_class
end

def display_flex_class

def display_flex_class
  display_flex ? "display_flex" : nil
end

def fixed_size_class

def fixed_size_class
  fixed_size.present? ? "fixed_size" : nil
end

def grow_class

def grow_class
  grow ? "grow" : nil
end

def shrink_class

def shrink_class
  shrink ? "shrink" : nil
end

def style_value

def style_value
  "flex-basis: #{fixed_size};" if fixed_size.present?
end