@pandacss/generator 0.24.2 → 0.26.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 CHANGED
@@ -1,127 +1,8 @@
1
- import { CoreContext, PatternDetail, RecipeNode, Stylesheet, StyleDecoder } from '@pandacss/core';
2
1
  import * as _pandacss_types from '@pandacss/types';
3
- import { UserConfig, ConfigResultWithHooks, TSConfig, ArtifactId, CssArtifactType } from '@pandacss/types';
4
-
5
- declare class FileEngine {
6
- private config;
7
- constructor(config: UserConfig);
8
- private get forceConsistentTypeExtension();
9
- private get outExtension();
10
- ext(file: string): string;
11
- extDts(file: string): string;
12
- private __extDts;
13
- import(mod: string, file: string): string;
14
- importType(mod: string, file: string): string;
15
- exportType(mod: string, file: string): string;
16
- exportStar(file: string): string;
17
- exportTypeStar(file: string): string;
18
- isTypeFile(file: string): boolean;
19
- }
20
-
21
- declare class JsxEngine {
22
- private config;
23
- constructor(config: UserConfig);
24
- private get jsxFactory();
25
- get styleProps(): "all" | "none" | "minimal";
26
- get framework(): ("solid" | "react" | "preact" | "vue" | "qwik") | undefined;
27
- get factoryName(): string;
28
- get upperName(): string;
29
- get typeName(): string;
30
- get variantName(): string;
31
- get componentName(): string;
32
- }
33
-
34
- declare class PathEngine {
35
- private config;
36
- constructor(config: UserConfig);
37
- private get cwd();
38
- private get emitPackage();
39
- private get outdir();
40
- getFilePath(file?: string): string[];
41
- get root(): string[];
42
- get css(): string[];
43
- get token(): string[];
44
- get types(): string[];
45
- get recipe(): string[];
46
- get pattern(): string[];
47
- get outCss(): string[];
48
- get jsx(): string[];
49
- }
50
-
51
- declare class Context extends CoreContext {
52
- conf: ConfigResultWithHooks;
53
- jsx: JsxEngine;
54
- paths: PathEngine;
55
- file: FileEngine;
56
- constructor(conf: ConfigResultWithHooks);
57
- }
58
-
59
- declare const artifactsGenerated: (ctx: Context) => () => string;
60
- declare const configExists: (cmd: string) => string;
61
- declare const thankYou: () => string;
62
- declare const codegenComplete: () => string;
63
- declare const noExtract: () => string;
64
- declare const watch: () => string;
65
- declare const configWatch: () => string;
66
- declare const buildComplete: (count: number) => string;
67
- declare const cssArtifactComplete: (type: string) => string;
68
- declare const getMessages: (ctx: Context) => {
69
- artifactsGenerated: () => string;
70
- configExists: (cmd: string) => string;
71
- thankYou: () => string;
72
- codegenComplete: () => string;
73
- noExtract: () => string;
74
- watch: () => string;
75
- buildComplete: (count: number) => string;
76
- configWatch: () => string;
77
- cssArtifactComplete: (type: string) => string;
78
- };
79
-
80
- declare const messages_artifactsGenerated: typeof artifactsGenerated;
81
- declare const messages_buildComplete: typeof buildComplete;
82
- declare const messages_codegenComplete: typeof codegenComplete;
83
- declare const messages_configExists: typeof configExists;
84
- declare const messages_configWatch: typeof configWatch;
85
- declare const messages_cssArtifactComplete: typeof cssArtifactComplete;
86
- declare const messages_getMessages: typeof getMessages;
87
- declare const messages_noExtract: typeof noExtract;
88
- declare const messages_thankYou: typeof thankYou;
89
- declare const messages_watch: typeof watch;
90
- declare namespace messages {
91
- export { messages_artifactsGenerated as artifactsGenerated, messages_buildComplete as buildComplete, messages_codegenComplete as codegenComplete, messages_configExists as configExists, messages_configWatch as configWatch, messages_cssArtifactComplete as cssArtifactComplete, messages_getMessages as getMessages, messages_noExtract as noExtract, messages_thankYou as thankYou, messages_watch as watch };
92
- }
93
-
94
- interface ParserImportMap {
95
- css: string[];
96
- recipe: string[];
97
- pattern: string[];
98
- jsx: string[];
99
- }
100
-
101
- interface ParserJsxOptions {
102
- framework: Context['jsx']['framework'];
103
- factory: Context['jsx']['factoryName'];
104
- styleProps: Context['jsx']['styleProps'];
105
- isStyleProp: Context['isValidProperty'];
106
- nodes: Array<PatternDetail | RecipeNode>;
107
- }
108
- interface ParserOptions {
109
- hash: Context['hash'];
110
- importMap: ParserImportMap | string;
111
- jsx: ParserJsxOptions;
112
- syntax: Context['config']['syntax'];
113
- isValidProperty: Context['isValidProperty'];
114
- recipes: Context['recipes'];
115
- patterns: Context['patterns'];
116
- encoder: Context['encoder'];
117
- join: (...paths: string[]) => string;
118
- compilerOptions: TSConfig['compilerOptions'];
119
- tsOptions: ConfigResultWithHooks['tsOptions'];
120
- }
2
+ import { ConfigResultWithHooks, ArtifactId, CssArtifactType } from '@pandacss/types';
3
+ import { Context, Stylesheet, StyleDecoder } from '@pandacss/core';
121
4
 
