@pandacss/shared 0.49.0 → 0.51.0

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-BKiOijOQ.mjs';
2
- export { y as WalkObjectOptions, g as compact, e as createCss, f as createMergeCss, j as filterBaseConditions, r as getPatternStyles, u as getSlotCompoundVariant, s as getSlotRecipes, k as hypenateProperty, h as isBaseCondition, a as isBoolean, b as isFunction, l as isImportant, c as isObject, d as isObjectOrArray, i as isString, A as mapObject, n as markImportant, o as memo, p as mergeProps, q as patternFns, v as splitProps, t as toHash, x as uniq, z as walkObject, w as withoutImportant, m as withoutSpace } from './shared-BKiOijOQ.mjs';
1
+ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-DTGzt6ot.mjs';
2
+ export { y as WalkObjectOptions, g as compact, e as createCss, f as createMergeCss, j as filterBaseConditions, r as getPatternStyles, u as getSlotCompoundVariant, s as getSlotRecipes, k as hypenateProperty, h as isBaseCondition, a as isBoolean, b as isFunction, l as isImportant, c as isObject, d as isObjectOrArray, i as isString, A as mapObject, n as markImportant, o as memo, p as mergeProps, q as patternFns, v as splitProps, t as toHash, x as uniq, z as walkObject, w as withoutImportant, m as withoutSpace } from './shared-DTGzt6ot.mjs';
3
3
  export { astish } from './astish.mjs';
4
4
 
5
5
  declare const getArbitraryValue: (_value: string) => string;
@@ -20,10 +20,10 @@ declare class CacheMap<K, V> implements Map<K, V> {
20
20
  has(key: K): boolean;
21
21
  get size(): number;
22
22
  forEach(callback: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
23
- keys(): IterableIterator<K>;
24
- values(): IterableIterator<V>;
25
- entries(): IterableIterator<[K, V]>;
26
- [Symbol.iterator](): IterableIterator<[K, V]>;
23
+ keys(): MapIterator<K>;
24
+ values(): MapIterator<V>;
25
+ entries(): MapIterator<[K, V]>;
26
+ [Symbol.iterator](): MapIterator<[K, V]>;
27
27
  [Symbol.toStringTag]: string;
28
28
  toJSON: () => Map<K, V>;
29
29
  }
@@ -94,7 +94,7 @@ type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
94
94
  declare function toResponsiveObject(values: string[], breakpoints: string[]): Record<string, string>;
95
95
  declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext, shorthand?: boolean): MappedObject<Record<string, any>, any>;
96
96
 
97
- declare const omit: <T, K extends (string & {}) | keyof T>(obj: T, paths: K[]) => Omit<T, K>;
97
+ declare const omit: <T, K extends keyof T | (string & {})>(obj: T, paths: K[]) => Omit<T, K>;
98
98
 
99
99
  declare const PANDA_CONFIG_NAME: "__panda.config__";
100
100
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-BKiOijOQ.js';
2
- export { y as WalkObjectOptions, g as compact, e as createCss, f as createMergeCss, j as filterBaseConditions, r as getPatternStyles, u as getSlotCompoundVariant, s as getSlotRecipes, k as hypenateProperty, h as isBaseCondition, a as isBoolean, b as isFunction, l as isImportant, c as isObject, d as isObjectOrArray, i as isString, A as mapObject, n as markImportant, o as memo, p as mergeProps, q as patternFns, v as splitProps, t as toHash, x as uniq, z as walkObject, w as withoutImportant, m as withoutSpace } from './shared-BKiOijOQ.js';
1
+ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-DTGzt6ot.js';
2
+ export { y as WalkObjectOptions, g as compact, e as createCss, f as createMergeCss, j as filterBaseConditions, r as getPatternStyles, u as getSlotCompoundVariant, s as getSlotRecipes, k as hypenateProperty, h as isBaseCondition, a as isBoolean, b as isFunction, l as isImportant, c as isObject, d as isObjectOrArray, i as isString, A as mapObject, n as markImportant, o as memo, p as mergeProps, q as patternFns, v as splitProps, t as toHash, x as uniq, z as walkObject, w as withoutImportant, m as withoutSpace } from './shared-DTGzt6ot.js';
3
3
  export { astish } from './astish.js';
4
4
 
5
5
  declare const getArbitraryValue: (_value: string) => string;
@@ -20,10 +20,10 @@ declare class CacheMap<K, V> implements Map<K, V> {
20
20
  has(key: K): boolean;
21
21
  get size(): number;
22
22
  forEach(callback: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
23
- keys(): IterableIterator<K>;
24
- values(): IterableIterator<V>;
25
- entries(): IterableIterator<[K, V]>;
26
- [Symbol.iterator](): IterableIterator<[K, V]>;
23
+ keys(): MapIterator<K>;
24
+ values(): MapIterator<V>;
25
+ entries(): MapIterator<[K, V]>;
26
+ [Symbol.iterator](): MapIterator<[K, V]>;
27
27
  [Symbol.toStringTag]: string;
28
28
  toJSON: () => Map<K, V>;
29
29
  }
@@ -94,7 +94,7 @@ type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
94
94
  declare function toResponsiveObject(values: string[], breakpoints: string[]): Record<string, string>;
95
95
  declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext, shorthand?: boolean): MappedObject<Record<string, any>, any>;
