@pandacss/studio 0.0.0-dev-20231208154117 → 0.0.0-dev-20231209011552

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-20231208154117",
3
+ "version": "0.0.0-dev-20231209011552",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -42,12 +42,12 @@
42
42
  "react": "18.2.0",
43
43
  "react-dom": "18.2.0",
44
44
  "vite": "4.0.5",
45
- "@pandacss/config": "0.0.0-dev-20231208154117",
46
- "@pandacss/logger": "0.0.0-dev-20231208154117",
47
- "@pandacss/node": "0.0.0-dev-20231208154117",
48
- "@pandacss/shared": "0.0.0-dev-20231208154117",
49
- "@pandacss/token-dictionary": "0.0.0-dev-20231208154117",
50
- "@pandacss/types": "0.0.0-dev-20231208154117"
45
+ "@pandacss/config": "0.0.0-dev-20231209011552",
46
+ "@pandacss/logger": "0.0.0-dev-20231209011552",
47
+ "@pandacss/node": "0.0.0-dev-20231209011552",
48
+ "@pandacss/shared": "0.0.0-dev-20231209011552",
49
+ "@pandacss/token-dictionary": "0.0.0-dev-20231209011552",
50
+ "@pandacss/types": "0.0.0-dev-20231209011552"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "18.2.37",
@@ -112,7 +112,7 @@ function normalizeShorthand(styles, context) {
112
112
  }
113
113
  });
114
114
  }
115
- function normalizeStyleObject(styles, context) {
115
+ function normalizeStyleObject(styles, context, shorthand = true) {
116
116
  const { utility, conditions } = context;
117
117
  const { hasShorthand, resolveShorthand } = utility;
118
118
  return walkObject(
@@ -122,9 +122,7 @@ function normalizeStyleObject(styles, context) {
122
122
  },
123
123
  {
124
124
  stop: (value) => Array.isArray(value),
125
- getKey: (prop) => {
126
- return hasShorthand ? resolveShorthand(prop) : prop;
127
- }
125
+ getKey: shorthand ? (prop) => hasShorthand ? resolveShorthand(prop) : prop : void 0
128
126
  }
129
127
  );
130
128
  }