@pandacss/generator 0.0.0-dev-20231001184933 → 0.0.0-dev-20231005171028

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
@@ -1115,7 +1115,7 @@ function generateRecipes(ctx) {
1115
1115
  const ${baseName}CompoundVariants = ${stringify2(compoundVariants ?? [])}
1116
1116
 
1117
1117
  const ${baseName}SlotNames = ${stringify2(config2.slots.map((slot) => [slot, `${config2.className}__${slot}`]))}
1118
- const ${baseName}SlotFns = ${baseName}SlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, ${baseName}DefaultVariants, getSlotCompoundVariant(${baseName}CompoundVariants, slotName))])
1118
+ const ${baseName}SlotFns = /* @__PURE__ */ ${baseName}SlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, ${baseName}DefaultVariants, getSlotCompoundVariant(${baseName}CompoundVariants, slotName))])
1119
1119
 
1120
1120
  const ${baseName}Fn = (props = {}) => {
1121
1121
  return Object.fromEntries(${baseName}SlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
@@ -1123,7 +1123,7 @@ function generateRecipes(ctx) {
1123
1123
 
1124
1124
  const ${baseName}VariantKeys = ${stringify2(Object.keys(variantKeyMap))}
1125
1125
 
1126
- export const ${baseName} = Object.assign(${baseName}Fn, {
1126
+ export const ${baseName} = /* @__PURE__ */ Object.assign(${baseName}Fn, {
1127
1127
  __recipe__: false,
1128
1128
  __name__: '${baseName}',
1129
1129
  raw: (props) => props,
@@ -1139,13 +1139,15 @@ function generateRecipes(ctx) {
1139
1139
  ${ctx.file.import("splitProps", "../helpers")}
1140
1140
  ${ctx.file.import("createRecipe", "./create-recipe")}
1141
1141
 
1142
- const ${baseName}Fn = createRecipe('${config2.className}', ${stringify2(defaultVariants ?? {})}, ${stringify2(
1143
- compoundVariants ?? []
1144
- )})
1142
+ const ${baseName}Fn = /* @__PURE__ */ createRecipe('${config2.className}', ${stringify2(
1143
+ defaultVariants ?? {}
1144
+ )}, ${stringify2(compoundVariants ?? [])})
1145
1145
 
1146
1146
  const ${baseName}VariantMap = ${stringify2(variantKeyMap)}
1147
+
1147
1148
  const ${baseName}VariantKeys = Object.keys(${baseName}VariantMap)
1148
- export const ${baseName} = Object.assign(${baseName}Fn, {
1149
+
1150
+ export const ${baseName} = /* @__PURE__ */ Object.assign(${baseName}Fn, {
1149
1151
  __recipe__: true,
1150
1152
  __name__: '${baseName}',
1151
1153
  raw: (props) => props,
package/dist/index.mjs CHANGED
@@ -1084,7 +1084,7 @@ function generateRecipes(ctx) {
1084
1084
  const ${baseName}CompoundVariants = ${stringify2(compoundVariants ?? [])}
1085
1085
 
1086
1086
  const ${baseName}SlotNames = ${stringify2(config2.slots.map((slot) => [slot, `${config2.className}__${slot}`]))}
1087
- const ${baseName}SlotFns = ${baseName}SlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, ${baseName}DefaultVariants, getSlotCompoundVariant(${baseName}CompoundVariants, slotName))])
1087
+ const ${baseName}SlotFns = /* @__PURE__ */ ${baseName}SlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, ${baseName}DefaultVariants, getSlotCompoundVariant(${baseName}CompoundVariants, slotName))])
1088
1088
 
1089
1089
  const ${baseName}Fn = (props = {}) => {
1090
1090
  return Object.fromEntries(${baseName}SlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
@@ -1092,7 +1092,7 @@ function generateRecipes(ctx) {
1092
1092
 
1093
1093
  const ${baseName}VariantKeys = ${stringify2(Object.keys(variantKeyMap))}
1094
1094
 
1095
- export const ${baseName} = Object.assign(${baseName}Fn, {
1095
+ export const ${baseName} = /* @__PURE__ */ Object.assign(${baseName}Fn, {
1096
1096
  __recipe__: false,
1097
1097
  __name__: '${baseName}',
1098
1098
  raw: (props) => props,
@@ -1108,13 +1108,15 @@ function generateRecipes(ctx) {
1108
1108
  ${ctx.file.import("splitProps", "../helpers")}
1109
1109
  ${ctx.file.import("createRecipe", "./create-recipe")}
1110
1110
 
1111
- const ${baseName}Fn = createRecipe('${config2.className}', ${stringify2(defaultVariants ?? {})}, ${stringify2(
1112
- compoundVariants ?? []
1113
- )})
1111
+ const ${baseName}Fn = /* @__PURE__ */ createRecipe('${config2.className}', ${stringify2(
1112
+ defaultVariants ?? {}
1113
+ )}, ${stringify2(compoundVariants ?? [])})
1114
1114
 
1115
1115
  const ${baseName}VariantMap = ${stringify2(variantKeyMap)}
1116
+
1116
1117
  const ${baseName}VariantKeys = Object.keys(${baseName}VariantMap)
1117
- export const ${baseName} = Object.assign(${baseName}Fn, {
1118
+
1119
+ export const ${baseName} = /* @__PURE__ */ Object.assign(${baseName}Fn, {
1118
1120
  __recipe__: true,
1119
1121
  __name__: '${baseName}',
1120
1122
  raw: (props) => props,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20231001184933",
3
+ "version": "0.0.0-dev-20231005171028",
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.5",
23
- "@pandacss/core": "0.0.0-dev-20231001184933",
24
- "@pandacss/is-valid-prop": "0.0.0-dev-20231001184933",
25
- "@pandacss/logger": "0.0.0-dev-20231001184933",
26
- "@pandacss/shared": "0.0.0-dev-20231001184933",
27
- "@pandacss/token-dictionary": "0.0.0-dev-20231001184933",
28
- "@pandacss/types": "0.0.0-dev-20231001184933"
23
+ "@pandacss/core": "0.0.0-dev-20231005171028",
24
+ "@pandacss/is-valid-prop": "0.0.0-dev-20231005171028",
25
+ "@pandacss/logger": "0.0.0-dev-20231005171028",
26
+ "@pandacss/shared": "0.0.0-dev-20231005171028",
27
+ "@pandacss/token-dictionary": "0.0.0-dev-20231005171028",
28
+ "@pandacss/types": "0.0.0-dev-20231005171028"
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-20231001184933"
33
+ "@pandacss/fixture": "0.0.0-dev-20231005171028"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",