@chakra-ui/utils
Advanced tools
Comparing version 0.0.0-dev-20240115120705 to 0.0.0-dev-20240224205404
@@ -1,1 +0,1 @@ | ||
export declare function contains(parent: HTMLElement | null, child: HTMLElement): boolean; | ||
export declare function contains(parent: HTMLElement | null, child: HTMLElement | null): boolean; |
@@ -11,2 +11,3 @@ export * from "./add-dom-event"; | ||
export * from "./context"; | ||
export * from "./create-props"; | ||
export * from "./cx"; | ||
@@ -34,1 +35,2 @@ export * from "./event-point"; | ||
export * from "./warn"; | ||
export * from "./unit"; |
@@ -1,5 +0,9 @@ | ||
type Dict = Record<string, unknown>; | ||
type PredicateFn = (key: string) => boolean; | ||
type Key = PredicateFn | string[]; | ||
export declare function splitProps(props: Dict, ...keys: Key[]): Dict[]; | ||
type Dict = Record<string, any>; | ||
type PredicateFn<T> = (key: T) => boolean; | ||
export interface SplitPropsFn { | ||
<T extends Dict, K extends keyof T>(props: T, keys: K[]): [Pick<T, K>, Omit<T, K>]; | ||
<T extends Dict, K extends PredicateFn<keyof T>>(props: T, keys: K): [Dict, Dict]; | ||
} | ||
export declare const splitProps: SplitPropsFn; | ||
export declare const createSplitProps: <T>(keys: (keyof T)[]) => <Props extends T>(props: Props) => [T, Omit<Props, keyof T>]; | ||
export {}; |
{ | ||
"name": "@chakra-ui/utils", | ||
"version": "0.0.0-dev-20240115120705", | ||
"version": "0.0.0-dev-20240224205404", | ||
"description": "Common utilities and types for Chakra UI", | ||
@@ -27,3 +27,3 @@ "author": "Segun Adebayo <sage@adebayosegun.com>", | ||
"dependencies": { | ||
"@types/lodash.mergewith": "4.6.8", | ||
"@types/lodash.mergewith": "4.6.9", | ||
"lodash.mergewith": "4.6.2" | ||
@@ -159,2 +159,13 @@ }, | ||
}, | ||
"./create-props": { | ||
"source": "./src/create-props.ts", | ||
"import": { | ||
"types": "./dist/types/create-props.d.mts", | ||
"default": "./dist/esm/create-props.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/create-props.d.ts", | ||
"default": "./dist/cjs/create-props.cjs" | ||
} | ||
}, | ||
"./cx": { | ||
@@ -424,2 +435,13 @@ "source": "./src/cx.ts", | ||
}, | ||
"./unit": { | ||
"source": "./src/unit.ts", | ||
"import": { | ||
"types": "./dist/types/unit.d.mts", | ||
"default": "./dist/esm/unit.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/types/unit.d.ts", | ||
"default": "./dist/cjs/unit.cjs" | ||
} | ||
}, | ||
"./walk-object": { | ||
@@ -426,0 +448,0 @@ "source": "./src/walk-object.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86471
121
2050
+ Added@types/lodash.mergewith@4.6.9(transitive)
- Removed@types/lodash.mergewith@4.6.8(transitive)