@pandacss/generator 0.4.0 → 0.5.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 +267 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +763 -105
- package/dist/index.mjs +765 -107
- package/package.json +8 -8
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import * as _pandacss_types_dist_shared from '@pandacss/types/dist/shared';
|
|
2
|
+
import * as _pandacss_core from '@pandacss/core';
|
|
3
|
+
import * as _pandacss_token_dictionary from '@pandacss/token-dictionary';
|
|
4
|
+
import * as _pandacss_types_dist_config from '@pandacss/types/dist/config';
|
|
5
|
+
import * as _pandacss_types from '@pandacss/types';
|
|
6
|
+
import { ConfigResultWithHooks } from '@pandacss/types';
|
|
7
|
+
|
|
8
|
+
declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
9
|
+
patterns: {
|
|
10
|
+
transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
|
|
11
|
+
nodes: {
|
|
12
|
+
type: "pattern";
|
|
13
|
+
name: string;
|
|
14
|
+
props: string[];
|
|
15
|
+
baseName: string;
|
|
16
|
+
}[];
|
|
17
|
+
patterns: Record<string, _pandacss_types.PatternConfig>;
|
|
18
|
+
getConfig: (name: string) => _pandacss_types.PatternConfig;
|
|
19
|
+
getNames: (name: string) => {
|
|
20
|
+
name: string;
|
|
21
|
+
upperName: string;
|
|
22
|
+
dashName: string;
|
|
23
|
+
styleFnName: string;
|
|
24
|
+
jsxName: string;
|
|
25
|
+
};
|
|
26
|
+
details: {
|
|
27
|
+
props: string[];
|
|
28
|
+
blocklistType: string;
|
|
29
|
+
config: _pandacss_types.PatternConfig;
|
|
30
|
+
name: string;
|
|
31
|
+
upperName: string;
|
|
32
|
+
dashName: string;
|
|
33
|
+
styleFnName: string;
|
|
34
|
+
jsxName: string;
|
|
35
|
+
}[];
|
|
36
|
+
getFnName: (jsx: string) => string;
|
|
37
|
+
isEmpty: () => boolean;
|
|
38
|
+
};
|
|
39
|
+
jsx: {
|
|
40
|
+
factoryName: string;
|
|
41
|
+
upperName: string;
|
|
42
|
+
typeName: string;
|
|
43
|
+
componentName: string;
|
|
44
|
+
framework: _pandacss_types_dist_config.JsxFramework | undefined;
|
|
45
|
+
};
|
|
46
|
+
paths: {
|
|
47
|
+
get: (file?: string | undefined) => string[];
|
|
48
|
+
root: string[];
|
|
49
|
+
css: string[];
|
|
50
|
+
token: string[];
|
|
51
|
+
types: string[];
|
|
52
|
+
recipe: string[];
|
|
53
|
+
pattern: string[];
|
|
54
|
+
chunk: string[];
|
|
55
|
+
outCss: string[];
|
|
56
|
+
jsx: string[];
|
|
57
|
+
};
|
|
58
|
+
file: {
|
|
59
|
+
ext(file: string): string;
|
|
60
|
+
import(mod: string, file: string): string;
|
|
61
|
+
export(file: string): string;
|
|
62
|
+
};
|
|
63
|
+
isTemplateLiteralSyntax: boolean;
|
|
64
|
+
studio: {
|
|
65
|
+
outdir: string;
|
|
66
|
+
logo?: string | undefined;
|
|
67
|
+
inject?: {
|
|
68
|
+
head?: string | undefined;
|
|
69
|
+
body?: string | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
};
|
|
72
|
+
hash: {
|
|
73
|
+
tokens: boolean | undefined;
|
|
74
|
+
className: boolean | undefined;
|
|
75
|
+
};
|
|
76
|
+
prefix: {
|
|
77
|
+
tokens: string | undefined;
|
|
78
|
+
className: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
tokens: _pandacss_token_dictionary.TokenDictionary;
|
|
81
|
+
utility: _pandacss_core.Utility;
|
|
82
|
+
properties: string[];
|
|
83
|
+
isValidProperty: (key: string) => boolean;
|
|
84
|
+
recipes: _pandacss_core.Recipes;
|
|
85
|
+
conditions: _pandacss_core.Conditions;
|
|
86
|
+
createSheetContext: () => _pandacss_core.StylesheetContext;
|
|
87
|
+
createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
|
|
88
|
+
hooks: _pandacss_types.PandaHookable;
|
|
89
|
+
path: string;
|
|
90
|
+
config: _pandacss_types_dist_shared.UnwrapExtend<_pandacss_types.RequiredBy<_pandacss_types.Config, "include" | "outdir" | "cwd">>;
|
|
91
|
+
dependencies: string[];
|
|
92
|
+
};
|
|
93
|
+
type Context = ReturnType<typeof getEngine>;
|
|
94
|
+
|
|
95
|
+
declare const artifactsGenerated: (ctx: Context) => () => string;
|
|
96
|
+
declare const configExists: (cmd: string) => string;
|
|
97
|
+
declare const thankYou: () => string;
|
|
98
|
+
declare const codegenComplete: () => string;
|
|
99
|
+
declare const noExtract: () => string;
|
|
100
|
+
declare const watch: () => string;
|
|
101
|
+
declare const configWatch: () => string;
|
|
102
|
+
declare const buildComplete: (count: number) => string;
|
|
103
|
+
declare const getMessages: (ctx: Context) => {
|
|
104
|
+
artifactsGenerated: () => string;
|
|
105
|
+
configExists: (cmd: string) => string;
|
|
106
|
+
thankYou: () => string;
|
|
107
|
+
codegenComplete: () => string;
|
|
108
|
+
noExtract: () => string;
|
|
109
|
+
watch: () => string;
|
|
110
|
+
buildComplete: (count: number) => string;
|
|
111
|
+
configWatch: () => string;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
declare const messages_artifactsGenerated: typeof artifactsGenerated;
|
|
115
|
+
declare const messages_buildComplete: typeof buildComplete;
|
|
116
|
+
declare const messages_codegenComplete: typeof codegenComplete;
|
|
117
|
+
declare const messages_configExists: typeof configExists;
|
|
118
|
+
declare const messages_configWatch: typeof configWatch;
|
|
119
|
+
declare const messages_getMessages: typeof getMessages;
|
|
120
|
+
declare const messages_noExtract: typeof noExtract;
|
|
121
|
+
declare const messages_thankYou: typeof thankYou;
|
|
122
|
+
declare const messages_watch: typeof watch;
|
|
123
|
+
declare namespace messages {
|
|
124
|
+
export {
|
|
125
|
+
messages_artifactsGenerated as artifactsGenerated,
|
|
126
|
+
messages_buildComplete as buildComplete,
|
|
127
|
+
messages_codegenComplete as codegenComplete,
|
|
128
|
+
messages_configExists as configExists,
|
|
129
|
+
messages_configWatch as configWatch,
|
|
130
|
+
messages_getMessages as getMessages,
|
|
131
|
+
messages_noExtract as noExtract,
|
|
132
|
+
messages_thankYou as thankYou,
|
|
133
|
+
messages_watch as watch,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
138
|
+
config: _pandacss_types_dist_shared.UnwrapExtend<_pandacss_types.RequiredBy<_pandacss_types.Config, "include" | "outdir" | "cwd">>;
|
|
139
|
+
path: string;
|
|
140
|
+
conditions: _pandacss_core.Conditions;
|
|
141
|
+
utility: _pandacss_core.Utility;
|
|
142
|
+
hash: {
|
|
143
|
+
tokens: boolean | undefined;
|
|
144
|
+
className: boolean | undefined;
|
|
145
|
+
};
|
|
146
|
+
prefix: {
|
|
147
|
+
tokens: string | undefined;
|
|
148
|
+
className: string | undefined;
|
|
149
|
+
};
|
|
150
|
+
tokens: _pandacss_token_dictionary.TokenDictionary;
|
|
151
|
+
jsx: {
|
|
152
|
+
factoryName: string;
|
|
153
|
+
upperName: string;
|
|
154
|
+
typeName: string;
|
|
155
|
+
componentName: string;
|
|
156
|
+
framework: _pandacss_types_dist_config.JsxFramework | undefined;
|
|
157
|
+
};
|
|
158
|
+
recipes: _pandacss_core.Recipes;
|
|
159
|
+
patterns: {
|
|
160
|
+
transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
|
|
161
|
+
nodes: {
|
|
162
|
+
type: "pattern";
|
|
163
|
+
name: string;
|
|
164
|
+
props: string[];
|
|
165
|
+
baseName: string;
|
|
166
|
+
}[];
|
|
167
|
+
patterns: Record<string, _pandacss_types.PatternConfig>;
|
|
168
|
+
getConfig: (name: string) => _pandacss_types.PatternConfig;
|
|
169
|
+
getNames: (name: string) => {
|
|
170
|
+
name: string;
|
|
171
|
+
upperName: string;
|
|
172
|
+
dashName: string;
|
|
173
|
+
styleFnName: string;
|
|
174
|
+
jsxName: string;
|
|
175
|
+
};
|
|
176
|
+
details: {
|
|
177
|
+
props: string[];
|
|
178
|
+
blocklistType: string;
|
|
179
|
+
config: _pandacss_types.PatternConfig;
|
|
180
|
+
name: string;
|
|
181
|
+
upperName: string;
|
|
182
|
+
dashName: string;
|
|
183
|
+
styleFnName: string;
|
|
184
|
+
jsxName: string;
|
|
185
|
+
}[];
|
|
186
|
+
getFnName: (jsx: string) => string;
|
|
187
|
+
isEmpty: () => boolean;
|
|
188
|
+
};
|
|
189
|
+
studio: {
|
|
190
|
+
outdir: string;
|
|
191
|
+
logo?: string | undefined;
|
|
192
|
+
inject?: {
|
|
193
|
+
head?: string | undefined;
|
|
194
|
+
body?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
};
|
|
197
|
+
hooks: _pandacss_types.PandaHookable;
|
|
198
|
+
createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
|
|
199
|
+
properties: string[];
|
|
200
|
+
getArtifacts: () => _pandacss_types.Artifact[];
|
|
201
|
+
getCss: (options: {
|
|
202
|
+
files: string[];
|
|
203
|
+
resolve?: boolean | undefined;
|
|
204
|
+
}) => string;
|
|
205
|
+
getParserCss: (result: _pandacss_types.ParserResultType) => string | undefined;
|
|
206
|
+
messages: {
|
|
207
|
+
artifactsGenerated: () => string;
|
|
208
|
+
configExists: (cmd: string) => string;
|
|
209
|
+
thankYou: () => string;
|
|
210
|
+
codegenComplete: () => string;
|
|
211
|
+
noExtract: () => string;
|
|
212
|
+
watch: () => string;
|
|
213
|
+
buildComplete: (count: number) => string;
|
|
214
|
+
configWatch: () => string;
|
|
215
|
+
};
|
|
216
|
+
paths: {
|
|
217
|
+
get: (file?: string | undefined) => string[];
|
|
218
|
+
root: string[];
|
|
219
|
+
css: string[];
|
|
220
|
+
token: string[];
|
|
221
|
+
types: string[];
|
|
222
|
+
recipe: string[];
|
|
223
|
+
pattern: string[];
|
|
224
|
+
chunk: string[];
|
|
225
|
+
outCss: string[];
|
|
226
|
+
jsx: string[];
|
|
227
|
+
};
|
|
228
|
+
file: {
|
|
229
|
+
ext(file: string): string;
|
|
230
|
+
import(mod: string, file: string): string;
|
|
231
|
+
export(file: string): string;
|
|
232
|
+
};
|
|
233
|
+
isTemplateLiteralSyntax: boolean;
|
|
234
|
+
isValidProperty: (key: string) => boolean;
|
|
235
|
+
createSheetContext: () => _pandacss_core.StylesheetContext;
|
|
236
|
+
dependencies: string[];
|
|
237
|
+
parserOptions: {
|
|
238
|
+
importMap: {
|
|
239
|
+
css: string;
|
|
240
|
+
recipe: string;
|
|
241
|
+
pattern: string;
|
|
242
|
+
jsx: string;
|
|
243
|
+
};
|
|
244
|
+
jsx: {
|
|
245
|
+
factory: string;
|
|
246
|
+
isStyleProp: (key: string) => boolean;
|
|
247
|
+
nodes: ({
|
|
248
|
+
type: "pattern";
|
|
249
|
+
name: string;
|
|
250
|
+
props: string[];
|
|
251
|
+
baseName: string;
|
|
252
|
+
} | {
|
|
253
|
+
type: "recipe";
|
|
254
|
+
name: string;
|
|
255
|
+
props: string[];
|
|
256
|
+
baseName: string;
|
|
257
|
+
jsx: (string | RegExp)[];
|
|
258
|
+
match: RegExp;
|
|
259
|
+
})[];
|
|
260
|
+
};
|
|
261
|
+
getRecipeName: (jsxName: string) => string;
|
|
262
|
+
getRecipeByName: (name: string) => _pandacss_types.RecipeConfig | undefined;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
type Generator = ReturnType<typeof createGenerator>;
|
|
266
|
+
|
|
267
|
+
export { Generator, createGenerator, messages };
|
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
|
60
60
|
import(mod: string, file: string): string;
|
|
61
61
|
export(file: string): string;
|
|
62
62
|
};
|
|
63
|
+
isTemplateLiteralSyntax: boolean;
|
|
63
64
|
studio: {
|
|
64
65
|
outdir: string;
|
|
65
66
|
logo?: string | undefined;
|
|
@@ -229,6 +230,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
229
230
|
import(mod: string, file: string): string;
|
|
230
231
|
export(file: string): string;
|
|
231
232
|
};
|
|
233
|
+
isTemplateLiteralSyntax: boolean;
|
|
232
234
|
isValidProperty: (key: string) => boolean;
|
|
233
235
|
createSheetContext: () => _pandacss_core.StylesheetContext;
|
|
234
236
|
dependencies: string[];
|