@pandacss/token-dictionary 0.0.0-dev-20221121154052 → 0.0.0-dev-20221121154622

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +21 -21
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- declare type TokenStatus$1 = 'deprecated' | 'experimental' | 'new';
2
- declare type ExtensionData = {
1
+ type TokenStatus$1 = 'deprecated' | 'experimental' | 'new';
2
+ type ExtensionData = {
3
3
  status?: TokenStatus$1;
4
4
  category?: string;
5
5
  references?: TokenReferences;
6
6
  condition?: string;
7
7
  conditions?: TokenConditions;
8
8
  };
9
- declare type TokenConditions = Record<string, string>;
10
- declare type TokenReferences = Record<string, Token>;
11
- declare type TokenExtensions = ExtensionData & {
9
+ type TokenConditions = Record<string, string>;
10
+ type TokenReferences = Record<string, Token>;
11
+ type TokenExtensions = ExtensionData & {
12
12
  [key: string]: any;
13
13
  };
14
- declare type ExtendedToken = {
14
+ type ExtendedToken = {
15
15
  name: string;
16
16
  value: any;
17
17
  type?: string;
@@ -73,8 +73,8 @@ declare class Token {
73
73
  setType(): void;
74
74
  }
75
75
 
76
- declare type TokenStatus = 'deprecated' | 'experimental' | 'new';
77
- declare type TokenEntry<V = any> = {
76
+ type TokenStatus = 'deprecated' | 'experimental' | 'new';
77
+ type TokenEntry<V = any> = {
78
78
  value: V;
79
79
  description?: string;
80
80
  type?: string;
@@ -83,7 +83,7 @@ declare type TokenEntry<V = any> = {
83
83
  [key: string]: any;
84
84
  };
85
85
  };
86
- declare type SemanticTokenEntry<V = string, C extends string = string> = {
86
+ type SemanticTokenEntry<V = string, C extends string = string> = {
87
87
  description?: string;
88
88
  type?: string;
89
89
  value: V | Record<C, V>;
@@ -91,12 +91,12 @@ declare type SemanticTokenEntry<V = string, C extends string = string> = {
91
91
  [key: string]: any;
92
92
  };
93
93
  };
94
- declare type Border = {
94
+ type Border = {
95
95
  color: string;
96
96
  width: string | number;
97
97
  style: string;
98
98
  };
99
- declare type Shadow = {
99
+ type Shadow = {
100
100
  offsetX: number;
101
101
  offsetY: number;
102
102
  blur: number;
@@ -104,7 +104,7 @@ declare type Shadow = {
104
104
  color: string;
105
105
  inset?: boolean;
106
106
  };
107
- declare type Gradient = {
107
+ type Gradient = {
108
108
  type: 'linear' | 'radial';
109
109
  placement: string | number;
110
110
  stops: Array<{
@@ -112,10 +112,10 @@ declare type Gradient = {
112
112
  position: number;
113
113
  }>;
114
114
  };
115
- declare type Nested<T> = {
115
+ type Nested<T> = {
116
116
  [key: string]: T | Nested<T>;
117
117
  };
118
- declare type TokenValues = {
118
+ type TokenValues = {
119
119
  zIndex: number;
120
120
  opacity: number;
121
121
  colors: string;
@@ -136,30 +136,30 @@ declare type TokenValues = {
136
136
  blurs: string;
137
137
  gradients: string | Gradient;
138
138
  };
139
- declare type Tokens = {
139
+ type Tokens = {
140
140
  [key in keyof TokenValues]?: Nested<TokenEntry<TokenValues[key]>>;
141
141
  };
142
- declare type SemanticTokens<C extends string = string> = {
142
+ type SemanticTokens<C extends string = string> = {
143
143
  [key in keyof TokenValues]?: Nested<SemanticTokenEntry<TokenValues[key], C>>;
144
144
  };
145
145
 
146
- declare type EnforcePhase = 'pre' | 'post';
147
- declare type Options = {
146
+ type EnforcePhase = 'pre' | 'post';
147
+ type Options = {
148
148
  prefix?: string;
149
149
  };
150
- declare type TokenTransformer = {
150
+ type TokenTransformer = {
151
151
  name: string;
152
152
  enforce?: EnforcePhase;
153
153
  type?: 'value' | 'name' | 'extensions';
154
154
  match?: (token: Token) => boolean;
155
155
  transform: (token: Token, options: Options) => any;
156
156
  };
157
- declare type TokenDictionaryOptions = {
157
+ type TokenDictionaryOptions = {
158
158
  tokens?: Tokens;
159
159
  semanticTokens?: SemanticTokens;
160
160
  prefix?: string;
161
161
  };
162
- declare type TokenMiddleware = {
162
+ type TokenMiddleware = {
163
163
  enforce?: EnforcePhase;
164
164
  transform: (dict: TokenDictionary$1, options: Options) => void;
165
165
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/token-dictionary",
3
- "version": "0.0.0-dev-20221121154052",
3
+ "version": "0.0.0-dev-20221121154622",
4
4
  "description": "Common error messages for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -15,10 +15,10 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "ts-pattern": "4.0.6",
18
- "@pandacss/shared": "0.0.0-dev-20221121154052"
18
+ "@pandacss/shared": "0.0.0-dev-20221121154622"
19
19
  },
20
20
  "devDependencies": {
21
- "@pandacss/fixture": "0.0.0-dev-20221121154052"
21
+ "@pandacss/fixture": "0.0.0-dev-20221121154622"
22
22
  },
23
23
  "scripts": {
24
24
  "build": "tsup src/index.ts --format=esm,cjs --dts",