@pandacss/studio 0.0.0-dev-20240202230406 → 0.0.0-dev-20240204002654

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-20240202230406",
3
+ "version": "0.0.0-dev-20240204002654",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -48,12 +48,12 @@
48
48
  "react": "18.2.0",
49
49
  "react-dom": "18.2.0",
50
50
  "vite": "5.0.12",
51
- "@pandacss/config": "0.0.0-dev-20240202230406",
52
- "@pandacss/logger": "0.0.0-dev-20240202230406",
53
- "@pandacss/shared": "0.0.0-dev-20240202230406",
54
- "@pandacss/token-dictionary": "0.0.0-dev-20240202230406",
55
- "@pandacss/types": "0.0.0-dev-20240202230406",
56
- "@pandacss/astro-plugin-studio": "0.0.0-dev-20240202230406"
51
+ "@pandacss/config": "0.0.0-dev-20240204002654",
52
+ "@pandacss/logger": "0.0.0-dev-20240204002654",
53
+ "@pandacss/shared": "0.0.0-dev-20240204002654",
54
+ "@pandacss/token-dictionary": "0.0.0-dev-20240204002654",
55
+ "@pandacss/types": "0.0.0-dev-20240204002654",
56
+ "@pandacss/astro-plugin-studio": "0.0.0-dev-20240204002654"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/react": "18.2.42",
@@ -121,14 +121,6 @@ function toResponsiveObject(values, breakpoints) {
121
121
  return acc;
122
122
  }, {});
123
123
  }
124
- function normalizeShorthand(styles, context) {
125
- const { hasShorthand, resolveShorthand } = context.utility;
126
- return walkObject(styles, (v) => v, {
127
- getKey: (prop) => {
128
- return hasShorthand ? resolveShorthand(prop) : prop;
129
- }
130
- });
131
- }
132
124
  function normalizeStyleObject(styles, context, shorthand = true) {
133
125
  const { utility, conditions } = context;
134
126
  const { hasShorthand, resolveShorthand } = utility;
@@ -191,7 +183,7 @@ function createMergeCss(context) {
191
183
  const allStyles = compactStyles(...styles);
192
184
  if (allStyles.length === 1)
193
185
  return allStyles;
194
- return allStyles.map((style) => normalizeShorthand(style, context));
186
+ return allStyles.map((style) => normalizeStyleObject(style, context));
195
187
  }
196
188
  function mergeCss(...styles) {
197
189
  return mergeProps(...resolve(styles));