@pandacss/studio 0.0.0-dev-20240202230406 → 0.0.0-dev-20240205110447
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-
|
|
3
|
+
"version": "0.0.0-dev-20240205110447",
|
|
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-
|
|
52
|
-
"@pandacss/
|
|
53
|
-
"@pandacss/
|
|
54
|
-
"@pandacss/
|
|
55
|
-
"@pandacss/types": "0.0.0-dev-
|
|
56
|
-
"@pandacss/astro-plugin-studio": "0.0.0-dev-
|
|
51
|
+
"@pandacss/config": "0.0.0-dev-20240205110447",
|
|
52
|
+
"@pandacss/shared": "0.0.0-dev-20240205110447",
|
|
53
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20240205110447",
|
|
54
|
+
"@pandacss/logger": "0.0.0-dev-20240205110447",
|
|
55
|
+
"@pandacss/types": "0.0.0-dev-20240205110447",
|
|
56
|
+
"@pandacss/astro-plugin-studio": "0.0.0-dev-20240205110447"
|
|
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) =>
|
|
186
|
+
return allStyles.map((style) => normalizeStyleObject(style, context));
|
|
195
187
|
}
|
|
196
188
|
function mergeCss(...styles) {
|
|
197
189
|
return mergeProps(...resolve(styles));
|