@pandacss/token-dictionary 0.15.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 CHANGED
@@ -53,7 +53,7 @@ declare class Token {
53
53
  get isComposite(): boolean;
54
54
  /**
55
55
  * Returns the token value with the references expanded.
56
- * e.g. {color.gray.100} => #f7fafc
56
+ * e.g. {color.gray.100} => var(--colors-gray-100)
57
57
  *
58
58
  */
59
59
  expandReferences(): string;
package/dist/index.d.ts CHANGED
@@ -53,7 +53,7 @@ declare class Token {
53
53
  get isComposite(): boolean;
54
54
  /**
55
55
  * Returns the token value with the references expanded.
56
- * e.g. {color.gray.100} => #f7fafc
56
+ * e.g. {color.gray.100} => var(--colors-gray-100)
57
57
  *
58
58
  */
59
59
  expandReferences(): string;
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} => #f7fafc
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} => #f7fafc
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.15.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.4",
18
- "@pandacss/types": "0.15.0",
19
- "@pandacss/shared": "0.15.0"
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.15.0"
22
+ "@pandacss/fixture": "0.15.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format=esm,cjs --dts",