@pandacss/shared
Advanced tools
Comparing version 0.0.0-dev-20221203082644 to 0.0.0-dev-20221203144844
@@ -211,2 +211,3 @@ "use strict"; | ||
}; | ||
var sanitize = (value) => typeof value === "string" ? value.replaceAll(/[\n\s]+/g, " ") : value; | ||
function createCss(context) { | ||
@@ -224,3 +225,3 @@ const { utility, hash, conditions: conds = fallbackCondition } = context; | ||
const conditions = filterBaseConditions(allConditions); | ||
const transformed = utility.transform(prop, withoutImportant(value)); | ||
const transformed = utility.transform(prop, withoutImportant(sanitize(value))); | ||
let transformedClassName = transformed.className; | ||
@@ -227,0 +228,0 @@ if (important) { |
@@ -160,2 +160,3 @@ "use strict"; | ||
}; | ||
var sanitize = (value) => typeof value === "string" ? value.replaceAll(/[\n\s]+/g, " ") : value; | ||
function createCss(context) { | ||
@@ -173,3 +174,3 @@ const { utility, hash, conditions: conds = fallbackCondition } = context; | ||
const conditions = filterBaseConditions(allConditions); | ||
const transformed = utility.transform(prop, withoutImportant(value)); | ||
const transformed = utility.transform(prop, withoutImportant(sanitize(value))); | ||
let transformedClassName = transformed.className; | ||
@@ -176,0 +177,0 @@ if (important) { |
{ | ||
"name": "@pandacss/shared", | ||
"version": "0.0.0-dev-20221203082644", | ||
"version": "0.0.0-dev-20221203144844", | ||
"description": "Shared utilities for css panda", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41201
1251