@pandacss/node 0.0.0-dev-20230203184408 → 0.0.0-dev-20230204134735
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.ts +47 -157
- package/dist/index.js +163 -178
- package/dist/index.mjs +164 -179
- package/package.json +18 -17
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,10 @@ import * as _pandacss_core from '@pandacss/core';
|
|
|
2
2
|
import { StylesheetContext, Conditions, Utility } from '@pandacss/core';
|
|
3
3
|
export { discardDuplicate } from '@pandacss/core';
|
|
4
4
|
import * as _pandacss_types_dist_config from '@pandacss/types/dist/config';
|
|
5
|
-
import * as ts_morph from 'ts-morph';
|
|
6
5
|
import * as _pandacss_types_dist_shared from '@pandacss/types/dist/shared';
|
|
7
6
|
import * as _pandacss_types from '@pandacss/types';
|
|
8
7
|
import { LoadConfigResult, RecipeConfig, PatternConfig, Config } from '@pandacss/types';
|
|
9
|
-
import
|
|
10
|
-
import { Collector } from '@pandacss/parser';
|
|
8
|
+
import { ParserResult } from '@pandacss/parser';
|
|
11
9
|
import * as _pandacss_shared from '@pandacss/shared';
|
|
12
10
|
import { mapObject } from '@pandacss/shared';
|
|
13
11
|
import * as _pandacss_token_dictionary from '@pandacss/token-dictionary';
|
|
@@ -64,12 +62,8 @@ declare function createContext(conf: LoadConfigResult, io?: IO): {
|
|
|
64
62
|
pattern: string;
|
|
65
63
|
jsx: string;
|
|
66
64
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
addSourceFile: (file: string) => void;
|
|
70
|
-
reloadSourceFile: (file: string) => void;
|
|
71
|
-
removeSourceFile: (file: string) => boolean | undefined;
|
|
72
|
-
parseSourceFile: (sourceFile: ts_morph.SourceFile | undefined) => Collector | undefined;
|
|
65
|
+
absPath: (str: string) => string;
|
|
66
|
+
project: any;
|
|
73
67
|
getPath: (pathLike?: string) => string;
|
|
74
68
|
paths: {
|
|
75
69
|
root: string;
|
|
@@ -95,7 +89,7 @@ declare function createContext(conf: LoadConfigResult, io?: IO): {
|
|
|
95
89
|
tokens: TokenDictionary;
|
|
96
90
|
hasTokens: boolean;
|
|
97
91
|
utility: Utility;
|
|
98
|
-
getCss: (collector:
|
|
92
|
+
getCss: (collector: ParserResult, file: string) => {
|
|
99
93
|
css: string;
|
|
100
94
|
file: string;
|
|
101
95
|
} | undefined;
|
|
@@ -186,146 +180,7 @@ declare class Builder {
|
|
|
186
180
|
configChanged: boolean;
|
|
187
181
|
updateFile(file: string, css: string): void;
|
|
188
182
|
setup(): Promise<void>;
|
|
189
|
-
ensure():
|
|
190
|
-
theme: {
|
|
191
|
-
breakpoints?: Record<string, string> | undefined;
|
|
192
|
-
keyframes?: _pandacss_types.CssKeyframes | undefined;
|
|
193
|
-
tokens?: _pandacss_types.Tokens | undefined;
|
|
194
|
-
semanticTokens?: _pandacss_types.SemanticTokens<string> | undefined;
|
|
195
|
-
textStyles?: _pandacss_types.TextStyles | undefined;
|
|
196
|
-
layerStyles?: _pandacss_types.LayerStyles | undefined;
|
|
197
|
-
recipes?: Record<string, _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>> | undefined;
|
|
198
|
-
};
|
|
199
|
-
config: _pandacss_types_dist_shared.UnwrapExtend<_pandacss_types.RequiredBy<_pandacss_types.Config, "include" | "outdir" | "cwd">>;
|
|
200
|
-
configPath: string;
|
|
201
|
-
cwd: string;
|
|
202
|
-
conf: _pandacss_types.LoadConfigResult;
|
|
203
|
-
chunks: {
|
|
204
|
-
dir: string;
|
|
205
|
-
readFile(file: string): Promise<string>;
|
|
206
|
-
getFiles(): string[];
|
|
207
|
-
format(file: string): string;
|
|
208
|
-
write(file: string, css: string): Promise<void[]>;
|
|
209
|
-
rm(file: string): Promise<void>;
|
|
210
|
-
empty(): Promise<void>;
|
|
211
|
-
glob: string[];
|
|
212
|
-
};
|
|
213
|
-
files: string[];
|
|
214
|
-
helpers: {
|
|
215
|
-
map: typeof _pandacss_shared.mapObject;
|
|
216
|
-
};
|
|
217
|
-
context: () => _pandacss_core.StylesheetContext;
|
|
218
|
-
exclude: string[];
|
|
219
|
-
conditions: _pandacss_core.Conditions;
|
|
220
|
-
importMap: {
|
|
221
|
-
css: string;
|
|
222
|
-
recipe: string;
|
|
223
|
-
pattern: string;
|
|
224
|
-
jsx: string;
|
|
225
|
-
};
|
|
226
|
-
reloadSourceFiles: () => void;
|
|
227
|
-
getSourceFile: (file: string) => ts_morph.SourceFile | undefined;
|
|
228
|
-
addSourceFile: (file: string) => void;
|
|
229
|
-
reloadSourceFile: (file: string) => void;
|
|
230
|
-
removeSourceFile: (file: string) => boolean | undefined;
|
|
231
|
-
parseSourceFile: (sourceFile: ts_morph.SourceFile | undefined) => _pandacss_parser.Collector | undefined;
|
|
232
|
-
getPath: (pathLike?: string | undefined) => string;
|
|
233
|
-
paths: {
|
|
234
|
-
root: string;
|
|
235
|
-
css: string;
|
|
236
|
-
token: string;
|
|
237
|
-
types: string;
|
|
238
|
-
recipe: string;
|
|
239
|
-
pattern: string;
|
|
240
|
-
chunk: string;
|
|
241
|
-
outCss: string;
|
|
242
|
-
jsx: string;
|
|
243
|
-
};
|
|
244
|
-
write: (dir: string, options: {
|
|
245
|
-
file: string;
|
|
246
|
-
code: string | undefined;
|
|
247
|
-
}[]) => Promise<void[]>;
|
|
248
|
-
writeOutput: (output: Output) => Promise<void[]> | undefined;
|
|
249
|
-
cleanOutdir: () => Promise<void>;
|
|
250
|
-
getExt: (file: string) => string;
|
|
251
|
-
getImport: (items: string, mod: string) => string;
|
|
252
|
-
getExport: (mod: string) => string;
|
|
253
|
-
cssVarRoot: string;
|
|
254
|
-
tokens: _pandacss_token_dictionary.TokenDictionary;
|
|
255
|
-
hasTokens: boolean;
|
|
256
|
-
utility: _pandacss_core.Utility;
|
|
257
|
-
getCss: (collector: _pandacss_parser.Collector, file: string) => {
|
|
258
|
-
css: string;
|
|
259
|
-
file: string;
|
|
260
|
-
} | undefined;
|
|
261
|
-
getGlobalCss: () => string;
|
|
262
|
-
getStaticCss: () => string | undefined;
|
|
263
|
-
patterns: Record<string, _pandacss_types.PatternConfig>;
|
|
264
|
-
hasPatterns: boolean;
|
|
265
|
-
getPattern: (name: string) => _pandacss_types.PatternConfig | undefined;
|
|
266
|
-
execPattern: (name: string, data: Record<string, any>) => _pandacss_types.SystemStyleObject;
|
|
267
|
-
patternNodes: {
|
|
268
|
-
type: "pattern";
|
|
269
|
-
name: string;
|
|
270
|
-
props: string[];
|
|
271
|
-
baseName: string;
|
|
272
|
-
}[];
|
|
273
|
-
getPatternFnName: (jsx: string) => string;
|
|
274
|
-
getPatternDetails: (name: string, pattern: _pandacss_types.PatternConfig | undefined) => {
|
|
275
|
-
name: string;
|
|
276
|
-
props: string[];
|
|
277
|
-
dashName: string;
|
|
278
|
-
upperName: string;
|
|
279
|
-
styleFn: string;
|
|
280
|
-
jsxName: string;
|
|
281
|
-
blocklistType: string;
|
|
282
|
-
};
|
|
283
|
-
recipes: Record<string, _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>>;
|
|
284
|
-
getRecipe: (name: string) => _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord> | undefined;
|
|
285
|
-
hasRecipes: boolean;
|
|
286
|
-
getRecipeDetails: () => {
|
|
287
|
-
[x: string]: {
|
|
288
|
-
[x: string]: string[];
|
|
289
|
-
}[];
|
|
290
|
-
}[];
|
|
291
|
-
jsxFactory: string;
|
|
292
|
-
jsxFactoryDetails: {
|
|
293
|
-
name: string;
|
|
294
|
-
upperName: string;
|
|
295
|
-
typeName: string;
|
|
296
|
-
componentName: string;
|
|
297
|
-
framework: "solid" | "react" | "preact" | undefined;
|
|
298
|
-
};
|
|
299
|
-
properties: string[];
|
|
300
|
-
extract: (fn: (file: string) => Promise<{
|
|
301
|
-
css: string;
|
|
302
|
-
file: string;
|
|
303
|
-
} | undefined>) => Promise<({
|
|
304
|
-
css: string;
|
|
305
|
-
file: string;
|
|
306
|
-
} | undefined)[]>;
|
|
307
|
-
hash?: boolean | undefined;
|
|
308
|
-
prefix?: string | undefined;
|
|
309
|
-
separator?: "-" | "_" | "=" | undefined;
|
|
310
|
-
static?: _pandacss_types.StaticCssOptions | undefined;
|
|
311
|
-
minify?: boolean | undefined;
|
|
312
|
-
utilities?: _pandacss_types.UtilityConfig | undefined;
|
|
313
|
-
emitPackage?: boolean | undefined;
|
|
314
|
-
gitignore?: boolean | undefined;
|
|
315
|
-
studio?: Partial<_pandacss_types_dist_config.Studio> | undefined;
|
|
316
|
-
logLevel?: "debug" | "info" | "warn" | "error" | "silent" | undefined;
|
|
317
|
-
presets?: (string | _pandacss_types.Preset)[] | undefined;
|
|
318
|
-
preflight?: boolean | undefined;
|
|
319
|
-
clean?: boolean | undefined;
|
|
320
|
-
watch?: boolean | undefined;
|
|
321
|
-
poll?: boolean | undefined;
|
|
322
|
-
globalCss?: _pandacss_types.GlobalStyleObject | undefined;
|
|
323
|
-
jsxFramework?: "solid" | "react" | "preact" | undefined;
|
|
324
|
-
strictTokens?: boolean | undefined;
|
|
325
|
-
outExtension?: "mjs" | "js" | undefined;
|
|
326
|
-
include: string[];
|
|
327
|
-
outdir: string;
|
|
328
|
-
};
|
|
183
|
+
ensure(): PandaContext;
|
|
329
184
|
extract(): Promise<void>;
|
|
330
185
|
toString(): string;
|
|
331
186
|
isValidRoot(root: Root): boolean;
|
|
@@ -374,12 +229,8 @@ declare function loadConfigAndCreateContext(options?: {
|
|
|
374
229
|
pattern: string;
|
|
375
230
|
jsx: string;
|
|
376
231
|
};
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
addSourceFile: (file: string) => void;
|
|
380
|
-
reloadSourceFile: (file: string) => void;
|
|
381
|
-
removeSourceFile: (file: string) => boolean | undefined;
|
|
382
|
-
parseSourceFile: (sourceFile: ts_morph.SourceFile | undefined) => _pandacss_parser.Collector | undefined;
|
|
232
|
+
absPath: (str: string) => string;
|
|
233
|
+
project: any;
|
|
383
234
|
getPath: (pathLike?: string | undefined) => string;
|
|
384
235
|
paths: {
|
|
385
236
|
root: string;
|
|
@@ -405,7 +256,46 @@ declare function loadConfigAndCreateContext(options?: {
|
|
|
405
256
|
tokens: _pandacss_token_dictionary.TokenDictionary;
|
|
406
257
|
hasTokens: boolean;
|
|
407
258
|
utility: _pandacss_core.Utility;
|
|
408
|
-
getCss: (collector:
|
|
259
|
+
getCss: (collector: {
|
|
260
|
+
jsx: Set<{
|
|
261
|
+
name?: string | undefined;
|
|
262
|
+
data: Record<string, any>;
|
|
263
|
+
type?: string | undefined;
|
|
264
|
+
}>;
|
|
265
|
+
css: Set<{
|
|
266
|
+
name?: string | undefined;
|
|
267
|
+
data: Record<string, any>;
|
|
268
|
+
type?: string | undefined;
|
|
269
|
+
}>;
|
|
270
|
+
cva: Set<{
|
|
271
|
+
name?: string | undefined;
|
|
272
|
+
data: Record<string, any>;
|
|
273
|
+
type?: string | undefined;
|
|
274
|
+
}>;
|
|
275
|
+
recipe: Map<string, Set<{
|
|
276
|
+
name?: string | undefined;
|
|
277
|
+
data: Record<string, any>;
|
|
278
|
+
type?: string | undefined;
|
|
279
|
+
}>>;
|
|
280
|
+
pattern: Map<string, Set<{
|
|
281
|
+
name?: string | undefined;
|
|
282
|
+
data: Record<string, any>;
|
|
283
|
+
type?: string | undefined;
|
|
284
|
+
}>>;
|
|
285
|
+
set(name: "css" | "cva", result: {
|
|
286
|
+
data: Record<string, any>;
|
|
287
|
+
}): void;
|
|
288
|
+
setCva(result: {
|
|
289
|
+
data: Record<string, any>;
|
|
290
|
+
}): void;
|
|
291
|
+
setPattern(name: string, result: {
|
|
292
|
+
data: Record<string, any>;
|
|
293
|
+
}): void;
|
|
294
|
+
setRecipe(name: string, result: {
|
|
295
|
+
data: Record<string, any>;
|
|
296
|
+
}): void;
|
|
297
|
+
isEmpty(): boolean;
|
|
298
|
+
}, file: string) => {
|
|
409
299
|
css: string;
|
|
410
300
|
file: string;
|
|
411
301
|
} | undefined;
|