-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(modal): add missing modal typings (#586)
Fixes: #581
- Loading branch information
Showing
11 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
packages/patternfly-4/react-core/src/components/Modal/Backdrop.d.ts
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {SFC, HTMLProps, ReactNode} from 'react'; | ||
|
||
export interface BackdropProps extends HTMLProps<HTMLDivElement> { | ||
children?: ReactNode; | ||
className?: string; | ||
} | ||
|
||
declare const Backdrop: SFC<BackdropProps>; | ||
|
||
export default Backdrop; |
16 changes: 16 additions & 0 deletions
16
packages/patternfly-4/react-core/src/components/Modal/Modal.d.ts
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import {SFC, HTMLProps, ReactNode} from 'react'; | ||
|
||
export interface ModalProps extends HTMLProps<HTMLDivElement> { | ||
actions?: any, | ||
children: ReactNode; | ||
className?: string; | ||
hideTitle?: boolean; | ||
isLarge?: boolean; | ||
isOpen?: boolean; | ||
onClose?: Function; | ||
title: string; | ||
} | ||
|
||
declare const Modal: SFC<ModalProps>; | ||
|
||
export default Modal; |
13 changes: 13 additions & 0 deletions
13
packages/patternfly-4/react-core/src/components/Modal/ModalBox.d.ts
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {SFC, HTMLProps, ReactNode} from 'react'; | ||
|
||
export interface ModalBoxProps extends HTMLProps<HTMLDivElement> { | ||
children: ReactNode; | ||
className?: string; | ||
id: string; | ||
isLarge?: boolean; | ||
title: string; | ||
} | ||
|
||
declare const ModalBox: SFC<ModalBoxProps>; | ||
|
||
export default ModalBox; |
11 changes: 11 additions & 0 deletions
11
packages/patternfly-4/react-core/src/components/Modal/ModalBoxBody.d.ts
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {SFC, HTMLProps, ReactNode} from 'react'; | ||
|
||
export interface ModalBoxBodyProps extends HTMLProps<HTMLDivElement> { | ||
children?: ReactNode; | ||
className?: string; | ||
id?: string; | ||
} | ||
|
||
declare const ModalBoxBody: SFC<ModalBoxBodyProps>; | ||
|
||
export default ModalBoxBody; |
10 changes: 10 additions & 0 deletions
10
packages/patternfly-4/react-core/src/components/Modal/ModalBoxCloseButton.d.ts
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {SFC, HTMLProps, ReactNode} from 'react'; | ||
|
||
export interface ModalBoxCloseButtonProps extends HTMLProps<HTMLDivElement> { | ||
className?: string; | ||
onClose?: Function; | ||
} | ||
|
||
declare const ModalBoxCloseButton: SFC<ModalBoxCloseButtonProps>; | ||
|
||
export default ModalBoxCloseButton; |
10 changes: 10 additions & 0 deletions
10
packages/patternfly-4/react-core/src/components/Modal/ModalBoxFooter.d.ts
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {SFC, HTMLProps, ReactNode} from 'react'; | ||
|
||
export interface ModalBoxFooterProps extends HTMLProps<HTMLDivElement> { | ||
children?: ReactNode; | ||
className?: string; | ||
} | ||
|
||
declare const ModalBoxFooter: SFC<ModalBoxFooterProps>; | ||
|
||
export default ModalBoxFooter; |
10 changes: 10 additions & 0 deletions
10
packages/patternfly-4/react-core/src/components/Modal/ModalBoxHeader.d.ts
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import {SFC, HTMLProps, ReactNode} from 'react'; | ||
|
||
export interface ModalBoxHeaderProps extends HTMLProps<HTMLDivElement> { | ||
children?: ReactNode; | ||
className?: string; | ||
} | ||
|
||
declare const ModalBoxHeader: SFC<ModalBoxHeaderProps>; | ||
|
||
export default ModalBoxHeader; |
17 changes: 17 additions & 0 deletions
17
packages/patternfly-4/react-core/src/components/Modal/ModalContent.d.ts
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {SFC, HTMLProps, ReactNode} from 'react'; | ||
|
||
export interface ModalContentProps extends HTMLProps<HTMLDivElement> { | ||
children: ReactNode; | ||
className?: string; | ||
id: string; | ||
isLarge?: boolean; | ||
isOpen?: boolean; | ||
hideTitle?: boolean; | ||
actions?: any, | ||
onClose?: Function; | ||
title: string; | ||
} | ||
|
||
declare const ModalContent: SFC<ModalContentProps>; | ||
|
||
export default ModalContent; |
8 changes: 8 additions & 0 deletions
8
packages/patternfly-4/react-core/src/components/Modal/index.d.ts
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export { default as Backdrop, BackdropProps } from './Backdrop'; | ||
export { default as Modal, ModalProps } from './Modal'; | ||
export { default as ModalBox, ModalBoxProps } from './ModalBox'; | ||
export { default as ModalBoxBody, ModalBoxBodyProps } from './ModalBoxBody'; | ||
export { default as ModalBoxCloseButton, ModalBoxCloseButtonProps } from './ModalBoxCloseButton'; | ||
export { default as ModalBoxFooter, ModalBoxFooterProps } from './ModalBoxFooter'; | ||
export { default as ModalBoxHeader, ModalBoxHeaderProps } from './ModalBoxHeader'; | ||
export { default as ModalContent, ModalContentProps } from './ModalContent'; |
7 changes: 7 additions & 0 deletions
7
packages/patternfly-4/react-core/src/components/Modal/index.js
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 +1,8 @@ | ||
export { default as Backdrop } from './Backdrop'; | ||
export { default as Modal } from './Modal'; | ||
export { default as ModalBox } from './ModalBox'; | ||
export { default as ModalBoxBody } from './ModalBoxBody'; | ||
export { default as ModalBoxCloseButton } from './ModalBoxCloseButton'; | ||
export { default as ModalBoxFooter } from './ModalBoxFooter'; | ||
export { default as ModalBoxHeader } from './ModalBoxHeader'; | ||
export { default as ModalContent } from './ModalContent'; |
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