import defineClasses from '../util/defineClasses'

export default function() {
  return defineClasses({
    'wrap': { 'white-space': 'normal' },
    'no-wrap': { 'white-space': 'nowrap' },
    'pre': { 'white-space': 'pre' },
    'pre-line': { 'white-space': 'pre-line' },
    'pre-wrap': { 'white-space': 'pre-wrap' },
    'break-words': { 'word-wrap': 'break-word' },
    'break-normal': { 'word-wrap': 'normal' },
    'truncate': {
      'overflow': 'hidden',
      'text-overflow': 'ellipsis',
      'white-space': 'nowrap',
    },
  })
}

import defineClasses from '../util/defineClasses'

export default function() {
  return defineClasses({
    'white-space-normal': { 'white-space': 'normal' },
    'white-space-nowrap': { 'white-space': 'nowrap' },
    'white-space-pre': { 'white-space': 'pre' },
    'white-space-pre-line': { 'white-space': 'pre-line' },
    'white-space-pre-wrap': { 'white-space': 'pre-wrap' },

    'break-words': { 'word-wrap': 'break-word' },
    'break-normal': { 'word-wrap': 'normal' },

    'truncate': {
      'overflow': 'hidden',
      'text-overflow': 'ellipsis',
      'white-space': 'nowrap',
    },
  })
}

Use grim uncreative white-space utility names
Use grim uncreative white-space utility names

Because CSS is terrible and there's no way to pretty this up no matter
how hard I try.
