@pandacss/token-dictionary 0.14.0 → 0.15.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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -122,12 +122,12 @@ var Token = class _Token {
|
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Returns the token value with the references expanded.
|
|
125
|
-
* e.g. {color.gray.100} =>
|
|
125
|
+
* e.g. {color.gray.100} => var(--colors-gray-100)
|
|
126
126
|
*
|
|
127
127
|
*/
|
|
128
128
|
expandReferences() {
|
|
129
129
|
if (!this.hasReference)
|
|
130
|
-
return this.value;
|
|
130
|
+
return this.extensions.varRef ?? this.value;
|
|
131
131
|
const references = this.extensions.references ?? {};
|
|
132
132
|
this.value = Object.keys(references).reduce((valueStr, key) => {
|
|
133
133
|
const referenceToken = references[key];
|
package/dist/index.mjs
CHANGED
|
@@ -95,12 +95,12 @@ var Token = class _Token {
|
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
97
|
* Returns the token value with the references expanded.
|
|
98
|
-
* e.g. {color.gray.100} =>
|
|
98
|
+
* e.g. {color.gray.100} => var(--colors-gray-100)
|
|
99
99
|
*
|
|
100
100
|
*/
|
|
101
101
|
expandReferences() {
|
|
102
102
|
if (!this.hasReference)
|
|
103
|
-
return this.value;
|
|
103
|
+
return this.extensions.varRef ?? this.value;
|
|
104
104
|
const references = this.extensions.references ?? {};
|
|
105
105
|
this.value = Object.keys(references).reduce((valueStr, key) => {
|
|
106
106
|
const referenceToken = references[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/token-dictionary",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
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": "5.0.
|
|
18
|
-
"@pandacss/
|
|
19
|
-
"@pandacss/
|
|
17
|
+
"ts-pattern": "5.0.5",
|
|
18
|
+
"@pandacss/shared": "0.15.1",
|
|
19
|
+
"@pandacss/types": "0.15.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@pandacss/fixture": "0.
|
|
22
|
+
"@pandacss/fixture": "0.15.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|