@pandacss/shared 1.7.0 → 1.7.2
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 +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +79 -13
- package/dist/index.mjs +77 -13
- package/dist/{shared-DTGzt6ot.d.mts → shared-DHsOF1Vt.d.mts} +2 -1
- package/dist/{shared-DTGzt6ot.d.ts → shared-DHsOF1Vt.d.ts} +2 -1
- package/dist/shared.d.mts +1 -1
- package/dist/shared.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WalkObjectStopFn, C as CreateCssContext, M as MappedObject } from './shared-
|
|
2
|
-
export {
|
|
1
|
+
import { W as WalkObjectStopFn, C as CreateCssContext, M as MappedObject } from './shared-DHsOF1Vt.mjs';
|
|
2
|
+
export { z as WalkObjectOptions, h as compact, f as createCss, g as createMergeCss, k as filterBaseConditions, s as getPatternStyles, v as getSlotCompoundVariant, u as getSlotRecipes, l as hypenateProperty, j as isBaseCondition, a as isBoolean, b as isFunction, m as isImportant, c as isObject, e as isObjectOrArray, i as isString, d as isSymbol, B as mapObject, o as markImportant, p as memo, q as mergeProps, r as patternFns, x as splitProps, t as toHash, y as uniq, A as walkObject, w as withoutImportant, n as withoutSpace } from './shared-DHsOF1Vt.mjs';
|
|
3
3
|
export { astish } from './astish.mjs';
|
|
4
4
|
|
|
5
5
|
declare const getArbitraryValue: (_value: string) => string;
|
|
@@ -88,6 +88,11 @@ declare const isCssUnit: (v: unknown) => boolean;
|
|
|
88
88
|
|
|
89
89
|
declare const isCssVar: (v: unknown) => boolean;
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Credits: https://github.com/mesqueeb/merge-anything
|
|
93
|
+
*/
|
|
94
|
+
declare function mergeAndConcat<T, const Tn extends unknown[]>(object: T, ...otherObjects: Tn): any;
|
|
95
|
+
|
|
91
96
|
declare function mergeWith(target: any, ...sources: any[]): any;
|
|
92
97
|
|
|
93
98
|
type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
|
|
@@ -143,4 +148,4 @@ declare function toPx(value?: string | number): string | undefined;
|
|
|
143
148
|
declare function toEm(value?: string, fontSize?: number): string | undefined;
|
|
144
149
|
declare function toRem(value?: string): string | undefined;
|
|
145
150
|
|
|
146
|
-
export { CacheMap, CreateCssContext, type CssVar, type CssVarOptions, type MapToRecord, MappedObject, PANDA_CONFIG_NAME, PandaError, type PandaErrorCode, WalkObjectStopFn, assign, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, deepSet, entries, esc, flatten, fromEntries, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getPropertyPriority, getUnit, isCssFunction, isCssUnit, isCssVar, mapEntries, mapToJson, mergeWith, normalizeStyleObject, omit, parseJson, pick, splitBy, splitDotPath, stringifyJson, toEm, toPx, toRem, toResponsiveObject, traverse, uncapitalize, unionType };
|
|
151
|
+
export { CacheMap, CreateCssContext, type CssVar, type CssVarOptions, type MapToRecord, MappedObject, PANDA_CONFIG_NAME, PandaError, type PandaErrorCode, WalkObjectStopFn, assign, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, deepSet, entries, esc, flatten, fromEntries, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getPropertyPriority, getUnit, isCssFunction, isCssUnit, isCssVar, mapEntries, mapToJson, mergeAndConcat, mergeWith, normalizeStyleObject, omit, parseJson, pick, 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, C as CreateCssContext, M as MappedObject } from './shared-
|
|
2
|
-
export {
|
|
1
|
+
import { W as WalkObjectStopFn, C as CreateCssContext, M as MappedObject } from './shared-DHsOF1Vt.js';
|
|
2
|
+
export { z as WalkObjectOptions, h as compact, f as createCss, g as createMergeCss, k as filterBaseConditions, s as getPatternStyles, v as getSlotCompoundVariant, u as getSlotRecipes, l as hypenateProperty, j as isBaseCondition, a as isBoolean, b as isFunction, m as isImportant, c as isObject, e as isObjectOrArray, i as isString, d as isSymbol, B as mapObject, o as markImportant, p as memo, q as mergeProps, r as patternFns, x as splitProps, t as toHash, y as uniq, A as walkObject, w as withoutImportant, n as withoutSpace } from './shared-DHsOF1Vt.js';
|
|
3
3
|
export { astish } from './astish.js';
|
|
4
4
|
|
|
5
5
|
declare const getArbitraryValue: (_value: string) => string;
|
|
@@ -88,6 +88,11 @@ declare const isCssUnit: (v: unknown) => boolean;
|
|
|
88
88
|
|
|
89
89
|
declare const isCssVar: (v: unknown) => boolean;
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Credits: https://github.com/mesqueeb/merge-anything
|
|
93
|
+
*/
|
|
94
|
+
declare function mergeAndConcat<T, const Tn extends unknown[]>(object: T, ...otherObjects: Tn): any;
|
|
95
|
+
|
|
91
96
|
declare function mergeWith(target: any, ...sources: any[]): any;
|
|
92
97
|
|
|
93
98
|
type NormalizeContext = Pick<CreateCssContext, 'utility' | 'conditions'>;
|
|
@@ -143,4 +148,4 @@ declare function toPx(value?: string | number): string | undefined;
|
|
|
143
148
|
declare function toEm(value?: string, fontSize?: number): string | undefined;
|
|
144
149
|
declare function toRem(value?: string): string | undefined;
|
|
145
150
|
|
|
146
|
-
export { CacheMap, CreateCssContext, type CssVar, type CssVarOptions, type MapToRecord, MappedObject, PANDA_CONFIG_NAME, PandaError, type PandaErrorCode, WalkObjectStopFn, assign, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, deepSet, entries, esc, flatten, fromEntries, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getPropertyPriority, getUnit, isCssFunction, isCssUnit, isCssVar, mapEntries, mapToJson, mergeWith, normalizeStyleObject, omit, parseJson, pick, splitBy, splitDotPath, stringifyJson, toEm, toPx, toRem, toResponsiveObject, traverse, uncapitalize, unionType };
|
|
151
|
+
export { CacheMap, CreateCssContext, type CssVar, type CssVarOptions, type MapToRecord, MappedObject, PANDA_CONFIG_NAME, PandaError, type PandaErrorCode, WalkObjectStopFn, assign, calc, camelCaseProperty, capitalize, createRegex, cssVar, dashCase, deepSet, entries, esc, flatten, fromEntries, getArbitraryValue, getDotPath, getNegativePath, getOrCreateSet, getPropertyPriority, getUnit, isCssFunction, isCssUnit, isCssVar, mapEntries, mapToJson, mergeAndConcat, mergeWith, normalizeStyleObject, omit, parseJson, pick, splitBy, splitDotPath, stringifyJson, toEm, toPx, toRem, toResponsiveObject, traverse, uncapitalize, unionType };
|
package/dist/index.js
CHANGED
|
@@ -60,11 +60,13 @@ __export(index_exports, {
|
|
|
60
60
|
isObject: () => isObject,
|
|
61
61
|
isObjectOrArray: () => isObjectOrArray,
|
|
62
62
|
isString: () => isString,
|
|
63
|
+
isSymbol: () => isSymbol,
|
|
63
64
|
mapEntries: () => mapEntries,
|
|
64
65
|
mapObject: () => mapObject,
|
|
65
66
|
mapToJson: () => mapToJson,
|
|
66
67
|
markImportant: () => markImportant,
|
|
67
68
|
memo: () => memo,
|
|
69
|
+
mergeAndConcat: () => mergeAndConcat,
|
|
68
70
|
mergeProps: () => mergeProps,
|
|
69
71
|
mergeWith: () => mergeWith,
|
|
70
72
|
normalizeStyleObject: () => normalizeStyleObject,
|
|
@@ -122,6 +124,7 @@ var isFunction = (v) => typeof v === "function";
|
|
|
122
124
|
function isObject(value) {
|
|
123
125
|
return typeof value === "object" && value != null && !Array.isArray(value);
|
|
124
126
|
}
|
|
127
|
+
var isSymbol = (v) => typeof v === "symbol";
|
|
125
128
|
var isObjectOrArray = (obj) => typeof obj === "object" && obj !== null;
|
|
126
129
|
|
|
127
130
|
// src/assign.ts
|
|
@@ -627,11 +630,72 @@ var isCssUnit = (v) => typeof v === "string" && lengthRegExp.test(v);
|
|
|
627
630
|
// src/is-css-var.ts
|
|
628
631
|
var isCssVar2 = (v) => typeof v === "string" && /^var\(--.+\)$/.test(v);
|
|
629
632
|
|
|
633
|
+
// src/merge-anything.ts
|
|
634
|
+
var MERGE_OMIT2 = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
635
|
+
function concatArrays(originVal, newVal) {
|
|
636
|
+
if (Array.isArray(originVal) && Array.isArray(newVal)) {
|
|
637
|
+
return originVal.concat(newVal);
|
|
638
|
+
}
|
|
639
|
+
return newVal;
|
|
640
|
+
}
|
|
641
|
+
function assignProp(carry, key, newVal, originalObject) {
|
|
642
|
+
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
|
|
643
|
+
if (propType === "enumerable") carry[key] = newVal;
|
|
644
|
+
if (propType === "nonenumerable") {
|
|
645
|
+
Object.defineProperty(carry, key, {
|
|
646
|
+
value: newVal,
|
|
647
|
+
enumerable: false,
|
|
648
|
+
writable: true,
|
|
649
|
+
configurable: true
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
function mergeRecursively(origin, newComer, compareFn) {
|
|
654
|
+
if (!isObject(newComer)) return newComer;
|
|
655
|
+
let newObject = {};
|
|
656
|
+
if (isObject(origin)) {
|
|
657
|
+
const props2 = Object.getOwnPropertyNames(origin);
|
|
658
|
+
const symbols2 = Object.getOwnPropertySymbols(origin);
|
|
659
|
+
newObject = [...props2, ...symbols2].reduce(
|
|
660
|
+
(carry, key) => {
|
|
661
|
+
if (isString(key) && MERGE_OMIT2.has(key)) return carry;
|
|
662
|
+
const targetVal = origin[key];
|
|
663
|
+
if (!isSymbol(key) && !Object.getOwnPropertyNames(newComer).includes(key) || isSymbol(key) && !Object.getOwnPropertySymbols(newComer).includes(key)) {
|
|
664
|
+
assignProp(carry, key, targetVal, origin);
|
|
665
|
+
}
|
|
666
|
+
return carry;
|
|
667
|
+
},
|
|
668
|
+
{}
|
|
669
|
+
);
|
|
670
|
+
}
|
|
671
|
+
const props = Object.getOwnPropertyNames(newComer);
|
|
672
|
+
const symbols = Object.getOwnPropertySymbols(newComer);
|
|
673
|
+
const result = [...props, ...symbols].reduce((carry, key) => {
|
|
674
|
+
if (isString(key) && MERGE_OMIT2.has(key)) return carry;
|
|
675
|
+
let newVal = newComer[key];
|
|
676
|
+
const targetVal = isObject(origin) ? origin[key] : void 0;
|
|
677
|
+
if (targetVal !== void 0 && isObject(newVal)) {
|
|
678
|
+
newVal = mergeRecursively(targetVal, newVal, compareFn);
|
|
679
|
+
}
|
|
680
|
+
const propToAssign = compareFn ? compareFn(targetVal, newVal, key) : newVal;
|
|
681
|
+
assignProp(carry, key, propToAssign, newComer);
|
|
682
|
+
return carry;
|
|
683
|
+
}, newObject);
|
|
684
|
+
return result;
|
|
685
|
+
}
|
|
686
|
+
function mergeAndConcat(object, ...otherObjects) {
|
|
687
|
+
return otherObjects.reduce((result, newComer) => {
|
|
688
|
+
return mergeRecursively(result, newComer, concatArrays);
|
|
689
|
+
}, object);
|
|
690
|
+
}
|
|
691
|
+
|
|
630
692
|
// src/merge-with.ts
|
|
693
|
+
var MERGE_OMIT3 = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
631
694
|
function mergeWith(target, ...sources) {
|
|
632
695
|
const customizer = sources.pop();
|
|
633
696
|
for (const source of sources) {
|
|
634
697
|
for (const key in source) {
|
|
698
|
+
if (isString(key) && MERGE_OMIT3.has(key)) continue;
|
|
635
699
|
const merged = customizer(target[key], source[key]);
|
|
636
700
|
if (merged === void 0) {
|
|
637
701
|
if (isObject(target[key]) && isObject(source[key])) {
|
|
@@ -698,6 +762,19 @@ var omit = (obj, paths) => {
|
|
|
698
762
|
// src/panda-config-name.ts
|
|
699
763
|
var PANDA_CONFIG_NAME = "__panda.config__";
|
|
700
764
|
|
|
765
|
+
// src/pattern-fns.ts
|
|
766
|
+
var patternFns = {
|
|
767
|
+
map: mapObject,
|
|
768
|
+
isCssFunction,
|
|
769
|
+
isCssVar: isCssVar2,
|
|
770
|
+
isCssUnit
|
|
771
|
+
};
|
|
772
|
+
var getPatternStyles = (pattern, styles) => {
|
|
773
|
+
if (!pattern?.defaultValues) return styles;
|
|
774
|
+
const defaults = typeof pattern.defaultValues === "function" ? pattern.defaultValues(styles) : pattern.defaultValues;
|
|
775
|
+
return Object.assign({}, defaults, compact(styles));
|
|
776
|
+
};
|
|
777
|
+
|
|
701
778
|
// src/split.ts
|
|
702
779
|
function splitBy(value, separator = ",") {
|
|
703
780
|
const result = [];
|
|
@@ -760,19 +837,6 @@ var pick = (obj, paths) => {
|
|
|
760
837
|
return result;
|
|
761
838
|
};
|
|
762
839
|
|
|
763
|
-
// src/pattern-fns.ts
|
|
764
|
-
var patternFns = {
|
|
765
|
-
map: mapObject,
|
|
766
|
-
isCssFunction,
|
|
767
|
-
isCssVar: isCssVar2,
|
|
768
|
-
isCssUnit
|
|
769
|
-
};
|
|
770
|
-
var getPatternStyles = (pattern, styles) => {
|
|
771
|
-
if (!pattern?.defaultValues) return styles;
|
|
772
|
-
const defaults = typeof pattern.defaultValues === "function" ? pattern.defaultValues(styles) : pattern.defaultValues;
|
|
773
|
-
return Object.assign({}, defaults, compact(styles));
|
|
774
|
-
};
|
|
775
|
-
|
|
776
840
|
// src/property-priority.ts
|
|
777
841
|
var longHandPhysical = /* @__PURE__ */ new Set();
|
|
778
842
|
var longHandLogical = /* @__PURE__ */ new Set();
|
|
@@ -1419,11 +1483,13 @@ function toRem(value = "") {
|
|
|
1419
1483
|
isObject,
|
|
1420
1484
|
isObjectOrArray,
|
|
1421
1485
|
isString,
|
|
1486
|
+
isSymbol,
|
|
1422
1487
|
mapEntries,
|
|
1423
1488
|
mapObject,
|
|
1424
1489
|
mapToJson,
|
|
1425
1490
|
markImportant,
|
|
1426
1491
|
memo,
|
|
1492
|
+
mergeAndConcat,
|
|
1427
1493
|
mergeProps,
|
|
1428
1494
|
mergeWith,
|
|
1429
1495
|
normalizeStyleObject,
|
package/dist/index.mjs
CHANGED
|
@@ -29,6 +29,7 @@ var isFunction = (v) => typeof v === "function";
|
|
|
29
29
|
function isObject(value) {
|
|
30
30
|
return typeof value === "object" && value != null && !Array.isArray(value);
|
|
31
31
|
}
|
|
32
|
+
var isSymbol = (v) => typeof v === "symbol";
|
|
32
33
|
var isObjectOrArray = (obj) => typeof obj === "object" && obj !== null;
|
|
33
34
|
|
|
34
35
|
// src/assign.ts
|
|
@@ -534,11 +535,72 @@ var isCssUnit = (v) => typeof v === "string" && lengthRegExp.test(v);
|
|
|
534
535
|
// src/is-css-var.ts
|
|
535
536
|
var isCssVar2 = (v) => typeof v === "string" && /^var\(--.+\)$/.test(v);
|
|
536
537
|
|
|
538
|
+
// src/merge-anything.ts
|
|
539
|
+
var MERGE_OMIT2 = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
540
|
+
function concatArrays(originVal, newVal) {
|
|
541
|
+
if (Array.isArray(originVal) && Array.isArray(newVal)) {
|
|
542
|
+
return originVal.concat(newVal);
|
|
543
|
+
}
|
|
544
|
+
return newVal;
|
|
545
|
+
}
|
|
546
|
+
function assignProp(carry, key, newVal, originalObject) {
|
|
547
|
+
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
|
|
548
|
+
if (propType === "enumerable") carry[key] = newVal;
|
|
549
|
+
if (propType === "nonenumerable") {
|
|
550
|
+
Object.defineProperty(carry, key, {
|
|
551
|
+
value: newVal,
|
|
552
|
+
enumerable: false,
|
|
553
|
+
writable: true,
|
|
554
|
+
configurable: true
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
function mergeRecursively(origin, newComer, compareFn) {
|
|
559
|
+
if (!isObject(newComer)) return newComer;
|
|
560
|
+
let newObject = {};
|
|
561
|
+
if (isObject(origin)) {
|
|
562
|
+
const props2 = Object.getOwnPropertyNames(origin);
|
|
563
|
+
const symbols2 = Object.getOwnPropertySymbols(origin);
|
|
564
|
+
newObject = [...props2, ...symbols2].reduce(
|
|
565
|
+
(carry, key) => {
|
|
566
|
+
if (isString(key) && MERGE_OMIT2.has(key)) return carry;
|
|
567
|
+
const targetVal = origin[key];
|
|
568
|
+
if (!isSymbol(key) && !Object.getOwnPropertyNames(newComer).includes(key) || isSymbol(key) && !Object.getOwnPropertySymbols(newComer).includes(key)) {
|
|
569
|
+
assignProp(carry, key, targetVal, origin);
|
|
570
|
+
}
|
|
571
|
+
return carry;
|
|
572
|
+
},
|
|
573
|
+
{}
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
const props = Object.getOwnPropertyNames(newComer);
|
|
577
|
+
const symbols = Object.getOwnPropertySymbols(newComer);
|
|
578
|
+
const result = [...props, ...symbols].reduce((carry, key) => {
|
|
579
|
+
if (isString(key) && MERGE_OMIT2.has(key)) return carry;
|
|
580
|
+
let newVal = newComer[key];
|
|
581
|
+
const targetVal = isObject(origin) ? origin[key] : void 0;
|
|
582
|
+
if (targetVal !== void 0 && isObject(newVal)) {
|
|
583
|
+
newVal = mergeRecursively(targetVal, newVal, compareFn);
|
|
584
|
+
}
|
|
585
|
+
const propToAssign = compareFn ? compareFn(targetVal, newVal, key) : newVal;
|
|
586
|
+
assignProp(carry, key, propToAssign, newComer);
|
|
587
|
+
return carry;
|
|
588
|
+
}, newObject);
|
|
589
|
+
return result;
|
|
590
|
+
}
|
|
591
|
+
function mergeAndConcat(object, ...otherObjects) {
|
|
592
|
+
return otherObjects.reduce((result, newComer) => {
|
|
593
|
+
return mergeRecursively(result, newComer, concatArrays);
|
|
594
|
+
}, object);
|
|
595
|
+
}
|
|
596
|
+
|
|
537
597
|
// src/merge-with.ts
|
|
598
|
+
var MERGE_OMIT3 = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
538
599
|
function mergeWith(target, ...sources) {
|
|
539
600
|
const customizer = sources.pop();
|
|
540
601
|
for (const source of sources) {
|
|
541
602
|
for (const key in source) {
|
|
603
|
+
if (isString(key) && MERGE_OMIT3.has(key)) continue;
|
|
542
604
|
const merged = customizer(target[key], source[key]);
|
|
543
605
|
if (merged === void 0) {
|
|
544
606
|
if (isObject(target[key]) && isObject(source[key])) {
|
|
@@ -605,6 +667,19 @@ var omit = (obj, paths) => {
|
|
|
605
667
|
// src/panda-config-name.ts
|
|
606
668
|
var PANDA_CONFIG_NAME = "__panda.config__";
|
|
607
669
|
|
|
670
|
+
// src/pattern-fns.ts
|
|
671
|
+
var patternFns = {
|
|
672
|
+
map: mapObject,
|
|
673
|
+
isCssFunction,
|
|
674
|
+
isCssVar: isCssVar2,
|
|
675
|
+
isCssUnit
|
|
676
|
+
};
|
|
677
|
+
var getPatternStyles = (pattern, styles) => {
|
|
678
|
+
if (!pattern?.defaultValues) return styles;
|
|
679
|
+
const defaults = typeof pattern.defaultValues === "function" ? pattern.defaultValues(styles) : pattern.defaultValues;
|
|
680
|
+
return Object.assign({}, defaults, compact(styles));
|
|
681
|
+
};
|
|
682
|
+
|
|
608
683
|
// src/split.ts
|
|
609
684
|
function splitBy(value, separator = ",") {
|
|
610
685
|
const result = [];
|
|
@@ -667,19 +742,6 @@ var pick = (obj, paths) => {
|
|
|
667
742
|
return result;
|
|
668
743
|
};
|
|
669
744
|
|
|
670
|
-
// src/pattern-fns.ts
|
|
671
|
-
var patternFns = {
|
|
672
|
-
map: mapObject,
|
|
673
|
-
isCssFunction,
|
|
674
|
-
isCssVar: isCssVar2,
|
|
675
|
-
isCssUnit
|
|
676
|
-
};
|
|
677
|
-
var getPatternStyles = (pattern, styles) => {
|
|
678
|
-
if (!pattern?.defaultValues) return styles;
|
|
679
|
-
const defaults = typeof pattern.defaultValues === "function" ? pattern.defaultValues(styles) : pattern.defaultValues;
|
|
680
|
-
return Object.assign({}, defaults, compact(styles));
|
|
681
|
-
};
|
|
682
|
-
|
|
683
745
|
// src/property-priority.ts
|
|
684
746
|
var longHandPhysical = /* @__PURE__ */ new Set();
|
|
685
747
|
var longHandLogical = /* @__PURE__ */ new Set();
|
|
@@ -1325,11 +1387,13 @@ export {
|
|
|
1325
1387
|
isObject,
|
|
1326
1388
|
isObjectOrArray,
|
|
1327
1389
|
isString,
|
|
1390
|
+
isSymbol,
|
|
1328
1391
|
mapEntries,
|
|
1329
1392
|
mapObject,
|
|
1330
1393
|
mapToJson,
|
|
1331
1394
|
markImportant,
|
|
1332
1395
|
memo,
|
|
1396
|
+
mergeAndConcat,
|
|
1333
1397
|
mergeProps,
|
|
1334
1398
|
mergeWith,
|
|
1335
1399
|
normalizeStyleObject,
|
|
@@ -3,6 +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 isSymbol: (v: any) => v is symbol;
|
|
6
7
|
declare const isObjectOrArray: (obj: unknown) => obj is object;
|
|
7
8
|
|
|
8
9
|
interface CreateCssContext {
|
|
@@ -92,4 +93,4 @@ declare function splitProps(props: Dict, ...keys: Key[]): Dict[];
|
|
|
92
93
|
|
|
93
94
|
declare const uniq: <T>(...items: T[][]) => T[];
|
|
94
95
|
|
|
95
|
-
export {
|
|
96
|
+
export { walkObject as A, mapObject as B, type CreateCssContext as C, type MappedObject as M, type WalkObjectStopFn as W, isBoolean as a, isFunction as b, isObject as c, isSymbol as d, isObjectOrArray as e, createCss as f, createMergeCss as g, compact as h, isString as i, isBaseCondition as j, filterBaseConditions as k, hypenateProperty as l, isImportant as m, withoutSpace as n, markImportant as o, memo as p, mergeProps as q, patternFns as r, getPatternStyles as s, toHash as t, getSlotRecipes as u, getSlotCompoundVariant as v, withoutImportant as w, splitProps as x, uniq as y, type WalkObjectOptions as z };
|
|
@@ -3,6 +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 isSymbol: (v: any) => v is symbol;
|
|
6
7
|
declare const isObjectOrArray: (obj: unknown) => obj is object;
|
|
7
8
|
|
|
8
9
|
interface CreateCssContext {
|
|
@@ -92,4 +93,4 @@ declare function splitProps(props: Dict, ...keys: Key[]): Dict[];
|
|
|
92
93
|
|
|
93
94
|
declare const uniq: <T>(...items: T[][]) => T[];
|
|
94
95
|
|
|
95
|
-
export {
|
|
96
|
+
export { walkObject as A, mapObject as B, type CreateCssContext as C, type MappedObject as M, type WalkObjectStopFn as W, isBoolean as a, isFunction as b, isObject as c, isSymbol as d, isObjectOrArray as e, createCss as f, createMergeCss as g, compact as h, isString as i, isBaseCondition as j, filterBaseConditions as k, hypenateProperty as l, isImportant as m, withoutSpace as n, markImportant as o, memo as p, mergeProps as q, patternFns as r, getPatternStyles as s, toHash as t, getSlotRecipes as u, getSlotCompoundVariant as v, withoutImportant as w, splitProps as x, uniq as y, type WalkObjectOptions as z };
|
package/dist/shared.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { h as compact, f as createCss, g as createMergeCss, k as filterBaseConditions, s as getPatternStyles, v as getSlotCompoundVariant, u as getSlotRecipes, l as hypenateProperty, j as isBaseCondition, c as isObject, B as mapObject, p as memo, q as mergeProps, r as patternFns, x as splitProps, t as toHash, y as uniq, A as walkObject, n as withoutSpace } from './shared-DHsOF1Vt.mjs';
|
package/dist/shared.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { h as compact, f as createCss, g as createMergeCss, k as filterBaseConditions, s as getPatternStyles, v as getSlotCompoundVariant, u as getSlotRecipes, l as hypenateProperty, j as isBaseCondition, c as isObject, B as mapObject, p as memo, q as mergeProps, r as patternFns, x as splitProps, t as toHash, y as uniq, A as walkObject, n as withoutSpace } from './shared-DHsOF1Vt.js';
|