@pandacss/shared 0.0.0-dev-20231208154117 → 0.0.0-dev-20231209011552
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/dist/shared.js +2 -4
- package/dist/shared.mjs +2 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -39,7 +39,7 @@ declare function flatten(values: Record<string, Record<string, any>>, stop?: Wal
|
|
|
39
39
|
|
|
40
40
|
type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
|
|
41
41
|
declare function normalizeShorthand(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
|
|
42
|
-
declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
|
|
42
|
+
declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext, shorthand?: boolean): MappedObject<Record<string, any>, any>;
|
|
43
43
|
|
|
44
44
|
declare const createRegex: (item: Array<string | RegExp>) => RegExp;
|
|
45
45
|
|
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ declare function flatten(values: Record<string, Record<string, any>>, stop?: Wal
|
|
|
39
39
|
|
|
40
40
|
type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
|
|
41
41
|
declare function normalizeShorthand(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
|
|
42
|
-
declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
|
|
42
|
+
declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext, shorthand?: boolean): MappedObject<Record<string, any>, any>;
|
|
43
43
|
|
|
44
44
|
declare const createRegex: (item: Array<string | RegExp>) => RegExp;
|
|
45
45
|
|
package/dist/index.js
CHANGED
|
@@ -268,7 +268,7 @@ function normalizeShorthand(styles, context) {
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
function normalizeStyleObject(styles, context) {
|
|
271
|
+
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
272
272
|
const { utility, conditions } = context;
|
|
273
273
|
const { hasShorthand, resolveShorthand } = utility;
|
|
274
274
|
return walkObject(
|
|
@@ -278,9 +278,7 @@ function normalizeStyleObject(styles, context) {
|
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
stop: (value) => Array.isArray(value),
|
|
281
|
-
getKey: (prop) =>
|
|
282
|
-
return hasShorthand ? resolveShorthand(prop) : prop;
|
|
283
|
-
}
|
|
281
|
+
getKey: shorthand ? (prop) => hasShorthand ? resolveShorthand(prop) : prop : void 0
|
|
284
282
|
}
|
|
285
283
|
);
|
|
286
284
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -197,7 +197,7 @@ function normalizeShorthand(styles, context) {
|
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
function normalizeStyleObject(styles, context) {
|
|
200
|
+
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
201
201
|
const { utility, conditions } = context;
|
|
202
202
|
const { hasShorthand, resolveShorthand } = utility;
|
|
203
203
|
return walkObject(
|
|
@@ -207,9 +207,7 @@ function normalizeStyleObject(styles, context) {
|
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
stop: (value) => Array.isArray(value),
|
|
210
|
-
getKey: (prop) =>
|
|
211
|
-
return hasShorthand ? resolveShorthand(prop) : prop;
|
|
212
|
-
}
|
|
210
|
+
getKey: shorthand ? (prop) => hasShorthand ? resolveShorthand(prop) : prop : void 0
|
|
213
211
|
}
|
|
214
212
|
);
|
|
215
213
|
}
|
package/dist/shared.js
CHANGED
|
@@ -154,7 +154,7 @@ function normalizeShorthand(styles, context) {
|
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
function normalizeStyleObject(styles, context) {
|
|
157
|
+
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
158
158
|
const { utility, conditions } = context;
|
|
159
159
|
const { hasShorthand, resolveShorthand } = utility;
|
|
160
160
|
return walkObject(
|
|
@@ -164,9 +164,7 @@ function normalizeStyleObject(styles, context) {
|
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
stop: (value) => Array.isArray(value),
|
|
167
|
-
getKey: (prop) =>
|
|
168
|
-
return hasShorthand ? resolveShorthand(prop) : prop;
|
|
169
|
-
}
|
|
167
|
+
getKey: shorthand ? (prop) => hasShorthand ? resolveShorthand(prop) : prop : void 0
|
|
170
168
|
}
|
|
171
169
|
);
|
|
172
170
|
}
|
package/dist/shared.mjs
CHANGED
|
@@ -112,7 +112,7 @@ function normalizeShorthand(styles, context) {
|
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function normalizeStyleObject(styles, context) {
|
|
115
|
+
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
116
116
|
const { utility, conditions } = context;
|
|
117
117
|
const { hasShorthand, resolveShorthand } = utility;
|
|
118
118
|
return walkObject(
|
|
@@ -122,9 +122,7 @@ function normalizeStyleObject(styles, context) {
|
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
stop: (value) => Array.isArray(value),
|
|
125
|
-
getKey: (prop) =>
|
|
126
|
-
return hasShorthand ? resolveShorthand(prop) : prop;
|
|
127
|
-
}
|
|
125
|
+
getKey: shorthand ? (prop) => hasShorthand ? resolveShorthand(prop) : prop : void 0
|
|
128
126
|
}
|
|
129
127
|
);
|
|
130
128
|
}
|