forked from primefaces/primereact
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
94 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,3 @@ | |
position: relative; | ||
z-index: 1; | ||
} | ||
|
||
.p-button-label { | ||
transition: all .2s; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,18 @@ | ||
import { Dispatch, DependencyList, EffectCallback, Ref } from 'react'; | ||
import * as React from 'react'; | ||
|
||
export type TargetType = 'document' | 'window' | Ref<HTMLElement> | undefined; | ||
export type TargetType = 'document' | 'window' | React.Ref<HTMLElement> | undefined; | ||
export type StorageType = 'local' | 'session'; | ||
|
||
interface EventOptions { | ||
target?: TargetType; | ||
type?: string; | ||
listener?(event: Event): void; | ||
options?: any; | ||
when?: boolean; | ||
} | ||
|
||
interface OverlayEventOptions { | ||
target?: TargetType; | ||
overlay?: TargetType; | ||
listener?(event: Event, type?: string): void; | ||
when?: boolean; | ||
} | ||
|
||
interface ResizeEventOptions { | ||
listener?(event: Event): void; | ||
} | ||
|
||
export declare function usePrevious(value: any): any; | ||
export declare function useMountEffect(effect: EffectCallback): void; | ||
export declare function useUpdateEffect(effect: EffectCallback, deps?: DependencyList): void; | ||
export declare function useUnmountEffect(effect: EffectCallback): void; | ||
export declare function useMountEffect(effect: React.EffectCallback): void; | ||
export declare function useUpdateEffect(effect: React.EffectCallback, deps?: React.DependencyList): void; | ||
export declare function useUnmountEffect(effect: React.EffectCallback): void; | ||
export declare function useEventListener(options: EventOptions): any[]; | ||
export declare function useOverlayListener(options: OverlayEventOptions): any[]; | ||
export declare function useOverlayScrollListener(options: EventOptions): any[]; | ||
export declare function useResizeListener(options: ResizeEventOptions): any[]; | ||
export declare function useInterval(fn: any, delay?: number, when?: boolean): any[]; | ||
export declare function useTimeout(fn: any, delay?: number, when?: boolean): any[]; | ||
export declare function useStorage<S>(initialValue: S, key: string, storage?: StorageType): [S, Dispatch<SetStateAction<S>>]; | ||
export declare function useStorage<S>(initialValue: S, key: string, storage?: StorageType): [S, React.Dispatch<React.SetStateAction<S>>]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.