@pandacss/token-dictionary
Advanced tools
Comparing version 0.45.0 to 0.45.1
@@ -643,13 +643,14 @@ "use strict"; | ||
return token.value; | ||
refs.forEach((ref) => { | ||
if (!ref.includes("/")) { | ||
const modifier = refs.some((ref) => ref.includes("/")); | ||
if (!modifier) { | ||
refs.forEach((ref) => { | ||
const variable = dictionary.formatCssVar(ref.split("."), { prefix, hash }).ref; | ||
token.value = token.value.replace(`{${ref}}`, variable); | ||
return; | ||
} | ||
const expanded = expandReferences(token.value, (path) => { | ||
const tokenFn = (tokenPath) => { | ||
const token2 = dictionary.getByName(tokenPath); | ||
return token2?.extensions.varRef; | ||
}; | ||
}); | ||
} else { | ||
const tokenFn = (name) => { | ||
const token2 = dictionary.getByName(name); | ||
return token2?.extensions.varRef; | ||
}; | ||
token.value = expandReferences(token.value, (path) => { | ||
const mix = dictionary.colorMix(path, tokenFn); | ||
@@ -661,4 +662,3 @@ if (mix.invalid) { | ||
}); | ||
token.value = token.value.replace(`{${ref}}`, expanded); | ||
}); | ||
} | ||
return token.value; | ||
@@ -665,0 +665,0 @@ } |
{ | ||
"name": "@pandacss/token-dictionary", | ||
"version": "0.45.0", | ||
"version": "0.45.1", | ||
"description": "Common error messages for css panda", | ||
@@ -36,5 +36,5 @@ "main": "dist/index.js", | ||
"ts-pattern": "5.0.8", | ||
"@pandacss/logger": "^0.45.0", | ||
"@pandacss/shared": "0.45.0", | ||
"@pandacss/types": "0.45.0" | ||
"@pandacss/logger": "^0.45.1", | ||
"@pandacss/shared": "0.45.1", | ||
"@pandacss/types": "0.45.1" | ||
}, | ||
@@ -41,0 +41,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96895
+ Added@pandacss/shared@0.45.1(transitive)
+ Added@pandacss/types@0.45.1(transitive)
- Removed@pandacss/shared@0.45.0(transitive)
- Removed@pandacss/types@0.45.0(transitive)
Updated@pandacss/logger@^0.45.1
Updated@pandacss/shared@0.45.1
Updated@pandacss/types@0.45.1