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