@mateosuarezdev/react-ui 1.0.52 → 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 +23 -11
- package/dist/index.js +2399 -2337
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -187,17 +187,6 @@ declare type ConfirmationDialogProps = {
|
|
|
187
187
|
trigger?: (open: () => void) => React.ReactNode;
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
-
export declare const createToastManager: (eventEmitter: EventEmitter_2) => {
|
|
191
|
-
simple: (message: string, data?: Partial<Toast>) => void;
|
|
192
|
-
info: (message: string, data?: Partial<Toast>) => void;
|
|
193
|
-
success: (message: string, data?: Partial<Toast>) => void;
|
|
194
|
-
warning: (message: string, data?: Partial<Toast>) => void;
|
|
195
|
-
error: (message: string, data?: Partial<Toast>) => void;
|
|
196
|
-
loading: (message: string, data?: Partial<Toast>) => string;
|
|
197
|
-
update: (id: string, newToast: Omit<Partial<Toast>, "id">) => void;
|
|
198
|
-
dismiss: (id: string) => void;
|
|
199
|
-
};
|
|
200
|
-
|
|
201
190
|
export declare const DatePickerDemo: default_2.FC;
|
|
202
191
|
|
|
203
192
|
export declare function DatePickerPopover({ customTrigger, scrollerId, }: {
|
|
@@ -450,6 +439,14 @@ export declare const ListItem: ({ onClick, lightSolid, className, children, }: {
|
|
|
450
439
|
children: React.ReactNode;
|
|
451
440
|
}) => JSX.Element;
|
|
452
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
|
+
|
|
453
450
|
declare interface ModalsContextType {
|
|
454
451
|
add: (id: string) => void;
|
|
455
452
|
remove: (id: string) => void;
|
|
@@ -844,6 +841,17 @@ declare type Toast = {
|
|
|
844
841
|
timeout?: number;
|
|
845
842
|
};
|
|
846
843
|
|
|
844
|
+
export declare const toast: {
|
|
845
|
+
simple: (message: string, data?: Partial<Toast>) => void;
|
|
846
|
+
info: (message: string, data?: Partial<Toast>) => void;
|
|
847
|
+
success: (message: string, data?: Partial<Toast>) => void;
|
|
848
|
+
warning: (message: string, data?: Partial<Toast>) => void;
|
|
849
|
+
error: (message: string, data?: Partial<Toast>) => void;
|
|
850
|
+
loading: (message: string, data?: Partial<Toast>) => string;
|
|
851
|
+
update: (id: string, newToast: Omit<Partial<Toast>, "id">) => void;
|
|
852
|
+
dismiss: (id: string) => void;
|
|
853
|
+
};
|
|
854
|
+
|
|
847
855
|
declare type ToastColors = {
|
|
848
856
|
success?: string;
|
|
849
857
|
simple?: string;
|
|
@@ -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;
|