@pandacss/token-dictionary 0.53.6 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -88,7 +88,7 @@ function getReferences(value) {
88
88
  return [];
89
89
  return matches.map((match3) => match3.replace(curlyBracketRegex, "")).map((value2) => value2.trim());
90
90
  }
91
- var hasReference = (value) => REFERENCE_REGEX.test(value);
91
+ var hasReference = (value) => getReferences(value).length > 0;
92
92
  var tokenFunctionRegex = /token\(([^)]+)\)/g;
93
93
  var closingParenthesisRegex = /\)$/g;
94
94
  var hasTokenReference = (str) => str.includes("token(");
package/dist/index.mjs CHANGED
@@ -64,7 +64,7 @@ function getReferences(value) {
64
64
  return [];
65
65
  return matches.map((match3) => match3.replace(curlyBracketRegex, "")).map((value2) => value2.trim());
66
66
  }
67
- var hasReference = (value) => REFERENCE_REGEX.test(value);
67
+ var hasReference = (value) => getReferences(value).length > 0;
68
68
  var tokenFunctionRegex = /token\(([^)]+)\)/g;
69
69
  var closingParenthesisRegex = /\)$/g;
70
70
  var hasTokenReference = (str) => str.includes("token(");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/token-dictionary",
3
- "version": "0.53.6",
3
+ "version": "0.54.0",
4
4
  "description": "Common error messages for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,9 +33,9 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "ts-pattern": "5.0.8",
36
- "@pandacss/logger": "^0.53.6",
37
- "@pandacss/shared": "0.53.6",
38
- "@pandacss/types": "0.53.6"
36
+ "@pandacss/logger": "^0.54.0",
37
+ "@pandacss/shared": "0.54.0",
38
+ "@pandacss/types": "0.54.0"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "tsup src/index.ts --format=esm,cjs --dts",