@mateosuarezdev/react-ui 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1972 -1910
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -439,6 +439,14 @@ export declare const ListItem: ({ onClick, lightSolid, className, children, }: {
|
|
|
439
439
|
children: React.ReactNode;
|
|
440
440
|
}) => JSX.Element;
|
|
441
441
|
|
|
442
|
+
declare interface LongPressOptions {
|
|
443
|
+
onLongPress?: (e: any) => void;
|
|
444
|
+
onTap?: (e: any) => void;
|
|
445
|
+
threshold?: number;
|
|
446
|
+
startDelay?: number;
|
|
447
|
+
moveThreshold?: number;
|
|
448
|
+
}
|
|
449
|
+
|
|
442
450
|
declare interface ModalsContextType {
|
|
443
451
|
add: (id: string) => void;
|
|
444
452
|
remove: (id: string) => void;
|
|
@@ -924,6 +932,8 @@ declare type UseKeyListenerOptions = {
|
|
|
924
932
|
*/
|
|
925
933
|
export declare const useLargeScreen: () => boolean;
|
|
926
934
|
|
|
935
|
+
export declare function useLongPress<T extends HTMLElement>({ onLongPress, onTap, threshold, startDelay, moveThreshold, }?: LongPressOptions): RefObject<T | null>;
|
|
936
|
+
|
|
927
937
|
export declare function useMergedRef<T>(...refs: React.Ref<T>[]): React.RefCallback<T>;
|
|
928
938
|
|
|
929
939
|
/**
|
|
@@ -937,6 +947,8 @@ export declare function useMethods<TSchema extends ZodTypeAny>(schema: TSchema,
|
|
|
937
947
|
|
|
938
948
|
export declare const useModals: () => ModalsContextType;
|
|
939
949
|
|
|
950
|
+
export declare const useNetwork: () => boolean;
|
|
951
|
+
|
|
940
952
|
export declare const useOverflow: <T extends HTMLElement>({ onOverflow, trackScroll, withObserver, enabled, deps, }?: {
|
|
941
953
|
onOverflow?: (info: OverflowInfo) => void;
|
|
942
954
|
trackScroll?: boolean;
|