packages/interface/src/index.js
function create(stylesObject) {
  const stylesToClasses = {};
  const styleNames = Object.keys(stylesObject);
  const sharedState = globalCache.get(GLOBAL_CACHE_KEY) || {};
  const { namespace = '' } = sharedState;
  styleNames.forEach((styleName) => {
    const className = getClassName(namespace, styleName);
    stylesToClasses[styleName] = className;
  });
  return stylesToClasses;
}
function create(stylesObject) {
  const stylesToClasses = {};
  const styleNames = Object.keys(stylesObject);
  const sharedState = globalCache.get(GLOBAL_CACHE_KEY) || {};
  const { namespace = '' } = sharedState;
  styleNames.forEach((styleName) => {
    const className = getClassName(namespace, styleName);
    stylesToClasses[styleName] = className;
  });
  return stylesToClasses;
}
function create ( stylesObject ) { const stylesToClasses = { } ; const styleNames = Object . keys ( stylesObject ) ; const sharedState = globalCache . get ( GLOBAL_CACHE_KEY ) || { } ; const { namespace = '' } = sharedState ; styleNames . forEach ( ( styleName ) => { const className = getClassName ( namespace , styleName ) ; stylesToClasses [ styleName ] = className ; } ) ; return stylesToClasses ; }
Function required as part of the react-with-styles interface. Parses the styles provided by
react-with-styles to produce class names based on the style name and optionally the namespace if
available.

stylesObject {Object} The styles object passed to withStyles.

Return an object mapping style names to class names.
Function required as part of the react - with - styles interface . Parses the styles provided by react - with - styles to produce class names based on the style name and optionally the namespace if available .