text: /* @flow */
  'use strict';
  
  export const TEXT_TRANSFORM = {
      NONE: 0,
      LOWERCASE: 1,
      UPPERCASE: 2,
      CAPITALIZE: 3
  };
  
  export type TextTransform = $Values<typeof TEXT_TRANSFORM>;
  
  export const parseTextTransform = (textTransform: string): TextTransform => {
      switch (textTransform) {
          case 'uppercase':
              return TEXT_TRANSFORM.UPPERCASE;
          case 'lowercase':
              return TEXT_TRANSFORM.LOWERCASE;
          case 'capitalize':
              return TEXT_TRANSFORM.CAPITALIZE;
      }
  
      return TEXT_TRANSFORM.NONE;
  };
  