@pandacss/shared 0.21.0 → 0.22.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
@@ -171,7 +171,7 @@ function filterBaseConditions(c) {
171
171
  }
172
172
 
173
173
  // src/css-important.ts
174
- var importantRegex = /!(important)?$/;
174
+ var importantRegex = /!(important)?/;
175
175
  function isImportant(value) {
176
176
  return typeof value === "string" ? importantRegex.test(value) : false;
177
177
  }
@@ -245,6 +245,8 @@ function walkObject(target, predicate, options = {}) {
245
245
  return inner(target);
246
246
  }
247
247
  function mapObject(obj, fn) {
248
+ if (Array.isArray(obj))
249
+ return obj.map((value) => fn(value));
248
250
  if (!isObject(obj))
249
251
  return fn(obj);
250
252
  return walkObject(obj, (value) => fn(value));
package/dist/index.mjs CHANGED
@@ -100,7 +100,7 @@ function filterBaseConditions(c) {
100
100
  }
101
101
 
102
102
  // src/css-important.ts
103
- var importantRegex = /!(important)?$/;
103
+ var importantRegex = /!(important)?/;
104
104
  function isImportant(value) {
105
105
  return typeof value === "string" ? importantRegex.test(value) : false;
106
106
  }
@@ -174,6 +174,8 @@ function walkObject(target, predicate, options = {}) {
174
174
  return inner(target);
175
175
  }
176
176
  function mapObject(obj, fn) {
177
+ if (Array.isArray(obj))
178
+ return obj.map((value) => fn(value));
177
179
  if (!isObject(obj))
178
180
  return fn(obj);
179
181
  return walkObject(obj, (value) => fn(value));
package/dist/shared.js CHANGED
@@ -57,7 +57,7 @@ function filterBaseConditions(c) {
57
57
  }
58
58
 
59
59
  // src/css-important.ts
60
- var importantRegex = /!(important)?$/;
60
+ var importantRegex = /!(important)?/;
61
61
  function isImportant(value) {
62
62
  return typeof value === "string" ? importantRegex.test(value) : false;
63
63
  }
@@ -131,6 +131,8 @@ function walkObject(target, predicate, options = {}) {
131
131
  return inner(target);
132
132
  }
133
133
  function mapObject(obj, fn) {
134
+ if (Array.isArray(obj))
135
+ return obj.map((value) => fn(value));
134
136
  if (!isObject(obj))
135
137
  return fn(obj);
136
138
  return walkObject(obj, (value) => fn(value));
package/dist/shared.mjs CHANGED
@@ -15,7 +15,7 @@ function filterBaseConditions(c) {
15
15
  }
16
16
 
17
17
  // src/css-important.ts
18
- var importantRegex = /!(important)?$/;
18
+ var importantRegex = /!(important)?/;
19
19
  function isImportant(value) {
20
20
  return typeof value === "string" ? importantRegex.test(value) : false;
21
21
  }
@@ -89,6 +89,8 @@ function walkObject(target, predicate, options = {}) {
89
89
  return inner(target);
90
90
  }
91
91
  function mapObject(obj, fn) {
92
+ if (Array.isArray(obj))
93
+ return obj.map((value) => fn(value));
92
94
  if (!isObject(obj))
93
95
  return fn(obj);
94
96
  return walkObject(obj, (value) => fn(value));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.21.0",
3
+ "version": "0.22.1",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",