diff --git a/src/addons/Select/index.d.ts b/src/addons/Select/index.d.ts index 2f12e6b465..0fb0187a98 100644 --- a/src/addons/Select/index.d.ts +++ b/src/addons/Select/index.d.ts @@ -8,7 +8,6 @@ import { } from '../../modules/Dropdown'; export interface SelectProps extends DropdownProps { - selection: true; } interface SelectComponent extends React.StatelessComponent { diff --git a/src/collections/Form/index.d.ts b/src/collections/Form/index.d.ts index 74e51e4955..23d910ac8c 100644 --- a/src/collections/Form/index.d.ts +++ b/src/collections/Form/index.d.ts @@ -46,10 +46,6 @@ interface FormProps { widths?: 'equal'; } -interface FormOnSubmitData extends FormProps { - formData: {[key: string]: any}; -} - interface FormClass extends React.ComponentClass { Field: typeof FormField; Button: typeof FormButton; diff --git a/src/modules/Dropdown/index.d.ts b/src/modules/Dropdown/index.d.ts index 07d63a3674..31def45b35 100644 --- a/src/modules/Dropdown/index.d.ts +++ b/src/modules/Dropdown/index.d.ts @@ -106,7 +106,7 @@ export interface DropdownProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All props. */ - onBlur: (event: React.KeyboardEvent, data: DropdownProps) => void; + onBlur?: (event: React.KeyboardEvent, data: DropdownProps) => void; /** * Called when the user attempts to change the value. @@ -114,7 +114,7 @@ export interface DropdownProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All props and proposed value. */ - onChange: (event: React.SyntheticEvent, data: DropdownProps) => void; + onChange?: (event: React.SyntheticEvent, data: DropdownProps) => void; /** * Called on click. @@ -122,7 +122,7 @@ export interface DropdownProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All props. */ - onClick: (event: React.KeyboardEvent, data: DropdownProps) => void; + onClick?: (event: React.KeyboardEvent, data: DropdownProps) => void; /** * Called when a close event happens. @@ -130,7 +130,7 @@ export interface DropdownProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All props. */ - onClose: (event: React.SyntheticEvent, data: DropdownProps) => void; + onClose?: (event: React.SyntheticEvent, data: DropdownProps) => void; /** * Called on focus. @@ -138,7 +138,7 @@ export interface DropdownProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All props. */ - onFocus: (event: React.SyntheticEvent, data: DropdownProps) => void; + onFocus?: (event: React.SyntheticEvent, data: DropdownProps) => void; /** * Called when a multi-select label is clicked. @@ -146,7 +146,7 @@ export interface DropdownProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All label props. */ - onLabelClick: (event: React.MouseEvent, data: LabelProps) => void; + onLabelClick?: (event: React.MouseEvent, data: LabelProps) => void; /** * Called on mousedown. @@ -154,7 +154,7 @@ export interface DropdownProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All props. */ - onMouseDown: (event: React.MouseEvent, data: DropdownProps) => void; + onMouseDown?: (event: React.MouseEvent, data: DropdownProps) => void; /** * Called when an open event happens. @@ -162,7 +162,7 @@ export interface DropdownProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All props. */ - onOpen: (event: React.SyntheticEvent, data: DropdownProps) => void; + onOpen?: (event: React.SyntheticEvent, data: DropdownProps) => void; /** * Called on search input change. @@ -170,7 +170,7 @@ export interface DropdownProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {string} value - Current value of search input. */ - onSearchChange: (event: React.SyntheticEvent, value: string) => void; + onSearchChange?: (event: React.SyntheticEvent, value: string) => void; /** Controls whether or not the dropdown menu is displayed. */ open?: boolean; @@ -305,7 +305,7 @@ interface DropdownItemProps { * @param {SyntheticEvent} event - React's original SyntheticEvent. * @param {object} data - All props. */ - onClick: (event: React.MouseEvent, data: DropdownItemProps) => void; + onClick?: (event: React.MouseEvent, data: DropdownItemProps) => void; /** * The item currently selected by keyboard shortcut.