@teleporthq/teleport-plugin-common
Advanced tools
Comparing version
@@ -114,5 +114,4 @@ "use strict"; | ||
var content = style.content, _a = style.conditions, conditions = _a === void 0 ? [] : _a; | ||
var className = forceScoping | ||
? "".concat(componentFileName, "-").concat(teleport_shared_1.StringUtils.camelCaseToDashCase(styleId)) | ||
: styleId; | ||
var styleName = teleport_shared_1.StringUtils.camelCaseToDashCase(styleId); | ||
var className = forceScoping ? "".concat(componentFileName, "-").concat(styleName) : styleName; | ||
var _b = teleport_shared_1.UIDLUtils.splitDynamicAndStaticStyles(content), staticStyles = _b.staticStyles, tokenStyles = _b.tokenStyles; | ||
@@ -119,0 +118,0 @@ var collectedStyles = __assign(__assign({}, (0, style_utils_1.getContentOfStyleObject)(staticStyles)), (0, style_utils_1.getCSSVariablesContentFromTokenStyles)(tokenStyles)); |
@@ -80,5 +80,4 @@ var __assign = (this && this.__assign) || function () { | ||
var content = style.content, _a = style.conditions, conditions = _a === void 0 ? [] : _a; | ||
var className = forceScoping | ||
? "".concat(componentFileName, "-").concat(StringUtils.camelCaseToDashCase(styleId)) | ||
: styleId; | ||
var styleName = StringUtils.camelCaseToDashCase(styleId); | ||
var className = forceScoping ? "".concat(componentFileName, "-").concat(styleName) : styleName; | ||
var _b = UIDLUtils.splitDynamicAndStaticStyles(content), staticStyles = _b.staticStyles, tokenStyles = _b.tokenStyles; | ||
@@ -85,0 +84,0 @@ var collectedStyles = __assign(__assign({}, getContentOfStyleObject(staticStyles)), getCSSVariablesContentFromTokenStyles(tokenStyles)); |
{ | ||
"name": "@teleporthq/teleport-plugin-common", | ||
"version": "0.20.3", | ||
"version": "0.20.6", | ||
"description": "Common building and modelating functions for ASTs and HASTs", | ||
@@ -33,3 +33,3 @@ "author": "teleportHQ", | ||
}, | ||
"gitHead": "d52238e7e039a95ebc78e5f6f7cffa8ce20675e0" | ||
"gitHead": "71111c77c83c2b8794a8c1fa038a560653eea6c1" | ||
} |
@@ -109,5 +109,4 @@ import jss from 'jss' | ||
const { content, conditions = [] } = style | ||
const className = forceScoping | ||
? `${componentFileName}-${StringUtils.camelCaseToDashCase(styleId)}` | ||
: styleId | ||
const styleName = StringUtils.camelCaseToDashCase(styleId) | ||
const className = forceScoping ? `${componentFileName}-${styleName}` : styleName | ||
@@ -114,0 +113,0 @@ const { staticStyles, tokenStyles } = UIDLUtils.splitDynamicAndStaticStyles(content) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
417742
0.03%5975
-0.05%