@pandacss/shared 0.32.0 → 0.33.0
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 +10 -7
- package/dist/index.mjs +10 -7
- package/dist/shared.js +10 -7
- package/dist/shared.mjs +10 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -308,13 +308,16 @@ function mapObject(obj, fn) {
|
|
|
308
308
|
|
|
309
309
|
// src/normalize-style-object.ts
|
|
310
310
|
function toResponsiveObject(values, breakpoints) {
|
|
311
|
-
return values.reduce(
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
311
|
+
return values.reduce(
|
|
312
|
+
(acc, current, index) => {
|
|
313
|
+
const key = breakpoints[index];
|
|
314
|
+
if (current != null) {
|
|
315
|
+
acc[key] = current;
|
|
316
|
+
}
|
|
317
|
+
return acc;
|
|
318
|
+
},
|
|
319
|
+
{}
|
|
320
|
+
);
|
|
318
321
|
}
|
|
319
322
|
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
320
323
|
const { utility, conditions } = context;
|
package/dist/index.mjs
CHANGED
|
@@ -221,13 +221,16 @@ function mapObject(obj, fn) {
|
|
|
221
221
|
|
|
222
222
|
// src/normalize-style-object.ts
|
|
223
223
|
function toResponsiveObject(values, breakpoints) {
|
|
224
|
-
return values.reduce(
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
224
|
+
return values.reduce(
|
|
225
|
+
(acc, current, index) => {
|
|
226
|
+
const key = breakpoints[index];
|
|
227
|
+
if (current != null) {
|
|
228
|
+
acc[key] = current;
|
|
229
|
+
}
|
|
230
|
+
return acc;
|
|
231
|
+
},
|
|
232
|
+
{}
|
|
233
|
+
);
|
|
231
234
|
}
|
|
232
235
|
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
233
236
|
const { utility, conditions } = context;
|
package/dist/shared.js
CHANGED
|
@@ -157,13 +157,16 @@ function mapObject(obj, fn) {
|
|
|
157
157
|
|
|
158
158
|
// src/normalize-style-object.ts
|
|
159
159
|
function toResponsiveObject(values, breakpoints) {
|
|
160
|
-
return values.reduce(
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
return values.reduce(
|
|
161
|
+
(acc, current, index) => {
|
|
162
|
+
const key = breakpoints[index];
|
|
163
|
+
if (current != null) {
|
|
164
|
+
acc[key] = current;
|
|
165
|
+
}
|
|
166
|
+
return acc;
|
|
167
|
+
},
|
|
168
|
+
{}
|
|
169
|
+
);
|
|
167
170
|
}
|
|
168
171
|
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
169
172
|
const { utility, conditions } = context;
|
package/dist/shared.mjs
CHANGED
|
@@ -113,13 +113,16 @@ function mapObject(obj, fn) {
|
|
|
113
113
|
|
|
114
114
|
// src/normalize-style-object.ts
|
|
115
115
|
function toResponsiveObject(values, breakpoints) {
|
|
116
|
-
return values.reduce(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
return values.reduce(
|
|
117
|
+
(acc, current, index) => {
|
|
118
|
+
const key = breakpoints[index];
|
|
119
|
+
if (current != null) {
|
|
120
|
+
acc[key] = current;
|
|
121
|
+
}
|
|
122
|
+
return acc;
|
|
123
|
+
},
|
|
124
|
+
{}
|
|
125
|
+
);
|
|
123
126
|
}
|
|
124
127
|
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
125
128
|
const { utility, conditions } = context;
|