@pandacss/token-dictionary 0.34.2 → 0.35.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.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _pandacss_types from '@pandacss/types';
|
|
2
2
|
import { Tokens, SemanticTokens } from '@pandacss/types';
|
|
3
|
+
import { CssVarOptions, CssVar } from '@pandacss/shared';
|
|
3
4
|
|
|
4
5
|
type TokenStatus = 'deprecated' | 'experimental' | 'new';
|
|
5
6
|
interface ExtensionData {
|
|
@@ -157,7 +158,7 @@ declare class TokenDictionaryView {
|
|
|
157
158
|
constructor(dictionary: TokenDictionary);
|
|
158
159
|
getTokensView(): {
|
|
159
160
|
conditionMap: Map<string, Set<Token>>;
|
|
160
|
-
categoryMap: Map<
|
|
161
|
+
categoryMap: Map<keyof _pandacss_types.TokenDataTypes, Map<string, Token>>;
|
|
161
162
|
colorPalettes: Map<string, Map<string, string>>;
|
|
162
163
|
vars: Map<string, Map<string, string>>;
|
|
163
164
|
values: Map<string, string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _pandacss_types from '@pandacss/types';
|
|
2
2
|
import { Tokens, SemanticTokens } from '@pandacss/types';
|
|
3
|
+
import { CssVarOptions, CssVar } from '@pandacss/shared';
|
|
3
4
|
|
|
4
5
|
type TokenStatus = 'deprecated' | 'experimental' | 'new';
|
|
5
6
|
interface ExtensionData {
|
|
@@ -157,7 +158,7 @@ declare class TokenDictionaryView {
|
|
|
157
158
|
constructor(dictionary: TokenDictionary);
|
|
158
159
|
getTokensView(): {
|
|
159
160
|
conditionMap: Map<string, Set<Token>>;
|
|
160
|
-
categoryMap: Map<
|
|
161
|
+
categoryMap: Map<keyof _pandacss_types.TokenDataTypes, Map<string, Token>>;
|
|
161
162
|
colorPalettes: Map<string, Map<string, string>>;
|
|
162
163
|
vars: Map<string, Map<string, string>>;
|
|
163
164
|
values: Map<string, string>;
|
package/dist/index.js
CHANGED
|
@@ -1090,7 +1090,7 @@ var TokenDictionaryView = class {
|
|
|
1090
1090
|
return;
|
|
1091
1091
|
if (!byCategory.has(category))
|
|
1092
1092
|
byCategory.set(category, /* @__PURE__ */ new Map());
|
|
1093
|
-
const value = isNegative ? token.
|
|
1093
|
+
const value = isNegative ? token.extensions.condition !== "base" ? token.originalValue : token.value : varRef;
|
|
1094
1094
|
byCategory.get(category).set(prop, value);
|
|
1095
1095
|
flat.set(token.name, value);
|
|
1096
1096
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1070,7 +1070,7 @@ var TokenDictionaryView = class {
|
|
|
1070
1070
|
return;
|
|
1071
1071
|
if (!byCategory.has(category))
|
|
1072
1072
|
byCategory.set(category, /* @__PURE__ */ new Map());
|
|
1073
|
-
const value = isNegative ? token.
|
|
1073
|
+
const value = isNegative ? token.extensions.condition !== "base" ? token.originalValue : token.value : varRef;
|
|
1074
1074
|
byCategory.get(category).set(prop, value);
|
|
1075
1075
|
flat.set(token.name, value);
|
|
1076
1076
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/token-dictionary",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Common error messages for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ts-pattern": "5.0.8",
|
|
36
|
-
"@pandacss/logger": "^0.
|
|
37
|
-
"@pandacss/shared": "0.
|
|
38
|
-
"@pandacss/types": "0.
|
|
36
|
+
"@pandacss/logger": "^0.35.0",
|
|
37
|
+
"@pandacss/shared": "0.35.0",
|
|
38
|
+
"@pandacss/types": "0.35.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|