@pandacss/shared 0.0.0-dev-20230712211057 → 0.0.0-dev-20230713084209
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 +7 -10
- package/dist/index.mjs +7 -10
- package/dist/shared.js +7 -10
- package/dist/shared.mjs +7 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -228,16 +228,13 @@ function mapObject(obj, fn) {
|
|
|
228
228
|
|
|
229
229
|
// src/normalize-style-object.ts
|
|
230
230
|
function toResponsiveObject(values, breakpoints) {
|
|
231
|
-
return values.reduce(
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
{}
|
|
240
|
-
);
|
|
231
|
+
return values.reduce((acc, current, index) => {
|
|
232
|
+
const key = breakpoints[index];
|
|
233
|
+
if (current != null) {
|
|
234
|
+
acc[key] = current;
|
|
235
|
+
}
|
|
236
|
+
return acc;
|
|
237
|
+
}, {});
|
|
241
238
|
}
|
|
242
239
|
function normalizeShorthand(styles, context) {
|
|
243
240
|
const { hasShorthand, resolveShorthand } = context.utility;
|
package/dist/index.mjs
CHANGED
|
@@ -164,16 +164,13 @@ function mapObject(obj, fn) {
|
|
|
164
164
|
|
|
165
165
|
// src/normalize-style-object.ts
|
|
166
166
|
function toResponsiveObject(values, breakpoints) {
|
|
167
|
-
return values.reduce(
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
{}
|
|
176
|
-
);
|
|
167
|
+
return values.reduce((acc, current, index) => {
|
|
168
|
+
const key = breakpoints[index];
|
|
169
|
+
if (current != null) {
|
|
170
|
+
acc[key] = current;
|
|
171
|
+
}
|
|
172
|
+
return acc;
|
|
173
|
+
}, {});
|
|
177
174
|
}
|
|
178
175
|
function normalizeShorthand(styles, context) {
|
|
179
176
|
const { hasShorthand, resolveShorthand } = context.utility;
|
package/dist/shared.js
CHANGED
|
@@ -150,16 +150,13 @@ function mapObject(obj, fn) {
|
|
|
150
150
|
|
|
151
151
|
// src/normalize-style-object.ts
|
|
152
152
|
function toResponsiveObject(values, breakpoints) {
|
|
153
|
-
return values.reduce(
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
{}
|
|
162
|
-
);
|
|
153
|
+
return values.reduce((acc, current, index) => {
|
|
154
|
+
const key = breakpoints[index];
|
|
155
|
+
if (current != null) {
|
|
156
|
+
acc[key] = current;
|
|
157
|
+
}
|
|
158
|
+
return acc;
|
|
159
|
+
}, {});
|
|
163
160
|
}
|
|
164
161
|
function normalizeShorthand(styles, context) {
|
|
165
162
|
const { hasShorthand, resolveShorthand } = context.utility;
|
package/dist/shared.mjs
CHANGED
|
@@ -110,16 +110,13 @@ function mapObject(obj, fn) {
|
|
|
110
110
|
|
|
111
111
|
// src/normalize-style-object.ts
|
|
112
112
|
function toResponsiveObject(values, breakpoints) {
|
|
113
|
-
return values.reduce(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
{}
|
|
122
|
-
);
|
|
113
|
+
return values.reduce((acc, current, index) => {
|
|
114
|
+
const key = breakpoints[index];
|
|
115
|
+
if (current != null) {
|
|
116
|
+
acc[key] = current;
|
|
117
|
+
}
|
|
118
|
+
return acc;
|
|
119
|
+
}, {});
|
|
123
120
|
}
|
|
124
121
|
function normalizeShorthand(styles, context) {
|
|
125
122
|
const { hasShorthand, resolveShorthand } = context.utility;
|