@pandacss/parser 0.12.1 → 0.13.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.js +16 -5
- package/dist/index.mjs +16 -5
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -383,11 +383,22 @@ function createParser(options) {
|
|
|
383
383
|
(0, import_ts_pattern.match)(name).when(css.match, (name2) => {
|
|
384
384
|
result.queryList.forEach((query) => {
|
|
385
385
|
if (query.kind === "call-expression") {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
386
|
+
if (query.box.value.length > 1) {
|
|
387
|
+
collector.set(name2, {
|
|
388
|
+
name: name2,
|
|
389
|
+
box: query.box,
|
|
390
|
+
data: query.box.value.reduce(
|
|
391
|
+
(acc, value) => [...acc, ...combineResult((0, import_extractor.unbox)(value))],
|
|
392
|
+
[]
|
|
393
|
+
)
|
|
394
|
+
});
|
|
395
|
+
} else {
|
|
396
|
+
collector.set(name2, {
|
|
397
|
+
name: name2,
|
|
398
|
+
box: query.box.value[0] ?? fallback(query.box),
|
|
399
|
+
data: combineResult((0, import_extractor.unbox)(query.box.value[0]))
|
|
400
|
+
});
|
|
401
|
+
}
|
|
391
402
|
} else if (query.kind === "tagged-template") {
|
|
392
403
|
const obj = (0, import_shared2.astish)(query.box.value);
|
|
393
404
|
collector.set(name2, {
|
package/dist/index.mjs
CHANGED
|
@@ -345,11 +345,22 @@ function createParser(options) {
|
|
|
345
345
|
match(name).when(css.match, (name2) => {
|
|
346
346
|
result.queryList.forEach((query) => {
|
|
347
347
|
if (query.kind === "call-expression") {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
348
|
+
if (query.box.value.length > 1) {
|
|
349
|
+
collector.set(name2, {
|
|
350
|
+
name: name2,
|
|
351
|
+
box: query.box,
|
|
352
|
+
data: query.box.value.reduce(
|
|
353
|
+
(acc, value) => [...acc, ...combineResult(unbox(value))],
|
|
354
|
+
[]
|
|
355
|
+
)
|
|
356
|
+
});
|
|
357
|
+
} else {
|
|
358
|
+
collector.set(name2, {
|
|
359
|
+
name: name2,
|
|
360
|
+
box: query.box.value[0] ?? fallback(query.box),
|
|
361
|
+
data: combineResult(unbox(query.box.value[0]))
|
|
362
|
+
});
|
|
363
|
+
}
|
|
353
364
|
} else if (query.kind === "tagged-template") {
|
|
354
365
|
const obj = astish(query.box.value);
|
|
355
366
|
collector.set(name2, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/parser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "The static parser for panda css",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"magic-string": "^0.30.2",
|
|
17
17
|
"ts-morph": "19.0.0",
|
|
18
18
|
"ts-pattern": "5.0.4",
|
|
19
|
-
"@pandacss/config": "^0.
|
|
20
|
-
"@pandacss/extractor": "0.
|
|
21
|
-
"@pandacss/is-valid-prop": "0.
|
|
22
|
-
"@pandacss/logger": "0.
|
|
23
|
-
"@pandacss/shared": "0.
|
|
24
|
-
"@pandacss/types": "0.
|
|
19
|
+
"@pandacss/config": "^0.13.0",
|
|
20
|
+
"@pandacss/extractor": "0.13.0",
|
|
21
|
+
"@pandacss/is-valid-prop": "0.13.0",
|
|
22
|
+
"@pandacss/logger": "0.13.0",
|
|
23
|
+
"@pandacss/shared": "0.13.0",
|
|
24
|
+
"@pandacss/types": "0.13.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"hookable": "5.5.3",
|
|
28
|
-
"@pandacss/fixture": "0.
|
|
29
|
-
"@pandacss/generator": "0.
|
|
28
|
+
"@pandacss/fixture": "0.13.0",
|
|
29
|
+
"@pandacss/generator": "0.13.0"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist"
|