@pandacss/generator 0.0.0-dev-20231130150310 → 0.0.0-dev-20231201202542

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 CHANGED
@@ -1119,9 +1119,11 @@ var stringify2 = (value) => JSON.stringify(value, null, 2);
1119
1119
  var isBooleanValue = (value) => value === "true" || value === "false";
1120
1120
  function generateCreateRecipe(ctx) {
1121
1121
  const {
1122
+ conditions,
1122
1123
  recipes,
1123
- utility: { separator },
1124
- config: { prefix, hash }
1124
+ prefix,
1125
+ hash,
1126
+ utility: { separator }
1125
1127
  } = ctx;
1126
1128
  if (recipes.isEmpty())
1127
1129
  return;
@@ -1129,6 +1131,7 @@ function generateCreateRecipe(ctx) {
1129
1131
  name: "create-recipe",
1130
1132
  dts: "",
1131
1133
  js: import_outdent12.outdent`
1134
+ ${ctx.file.import("finalizeConditions, sortConditions", "../css/conditions")}
1132
1135
  ${ctx.file.import("css", "../css/css")}
1133
1136
  ${ctx.file.import("assertCompoundVariant, getCompoundVariantCss", "../css/cva")}
1134
1137
  ${ctx.file.import("cx", "../css/cx")}
@@ -1156,9 +1159,14 @@ function generateCreateRecipe(ctx) {
1156
1159
  }
1157
1160
 
1158
1161
  const recipeCss = createCss({
1159
- ${hash ? "hash: true," : ""}
1162
+ ${hash.className ? "hash: true," : ""}
1163
+ conditions: {
1164
+ shift: sortConditions,
1165
+ finalize: finalizeConditions,
1166
+ breakpoints: { keys: ${JSON.stringify(conditions.breakpoints.keys)} }
1167
+ },
1160
1168
  utility: {
1161
- ${prefix ? "prefix: " + JSON.stringify(prefix) + "," : ""}
1169
+ ${prefix.className ? "prefix: " + JSON.stringify(prefix.className) + "," : ""}
1162
1170
  transform,
1163
1171
  }
1164
1172
  })
package/dist/index.mjs CHANGED
@@ -1088,9 +1088,11 @@ var stringify2 = (value) => JSON.stringify(value, null, 2);
1088
1088
  var isBooleanValue = (value) => value === "true" || value === "false";
1089
1089
  function generateCreateRecipe(ctx) {
1090
1090
  const {
1091
+ conditions,
1091
1092
  recipes,
1092
- utility: { separator },
1093
- config: { prefix, hash }
1093
+ prefix,
1094
+ hash,
1095
+ utility: { separator }
1094
1096
  } = ctx;
1095
1097
  if (recipes.isEmpty())
1096
1098
  return;
@@ -1098,6 +1100,7 @@ function generateCreateRecipe(ctx) {
1098
1100
  name: "create-recipe",
1099
1101
  dts: "",
1100
1102
  js: outdent12`
1103
+ ${ctx.file.import("finalizeConditions, sortConditions", "../css/conditions")}
1101
1104
  ${ctx.file.import("css", "../css/css")}
1102
1105
  ${ctx.file.import("assertCompoundVariant, getCompoundVariantCss", "../css/cva")}
1103
1106
  ${ctx.file.import("cx", "../css/cx")}
@@ -1125,9 +1128,14 @@ function generateCreateRecipe(ctx) {
1125
1128
  }
1126
1129
 
1127
1130
  const recipeCss = createCss({
1128
- ${hash ? "hash: true," : ""}
1131
+ ${hash.className ? "hash: true," : ""}
1132
+ conditions: {
1133
+ shift: sortConditions,
1134
+ finalize: finalizeConditions,
1135
+ breakpoints: { keys: ${JSON.stringify(conditions.breakpoints.keys)} }
1136
+ },
1129
1137
  utility: {
1130
- ${prefix ? "prefix: " + JSON.stringify(prefix) + "," : ""}
1138
+ ${prefix.className ? "prefix: " + JSON.stringify(prefix.className) + "," : ""}
1131
1139
  transform,
1132
1140
  }
1133
1141
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20231130150310",
3
+ "version": "0.0.0-dev-20231201202542",
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-20231130150310",
36
- "@pandacss/is-valid-prop": "0.0.0-dev-20231130150310",
37
- "@pandacss/logger": "0.0.0-dev-20231130150310",
38
- "@pandacss/shared": "0.0.0-dev-20231130150310",
39
- "@pandacss/token-dictionary": "0.0.0-dev-20231130150310",
40
- "@pandacss/types": "0.0.0-dev-20231130150310"
35
+ "@pandacss/core": "0.0.0-dev-20231201202542",
36
+ "@pandacss/is-valid-prop": "0.0.0-dev-20231201202542",
37
+ "@pandacss/logger": "0.0.0-dev-20231201202542",
38
+ "@pandacss/shared": "0.0.0-dev-20231201202542",
39
+ "@pandacss/token-dictionary": "0.0.0-dev-20231201202542",
40
+ "@pandacss/types": "0.0.0-dev-20231201202542"
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-20231130150310"
45
+ "@pandacss/fixture": "0.0.0-dev-20231201202542"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsup src/index.ts --format=esm,cjs --dts",