wix-style-processor
Advanced tools
Comparing version 1.1.19 to 1.1.20
@@ -8,3 +8,3 @@ "use strict"; | ||
var innerQuotesRegex = /"([^"]+)"/g; | ||
var transformRegex = /^(color|opacity|darken|string|join|number|font|increment|incrementer)\((.*)\)$/; | ||
var transformRegex = /^(color|opacity|darken|string|join|number|font|increment|incrementer|withoutOpacity)\((.*)\)$/; | ||
var singleTransformRegex = /^(\w*)\(([^()]+)\)$/; | ||
@@ -11,0 +11,0 @@ var processParamsRegex = /,(?![^(]*\))/g; |
@@ -26,2 +26,6 @@ "use strict"; | ||
} | ||
function withoutOpacity(params, siteVars, evalCustomVar) { | ||
var colorVal = color(params, siteVars, evalCustomVar); | ||
return (new Color(colorVal)).alpha(1).rgb().string(); | ||
} | ||
function darken(params, siteVars, evalCustomVar) { | ||
@@ -65,4 +69,4 @@ var colorVal = color(params, siteVars, evalCustomVar); | ||
exports.default = { | ||
color: color, number: number, font: font, opacity: opacity, join: join, darken: darken, string: string | ||
color: color, number: number, font: font, opacity: opacity, join: join, darken: darken, string: string, withoutOpacity: withoutOpacity | ||
}; | ||
//# sourceMappingURL=transformations.js.map |
@@ -5,3 +5,3 @@ { | ||
"description": "An alternative Wix Styles TPA processor", | ||
"version": "1.1.19", | ||
"version": "1.1.20", | ||
"author": { | ||
@@ -8,0 +8,0 @@ "name": "Eran Shabi", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51451
570