@pandacss/generator 0.0.0-dev-20230522105203 → 0.0.0-dev-20230522215452
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 +8 -10
- package/dist/index.mjs +8 -10
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -157,6 +157,8 @@ var css = String.raw;
|
|
|
157
157
|
var reset = css`
|
|
158
158
|
* {
|
|
159
159
|
margin: 0;
|
|
160
|
+
padding: 0;
|
|
161
|
+
font: inherit;
|
|
160
162
|
}
|
|
161
163
|
|
|
162
164
|
*,
|
|
@@ -191,13 +193,6 @@ var reset = css`
|
|
|
191
193
|
max-width: 100%;
|
|
192
194
|
}
|
|
193
195
|
|
|
194
|
-
input,
|
|
195
|
-
button,
|
|
196
|
-
textarea,
|
|
197
|
-
select {
|
|
198
|
-
font: inherit;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
196
|
p,
|
|
202
197
|
h1,
|
|
203
198
|
h2,
|
|
@@ -904,7 +899,8 @@ function generatePreactJsxPattern(ctx) {
|
|
|
904
899
|
${(0, import_ts_pattern2.match)(props.length).with(
|
|
905
900
|
0,
|
|
906
901
|
() => import_outdent11.outdent`
|
|
907
|
-
|
|
902
|
+
const styleProps = ${styleFnName}()
|
|
903
|
+
return h(${factoryName}.${jsxElement}, { ref, ...styleProps, ...props })
|
|
908
904
|
`
|
|
909
905
|
).otherwise(
|
|
910
906
|
() => import_outdent11.outdent`
|
|
@@ -1042,7 +1038,8 @@ function generateReactJsxPattern(ctx) {
|
|
|
1042
1038
|
${(0, import_ts_pattern3.match)(props.length).with(
|
|
1043
1039
|
0,
|
|
1044
1040
|
() => import_outdent14.outdent`
|
|
1045
|
-
|
|
1041
|
+
const styleProps = ${styleFnName}()
|
|
1042
|
+
return createElement(${factoryName}.${jsxElement}, { ref, ...styleProps, ...props })
|
|
1046
1043
|
`
|
|
1047
1044
|
).otherwise(
|
|
1048
1045
|
() => import_outdent14.outdent`
|
|
@@ -1190,7 +1187,8 @@ function generateSolidJsxPattern(ctx) {
|
|
|
1190
1187
|
${(0, import_ts_pattern4.match)(props.length).with(
|
|
1191
1188
|
0,
|
|
1192
1189
|
() => import_outdent17.outdent`
|
|
1193
|
-
|
|
1190
|
+
const styleProps = ${styleFnName}()
|
|
1191
|
+
return createComponent(${factoryName}.${jsxElement}, mergeProps(styleProps, props))
|
|
1194
1192
|
`
|
|
1195
1193
|
).otherwise(
|
|
1196
1194
|
() => import_outdent17.outdent`
|
package/dist/index.mjs
CHANGED
|
@@ -126,6 +126,8 @@ var css = String.raw;
|
|
|
126
126
|
var reset = css`
|
|
127
127
|
* {
|
|
128
128
|
margin: 0;
|
|
129
|
+
padding: 0;
|
|
130
|
+
font: inherit;
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
*,
|
|
@@ -160,13 +162,6 @@ var reset = css`
|
|
|
160
162
|
max-width: 100%;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
|
-
input,
|
|
164
|
-
button,
|
|
165
|
-
textarea,
|
|
166
|
-
select {
|
|
167
|
-
font: inherit;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
165
|
p,
|
|
171
166
|
h1,
|
|
172
167
|
h2,
|
|
@@ -873,7 +868,8 @@ function generatePreactJsxPattern(ctx) {
|
|
|
873
868
|
${match2(props.length).with(
|
|
874
869
|
0,
|
|
875
870
|
() => outdent11`
|
|
876
|
-
|
|
871
|
+
const styleProps = ${styleFnName}()
|
|
872
|
+
return h(${factoryName}.${jsxElement}, { ref, ...styleProps, ...props })
|
|
877
873
|
`
|
|
878
874
|
).otherwise(
|
|
879
875
|
() => outdent11`
|
|
@@ -1011,7 +1007,8 @@ function generateReactJsxPattern(ctx) {
|
|
|
1011
1007
|
${match3(props.length).with(
|
|
1012
1008
|
0,
|
|
1013
1009
|
() => outdent14`
|
|
1014
|
-
|
|
1010
|
+
const styleProps = ${styleFnName}()
|
|
1011
|
+
return createElement(${factoryName}.${jsxElement}, { ref, ...styleProps, ...props })
|
|
1015
1012
|
`
|
|
1016
1013
|
).otherwise(
|
|
1017
1014
|
() => outdent14`
|
|
@@ -1159,7 +1156,8 @@ function generateSolidJsxPattern(ctx) {
|
|
|
1159
1156
|
${match4(props.length).with(
|
|
1160
1157
|
0,
|
|
1161
1158
|
() => outdent17`
|
|
1162
|
-
|
|
1159
|
+
const styleProps = ${styleFnName}()
|
|
1160
|
+
return createComponent(${factoryName}.${jsxElement}, mergeProps(styleProps, props))
|
|
1163
1161
|
`
|
|
1164
1162
|
).otherwise(
|
|
1165
1163
|
() => outdent17`
|
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-20230522215452",
|
|
4
4
|
"description": "The css generator for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"pluralize": "8.0.0",
|
|
21
21
|
"postcss": "8.4.23",
|
|
22
22
|
"ts-pattern": "4.3.0",
|
|
23
|
-
"@pandacss/core": "0.0.0-dev-
|
|
24
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
25
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
26
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
27
|
-
"@pandacss/types": "0.0.0-dev-
|
|
28
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
23
|
+
"@pandacss/core": "0.0.0-dev-20230522215452",
|
|
24
|
+
"@pandacss/logger": "0.0.0-dev-20230522215452",
|
|
25
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230522215452",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230522215452",
|
|
27
|
+
"@pandacss/types": "0.0.0-dev-20230522215452",
|
|
28
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230522215452"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/pluralize": "0.0.29",
|
|
32
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
32
|
+
"@pandacss/fixture": "0.0.0-dev-20230522215452"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"prebuild": "tsx scripts/prebuild.ts",
|