@pandacss/generator 0.0.0-dev-20230704150835 → 0.0.0-dev-20230704200435
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 +5 -6
- package/dist/index.mjs +6 -7
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -3156,7 +3156,6 @@ var generateFlattenedCss = (ctx) => (options) => {
|
|
|
3156
3156
|
var import_logger2 = require("@pandacss/logger");
|
|
3157
3157
|
var import_func = require("lil-fp/func");
|
|
3158
3158
|
var import_ts_pattern6 = require("ts-pattern");
|
|
3159
|
-
var flattenStyles = (data) => Object.assign({}, data, { css: void 0 }, data.css ?? {});
|
|
3160
3159
|
var generateParserCss = (ctx) => (result) => (0, import_func.pipe)(
|
|
3161
3160
|
{ ...ctx, sheet: ctx.createSheet(), result },
|
|
3162
3161
|
(0, import_func.tap)(({ sheet, result: result2, patterns, recipes }) => {
|
|
@@ -3172,7 +3171,7 @@ var generateParserCss = (ctx) => (result) => (0, import_func.pipe)(
|
|
|
3172
3171
|
});
|
|
3173
3172
|
result2.jsx.forEach((jsx) => {
|
|
3174
3173
|
jsx.data.forEach((data) => {
|
|
3175
|
-
sheet.
|
|
3174
|
+
sheet.processStyleProps(data);
|
|
3176
3175
|
});
|
|
3177
3176
|
});
|
|
3178
3177
|
result2.recipe.forEach((recipeSet, name) => {
|
|
@@ -3183,8 +3182,8 @@ var generateParserCss = (ctx) => (result) => (0, import_func.pipe)(
|
|
|
3183
3182
|
continue;
|
|
3184
3183
|
(0, import_ts_pattern6.match)(recipe).with({ type: "jsx-recipe", name: import_ts_pattern6.P.string }, ({ name: name2 }) => {
|
|
3185
3184
|
recipe.data.forEach((data) => {
|
|
3186
|
-
const [recipeProps, styleProps] = recipes.splitProps(name2,
|
|
3187
|
-
sheet.
|
|
3185
|
+
const [recipeProps, styleProps] = recipes.splitProps(name2, data);
|
|
3186
|
+
sheet.processStyleProps(styleProps);
|
|
3188
3187
|
sheet.processRecipe(recipeConfig, recipeProps);
|
|
3189
3188
|
});
|
|
3190
3189
|
}).otherwise(() => {
|
|
@@ -3203,8 +3202,8 @@ var generateParserCss = (ctx) => (result) => (0, import_func.pipe)(
|
|
|
3203
3202
|
(0, import_ts_pattern6.match)(pattern).with({ type: "jsx-pattern", name: import_ts_pattern6.P.string }, ({ name: name2 }) => {
|
|
3204
3203
|
pattern.data.forEach((data) => {
|
|
3205
3204
|
const fnName = patterns.getFnName(name2);
|
|
3206
|
-
const styleProps = patterns.transform(fnName,
|
|
3207
|
-
sheet.
|
|
3205
|
+
const styleProps = patterns.transform(fnName, data);
|
|
3206
|
+
sheet.processStyleProps(styleProps);
|
|
3208
3207
|
});
|
|
3209
3208
|
}).otherwise(() => {
|
|
3210
3209
|
pattern.data.forEach((data) => {
|
package/dist/index.mjs
CHANGED
|
@@ -3124,8 +3124,7 @@ var generateFlattenedCss = (ctx) => (options) => {
|
|
|
3124
3124
|
// src/artifacts/css/parser-css.ts
|
|
3125
3125
|
import { logger } from "@pandacss/logger";
|
|
3126
3126
|
import { pipe, tap, tryCatch } from "lil-fp/func";
|
|
3127
|
-
import { match as match6
|
|
3128
|
-
var flattenStyles = (data) => Object.assign({}, data, { css: void 0 }, data.css ?? {});
|
|
3127
|
+
import { P, match as match6 } from "ts-pattern";
|
|
3129
3128
|
var generateParserCss = (ctx) => (result) => pipe(
|
|
3130
3129
|
{ ...ctx, sheet: ctx.createSheet(), result },
|
|
3131
3130
|
tap(({ sheet, result: result2, patterns, recipes }) => {
|
|
@@ -3141,7 +3140,7 @@ var generateParserCss = (ctx) => (result) => pipe(
|
|
|
3141
3140
|
});
|
|
3142
3141
|
result2.jsx.forEach((jsx) => {
|
|
3143
3142
|
jsx.data.forEach((data) => {
|
|
3144
|
-
sheet.
|
|
3143
|
+
sheet.processStyleProps(data);
|
|
3145
3144
|
});
|
|
3146
3145
|
});
|
|
3147
3146
|
result2.recipe.forEach((recipeSet, name) => {
|
|
@@ -3152,8 +3151,8 @@ var generateParserCss = (ctx) => (result) => pipe(
|
|
|
3152
3151
|
continue;
|
|
3153
3152
|
match6(recipe).with({ type: "jsx-recipe", name: P.string }, ({ name: name2 }) => {
|
|
3154
3153
|
recipe.data.forEach((data) => {
|
|
3155
|
-
const [recipeProps, styleProps] = recipes.splitProps(name2,
|
|
3156
|
-
sheet.
|
|
3154
|
+
const [recipeProps, styleProps] = recipes.splitProps(name2, data);
|
|
3155
|
+
sheet.processStyleProps(styleProps);
|
|
3157
3156
|
sheet.processRecipe(recipeConfig, recipeProps);
|
|
3158
3157
|
});
|
|
3159
3158
|
}).otherwise(() => {
|
|
@@ -3172,8 +3171,8 @@ var generateParserCss = (ctx) => (result) => pipe(
|
|
|
3172
3171
|
match6(pattern).with({ type: "jsx-pattern", name: P.string }, ({ name: name2 }) => {
|
|
3173
3172
|
pattern.data.forEach((data) => {
|
|
3174
3173
|
const fnName = patterns.getFnName(name2);
|
|
3175
|
-
const styleProps = patterns.transform(fnName,
|
|
3176
|
-
sheet.
|
|
3174
|
+
const styleProps = patterns.transform(fnName, data);
|
|
3175
|
+
sheet.processStyleProps(styleProps);
|
|
3177
3176
|
});
|
|
3178
3177
|
}).otherwise(() => {
|
|
3179
3178
|
pattern.data.forEach((data) => {
|
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-20230704200435",
|
|
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.24",
|
|
22
22
|
"ts-pattern": "4.3.0",
|
|
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-20230704200435",
|
|
24
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230704200435",
|
|
25
|
+
"@pandacss/logger": "0.0.0-dev-20230704200435",
|
|
26
|
+
"@pandacss/shared": "0.0.0-dev-20230704200435",
|
|
27
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230704200435",
|
|
28
|
+
"@pandacss/types": "0.0.0-dev-20230704200435"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/pluralize": "0.0.29",
|
|
32
32
|
"hookable": "5.5.3",
|
|
33
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
33
|
+
"@pandacss/fixture": "0.0.0-dev-20230704200435"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"prebuild": "tsx scripts/prebuild.ts",
|