@pandacss/generator 0.0.0-dev-20231211133922 → 0.0.0-dev-20231211142814
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 +6 -12
- package/dist/index.mjs +6 -12
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1471,10 +1471,9 @@ function generatePreactJsxFactory(ctx) {
|
|
|
1471
1471
|
...forwardedProps,
|
|
1472
1472
|
...elementProps,
|
|
1473
1473
|
...normalizeHTMLProps(htmlProps),
|
|
1474
|
-
children,
|
|
1475
1474
|
ref,
|
|
1476
1475
|
className: classes()
|
|
1477
|
-
})
|
|
1476
|
+
}, combinedProps.children ?? children)
|
|
1478
1477
|
})
|
|
1479
1478
|
|
|
1480
1479
|
const name = getDisplayName(Dynamic)
|
|
@@ -1777,9 +1776,8 @@ function generateQwikJsxFactory(ctx) {
|
|
|
1777
1776
|
...forwardedProps,
|
|
1778
1777
|
...elementProps,
|
|
1779
1778
|
...normalizeHTMLProps(htmlProps),
|
|
1780
|
-
children,
|
|
1781
1779
|
class: classes(),
|
|
1782
|
-
})
|
|
1780
|
+
}, combinedProps.children ?? children)
|
|
1783
1781
|
}
|
|
1784
1782
|
|
|
1785
1783
|
const name = getDisplayName(Dynamic)
|
|
@@ -2089,9 +2087,8 @@ function generateReactJsxFactory(ctx) {
|
|
|
2089
2087
|
...forwardedProps,
|
|
2090
2088
|
...elementProps,
|
|
2091
2089
|
...normalizeHTMLProps(htmlProps),
|
|
2092
|
-
children,
|
|
2093
2090
|
className: classes(),
|
|
2094
|
-
})
|
|
2091
|
+
}, combinedProps.children ?? children)
|
|
2095
2092
|
})
|
|
2096
2093
|
|
|
2097
2094
|
const name = getDisplayName(Dynamic)
|
|
@@ -3612,7 +3609,7 @@ function setupJsxHelpers(ctx) {
|
|
|
3612
3609
|
};
|
|
3613
3610
|
}
|
|
3614
3611
|
function setupJsxPatterns(ctx, filters) {
|
|
3615
|
-
if (!ctx.jsx.framework)
|
|
3612
|
+
if (!ctx.jsx.framework || ctx.isTemplateLiteralSyntax)
|
|
3616
3613
|
return;
|
|
3617
3614
|
const patterns = generateJsxPatterns(ctx, filters);
|
|
3618
3615
|
return {
|
|
@@ -3635,15 +3632,12 @@ function setupJsxPatternsIndex(ctx) {
|
|
|
3635
3632
|
js: import_outdent44.default`
|
|
3636
3633
|
${ctx.file.exportStar("./factory")}
|
|
3637
3634
|
${isStyleProp ? ctx.file.exportStar("./is-valid-prop") : ""}
|
|
3638
|
-
${import_outdent44.default.string(patternNames.map((file) => ctx.file.exportStar(`./${file}`)).join("\n"))}
|
|
3635
|
+
${isStyleProp ? import_outdent44.default.string(patternNames.map((file) => ctx.file.exportStar(`./${file}`)).join("\n")) : ""}
|
|
3639
3636
|
`,
|
|
3640
3637
|
dts: import_outdent44.default`
|
|
3641
3638
|
${ctx.file.exportTypeStar("./factory")}
|
|
3642
|
-
|
|
3643
3639
|
${isStyleProp ? ctx.file.exportTypeStar("./is-valid-prop") : ""}
|
|
3644
|
-
|
|
3645
|
-
${import_outdent44.default.string(patternNames.map((file) => ctx.file.exportTypeStar(`./${file}`)).join("\n"))}
|
|
3646
|
-
|
|
3640
|
+
${isStyleProp ? import_outdent44.default.string(patternNames.map((file) => ctx.file.exportTypeStar(`./${file}`)).join("\n")) : ""}
|
|
3647
3641
|
${ctx.file.exportType([ctx.jsx.typeName, ctx.jsx.componentName].join(", "), "../types/jsx")}
|
|
3648
3642
|
`
|
|
3649
3643
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1440,10 +1440,9 @@ function generatePreactJsxFactory(ctx) {
|
|
|
1440
1440
|
...forwardedProps,
|
|
1441
1441
|
...elementProps,
|
|
1442
1442
|
...normalizeHTMLProps(htmlProps),
|
|
1443
|
-
children,
|
|
1444
1443
|
ref,
|
|
1445
1444
|
className: classes()
|
|
1446
|
-
})
|
|
1445
|
+
}, combinedProps.children ?? children)
|
|
1447
1446
|
})
|
|
1448
1447
|
|
|
1449
1448
|
const name = getDisplayName(Dynamic)
|
|
@@ -1746,9 +1745,8 @@ function generateQwikJsxFactory(ctx) {
|
|
|
1746
1745
|
...forwardedProps,
|
|
1747
1746
|
...elementProps,
|
|
1748
1747
|
...normalizeHTMLProps(htmlProps),
|
|
1749
|
-
children,
|
|
1750
1748
|
class: classes(),
|
|
1751
|
-
})
|
|
1749
|
+
}, combinedProps.children ?? children)
|
|
1752
1750
|
}
|
|
1753
1751
|
|
|
1754
1752
|
const name = getDisplayName(Dynamic)
|
|
@@ -2058,9 +2056,8 @@ function generateReactJsxFactory(ctx) {
|
|
|
2058
2056
|
...forwardedProps,
|
|
2059
2057
|
...elementProps,
|
|
2060
2058
|
...normalizeHTMLProps(htmlProps),
|
|
2061
|
-
children,
|
|
2062
2059
|
className: classes(),
|
|
2063
|
-
})
|
|
2060
|
+
}, combinedProps.children ?? children)
|
|
2064
2061
|
})
|
|
2065
2062
|
|
|
2066
2063
|
const name = getDisplayName(Dynamic)
|
|
@@ -3581,7 +3578,7 @@ function setupJsxHelpers(ctx) {
|
|
|
3581
3578
|
};
|
|
3582
3579
|
}
|
|
3583
3580
|
function setupJsxPatterns(ctx, filters) {
|
|
3584
|
-
if (!ctx.jsx.framework)
|
|
3581
|
+
if (!ctx.jsx.framework || ctx.isTemplateLiteralSyntax)
|
|
3585
3582
|
return;
|
|
3586
3583
|
const patterns = generateJsxPatterns(ctx, filters);
|
|
3587
3584
|
return {
|
|
@@ -3604,15 +3601,12 @@ function setupJsxPatternsIndex(ctx) {
|
|
|
3604
3601
|
js: outdent44`
|
|
3605
3602
|
${ctx.file.exportStar("./factory")}
|
|
3606
3603
|
${isStyleProp ? ctx.file.exportStar("./is-valid-prop") : ""}
|
|
3607
|
-
${outdent44.string(patternNames.map((file) => ctx.file.exportStar(`./${file}`)).join("\n"))}
|
|
3604
|
+
${isStyleProp ? outdent44.string(patternNames.map((file) => ctx.file.exportStar(`./${file}`)).join("\n")) : ""}
|
|
3608
3605
|
`,
|
|
3609
3606
|
dts: outdent44`
|
|
3610
3607
|
${ctx.file.exportTypeStar("./factory")}
|
|
3611
|
-
|
|
3612
3608
|
${isStyleProp ? ctx.file.exportTypeStar("./is-valid-prop") : ""}
|
|
3613
|
-
|
|
3614
|
-
${outdent44.string(patternNames.map((file) => ctx.file.exportTypeStar(`./${file}`)).join("\n"))}
|
|
3615
|
-
|
|
3609
|
+
${isStyleProp ? outdent44.string(patternNames.map((file) => ctx.file.exportTypeStar(`./${file}`)).join("\n")) : ""}
|
|
3616
3610
|
${ctx.file.exportType([ctx.jsx.typeName, ctx.jsx.componentName].join(", "), "../types/jsx")}
|
|
3617
3611
|
`
|
|
3618
3612
|
};
|
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-20231211142814",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"pluralize": "8.0.0",
|
|
33
33
|
"postcss": "^8.4.31",
|
|
34
34
|
"ts-pattern": "5.0.5",
|
|
35
|
-
"@pandacss/core": "0.0.0-dev-
|
|
36
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
37
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
38
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
39
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
40
|
-
"@pandacss/types": "0.0.0-dev-
|
|
35
|
+
"@pandacss/core": "0.0.0-dev-20231211142814",
|
|
36
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20231211142814",
|
|
37
|
+
"@pandacss/logger": "0.0.0-dev-20231211142814",
|
|
38
|
+
"@pandacss/shared": "0.0.0-dev-20231211142814",
|
|
39
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20231211142814",
|
|
40
|
+
"@pandacss/types": "0.0.0-dev-20231211142814"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/pluralize": "0.0.33",
|
|
44
44
|
"hookable": "5.5.3",
|
|
45
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
45
|
+
"@pandacss/fixture": "0.0.0-dev-20231211142814"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|