react-simple-dialogs
Advanced tools
Comparing version 1.2.2 to 1.2.3
import { DialogProps } from '../utils'; | ||
export type AlertOptions = DialogProps<{ | ||
export type AlertProps = DialogProps<{ | ||
closeLabel?: string; | ||
}>; | ||
export declare const simpleAlert: (props: AlertOptions) => Promise<void>; | ||
export declare const simpleAlert: (props: AlertProps) => Promise<void>; | ||
//# sourceMappingURL=simple-alert.d.ts.map |
import { DialogProps } from '../utils'; | ||
export type ConfirmOptions = DialogProps<{ | ||
export type ConfirmProps = DialogProps<{ | ||
cancelLabel?: string; | ||
confirmLabel?: string; | ||
}>; | ||
export declare const simpleConfirm: (props: ConfirmOptions) => Promise<boolean>; | ||
export declare const simpleConfirm: (props: ConfirmProps) => Promise<boolean>; | ||
//# sourceMappingURL=simple-confirm.d.ts.map |
@@ -1,4 +0,3 @@ | ||
import { PromptResult } from 'src/components/dialogs/prompt'; | ||
import { DialogProps } from '../utils'; | ||
export type PromptOptions = DialogProps<{ | ||
export type PromptProps = DialogProps<{ | ||
cancelLabel?: string; | ||
@@ -8,3 +7,3 @@ confirmLabel?: string; | ||
}>; | ||
export declare const simplePrompt: (props: PromptOptions) => Promise<PromptResult>; | ||
export declare const simplePrompt: (props: PromptProps) => Promise<string | null>; | ||
//# sourceMappingURL=simple-prompt.d.ts.map |
@@ -1,6 +0,6 @@ | ||
export { simpleAlert, type AlertOptions } from './dialogs/simple-alert'; | ||
export { simpleConfirm, type ConfirmOptions } from './dialogs/simple-confirm'; | ||
export { simpleAlert } from './dialogs/simple-alert'; | ||
export { simpleConfirm } from './dialogs/simple-confirm'; | ||
export { simpleModal } from './dialogs/simple-modal'; | ||
export { simplePrompt, type PromptOptions } from './dialogs/simple-prompt'; | ||
export { simplePrompt } from './dialogs/simple-prompt'; | ||
export { SimpleDialogContainer } from './simple-dialog-container'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "react-simple-dialogs", | ||
"private": false, | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"author": "Pedro Henrique Pires", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
70146
1035