@pandacss/shared 0.0.0-dev-20230104123837 → 0.0.0-dev-20230104133247
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.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './walk-styles-
|
|
2
|
-
export { C as CreateCssContext, M as MappedObject,
|
|
1
|
+
import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './walk-styles-87886790.js';
|
|
2
|
+
export { C as CreateCssContext, M as MappedObject, e as WalkObjectOptions, W as WalkObjectStopFn, a as compact, c as createCss, f as filterBaseConditions, i as isBaseCondition, b as isImportant, m as mapObject, t as toHash, g as walkObject, h as walkStyles, w as withoutImportant, d as withoutSpace } from './walk-styles-87886790.js';
|
|
3
3
|
|
|
4
4
|
declare const isString: (v: any) => v is string;
|
|
5
5
|
type AnyFunction = (...args: any[]) => any;
|
|
@@ -17,8 +17,6 @@ declare const capitalize: (s: string) => string;
|
|
|
17
17
|
declare const dashCase: (s: string) => string;
|
|
18
18
|
declare const uncapitalize: (s: string) => string;
|
|
19
19
|
|
|
20
|
-
declare function compact<T extends Record<string, any>>(value: T): T;
|
|
21
|
-
|
|
22
20
|
declare function getUnit(value?: string): string | undefined;
|
|
23
21
|
declare function toPx(value?: string | number): string | undefined;
|
|
24
22
|
declare function toEm(value?: string, fontSize?: number): string | undefined;
|
|
@@ -55,4 +53,4 @@ declare function mapToJson<T extends Map<string, any>>(map: T): MapToRecord<T>;
|
|
|
55
53
|
|
|
56
54
|
declare function unionType(values: IterableIterator<string> | string[]): string;
|
|
57
55
|
|
|
58
|
-
export { CssVar, CssVarOptions, calc, capitalize,
|
|
56
|
+
export { CssVar, CssVarOptions, calc, capitalize, cssVar, dashCase, esc, flatten, getDotPath, getNegativePath, getUnit, isFunction, isObject, isString, mapToJson, memo, normalizeStyleObject, splitBy, splitDotPath, toEm, toPx, toRem, uncapitalize, unionType };
|
package/dist/shared.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as CreateCssContext, M as MappedObject,
|
|
1
|
+
export { C as CreateCssContext, M as MappedObject, e as WalkObjectOptions, W as WalkObjectStopFn, a as compact, c as createCss, f as filterBaseConditions, i as isBaseCondition, m as mapObject, t as toHash, g as walkObject, h as walkStyles, d as withoutSpace } from './walk-styles-87886790.js';
|
package/dist/shared.js
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/shared.ts
|
|
21
21
|
var shared_exports = {};
|
|
22
22
|
__export(shared_exports, {
|
|
23
|
+
compact: () => compact,
|
|
23
24
|
createCss: () => createCss,
|
|
24
25
|
filterBaseConditions: () => filterBaseConditions,
|
|
25
26
|
isBaseCondition: () => isBaseCondition,
|
|
@@ -186,8 +187,14 @@ function createCss(context) {
|
|
|
186
187
|
return Array.from(classNames).join(" ");
|
|
187
188
|
};
|
|
188
189
|
}
|
|
190
|
+
|
|
191
|
+
// src/compact.ts
|
|
192
|
+
function compact(value) {
|
|
193
|
+
return Object.fromEntries(Object.entries(value).filter(([_, value2]) => value2 !== void 0));
|
|
194
|
+
}
|
|
189
195
|
// Annotate the CommonJS export names for ESM import in node:
|
|
190
196
|
0 && (module.exports = {
|
|
197
|
+
compact,
|
|
191
198
|
createCss,
|
|
192
199
|
filterBaseConditions,
|
|
193
200
|
isBaseCondition,
|
package/dist/shared.mjs
CHANGED
|
@@ -153,7 +153,13 @@ function createCss(context) {
|
|
|
153
153
|
return Array.from(classNames).join(" ");
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
+
|
|
157
|
+
// src/compact.ts
|
|
158
|
+
function compact(value) {
|
|
159
|
+
return Object.fromEntries(Object.entries(value).filter(([_, value2]) => value2 !== void 0));
|
|
160
|
+
}
|
|
156
161
|
export {
|
|
162
|
+
compact,
|
|
157
163
|
createCss,
|
|
158
164
|
filterBaseConditions,
|
|
159
165
|
isBaseCondition,
|
|
@@ -23,6 +23,8 @@ type CreateCssContext = {
|
|
|
23
23
|
};
|
|
24
24
|
declare function createCss(context: CreateCssContext): (styleObject?: Record<string, any>) => string;
|
|
25
25
|
|
|
26
|
+
declare function compact<T extends Record<string, any>>(value: T): T;
|
|
27
|
+
|
|
26
28
|
declare const isBaseCondition: (c: string) => boolean;
|
|
27
29
|
declare function filterBaseConditions(c: string[]): string[];
|
|
28
30
|
|
|
@@ -47,4 +49,4 @@ declare function toHash(value: string): string;
|
|
|
47
49
|
type Dict = Record<string, any>;
|
|
48
50
|
declare function walkStyles(mixedStyles: Dict, fn: (style: Dict, scope?: string[]) => void, scopes?: string[]): void;
|
|
49
51
|
|
|
50
|
-
export { CreateCssContext as C, MappedObject as M, WalkObjectStopFn as W,
|
|
52
|
+
export { CreateCssContext as C, MappedObject as M, WalkObjectStopFn as W, compact as a, isImportant as b, createCss as c, withoutSpace as d, WalkObjectOptions as e, filterBaseConditions as f, walkObject as g, walkStyles as h, isBaseCondition as i, mapObject as m, toHash as t, withoutImportant as w };
|