@teleporthq/teleport-plugin-css
Advanced tools
Comparing version
@@ -43,2 +43,11 @@ import { | ||
}, | ||
someClassId: { | ||
type: 'reusable-project-style-map', | ||
content: { | ||
background: staticNode('red'), | ||
color: staticNode('blue'), | ||
}, | ||
className: 'secondaryButton', | ||
subselectors: ' h1', | ||
}, | ||
conditionalButton: { | ||
@@ -96,2 +105,3 @@ type: 'reusable-project-style-map', | ||
expect(content).toContain('.conditionalButton:hover') | ||
expect(content).toContain('.secondaryButton h1') | ||
expect(content).toContain('@media(max-width: 991px)') | ||
@@ -98,0 +108,0 @@ expect(content).not.toContain('5ecfa1233b8e50f60ea2b64b') |
@@ -51,3 +51,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -54,0 +54,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -30,0 +30,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -16,3 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -19,0 +19,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
{ | ||
"name": "@teleporthq/teleport-plugin-css", | ||
"version": "0.27.8", | ||
"version": "0.28.0-alpha.0", | ||
"description": "A plugin for creating the styles into external css files", | ||
@@ -28,7 +28,7 @@ "author": "teleportHQ", | ||
"@babel/types": "^7.5.5", | ||
"@teleporthq/teleport-plugin-common": "^0.27.8", | ||
"@teleporthq/teleport-shared": "^0.27.8", | ||
"@teleporthq/teleport-types": "^0.27.8" | ||
"@teleporthq/teleport-plugin-common": "^0.28.0-alpha.0", | ||
"@teleporthq/teleport-shared": "^0.28.0-alpha.0", | ||
"@teleporthq/teleport-types": "^0.28.0-alpha.0" | ||
}, | ||
"gitHead": "3ae7c0728720e2b5b1663c57e08283ede422c227" | ||
"gitHead": "250d0e95a830f2b404486d3ad4f7a3739a74c77f" | ||
} |
@@ -142,3 +142,3 @@ import { StringUtils, UIDLUtils } from '@teleporthq/teleport-shared' | ||
if (Object.keys(dynamicStyles).length > 0) { | ||
/* If dynamic styles are on nested-styles they are unfortunately lost, | ||
/* If dynamic styles are on nested-styles they are unfortunately lost, | ||
since inline style does not support that */ | ||
@@ -210,3 +210,3 @@ if (templateStyle === 'html') { | ||
if (defaultPropValue) { | ||
/* Changing the default value of the prop. | ||
/* Changing the default value of the prop. | ||
When forceScoping is enabled the classnames change. So, we need to change the default prop too. */ | ||
@@ -213,0 +213,0 @@ propDefinitions[styleRef.content.content.content.id].defaultValue = getClassName( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1784
0.56%155013
-1.33%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed