@mantine/utils
Advanced tools
Comparing version 5.9.6 to 5.10.0
@@ -1,4 +0,4 @@ | ||
declare type EventHandler<Event> = (event: Event) => void; | ||
type EventHandler<Event> = (event: Event) => void; | ||
export declare function createEventHandler<Event>(parentEventHandler: EventHandler<Event>, eventHandler: EventHandler<Event>): (event: Event) => void; | ||
export {}; | ||
//# sourceMappingURL=create-event-handler.d.ts.map |
import React from 'react'; | ||
declare type ExtendedProps<Props = {}, OverrideProps = {}> = OverrideProps & Omit<Props, keyof OverrideProps>; | ||
declare type ElementType = keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>; | ||
declare type PropsOf<C extends ElementType> = JSX.LibraryManagedAttributes<C, React.ComponentPropsWithoutRef<C>>; | ||
declare type ComponentProp<C> = { | ||
type ExtendedProps<Props = {}, OverrideProps = {}> = OverrideProps & Omit<Props, keyof OverrideProps>; | ||
type ElementType = keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>; | ||
type PropsOf<C extends ElementType> = JSX.LibraryManagedAttributes<C, React.ComponentPropsWithoutRef<C>>; | ||
type ComponentProp<C> = { | ||
component?: C; | ||
}; | ||
declare type InheritedProps<C extends ElementType, Props = {}> = ExtendedProps<PropsOf<C>, Props>; | ||
export declare type PolymorphicRef<C> = C extends React.ElementType ? React.ComponentPropsWithRef<C>['ref'] : never; | ||
export declare type PolymorphicComponentProps<C, Props = {}> = C extends React.ElementType ? InheritedProps<C, Props & ComponentProp<C>> & { | ||
type InheritedProps<C extends ElementType, Props = {}> = ExtendedProps<PropsOf<C>, Props>; | ||
export type PolymorphicRef<C> = C extends React.ElementType ? React.ComponentPropsWithRef<C>['ref'] : never; | ||
export type PolymorphicComponentProps<C, Props = {}> = C extends React.ElementType ? InheritedProps<C, Props & ComponentProp<C>> & { | ||
ref?: PolymorphicRef<C>; | ||
@@ -12,0 +12,0 @@ } : Props & { |
/// <reference types="react" /> | ||
export declare type ForwardRefWithStaticComponents<Props extends Record<string, any>, Static extends Record<string, any>> = ((props: Props) => React.ReactElement) & Static & { | ||
export type ForwardRefWithStaticComponents<Props extends Record<string, any>, Static extends Record<string, any>> = ((props: Props) => React.ReactElement) & Static & { | ||
displayName: string; | ||
}; | ||
//# sourceMappingURL=ForwardRefWithStaticComponents.d.ts.map |
{ | ||
"name": "@mantine/utils", | ||
"version": "5.9.6", | ||
"version": "5.10.0", | ||
"main": "cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "esm/index.js", |
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
86398