@pandacss/shared 0.0.0-dev-20231025190231 → 0.0.0-dev-20231027102248
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-
|
|
2
|
-
export { p as WalkObjectOptions, e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, a as isFunction, h as isImportant, b as isObject, i as isString, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, u as uniq, q as walkObject, w as withoutImportant, j as withoutSpace } from './shared-
|
|
1
|
+
import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-6d968e1d.js';
|
|
2
|
+
export { p as WalkObjectOptions, e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, a as isFunction, h as isImportant, b as isObject, i as isString, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, u as uniq, q as walkObject, w as withoutImportant, j as withoutSpace } from './shared-6d968e1d.js';
|
|
3
3
|
export { astish } from './astish.mjs';
|
|
4
4
|
|
|
5
5
|
type Operand = string | number | {
|
|
@@ -20,15 +20,15 @@ declare function toPx(value?: string | number): string | undefined;
|
|
|
20
20
|
declare function toEm(value?: string, fontSize?: number): string | undefined;
|
|
21
21
|
declare function toRem(value?: string): string | undefined;
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
interface CssVar {
|
|
24
24
|
var: `--${string}`;
|
|
25
25
|
ref: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
26
|
+
}
|
|
27
|
+
interface CssVarOptions {
|
|
28
28
|
fallback?: string;
|
|
29
29
|
prefix?: string;
|
|
30
30
|
hash?: boolean;
|
|
31
|
-
}
|
|
31
|
+
}
|
|
32
32
|
declare function cssVar(name: string, options?: CssVarOptions): CssVar;
|
|
33
33
|
|
|
34
34
|
declare const esc: (sel: string) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-
|
|
2
|
-
export { p as WalkObjectOptions, e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, a as isFunction, h as isImportant, b as isObject, i as isString, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, u as uniq, q as walkObject, w as withoutImportant, j as withoutSpace } from './shared-
|
|
1
|
+
import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-6d968e1d.js';
|
|
2
|
+
export { p as WalkObjectOptions, e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, a as isFunction, h as isImportant, b as isObject, i as isString, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, u as uniq, q as walkObject, w as withoutImportant, j as withoutSpace } from './shared-6d968e1d.js';
|
|
3
3
|
export { astish } from './astish.js';
|
|
4
4
|
|
|
5
5
|
type Operand = string | number | {
|
|
@@ -20,15 +20,15 @@ declare function toPx(value?: string | number): string | undefined;
|
|
|
20
20
|
declare function toEm(value?: string, fontSize?: number): string | undefined;
|
|
21
21
|
declare function toRem(value?: string): string | undefined;
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
interface CssVar {
|
|
24
24
|
var: `--${string}`;
|
|
25
25
|
ref: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
26
|
+
}
|
|
27
|
+
interface CssVarOptions {
|
|
28
28
|
fallback?: string;
|
|
29
29
|
prefix?: string;
|
|
30
30
|
hash?: boolean;
|
|
31
|
-
}
|
|
31
|
+
}
|
|
32
32
|
declare function cssVar(name: string, options?: CssVarOptions): CssVar;
|
|
33
33
|
|
|
34
34
|
declare const esc: (sel: string) => string;
|
|
@@ -3,7 +3,7 @@ type AnyFunction = (...args: any[]) => any;
|
|
|
3
3
|
declare const isFunction: (v: any) => v is AnyFunction;
|
|
4
4
|
declare function isObject(value: any): value is Record<string, any>;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
interface CreateCssContext {
|
|
7
7
|
hash?: boolean;
|
|
8
8
|
/**
|
|
9
9
|
* Partial properties from the Utility class
|
|
@@ -26,9 +26,11 @@ type CreateCssContext = {
|
|
|
26
26
|
shift: (paths: string[]) => string[];
|
|
27
27
|
finalize: (paths: string[]) => string[];
|
|
28
28
|
};
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
declare function createCss(context: CreateCssContext): (styleObject?: Record<string, any>) => string;
|
|
31
|
-
|
|
31
|
+
interface StyleObject {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}
|
|
32
34
|
declare function createMergeCss(context: CreateCssContext): {
|
|
33
35
|
mergeCss: (...styles: StyleObject[]) => StyleObject;
|
|
34
36
|
assignCss: (...styles: StyleObject[]) => any;
|
|
@@ -48,10 +50,10 @@ type MappedObject<T, K> = {
|
|
|
48
50
|
[Prop in keyof T]: T[Prop] extends Array<any> ? MappedObject<T[Prop][number], K>[] : T[Prop] extends Record<string, unknown> ? MappedObject<T[Prop], K> : K;
|
|
49
51
|
};
|
|
50
52
|
type WalkObjectStopFn = (value: any, path: string[]) => boolean;
|
|
51
|
-
|
|
53
|
+
interface WalkObjectOptions {
|
|
52
54
|
stop?: WalkObjectStopFn;
|
|
53
55
|
getKey?(prop: string): string;
|
|
54
|
-
}
|
|
56
|
+
}
|
|
55
57
|
declare function walkObject<T, K>(target: T, predicate: Predicate<K>, options?: WalkObjectOptions): MappedObject<T, ReturnType<Predicate<K>>>;
|
|
56
58
|
declare function mapObject(obj: any, fn: (value: any) => any): any;
|
|
57
59
|
|
package/dist/shared.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, b as isObject, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, u as uniq, q as walkObject, j as withoutSpace } from './shared-
|
|
1
|
+
export { e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, b as isObject, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, u as uniq, q as walkObject, j as withoutSpace } from './shared-6d968e1d.js';
|
package/dist/shared.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, b as isObject, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, u as uniq, q as walkObject, j as withoutSpace } from './shared-
|
|
1
|
+
export { e as compact, c as createCss, d as createMergeCss, g as filterBaseConditions, o as getSlotCompoundVariant, n as getSlotRecipes, k as hypenateProperty, f as isBaseCondition, b as isObject, r as mapObject, m as memo, l as mergeProps, s as splitProps, t as toHash, u as uniq, q as walkObject, j as withoutSpace } from './shared-6d968e1d.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/shared",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20231027102248",
|
|
4
4
|
"description": "Shared utilities for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -10,12 +10,24 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"source": "./src/index.ts",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"require": "./dist/index.js",
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./dist/index.d.mts",
|
|
20
|
+
"default": "./dist/index.mjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
13
25
|
"files": [
|
|
14
26
|
"dist"
|
|
15
27
|
],
|
|
16
28
|
"scripts": {
|
|
17
|
-
"build": "tsup --dts",
|
|
29
|
+
"build": "tsup --dts && tsx scripts/postbuild.ts",
|
|
18
30
|
"build-fast": "tsup --no-dts",
|
|
19
|
-
"dev": "
|
|
31
|
+
"dev": "tsup --no-dts --watch --onSuccess=\"tsx scripts/postbuild.ts\""
|
|
20
32
|
}
|
|
21
33
|
}
|