@pandacss/shared 0.0.0-dev-20230625194802 → 0.0.0-dev-20230626085107
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 +53 -0
- package/dist/shared.d.mts +10 -0
- package/package.json +1 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './split-props-3d8b55c4.js';
|
|
2
|
+
export { n as WalkObjectOptions, c as astish, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, l as hypenateProperty, g as isBaseCondition, a as isFunction, j as isImportant, b as isObject, i as isString, p as mapObject, m as mergeProps, s as splitProps, t as toHash, o as walkObject, w as withoutImportant, k as withoutSpace } from './split-props-3d8b55c4.js';
|
|
3
|
+
|
|
4
|
+
type Operand = string | number | {
|
|
5
|
+
ref: string;
|
|
6
|
+
};
|
|
7
|
+
declare const calc: {
|
|
8
|
+
negate(x: Operand): string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare const capitalize: (s: string) => string;
|
|
12
|
+
declare const dashCase: (s: string) => string;
|
|
13
|
+
declare const uncapitalize: (s: string) => string;
|
|
14
|
+
|
|
15
|
+
declare function getUnit(value?: string): string | undefined;
|
|
16
|
+
declare function toPx(value?: string | number): string | undefined;
|
|
17
|
+
declare function toEm(value?: string, fontSize?: number): string | undefined;
|
|
18
|
+
declare function toRem(value?: string): string | undefined;
|
|
19
|
+
|
|
20
|
+
type CssVar = {
|
|
21
|
+
var: `--${string}`;
|
|
22
|
+
ref: string;
|
|
23
|
+
};
|
|
24
|
+
type CssVarOptions = {
|
|
25
|
+
fallback?: string;
|
|
26
|
+
prefix?: string;
|
|
27
|
+
hash?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare function cssVar(name: string, options?: CssVarOptions): CssVar;
|
|
30
|
+
|
|
31
|
+
declare const esc: (sel: string) => string;
|
|
32
|
+
|
|
33
|
+
declare function flatten(values: Record<string, Record<string, any>>, stop?: WalkObjectStopFn): Record<string, any>;
|
|
34
|
+
|
|
35
|
+
declare const memo: <T extends (...args: any[]) => any>(fn: T) => T;
|
|
36
|
+
|
|
37
|
+
type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
|
|
38
|
+
declare function normalizeShorthand(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
|
|
39
|
+
declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
|
|
40
|
+
|
|
41
|
+
declare function splitBy(value: string, separator?: string): any[];
|
|
42
|
+
declare function splitDotPath(path: string): string[];
|
|
43
|
+
declare function getNegativePath(path: string[]): string[];
|
|
44
|
+
declare function getDotPath(obj: any, path: string, fallback?: any): any;
|
|
45
|
+
|
|
46
|
+
type MapToRecord<K extends Map<string, any>> = {
|
|
47
|
+
[P in keyof K]: K[P] extends Map<string, infer V> ? Record<string, V> : never;
|
|
48
|
+
};
|
|
49
|
+
declare function mapToJson<T extends Map<string, any>>(map: T): MapToRecord<T>;
|
|
50
|
+
|
|
51
|
+
declare function unionType(values: IterableIterator<string> | string[] | Set<string>): string;
|
|
52
|
+
|
|
53
|
+
export { CreateCssContext, CssVar, CssVarOptions, MappedObject, WalkObjectStopFn, calc, capitalize, cssVar, dashCase, esc, flatten, getDotPath, getNegativePath, getUnit, mapToJson, memo, normalizeShorthand, normalizeStyleObject, splitBy, splitDotPath, toEm, toPx, toRem, uncapitalize, unionType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { c as astish, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, l as hypenateProperty, g as isBaseCondition, b as isObject, p as mapObject, m as mergeProps, s as splitProps, t as toHash, o as walkObject, k as withoutSpace } from './split-props-3d8b55c4.js';
|
|
2
|
+
|
|
3
|
+
declare function normalizeHTMLProps(props: Record<string, any>): {
|
|
4
|
+
[k: string]: any;
|
|
5
|
+
};
|
|
6
|
+
declare namespace normalizeHTMLProps {
|
|
7
|
+
var keys: string[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { normalizeHTMLProps };
|