@pandacss/generator 0.5.0 → 0.6.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,9 +1,9 @@
1
1
  import * as _pandacss_types_dist_shared from '@pandacss/types/dist/shared';
2
2
  import * as _pandacss_core from '@pandacss/core';
3
3
  import * as _pandacss_token_dictionary from '@pandacss/token-dictionary';
4
- import * as _pandacss_types_dist_config from '@pandacss/types/dist/config';
5
4
  import * as _pandacss_types from '@pandacss/types';
6
- import { ConfigResultWithHooks } from '@pandacss/types';
5
+ import { ConfigResultWithHooks, TSConfig } from '@pandacss/types';
6
+ import * as _pandacss_core_src_types from '@pandacss/core/src/types';
7
7
 
8
8
  declare const getEngine: (conf: ConfigResultWithHooks) => {
9
9
  patterns: {
@@ -41,7 +41,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
41
41
  upperName: string;
42
42
  typeName: string;
43
43
  componentName: string;
44
- framework: _pandacss_types_dist_config.JsxFramework | undefined;
44
+ framework: ("solid" | "react" | "preact" | "vue" | "qwik") | undefined;
45
45
  };
46
46
  paths: {
47
47
  get: (file?: string | undefined) => string[];
@@ -88,6 +88,8 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
88
88
  hooks: _pandacss_types.PandaHookable;
89
89
  path: string;
90
90
  config: _pandacss_types_dist_shared.UnwrapExtend<_pandacss_types.RequiredBy<_pandacss_types.Config, "include" | "outdir" | "cwd">>;
91
+ tsconfig?: TSConfig | undefined;
92
+ tsconfigFile?: string | undefined;
91
93
  dependencies: string[];
92
94
  };
93
95
  type Context = ReturnType<typeof getEngine>;
@@ -135,27 +137,48 @@ declare namespace messages {
135
137
  }
136
138
 
137
139
  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;
140
+ getArtifacts: () => _pandacss_types.Artifact[];
141
+ getCss: (options: {
142
+ files: string[];
143
+ resolve?: boolean | undefined;
144
+ }) => string;
145
+ getParserCss: (result: _pandacss_types.ParserResultType) => string | undefined;
146
+ messages: {
147
+ artifactsGenerated: () => string;
148
+ configExists: (cmd: string) => string;
149
+ thankYou: () => string;
150
+ codegenComplete: () => string;
151
+ noExtract: () => string;
152
+ watch: () => string;
153
+ buildComplete: (count: number) => string;
154
+ configWatch: () => string;
149
155
  };
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;
156
+ parserOptions: {
157
+ importMap: {
158
+ css: string;
159
+ recipe: string;
160
+ pattern: string;
161
+ jsx: string;
162
+ };
163
+ jsx: {
164
+ factory: string;
165
+ isStyleProp: (key: string) => boolean;
166
+ nodes: ({
167
+ type: "pattern";
168
+ name: string;
169
+ props: string[];
170
+ baseName: string;
171
+ } | {
172
+ type: "recipe";
173
+ name: string;
174
+ props: string[];
175
+ baseName: string;
176
+ jsx: (string | RegExp)[];
177
+ match: RegExp;
178
+ })[];
179
+ };
180
+ getRecipesByJsxName: (jsxName: string) => _pandacss_core_src_types.RecipeNode[];
157
181
  };
158
- recipes: _pandacss_core.Recipes;
159
182
  patterns: {
160
183
  transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
161
184
  nodes: {
@@ -186,32 +209,12 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
186
209
  getFnName: (jsx: string) => string;
187
210
  isEmpty: () => boolean;
188
211
  };
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;
212
+ jsx: {
213
+ factoryName: string;
214
+ upperName: string;
215
+ typeName: string;
216
+ componentName: string;
217
+ framework: ("solid" | "react" | "preact" | "vue" | "qwik") | undefined;
215
218
  };
216
219
  paths: {
217
220
  get: (file?: string | undefined) => string[];
@@ -231,36 +234,36 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
231
234
  export(file: string): string;
232
235
  };
233
236
  isTemplateLiteralSyntax: boolean;
237
+ studio: {
238
+ outdir: string;
239
+ logo?: string | undefined;
240
+ inject?: {
241
+ head?: string | undefined;
242
+ body?: string | undefined;
243
+ } | undefined;
244
+ };
245
+ hash: {
246
+ tokens: boolean | undefined;
247
+ className: boolean | undefined;
248
+ };
249
+ prefix: {
250
+ tokens: string | undefined;
251
+ className: string | undefined;
252
+ };
253
+ tokens: _pandacss_token_dictionary.TokenDictionary;
254
+ utility: _pandacss_core.Utility;
255
+ properties: string[];
234
256
  isValidProperty: (key: string) => boolean;
257
+ recipes: _pandacss_core.Recipes;
258
+ conditions: _pandacss_core.Conditions;
235
259
  createSheetContext: () => _pandacss_core.StylesheetContext;
260
+ createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
261
+ hooks: _pandacss_types.PandaHookable;
262
+ path: string;
263
+ config: _pandacss_types_dist_shared.UnwrapExtend<_pandacss_types.RequiredBy<_pandacss_types.Config, "include" | "outdir" | "cwd">>;
264
+ tsconfig?: TSConfig | undefined;
265
+ tsconfigFile?: string | undefined;
236
266
  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
267
  };
265
268
  type Generator = ReturnType<typeof createGenerator>;
266
269
 
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as _pandacss_types_dist_shared from '@pandacss/types/dist/shared';
2
2
  import * as _pandacss_core from '@pandacss/core';
3
3
  import * as _pandacss_token_dictionary from '@pandacss/token-dictionary';
4
- import * as _pandacss_types_dist_config from '@pandacss/types/dist/config';
5
4
  import * as _pandacss_types from '@pandacss/types';
6
- import { ConfigResultWithHooks } from '@pandacss/types';
5
+ import { ConfigResultWithHooks, TSConfig } from '@pandacss/types';
6
+ import * as _pandacss_core_src_types from '@pandacss/core/src/types';
7
7
 
8
8
  declare const getEngine: (conf: ConfigResultWithHooks) => {
9
9
  patterns: {
@@ -41,7 +41,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
41
41
  upperName: string;
42
42
  typeName: string;
43
43
  componentName: string;
44
- framework: _pandacss_types_dist_config.JsxFramework | undefined;
44
+ framework: ("solid" | "react" | "preact" | "vue" | "qwik") | undefined;
45
45
  };
46
46
  paths: {
47
47
  get: (file?: string | undefined) => string[];
@@ -88,6 +88,8 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
88
88
  hooks: _pandacss_types.PandaHookable;
89
89
  path: string;
90
90
  config: _pandacss_types_dist_shared.UnwrapExtend<_pandacss_types.RequiredBy<_pandacss_types.Config, "include" | "outdir" | "cwd">>;
91
+ tsconfig?: TSConfig | undefined;
92
+ tsconfigFile?: string | undefined;
91
93
  dependencies: string[];
92
94
  };
93
95
  type Context = ReturnType<typeof getEngine>;
@@ -135,27 +137,48 @@ declare namespace messages {
135
137
  }
136
138
 
137
139
  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;
140
+ getArtifacts: () => _pandacss_types.Artifact[];
141
+ getCss: (options: {
142
+ files: string[];
143
+ resolve?: boolean | undefined;
144
+ }) => string;
145
+ getParserCss: (result: _pandacss_types.ParserResultType) => string | undefined;
146
+ messages: {
147
+ artifactsGenerated: () => string;
148
+ configExists: (cmd: string) => string;
149
+ thankYou: () => string;
150
+ codegenComplete: () => string;
151
+ noExtract: () => string;
152
+ watch: () => string;
153
+ buildComplete: (count: number) => string;
154
+ configWatch: () => string;
149
155
  };
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;
156
+ parserOptions: {
157
+ importMap: {
158
+ css: string;
159
+ recipe: string;
160
+ pattern: string;
161
+ jsx: string;
162
+ };
163
+ jsx: {
164
+ factory: string;
165
+ isStyleProp: (key: string) => boolean;
166
+ nodes: ({
167
+ type: "pattern";
168
+ name: string;
169
+ props: string[];
170
+ baseName: string;
171
+ } | {
172
+ type: "recipe";
173
+ name: string;
174
+ props: string[];
175
+ baseName: string;
176
+ jsx: (string | RegExp)[];
177
+ match: RegExp;
178
+ })[];
179
+ };
180
+ getRecipesByJsxName: (jsxName: string) => _pandacss_core_src_types.RecipeNode[];
157
181
  };
158
- recipes: _pandacss_core.Recipes;
159
182
  patterns: {
160
183
  transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
161
184
  nodes: {
@@ -186,32 +209,12 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
186
209
  getFnName: (jsx: string) => string;
187
210
  isEmpty: () => boolean;
188
211
  };
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;
212
+ jsx: {
213
+ factoryName: string;
214
+ upperName: string;
215
+ typeName: string;
216
+ componentName: string;
217
+ framework: ("solid" | "react" | "preact" | "vue" | "qwik") | undefined;
215
218
  };
216
219
  paths: {
217
220
  get: (file?: string | undefined) => string[];
@@ -231,36 +234,36 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
231
234
  export(file: string): string;
232
235
  };
233
236
  isTemplateLiteralSyntax: boolean;
237
+ studio: {
238
+ outdir: string;
239
+ logo?: string | undefined;
240
+ inject?: {
241
+ head?: string | undefined;
242
+ body?: string | undefined;
243
+ } | undefined;
244
+ };
245
+ hash: {
246
+ tokens: boolean | undefined;
247
+ className: boolean | undefined;
248
+ };
249
+ prefix: {
250
+ tokens: string | undefined;
251
+ className: string | undefined;
252
+ };
253
+ tokens: _pandacss_token_dictionary.TokenDictionary;
254
+ utility: _pandacss_core.Utility;
255
+ properties: string[];
234
256
  isValidProperty: (key: string) => boolean;
257
+ recipes: _pandacss_core.Recipes;
258
+ conditions: _pandacss_core.Conditions;
235
259
  createSheetContext: () => _pandacss_core.StylesheetContext;
260
+ createSheet: (options?: Pick<_pandacss_core.StylesheetOptions, "content"> | undefined) => _pandacss_core.Stylesheet;
261
+ hooks: _pandacss_types.PandaHookable;
262
+ path: string;
263
+ config: _pandacss_types_dist_shared.UnwrapExtend<_pandacss_types.RequiredBy<_pandacss_types.Config, "include" | "outdir" | "cwd">>;
264
+ tsconfig?: TSConfig | undefined;
265
+ tsconfigFile?: string | undefined;
236
266
  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
267
  };
265
268
  type Generator = ReturnType<typeof createGenerator>;
266
269