@pandacss/parser 0.36.0 → 0.36.1
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.js +9 -2
- package/dist/index.mjs +9 -2
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -406,11 +406,11 @@ function createParser(context) {
|
|
|
406
406
|
result.queryList.forEach((query) => {
|
|
407
407
|
const data = combineResult((0, import_extractor.unbox)(query.box));
|
|
408
408
|
switch (true) {
|
|
409
|
-
case file.isJsxFactory(name): {
|
|
409
|
+
case (file.isJsxFactory(name) || file.isJsxFactory(alias)): {
|
|
410
410
|
parserResult.setJsx({ type: "jsx-factory", name, box: query.box, data });
|
|
411
411
|
break;
|
|
412
412
|
}
|
|
413
|
-
case jsx.isJsxTagPattern(name): {
|
|
413
|
+
case (jsx.isJsxTagPattern(name) || jsx.isJsxTagPattern(alias)): {
|
|
414
414
|
parserResult.setPattern(name, { type: "jsx-pattern", name, box: query.box, data });
|
|
415
415
|
break;
|
|
416
416
|
}
|
|
@@ -421,6 +421,13 @@ function createParser(context) {
|
|
|
421
421
|
});
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
424
|
+
case jsx.isJsxTagRecipe(alias): {
|
|
425
|
+
const matchingRecipes = recipes.filter(alias);
|
|
426
|
+
matchingRecipes.map((recipe) => {
|
|
427
|
+
parserResult.setRecipe(recipe.baseName, { type: "jsx-recipe", name: alias, box: query.box, data });
|
|
428
|
+
});
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
424
431
|
default: {
|
|
425
432
|
parserResult.setJsx({ type: "jsx", name, box: query.box, data });
|
|
426
433
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -372,11 +372,11 @@ function createParser(context) {
|
|
|
372
372
|
result.queryList.forEach((query) => {
|
|
373
373
|
const data = combineResult(unbox(query.box));
|
|
374
374
|
switch (true) {
|
|
375
|
-
case file.isJsxFactory(name): {
|
|
375
|
+
case (file.isJsxFactory(name) || file.isJsxFactory(alias)): {
|
|
376
376
|
parserResult.setJsx({ type: "jsx-factory", name, box: query.box, data });
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
|
-
case jsx.isJsxTagPattern(name): {
|
|
379
|
+
case (jsx.isJsxTagPattern(name) || jsx.isJsxTagPattern(alias)): {
|
|
380
380
|
parserResult.setPattern(name, { type: "jsx-pattern", name, box: query.box, data });
|
|
381
381
|
break;
|
|
382
382
|
}
|
|
@@ -387,6 +387,13 @@ function createParser(context) {
|
|
|
387
387
|
});
|
|
388
388
|
break;
|
|
389
389
|
}
|
|
390
|
+
case jsx.isJsxTagRecipe(alias): {
|
|
391
|
+
const matchingRecipes = recipes.filter(alias);
|
|
392
|
+
matchingRecipes.map((recipe) => {
|
|
393
|
+
parserResult.setRecipe(recipe.baseName, { type: "jsx-recipe", name: alias, box: query.box, data });
|
|
394
|
+
});
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
390
397
|
default: {
|
|
391
398
|
parserResult.setJsx({ type: "jsx", name, box: query.box, data });
|
|
392
399
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/parser",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.1",
|
|
4
4
|
"description": "The static parser for panda css",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"magic-string": "0.30.8",
|
|
33
33
|
"ts-morph": "21.0.1",
|
|
34
34
|
"ts-pattern": "5.0.8",
|
|
35
|
-
"@pandacss/config": "^0.36.
|
|
36
|
-
"@pandacss/core": "^0.36.
|
|
37
|
-
"@pandacss/extractor": "0.36.
|
|
38
|
-
"@pandacss/logger": "0.36.
|
|
39
|
-
"@pandacss/shared": "0.36.
|
|
40
|
-
"@pandacss/types": "0.36.
|
|
35
|
+
"@pandacss/config": "^0.36.1",
|
|
36
|
+
"@pandacss/core": "^0.36.1",
|
|
37
|
+
"@pandacss/extractor": "0.36.1",
|
|
38
|
+
"@pandacss/logger": "0.36.1",
|
|
39
|
+
"@pandacss/shared": "0.36.1",
|
|
40
|
+
"@pandacss/types": "0.36.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@vue/compiler-core": "3.4.19",
|
|
44
|
-
"@pandacss/generator": "0.36.
|
|
44
|
+
"@pandacss/generator": "0.36.1"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"dist"
|