@yamada-ui/utils
Advanced tools
Comparing version 1.0.1-next-20231228211945 to 1.0.1-next-20231229025405
@@ -10,6 +10,4 @@ type Primitive = null | undefined | string | number | boolean | symbol | bigint; | ||
type Length = string | 0 | number; | ||
type Merge<T extends object> = { | ||
[K in keyof T]: T[K]; | ||
}; | ||
type Merge<Y, M> = M extends undefined ? Y : Omit<Y, keyof M> & M; | ||
export type { Dict, Length, Merge, Path, Primitive, StringLiteral, Union }; |
import * as React from 'react'; | ||
import { Merge } from './index.types.js'; | ||
type DOMElement = Element & HTMLOrSVGElement; | ||
type DataAttributes = { | ||
[dataAttr: string]: any; | ||
}; | ||
type DOMAttributes<Y = DOMElement> = React.AriaAttributes & React.DOMAttributes<Y> & DataAttributes & { | ||
type DOMAttributes<Y = DOMElement> = React.HTMLAttributes<Y> & React.AriaAttributes & React.DOMAttributes<Y> & { | ||
id?: string; | ||
@@ -13,5 +11,4 @@ role?: React.AriaRole; | ||
}; | ||
type Merge<Y, M> = M extends Record<string, unknown> ? Y : Omit<Y, keyof M> & M; | ||
type PropGetter<Y = Record<string, unknown>, M = DOMAttributes> = (props?: Merge<DOMAttributes, Y>, ref?: React.Ref<any>) => M & React.RefAttributes<any>; | ||
type RequiredPropGetter<Y = Record<string, unknown>, M = DOMAttributes> = (props: Merge<DOMAttributes, Y>, ref?: React.Ref<any>) => M & React.RefAttributes<any>; | ||
type PropGetter<Y = undefined, M = DOMAttributes> = (props?: Merge<DOMAttributes, Y>, ref?: React.Ref<any>) => M & React.RefAttributes<any>; | ||
type RequiredPropGetter<Y = undefined, M = DOMAttributes> = (props: Merge<DOMAttributes, Y>, ref?: React.Ref<any>) => M & React.RefAttributes<any>; | ||
type MaybeRenderProp<Y> = React.ReactNode | ((props: Y) => React.ReactNode); | ||
@@ -18,0 +15,0 @@ type Options = { |
{ | ||
"name": "@yamada-ui/utils", | ||
"version": "1.0.1-next-20231228211945", | ||
"version": "1.0.1-next-20231229025405", | ||
"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
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
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
320453
3828