@pandacss/generator 0.15.1 → 0.15.3
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 +18 -13
- package/dist/index.d.ts +18 -13
- package/dist/index.js +108 -98
- package/dist/index.mjs +108 -98
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import * as _pandacss_types_dist_shared from '@pandacss/types/dist/shared';
|
|
2
1
|
import * as _pandacss_core from '@pandacss/core';
|
|
3
2
|
import * as _pandacss_token_dictionary from '@pandacss/token-dictionary';
|
|
4
3
|
import * as _pandacss_types from '@pandacss/types';
|
|
5
4
|
import { ConfigResultWithHooks, TSConfig } from '@pandacss/types';
|
|
5
|
+
import * as _pandacss_types_dist_pattern from '@pandacss/types/dist/pattern';
|
|
6
6
|
|
|
7
7
|
declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
8
8
|
patterns: {
|
|
9
|
-
|
|
9
|
+
keys: string[];
|
|
10
|
+
getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
10
11
|
transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
|
|
11
12
|
getNames: (name: string) => {
|
|
12
13
|
upperName: string;
|
|
@@ -18,7 +19,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
|
18
19
|
details: {
|
|
19
20
|
props: string[];
|
|
20
21
|
blocklistType: string;
|
|
21
|
-
config: _pandacss_types.PatternConfig
|
|
22
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
22
23
|
type: "pattern";
|
|
23
24
|
match: RegExp;
|
|
24
25
|
jsx: (string | RegExp)[];
|
|
@@ -32,7 +33,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
|
32
33
|
filter: (jsxName: string) => {
|
|
33
34
|
props: string[];
|
|
34
35
|
blocklistType: string;
|
|
35
|
-
config: _pandacss_types.PatternConfig
|
|
36
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
36
37
|
type: "pattern";
|
|
37
38
|
match: RegExp;
|
|
38
39
|
jsx: (string | RegExp)[];
|
|
@@ -106,7 +107,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
|
106
107
|
layerNames: string[];
|
|
107
108
|
hooks: _pandacss_types.PandaHookable;
|
|
108
109
|
path: string;
|
|
109
|
-
config:
|
|
110
|
+
config: _pandacss_types.UserConfig;
|
|
110
111
|
tsconfig?: TSConfig | undefined;
|
|
111
112
|
tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
|
|
112
113
|
tsconfigFile?: string | undefined;
|
|
@@ -181,13 +182,14 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
181
182
|
jsx: string[];
|
|
182
183
|
};
|
|
183
184
|
jsx: {
|
|
185
|
+
framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
|
|
184
186
|
factory: string;
|
|
185
187
|
styleProps: "all" | "minimal" | "none";
|
|
186
188
|
isStyleProp: (key: string) => boolean;
|
|
187
189
|
nodes: ({
|
|
188
190
|
props: string[];
|
|
189
191
|
blocklistType: string;
|
|
190
|
-
config: _pandacss_types.PatternConfig
|
|
192
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
191
193
|
type: "pattern";
|
|
192
194
|
match: RegExp;
|
|
193
195
|
jsx: (string | RegExp)[];
|
|
@@ -206,11 +208,13 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
206
208
|
dashName: string;
|
|
207
209
|
jsxName: string;
|
|
208
210
|
match: RegExp;
|
|
209
|
-
config: _pandacss_types.RecipeConfig | _pandacss_types.SlotRecipeConfig;
|
|
211
|
+
config: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord> | _pandacss_types.SlotRecipeConfig;
|
|
210
212
|
splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
|
|
211
213
|
props: string[];
|
|
212
214
|
})[];
|
|
213
215
|
};
|
|
216
|
+
patternKeys: string[];
|
|
217
|
+
recipeKeys: string[];
|
|
214
218
|
getRecipesByJsxName: (jsxName: string) => {
|
|
215
219
|
baseName: string;
|
|
216
220
|
type: "recipe";
|
|
@@ -221,14 +225,14 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
221
225
|
dashName: string;
|
|
222
226
|
jsxName: string;
|
|
223
227
|
match: RegExp;
|
|
224
|
-
config: _pandacss_types.RecipeConfig | _pandacss_types.SlotRecipeConfig;
|
|
228
|
+
config: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord> | _pandacss_types.SlotRecipeConfig;
|
|
225
229
|
splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
|
|
226
230
|
props: string[];
|
|
227
231
|
}[];
|
|
228
232
|
getPatternsByJsxName: (jsxName: string) => {
|
|
229
233
|
props: string[];
|
|
230
234
|
blocklistType: string;
|
|
231
|
-
config: _pandacss_types.PatternConfig
|
|
235
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
232
236
|
type: "pattern";
|
|
233
237
|
match: RegExp;
|
|
234
238
|
jsx: (string | RegExp)[];
|
|
@@ -242,7 +246,8 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
242
246
|
tsOptions: _pandacss_types.ConfigTsOptions | undefined;
|
|
243
247
|
};
|
|
244
248
|
patterns: {
|
|
245
|
-
|
|
249
|
+
keys: string[];
|
|
250
|
+
getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
246
251
|
transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
|
|
247
252
|
getNames: (name: string) => {
|
|
248
253
|
upperName: string;
|
|
@@ -254,7 +259,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
254
259
|
details: {
|
|
255
260
|
props: string[];
|
|
256
261
|
blocklistType: string;
|
|
257
|
-
config: _pandacss_types.PatternConfig
|
|
262
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
258
263
|
type: "pattern";
|
|
259
264
|
match: RegExp;
|
|
260
265
|
jsx: (string | RegExp)[];
|
|
@@ -268,7 +273,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
268
273
|
filter: (jsxName: string) => {
|
|
269
274
|
props: string[];
|
|
270
275
|
blocklistType: string;
|
|
271
|
-
config: _pandacss_types.PatternConfig
|
|
276
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
272
277
|
type: "pattern";
|
|
273
278
|
match: RegExp;
|
|
274
279
|
jsx: (string | RegExp)[];
|
|
@@ -342,7 +347,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
342
347
|
layerNames: string[];
|
|
343
348
|
hooks: _pandacss_types.PandaHookable;
|
|
344
349
|
path: string;
|
|
345
|
-
config:
|
|
350
|
+
config: _pandacss_types.UserConfig;
|
|
346
351
|
tsconfig?: TSConfig | undefined;
|
|
347
352
|
tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
|
|
348
353
|
tsconfigFile?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import * as _pandacss_types_dist_shared from '@pandacss/types/dist/shared';
|
|
2
1
|
import * as _pandacss_core from '@pandacss/core';
|
|
3
2
|
import * as _pandacss_token_dictionary from '@pandacss/token-dictionary';
|
|
4
3
|
import * as _pandacss_types from '@pandacss/types';
|
|
5
4
|
import { ConfigResultWithHooks, TSConfig } from '@pandacss/types';
|
|
5
|
+
import * as _pandacss_types_dist_pattern from '@pandacss/types/dist/pattern';
|
|
6
6
|
|
|
7
7
|
declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
8
8
|
patterns: {
|
|
9
|
-
|
|
9
|
+
keys: string[];
|
|
10
|
+
getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
10
11
|
transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
|
|
11
12
|
getNames: (name: string) => {
|
|
12
13
|
upperName: string;
|
|
@@ -18,7 +19,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
|
18
19
|
details: {
|
|
19
20
|
props: string[];
|
|
20
21
|
blocklistType: string;
|
|
21
|
-
config: _pandacss_types.PatternConfig
|
|
22
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
22
23
|
type: "pattern";
|
|
23
24
|
match: RegExp;
|
|
24
25
|
jsx: (string | RegExp)[];
|
|
@@ -32,7 +33,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
|
32
33
|
filter: (jsxName: string) => {
|
|
33
34
|
props: string[];
|
|
34
35
|
blocklistType: string;
|
|
35
|
-
config: _pandacss_types.PatternConfig
|
|
36
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
36
37
|
type: "pattern";
|
|
37
38
|
match: RegExp;
|
|
38
39
|
jsx: (string | RegExp)[];
|
|
@@ -106,7 +107,7 @@ declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
|
106
107
|
layerNames: string[];
|
|
107
108
|
hooks: _pandacss_types.PandaHookable;
|
|
108
109
|
path: string;
|
|
109
|
-
config:
|
|
110
|
+
config: _pandacss_types.UserConfig;
|
|
110
111
|
tsconfig?: TSConfig | undefined;
|
|
111
112
|
tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
|
|
112
113
|
tsconfigFile?: string | undefined;
|
|
@@ -181,13 +182,14 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
181
182
|
jsx: string[];
|
|
182
183
|
};
|
|
183
184
|
jsx: {
|
|
185
|
+
framework: ("react" | "solid" | "preact" | "vue" | "qwik") | undefined;
|
|
184
186
|
factory: string;
|
|
185
187
|
styleProps: "all" | "minimal" | "none";
|
|
186
188
|
isStyleProp: (key: string) => boolean;
|
|
187
189
|
nodes: ({
|
|
188
190
|
props: string[];
|
|
189
191
|
blocklistType: string;
|
|
190
|
-
config: _pandacss_types.PatternConfig
|
|
192
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
191
193
|
type: "pattern";
|
|
192
194
|
match: RegExp;
|
|
193
195
|
jsx: (string | RegExp)[];
|
|
@@ -206,11 +208,13 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
206
208
|
dashName: string;
|
|
207
209
|
jsxName: string;
|
|
208
210
|
match: RegExp;
|
|
209
|
-
config: _pandacss_types.RecipeConfig | _pandacss_types.SlotRecipeConfig;
|
|
211
|
+
config: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord> | _pandacss_types.SlotRecipeConfig;
|
|
210
212
|
splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
|
|
211
213
|
props: string[];
|
|
212
214
|
})[];
|
|
213
215
|
};
|
|
216
|
+
patternKeys: string[];
|
|
217
|
+
recipeKeys: string[];
|
|
214
218
|
getRecipesByJsxName: (jsxName: string) => {
|
|
215
219
|
baseName: string;
|
|
216
220
|
type: "recipe";
|
|
@@ -221,14 +225,14 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
221
225
|
dashName: string;
|
|
222
226
|
jsxName: string;
|
|
223
227
|
match: RegExp;
|
|
224
|
-
config: _pandacss_types.RecipeConfig | _pandacss_types.SlotRecipeConfig;
|
|
228
|
+
config: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord> | _pandacss_types.SlotRecipeConfig;
|
|
225
229
|
splitProps: (props: _pandacss_types.Dict) => [_pandacss_types.Dict, _pandacss_types.Dict];
|
|
226
230
|
props: string[];
|
|
227
231
|
}[];
|
|
228
232
|
getPatternsByJsxName: (jsxName: string) => {
|
|
229
233
|
props: string[];
|
|
230
234
|
blocklistType: string;
|
|
231
|
-
config: _pandacss_types.PatternConfig
|
|
235
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
232
236
|
type: "pattern";
|
|
233
237
|
match: RegExp;
|
|
234
238
|
jsx: (string | RegExp)[];
|
|
@@ -242,7 +246,8 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
242
246
|
tsOptions: _pandacss_types.ConfigTsOptions | undefined;
|
|
243
247
|
};
|
|
244
248
|
patterns: {
|
|
245
|
-
|
|
249
|
+
keys: string[];
|
|
250
|
+
getConfig: (name: string) => _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
246
251
|
transform: (name: string, data: _pandacss_types.Dict) => _pandacss_types.SystemStyleObject;
|
|
247
252
|
getNames: (name: string) => {
|
|
248
253
|
upperName: string;
|
|
@@ -254,7 +259,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
254
259
|
details: {
|
|
255
260
|
props: string[];
|
|
256
261
|
blocklistType: string;
|
|
257
|
-
config: _pandacss_types.PatternConfig
|
|
262
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
258
263
|
type: "pattern";
|
|
259
264
|
match: RegExp;
|
|
260
265
|
jsx: (string | RegExp)[];
|
|
@@ -268,7 +273,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
268
273
|
filter: (jsxName: string) => {
|
|
269
274
|
props: string[];
|
|
270
275
|
blocklistType: string;
|
|
271
|
-
config: _pandacss_types.PatternConfig
|
|
276
|
+
config: _pandacss_types.PatternConfig<_pandacss_types_dist_pattern.PatternProperties>;
|
|
272
277
|
type: "pattern";
|
|
273
278
|
match: RegExp;
|
|
274
279
|
jsx: (string | RegExp)[];
|
|
@@ -342,7 +347,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
342
347
|
layerNames: string[];
|
|
343
348
|
hooks: _pandacss_types.PandaHookable;
|
|
344
349
|
path: string;
|
|
345
|
-
config:
|
|
350
|
+
config: _pandacss_types.UserConfig;
|
|
346
351
|
tsconfig?: TSConfig | undefined;
|
|
347
352
|
tsOptions?: _pandacss_types.ConfigTsOptions | undefined;
|
|
348
353
|
tsconfigFile?: string | undefined;
|