@pandacss/generator 0.8.0 → 0.10.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
@@ -6,12 +6,11 @@ import { ConfigResultWithHooks, TSConfig } from '@pandacss/types';
6
6
 
7
7
  declare const getEngine: (conf: ConfigResultWithHooks) => {
8
8
  patterns: {
9
- patterns: Record<string, _pandacss_types.PatternConfig>;
10
- transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
11
9
  getConfig: (name: string) => _pandacss_types.PatternConfig;
10
+ transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
12
11
  getNames: (name: string) => {
13
- name: string;
14
12
  upperName: string;
13
+ baseName: string;
15
14
  dashName: string;
16
15
  styleFnName: string;
17
16
  jsxName: string;
@@ -20,19 +19,29 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
20
19
  props: string[];
21
20
  blocklistType: string;
22
21
  config: _pandacss_types.PatternConfig;
23
- name: string;
22
+ type: "pattern";
23
+ match: RegExp;
24
+ jsx: (string | RegExp)[];
24
25
  upperName: string;
26
+ baseName: string;
25
27
  dashName: string;
26
28
  styleFnName: string;
27
29
  jsxName: string;
28
30
  }[];
29
- nodes: {
30
- type: "pattern";
31
- name: string;
31
+ getFnName: (jsxName: string) => string;
32
+ filter: (jsxName: string) => {
32
33
  props: string[];
34
+ blocklistType: string;
35
+ config: _pandacss_types.PatternConfig;
36
+ type: "pattern";
37
+ match: RegExp;
38
+ jsx: (string | RegExp)[];
39
+ upperName: string;
33
40
  baseName: string;
41
+ dashName: string;
42
+ styleFnName: string;
43
+ jsxName: string;
34
44
  }[];
35
- getFnName: (jsx: string) => string;
36
45
  isEmpty: () => boolean;
37
46
  };
38
47
  jsx: {
@@ -41,6 +50,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
41
50
  typeName: string;
42
51
  componentName: string;
43
52
  framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
53
+ styleProps: "all" | "minimal" | "none";
44
54
  };
45
55
  paths: {
46
56
  get: (file?: string | undefined) => string[];
@@ -162,23 +172,38 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
162
172
  };
163
173
  jsx: {
164
174
  factory: string;
175
+ styleProps: "all" | "minimal" | "none";
165
176
  isStyleProp: (key: string) => boolean;
166
177
  nodes: ({
167
- type: "pattern";
168
- name: string;
169
178
  props: string[];
179
+ blocklistType: string;
180
+ config: _pandacss_types.PatternConfig;
181
+ type: "pattern";
182
+ match: RegExp;
183
+ jsx: (string | RegExp)[];
184
+ upperName: string;
170
185
  baseName: string;
186
+ dashName: string;
187
+ styleFnName: string;
188
+ jsxName: string;
171
189
  } | {
172
- type: "recipe";
173
- name: string;
174
- props: string[];
175
190
  baseName: string;
191
+ type: "recipe";
192
+ variantKeys: string[];
193
+ variantKeyMap: Record<string, string[]>;
176
194
  jsx: (string | RegExp)[];
195
+ upperName: string;
196
+ dashName: string;
197
+ jsxName: string;
177
198
  match: RegExp;
199
+ config: _pandacss_types.RecipeConfig | _pandacss_types.SlotRecipeConfig;
200
+ splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
201
+ props: string[];
178
202
  })[];
179
203
  };
180
204
  getRecipesByJsxName: (jsxName: string) => {
181
- name: string;
205
+ baseName: string;
206
+ type: "recipe";
182
207
  variantKeys: string[];
183
208
  variantKeyMap: Record<string, string[]>;
184
209
  jsx: (string | RegExp)[];
@@ -186,19 +211,32 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
186
211
  dashName: string;
187
212
  jsxName: string;
188
213
  match: RegExp;
189
- config: _pandacss_types.RecipeConfig;
214
+ config: _pandacss_types.RecipeConfig | _pandacss_types.SlotRecipeConfig;
190
215
  splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
216
+ props: string[];
217
+ }[];
218
+ getPatternsByJsxName: (jsxName: string) => {
219
+ props: string[];
220
+ blocklistType: string;
221
+ config: _pandacss_types.PatternConfig;
222
+ type: "pattern";
223
+ match: RegExp;
224
+ jsx: (string | RegExp)[];
225
+ upperName: string;
226
+ baseName: string;
227
+ dashName: string;
228
+ styleFnName: string;
229
+ jsxName: string;
191
230
  }[];
192
231
  compilerOptions: any;
193
232
  tsOptions: _pandacss_types.ConfigTsOptions | undefined;
194
233
  };
195
234
  patterns: {
196
- patterns: Record<string, _pandacss_types.PatternConfig>;
197
- transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
198
235
  getConfig: (name: string) => _pandacss_types.PatternConfig;
236
+ transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
199
237
  getNames: (name: string) => {
200
- name: string;
201
238
  upperName: string;
239
+ baseName: string;
202
240
  dashName: string;
203
241
  styleFnName: string;
204
242
  jsxName: string;
@@ -207,19 +245,29 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
207
245
  props: string[];
208
246
  blocklistType: string;
209
247
  config: _pandacss_types.PatternConfig;
210
- name: string;
248
+ type: "pattern";
249
+ match: RegExp;
250
+ jsx: (string | RegExp)[];
211
251
  upperName: string;
252
+ baseName: string;
212
253
  dashName: string;
213
254
  styleFnName: string;
214
255
  jsxName: string;
215
256
  }[];
216
- nodes: {
217
- type: "pattern";
218
- name: string;
257
+ getFnName: (jsxName: string) => string;
258
+ filter: (jsxName: string) => {
219
259
  props: string[];
260
+ blocklistType: string;
261
+ config: _pandacss_types.PatternConfig;
262
+ type: "pattern";
263
+ match: RegExp;
264
+ jsx: (string | RegExp)[];
265
+ upperName: string;
220
266
  baseName: string;
267
+ dashName: string;
268
+ styleFnName: string;
269
+ jsxName: string;
221
270
  }[];
222
- getFnName: (jsx: string) => string;
223
271
  isEmpty: () => boolean;
224
272
  };
225
273
  jsx: {
@@ -228,6 +276,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
228
276
  typeName: string;
229
277
  componentName: string;
230
278
  framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
279
+ styleProps: "all" | "minimal" | "none";
231
280
  };
232
281
  paths: {
233
282
  get: (file?: string | undefined) => string[];
package/dist/index.d.ts CHANGED
@@ -6,12 +6,11 @@ import { ConfigResultWithHooks, TSConfig } from '@pandacss/types';
6
6
 
7
7
  declare const getEngine: (conf: ConfigResultWithHooks) => {
8
8
  patterns: {
9
- patterns: Record<string, _pandacss_types.PatternConfig>;
10
- transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
11
9
  getConfig: (name: string) => _pandacss_types.PatternConfig;
10
+ transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
12
11
  getNames: (name: string) => {
13
- name: string;
14
12
  upperName: string;
13
+ baseName: string;
15
14
  dashName: string;
16
15
  styleFnName: string;
17
16
  jsxName: string;
@@ -20,19 +19,29 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
20
19
  props: string[];
21
20
  blocklistType: string;
22
21
  config: _pandacss_types.PatternConfig;
23
- name: string;
22
+ type: "pattern";
23
+ match: RegExp;
24
+ jsx: (string | RegExp)[];
24
25
  upperName: string;
26
+ baseName: string;
25
27
  dashName: string;
26
28
  styleFnName: string;
27
29
  jsxName: string;
28
30
  }[];
29
- nodes: {
30
- type: "pattern";
31
- name: string;
31
+ getFnName: (jsxName: string) => string;
32
+ filter: (jsxName: string) => {
32
33
  props: string[];
34
+ blocklistType: string;
35
+ config: _pandacss_types.PatternConfig;
36
+ type: "pattern";
37
+ match: RegExp;
38
+ jsx: (string | RegExp)[];
39
+ upperName: string;
33
40
  baseName: string;
41
+ dashName: string;
42
+ styleFnName: string;
43
+ jsxName: string;
34
44
  }[];
35
- getFnName: (jsx: string) => string;
36
45
  isEmpty: () => boolean;
37
46
  };
38
47
  jsx: {
@@ -41,6 +50,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
41
50
  typeName: string;
42
51
  componentName: string;
43
52
  framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
53
+ styleProps: "all" | "minimal" | "none";
44
54
  };
45
55
  paths: {
46
56
  get: (file?: string | undefined) => string[];
@@ -162,23 +172,38 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
162
172
  };
163
173
  jsx: {
164
174
  factory: string;
175
+ styleProps: "all" | "minimal" | "none";
165
176
  isStyleProp: (key: string) => boolean;
166
177
  nodes: ({
167
- type: "pattern";
168
- name: string;
169
178
  props: string[];
179
+ blocklistType: string;
180
+ config: _pandacss_types.PatternConfig;
181
+ type: "pattern";
182
+ match: RegExp;
183
+ jsx: (string | RegExp)[];
184
+ upperName: string;
170
185
  baseName: string;
186
+ dashName: string;
187
+ styleFnName: string;
188
+ jsxName: string;
171
189
  } | {
172
- type: "recipe";
173
- name: string;
174
- props: string[];
175
190
  baseName: string;
191
+ type: "recipe";
192
+ variantKeys: string[];
193
+ variantKeyMap: Record<string, string[]>;
176
194
  jsx: (string | RegExp)[];
195
+ upperName: string;
196
+ dashName: string;
197
+ jsxName: string;
177
198
  match: RegExp;
199
+ config: _pandacss_types.RecipeConfig | _pandacss_types.SlotRecipeConfig;
200
+ splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
201
+ props: string[];
178
202
  })[];
179
203
  };
180
204
  getRecipesByJsxName: (jsxName: string) => {
181
- name: string;
205
+ baseName: string;
206
+ type: "recipe";
182
207
  variantKeys: string[];
183
208
  variantKeyMap: Record<string, string[]>;
184
209
  jsx: (string | RegExp)[];
@@ -186,19 +211,32 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
186
211
  dashName: string;
187
212
  jsxName: string;
188
213
  match: RegExp;
189
- config: _pandacss_types.RecipeConfig;
214
+ config: _pandacss_types.RecipeConfig | _pandacss_types.SlotRecipeConfig;
190
215
  splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
216
+ props: string[];
217
+ }[];
218
+ getPatternsByJsxName: (jsxName: string) => {
219
+ props: string[];
220
+ blocklistType: string;
221
+ config: _pandacss_types.PatternConfig;
222
+ type: "pattern";
223
+ match: RegExp;
224
+ jsx: (string | RegExp)[];
225
+ upperName: string;
226
+ baseName: string;
227
+ dashName: string;
228
+ styleFnName: string;
229
+ jsxName: string;
191
230
  }[];
192
231
  compilerOptions: any;
193
232
  tsOptions: _pandacss_types.ConfigTsOptions | undefined;
194
233
  };
195
234
  patterns: {
196
- patterns: Record<string, _pandacss_types.PatternConfig>;
197
- transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
198
235
  getConfig: (name: string) => _pandacss_types.PatternConfig;
236
+ transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
199
237
  getNames: (name: string) => {
200
- name: string;
201
238
  upperName: string;
239
+ baseName: string;
202
240
  dashName: string;
203
241
  styleFnName: string;
204
242
  jsxName: string;
@@ -207,19 +245,29 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
207
245
  props: string[];
208
246
  blocklistType: string;
209
247
  config: _pandacss_types.PatternConfig;
210
- name: string;
248
+ type: "pattern";
249
+ match: RegExp;
250
+ jsx: (string | RegExp)[];
211
251
  upperName: string;
252
+ baseName: string;
212
253
  dashName: string;
213
254
  styleFnName: string;
214
255
  jsxName: string;
215
256
  }[];
216
- nodes: {
217
- type: "pattern";
218
- name: string;
257
+ getFnName: (jsxName: string) => string;
258
+ filter: (jsxName: string) => {
219
259
  props: string[];
260
+ blocklistType: string;
261
+ config: _pandacss_types.PatternConfig;
262
+ type: "pattern";
263
+ match: RegExp;
264
+ jsx: (string | RegExp)[];
265
+ upperName: string;
220
266
  baseName: string;
267
+ dashName: string;
268
+ styleFnName: string;
269
+ jsxName: string;
221
270
  }[];
222
- getFnName: (jsx: string) => string;
223
271
  isEmpty: () => boolean;
224
272
  };
225
273
  jsx: {
@@ -228,6 +276,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
228
276
  typeName: string;
229
277
  componentName: string;
230
278
  framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
279
+ styleProps: "all" | "minimal" | "none";
231
280
  };
232
281
  paths: {
233
282
  get: (file?: string | undefined) => string[];