@pandacss/shared 0.38.0 → 0.39.1

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
@@ -470,7 +470,7 @@ function createCss(context) {
470
470
  });
471
471
  }
472
472
  function compactStyles(...styles) {
473
- return styles.filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
473
+ return styles.flat().filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
474
474
  }
475
475
  function createMergeCss(context) {
476
476
  function resolve(styles) {
package/dist/index.mjs CHANGED
@@ -379,7 +379,7 @@ function createCss(context) {
379
379
  });
380
380
  }
381
381
  function compactStyles(...styles) {
382
- return styles.filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
382
+ return styles.flat().filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
383
383
  }
384
384
  function createMergeCss(context) {
385
385
  function resolve(styles) {
package/dist/shared.js CHANGED
@@ -224,7 +224,7 @@ function createCss(context) {
224
224
  });
225
225
  }
226
226
  function compactStyles(...styles) {
227
- return styles.filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
227
+ return styles.flat().filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
228
228
  }
229
229
  function createMergeCss(context) {
230
230
  function resolve(styles) {
package/dist/shared.mjs CHANGED
@@ -180,7 +180,7 @@ function createCss(context) {
180
180
  });
181
181
  }
182
182
  function compactStyles(...styles) {
183
- return styles.filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
183
+ return styles.flat().filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
184
184
  }
185
185
  function createMergeCss(context) {
186
186
  function resolve(styles) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.38.0",
3
+ "version": "0.39.1",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",