Skip to content

Commit

Permalink
style(typings): export all props interfaces (#1467)
Browse files Browse the repository at this point in the history
* style(typings): export all props interfaces

* style(typings): export all props interfaces

* style(typings): export all props interfaces

* style(typings): export all props interfaces
  • Loading branch information
layershifter authored and levithomason committed Mar 24, 2017
1 parent f048cb5 commit 1493c55
Show file tree
Hide file tree
Showing 172 changed files with 343 additions and 337 deletions.
308 changes: 157 additions & 151 deletions index.d.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/addons/Confirm/Confirm.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { ModalProps } from '../../modules/Modal/Modal';
import { ModalProps } from '../../modules/Modal';

interface ConfirmProps extends ModalProps {
export interface ConfirmProps extends ModalProps {
/** The cancel button text. */
cancelButton?: any;

Expand Down
2 changes: 1 addition & 1 deletion src/addons/Confirm/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Confirm';
export { default, ConfirmProps } from './Confirm';
2 changes: 1 addition & 1 deletion src/addons/Portal/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Portal';
export { default, PortalProps } from './Portal';
2 changes: 1 addition & 1 deletion src/addons/Radio/Radio.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { CheckboxProps } from '../../modules/Checkbox/Checkbox';
import { CheckboxProps } from '../../modules/Checkbox';

export interface RadioProps extends CheckboxProps {
[key: string]: any;
Expand Down
2 changes: 1 addition & 1 deletion src/addons/Radio/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Radio';
export { default, RadioProps } from './Radio';
2 changes: 1 addition & 1 deletion src/addons/Select/Select.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

import { DropdownProps } from '../../modules/Dropdown/Dropdown';
import { DropdownProps } from '../../modules/Dropdown';
import { default as DropdownDivider } from '../../modules/Dropdown/DropdownDivider';
import { default as DropdownHeader } from '../../modules/Dropdown/DropdownHeader';
import { default as DropdownItem } from '../../modules/Dropdown/DropdownItem';
Expand Down
2 changes: 1 addition & 1 deletion src/addons/Select/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Select';
export { default, SelectProps } from './Select';
2 changes: 1 addition & 1 deletion src/addons/TextArea/TextArea.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface TextAreaProps {
value?: string;
}

interface TextAreaOnChangeData extends TextAreaProps {
export interface TextAreaOnChangeData extends TextAreaProps {
value?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/addons/TextArea/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './TextArea';
export { default, TextAreaProps, TextAreaOnChangeData } from './TextArea';
2 changes: 1 addition & 1 deletion src/collections/Breadcrumb/Breadcrumb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import { default as BreadcrumbDivider } from './BreadcrumbDivider';
import { default as BreadcrumbSection } from './BreadcrumbSection';

interface BreadcrumbProps {
export interface BreadcrumbProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Breadcrumb/BreadcrumbDivider.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface BreadcrumbDividerProps {
export interface BreadcrumbDividerProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Breadcrumb/BreadcrumbSection.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface BreadcrumbSectionProps {
export interface BreadcrumbSectionProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Breadcrumb/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Breadcrumb'
export { default, BreadcrumbProps } from './Breadcrumb'
2 changes: 1 addition & 1 deletion src/collections/Form/Form.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { default as FormRadio } from './FormRadio';
import { default as FormSelect } from './FormSelect';
import { default as FormTextArea } from './FormTextArea';

interface FormProps {
export interface FormProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
4 changes: 2 additions & 2 deletions src/collections/Form/FormButton.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';

import { ButtonProps } from '../../elements/Button/Button';
import { ButtonProps } from '../../elements/Button';
import { FormFieldProps } from './FormField';

interface FormButtonProps extends FormFieldProps, ButtonProps {
export interface FormButtonProps extends FormFieldProps, ButtonProps {
}

declare const FormButton: React.StatelessComponent<FormButtonProps>;
Expand Down
4 changes: 2 additions & 2 deletions src/collections/Form/FormCheckbox.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';

import { CheckboxProps } from '../../modules/Checkbox/Checkbox';
import { CheckboxProps } from '../../modules/Checkbox';
import { FormFieldProps } from './FormField';

interface FormCheckboxProps extends FormFieldProps, CheckboxProps {
export interface FormCheckboxProps extends FormFieldProps, CheckboxProps {
type?: 'checkbox' | 'radio';
}

Expand Down
4 changes: 2 additions & 2 deletions src/collections/Form/FormDropdown.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';

import { DropdownProps } from '../../modules/Dropdown/Dropdown';
import { DropdownProps } from '../../modules/Dropdown';
import { FormFieldProps } from './FormField';

interface FormDropdownProps extends FormFieldProps, DropdownProps {
export interface FormDropdownProps extends FormFieldProps, DropdownProps {
}

declare const FormDropdown: React.StatelessComponent<FormDropdownProps>;
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Form/FormGroup.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { SemanticWIDTHS } from '../..';

interface FormGroupProps {
export interface FormGroupProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
4 changes: 2 additions & 2 deletions src/collections/Form/FormInput.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';

import { InputProps } from '../../elements/Input/Input';
import { InputProps } from '../../elements/Input';
import { FormFieldProps } from './FormField';

interface FormInputProps extends FormFieldProps, InputProps {
export interface FormInputProps extends FormFieldProps, InputProps {
}

declare const FormInput: React.StatelessComponent<FormInputProps>;
Expand Down
4 changes: 2 additions & 2 deletions src/collections/Form/FormRadio.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';

import { RadioProps } from '../../addons/Radio/Radio';
import { RadioProps } from '../../addons/Radio';
import { FormFieldProps } from './FormField';

interface FormRadioProps extends FormFieldProps, RadioProps {
export interface FormRadioProps extends FormFieldProps, RadioProps {
type?: 'checkbox' | 'radio';
}

Expand Down
4 changes: 2 additions & 2 deletions src/collections/Form/FormSelect.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';

import { SelectProps } from '../../addons/Select/Select';
import { SelectProps } from '../../addons/Select';
import { FormFieldProps } from './FormField';

interface FormSelectProps extends FormFieldProps, SelectProps {
export interface FormSelectProps extends FormFieldProps, SelectProps {
}

declare const FormSelect: React.StatelessComponent<FormSelectProps>;
Expand Down
4 changes: 2 additions & 2 deletions src/collections/Form/FormTextArea.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';

import { TextAreaProps } from '../../addons/TextArea/TextArea';
import { TextAreaProps } from '../../addons/TextArea';
import { FormFieldProps } from './FormField';

interface FormTextAreaProps extends FormFieldProps, TextAreaProps {
export interface FormTextAreaProps extends FormFieldProps, TextAreaProps {
}

declare const FormTextArea: React.StatelessComponent<FormTextAreaProps>;
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Form/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Form'
export { default, FormProps } from './Form'
2 changes: 1 addition & 1 deletion src/collections/Grid/GridColumn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {

export type GridOnlyProp = string | 'computer' | 'largeScreen' | 'mobile' | 'tablet mobile' | 'tablet' | 'widescreen';

interface GridColumnProps {
export interface GridColumnProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Grid/GridRow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { GridReversedProp } from './Grid';
import { GridOnlyProp } from './GridColumn';

interface GridRowProps {
export interface GridRowProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Grid/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Grid'
export { default, GridProps } from './Grid'
2 changes: 1 addition & 1 deletion src/collections/Menu/MenuHeader.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface MenuHeaderProps {
export interface MenuHeaderProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Menu/MenuMenu.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface MenuMenuProps {
export interface MenuMenuProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Menu/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Menu'
export { default, MenuProps } from './Menu'
2 changes: 1 addition & 1 deletion src/collections/Message/Message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { default as MessageHeader } from './MessageHeader';
import { default as MessageItem } from './MessageItem';
import { default as MessageList } from './MessageList';

interface MessageProps {
export interface MessageProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Message/MessageContent.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface MessageContentProps {
export interface MessageContentProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Message/MessageHeader.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface MessageHeaderProps {
export interface MessageHeaderProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Message/MessageItem.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface MessageItemProps {
export interface MessageItemProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Message/MessageList.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface MessageListProps {
export interface MessageListProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Message/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Message'
export { default, MessageProps } from './Message'
2 changes: 1 addition & 1 deletion src/collections/Table/Table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { default as TableHeader } from './TableHeader';
import { default as TableHeaderCell } from './TableHeaderCell';
import { default as TableRow } from './TableRow';

interface TableProps {
export interface TableProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Table/TableBody.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface TableBodyProps {
export interface TableBodyProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Table/TableFooter.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { TableHeaderProps } from './TableHeader';

interface TableFooterProps extends TableHeaderProps {
export interface TableFooterProps extends TableHeaderProps {
}

declare const TableFooter: React.StatelessComponent<TableFooterProps>;
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Table/TableHeaderCell.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { TableCellProps } from './TableCell';

interface TableHeaderCellProps extends TableCellProps {
export interface TableHeaderCellProps extends TableCellProps {
sorted?: 'ascending' | 'descending';
}

Expand Down
2 changes: 1 addition & 1 deletion src/collections/Table/TableRow.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { SemanticVERTICALALIGNMENTS } from '../..';

interface TableRowProps {
export interface TableRowProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/collections/Table/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Table'
export { default, TableProps } from './Table'
4 changes: 2 additions & 2 deletions src/elements/Button/ButtonContent.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface ContentProps {
export interface ButtonContentProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand All @@ -19,6 +19,6 @@ interface ContentProps {
visible?: boolean;
}

declare const ButtonContent: React.StatelessComponent<ContentProps>;
declare const ButtonContent: React.StatelessComponent<ButtonContentProps>;

export default ButtonContent;
4 changes: 2 additions & 2 deletions src/elements/Button/ButtonGroup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
SemanticWIDTHS
} from '../..';

interface GroupProps {
export interface ButtonGroupProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down Expand Up @@ -70,6 +70,6 @@ interface GroupProps {
widths?: SemanticWIDTHS;
}

declare const ButtonGroup: React.StatelessComponent<GroupProps>;
declare const ButtonGroup: React.StatelessComponent<ButtonGroupProps>;

export default ButtonGroup;
6 changes: 3 additions & 3 deletions src/elements/Button/ButtonOr.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface OrProps {
export interface ButtonOrProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand All @@ -10,9 +10,9 @@ interface OrProps {
className?: string;

/** Or buttons can have their text localized, or adjusted by using the text prop. */
text?: number |string;
text?: number | string;
}

declare const ButtonOr: React.StatelessComponent<OrProps>;
declare const ButtonOr: React.StatelessComponent<ButtonOrProps>;

export default ButtonOr;
2 changes: 1 addition & 1 deletion src/elements/Button/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Button'
export { default, ButtonProps } from './Button'
2 changes: 1 addition & 1 deletion src/elements/Container/Container.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { SemanticTEXTALIGNMENTS } from '../..';

interface ContainerProps {
export interface ContainerProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/elements/Container/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Container'
export { default, ContainerProps } from './Container'
2 changes: 1 addition & 1 deletion src/elements/Divider/Divider.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface DividerProps {
export interface DividerProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
2 changes: 1 addition & 1 deletion src/elements/Divider/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Divider'
export { default, DividerProps } from './Divider'
2 changes: 1 addition & 1 deletion src/elements/Flag/Flag.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

interface FlagProps {
export interface FlagProps {
[key: string]: any;

/** An element type to render as (string or function). */
Expand Down
Loading

0 comments on commit 1493c55

Please sign in to comment.