@pandacss/shared 0.0.0-dev-20221121154336 → 0.0.0-dev-20221121154622

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,12 +1,12 @@
1
- import { W as WalkObjectStopFn } from './walk-styles-a10346e4.js';
2
- export { M as MappedObject, d as WalkObjectOptions, W as WalkObjectStopFn, c as createCss, f as filterBaseConditions, i as isBaseCondition, a as isImportant, m as mapObject, t as toHash, e as walkObject, g as walkStyles, w as withoutImportant, b as withoutSpace } from './walk-styles-a10346e4.js';
1
+ import { W as WalkObjectStopFn } from './walk-styles-90a9feaa.js';
2
+ export { M as MappedObject, d as WalkObjectOptions, W as WalkObjectStopFn, c as createCss, f as filterBaseConditions, i as isBaseCondition, a as isImportant, m as mapObject, t as toHash, e as walkObject, g as walkStyles, w as withoutImportant, b as withoutSpace } from './walk-styles-90a9feaa.js';
3
3
 
4
4
  declare const isString: (v: any) => v is string;
5
- declare type AnyFunction = (...args: any[]) => any;
5
+ type AnyFunction = (...args: any[]) => any;
6
6
  declare const isFunction: (v: any) => v is AnyFunction;
7
7
  declare function isObject(value: any): value is Record<string, any>;
8
8
 
9
- declare type Operand = string | number | {
9
+ type Operand = string | number | {
10
10
  ref: string;
11
11
  };
12
12
  declare const calc: {
@@ -24,11 +24,11 @@ declare function toPx(value?: string | number): string | undefined;
24
24
  declare function toEm(value?: string, fontSize?: number): string | undefined;
25
25
  declare function toRem(value?: string): string | undefined;
26
26
 
27
- declare type CssVar = {
27
+ type CssVar = {
28
28
  var: `--${string}`;
29
29
  ref: string;
30
30
  };
31
- declare type CssVarOptions = {
31
+ type CssVarOptions = {
32
32
  fallback?: string;
33
33
  prefix?: string;
34
34
  };
@@ -45,7 +45,7 @@ declare function splitDotPath(path: string): string[];
45
45
  declare function getNegativePath(path: string[]): string[];
46
46
  declare function getDotPath(obj: any, path: string, fallback?: any): any;
47
47
 
48
- declare type MapToRecord<K extends Map<string, any>> = {
48
+ type MapToRecord<K extends Map<string, any>> = {
49
49
  [P in keyof K]: K[P] extends Map<string, infer V> ? Record<string, V> : never;
50
50
  };
51
51
  declare function mapToJson<T extends Map<string, any>>(map: T): MapToRecord<T>;
package/dist/shared.d.ts CHANGED
@@ -1 +1 @@
1
- export { M as MappedObject, d as WalkObjectOptions, W as WalkObjectStopFn, c as createCss, f as filterBaseConditions, i as isBaseCondition, m as mapObject, t as toHash, e as walkObject, g as walkStyles, b as withoutSpace } from './walk-styles-a10346e4.js';
1
+ export { M as MappedObject, d as WalkObjectOptions, W as WalkObjectStopFn, c as createCss, f as filterBaseConditions, i as isBaseCondition, m as mapObject, t as toHash, e as walkObject, g as walkStyles, b as withoutSpace } from './walk-styles-90a9feaa.js';
@@ -1,4 +1,4 @@
1
- declare type Context = {
1
+ type Context = {
2
2
  hasShorthand: boolean;
3
3
  resolveShorthand: (prop: string) => string;
4
4
  transform: (prop: string, value: any) => {
@@ -18,12 +18,12 @@ declare function isImportant(value: string): boolean;
18
18
  declare function withoutImportant(value: string): string;
19
19
  declare function withoutSpace(str: string): string;
20
20
 
21
- declare type Predicate<R = any> = (value: any, path: string[]) => R;
22
- declare type MappedObject<T, K> = {
21
+ type Predicate<R = any> = (value: any, path: string[]) => R;
22
+ type MappedObject<T, K> = {
23
23
  [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;
24
24
  };
25
- declare type WalkObjectStopFn = (value: any, path: string[]) => boolean;
26
- declare type WalkObjectOptions = {
25
+ type WalkObjectStopFn = (value: any, path: string[]) => boolean;
26
+ type WalkObjectOptions = {
27
27
  stop?: WalkObjectStopFn;
28
28
  getKey?(prop: string): string;
29
29
  };
@@ -32,7 +32,7 @@ declare function mapObject(obj: any, fn: (value: any) => any): any;
32
32
 
33
33
  declare function toHash(value: string): string;
34
34
 
35
- declare type Dict = Record<string, any>;
35
+ type Dict = Record<string, any>;
36
36
  declare function walkStyles(obj: Dict, fn: (style: Dict, scope?: string[]) => void, scopes?: string[]): void;
37
37
 
38
38
  export { MappedObject as M, WalkObjectStopFn as W, isImportant as a, withoutSpace as b, createCss as c, WalkObjectOptions as d, walkObject as e, filterBaseConditions as f, walkStyles as g, isBaseCondition as i, mapObject as m, toHash as t, withoutImportant as w };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.0.0-dev-20221121154336",
3
+ "version": "0.0.0-dev-20221121154622",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",