@pandacss/generator 0.16.0 → 0.17.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 +123 -531
- package/dist/index.d.ts +123 -531
- package/dist/index.js +799 -471
- package/dist/index.mjs +799 -471
- package/package.json +23 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,119 +1,93 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { ConfigResultWithHooks, TSConfig } from '@pandacss/types';
|
|
5
|
-
import * as _pandacss_types_dist_pattern from '@pandacss/types/dist/pattern';
|
|
1
|
+
import { Utility, Recipes, Conditions, StylesheetContext, StylesheetOptions, Stylesheet, RecipeNode } from '@pandacss/core';
|
|
2
|
+
import { TokenDictionary } from '@pandacss/token-dictionary';
|
|
3
|
+
import { ConfigResultWithHooks, RequiredBy, HashOptions, PrefixOptions, CascadeLayers, UserConfig, PatternConfig, Dict, TSConfig, Artifact, ParserResultType } from '@pandacss/types';
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
patterns: {
|
|
9
|
-
keys: string[];
|
|
10
|
-
getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
11
|
-
transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
|
|
12
|
-
getNames: (name: string) => {
|
|
13
|
-
upperName: string;
|
|
14
|
-
baseName: string;
|
|
15
|
-
dashName: string;
|
|
16
|
-
styleFnName: string;
|
|
17
|
-
jsxName: string;
|
|
18
|
-
};
|
|
19
|
-
details: {
|
|
20
|
-
props: string[];
|
|
21
|
-
blocklistType: string;
|
|
22
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
23
|
-
type: "pattern";
|
|
24
|
-
match: RegExp;
|
|
25
|
-
jsx: (string | RegExp)[];
|
|
26
|
-
upperName: string;
|
|
27
|
-
baseName: string;
|
|
28
|
-
dashName: string;
|
|
29
|
-
styleFnName: string;
|
|
30
|
-
jsxName: string;
|
|
31
|
-
}[];
|
|
32
|
-
find: (jsxName: string) => string;
|
|
33
|
-
filter: (jsxName: string) => {
|
|
34
|
-
props: string[];
|
|
35
|
-
blocklistType: string;
|
|
36
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
37
|
-
type: "pattern";
|
|
38
|
-
match: RegExp;
|
|
39
|
-
jsx: (string | RegExp)[];
|
|
40
|
-
upperName: string;
|
|
41
|
-
baseName: string;
|
|
42
|
-
dashName: string;
|
|
43
|
-
styleFnName: string;
|
|
44
|
-
jsxName: string;
|
|
45
|
-
}[];
|
|
46
|
-
isEmpty: () => boolean;
|
|
47
|
-
};
|
|
48
|
-
jsx: {
|
|
49
|
-
factoryName: string;
|
|
50
|
-
upperName: string;
|
|
51
|
-
typeName: string;
|
|
52
|
-
componentName: string;
|
|
53
|
-
framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
|
|
54
|
-
styleProps: "all" | "minimal" | "none";
|
|
55
|
-
};
|
|
56
|
-
paths: {
|
|
57
|
-
get: (file?: string | undefined) => string[];
|
|
58
|
-
root: string[];
|
|
59
|
-
css: string[];
|
|
60
|
-
token: string[];
|
|
61
|
-
types: string[];
|
|
62
|
-
recipe: string[];
|
|
63
|
-
pattern: string[];
|
|
64
|
-
chunk: string[];
|
|
65
|
-
outCss: string[];
|
|
66
|
-
jsx: string[];
|
|
67
|
-
};
|
|
68
|
-
file: {
|
|
69
|
-
ext(file: string): string;
|
|
70
|
-
extDts(file: string): string;
|
|
71
|
-
__extDts(file: string): string;
|
|
72
|
-
import(mod: string, file: string): string;
|
|
73
|
-
importType(mod: string, file: string): string;
|
|
74
|
-
exportType(mod: string, file: string): string;
|
|
75
|
-
exportStar(file: string): string;
|
|
76
|
-
exportTypeStar(file: string): string;
|
|
77
|
-
isTypeFile(file: string): boolean;
|
|
78
|
-
};
|
|
5
|
+
interface PandaBaseEngine extends ConfigResultWithHooks {
|
|
79
6
|
isTemplateLiteralSyntax: boolean;
|
|
80
|
-
studio:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
body?: string | undefined;
|
|
86
|
-
} | undefined;
|
|
87
|
-
};
|
|
88
|
-
hash: {
|
|
89
|
-
tokens: boolean | undefined;
|
|
90
|
-
className: boolean | undefined;
|
|
91
|
-
};
|
|
92
|
-
prefix: {
|
|
93
|
-
tokens: string | undefined;
|
|
94
|
-
className: string | undefined;
|
|
95
|
-
};
|
|
96
|
-
tokens: _pandacss_token_dictionary.TokenDictionary;
|
|
97
|
-
utility: _pandacss_core.Utility;
|
|
7
|
+
studio: RequiredBy<NonNullable<ConfigResultWithHooks['config']['studio']>, 'outdir'>;
|
|
8
|
+
hash: HashOptions;
|
|
9
|
+
prefix: PrefixOptions;
|
|
10
|
+
tokens: TokenDictionary;
|
|
11
|
+
utility: Utility;
|
|
98
12
|
properties: string[];
|
|
99
13
|
isValidProperty: (key: string) => boolean;
|
|
100
|
-
recipes:
|
|
101
|
-
conditions:
|
|
102
|
-
createSheetContext: () =>
|
|
103
|
-
createSheet: (options?: Pick<
|
|
104
|
-
layers:
|
|
14
|
+
recipes: Recipes;
|
|
15
|
+
conditions: Conditions;
|
|
16
|
+
createSheetContext: () => StylesheetContext;
|
|
17
|
+
createSheet: (options?: Pick<StylesheetOptions, 'content'>) => Stylesheet;
|
|
18
|
+
layers: CascadeLayers;
|
|
105
19
|
isValidLayerRule: (layerRule: string) => boolean;
|
|
106
20
|
layerString: string;
|
|
107
21
|
layerNames: string[];
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface PandaJsxEngine {
|
|
25
|
+
factoryName: string;
|
|
26
|
+
upperName: string;
|
|
27
|
+
typeName: string;
|
|
28
|
+
variantName: string;
|
|
29
|
+
componentName: string;
|
|
30
|
+
framework: UserConfig['jsxFramework'];
|
|
31
|
+
styleProps: Exclude<UserConfig['jsxStyleProps'], undefined>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface PandaPathEngine {
|
|
35
|
+
get: (file?: string) => string[];
|
|
36
|
+
root: string[];
|
|
37
|
+
css: string[];
|
|
38
|
+
token: string[];
|
|
39
|
+
types: string[];
|
|
40
|
+
recipe: string[];
|
|
41
|
+
pattern: string[];
|
|
42
|
+
chunk: string[];
|
|
43
|
+
outCss: string[];
|
|
44
|
+
jsx: string[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface PandaPatternEngine {
|
|
48
|
+
keys: string[];
|
|
49
|
+
getConfig: (name: string) => PatternConfig;
|
|
50
|
+
transform: (name: string, data: Dict) => Dict;
|
|
51
|
+
getNames: (name: string) => PatternNames;
|
|
52
|
+
details: PatternDetail[];
|
|
53
|
+
find: (jsxName: string) => string;
|
|
54
|
+
filter: (jsxName: string) => PatternDetail[];
|
|
55
|
+
isEmpty: () => boolean;
|
|
56
|
+
}
|
|
57
|
+
interface PatternNames {
|
|
58
|
+
upperName: string;
|
|
59
|
+
baseName: string;
|
|
60
|
+
dashName: string;
|
|
61
|
+
styleFnName: string;
|
|
62
|
+
jsxName: string;
|
|
63
|
+
}
|
|
64
|
+
interface PatternDetail extends PatternNames {
|
|
65
|
+
props: string[];
|
|
66
|
+
blocklistType: string;
|
|
67
|
+
config: PatternConfig;
|
|
68
|
+
type: 'pattern';
|
|
69
|
+
match: RegExp;
|
|
70
|
+
jsx: NonNullable<PatternConfig['jsx']>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface PandaFileEngine {
|
|
74
|
+
ext(file: string): string;
|
|
75
|
+
extDts(file: string): string;
|
|
76
|
+
__extDts(file: string): string;
|
|
77
|
+
import(mod: string, file: string): string;
|
|
78
|
+
importType(mod: string, file: string): string;
|
|
79
|
+
exportType(mod: string, file: string): string;
|
|
80
|
+
exportStar(file: string): string;
|
|
81
|
+
exportTypeStar(file: string): string;
|
|
82
|
+
isTypeFile(file: string): boolean;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface Context extends PandaBaseEngine {
|
|
86
|
+
patterns: PandaPatternEngine;
|
|
87
|
+
jsx: PandaJsxEngine;
|
|
88
|
+
paths: PandaPathEngine;
|
|
89
|
+
file: PandaFileEngine;
|
|
90
|
+
}
|
|
117
91
|
|
|
118
92
|
declare const artifactsGenerated: (ctx: Context) => () => string;
|
|
119
93
|
declare const configExists: (cmd: string) => string;
|
|
@@ -157,429 +131,47 @@ declare namespace messages {
|
|
|
157
131
|
};
|
|
158
132
|
}
|
|
159
133
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
134
|
+
interface FlattenedCssOptions {
|
|
135
|
+
files: string[];
|
|
136
|
+
resolve?: boolean;
|
|
137
|
+
}
|
|
163
138
|
|
|
164
|
-
|
|
139
|
+
interface ParserImportMap {
|
|
140
|
+
css: string[];
|
|
141
|
+
recipe: string[];
|
|
142
|
+
pattern: string[];
|
|
143
|
+
jsx: string[];
|
|
144
|
+
}
|
|
145
|
+
interface ParserJsxOptions {
|
|
146
|
+
framework: Context['jsx']['framework'];
|
|
147
|
+
factory: Context['jsx']['factoryName'];
|
|
148
|
+
styleProps: Context['jsx']['styleProps'];
|
|
149
|
+
isStyleProp: Context['isValidProperty'];
|
|
150
|
+
nodes: Array<PatternDetail | RecipeNode>;
|
|
151
|
+
}
|
|
152
|
+
interface ParserOptions {
|
|
153
|
+
importMap: ParserImportMap;
|
|
154
|
+
jsx: ParserJsxOptions;
|
|
155
|
+
patternKeys: Context['patterns']['keys'];
|
|
156
|
+
recipeKeys: Context['recipes']['keys'];
|
|
157
|
+
getRecipesByJsxName: Context['recipes']['filter'];
|
|
158
|
+
getPatternsByJsxName: Context['patterns']['filter'];
|
|
159
|
+
compilerOptions: TSConfig['compilerOptions'];
|
|
160
|
+
tsOptions: ConfigResultWithHooks['tsOptions'];
|
|
161
|
+
}
|
|
165
162
|
|
|
166
|
-
declare const createGenerator: (conf: ConfigResultWithHooks) =>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
};
|
|
180
|
-
details: {
|
|
181
|
-
props: string[];
|
|
182
|
-
blocklistType: string;
|
|
183
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
184
|
-
type: "pattern";
|
|
185
|
-
match: RegExp;
|
|
186
|
-
jsx: (string | RegExp)[];
|
|
187
|
-
upperName: string;
|
|
188
|
-
baseName: string;
|
|
189
|
-
dashName: string;
|
|
190
|
-
styleFnName: string;
|
|
191
|
-
jsxName: string;
|
|
192
|
-
}[];
|
|
193
|
-
find: (jsxName: string) => string;
|
|
194
|
-
filter: (jsxName: string) => {
|
|
195
|
-
props: string[];
|
|
196
|
-
blocklistType: string;
|
|
197
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
198
|
-
type: "pattern";
|
|
199
|
-
match: RegExp;
|
|
200
|
-
jsx: (string | RegExp)[];
|
|
201
|
-
upperName: string;
|
|
202
|
-
baseName: string;
|
|
203
|
-
dashName: string;
|
|
204
|
-
styleFnName: string;
|
|
205
|
-
jsxName: string;
|
|
206
|
-
}[];
|
|
207
|
-
isEmpty: () => boolean;
|
|
208
|
-
};
|
|
209
|
-
jsx: {
|
|
210
|
-
factoryName: string;
|
|
211
|
-
upperName: string;
|
|
212
|
-
typeName: string;
|
|
213
|
-
componentName: string;
|
|
214
|
-
framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
|
|
215
|
-
styleProps: "all" | "minimal" | "none";
|
|
216
|
-
};
|
|
217
|
-
paths: {
|
|
218
|
-
get: (file?: string | undefined) => string[];
|
|
219
|
-
root: string[];
|
|
220
|
-
css: string[];
|
|
221
|
-
token: string[];
|
|
222
|
-
types: string[];
|
|
223
|
-
recipe: string[];
|
|
224
|
-
pattern: string[];
|
|
225
|
-
chunk: string[];
|
|
226
|
-
outCss: string[];
|
|
227
|
-
jsx: string[];
|
|
228
|
-
};
|
|
229
|
-
file: {
|
|
230
|
-
ext(file: string): string;
|
|
231
|
-
extDts(file: string): string;
|
|
232
|
-
__extDts(file: string): string;
|
|
233
|
-
import(mod: string, file: string): string;
|
|
234
|
-
importType(mod: string, file: string): string;
|
|
235
|
-
exportType(mod: string, file: string): string;
|
|
236
|
-
exportStar(file: string): string;
|
|
237
|
-
exportTypeStar(file: string): string;
|
|
238
|
-
isTypeFile(file: string): boolean;
|
|
239
|
-
};
|
|
240
|
-
isTemplateLiteralSyntax: boolean;
|
|
241
|
-
studio: {
|
|
242
|
-
outdir: string;
|
|
243
|
-
logo?: string | undefined;
|
|
244
|
-
inject?: {
|
|
245
|
-
head?: string | undefined;
|
|
246
|
-
body?: string | undefined;
|
|
247
|
-
} | undefined;
|
|
248
|
-
};
|
|
249
|
-
hash: {
|
|
250
|
-
tokens: boolean | undefined;
|
|
251
|
-
className: boolean | undefined;
|
|
252
|
-
};
|
|
253
|
-
prefix: {
|
|
254
|
-
tokens: string | undefined;
|
|
255
|
-
className: string | undefined;
|
|
256
|
-
};
|
|
257
|
-
tokens: _pandacss_token_dictionary.TokenDictionary;
|
|
258
|
-
utility: _pandacss_core.Utility;
|
|
259
|
-
properties: string[];
|
|
260
|
-
isValidProperty: (key: string) => boolean;
|
|
261
|
-
recipes: _pandacss_core.Recipes;
|
|
262
|
-
conditions: _pandacss_core.Conditions;
|
|
263
|
-
createSheetContext: () => _pandacss_core.StylesheetContext;
|
|
264
|
-
createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
|
|
265
|
-
layers: _pandacss_types.CascadeLayers;
|
|
266
|
-
isValidLayerRule: (layerRule: string) => boolean;
|
|
267
|
-
layerString: string;
|
|
268
|
-
layerNames: string[];
|
|
269
|
-
hooks: _pandacss_types.PandaHookable;
|
|
270
|
-
path: string;
|
|
271
|
-
config: _pandacss_types.UserConfig;
|
|
272
|
-
tsconfig?: TSConfig | undefined;
|
|
273
|
-
tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
|
|
274
|
-
tsconfigFile?: string | undefined;
|
|
275
|
-
dependencies: string[];
|
|
276
|
-
}) => string;
|
|
277
|
-
getResetCss: typeof generateResetCss;
|
|
278
|
-
getTokenCss: typeof generateTokenCss;
|
|
279
|
-
getKeyframeCss: typeof generateKeyframeCss;
|
|
280
|
-
getGlobalCss: (ctx: {
|
|
281
|
-
patterns: {
|
|
282
|
-
keys: string[];
|
|
283
|
-
getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
284
|
-
transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
|
|
285
|
-
getNames: (name: string) => {
|
|
286
|
-
upperName: string;
|
|
287
|
-
baseName: string;
|
|
288
|
-
dashName: string;
|
|
289
|
-
styleFnName: string;
|
|
290
|
-
jsxName: string;
|
|
291
|
-
};
|
|
292
|
-
details: {
|
|
293
|
-
props: string[];
|
|
294
|
-
blocklistType: string;
|
|
295
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
296
|
-
type: "pattern";
|
|
297
|
-
match: RegExp;
|
|
298
|
-
jsx: (string | RegExp)[];
|
|
299
|
-
upperName: string;
|
|
300
|
-
baseName: string;
|
|
301
|
-
dashName: string;
|
|
302
|
-
styleFnName: string;
|
|
303
|
-
jsxName: string;
|
|
304
|
-
}[];
|
|
305
|
-
find: (jsxName: string) => string;
|
|
306
|
-
filter: (jsxName: string) => {
|
|
307
|
-
props: string[];
|
|
308
|
-
blocklistType: string;
|
|
309
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
310
|
-
type: "pattern";
|
|
311
|
-
match: RegExp;
|
|
312
|
-
jsx: (string | RegExp)[];
|
|
313
|
-
upperName: string;
|
|
314
|
-
baseName: string;
|
|
315
|
-
dashName: string;
|
|
316
|
-
styleFnName: string;
|
|
317
|
-
jsxName: string;
|
|
318
|
-
}[];
|
|
319
|
-
isEmpty: () => boolean;
|
|
320
|
-
};
|
|
321
|
-
jsx: {
|
|
322
|
-
factoryName: string;
|
|
323
|
-
upperName: string;
|
|
324
|
-
typeName: string;
|
|
325
|
-
componentName: string;
|
|
326
|
-
framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
|
|
327
|
-
styleProps: "all" | "minimal" | "none";
|
|
328
|
-
};
|
|
329
|
-
paths: {
|
|
330
|
-
get: (file?: string | undefined) => string[];
|
|
331
|
-
root: string[];
|
|
332
|
-
css: string[];
|
|
333
|
-
token: string[];
|
|
334
|
-
types: string[];
|
|
335
|
-
recipe: string[];
|
|
336
|
-
pattern: string[];
|
|
337
|
-
chunk: string[];
|
|
338
|
-
outCss: string[];
|
|
339
|
-
jsx: string[];
|
|
340
|
-
};
|
|
341
|
-
file: {
|
|
342
|
-
ext(file: string): string;
|
|
343
|
-
extDts(file: string): string;
|
|
344
|
-
__extDts(file: string): string;
|
|
345
|
-
import(mod: string, file: string): string;
|
|
346
|
-
importType(mod: string, file: string): string;
|
|
347
|
-
exportType(mod: string, file: string): string;
|
|
348
|
-
exportStar(file: string): string;
|
|
349
|
-
exportTypeStar(file: string): string;
|
|
350
|
-
isTypeFile(file: string): boolean;
|
|
351
|
-
};
|
|
352
|
-
isTemplateLiteralSyntax: boolean;
|
|
353
|
-
studio: {
|
|
354
|
-
outdir: string;
|
|
355
|
-
logo?: string | undefined;
|
|
356
|
-
inject?: {
|
|
357
|
-
head?: string | undefined;
|
|
358
|
-
body?: string | undefined;
|
|
359
|
-
} | undefined;
|
|
360
|
-
};
|
|
361
|
-
hash: {
|
|
362
|
-
tokens: boolean | undefined;
|
|
363
|
-
className: boolean | undefined;
|
|
364
|
-
};
|
|
365
|
-
prefix: {
|
|
366
|
-
tokens: string | undefined;
|
|
367
|
-
className: string | undefined;
|
|
368
|
-
};
|
|
369
|
-
tokens: _pandacss_token_dictionary.TokenDictionary;
|
|
370
|
-
utility: _pandacss_core.Utility;
|
|
371
|
-
properties: string[];
|
|
372
|
-
isValidProperty: (key: string) => boolean;
|
|
373
|
-
recipes: _pandacss_core.Recipes;
|
|
374
|
-
conditions: _pandacss_core.Conditions;
|
|
375
|
-
createSheetContext: () => _pandacss_core.StylesheetContext;
|
|
376
|
-
createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
|
|
377
|
-
layers: _pandacss_types.CascadeLayers;
|
|
378
|
-
isValidLayerRule: (layerRule: string) => boolean;
|
|
379
|
-
layerString: string;
|
|
380
|
-
layerNames: string[];
|
|
381
|
-
hooks: _pandacss_types.PandaHookable;
|
|
382
|
-
path: string;
|
|
383
|
-
config: _pandacss_types.UserConfig;
|
|
384
|
-
tsconfig?: TSConfig | undefined;
|
|
385
|
-
tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
|
|
386
|
-
tsconfigFile?: string | undefined;
|
|
387
|
-
dependencies: string[];
|
|
388
|
-
}) => string;
|
|
389
|
-
getCss: (options: {
|
|
390
|
-
files: string[];
|
|
391
|
-
resolve?: boolean | undefined;
|
|
392
|
-
}) => string;
|
|
393
|
-
getParserCss: (result: _pandacss_types.ParserResultType) => string | undefined;
|
|
394
|
-
messages: {
|
|
395
|
-
artifactsGenerated: () => string;
|
|
396
|
-
configExists: (cmd: string) => string;
|
|
397
|
-
thankYou: () => string;
|
|
398
|
-
codegenComplete: () => string;
|
|
399
|
-
noExtract: () => string;
|
|
400
|
-
watch: () => string;
|
|
401
|
-
buildComplete: (count: number) => string;
|
|
402
|
-
configWatch: () => string;
|
|
403
|
-
};
|
|
404
|
-
parserOptions: {
|
|
405
|
-
importMap: {
|
|
406
|
-
css: string[];
|
|
407
|
-
recipe: string[];
|
|
408
|
-
pattern: string[];
|
|
409
|
-
jsx: string[];
|
|
410
|
-
};
|
|
411
|
-
jsx: {
|
|
412
|
-
framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
|
|
413
|
-
factory: string;
|
|
414
|
-
styleProps: "all" | "minimal" | "none";
|
|
415
|
-
isStyleProp: (key: string) => boolean;
|
|
416
|
-
nodes: ({
|
|
417
|
-
props: string[];
|
|
418
|
-
blocklistType: string;
|
|
419
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
420
|
-
type: "pattern";
|
|
421
|
-
match: RegExp;
|
|
422
|
-
jsx: (string | RegExp)[];
|
|
423
|
-
upperName: string;
|
|
424
|
-
baseName: string;
|
|
425
|
-
dashName: string;
|
|
426
|
-
styleFnName: string;
|
|
427
|
-
jsxName: string;
|
|
428
|
-
} | {
|
|
429
|
-
baseName: string;
|
|
430
|
-
type: "recipe";
|
|
431
|
-
variantKeys: string[];
|
|
432
|
-
variantKeyMap: Record<string, string[]>;
|
|
433
|
-
jsx: (string | RegExp)[];
|
|
434
|
-
upperName: string;
|
|
435
|
-
dashName: string;
|
|
436
|
-
jsxName: string;
|
|
437
|
-
match: RegExp;
|
|
438
|
-
config: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord> | _pandacss_types.SlotRecipeConfig;
|
|
439
|
-
splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
|
|
440
|
-
props: string[];
|
|
441
|
-
})[];
|
|
442
|
-
};
|
|
443
|
-
patternKeys: string[];
|
|
444
|
-
recipeKeys: string[];
|
|
445
|
-
getRecipesByJsxName: (jsxName: string) => {
|
|
446
|
-
baseName: string;
|
|
447
|
-
type: "recipe";
|
|
448
|
-
variantKeys: string[];
|
|
449
|
-
variantKeyMap: Record<string, string[]>;
|
|
450
|
-
jsx: (string | RegExp)[];
|
|
451
|
-
upperName: string;
|
|
452
|
-
dashName: string;
|
|
453
|
-
jsxName: string;
|
|
454
|
-
match: RegExp;
|
|
455
|
-
config: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord> | _pandacss_types.SlotRecipeConfig;
|
|
456
|
-
splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
|
|
457
|
-
props: string[];
|
|
458
|
-
}[];
|
|
459
|
-
getPatternsByJsxName: (jsxName: string) => {
|
|
460
|
-
props: string[];
|
|
461
|
-
blocklistType: string;
|
|
462
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
463
|
-
type: "pattern";
|
|
464
|
-
match: RegExp;
|
|
465
|
-
jsx: (string | RegExp)[];
|
|
466
|
-
upperName: string;
|
|
467
|
-
baseName: string;
|
|
468
|
-
dashName: string;
|
|
469
|
-
styleFnName: string;
|
|
470
|
-
jsxName: string;
|
|
471
|
-
}[];
|
|
472
|
-
compilerOptions: any;
|
|
473
|
-
tsOptions: _pandacss_types.ConfigTsOptions | undefined;
|
|
474
|
-
};
|
|
475
|
-
patterns: {
|
|
476
|
-
keys: string[];
|
|
477
|
-
getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
478
|
-
transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
|
|
479
|
-
getNames: (name: string) => {
|
|
480
|
-
upperName: string;
|
|
481
|
-
baseName: string;
|
|
482
|
-
dashName: string;
|
|
483
|
-
styleFnName: string;
|
|
484
|
-
jsxName: string;
|
|
485
|
-
};
|
|
486
|
-
details: {
|
|
487
|
-
props: string[];
|
|
488
|
-
blocklistType: string;
|
|
489
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
490
|
-
type: "pattern";
|
|
491
|
-
match: RegExp;
|
|
492
|
-
jsx: (string | RegExp)[];
|
|
493
|
-
upperName: string;
|
|
494
|
-
baseName: string;
|
|
495
|
-
dashName: string;
|
|
496
|
-
styleFnName: string;
|
|
497
|
-
jsxName: string;
|
|
498
|
-
}[];
|
|
499
|
-
find: (jsxName: string) => string;
|
|
500
|
-
filter: (jsxName: string) => {
|
|
501
|
-
props: string[];
|
|
502
|
-
blocklistType: string;
|
|
503
|
-
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
504
|
-
type: "pattern";
|
|
505
|
-
match: RegExp;
|
|
506
|
-
jsx: (string | RegExp)[];
|
|
507
|
-
upperName: string;
|
|
508
|
-
baseName: string;
|
|
509
|
-
dashName: string;
|
|
510
|
-
styleFnName: string;
|
|
511
|
-
jsxName: string;
|
|
512
|
-
}[];
|
|
513
|
-
isEmpty: () => boolean;
|
|
514
|
-
};
|
|
515
|
-
jsx: {
|
|
516
|
-
factoryName: string;
|
|
517
|
-
upperName: string;
|
|
518
|
-
typeName: string;
|
|
519
|
-
componentName: string;
|
|
520
|
-
framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
|
|
521
|
-
styleProps: "all" | "minimal" | "none";
|
|
522
|
-
};
|
|
523
|
-
paths: {
|
|
524
|
-
get: (file?: string | undefined) => string[];
|
|
525
|
-
root: string[];
|
|
526
|
-
css: string[];
|
|
527
|
-
token: string[];
|
|
528
|
-
types: string[];
|
|
529
|
-
recipe: string[];
|
|
530
|
-
pattern: string[];
|
|
531
|
-
chunk: string[];
|
|
532
|
-
outCss: string[];
|
|
533
|
-
jsx: string[];
|
|
534
|
-
};
|
|
535
|
-
file: {
|
|
536
|
-
ext(file: string): string;
|
|
537
|
-
extDts(file: string): string;
|
|
538
|
-
__extDts(file: string): string;
|
|
539
|
-
import(mod: string, file: string): string;
|
|
540
|
-
importType(mod: string, file: string): string;
|
|
541
|
-
exportType(mod: string, file: string): string;
|
|
542
|
-
exportStar(file: string): string;
|
|
543
|
-
exportTypeStar(file: string): string;
|
|
544
|
-
isTypeFile(file: string): boolean;
|
|
545
|
-
};
|
|
546
|
-
isTemplateLiteralSyntax: boolean;
|
|
547
|
-
studio: {
|
|
548
|
-
outdir: string;
|
|
549
|
-
logo?: string | undefined;
|
|
550
|
-
inject?: {
|
|
551
|
-
head?: string | undefined;
|
|
552
|
-
body?: string | undefined;
|
|
553
|
-
} | undefined;
|
|
554
|
-
};
|
|
555
|
-
hash: {
|
|
556
|
-
tokens: boolean | undefined;
|
|
557
|
-
className: boolean | undefined;
|
|
558
|
-
};
|
|
559
|
-
prefix: {
|
|
560
|
-
tokens: string | undefined;
|
|
561
|
-
className: string | undefined;
|
|
562
|
-
};
|
|
563
|
-
tokens: _pandacss_token_dictionary.TokenDictionary;
|
|
564
|
-
utility: _pandacss_core.Utility;
|
|
565
|
-
properties: string[];
|
|
566
|
-
isValidProperty: (key: string) => boolean;
|
|
567
|
-
recipes: _pandacss_core.Recipes;
|
|
568
|
-
conditions: _pandacss_core.Conditions;
|
|
569
|
-
createSheetContext: () => _pandacss_core.StylesheetContext;
|
|
570
|
-
createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
|
|
571
|
-
layers: _pandacss_types.CascadeLayers;
|
|
572
|
-
isValidLayerRule: (layerRule: string) => boolean;
|
|
573
|
-
layerString: string;
|
|
574
|
-
layerNames: string[];
|
|
575
|
-
hooks: _pandacss_types.PandaHookable;
|
|
576
|
-
path: string;
|
|
577
|
-
config: _pandacss_types.UserConfig;
|
|
578
|
-
tsconfig?: TSConfig | undefined;
|
|
579
|
-
tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
|
|
580
|
-
tsconfigFile?: string | undefined;
|
|
581
|
-
dependencies: string[];
|
|
582
|
-
};
|
|
583
|
-
type Generator = ReturnType<typeof createGenerator>;
|
|
163
|
+
declare const createGenerator: (conf: ConfigResultWithHooks) => Generator;
|
|
164
|
+
interface Generator extends Context {
|
|
165
|
+
getArtifacts: () => Artifact[];
|
|
166
|
+
getStaticCss: (ctx: Context) => string;
|
|
167
|
+
getResetCss: (ctx: Context) => string;
|
|
168
|
+
getTokenCss: (ctx: Context) => string;
|
|
169
|
+
getKeyframeCss: (ctx: Context) => string;
|
|
170
|
+
getGlobalCss: (ctx: Context) => string;
|
|
171
|
+
getCss: (options: FlattenedCssOptions) => string;
|
|
172
|
+
getParserCss: (result: ParserResultType) => string | undefined;
|
|
173
|
+
messages: ReturnType<typeof getMessages>;
|
|
174
|
+
parserOptions: ParserOptions;
|
|
175
|
+
}
|
|
584
176
|
|
|
585
177
|
export { Generator, createGenerator, messages };
|