122
5
  declare class Generator extends Context {
123
- messages: ReturnType<typeof getMessages>;
124
- parserOptions: ParserOptions;
125
6
  constructor(conf: ConfigResultWithHooks);
126
7
  getArtifacts: (ids?: ArtifactId[] | undefined) => _pandacss_types.Artifact[];
127
8
  appendCssOfType: (type: CssArtifactType, sheet: Stylesheet) => void;
@@ -132,4 +13,4 @@ declare class Generator extends Context {
132
13
  getCss: (stylesheet?: Stylesheet) => string;
133
14
  }
134
15
 
135
- export { Generator, type ParserOptions, messages };
16
+ export { Generator };
package/dist/index.d.ts CHANGED
@@ -1,127 +1,8 @@
1
- import { CoreContext, PatternDetail, RecipeNode, Stylesheet, StyleDecoder } from '@pandacss/core';
2
1
  import * as _pandacss_types from '@pandacss/types';
3
- import { UserConfig, ConfigResultWithHooks, TSConfig, ArtifactId, CssArtifactType } from '@pandacss/types';
4
-
5
- declare class FileEngine {
6
- private config;
7
- constructor(config: UserConfig);
8
- private get forceConsistentTypeExtension();
9
- private get outExtension();
10
- ext(file: string): string;
11
- extDts(file: string): string;
12
- private __extDts;
13
- import(mod: string, file: string): string;
14
- importType(mod: string, file: string): string;
15
- exportType(mod: string, file: string): string;
16
- exportStar(file: string): string;
17
- exportTypeStar(file: string): string;
18
- isTypeFile(file: string): boolean;
19
- }
20
-
21
- declare class JsxEngine {
22
- private config;
23
- constructor(config: UserConfig);
24
- private get jsxFactory();
25
- get styleProps(): "all" | "none" | "minimal";
26
- get framework(): ("solid" | "react" | "preact" | "vue" | "qwik") | undefined;
27
- get factoryName(): string;
28
- get upperName(): string;
29
- get typeName(): string;
30
- get variantName(): string;
31
- get componentName(): string;
32
- }
33
-
34
- declare class PathEngine {
35
- private config;
36
- constructor(config: UserConfig);
37
- private get cwd();
38
- private get emitPackage();
39
- private get outdir();
40
- getFilePath(file?: string): string[];
41
- get root(): string[];
42
- get css(): string[];
43
- get token(): string[];
44
- get types(): string[];
45
- get recipe(): string[];
46
- get pattern(): string[];
47
- get outCss(): string[];
48
- get jsx(): string[];
49
- }
50
-
51
- declare class Context extends CoreContext {
52
- conf: ConfigResultWithHooks;
53
- jsx: JsxEngine;
54
- paths: PathEngine;
55
- file: FileEngine;
56
- constructor(conf: ConfigResultWithHooks);
57
- }
58
-
59
- declare const artifactsGenerated: (ctx: Context) => () => string;
60
- declare const configExists: (cmd: string) => string;
61
- declare const thankYou: () => string;
62
- declare const codegenComplete: () => string;
63
- declare const noExtract: () => string;
64
- declare const watch: () => string;
65
- declare const configWatch: () => string;
66
- declare const buildComplete: (count: number) => string;
67
- declare const cssArtifactComplete: (type: string) => string;
68
- declare const getMessages: (ctx: Context) => {
69
- artifactsGenerated: () => string;
70
- configExists: (cmd: string) => string;
71
- thankYou: () => string;
72
- codegenComplete: () => string;
73
- noExtract: () => string;
74
- watch: () => string;
75
- buildComplete: (count: number) => string;
76
- configWatch: () => string;
77
- cssArtifactComplete: (type: string) => string;
78
- };
79
-
80
- declare const messages_artifactsGenerated: typeof artifactsGenerated;
81
- declare const messages_buildComplete: typeof buildComplete;
82
- declare const messages_codegenComplete: typeof codegenComplete;
83
- declare const messages_configExists: typeof configExists;
84
- declare const messages_configWatch: typeof configWatch;
85
- declare const messages_cssArtifactComplete: typeof cssArtifactComplete;
86
- declare const messages_getMessages: typeof getMessages;
87
- declare const messages_noExtract: typeof noExtract;
88
- declare const messages_thankYou: typeof thankYou;
89
- declare const messages_watch: typeof watch;
90
- declare namespace messages {
91
- export { messages_artifactsGenerated as artifactsGenerated, messages_buildComplete as buildComplete, messages_codegenComplete as codegenComplete, messages_configExists as configExists, messages_configWatch as configWatch, messages_cssArtifactComplete as cssArtifactComplete, messages_getMessages as getMessages, messages_noExtract as noExtract, messages_thankYou as thankYou, messages_watch as watch };
92
- }
93
-
94
- interface ParserImportMap {
95
- css: string[];
96
- recipe: string[];
97
- pattern: string[];
98
- jsx: string[];
99
- }
100
-
101
- interface ParserJsxOptions {
102
- framework: Context['jsx']['framework'];
103
- factory: Context['jsx']['factoryName'];
104
- styleProps: Context['jsx']['styleProps'];
105
- isStyleProp: Context['isValidProperty'];
106
- nodes: Array<PatternDetail | RecipeNode>;
107
- }
108
- interface ParserOptions {
109
- hash: Context['hash'];
110
- importMap: ParserImportMap | string;
111
- jsx: ParserJsxOptions;
112
- syntax: Context['config']['syntax'];
113
- isValidProperty: Context['isValidProperty'];
114
- recipes: Context['recipes'];
115
- patterns: Context['patterns'];
116
- encoder: Context['encoder'];
117
- join: (...paths: string[]) => string;
118
- compilerOptions: TSConfig['compilerOptions'];
119
- tsOptions: ConfigResultWithHooks['tsOptions'];
120
- }
2
+ import { ConfigResultWithHooks, ArtifactId, CssArtifactType } from '@pandacss/types';
3
+ import { Context, Stylesheet, StyleDecoder } from '@pandacss/core';
121
4
 
122
5
  declare class Generator extends Context {
123
- messages: ReturnType<typeof getMessages>;
124
- parserOptions: ParserOptions;
125
6
  constructor(conf: ConfigResultWithHooks);
126
7
  getArtifacts: (ids?: ArtifactId[] | undefined) => _pandacss_types.Artifact[];
127
8
  appendCssOfType: (type: CssArtifactType, sheet: Stylesheet) => void;
@@ -132,4 +13,4 @@ declare class Generator extends Context {
132
13
  getCss: (stylesheet?: Stylesheet) => string;
133
14
  }
134
15
 
135
- export { Generator, type ParserOptions, messages };
16
+ export { Generator };