2016-07-17 19:22:23 +03:00
|
|
|
|
// Type definitions for react-toolbox
|
2016-07-17 16:48:35 +03:00
|
|
|
|
// Project: https://github.com/react-toolbox/react-toolbox
|
|
|
|
|
// Definitions by: Per Bergqwist <https://github.com/normano64>
|
2016-07-17 19:22:23 +03:00
|
|
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox" {
|
|
|
|
|
export import AppBar = __ReactToolbox.AppBar;
|
|
|
|
|
export import Autocomplete = __ReactToolbox.Autocomplete;
|
|
|
|
|
export import Avatar = __ReactToolbox.Avatar;
|
|
|
|
|
export import Button = __ReactToolbox.Button.Button;
|
|
|
|
|
export import IconButton = __ReactToolbox.Button.IconButton;
|
|
|
|
|
export import Card = __ReactToolbox.Card.Card;
|
|
|
|
|
export import CardTitle = __ReactToolbox.Card.CardTitle;
|
|
|
|
|
export import CardMedia = __ReactToolbox.Card.CardMedia;
|
|
|
|
|
export import CardText = __ReactToolbox.Card.CardText;
|
|
|
|
|
export import CardActions = __ReactToolbox.Card.CardActions;
|
|
|
|
|
export import Checkbox = __ReactToolbox.Checkbox;
|
|
|
|
|
export import Chip = __ReactToolbox.Chip;
|
|
|
|
|
export import DatePicker = __ReactToolbox.DatePicker;
|
|
|
|
|
export import Dialog = __ReactToolbox.Dialog;
|
|
|
|
|
export import Drawer = __ReactToolbox.Drawer;
|
|
|
|
|
export import Dropdown = __ReactToolbox.Dropdown;
|
|
|
|
|
export import FontIcon = __ReactToolbox.FontIcon;
|
|
|
|
|
export import Input = __ReactToolbox.Input;
|
|
|
|
|
export import Layout = __ReactToolbox.Layout.Layout;
|
|
|
|
|
export import Panel = __ReactToolbox.Layout.Panel;
|
|
|
|
|
export import NavDrawer = __ReactToolbox.Layout.NavDrawer;
|
|
|
|
|
export import Sidebar = __ReactToolbox.Layout.Sidebar;
|
|
|
|
|
export import Link = __ReactToolbox.Link;
|
|
|
|
|
export import List = __ReactToolbox.List.List;
|
|
|
|
|
export import ListCheckbox = __ReactToolbox.List.ListCheckbox;
|
|
|
|
|
export import ListItem = __ReactToolbox.List.ListItem;
|
|
|
|
|
export import ListDivider = __ReactToolbox.List.ListDivider;
|
|
|
|
|
export import ListSubHeader = __ReactToolbox.List.ListSubHeader;
|
|
|
|
|
export import Menu = __ReactToolbox.Menu.Menu;
|
|
|
|
|
export import MenuDivider = __ReactToolbox.Menu.MenuDivider;
|
|
|
|
|
export import MenuItem = __ReactToolbox.Menu.MenuItem;
|
|
|
|
|
export import IconMenu = __ReactToolbox.Menu.IconMenu;
|
|
|
|
|
export import Navigation = __ReactToolbox.Navigation;
|
|
|
|
|
export import ProgressBar = __ReactToolbox.ProgressBar;
|
|
|
|
|
export import RadioGroup = __ReactToolbox.Radio.RadioGroup;
|
|
|
|
|
export import RadioButton = __ReactToolbox.Radio.RadioButton;
|
|
|
|
|
export import Ripple = __ReactToolbox.Ripple;
|
|
|
|
|
export import Slider = __ReactToolbox.Slider;
|
|
|
|
|
export import Snackbar = __ReactToolbox.Snackbar;
|
|
|
|
|
export import Switch = __ReactToolbox.Switch;
|
|
|
|
|
export import Tabs = __ReactToolbox.Tabs.Tabs;
|
|
|
|
|
export import Tab = __ReactToolbox.Tabs.Tab;
|
|
|
|
|
export import TimePicker = __ReactToolbox.TimePicker;
|
|
|
|
|
export import Tooltip = __ReactToolbox.Tooltip;
|
|
|
|
|
|
|
|
|
|
export import AppBarTheme = __ReactToolbox.AppBarTheme;
|
|
|
|
|
export import AutocompleteTheme = __ReactToolbox.AutocompleteTheme;
|
|
|
|
|
export import AvatarTheme = __ReactToolbox.AvatarTheme;
|
|
|
|
|
export import ButtonTheme = __ReactToolbox.Button.ButtonTheme;
|
|
|
|
|
export import IconButtonTheme = __ReactToolbox.Button.IconButtonTheme;
|
|
|
|
|
export import CardTheme = __ReactToolbox.Card.CardTheme;
|
|
|
|
|
export import CardTitleTheme = __ReactToolbox.Card.CardTitleTheme;
|
|
|
|
|
export import CardMediaTheme = __ReactToolbox.Card.CardMediaTheme;
|
|
|
|
|
export import CardTextTheme = __ReactToolbox.Card.CardTextTheme;
|
|
|
|
|
export import CardActionsTheme = __ReactToolbox.Card.CardActionsTheme;
|
|
|
|
|
export import CheckboxTheme = __ReactToolbox.CheckboxTheme;
|
|
|
|
|
export import ChipTheme = __ReactToolbox.ChipTheme;
|
|
|
|
|
export import DatePickerTheme = __ReactToolbox.DatePickerTheme;
|
|
|
|
|
export import DialogTheme = __ReactToolbox.DialogTheme;
|
|
|
|
|
export import DrawerTheme = __ReactToolbox.DrawerTheme;
|
|
|
|
|
export import DropdownTheme = __ReactToolbox.DropdownTheme;
|
|
|
|
|
export import InputTheme = __ReactToolbox.InputTheme;
|
|
|
|
|
export import LayoutTheme = __ReactToolbox.Layout.LayoutTheme;
|
|
|
|
|
export import PanelTheme = __ReactToolbox.Layout.PanelTheme;
|
|
|
|
|
export import NavDrawerTheme = __ReactToolbox.Layout.NavDrawerTheme;
|
|
|
|
|
export import SidebarTheme = __ReactToolbox.Layout.SidebarTheme;
|
|
|
|
|
export import LinkTheme = __ReactToolbox.LinkTheme;
|
|
|
|
|
export import ListTheme = __ReactToolbox.List.ListTheme;
|
|
|
|
|
export import ListCheckboxTheme = __ReactToolbox.List.ListCheckboxTheme;
|
|
|
|
|
export import ListItemTheme = __ReactToolbox.List.ListItemTheme;
|
|
|
|
|
export import ListDividerTheme = __ReactToolbox.List.ListDividerTheme;
|
|
|
|
|
export import ListSubHeaderTheme = __ReactToolbox.List.ListSubHeaderTheme;
|
|
|
|
|
export import MenuTheme = __ReactToolbox.Menu.MenuTheme;
|
|
|
|
|
export import MenuDividerTheme = __ReactToolbox.Menu.MenuDividerTheme;
|
|
|
|
|
export import MenuItemTheme = __ReactToolbox.Menu.MenuItemTheme;
|
|
|
|
|
export import IconMenuTheme = __ReactToolbox.Menu.IconMenuTheme;
|
|
|
|
|
export import NavigationTheme = __ReactToolbox.NavigationTheme;
|
|
|
|
|
export import ProgressBarTheme = __ReactToolbox.ProgressBarTheme;
|
|
|
|
|
export import RadioButtonTheme = __ReactToolbox.Radio.RadioButtonTheme;
|
|
|
|
|
export import RippleTheme = __ReactToolbox.RippleTheme;
|
|
|
|
|
export import SliderTheme = __ReactToolbox.SliderTheme;
|
|
|
|
|
export import SnackbarTheme = __ReactToolbox.SnackbarTheme;
|
|
|
|
|
export import SwitchTheme = __ReactToolbox.SwitchTheme;
|
|
|
|
|
export import TabsTheme = __ReactToolbox.Tabs.TabsTheme;
|
|
|
|
|
export import TabTheme = __ReactToolbox.Tabs.TabTheme;
|
|
|
|
|
export import TimePickerTheme = __ReactToolbox.TimePickerTheme;
|
|
|
|
|
export import TooltipTheme = __ReactToolbox.TooltipTheme;
|
|
|
|
|
}
|
2016-07-17 16:48:35 +03:00
|
|
|
|
|
|
|
|
|
declare namespace __ReactToolbox {
|
|
|
|
|
import React = __React;
|
|
|
|
|
|
|
|
|
|
interface Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Set a class for the root component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
className?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Key used to uniquely identify the element within an Array.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
key?: string | number;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Callback called when the component is clicked.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
onClick?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Set inline style for the root component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
style?: React.CSSProperties;
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface AppBarTheme {
|
|
|
|
|
/**
|
|
|
|
|
* Used for the component root element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
appBar?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Added to the root element when the app bar is fixed.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
fixed?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Added to the root element when the app bar is flat.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
flat?: string;
|
|
|
|
|
}
|
|
|
|
|
interface AppBarProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Determine if the bar should have position fixed or relative.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
fixed?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, the AppBar shows a shadow.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
flat?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: AppBarTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class AppBar extends React.Component<AppBarProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface AutocompleteTheme {
|
|
|
|
|
/**
|
|
|
|
|
* Used for a suggestion when it's active.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for the root element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
autocomplete?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used when the input is focused.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
focus?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used to style the Input component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
input?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for the label.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
label?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used to style each suggestion.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
suggestion?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used to style the suggestions container.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
suggestions?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for the suggestions when it's opening to the top.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
up?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classname used for a single value.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
value?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classname used for the values container.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
values?: string;
|
|
|
|
|
}
|
|
|
|
|
interface AutocompleteProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Determines the opening direction. It can be auto, up or down.
|
|
|
|
|
* @default auto
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
direction?: "auto" | "up" | "down";
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, component will be disabled.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
disabled?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Sets the error string for the internal input element.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
error?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* The text string to use for the floating label element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
label?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, component can hold multiple values.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
multiple?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Callback function that is fired when the components's value changes.
|
|
|
|
|
* @default auto
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
onChange?: React.FormEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Determines if the selected list is shown above or below input. It can be above or below.
|
|
|
|
|
* @default above
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
selectedPosition?: "above" | "below";
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, the list of suggestions will not be filtered when a value is selected.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
showSuggestionsWHenValueIsSet?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Object of key/values or array representing all items suggested.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
source?: any;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Determines how suggestions are supplied.
|
|
|
|
|
* @default start
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
suggestionMatch?: "start" | "anywhere" | "word";
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: AutocompleteTheme;
|
|
|
|
|
/**
|
|
|
|
|
* Value or array of values currently selected component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
value?: any;
|
|
|
|
|
}
|
|
|
|
|
export class Autocomplete extends React.Component<AutocompleteProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface AvatarTheme {
|
|
|
|
|
/**
|
|
|
|
|
* Used for the root class of the element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
avatar?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Added to the root element when the component has image.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
image?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for the root element if the component shows the letter.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
letter?: string;
|
|
|
|
|
}
|
|
|
|
|
interface AvatarProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Set to true if your image is not squared so it will be used as a cover for the element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
cover?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* A key to identify an Icon from Material Design Icons or a custom Icon Element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
icon?: React.ReactNode | string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* An image source or an image element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
image?: React.ReactNode | string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: AvatarTheme;
|
|
|
|
|
/**
|
|
|
|
|
* A title for the image. If no image is provided, the first letter will be displayed as the avatar.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
title?: string;
|
|
|
|
|
}
|
|
|
|
|
export class Avatar extends React.Component<AvatarProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Button {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface ButtonTheme {
|
|
|
|
|
/**
|
|
|
|
|
* Used for the root in case button is accent.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
accent?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for the root element in any button.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
button?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used when the button is flat for the root element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
flat?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used when the button is floating for the root element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
floating?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* For the icon inside a button.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
icon?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used when colors are inverted.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
inverse?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for mini floating buttons.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
mini?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for neutral colored buttons.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
neutral?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for primary buttons when button is primary.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
primary?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used when the button is raised for root element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
raised?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for the ripple element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
rippleWrapper?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for toggle buttons in the root element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
toggle?: string;
|
|
|
|
|
}
|
|
|
|
|
interface ButtonProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Indicates if the button should have accent color.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
accent?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, component will be disabled.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
disabled?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, the button will have a flat look.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
flat?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, the button will have a floating look.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
floating?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Creates a link for the button.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
href?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Value of the icon (See Font Icon Component).
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
icon?: React.ReactNode | string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, the neutral colors are inverted. Useful to put a button over a dark background.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
inverse?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* The text string to use for the name of the button.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
label?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* To be used with floating button. If true, the button will be smaller.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
mini?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Set it to false if you don't want the neutral styles to be included.
|
|
|
|
|
* @default true
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
neutral?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Fires after the mouse leaves the Component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
onMouseLeave?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Fires after the mouse is released from the Component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
OnMouseUp?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Indicates if the button should have primary color.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
primary?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, the button will have a raised look.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
raised?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, component will have a ripple effect on click.
|
|
|
|
|
* @default true
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
ripple?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: ButtonTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Button extends React.Component<ButtonProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface IconButtonTheme {
|
|
|
|
|
/**
|
|
|
|
|
* Used for the root in case button is accent.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
accent?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for the root element in any button.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
button?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* For the icon inside a button.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
icon?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used when colors are inverted.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
inverse?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for neutral colored buttons.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
neutral?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for primary buttons when button is primary.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
primary?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for the ripple element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
rippleWrapper?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Used for toggle buttons in the root element.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
toggle?: string;
|
|
|
|
|
}
|
|
|
|
|
interface IconButtonProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Indicates if the button should have accent color.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
accent?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, component will be disabled.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
disabled?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Creates a link for the button.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
href?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Value of the icon (See Font Icon Component).
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
icon?: React.ReactNode | string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, the neutral colors are inverted. Useful to put a button over a dark background.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
inverse?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Set it to false if you don't want the neutral styles to be included.
|
|
|
|
|
* @default true
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
neutral?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Fires after the mouse leaves the Component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
onMouseLeave?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Fires after the mouse is released from the Component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
OnMouseUp?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Indicates if the button should have primary color.
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
primary?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* If true, component will have a ripple effect on click.
|
|
|
|
|
* @default true
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
ripple?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: IconButtonTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class IconButton extends React.Component<IconButtonProps, {}> {
|
|
|
|
|
}
|
2016-07-17 19:22:23 +03:00
|
|
|
|
}
|
2016-07-17 16:48:35 +03:00
|
|
|
|
|
|
|
|
|
namespace Card {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface CardTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
card?: string;
|
|
|
|
|
raised?: string;
|
|
|
|
|
}
|
|
|
|
|
interface CardProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
raised?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: CardTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Card extends React.Component<CardProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface CardActionsTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
cardActions?: string;
|
|
|
|
|
}
|
|
|
|
|
interface CardActionsProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: CardActionsTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class CardActions extends React.Component<CardActionsProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface CardMediaTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
cardMedia?: string;
|
|
|
|
|
content?: string;
|
|
|
|
|
contentOverlay?: string;
|
|
|
|
|
square?: string;
|
|
|
|
|
wide?: string;
|
|
|
|
|
}
|
|
|
|
|
interface CardMediaProps extends Props {
|
|
|
|
|
aspectRatio?: "wide" | "square";
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
color?: string;
|
|
|
|
|
contentOverlay?: boolean;
|
|
|
|
|
image?: React.ReactNode | string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: CardMediaTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class CardMedia extends React.Component<CardMediaProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface CardTextTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
cardText?: string;
|
|
|
|
|
}
|
|
|
|
|
interface CardTextProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: CardTextTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class CardText extends React.Component<CardTextProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface CardTitleTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
large?: string;
|
|
|
|
|
title?: string;
|
|
|
|
|
small?: string;
|
|
|
|
|
subtitle?: string;
|
|
|
|
|
}
|
|
|
|
|
interface CardTitleProps extends Props {
|
|
|
|
|
avatar?: React.ReactNode | string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
subtitle?: React.ReactNode | string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: CardTitleTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
title?: React.ReactNode | string;
|
|
|
|
|
}
|
|
|
|
|
export class CardTitle extends React.Component<CardTitleProps, {}> {
|
|
|
|
|
}
|
2016-07-17 19:22:23 +03:00
|
|
|
|
}
|
2016-07-17 16:48:35 +03:00
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface CheckboxTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
check?: string;
|
|
|
|
|
checked?: string;
|
|
|
|
|
disabled?: string;
|
|
|
|
|
field?: string;
|
|
|
|
|
input?: string;
|
|
|
|
|
ripple?: string;
|
|
|
|
|
}
|
|
|
|
|
interface CheckboxProps extends Props {
|
|
|
|
|
checked?: boolean;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
label?: React.ReactNode | string;
|
|
|
|
|
name?: string;
|
|
|
|
|
onChange?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: CheckboxTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Checkbox extends React.Component<CheckboxProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface ChipTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
avatar?: string;
|
|
|
|
|
chip?: string;
|
|
|
|
|
deletable?: string;
|
|
|
|
|
delete?: string;
|
|
|
|
|
deleteIcon?: string;
|
|
|
|
|
deleteX?: string;
|
|
|
|
|
}
|
|
|
|
|
interface ChipProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
deleteable?: boolean;
|
|
|
|
|
onDeleteClick?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: ChipTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Chip extends React.Component<ChipProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface DatePickerTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
button?: string;
|
|
|
|
|
calendar?: string;
|
|
|
|
|
calendarWrapper?: string;
|
|
|
|
|
date?: string;
|
|
|
|
|
day?: string;
|
|
|
|
|
days?: string;
|
|
|
|
|
dialog?: string;
|
|
|
|
|
disabled?: string;
|
|
|
|
|
header?: string;
|
|
|
|
|
input?: string;
|
|
|
|
|
month?: string;
|
|
|
|
|
monthsDisplay?: string;
|
|
|
|
|
next?: string;
|
|
|
|
|
prev?: string;
|
|
|
|
|
title?: string;
|
|
|
|
|
week?: string;
|
|
|
|
|
year?: string;
|
|
|
|
|
years?: string;
|
|
|
|
|
yearsDisplay?: string;
|
|
|
|
|
}
|
|
|
|
|
interface DatePickerProps extends Props {
|
|
|
|
|
autoOk?: boolean;
|
|
|
|
|
error?: string;
|
|
|
|
|
icon?: React.ReactNode | string;
|
|
|
|
|
inputClassName?: string;
|
|
|
|
|
inputFormat?: Function;
|
|
|
|
|
label?: string;
|
|
|
|
|
maxDate?: Date;
|
|
|
|
|
minDate?: Date;
|
|
|
|
|
name?: string;
|
|
|
|
|
onChange?: React.MouseEventHandler;
|
|
|
|
|
onEscKeyDown?: React.KeyboardEventHandler;
|
|
|
|
|
onOverlayClick?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: DatePickerTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
value?: Date | string;
|
|
|
|
|
}
|
|
|
|
|
export class DatePicker extends React.Component<DatePickerProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface DialogTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
body?: string;
|
|
|
|
|
button?: string;
|
|
|
|
|
dialog?: string;
|
|
|
|
|
navigation?: string;
|
|
|
|
|
title?: string;
|
|
|
|
|
}
|
|
|
|
|
interface DialogActionProps {
|
|
|
|
|
label?: string;
|
|
|
|
|
}
|
|
|
|
|
interface DialogProps extends Props {
|
|
|
|
|
actions?: DialogActionProps[];
|
|
|
|
|
active?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
onEscKeyDown?: React.KeyboardEventHandler;
|
|
|
|
|
onOverlayClick?: React.MouseEventHandler;
|
|
|
|
|
onOverlayMouseDown?: React.MouseEventHandler;
|
|
|
|
|
onOverlayMouseMove?: React.MouseEventHandler;
|
|
|
|
|
onOverlayMouseUp?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: DialogTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
title?: string;
|
|
|
|
|
type?: string;
|
|
|
|
|
}
|
|
|
|
|
export class Dialog extends React.Component<DialogProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface DrawerTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
content?: string;
|
|
|
|
|
drawer?: string;
|
|
|
|
|
left?: string;
|
|
|
|
|
right?: string;
|
|
|
|
|
}
|
|
|
|
|
interface DrawerProps extends Props {
|
|
|
|
|
active?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
onOverlayClick?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: DrawerTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
type?: "left" | "right";
|
|
|
|
|
}
|
|
|
|
|
export class Drawer extends React.Component<DrawerProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface DropdownTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
disabled?: string;
|
|
|
|
|
dropdown?: string;
|
|
|
|
|
error?: string;
|
|
|
|
|
errored?: string;
|
|
|
|
|
field?: string;
|
|
|
|
|
label?: string;
|
|
|
|
|
selected?: string;
|
|
|
|
|
templateValue?: string;
|
|
|
|
|
up?: string;
|
|
|
|
|
value?: string;
|
|
|
|
|
values?: string;
|
|
|
|
|
}
|
|
|
|
|
interface DropdownProps extends Props {
|
|
|
|
|
allowBlank?: boolean;
|
|
|
|
|
auto?: boolean;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
error?: string;
|
|
|
|
|
label?: string;
|
|
|
|
|
name?: string;
|
|
|
|
|
onBlur?: React.FocusEventHandler;
|
|
|
|
|
onChange?: React.FormEventHandler;
|
|
|
|
|
onFocus?: React.FocusEventHandler;
|
|
|
|
|
source: any[];
|
|
|
|
|
template?: Function;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: DropdownTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
value?: string | number;
|
|
|
|
|
}
|
|
|
|
|
export class Dropdown extends React.Component<DropdownProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface FontIconProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
value?: React.ReactNode | string;
|
|
|
|
|
}
|
|
|
|
|
export class FontIcon extends React.Component<FontIconProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface InputTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
bar?: string;
|
|
|
|
|
counter?: string;
|
|
|
|
|
disabled?: string;
|
|
|
|
|
error?: string;
|
|
|
|
|
errored?: string;
|
|
|
|
|
hidden?: string;
|
|
|
|
|
hint?: string;
|
|
|
|
|
icon?: string;
|
|
|
|
|
input?: string;
|
|
|
|
|
inputElement?: string;
|
|
|
|
|
required?: string;
|
|
|
|
|
withIcon?: string;
|
|
|
|
|
}
|
|
|
|
|
interface InputProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
error?: string;
|
|
|
|
|
floating?: boolean;
|
|
|
|
|
hint?: string;
|
|
|
|
|
icon?: React.ReactNode | string;
|
|
|
|
|
label?: string;
|
|
|
|
|
maxLength?: number;
|
|
|
|
|
multiLine?: boolean;
|
|
|
|
|
name?: string;
|
|
|
|
|
onBlur?: React.FocusEventHandler;
|
|
|
|
|
onChange?: React.FormEventHandler;
|
|
|
|
|
onFocus?: React.FocusEventHandler;
|
|
|
|
|
onKeyPress?: React.MouseEventHandler;
|
|
|
|
|
required?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: InputTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
type?: string;
|
|
|
|
|
value?: any;
|
|
|
|
|
}
|
|
|
|
|
export class Input extends React.Component<InputProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Layout {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface LayoutTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
layout?: string;
|
|
|
|
|
}
|
|
|
|
|
interface LayoutProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: [NavDrawer | Panel | Sidebar];
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: LayoutTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Layout extends React.Component<LayoutProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface NavDrawerTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
drawerContent?: string;
|
|
|
|
|
lgPermangent?: string;
|
|
|
|
|
mdPermangent?: string;
|
|
|
|
|
navDrawer?: string;
|
|
|
|
|
pinned?: string;
|
|
|
|
|
scrim?: string;
|
|
|
|
|
scrollY?: string;
|
|
|
|
|
smPermanent?: string;
|
|
|
|
|
wide?: string;
|
|
|
|
|
xlPermanent?: string;
|
|
|
|
|
xxlPermangent?: string;
|
|
|
|
|
xxxlPermangent?: string;
|
|
|
|
|
}
|
|
|
|
|
interface NavDrawerProps extends Props {
|
|
|
|
|
active?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
onOverlayClick?: React.MouseEventHandler;
|
|
|
|
|
permanentAt?: "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
|
|
|
|
|
pinned?: boolean;
|
|
|
|
|
scrollY?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: NavDrawerTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
width?: "normal" | "wide";
|
|
|
|
|
}
|
|
|
|
|
export class NavDrawer extends React.Component<NavDrawerProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface PanelTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
panel?: string;
|
|
|
|
|
scrollY?: string;
|
|
|
|
|
}
|
|
|
|
|
interface PanelProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
scrollY?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: PanelTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Panel extends React.Component<PanelProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface SidebarTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
pinned?: string;
|
|
|
|
|
scrollY?: string;
|
|
|
|
|
sidebar?: string;
|
|
|
|
|
sidebarContent?: string;
|
|
|
|
|
}
|
|
|
|
|
interface SidebarProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
pinned?: boolean;
|
|
|
|
|
scrollY?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: SidebarTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
width?: number; // 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 25 | 33 | 50 | 66 | 75 | 100;
|
|
|
|
|
}
|
|
|
|
|
export class Sidebar extends React.Component<SidebarProps, {}> {
|
|
|
|
|
}
|
2016-07-17 19:22:23 +03:00
|
|
|
|
}
|
2016-07-17 16:48:35 +03:00
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface LinkTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
icon?: string;
|
|
|
|
|
link?: string;
|
|
|
|
|
}
|
|
|
|
|
interface LinkProps extends Props {
|
|
|
|
|
active?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
count?: number;
|
|
|
|
|
icon?: React.ReactNode | string;
|
|
|
|
|
label?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: LinkTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Link extends React.Component<LinkProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
2016-07-17 16:48:35 +03:00
|
|
|
|
namespace List {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface ListTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
list?: string;
|
|
|
|
|
}
|
|
|
|
|
interface ListProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
ripple?: boolean;
|
|
|
|
|
selectable?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: ListTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class List extends React.Component<ListProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface ListCheckboxTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
checkbox?: string;
|
|
|
|
|
checkboxItem?: string;
|
|
|
|
|
disabled?: string;
|
|
|
|
|
item?: string;
|
|
|
|
|
itemContentRoot?: string;
|
|
|
|
|
itemText?: string;
|
|
|
|
|
large?: string;
|
|
|
|
|
primary?: string;
|
|
|
|
|
}
|
|
|
|
|
interface ListCheckboxProps extends Props {
|
|
|
|
|
caption?: string;
|
|
|
|
|
checked?: boolean;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
legend?: string;
|
|
|
|
|
name?: string;
|
|
|
|
|
onBlur?: React.FocusEventHandler;
|
|
|
|
|
onChange?: React.FormEventHandler;
|
|
|
|
|
onFocus?: React.FocusEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: ListCheckboxTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class ListCheckbox extends React.Component<ListCheckboxProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface ListDividerTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
divider?: string;
|
|
|
|
|
inset?: string;
|
|
|
|
|
}
|
|
|
|
|
interface ListDividerProps extends Props {
|
|
|
|
|
inset?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: ListDividerTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class ListDivider extends React.Component<ListDivider, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface ListItemTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
disabled?: string;
|
|
|
|
|
item?: string;
|
|
|
|
|
itemAction?: string;
|
|
|
|
|
large?: string;
|
|
|
|
|
left?: string;
|
|
|
|
|
listItem?: string;
|
|
|
|
|
primary?: string;
|
|
|
|
|
right?: string;
|
|
|
|
|
selectable?: string;
|
|
|
|
|
}
|
|
|
|
|
interface ListItemProps extends Props {
|
|
|
|
|
avatar?: React.ReactNode | string;
|
|
|
|
|
caption?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
itemContent?: React.ReactNode;
|
|
|
|
|
leftActions?: React.ReactNode;
|
|
|
|
|
leftIcon?: React.ReactNode | string;
|
|
|
|
|
rightIcon?: React.ReactNode | string;
|
|
|
|
|
ripple?: boolean;
|
|
|
|
|
selectable?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: ListItemTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
to?: string;
|
|
|
|
|
}
|
|
|
|
|
export class ListItem extends React.Component<ListItemProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface ListSubHeaderTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
subheader?: string;
|
|
|
|
|
}
|
|
|
|
|
interface ListSubHeaderProps extends Props {
|
|
|
|
|
caption?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: ListSubHeaderTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class ListSubHeader extends React.Component<ListSubHeaderProps, {}> {
|
|
|
|
|
}
|
2016-07-17 19:22:23 +03:00
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 16:48:35 +03:00
|
|
|
|
|
|
|
|
|
namespace Menu {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface MenuTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
bottomLeft?: string;
|
|
|
|
|
bottomRight?: string;
|
|
|
|
|
menu?: string;
|
|
|
|
|
menuInner?: string;
|
|
|
|
|
outline?: string;
|
|
|
|
|
rippled?: string;
|
|
|
|
|
static?: string;
|
|
|
|
|
topLeft?: string;
|
|
|
|
|
topRight?: string;
|
|
|
|
|
}
|
|
|
|
|
interface MenuProps extends Props {
|
|
|
|
|
active?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
onHide?: Function;
|
|
|
|
|
onSelect?: Function;
|
|
|
|
|
onShow?: Function;
|
|
|
|
|
position?: "auto" | "static" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
|
|
|
ripple?: boolean;
|
|
|
|
|
selectable?: boolean;
|
|
|
|
|
selected?: any;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: MenuTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Menu extends React.Component<MenuProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface IconMenuTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
icon?: string;
|
|
|
|
|
iconMenu?: string;
|
|
|
|
|
}
|
|
|
|
|
interface IconMenuProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
icon?: React.ReactNode | string;
|
|
|
|
|
iconRipple?: boolean;
|
|
|
|
|
menuRipple?: boolean;
|
|
|
|
|
onSelect?: Function;
|
|
|
|
|
onShow?: Function;
|
|
|
|
|
position?: "auto" | "static" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
|
|
|
selectable?: boolean;
|
|
|
|
|
selected?: any;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: IconMenuTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class IconMenu extends React.Component<IconMenuProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface MenuDividerTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
menuDivider?: string;
|
|
|
|
|
}
|
|
|
|
|
interface MenuDividerProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: MenuDividerTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class MenuDivider extends React.Component<MenuDividerProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface ListDividerTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
divider?: string;
|
|
|
|
|
inset?: string;
|
|
|
|
|
}
|
|
|
|
|
interface ListDividerProps extends Props {
|
|
|
|
|
inset?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: ListDividerTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class ListDivider extends React.Component<ListDivider, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface MenuItemTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
caption?: string;
|
|
|
|
|
disabled?: string;
|
|
|
|
|
icon?: string;
|
|
|
|
|
menuItem?: string;
|
|
|
|
|
selected?: string;
|
|
|
|
|
shortcut?: string;
|
|
|
|
|
}
|
|
|
|
|
interface MenuItemProps extends Props {
|
|
|
|
|
caption?: string;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
icon?: React.ReactNode | string;
|
|
|
|
|
selected?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: MenuItemTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class MenuItem extends React.Component<MenuItemProps, {}> {
|
|
|
|
|
}
|
2016-07-17 19:22:23 +03:00
|
|
|
|
}
|
2016-07-17 16:48:35 +03:00
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface NavigationTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
button?: string;
|
|
|
|
|
horizontal?: string;
|
|
|
|
|
link?: string;
|
|
|
|
|
vertical?: string;
|
|
|
|
|
}
|
|
|
|
|
interface NavigationProps extends Props {
|
|
|
|
|
actions?: any[];
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
routes?: any[];
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: NavigationTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
type?: "vertical" | "horizontal";
|
|
|
|
|
}
|
|
|
|
|
export class Navigation extends React.Component<NavigationProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface ProgressBarTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
buffer?: string;
|
|
|
|
|
circle?: string;
|
|
|
|
|
circular?: string;
|
|
|
|
|
indeterminate?: string;
|
|
|
|
|
linear?: string;
|
|
|
|
|
multicolor?: string;
|
|
|
|
|
path?: string;
|
|
|
|
|
value?: string;
|
|
|
|
|
}
|
|
|
|
|
interface ProgressBarProps extends Props {
|
|
|
|
|
buffer?: number;
|
|
|
|
|
max?: number;
|
|
|
|
|
min?: number;
|
|
|
|
|
mode?: "determinate" | "indeterminate";
|
|
|
|
|
multicolor?: boolean;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: ProgressBarTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
type?: "linear" | "circular";
|
|
|
|
|
value?: number;
|
|
|
|
|
}
|
|
|
|
|
export class ProgressBar extends React.Component<ProgressBarProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
2016-07-17 16:48:35 +03:00
|
|
|
|
namespace Radio {
|
|
|
|
|
interface RadioGroupProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
name?: string;
|
|
|
|
|
onChange?: Function;
|
|
|
|
|
value?: number;
|
|
|
|
|
}
|
|
|
|
|
export class RadioGroup extends React.Component<RadioGroupProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface RadioButtonTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
radio?: string;
|
|
|
|
|
radioChecked?: string;
|
|
|
|
|
ripple?: string;
|
|
|
|
|
disabled?: string;
|
|
|
|
|
field?: string;
|
|
|
|
|
input?: string;
|
|
|
|
|
text?: string;
|
|
|
|
|
}
|
|
|
|
|
interface RadioButtonProps extends Props {
|
|
|
|
|
checked?: boolean;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
label?: React.ReactNode | string;
|
|
|
|
|
name?: string;
|
|
|
|
|
onBlur?: React.FocusEventHandler;
|
|
|
|
|
onChange?: React.FormEventHandler;
|
|
|
|
|
onFocus?: React.FocusEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: RadioButtonTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
value?: any;
|
|
|
|
|
}
|
|
|
|
|
export class RadioButton extends React.Component<RadioButtonProps, {}> {
|
|
|
|
|
}
|
2016-07-17 19:22:23 +03:00
|
|
|
|
}
|
2016-07-17 16:48:35 +03:00
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface RippleTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
ripple?: string;
|
|
|
|
|
rippleActive?: string;
|
|
|
|
|
rippleRestarting?: string;
|
|
|
|
|
riplleWrapper?: string;
|
|
|
|
|
}
|
|
|
|
|
interface RippleProps {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
onRippleEnded?: Function;
|
|
|
|
|
spread?: number;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: RippleTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Ripple extends React.Component<RippleProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface SliderTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
container?: string;
|
|
|
|
|
editable?: string;
|
|
|
|
|
innerknob?: string;
|
|
|
|
|
innerprogress?: string;
|
|
|
|
|
input?: string;
|
|
|
|
|
knob?: string;
|
|
|
|
|
pinned?: string;
|
|
|
|
|
pressed?: string;
|
|
|
|
|
progress?: string;
|
|
|
|
|
ring?: string;
|
|
|
|
|
slider?: string;
|
|
|
|
|
snap?: string;
|
|
|
|
|
snaps?: string;
|
|
|
|
|
}
|
|
|
|
|
interface SliderProps {
|
|
|
|
|
editable?: boolean;
|
|
|
|
|
max?: number;
|
|
|
|
|
min?: number;
|
|
|
|
|
onChange?: Function;
|
|
|
|
|
pinned?: boolean;
|
|
|
|
|
snaps?: boolean;
|
|
|
|
|
step?: number;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: RippleTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
value?: number;
|
|
|
|
|
}
|
|
|
|
|
export class Slider extends React.Component<SliderProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface SnackbarTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
accept?: string;
|
|
|
|
|
active?: string;
|
|
|
|
|
button?: string;
|
|
|
|
|
cancel?: string;
|
|
|
|
|
icon?: string;
|
|
|
|
|
label?: string;
|
|
|
|
|
snackbar?: string;
|
|
|
|
|
warning?: string;
|
|
|
|
|
}
|
|
|
|
|
interface SnackbarProps {
|
|
|
|
|
action?: string;
|
|
|
|
|
active?: boolean;
|
|
|
|
|
icon?: React.ReactNode | string;
|
|
|
|
|
label?: string;
|
|
|
|
|
onTimeout?: Function;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: SnackbarTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
timeout?: number;
|
|
|
|
|
type?: "accept" | "cancel" | "warning";
|
|
|
|
|
}
|
|
|
|
|
export class Snackbar extends React.Component<SnackbarProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface SwitchTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
disabled?: string;
|
|
|
|
|
field?: string;
|
|
|
|
|
input?: string;
|
|
|
|
|
off?: string;
|
|
|
|
|
on?: string;
|
|
|
|
|
ripple?: string;
|
|
|
|
|
text?: string;
|
|
|
|
|
thumb?: string;
|
|
|
|
|
}
|
|
|
|
|
interface SwitchProps {
|
|
|
|
|
checked?: boolean;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
label?: string;
|
|
|
|
|
name?: string;
|
|
|
|
|
onBlur?: React.FocusEventHandler;
|
|
|
|
|
onChange?: React.FormEventHandler;
|
|
|
|
|
onFocus?: React.FocusEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: SwitchTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Switch extends React.Component<SwitchProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface TableTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
editable?: string;
|
|
|
|
|
row?: string;
|
|
|
|
|
selectable?: string;
|
|
|
|
|
selected?: string;
|
|
|
|
|
table?: string;
|
|
|
|
|
}
|
|
|
|
|
interface TableProps {
|
|
|
|
|
heading?: boolean;
|
|
|
|
|
model?: any;
|
|
|
|
|
onChange?: Function;
|
|
|
|
|
onSelect?: React.FormEventHandler;
|
|
|
|
|
selectable?: boolean;
|
|
|
|
|
multiSelectable?: boolean;
|
|
|
|
|
selected?: any[];
|
|
|
|
|
source?: any[];
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: TableTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Table extends React.Component<TableProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
2016-07-17 16:48:35 +03:00
|
|
|
|
namespace Tabs {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface TabsTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
navigation?: string;
|
|
|
|
|
pointer?: string;
|
|
|
|
|
tabs?: string;
|
|
|
|
|
tab?: string;
|
|
|
|
|
}
|
|
|
|
|
interface TabsProps extends Props {
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Children to pass through the component.
|
|
|
|
|
*/
|
2016-07-17 16:48:35 +03:00
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
disableAnimatedBottomBorder?: boolean;
|
|
|
|
|
index?: number;
|
|
|
|
|
onChange?: Function;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: TabsTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Tabs extends React.Component<TabsProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface TabTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
disabled?: string;
|
|
|
|
|
hidden?: string;
|
|
|
|
|
label?: string;
|
|
|
|
|
}
|
|
|
|
|
interface TabProps extends Props {
|
|
|
|
|
active?: boolean;
|
|
|
|
|
activeClassName?: string;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
hidden?: boolean;
|
|
|
|
|
label?: string;
|
|
|
|
|
onActive?: Function;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: TabTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
export class Tab extends React.Component<TabProps, {}> {
|
|
|
|
|
}
|
2016-07-17 19:22:23 +03:00
|
|
|
|
}
|
2016-07-17 16:48:35 +03:00
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface TimePickerTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
active?: string;
|
|
|
|
|
am?: string;
|
|
|
|
|
amFormat?: string;
|
|
|
|
|
ampm?: string;
|
|
|
|
|
button?: string;
|
|
|
|
|
clock?: string;
|
|
|
|
|
clockWrapper?: string;
|
|
|
|
|
dialog?: string;
|
|
|
|
|
face?: string;
|
|
|
|
|
hand?: string;
|
|
|
|
|
header?: string;
|
|
|
|
|
hours?: string;
|
|
|
|
|
hoursDisplay?: string;
|
|
|
|
|
input?: string;
|
|
|
|
|
knob?: string;
|
|
|
|
|
minutes?: string;
|
|
|
|
|
minutesDisplay?: string;
|
|
|
|
|
number?: string;
|
|
|
|
|
placeholder?: string;
|
|
|
|
|
pm?: string;
|
|
|
|
|
pmFormat?: string;
|
|
|
|
|
separator?: string;
|
|
|
|
|
small?: string;
|
|
|
|
|
}
|
|
|
|
|
interface TimePickerProps {
|
|
|
|
|
error?: string;
|
|
|
|
|
inputClassName?: string;
|
|
|
|
|
format?: "24hr" | "ampm";
|
|
|
|
|
label?: string;
|
|
|
|
|
onChange?: Function;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: TimePickerTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
value?: Date;
|
|
|
|
|
}
|
|
|
|
|
export class TimePicker extends React.Component<TimePickerProps, {}> {
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export interface TooltipTheme {
|
2016-07-17 16:48:35 +03:00
|
|
|
|
tooltip?: string;
|
|
|
|
|
tooltipActive?: string;
|
|
|
|
|
tooltipWrapper?: string;
|
|
|
|
|
}
|
|
|
|
|
interface TooltipProps {
|
|
|
|
|
onMouseEnter?: React.MouseEventHandler;
|
|
|
|
|
onMouseLeave?: React.MouseEventHandler;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
/**
|
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
|
*/
|
|
|
|
|
theme?: TooltipTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
tooltip?: string;
|
|
|
|
|
tooltipDelay?: number;
|
|
|
|
|
tooltipHideOnClick?: boolean;
|
|
|
|
|
}
|
|
|
|
|
class TooltipComponent<P, S> extends React.Component<P, S> {
|
|
|
|
|
props: P & TooltipProps;
|
|
|
|
|
}
|
|
|
|
|
interface TooltippedComponentClass<P> extends TooltipProps {
|
|
|
|
|
new (props?: P, context?: any): TooltipComponent<P, any>;
|
|
|
|
|
}
|
|
|
|
|
export function Tooltip<P>(componentClass: React.ComponentClass<P>): TooltippedComponentClass<P>;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
}
|
2016-07-17 16:48:35 +03:00
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/app_bar" {
|
|
|
|
|
export import AppBar = __ReactToolbox.AppBar;
|
|
|
|
|
export default AppBar;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import AppBarTheme = __ReactToolbox.AppBarTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/autocomplete" {
|
|
|
|
|
export import Autocomplete = __ReactToolbox.Autocomplete;
|
|
|
|
|
export default Autocomplete;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import AutocompleteTheme = __ReactToolbox.Autocomplete;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/avatar" {
|
|
|
|
|
export import Avatar = __ReactToolbox.Avatar;
|
|
|
|
|
export default Avatar;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import AvatarTheme = __ReactToolbox.AvatarTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/button" {
|
|
|
|
|
export import Button = __ReactToolbox.Button.Button;
|
|
|
|
|
export import IconButton = __ReactToolbox.Button.IconButton;
|
|
|
|
|
export default { Button, IconButton };
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import ButtonTheme = __ReactToolbox.Button.ButtonTheme;
|
|
|
|
|
export import IconButtonTheme = __ReactToolbox.Button.IconButtonTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/card" {
|
|
|
|
|
export import Card = __ReactToolbox.Card.Card;
|
|
|
|
|
export import CardActions = __ReactToolbox.Card.CardActions;
|
|
|
|
|
export import CardMedia = __ReactToolbox.Card.CardMedia;
|
|
|
|
|
export import CardText = __ReactToolbox.Card.CardText;
|
|
|
|
|
export import CardTitle = __ReactToolbox.Card.CardTitle;
|
|
|
|
|
export default { Card, CardActions, CardMedia, CardText, CardTitle };
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import CardTheme = __ReactToolbox.Card.CardTheme;
|
|
|
|
|
export import CardActionsTheme = __ReactToolbox.Card.CardActionsTheme;
|
|
|
|
|
export import CardMediaTheme = __ReactToolbox.Card.CardMediaTheme;
|
|
|
|
|
export import CardTextTheme = __ReactToolbox.Card.CardTextTheme;
|
|
|
|
|
export import CardTitleTheme = __ReactToolbox.Card.CardTitleTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/checkbox" {
|
|
|
|
|
export import Checkbox = __ReactToolbox.Checkbox;
|
|
|
|
|
export default Checkbox;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import CheckboxTheme = __ReactToolbox.CheckboxTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/chip" {
|
|
|
|
|
export import Chip = __ReactToolbox.Chip;
|
|
|
|
|
export default Chip;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import ChipTheme = __ReactToolbox.ChipTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/date_picker" {
|
|
|
|
|
export import DatePicker = __ReactToolbox.DatePicker;
|
|
|
|
|
export default DatePicker;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import DatePickerTheme = __ReactToolbox.DatePickerTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/dialog" {
|
|
|
|
|
export import Dialog = __ReactToolbox.Dialog;
|
|
|
|
|
export default Dialog;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import DialogTheme = __ReactToolbox.DialogTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/drawer" {
|
|
|
|
|
export import Drawer = __ReactToolbox.Drawer;
|
|
|
|
|
export default Drawer;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import DrawerTheme = __ReactToolbox.DrawerTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/dropdown" {
|
|
|
|
|
export import Dropdown = __ReactToolbox.Dropdown;
|
|
|
|
|
export default Dropdown;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import DropdownTheme = __ReactToolbox.DropdownTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/font_icon" {
|
|
|
|
|
export import FontIcon = __ReactToolbox.FontIcon;
|
|
|
|
|
export default FontIcon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/input" {
|
|
|
|
|
export import Input = __ReactToolbox.Input;
|
|
|
|
|
export default Input;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import InputTheme = __ReactToolbox.InputTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/layout" {
|
|
|
|
|
export import Layout = __ReactToolbox.Layout.Layout;
|
|
|
|
|
export import NavDrawer = __ReactToolbox.Layout.NavDrawer;
|
|
|
|
|
export import Panel = __ReactToolbox.Layout.Panel;
|
|
|
|
|
export import Sidebar = __ReactToolbox.Layout.Sidebar;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
export default { Layout, NavDrawer, Panel, Sidebar }
|
|
|
|
|
|
|
|
|
|
export import LayoutTheme = __ReactToolbox.Layout.LayoutTheme;
|
|
|
|
|
export import NavDrawerTheme = __ReactToolbox.Layout.NavDrawerTheme;
|
|
|
|
|
export import PanelTheme = __ReactToolbox.Layout.PanelTheme;
|
|
|
|
|
export import SidebarTheme = __ReactToolbox.Layout.SidebarTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/link" {
|
|
|
|
|
export import Link = __ReactToolbox.Link;
|
|
|
|
|
export default Link;
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import LinkTheme = __ReactToolbox.LinkTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/list" {
|
|
|
|
|
export import List = __ReactToolbox.List.List;
|
|
|
|
|
export import ListCheckbox = __ReactToolbox.List.ListCheckbox;
|
|
|
|
|
export import ListDivider = __ReactToolbox.List.ListDivider;
|
|
|
|
|
export import ListItem = __ReactToolbox.List.ListItem;
|
|
|
|
|
export import ListSubHeader = __ReactToolbox.List.ListSubHeader;
|
|
|
|
|
export default { List, ListCheckbox, ListDivider, ListItem, ListSubHeader };
|
2016-07-17 19:22:23 +03:00
|
|
|
|
|
|
|
|
|
export import ListTheme = __ReactToolbox.List.ListTheme;
|
|
|
|
|
export import ListCheckboxTheme = __ReactToolbox.List.ListCheckboxTheme;
|
|
|
|
|
export import ListDividerTheme = __ReactToolbox.List.ListDividerTheme;
|
|
|
|
|
export import ListItemTheme = __ReactToolbox.List.ListItemTheme;
|
|
|
|
|
export import ListSubHeaderTheme = __ReactToolbox.List.ListSubHeaderTheme;
|
2016-07-17 16:48:35 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/menu" {
|
|
|
|
|
export import Menu = __ReactToolbox.Menu.Menu;
|
|
|
|
|
export import IconMenu = __ReactToolbox.Menu.IconMenu;
|
|
|
|
|
export import MenuDivider = __ReactToolbox.Menu.MenuDivider;
|
|
|
|
|
export import MenuItem = __ReactToolbox.Menu.MenuItem;
|
|
|
|
|
export default { Menu, IconMenu, MenuDivider, MenuItem };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/navigation" {
|
|
|
|
|
export import Navigation = __ReactToolbox.Navigation;
|
|
|
|
|
export default Navigation;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/progress_bar" {
|
|
|
|
|
export import Progressbar = __ReactToolbox.ProgressBar;
|
|
|
|
|
export default Progressbar;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/radio" {
|
|
|
|
|
export import RadioGroup = __ReactToolbox.Radio.RadioGroup;
|
|
|
|
|
export import RadioButton = __ReactToolbox.Radio.RadioButton;
|
|
|
|
|
export default { RadioGroup, RadioButton };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/ripple" {
|
|
|
|
|
export import Ripple = __ReactToolbox.Ripple;
|
|
|
|
|
export default Ripple;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/slider" {
|
|
|
|
|
export import Slider = __ReactToolbox.Slider;
|
|
|
|
|
export default Slider;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/snackbar" {
|
|
|
|
|
export import Snackbar = __ReactToolbox.Snackbar;
|
|
|
|
|
export default Snackbar;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/switch" {
|
|
|
|
|
export import Switch = __ReactToolbox.Switch;
|
|
|
|
|
export default Switch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/table" {
|
|
|
|
|
export import Table = __ReactToolbox.Table;
|
|
|
|
|
export default Table;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/tabs" {
|
|
|
|
|
export import Tab = __ReactToolbox.Tabs.Tab;
|
|
|
|
|
export import Tabs = __ReactToolbox.Tabs.Tabs;
|
|
|
|
|
export default { Tab, Tabs };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/time_picker" {
|
|
|
|
|
export import TimePicker = __ReactToolbox.TimePicker;
|
|
|
|
|
export default TimePicker;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module "react-toolbox/lib/tooltip" {
|
|
|
|
|
export import Tooltip = __ReactToolbox.Tooltip;
|
|
|
|
|
export default Tooltip;
|
|
|
|
|
}
|