@pandacss/config 0.0.0-dev-20240301213932 → 0.0.0-dev-20240303212920
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 +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -757,6 +757,10 @@ var validateTokens = (options) => {
|
|
|
757
757
|
addError("tokens", `Token must contain 'value': \`theme.tokens.${formattedPath}\``);
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
760
|
+
if (path2.includes(" ")) {
|
|
761
|
+
addError("tokens", `Token key must not contain spaces: \`theme.tokens.${formattedPath}\``);
|
|
762
|
+
return;
|
|
763
|
+
}
|
|
760
764
|
if (isTokenReference(value)) {
|
|
761
765
|
refsByPath.set(formattedPath, /* @__PURE__ */ new Set([]));
|
|
762
766
|
}
|
|
@@ -802,6 +806,10 @@ var validateTokens = (options) => {
|
|
|
802
806
|
tokenPaths.forEach((path2) => {
|
|
803
807
|
const formattedPath = formatPath(path2);
|
|
804
808
|
const value = valueAtPath.get(path2);
|
|
809
|
+
if (path2.includes(" ")) {
|
|
810
|
+
addError("tokens", `Token key must not contain spaces: \`theme.tokens.${formattedPath}\``);
|
|
811
|
+
return;
|
|
812
|
+
}
|
|
805
813
|
if (!(0, import_shared7.isObject)(value) && !path2.includes("value")) {
|
|
806
814
|
addError("tokens", `Token must contain 'value': \`theme.semanticTokens.${formattedPath}\``);
|
|
807
815
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -394,6 +394,10 @@ var validateTokens = (options) => {
|
|
|
394
394
|
addError("tokens", `Token must contain 'value': \`theme.tokens.${formattedPath}\``);
|
|
395
395
|
return;
|
|
396
396
|
}
|
|
397
|
+
if (path2.includes(" ")) {
|
|
398
|
+
addError("tokens", `Token key must not contain spaces: \`theme.tokens.${formattedPath}\``);
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
397
401
|
if (isTokenReference(value)) {
|
|
398
402
|
refsByPath.set(formattedPath, /* @__PURE__ */ new Set([]));
|
|
399
403
|
}
|
|
@@ -439,6 +443,10 @@ var validateTokens = (options) => {
|
|
|
439
443
|
tokenPaths.forEach((path2) => {
|
|
440
444
|
const formattedPath = formatPath(path2);
|
|
441
445
|
const value = valueAtPath.get(path2);
|
|
446
|
+
if (path2.includes(" ")) {
|
|
447
|
+
addError("tokens", `Token key must not contain spaces: \`theme.tokens.${formattedPath}\``);
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
442
450
|
if (!isObject(value) && !path2.includes("value")) {
|
|
443
451
|
addError("tokens", `Token must contain 'value': \`theme.semanticTokens.${formattedPath}\``);
|
|
444
452
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/config",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20240303212920",
|
|
4
4
|
"description": "Find and load panda config",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"merge-anything": "5.1.7",
|
|
65
65
|
"microdiff": "1.3.2",
|
|
66
66
|
"typescript": "5.3.3",
|
|
67
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
68
|
-
"@pandacss/preset-base": "0.0.0-dev-
|
|
69
|
-
"@pandacss/preset-panda": "0.0.0-dev-
|
|
70
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
71
|
-
"@pandacss/types": "0.0.0-dev-
|
|
67
|
+
"@pandacss/logger": "0.0.0-dev-20240303212920",
|
|
68
|
+
"@pandacss/preset-base": "0.0.0-dev-20240303212920",
|
|
69
|
+
"@pandacss/preset-panda": "0.0.0-dev-20240303212920",
|
|
70
|
+
"@pandacss/shared": "0.0.0-dev-20240303212920",
|
|
71
|
+
"@pandacss/types": "0.0.0-dev-20240303212920"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"pkg-types": "1.0.3"
|