Socket
Socket
Sign inDemoInstall

@chakra-ui/shared-utils

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/shared-utils - npm Package Compare versions

Comparing version 0.0.0-dev-20220818145526 to 0.0.0-dev-20220818153935

6

dist/index.cjs.js

@@ -23,4 +23,6 @@ "use strict";

__export(src_exports, {
ariaAttr: () => ariaAttr,
callAllHandlers: () => callAllHandlers,
cx: () => cx,
dataAttr: () => dataAttr,
isObject: () => isObject,

@@ -57,6 +59,10 @@ runIfFn: () => runIfFn,

var isFunction = (value) => typeof value === "function";
var dataAttr = (condition) => condition ? "" : void 0;
var ariaAttr = (condition) => condition ? true : void 0;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ariaAttr,
callAllHandlers,
cx,
dataAttr,
isObject,

@@ -63,0 +69,0 @@ runIfFn,

8

dist/index.d.ts

@@ -1,3 +0,1 @@

declare type FunctionArguments<T extends Function> = T extends (...args: infer R) => any ? R : never;
declare const cx: (...classNames: any[]) => string;

@@ -11,4 +9,8 @@ declare function isObject(value: any): value is Record<string, any>;

declare function runIfFn<T, U>(valueOrFn: T | ((...fnArgs: U[]) => T), ...args: U[]): T;
declare type FunctionArguments<T extends Function> = T extends (...args: infer R) => any ? R : never;
declare function callAllHandlers<T extends (event: any) => void>(...fns: (T | undefined)[]): (event: FunctionArguments<T>[0]) => void;
declare type Booleanish = boolean | "true" | "false";
declare const dataAttr: (condition: boolean | undefined) => Booleanish;
declare const ariaAttr: (condition: boolean | undefined) => true | undefined;
export { callAllHandlers, cx, isObject, runIfFn, warn };
export { ariaAttr, callAllHandlers, cx, dataAttr, isObject, runIfFn, warn };

@@ -28,5 +28,9 @@ // src/index.ts

var isFunction = (value) => typeof value === "function";
var dataAttr = (condition) => condition ? "" : void 0;
var ariaAttr = (condition) => condition ? true : void 0;
export {
ariaAttr,
callAllHandlers,
cx,
dataAttr,
isObject,

@@ -33,0 +37,0 @@ runIfFn,

{
"name": "@chakra-ui/shared-utils",
"version": "0.0.0-dev-20220818145526",
"version": "0.0.0-dev-20220818153935",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [

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