UNPKG

917 BSource Map (JSON)View Raw
1{"version":3,"sources":["parseStyleName.js"],"names":[],"mappings":";;;;;;;;;;;;kBAEe,UAAC,sBAAD,EAAiC,aAAjC,EAA2E;AACtF,QAAI,sBAAJ,CADsF;;AAGtF,iBAAa,uBAAuB,KAAvB,CAA6B,GAA7B,CAAb,CAHsF;AAItF,iBAAa,sBAAS,UAAT,CAAb,CAJsF;;AAMtF,QAAI,kBAAkB,KAAlB,IAA2B,WAAW,MAAX,GAAoB,CAApB,EAAuB;AAClD,cAAM,IAAI,KAAJ,CAAU,qEAAqE,sBAArE,GAA8F,KAA9F,CAAhB,CADkD;KAAtD;;AAIA,WAAO,UAAP,CAVsF;CAA3E","file":"parseStyleName.js","sourcesContent":["import _ from 'lodash';\n\nexport default (styleNamePropertyValue: string, allowMultiple: boolean): Array<string> => {\n let styleNames;\n\n styleNames = styleNamePropertyValue.split(' ');\n styleNames = _.filter(styleNames);\n\n if (allowMultiple === false && styleNames.length > 1) {\n throw new Error('ReactElement styleName property defines multiple module names (\"' + styleNamePropertyValue + '\").');\n }\n\n return styleNames;\n};\n"],"sourceRoot":"/source/"}
\No newline at end of file