@yamada-ui/utils
Advanced tools
Comparing version 1.3.0 to 1.3.1-dev-20240630233559
@@ -6,4 +6,4 @@ import { Dict } from './index.types.js'; | ||
declare const tones: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950]; | ||
declare const isGray: (colorScheme: string) => boolean; | ||
declare const isAccessible: (colorScheme: string) => boolean; | ||
declare const isGray: (colorScheme: string) => colorScheme is "gray" | "neutral"; | ||
declare const isAccessible: (colorScheme: string) => colorScheme is "yellow" | "cyan" | "lime"; | ||
declare const getColor: (color: string, fallback?: string) => (theme?: Dict, colorMode?: ColorMode) => string; | ||
@@ -10,0 +10,0 @@ declare const lightenColor: (color: string, amount: number) => (theme?: Dict, colorMode?: ColorMode) => string; |
declare const noop: () => void; | ||
declare const runIfFunc: <T, U extends any[]>(valOrFunc: T | ((...funcArgs: U) => T), ...args: U) => T; | ||
declare const handlerAll: <T extends (event: any, ...args: any[]) => void>(...funcs: (T | undefined)[]) => (event: T extends (event: infer R, ...args: any[]) => any ? R : never, ...args: T extends (event: any, ...args: infer R_1) => any ? R_1 : never) => void; | ||
declare const runIfFunc: <T, U extends Array<any>>(valOrFunc: T | ((...funcArgs: U) => T), ...args: U) => T; | ||
declare const handlerAll: <T extends (event: any, ...args: any[]) => void>(...funcs: (T | undefined)[]) => (event: T extends (event: infer R, ...args: any[]) => any ? R : never, ...args: T extends (event: any, ...args: infer R) => any ? R : never) => void; | ||
declare const funcAll: <T extends (...args: any[]) => any>(...funcs: (T | undefined)[]) => (...args: T extends (...args: infer R) => any ? R : never) => void; | ||
export { funcAll, handlerAll, noop, runIfFunc }; |
@@ -8,3 +8,3 @@ type Primitive = null | undefined | string | number | boolean | symbol | bigint; | ||
type ObjectLiteral = {}; | ||
type StringLiteral = string & ObjectLiteral; | ||
type StringLiteral = string & {}; | ||
type Union<T> = T | StringLiteral; | ||
@@ -11,0 +11,0 @@ type Length = string | 0 | number; |
{ | ||
"name": "@yamada-ui/utils", | ||
"version": "1.3.0", | ||
"version": "1.3.1-dev-20240630233559", | ||
"description": "Yamada UI utils", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
380593
1