@pandacss/shared 0.0.0-dev-20240201185610 → 0.0.0-dev-20240201214314
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 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -11
- package/dist/index.mjs +1 -10
- package/dist/shared.js +1 -9
- package/dist/shared.mjs +1 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -71,7 +71,6 @@ declare const isCssVar: (v: unknown) => boolean;
|
|
|
71
71
|
|
|
72
72
|
type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
|
|
73
73
|
declare function toResponsiveObject(values: string[], breakpoints: string[]): Record<string, string>;
|
|
74
|
-
declare function normalizeShorthand(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
|
|
75
74
|
declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext, shorthand?: boolean): MappedObject<Record<string, any>, any>;
|
|
76
75
|
|
|
77
76
|
declare const createRegex: (item: Array<string | RegExp>) => RegExp;
|
|
@@ -105,4 +104,4 @@ declare function traverse(obj: any, callback: CallbackFn, options?: {
|
|
|
105
104
|
|
|
106
105
|
declare function unionType(values: IterableIterator<string> | string[] | readonly string[] | Set<string>): string;
|
|
107
106
|
|
|
108
|
-
export { CreateCssContext, type CssVar, type CssVarOptions, type MapToRecord, MappedObject, PandaError, type PandaErrorCode, WalkObjectStopFn, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, deepSet, entries, esc, flatten, fromEntries, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getUnit, isCssFunction, isCssUnit, isCssVar, isObjectOrArray, mapEntries, mapToJson,
|
|
107
|
+
export { CreateCssContext, type CssVar, type CssVarOptions, type MapToRecord, MappedObject, PandaError, type PandaErrorCode, WalkObjectStopFn, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, deepSet, entries, esc, flatten, fromEntries, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getUnit, isCssFunction, isCssUnit, isCssVar, isObjectOrArray, mapEntries, mapToJson, normalizeStyleObject, parseJson, splitBy, splitDotPath, stringifyJson, toEm, toPx, toRem, toResponsiveObject, traverse, uncapitalize, unionType };
|
package/dist/index.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const isCssVar: (v: unknown) => boolean;
|
|
|
71
71
|
|
|
72
72
|
type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
|
|
73
73
|
declare function toResponsiveObject(values: string[], breakpoints: string[]): Record<string, string>;
|
|
74
|
-
declare function normalizeShorthand(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
|
|
75
74
|
declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext, shorthand?: boolean): MappedObject<Record<string, any>, any>;
|
|
76
75
|
|
|
77
76
|
declare const createRegex: (item: Array<string | RegExp>) => RegExp;
|
|
@@ -105,4 +104,4 @@ declare function traverse(obj: any, callback: CallbackFn, options?: {
|
|
|
105
104
|
|
|
106
105
|
declare function unionType(values: IterableIterator<string> | string[] | readonly string[] | Set<string>): string;
|
|
107
106
|
|
|
108
|
-
export { CreateCssContext, type CssVar, type CssVarOptions, type MapToRecord, MappedObject, PandaError, type PandaErrorCode, WalkObjectStopFn, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, deepSet, entries, esc, flatten, fromEntries, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getUnit, isCssFunction, isCssUnit, isCssVar, isObjectOrArray, mapEntries, mapToJson,
|
|
107
|
+
export { CreateCssContext, type CssVar, type CssVarOptions, type MapToRecord, MappedObject, PandaError, type PandaErrorCode, WalkObjectStopFn, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, deepSet, entries, esc, flatten, fromEntries, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getUnit, isCssFunction, isCssUnit, isCssVar, isObjectOrArray, mapEntries, mapToJson, normalizeStyleObject, parseJson, splitBy, splitDotPath, stringifyJson, toEm, toPx, toRem, toResponsiveObject, traverse, uncapitalize, unionType };
|
package/dist/index.js
CHANGED
|
@@ -62,7 +62,6 @@ __export(src_exports, {
|
|
|
62
62
|
markImportant: () => markImportant,
|
|
63
63
|
memo: () => memo,
|
|
64
64
|
mergeProps: () => mergeProps,
|
|
65
|
-
normalizeShorthand: () => normalizeShorthand,
|
|
66
65
|
normalizeStyleObject: () => normalizeStyleObject,
|
|
67
66
|
parseJson: () => parseJson,
|
|
68
67
|
patternFns: () => patternFns,
|
|
@@ -316,14 +315,6 @@ function toResponsiveObject(values, breakpoints) {
|
|
|
316
315
|
return acc;
|
|
317
316
|
}, {});
|
|
318
317
|
}
|
|
319
|
-
function normalizeShorthand(styles, context) {
|
|
320
|
-
const { hasShorthand, resolveShorthand } = context.utility;
|
|
321
|
-
return walkObject(styles, (v) => v, {
|
|
322
|
-
getKey: (prop) => {
|
|
323
|
-
return hasShorthand ? resolveShorthand(prop) : prop;
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
318
|
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
328
319
|
const { utility, conditions } = context;
|
|
329
320
|
const { hasShorthand, resolveShorthand } = utility;
|
|
@@ -386,7 +377,7 @@ function createMergeCss(context) {
|
|
|
386
377
|
const allStyles = compactStyles(...styles);
|
|
387
378
|
if (allStyles.length === 1)
|
|
388
379
|
return allStyles;
|
|
389
|
-
return allStyles.map((style) =>
|
|
380
|
+
return allStyles.map((style) => normalizeStyleObject(style, context));
|
|
390
381
|
}
|
|
391
382
|
function mergeCss(...styles) {
|
|
392
383
|
return mergeProps(...resolve(styles));
|
|
@@ -810,7 +801,6 @@ var uniq = (...items) => items.filter(Boolean).reduce((acc, item) => Array.from(
|
|
|
810
801
|
markImportant,
|
|
811
802
|
memo,
|
|
812
803
|
mergeProps,
|
|
813
|
-
normalizeShorthand,
|
|
814
804
|
normalizeStyleObject,
|
|
815
805
|
parseJson,
|
|
816
806
|
patternFns,
|
package/dist/index.mjs
CHANGED
|
@@ -229,14 +229,6 @@ function toResponsiveObject(values, breakpoints) {
|
|
|
229
229
|
return acc;
|
|
230
230
|
}, {});
|
|
231
231
|
}
|
|
232
|
-
function normalizeShorthand(styles, context) {
|
|
233
|
-
const { hasShorthand, resolveShorthand } = context.utility;
|
|
234
|
-
return walkObject(styles, (v) => v, {
|
|
235
|
-
getKey: (prop) => {
|
|
236
|
-
return hasShorthand ? resolveShorthand(prop) : prop;
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
232
|
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
241
233
|
const { utility, conditions } = context;
|
|
242
234
|
const { hasShorthand, resolveShorthand } = utility;
|
|
@@ -299,7 +291,7 @@ function createMergeCss(context) {
|
|
|
299
291
|
const allStyles = compactStyles(...styles);
|
|
300
292
|
if (allStyles.length === 1)
|
|
301
293
|
return allStyles;
|
|
302
|
-
return allStyles.map((style) =>
|
|
294
|
+
return allStyles.map((style) => normalizeStyleObject(style, context));
|
|
303
295
|
}
|
|
304
296
|
function mergeCss(...styles) {
|
|
305
297
|
return mergeProps(...resolve(styles));
|
|
@@ -722,7 +714,6 @@ export {
|
|
|
722
714
|
markImportant,
|
|
723
715
|
memo,
|
|
724
716
|
mergeProps,
|
|
725
|
-
normalizeShorthand,
|
|
726
717
|
normalizeStyleObject,
|
|
727
718
|
parseJson,
|
|
728
719
|
patternFns,
|
package/dist/shared.js
CHANGED
|
@@ -165,14 +165,6 @@ function toResponsiveObject(values, breakpoints) {
|
|
|
165
165
|
return acc;
|
|
166
166
|
}, {});
|
|
167
167
|
}
|
|
168
|
-
function normalizeShorthand(styles, context) {
|
|
169
|
-
const { hasShorthand, resolveShorthand } = context.utility;
|
|
170
|
-
return walkObject(styles, (v) => v, {
|
|
171
|
-
getKey: (prop) => {
|
|
172
|
-
return hasShorthand ? resolveShorthand(prop) : prop;
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
168
|
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
177
169
|
const { utility, conditions } = context;
|
|
178
170
|
const { hasShorthand, resolveShorthand } = utility;
|
|
@@ -235,7 +227,7 @@ function createMergeCss(context) {
|
|
|
235
227
|
const allStyles = compactStyles(...styles);
|
|
236
228
|
if (allStyles.length === 1)
|
|
237
229
|
return allStyles;
|
|
238
|
-
return allStyles.map((style) =>
|
|
230
|
+
return allStyles.map((style) => normalizeStyleObject(style, context));
|
|
239
231
|
}
|
|
240
232
|
function mergeCss(...styles) {
|
|
241
233
|
return mergeProps(...resolve(styles));
|
package/dist/shared.mjs
CHANGED
|
@@ -121,14 +121,6 @@ function toResponsiveObject(values, breakpoints) {
|
|
|
121
121
|
return acc;
|
|
122
122
|
}, {});
|
|
123
123
|
}
|
|
124
|
-
function normalizeShorthand(styles, context) {
|
|
125
|
-
const { hasShorthand, resolveShorthand } = context.utility;
|
|
126
|
-
return walkObject(styles, (v) => v, {
|
|
127
|
-
getKey: (prop) => {
|
|
128
|
-
return hasShorthand ? resolveShorthand(prop) : prop;
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
124
|
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
133
125
|
const { utility, conditions } = context;
|
|
134
126
|
const { hasShorthand, resolveShorthand } = utility;
|
|
@@ -191,7 +183,7 @@ function createMergeCss(context) {
|
|
|
191
183
|
const allStyles = compactStyles(...styles);
|
|
192
184
|
if (allStyles.length === 1)
|
|
193
185
|
return allStyles;
|
|
194
|
-
return allStyles.map((style) =>
|
|
186
|
+
return allStyles.map((style) => normalizeStyleObject(style, context));
|
|
195
187
|
}
|
|
196
188
|
function mergeCss(...styles) {
|
|
197
189
|
return mergeProps(...resolve(styles));
|