@pandacss/generator 0.0.0-dev-20230927123747 → 0.0.0-dev-20230927132629
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 +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +10 -6
- package/dist/index.mjs +10 -6
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ import * as _pandacss_types_dist_pattern from '@pandacss/types/dist/pattern';
|
|
|
6
6
|
|
|
7
7
|
declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
8
8
|
patterns: {
|
|
9
|
+
keys: string[];
|
|
9
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) => {
|
|
@@ -181,6 +182,7 @@ 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;
|
|
@@ -211,6 +213,8 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
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";
|
|
@@ -242,6 +246,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
242
246
|
tsOptions: _pandacss_types.ConfigTsOptions | undefined;
|
|
243
247
|
};
|
|
244
248
|
patterns: {
|
|
249
|
+
keys: string[];
|
|
245
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) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as _pandacss_types_dist_pattern from '@pandacss/types/dist/pattern';
|
|
|
6
6
|
|
|
7
7
|
declare const getEngine: (conf: ConfigResultWithHooks) => {
|
|
8
8
|
patterns: {
|
|
9
|
+
keys: string[];
|
|
9
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) => {
|
|
@@ -181,6 +182,7 @@ 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;
|
|
@@ -211,6 +213,8 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
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";
|
|
@@ -242,6 +246,7 @@ declare const createGenerator: (conf: ConfigResultWithHooks) => {
|
|
|
242
246
|
tsOptions: _pandacss_types.ConfigTsOptions | undefined;
|
|
243
247
|
};
|
|
244
248
|
patterns: {
|
|
249
|
+
keys: string[];
|
|
245
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) => {
|
package/dist/index.js
CHANGED
|
@@ -3430,6 +3430,7 @@ var getPatternEngine = (config) => {
|
|
|
3430
3430
|
};
|
|
3431
3431
|
});
|
|
3432
3432
|
return {
|
|
3433
|
+
keys: Object.keys(patterns),
|
|
3433
3434
|
getConfig: (name) => patterns[name],
|
|
3434
3435
|
transform: (name, data) => {
|
|
3435
3436
|
return patterns[name]?.transform?.(data, helpers2) ?? {};
|
|
@@ -3509,11 +3510,11 @@ var defaults = (conf) => ({
|
|
|
3509
3510
|
}
|
|
3510
3511
|
}
|
|
3511
3512
|
});
|
|
3512
|
-
var getImportMap = (outdir) => ({
|
|
3513
|
-
css: [outdir, "css"],
|
|
3514
|
-
recipe: [outdir, "recipes"],
|
|
3515
|
-
pattern: [outdir, "patterns"],
|
|
3516
|
-
jsx: [outdir, "jsx"]
|
|
3513
|
+
var getImportMap = (outdir, configImportMap) => ({
|
|
3514
|
+
css: configImportMap?.css ? [configImportMap.css] : [outdir, "css"],
|
|
3515
|
+
recipe: configImportMap?.recipes ? [configImportMap.recipes] : [outdir, "recipes"],
|
|
3516
|
+
pattern: configImportMap?.patterns ? [configImportMap.patterns] : [outdir, "patterns"],
|
|
3517
|
+
jsx: configImportMap?.jsx ? [configImportMap.jsx] : [outdir, "jsx"]
|
|
3517
3518
|
});
|
|
3518
3519
|
var createGenerator = (conf) => {
|
|
3519
3520
|
const ctx = getEngine(defaults(conf));
|
|
@@ -3529,13 +3530,16 @@ var createGenerator = (conf) => {
|
|
|
3529
3530
|
getParserCss: generateParserCss(ctx),
|
|
3530
3531
|
messages: getMessages(ctx),
|
|
3531
3532
|
parserOptions: {
|
|
3532
|
-
importMap: getImportMap(config.outdir.replace(relativeBaseUrl, "")),
|
|
3533
|
+
importMap: getImportMap(config.outdir.replace(relativeBaseUrl, ""), config.importMap),
|
|
3533
3534
|
jsx: {
|
|
3535
|
+
framework: jsx.framework,
|
|
3534
3536
|
factory: jsx.factoryName,
|
|
3535
3537
|
styleProps: jsx.styleProps,
|
|
3536
3538
|
isStyleProp: isValidProperty,
|
|
3537
3539
|
nodes: [...patterns.details, ...recipes.details]
|
|
3538
3540
|
},
|
|
3541
|
+
patternKeys: patterns.keys,
|
|
3542
|
+
recipeKeys: recipes.keys,
|
|
3539
3543
|
getRecipesByJsxName: recipes.filter,
|
|
3540
3544
|
getPatternsByJsxName: patterns.filter,
|
|
3541
3545
|
compilerOptions,
|
package/dist/index.mjs
CHANGED
|
@@ -3405,6 +3405,7 @@ var getPatternEngine = (config) => {
|
|
|
3405
3405
|
};
|
|
3406
3406
|
});
|
|
3407
3407
|
return {
|
|
3408
|
+
keys: Object.keys(patterns),
|
|
3408
3409
|
getConfig: (name) => patterns[name],
|
|
3409
3410
|
transform: (name, data) => {
|
|
3410
3411
|
return patterns[name]?.transform?.(data, helpers2) ?? {};
|
|
@@ -3484,11 +3485,11 @@ var defaults = (conf) => ({
|
|
|
3484
3485
|
}
|
|
3485
3486
|
}
|
|
3486
3487
|
});
|
|
3487
|
-
var getImportMap = (outdir) => ({
|
|
3488
|
-
css: [outdir, "css"],
|
|
3489
|
-
recipe: [outdir, "recipes"],
|
|
3490
|
-
pattern: [outdir, "patterns"],
|
|
3491
|
-
jsx: [outdir, "jsx"]
|
|
3488
|
+
var getImportMap = (outdir, configImportMap) => ({
|
|
3489
|
+
css: configImportMap?.css ? [configImportMap.css] : [outdir, "css"],
|
|
3490
|
+
recipe: configImportMap?.recipes ? [configImportMap.recipes] : [outdir, "recipes"],
|
|
3491
|
+
pattern: configImportMap?.patterns ? [configImportMap.patterns] : [outdir, "patterns"],
|
|
3492
|
+
jsx: configImportMap?.jsx ? [configImportMap.jsx] : [outdir, "jsx"]
|
|
3492
3493
|
});
|
|
3493
3494
|
var createGenerator = (conf) => {
|
|
3494
3495
|
const ctx = getEngine(defaults(conf));
|
|
@@ -3504,13 +3505,16 @@ var createGenerator = (conf) => {
|
|
|
3504
3505
|
getParserCss: generateParserCss(ctx),
|
|
3505
3506
|
messages: getMessages(ctx),
|
|
3506
3507
|
parserOptions: {
|
|
3507
|
-
importMap: getImportMap(config.outdir.replace(relativeBaseUrl, "")),
|
|
3508
|
+
importMap: getImportMap(config.outdir.replace(relativeBaseUrl, ""), config.importMap),
|
|
3508
3509
|
jsx: {
|
|
3510
|
+
framework: jsx.framework,
|
|
3509
3511
|
factory: jsx.factoryName,
|
|
3510
3512
|
styleProps: jsx.styleProps,
|
|
3511
3513
|
isStyleProp: isValidProperty,
|
|
3512
3514
|
nodes: [...patterns.details, ...recipes.details]
|
|
3513
3515
|
},
|
|
3516
|
+
patternKeys: patterns.keys,
|
|
3517
|
+
recipeKeys: recipes.keys,
|
|
3514
3518
|
getRecipesByJsxName: recipes.filter,
|
|
3515
3519
|
getPatternsByJsxName: patterns.filter,
|
|
3516
3520
|
compilerOptions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/generator",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230927132629",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"pluralize": "8.0.0",
|
|
21
21
|
"postcss": "8.4.27",
|
|
22
22
|
"ts-pattern": "5.0.5",
|
|
23
|
-
"@pandacss/core": "0.0.0-dev-
|
|
24
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
25
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
26
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
27
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
28
|
-
"@pandacss/types": "0.0.0-dev-
|
|
23
|
+
"@pandacss/core": "0.0.0-dev-20230927132629",
|
|
24
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230927132629",
|
|
25
|
+
"@pandacss/logger": "0.0.0-dev-20230927132629",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230927132629",
|
|
27
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230927132629",
|
|
28
|
+
"@pandacss/types": "0.0.0-dev-20230927132629"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/pluralize": "0.0.30",
|
|
32
32
|
"hookable": "5.5.3",
|
|
33
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
33
|
+
"@pandacss/fixture": "0.0.0-dev-20230927132629"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "tsx scripts/prebuild.ts",
|