@pandacss/generator 0.0.0-dev-20230911135518 → 0.0.0-dev-20230911161250
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 +12 -3
- package/dist/index.mjs +12 -3
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -3169,7 +3169,7 @@ var generateParserCss = (ctx) => (result) => (0, import_func.pipe)(
|
|
|
3169
3169
|
});
|
|
3170
3170
|
result2.jsx.forEach((jsx) => {
|
|
3171
3171
|
jsx.data.forEach((data) => {
|
|
3172
|
-
sheet.processStyleProps(data);
|
|
3172
|
+
sheet.processStyleProps(filterProps(ctx, data));
|
|
3173
3173
|
});
|
|
3174
3174
|
});
|
|
3175
3175
|
result2.recipe.forEach((recipeSet, recipeName) => {
|
|
@@ -3181,7 +3181,7 @@ var generateParserCss = (ctx) => (result) => (0, import_func.pipe)(
|
|
|
3181
3181
|
(0, import_ts_pattern10.match)(recipe).with({ type: "jsx-recipe" }, () => {
|
|
3182
3182
|
recipe.data.forEach((data) => {
|
|
3183
3183
|
const [recipeProps, styleProps] = recipes.splitProps(recipeName, data);
|
|
3184
|
-
sheet.processStyleProps(styleProps);
|
|
3184
|
+
sheet.processStyleProps(filterProps(ctx, styleProps));
|
|
3185
3185
|
sheet.processRecipe(recipeName, recipeConfig, recipeProps);
|
|
3186
3186
|
});
|
|
3187
3187
|
}).otherwise(() => {
|
|
@@ -3201,7 +3201,7 @@ var generateParserCss = (ctx) => (result) => (0, import_func.pipe)(
|
|
|
3201
3201
|
pattern.data.forEach((data) => {
|
|
3202
3202
|
const fnName = patterns.find(jsxName);
|
|
3203
3203
|
const styleProps = patterns.transform(fnName, data);
|
|
3204
|
-
sheet.processStyleProps(styleProps);
|
|
3204
|
+
sheet.processStyleProps(filterProps(ctx, styleProps));
|
|
3205
3205
|
});
|
|
3206
3206
|
}).otherwise(() => {
|
|
3207
3207
|
pattern.data.forEach((data) => {
|
|
@@ -3226,6 +3226,15 @@ var generateParserCss = (ctx) => (result) => (0, import_func.pipe)(
|
|
|
3226
3226
|
}
|
|
3227
3227
|
)
|
|
3228
3228
|
);
|
|
3229
|
+
var filterProps = (ctx, props) => {
|
|
3230
|
+
const clone = {};
|
|
3231
|
+
for (const [key, value] of Object.entries(props)) {
|
|
3232
|
+
if (ctx.isValidProperty(key)) {
|
|
3233
|
+
clone[key] = value;
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
return clone;
|
|
3237
|
+
};
|
|
3229
3238
|
|
|
3230
3239
|
// src/engines/base.ts
|
|
3231
3240
|
var import_core5 = require("@pandacss/core");
|
package/dist/index.mjs
CHANGED
|
@@ -3138,7 +3138,7 @@ var generateParserCss = (ctx) => (result) => pipe(
|
|
|
3138
3138
|
});
|
|
3139
3139
|
result2.jsx.forEach((jsx) => {
|
|
3140
3140
|
jsx.data.forEach((data) => {
|
|
3141
|
-
sheet.processStyleProps(data);
|
|
3141
|
+
sheet.processStyleProps(filterProps(ctx, data));
|
|
3142
3142
|
});
|
|
3143
3143
|
});
|
|
3144
3144
|
result2.recipe.forEach((recipeSet, recipeName) => {
|
|
@@ -3150,7 +3150,7 @@ var generateParserCss = (ctx) => (result) => pipe(
|
|
|
3150
3150
|
match10(recipe).with({ type: "jsx-recipe" }, () => {
|
|
3151
3151
|
recipe.data.forEach((data) => {
|
|
3152
3152
|
const [recipeProps, styleProps] = recipes.splitProps(recipeName, data);
|
|
3153
|
-
sheet.processStyleProps(styleProps);
|
|
3153
|
+
sheet.processStyleProps(filterProps(ctx, styleProps));
|
|
3154
3154
|
sheet.processRecipe(recipeName, recipeConfig, recipeProps);
|
|
3155
3155
|
});
|
|
3156
3156
|
}).otherwise(() => {
|
|
@@ -3170,7 +3170,7 @@ var generateParserCss = (ctx) => (result) => pipe(
|
|
|
3170
3170
|
pattern.data.forEach((data) => {
|
|
3171
3171
|
const fnName = patterns.find(jsxName);
|
|
3172
3172
|
const styleProps = patterns.transform(fnName, data);
|
|
3173
|
-
sheet.processStyleProps(styleProps);
|
|
3173
|
+
sheet.processStyleProps(filterProps(ctx, styleProps));
|
|
3174
3174
|
});
|
|
3175
3175
|
}).otherwise(() => {
|
|
3176
3176
|
pattern.data.forEach((data) => {
|
|
@@ -3195,6 +3195,15 @@ var generateParserCss = (ctx) => (result) => pipe(
|
|
|
3195
3195
|
}
|
|
3196
3196
|
)
|
|
3197
3197
|
);
|
|
3198
|
+
var filterProps = (ctx, props) => {
|
|
3199
|
+
const clone = {};
|
|
3200
|
+
for (const [key, value] of Object.entries(props)) {
|
|
3201
|
+
if (ctx.isValidProperty(key)) {
|
|
3202
|
+
clone[key] = value;
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
return clone;
|
|
3206
|
+
};
|
|
3198
3207
|
|
|
3199
3208
|
// src/engines/base.ts
|
|
3200
3209
|
import {
|
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-20230911161250",
|
|
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.4",
|
|
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-20230911161250",
|
|
24
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230911161250",
|
|
25
|
+
"@pandacss/logger": "0.0.0-dev-20230911161250",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230911161250",
|
|
27
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230911161250",
|
|
28
|
+
"@pandacss/types": "0.0.0-dev-20230911161250"
|
|
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-20230911161250"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "tsx scripts/prebuild.ts",
|