@pandacss/shared 0.0.0-dev-20240201214314 → 0.0.0-dev-20240202230406

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-F25j1lrb.mjs';
2
- export { x as WalkObjectOptions, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getPatternStyles, s as getSlotCompoundVariant, r as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, a as isBoolean, b as isFunction, j as isImportant, c as isObject, i as isString, z as mapObject, m as markImportant, n as memo, o as mergeProps, p as patternFns, u as splitProps, t as toHash, v as uniq, y as walkObject, w as withoutImportant, k as withoutSpace } from './shared-F25j1lrb.mjs';
1
+ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-z3agWt4M.mjs';
2
+ export { x as WalkObjectOptions, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getPatternStyles, s as getSlotCompoundVariant, r as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, a as isBoolean, b as isFunction, j as isImportant, c as isObject, i as isString, z as mapObject, m as markImportant, n as memo, o as mergeProps, p as patternFns, u as splitProps, t as toHash, v as uniq, y as walkObject, w as withoutImportant, k as withoutSpace } from './shared-z3agWt4M.mjs';
3
3
  export { astish } from './astish.mjs';
4
4
 
5
5
  declare const getArbitraryValue: (_value: 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-F25j1lrb.js';
2
- export { x as WalkObjectOptions, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getPatternStyles, s as getSlotCompoundVariant, r as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, a as isBoolean, b as isFunction, j as isImportant, c as isObject, i as isString, z as mapObject, m as markImportant, n as memo, o as mergeProps, p as patternFns, u as splitProps, t as toHash, v as uniq, y as walkObject, w as withoutImportant, k as withoutSpace } from './shared-F25j1lrb.js';
1
+ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-z3agWt4M.js';
2
+ export { x as WalkObjectOptions, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getPatternStyles, s as getSlotCompoundVariant, r as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, a as isBoolean, b as isFunction, j as isImportant, c as isObject, i as isString, z as mapObject, m as markImportant, n as memo, o as mergeProps, p as patternFns, u as splitProps, t as toHash, v as uniq, y as walkObject, w as withoutImportant, k as withoutSpace } from './shared-z3agWt4M.js';
3
3
  export { astish } from './astish.js';
4
4
 
5
5
  declare const getArbitraryValue: (_value: string) => string;
package/dist/index.js CHANGED
@@ -281,7 +281,7 @@ function walkObject(target, predicate, options = {}) {
281
281
  if (isObject(value) || Array.isArray(value)) {
282
282
  const result = {};
283
283
  for (const [prop, child] of Object.entries(value)) {
284
- const key = getKey?.(prop) ?? prop;
284
+ const key = getKey?.(prop, child) ?? prop;
285
285
  const childPath = [...path, key];
286
286
  if (stop?.(value, childPath)) {
287
287
  return predicate(value, path);
package/dist/index.mjs CHANGED
@@ -195,7 +195,7 @@ function walkObject(target, predicate, options = {}) {
195
195
  if (isObject(value) || Array.isArray(value)) {
196
196
  const result = {};
197
197
  for (const [prop, child] of Object.entries(value)) {
198
- const key = getKey?.(prop) ?? prop;
198
+ const key = getKey?.(prop, child) ?? prop;
199
199
  const childPath = [...path, key];
200
200
  if (stop?.(value, childPath)) {
201
201
  return predicate(value, path);
@@ -56,7 +56,7 @@ type MappedObject<T, K> = {
56
56
  type WalkObjectStopFn = (value: any, path: string[]) => boolean;
57
57
  interface WalkObjectOptions {
58
58
  stop?: WalkObjectStopFn;
59
- getKey?(prop: string): string;
59
+ getKey?(prop: string, value: any): string;
60
60
  }
61
61
  declare function walkObject<T, K>(target: T, predicate: Predicate<K>, options?: WalkObjectOptions): MappedObject<T, ReturnType<Predicate<K>>>;
62
62
  declare function mapObject(obj: any, fn: (value: any) => any): any;
@@ -56,7 +56,7 @@ type MappedObject<T, K> = {
56
56
  type WalkObjectStopFn = (value: any, path: string[]) => boolean;
57
57
  interface WalkObjectOptions {
58
58
  stop?: WalkObjectStopFn;
59
- getKey?(prop: string): string;
59
+ getKey?(prop: string, value: any): string;
60
60
  }
61
61
  declare function walkObject<T, K>(target: T, predicate: Predicate<K>, options?: WalkObjectOptions): MappedObject<T, ReturnType<Predicate<K>>>;
62
62
  declare function mapObject(obj: any, fn: (value: any) => any): any;
package/dist/shared.d.mts CHANGED
@@ -1 +1 @@
1
- export { f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getPatternStyles, s as getSlotCompoundVariant, r as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, c as isObject, z as mapObject, n as memo, o as mergeProps, p as patternFns, u as splitProps, t as toHash, v as uniq, y as walkObject, k as withoutSpace } from './shared-F25j1lrb.mjs';
1
+ export { f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getPatternStyles, s as getSlotCompoundVariant, r as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, c as isObject, z as mapObject, n as memo, o as mergeProps, p as patternFns, u as splitProps, t as toHash, v as uniq, y as walkObject, k as withoutSpace } from './shared-z3agWt4M.mjs';
package/dist/shared.d.ts CHANGED
@@ -1 +1 @@
1
- export { f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getPatternStyles, s as getSlotCompoundVariant, r as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, c as isObject, z as mapObject, n as memo, o as mergeProps, p as patternFns, u as splitProps, t as toHash, v as uniq, y as walkObject, k as withoutSpace } from './shared-F25j1lrb.js';
1
+ export { f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getPatternStyles, s as getSlotCompoundVariant, r as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, c as isObject, z as mapObject, n as memo, o as mergeProps, p as patternFns, u as splitProps, t as toHash, v as uniq, y as walkObject, k as withoutSpace } from './shared-z3agWt4M.js';
package/dist/shared.js CHANGED
@@ -131,7 +131,7 @@ function walkObject(target, predicate, options = {}) {
131
131
  if (isObject(value) || Array.isArray(value)) {
132
132
  const result = {};
133
133
  for (const [prop, child] of Object.entries(value)) {
134
- const key = getKey?.(prop) ?? prop;
134
+ const key = getKey?.(prop, child) ?? prop;
135
135
  const childPath = [...path, key];
136
136
  if (stop?.(value, childPath)) {
137
137
  return predicate(value, path);
package/dist/shared.mjs CHANGED
@@ -87,7 +87,7 @@ function walkObject(target, predicate, options = {}) {
87
87
  if (isObject(value) || Array.isArray(value)) {
88
88
  const result = {};
89
89
  for (const [prop, child] of Object.entries(value)) {
90
- const key = getKey?.(prop) ?? prop;
90
+ const key = getKey?.(prop, child) ?? prop;
91
91
  const childPath = [...path, key];
92
92
  if (stop?.(value, childPath)) {
93
93
  return predicate(value, path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.0.0-dev-20240201214314",
3
+ "version": "0.0.0-dev-20240202230406",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",