Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chakra-ui/utils

Package Overview
Dependencies
Maintainers
2
Versions
283
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/utils - npm Package Compare versions

Comparing version 0.0.0-dev-20240115120705 to 0.0.0-dev-20240224205404

dist/cjs/create-props.cjs

2

dist/types/contains.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc