@pandacss/token-dictionary 0.6.0 → 0.8.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 +12 -1
- package/dist/index.mjs +12 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -487,7 +487,7 @@ var formats = {
|
|
|
487
487
|
grouped.forEach((tokens, condition) => {
|
|
488
488
|
result.get(condition) || result.set(condition, /* @__PURE__ */ new Map());
|
|
489
489
|
tokens.forEach((token) => {
|
|
490
|
-
if (token.extensions.isNegative)
|
|
490
|
+
if (token.extensions.isNegative || token.extensions.isVirtual)
|
|
491
491
|
return;
|
|
492
492
|
result.get(condition).set(token.extensions.var, token.value);
|
|
493
493
|
});
|
|
@@ -722,6 +722,17 @@ var transformShadow = {
|
|
|
722
722
|
return token.value;
|
|
723
723
|
}
|
|
724
724
|
if (Array.isArray(token.value)) {
|
|
725
|
+
if (token.extensions.conditions) {
|
|
726
|
+
const conditions = token.extensions.conditions;
|
|
727
|
+
for (const [prop, value] of Object.entries(conditions)) {
|
|
728
|
+
if (Array.isArray(value)) {
|
|
729
|
+
conditions[prop] = value.map((value2) => this.transform({ value: value2 }, { prefix })).join(", ");
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
if (token.extensions.conditions?.base && Array.isArray(token.originalValue)) {
|
|
733
|
+
return token.extensions.conditions.base;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
725
736
|
return token.value.map((value) => this.transform({ value }, { prefix })).join(", ");
|
|
726
737
|
}
|
|
727
738
|
if (isCompositeShadow(token.value)) {
|
package/dist/index.mjs
CHANGED
|
@@ -460,7 +460,7 @@ var formats = {
|
|
|
460
460
|
grouped.forEach((tokens, condition) => {
|
|
461
461
|
result.get(condition) || result.set(condition, /* @__PURE__ */ new Map());
|
|
462
462
|
tokens.forEach((token) => {
|
|
463
|
-
if (token.extensions.isNegative)
|
|
463
|
+
if (token.extensions.isNegative || token.extensions.isVirtual)
|
|
464
464
|
return;
|
|
465
465
|
result.get(condition).set(token.extensions.var, token.value);
|
|
466
466
|
});
|
|
@@ -695,6 +695,17 @@ var transformShadow = {
|
|
|
695
695
|
return token.value;
|
|
696
696
|
}
|
|
697
697
|
if (Array.isArray(token.value)) {
|
|
698
|
+
if (token.extensions.conditions) {
|
|
699
|
+
const conditions = token.extensions.conditions;
|
|
700
|
+
for (const [prop, value] of Object.entries(conditions)) {
|
|
701
|
+
if (Array.isArray(value)) {
|
|
702
|
+
conditions[prop] = value.map((value2) => this.transform({ value: value2 }, { prefix })).join(", ");
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
if (token.extensions.conditions?.base && Array.isArray(token.originalValue)) {
|
|
706
|
+
return token.extensions.conditions.base;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
698
709
|
return token.value.map((value) => this.transform({ value }, { prefix })).join(", ");
|
|
699
710
|
}
|
|
700
711
|
if (isCompositeShadow(token.value)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/token-dictionary",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Common error messages for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"ts-pattern": "
|
|
18
|
-
"@pandacss/types": "0.
|
|
19
|
-
"@pandacss/shared": "0.
|
|
17
|
+
"ts-pattern": "5.0.4",
|
|
18
|
+
"@pandacss/types": "0.8.0",
|
|
19
|
+
"@pandacss/shared": "0.8.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@pandacss/fixture": "0.
|
|
22
|
+
"@pandacss/fixture": "0.8.0"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|