@pandacss/shared 0.22.1 → 0.24.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-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';
1
+ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-ep4aFxdJ.mjs';
2
+ export { r as WalkObjectOptions, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getSlotCompoundVariant, p as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, a as isBoolean, b as isFunction, j as isImportant, c as isObject, i as isString, x as mapObject, m as markImportant, n as memo, o as mergeProps, s as splitProps, t as toHash, u as uniq, v as walkObject, w as withoutImportant, k as withoutSpace } from './shared-ep4aFxdJ.mjs';
3
3
  export { astish } from './astish.mjs';
4
4
 
5
5
  declare const getArbitraryValue: (value: string) => string;
@@ -37,7 +37,10 @@ declare const esc: (sel: string) => string;
37
37
 
38
38
  declare function flatten(values: Record<string, Record<string, any>>, stop?: WalkObjectStopFn): Record<string, any>;
39
39
 
40
+ declare function getOrCreateSet<TKey, TValue>(map: Map<TKey, Set<TValue>>, key: TKey): Set<TValue>;
41
+
40
42
  type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
43
+ declare function toResponsiveObject(values: string[], breakpoints: string[]): Record<string, string>;
41
44
  declare function normalizeShorthand(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
42
45
  declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext, shorthand?: boolean): MappedObject<Record<string, any>, any>;
43
46
 
@@ -56,6 +59,20 @@ type MapToRecord<K extends Map<string, any>> = {
56
59
  };
57
60
  declare function mapToJson<T extends Map<string, any>>(map: T): MapToRecord<T>;
58
61
 
62
+ type CallbackFn = (args: CallbackItem) => void;
63
+ type CallbackItem = {
64
+ value: any;
65
+ path: string;
66
+ depth: number;
67
+ parent: any[] | Record<string, unknown>;
68
+ key: string;
69
+ };
70
+ declare const isObjectOrArray: (obj: unknown) => boolean;
71
+ declare function traverse(obj: any, callback: CallbackFn, options?: {
72
+ separator: string;
73
+ maxDepth?: number;
74
+ }): void;
75
+
59
76
  declare function unionType(values: IterableIterator<string> | string[] | readonly string[] | Set<string>): string;
60
77
 
61
- export { CreateCssContext, CssVar, CssVarOptions, MappedObject, WalkObjectStopFn, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, esc, flatten, getArbitraryValue, getDotPath, getNegativePath, getUnit, mapToJson, normalizeShorthand, normalizeStyleObject, parseJson, splitBy, splitDotPath, stringifyJson, toEm, toPx, toRem, uncapitalize, unionType };
78
+ export { CreateCssContext, type CssVar, type CssVarOptions, MappedObject, WalkObjectStopFn, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, esc, flatten, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getUnit, isObjectOrArray, mapToJson, normalizeShorthand, normalizeStyleObject, parseJson, splitBy, splitDotPath, stringifyJson, toEm, toPx, toRem, toResponsiveObject, traverse, uncapitalize, unionType };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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';
1
+ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './shared-ep4aFxdJ.js';
2
+ export { r as WalkObjectOptions, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getSlotCompoundVariant, p as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, a as isBoolean, b as isFunction, j as isImportant, c as isObject, i as isString, x as mapObject, m as markImportant, n as memo, o as mergeProps, s as splitProps, t as toHash, u as uniq, v as walkObject, w as withoutImportant, k as withoutSpace } from './shared-ep4aFxdJ.js';
3
3
  export { astish } from './astish.js';
4
4
 
5
5
  declare const getArbitraryValue: (value: string) => string;
@@ -37,7 +37,10 @@ declare const esc: (sel: string) => string;
37
37
 
38
38
  declare function flatten(values: Record<string, Record<string, any>>, stop?: WalkObjectStopFn): Record<string, any>;
39
39
 
40
+ declare function getOrCreateSet<TKey, TValue>(map: Map<TKey, Set<TValue>>, key: TKey): Set<TValue>;
41
+
40
42
  type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
43
+ declare function toResponsiveObject(values: string[], breakpoints: string[]): Record<string, string>;
41
44
  declare function normalizeShorthand(styles: Record<string, any>, context: NormalizeContext): MappedObject<Record<string, any>, any>;
