@pandacss/generator 0.18.0 → 0.18.1
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1362,8 +1362,8 @@ function generateTokenJs(ctx) {
|
|
|
1362
1362
|
const { tokens } = ctx;
|
|
1363
1363
|
const map = /* @__PURE__ */ new Map();
|
|
1364
1364
|
tokens.allTokens.forEach((token) => {
|
|
1365
|
-
const { varRef } = token.extensions;
|
|
1366
|
-
const value = token.isConditional ? varRef : token.value;
|
|
1365
|
+
const { varRef, isVirtual } = token.extensions;
|
|
1366
|
+
const value = token.isConditional || isVirtual ? varRef : token.value;
|
|
1367
1367
|
map.set(token.name, { value, variable: varRef });
|
|
1368
1368
|
});
|
|
1369
1369
|
const obj = Object.fromEntries(map);
|
package/dist/index.mjs
CHANGED
|
@@ -1331,8 +1331,8 @@ function generateTokenJs(ctx) {
|
|
|
1331
1331
|
const { tokens } = ctx;
|
|
1332
1332
|
const map = /* @__PURE__ */ new Map();
|
|
1333
1333
|
tokens.allTokens.forEach((token) => {
|
|
1334
|
-
const { varRef } = token.extensions;
|
|
1335
|
-
const value = token.isConditional ? varRef : token.value;
|
|
1334
|
+
const { varRef, isVirtual } = token.extensions;
|
|
1335
|
+
const value = token.isConditional || isVirtual ? varRef : token.value;
|
|
1336
1336
|
map.set(token.name, { value, variable: varRef });
|
|
1337
1337
|
});
|
|
1338
1338
|
const obj = Object.fromEntries(map);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/generator",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"pluralize": "8.0.0",
|
|
33
33
|
"postcss": "^8.4.31",
|
|
34
34
|
"ts-pattern": "5.0.5",
|
|
35
|
-
"@pandacss/core": "0.18.
|
|
36
|
-
"@pandacss/is-valid-prop": "0.18.
|
|
37
|
-
"@pandacss/logger": "0.18.
|
|
38
|
-
"@pandacss/shared": "0.18.
|
|
39
|
-
"@pandacss/token-dictionary": "0.18.
|
|
40
|
-
"@pandacss/types": "0.18.
|
|
35
|
+
"@pandacss/core": "0.18.1",
|
|
36
|
+
"@pandacss/is-valid-prop": "0.18.1",
|
|
37
|
+
"@pandacss/logger": "0.18.1",
|
|
38
|
+
"@pandacss/shared": "0.18.1",
|
|
39
|
+
"@pandacss/token-dictionary": "0.18.1",
|
|
40
|
+
"@pandacss/types": "0.18.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/pluralize": "0.0.30",
|
|
44
44
|
"hookable": "5.5.3",
|
|
45
|
-
"@pandacss/fixture": "0.18.
|
|
45
|
+
"@pandacss/fixture": "0.18.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|