96
96
 
97
- declare const omit: <T, K extends (string & {}) | keyof T>(obj: T, paths: K[]) => Omit<T, K>;
97
+ declare const omit: <T, K extends keyof T | (string & {})>(obj: T, paths: K[]) => Omit<T, K>;
98
98
 
99
99
  declare const PANDA_CONFIG_NAME: "__panda.config__";
100
100
 
@@ -3,7 +3,7 @@ declare const isBoolean: (v: any) => v is boolean;
3
3
  type AnyFunction = (...args: any[]) => any;
4
4
  declare const isFunction: (v: any) => v is AnyFunction;
5
5
  declare function isObject(value: any): value is Record<string, any>;
6
- declare const isObjectOrArray: (obj: unknown) => boolean;
6
+ declare const isObjectOrArray: (obj: unknown) => obj is object;
7
7
 
8
8
  interface CreateCssContext {
9
9
  hash?: boolean;
@@ -41,7 +41,7 @@ declare function createMergeCss(context: CreateCssContext): {
41
41
 
42
42
  declare function compact<T extends Record<string, any>>(value: T): T;
43
43
 
44
- declare const isBaseCondition: (v: string) => boolean;
44
+ declare const isBaseCondition: (v: string) => v is "base";
45
45
  declare function filterBaseConditions(c: string[]): string[];
46
46
 
47
47
  type Predicate<R = any> = (value: any, path: string[]) => R;
@@ -3,7 +3,7 @@ declare const isBoolean: (v: any) => v is boolean;
3
3
  type AnyFunction = (...args: any[]) => any;
4
4
  declare const isFunction: (v: any) => v is AnyFunction;
5
5
  declare function isObject(value: any): value is Record<string, any>;
6
- declare const isObjectOrArray: (obj: unknown) => boolean;
6
+ declare const isObjectOrArray: (obj: unknown) => obj is object;
7
7
 
8
8
  interface CreateCssContext {
9
9
  hash?: boolean;
@@ -41,7 +41,7 @@ declare function createMergeCss(context: CreateCssContext): {
41
41
 
42
42
  declare function compact<T extends Record<string, any>>(value: T): T;
43
43
 
44
- declare const isBaseCondition: (v: string) => boolean;
44
+ declare const isBaseCondition: (v: string) => v is "base";
45
45
  declare function filterBaseConditions(c: string[]): string[];
46
46
 
47
47
  type Predicate<R = any> = (value: any, path: string[]) => R;
package/dist/shared.d.mts CHANGED
@@ -1 +1 @@
1
- export { g as compact, e as createCss, f as createMergeCss, j as filterBaseConditions, r as getPatternStyles, u as getSlotCompoundVariant, s as getSlotRecipes, k as hypenateProperty, h as isBaseCondition, c as isObject, A as mapObject, o as memo, p as mergeProps, q as patternFns, v as splitProps, t as toHash, x as uniq, z as walkObject, m as withoutSpace } from './shared-BKiOijOQ.mjs';
1
+ export { g as compact, e as createCss, f as createMergeCss, j as filterBaseConditions, r as getPatternStyles, u as getSlotCompoundVariant, s as getSlotRecipes, k as hypenateProperty, h as isBaseCondition, c as isObject, A as mapObject, o as memo, p as mergeProps, q as patternFns, v as splitProps, t as toHash, x as uniq, z as walkObject, m as withoutSpace } from './shared-DTGzt6ot.mjs';
package/dist/shared.d.ts CHANGED
@@ -1 +1 @@
1
- export { g as compact, e as createCss, f as createMergeCss, j as filterBaseConditions, r as getPatternStyles, u as getSlotCompoundVariant, s as getSlotRecipes, k as hypenateProperty, h as isBaseCondition, c as isObject, A as mapObject, o as memo, p as mergeProps, q as patternFns, v as splitProps, t as toHash, x as uniq, z as walkObject, m as withoutSpace } from './shared-BKiOijOQ.js';
1
+ export { g as compact, e as createCss, f as createMergeCss, j as filterBaseConditions, r as getPatternStyles, u as getSlotCompoundVariant, s as getSlotRecipes, k as hypenateProperty, h as isBaseCondition, c as isObject, A as mapObject, o as memo, p as mergeProps, q as patternFns, v as splitProps, t as toHash, x as uniq, z as walkObject, m as withoutSpace } from './shared-DTGzt6ot.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.49.0",
3
+ "version": "0.51.0",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",