42
45
  declare function normalizeStyleObject(styles: Record<string, any>, context: NormalizeContext, shorthand?: boolean): MappedObject<Record<string, any>, any>;
43
46
 
@@ -56,6 +59,20 @@ type MapToRecord<K extends Map<string, any>> = {
56
59
  };
57
60
  declare function mapToJson<T extends Map<string, any>>(map: T): MapToRecord<T>;
58
61
 
62
+ type CallbackFn = (args: CallbackItem) => void;
63
+ type CallbackItem = {
64
+ value: any;
65
+ path: string;
66
+ depth: number;
67
+ parent: any[] | Record<string, unknown>;
68
+ key: string;
69
+ };
70
+ declare const isObjectOrArray: (obj: unknown) => boolean;
71
+ declare function traverse(obj: any, callback: CallbackFn, options?: {
72
+ separator: string;
73
+ maxDepth?: number;
74
+ }): void;
75
+
59
76
  declare function unionType(values: IterableIterator<string> | string[] | readonly string[] | Set<string>): string;
60
77
 
61
- export { CreateCssContext, CssVar, CssVarOptions, MappedObject, WalkObjectStopFn, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, esc, flatten, getArbitraryValue, getDotPath, getNegativePath, getUnit, mapToJson, normalizeShorthand, normalizeStyleObject, parseJson, splitBy, splitDotPath, stringifyJson, toEm, toPx, toRem, uncapitalize, unionType };
78
+ export { CreateCssContext, type CssVar, type CssVarOptions, MappedObject, WalkObjectStopFn, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, esc, flatten, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getUnit, isObjectOrArray, mapToJson, normalizeShorthand, normalizeStyleObject, parseJson, splitBy, splitDotPath, stringifyJson, toEm, toPx, toRem, toResponsiveObject, traverse, uncapitalize, unionType };
package/dist/index.js CHANGED
@@ -36,17 +36,21 @@ __export(src_exports, {
36
36
  getArbitraryValue: () => getArbitraryValue,
37
37
  getDotPath: () => getDotPath,
38
38
  getNegativePath: () => getNegativePath,
39
+ getOrCreateSet: () => getOrCreateSet,
39
40
  getSlotCompoundVariant: () => getSlotCompoundVariant,
40
41
  getSlotRecipes: () => getSlotRecipes,
41
42
  getUnit: () => getUnit,
42
43
  hypenateProperty: () => hypenateProperty,
43
44
  isBaseCondition: () => isBaseCondition,
45
+ isBoolean: () => isBoolean,
44
46
  isFunction: () => isFunction,
45
47
  isImportant: () => isImportant,
46
48
  isObject: () => isObject,
49
+ isObjectOrArray: () => isObjectOrArray,
47
50
  isString: () => isString,
48
51
  mapObject: () => mapObject,
49
52
  mapToJson: () => mapToJson,
53
+ markImportant: () => markImportant,
50
54
  memo: () => memo,
51
55
  mergeProps: () => mergeProps,
52
56
  normalizeShorthand: () => normalizeShorthand,
@@ -60,6 +64,8 @@ __export(src_exports, {
60
64
  toHash: () => toHash,
61
65
  toPx: () => toPx,
62
66
  toRem: () => toRem,
67
+ toResponsiveObject: () => toResponsiveObject,
68
+ traverse: () => traverse,
63
69
  uncapitalize: () => uncapitalize,
64
70
  unionType: () => unionType,
65
71
  uniq: () => uniq,
@@ -81,6 +87,7 @@ var getArbitraryValue = (value) => {
81
87
 
82
88
  // src/assert.ts
83
89
  var isString = (v) => typeof v === "string";
90
+ var isBoolean = (v) => typeof v === "boolean";
84
91
  var isFunction = (v) => typeof v === "function";
85
92
  function isObject(value) {
86
93
  return typeof value === "object" && value != null && !Array.isArray(value);
@@ -181,6 +188,28 @@ function withoutImportant(value) {
181
188
  function withoutSpace(str) {
182
189
  return typeof str === "string" ? str.replaceAll(" ", "_") : str;
183
190
  }
191
+ function markImportant(obj) {
192
+ if (typeof obj !== "object" || obj === null) {
193
+ return obj;
194
+ }
195
+ const result = Array.isArray(obj) ? [] : {};
196
+ const stack = [{ obj, result }];
197
+ while (stack.length > 0) {
198
+ const { obj: obj2, result: result2 } = stack.pop();
199
+ for (const [key, value] of Object.entries(obj2)) {
200
+ if (typeof value === "string" || typeof value === "number") {
201
+ result2[key] = `${value} !important`;
202
+ } else if (typeof value === "object" && value !== null) {
203
+ const next = Array.isArray(value) ? [] : {};
204
+ result2[key] = next;
205
+ stack.push({ obj: value, result: next });
206
+ } else {
207
+ result2[key] = value;
208
+ }
209
+ }
210
+ }
211
+ return result;
212
+ }
184
213
 
185
214
  // src/hash.ts
186
215
  function toChar(code) {
@@ -450,6 +479,16 @@ function flatten(values, stop) {
450
479
  return result;
451
480
  }
452
481
 
482
+ // src/get-or-create-set.ts
483
+ function getOrCreateSet(map, key) {
484
+ let set = map.get(key);
485
+ if (!set) {
486
+ map.set(key, /* @__PURE__ */ new Set());
487
+ set = map.get(key);
488
+ }
489
+ return set;
490
+ }
491
+
453
492
  // src/hypenate-property.ts
454
493
  var wordRegex = /([A-Z])/g;
455
494
  var msRegex = /^ms-/;
@@ -583,6 +622,30 @@ function mapToJson(map) {
583
622
  return obj;
584
623
  }
585
624
 
625
+ // src/traverse.ts
626
+ var isObjectOrArray = (obj) => typeof obj === "object" && obj !== null;
627
+ var defaultOptions = { separator: ".", maxDepth: Infinity };
628
+ function traverse(obj, callback2, options = defaultOptions) {
629
+ const maxDepth = options.maxDepth ?? defaultOptions.maxDepth;
630
+ const separator = options.separator ?? defaultOptions.separator;
631
+ const stack = [{ value: obj, path: "", depth: -1, parent: null, key: "" }];
632
+ while (stack.length > 0) {
633
+ const currentItem = stack.pop();
634
+ if (currentItem.parent !== null) {
635
+ callback2(currentItem);
636
+ }
637
+ if (isObjectOrArray(currentItem.value) && currentItem.depth < maxDepth) {
638
+ const keys = Object.keys(currentItem.value);
639
+ for (let i = keys.length - 1; i >= 0; i--) {
640
+ const key = keys[i];
641
+ const value = currentItem.value[key];
642
+ const path = currentItem.path ? currentItem.path + separator + key : key;
643
+ stack.push({ value, path, depth: currentItem.depth + 1, parent: currentItem.value, key });
644
+ }
645
+ }
646
+ }
647
+ }
648
+
586
649
  // src/typegen.ts
587
650
  function unionType(values) {
588
651
  return Array.from(values).map((value) => JSON.stringify(value)).join(" | ");
@@ -608,17 +671,21 @@ var uniq = (...items) => items.filter(Boolean).reduce((acc, item) => Array.from(
608
671
  getArbitraryValue,
609
672
  getDotPath,
610
673
  getNegativePath,
674
+ getOrCreateSet,
611
675
  getSlotCompoundVariant,
612
676
  getSlotRecipes,
613
677
  getUnit,
614
678
  hypenateProperty,
615
679
  isBaseCondition,
680
+ isBoolean,
616
681
  isFunction,
617
682
  isImportant,
618
683
  isObject,
684
+ isObjectOrArray,
619
685
  isString,
620
686
  mapObject,
621
687
  mapToJson,
688
+ markImportant,
622
689
  memo,
623
690
  mergeProps,
624
691
  normalizeShorthand,
@@ -632,6 +699,8 @@ var uniq = (...items) => items.filter(Boolean).reduce((acc, item) => Array.from(
632
699
  toHash,
633
700
  toPx,
634
701
  toRem,
702
+ toResponsiveObject,
703
+ traverse,
635
704
  uncapitalize,
636
705
  unionType,
637
706
  uniq,
package/dist/index.mjs CHANGED
@@ -10,6 +10,7 @@ var getArbitraryValue = (value) => {
10
10
 
11
11
  // src/assert.ts
12
12
  var isString = (v) => typeof v === "string";
13
+ var isBoolean = (v) => typeof v === "boolean";
13
14
  var isFunction = (v) => typeof v === "function";
14
15
  function isObject(value) {
15
16
  return typeof value === "object" && value != null && !Array.isArray(value);
@@ -110,6 +111,28 @@ function withoutImportant(value) {
110
111
  function withoutSpace(str) {
111
112
  return typeof str === "string" ? str.replaceAll(" ", "_") : str;
112
113
  }
114
+ function markImportant(obj) {
115
+ if (typeof obj !== "object" || obj === null) {
116
+ return obj;
117
+ }
118
+ const result = Array.isArray(obj) ? [] : {};
119
+ const stack = [{ obj, result }];
120
+ while (stack.length > 0) {
121
+ const { obj: obj2, result: result2 } = stack.pop();
122
+ for (const [key, value] of Object.entries(obj2)) {
123
+ if (typeof value === "string" || typeof value === "number") {
124
+ result2[key] = `${value} !important`;
125
+ } else if (typeof value === "object" && value !== null) {
126
+ const next = Array.isArray(value) ? [] : {};
127
+ result2[key] = next;
128
+ stack.push({ obj: value, result: next });
129
+ } else {
130
+ result2[key] = value;
131
+ }
132
+ }
133
+ }
134
+ return result;
135
+ }
113
136
 
114
137
  // src/hash.ts
115
138
  function toChar(code) {
@@ -379,6 +402,16 @@ function flatten(values, stop) {
379
402
  return result;
380
403
  }
381
404
 
405
+ // src/get-or-create-set.ts
406
+ function getOrCreateSet(map, key) {
407
+ let set = map.get(key);
408
+ if (!set) {
409
+ map.set(key, /* @__PURE__ */ new Set());
410
+ set = map.get(key);
411
+ }
412
+ return set;
413
+ }
414
+
382
415
  // src/hypenate-property.ts
383
416
  var wordRegex = /([A-Z])/g;
384
417
  var msRegex = /^ms-/;
@@ -512,6 +545,30 @@ function mapToJson(map) {
512
545
  return obj;
513
546
  }
514
547
 
548
+ // src/traverse.ts
549
+ var isObjectOrArray = (obj) => typeof obj === "object" && obj !== null;
550
+ var defaultOptions = { separator: ".", maxDepth: Infinity };
551
+ function traverse(obj, callback2, options = defaultOptions) {
552
+ const maxDepth = options.maxDepth ?? defaultOptions.maxDepth;
553
+ const separator = options.separator ?? defaultOptions.separator;
554
+ const stack = [{ value: obj, path: "", depth: -1, parent: null, key: "" }];
555
+ while (stack.length > 0) {
556
+ const currentItem = stack.pop();
557
+ if (currentItem.parent !== null) {
558
+ callback2(currentItem);
559
+ }
560
+ if (isObjectOrArray(currentItem.value) && currentItem.depth < maxDepth) {
561
+ const keys = Object.keys(currentItem.value);
562
+ for (let i = keys.length - 1; i >= 0; i--) {
563
+ const key = keys[i];
564
+ const value = currentItem.value[key];
565
+ const path = currentItem.path ? currentItem.path + separator + key : key;
566
+ stack.push({ value, path, depth: currentItem.depth + 1, parent: currentItem.value, key });
567
+ }
568
+ }
569
+ }
570
+ }
571
+
515
572
  // src/typegen.ts
516
573
  function unionType(values) {
517
574
  return Array.from(values).map((value) => JSON.stringify(value)).join(" | ");
@@ -536,17 +593,21 @@ export {
536
593
  getArbitraryValue,
537
594
  getDotPath,
538
595
  getNegativePath,
596
+ getOrCreateSet,
539
597
  getSlotCompoundVariant,
540
598
  getSlotRecipes,
541
599
  getUnit,
542
600
  hypenateProperty,
543
601
  isBaseCondition,
602
+ isBoolean,
544
603
  isFunction,
545
604
  isImportant,
546
605
  isObject,
606
+ isObjectOrArray,
547
607
  isString,
548
608
  mapObject,
549
609
  mapToJson,
610
+ markImportant,
550
611
  memo,
551
612
  mergeProps,
552
613
  normalizeShorthand,
@@ -560,6 +621,8 @@ export {
560
621
  toHash,
561
622
  toPx,
562
623
  toRem,
624
+ toResponsiveObject,
625
+ traverse,
563
626
  uncapitalize,
564
627
  unionType,
565
628
  uniq,
@@ -1,4 +1,5 @@
1
1
  declare const isString: (v: any) => v is string;
2
+ declare const isBoolean: (v: any) => v is boolean;
2
3
  type AnyFunction = (...args: any[]) => any;
3
4
  declare const isFunction: (v: any) => v is AnyFunction;
4
5
  declare function isObject(value: any): value is Record<string, any>;
@@ -44,6 +45,8 @@ declare function filterBaseConditions(c: string[]): string[];
44
45
  declare function isImportant(value: string): boolean;
45
46
  declare function withoutImportant(value: string): string;
46
47
  declare function withoutSpace(str: string): string;
48
+ type Dict$1 = Record<string, unknown>;
49
+ declare function markImportant(obj: Dict$1): {};
47
50
 
48
51
  type Predicate<R = any> = (value: any, path: string[]) => R;
49
52
  type MappedObject<T, K> = {
@@ -79,4 +82,4 @@ declare function splitProps(props: Dict, ...keys: Key[]): Dict[];
79
82
 
80
83
  declare const uniq: <T>(...items: T[][]) => T[];
81
84
 
82
- export { CreateCssContext as C, MappedObject as M, WalkObjectStopFn as W, isFunction as a, isObject as b, createCss as c, createMergeCss as d, compact as e, isBaseCondition as f, filterBaseConditions as g, isImportant as h, isString as i, withoutSpace as j, hypenateProperty as k, mergeProps as l, memo as m, getSlotRecipes as n, getSlotCompoundVariant as o, WalkObjectOptions as p, walkObject as q, mapObject as r, splitProps as s, toHash as t, uniq as u, withoutImportant as w };
85
+ export { type CreateCssContext as C, type MappedObject as M, type WalkObjectStopFn as W, isBoolean as a, isFunction as b, isObject as c, createCss as d, createMergeCss as e, compact as f, isBaseCondition as g, filterBaseConditions as h, isString as i, isImportant as j, withoutSpace as k, hypenateProperty as l, markImportant as m, memo as n, mergeProps as o, getSlotRecipes as p, getSlotCompoundVariant as q, type WalkObjectOptions as r, splitProps as s, toHash as t, uniq as u, walkObject as v, withoutImportant as w, mapObject as x };
@@ -0,0 +1,85 @@
1
+ declare const isString: (v: any) => v is string;
2
+ declare const isBoolean: (v: any) => v is boolean;
3
+ type AnyFunction = (...args: any[]) => any;
4
+ declare const isFunction: (v: any) => v is AnyFunction;
5
+ declare function isObject(value: any): value is Record<string, any>;
6
+
7
+ interface CreateCssContext {
8
+ hash?: boolean;
9
+ /**
10
+ * Partial properties from the Utility class
11
+ */
12
+ utility: {
13
+ prefix: string;
14
+ hasShorthand: boolean;
15
+ resolveShorthand: (prop: string) => string;
16
+ transform: (prop: string, value: any) => {
17
+ className: string;
18
+ };
19
+ };
20
+ /**
21
+ * Partial properties from the Condition class
22
+ */
23
+ conditions?: {
24
+ breakpoints: {
25
+ keys: string[];
26
+ };
27
+ shift: (paths: string[]) => string[];
28
+ finalize: (paths: string[]) => string[];
29
+ };
30
+ }
31
+ declare function createCss(context: CreateCssContext): (styleObject?: Record<string, any>) => string;
32
+ interface StyleObject {
33
+ [key: string]: any;
34
+ }
35
+ declare function createMergeCss(context: CreateCssContext): {
36
+ mergeCss: (...styles: StyleObject[]) => StyleObject;
37
+ assignCss: (...styles: StyleObject[]) => any;
38
+ };
39
+
40
+ declare function compact<T extends Record<string, any>>(value: T): T;
41
+
42
+ declare const isBaseCondition: (v: string) => boolean;
43
+ declare function filterBaseConditions(c: string[]): string[];
44
+
45
+ declare function isImportant(value: string): boolean;
46
+ declare function withoutImportant(value: string): string;
47
+ declare function withoutSpace(str: string): string;
48
+ type Dict$1 = Record<string, unknown>;
49
+ declare function markImportant(obj: Dict$1): {};
50
+
51
+ type Predicate<R = any> = (value: any, path: string[]) => R;
52
+ type MappedObject<T, K> = {
53
+ [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;
54
+ };
55
+ type WalkObjectStopFn = (value: any, path: string[]) => boolean;
56
+ interface WalkObjectOptions {
57
+ stop?: WalkObjectStopFn;
58
+ getKey?(prop: string): string;
59
+ }
60
+ declare function walkObject<T, K>(target: T, predicate: Predicate<K>, options?: WalkObjectOptions): MappedObject<T, ReturnType<Predicate<K>>>;
61
+ declare function mapObject(obj: any, fn: (value: any) => any): any;
62
+
63
+ declare function toHash(value: string): string;
64
+
65
+ declare const hypenateProperty: (property: string) => string;
66
+
67
+ declare const memo: <T extends (...args: any[]) => any>(fn: T) => T;
68
+
69
+ declare function mergeProps<T extends Record<string, unknown>>(...sources: T[]): T;
70
+
71
+ declare const getSlotRecipes: (recipe?: Record<string, any>) => Record<string, any>;
72
+ declare const getSlotCompoundVariant: <T extends {
73
+ css: any;
74
+ }>(compoundVariants: T[], slotName: string) => (T & {
75
+ css: any;
76
+ })[];
77
+
78
+ type Dict = Record<string, unknown>;
79
+ type PredicateFn = (key: string) => boolean;
80
+ type Key = PredicateFn | string[];
81
+ declare function splitProps(props: Dict, ...keys: Key[]): Dict[];
82
+
83
+ declare const uniq: <T>(...items: T[][]) => T[];
84
+
85
+ export { type CreateCssContext as C, type MappedObject as M, type WalkObjectStopFn as W, isBoolean as a, isFunction as b, isObject as c, createCss as d, createMergeCss as e, compact as f, isBaseCondition as g, filterBaseConditions as h, isString as i, isImportant as j, withoutSpace as k, hypenateProperty as l, markImportant as m, memo as n, mergeProps as o, getSlotRecipes as p, getSlotCompoundVariant as q, type WalkObjectOptions as r, splitProps as s, toHash as t, uniq as u, walkObject as v, withoutImportant as w, mapObject as x };
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-6d968e1d.js';
1
+ export { f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getSlotCompoundVariant, p as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, c as isObject, x as mapObject, n as memo, o as mergeProps, s as splitProps, t as toHash, u as uniq, v as walkObject, k as withoutSpace } from './shared-ep4aFxdJ.mjs';
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-6d968e1d.js';
1
+ export { f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getSlotCompoundVariant, p as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, c as isObject, x as mapObject, n as memo, o as mergeProps, s as splitProps, t as toHash, u as uniq, v as walkObject, k as withoutSpace } from './shared-ep4aFxdJ.js';
package/package.json CHANGED
@@ -1,12 +1,18 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.22.1",
3
+ "version": "0.24.0",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "author": "Segun Adebayo <joseshegs@gmail.com>",
9
9
  "sideEffects": false,
10
+ "homepage": "https://panda-css.com",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/chakra-ui/panda.git",
14
+ "directory": "packages/shared"
15
+ },
10
16
  "publishConfig": {
11
17
  "access": "public"
12
18
  },