@pandacss/studio 0.0.0-dev-20230912231620 → 0.0.0-dev-20230914105302

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/studio",
3
- "version": "0.0.0-dev-20230912231620",
3
+ "version": "0.0.0-dev-20230914105302",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -33,19 +33,19 @@
33
33
  "react": "18.2.0",
34
34
  "react-dom": "18.2.0",
35
35
  "vite": "4.4.9",
36
- "@pandacss/types": "0.0.0-dev-20230912231620",
37
- "@pandacss/config": "0.0.0-dev-20230912231620",
38
- "@pandacss/shared": "0.0.0-dev-20230912231620",
39
- "@pandacss/token-dictionary": "0.0.0-dev-20230912231620",
40
- "@pandacss/logger": "0.0.0-dev-20230912231620",
41
- "@pandacss/node": "0.0.0-dev-20230912231620"
36
+ "@pandacss/types": "0.0.0-dev-20230914105302",
37
+ "@pandacss/config": "0.0.0-dev-20230914105302",
38
+ "@pandacss/shared": "0.0.0-dev-20230914105302",
39
+ "@pandacss/token-dictionary": "0.0.0-dev-20230914105302",
40
+ "@pandacss/logger": "0.0.0-dev-20230914105302",
41
+ "@pandacss/node": "0.0.0-dev-20230914105302"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/react": "18.2.18",
45
45
  "@types/react-dom": "18.2.7",
46
46
  "@vitejs/plugin-react": "4.0.4",
47
47
  "execa": "7.2.0",
48
- "@pandacss/dev": "0.0.0-dev-20230912231620"
48
+ "@pandacss/dev": "0.0.0-dev-20230914105302"
49
49
  },
50
50
  "scripts": {
51
51
  "codegen": "panda",
@@ -210,7 +210,7 @@ var hypenateProperty = memo((property) => {
210
210
  });
211
211
 
212
212
  // src/slot.ts
213
- var getSlotRecipes = (recipe) => {
213
+ var getSlotRecipes = (recipe = {}) => {
214
214
  const init = (slot) => ({
215
215
  className: [recipe.className, slot].filter(Boolean).join("__"),
216
216
  base: recipe.base?.[slot] ?? {},
@@ -218,7 +218,8 @@ var getSlotRecipes = (recipe) => {
218
218
  defaultVariants: recipe.defaultVariants ?? {},
219
219
  compoundVariants: recipe.compoundVariants ? getSlotCompoundVariant(recipe.compoundVariants, slot) : []
220
220
  });
221
- const recipeParts = recipe.slots.map((slot) => [slot, init(slot)]);
221
+ const slots = recipe.slots ?? [];
222
+ const recipeParts = slots.map((slot) => [slot, init(slot)]);
222
223
  for (const [variantsKey, variantsSpec] of Object.entries(recipe.variants ?? {})) {
223
224
  for (const [variantKey, variantSpec] of Object.entries(variantsSpec)) {
224
225
  recipeParts.forEach(([slot, slotRecipe]) => {