react-confirm-alert 3.0.5 → 3.1.0

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.
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/index.d.ts CHANGED
@@ -1,31 +1,2 @@
1
- import React, { ButtonHTMLAttributes } from 'react';
2
-
3
- declare module 'react-confirm-alert' {
4
- export interface ReactConfirmAlertProps {
5
- targetId?: string
6
- title?: string
7
- message?: string
8
- buttons?: Array<{
9
- label: string
10
- className?: string
11
- } & ButtonHTMLAttributes<HTMLButtonElement>>
12
- childrenElement?: () => React.ReactNode
13
- customUI?: (customUiOptions: {
14
- title: string
15
- message: string
16
- onClose: () => void
17
- }) => React.ReactNode
18
- closeOnClickOutside?: boolean
19
- closeOnEscape?: boolean
20
- keyCodeForClose?: Array<number>
21
- willUnmount?: () => void
22
- onClickOutside?: () => void
23
- onKeypressEscape?: () => void
24
- onkeyPress?: () => void
25
- overlayClassName?: string
26
- }
27
-
28
- export function confirmAlert(options: ReactConfirmAlertProps): void
29
-
30
- export default class ReactConfirmAlert extends React.Component<ReactConfirmAlertProps> {}
31
- }
1
+ export * from './typings/index'
2
+ export { default } from './typings/index'