-
Notifications
You must be signed in to change notification settings - Fork 972
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update libs with new external .d.ts files
- Loading branch information
1 parent
235d914
commit 9856ca0
Showing
38 changed files
with
2,331 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import * as React from 'react'; | ||
export interface Props { | ||
/** | ||
* Sets a CSS class on the component. | ||
*/ | ||
className?: string, | ||
id?: string; | ||
/** | ||
* A key used to uniquely identify the element within an Array | ||
*/ | ||
key?: string, | ||
/** | ||
* Inline style | ||
*/ | ||
style?: any, | ||
/** | ||
* Tooltip text | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltip?: string, | ||
/** | ||
* Amount of time in miliseconds spent before the tooltip is visible. | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltipDelay?: number, | ||
/** | ||
* If true, the Tooltip hides after a click in the host component. | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @default true | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltipHideOnClick?: boolean, | ||
} | ||
|
||
export interface AppBarProps extends Props { | ||
/** | ||
* If true, the AppBar shows a shadow. | ||
* @default false | ||
*/ | ||
flat?: boolean, | ||
/** | ||
* Determine if the bar should have position fixed (true) or relative (false) | ||
* @default false | ||
*/ | ||
fixed?: boolean, | ||
} | ||
/** | ||
* The app bar is a special kind of toolbar that’s used for branding, navigation, search, and actions. | ||
* Usually it contains controls on the right and left side and a title with the current section or app name. | ||
* You should give the content with children elements. | ||
*/ | ||
export default class AppBar extends React.Component<AppBarProps, {}> { | ||
render(): React.DOMElement<any, any>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import * as React from 'react'; | ||
export interface Props { | ||
/** | ||
* Sets a CSS class on the component. | ||
*/ | ||
className?: string, | ||
id?: string; | ||
/** | ||
* A key used to uniquely identify the element within an Array | ||
*/ | ||
key?: string, | ||
/** | ||
* Inline style | ||
*/ | ||
style?: any, | ||
/** | ||
* Tooltip text | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltip?: string, | ||
/** | ||
* Amount of time in miliseconds spent before the tooltip is visible. | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltipDelay?: number, | ||
/** | ||
* If true, the Tooltip hides after a click in the host component. | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @default true | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltipHideOnClick?: boolean, | ||
} | ||
export interface Conditional { | ||
/** | ||
* If true, component will be disabled | ||
* @default false | ||
*/ | ||
disabled?: boolean | ||
} | ||
|
||
/** | ||
* Properties of components that have values that can be changed (T is the type of the value) | ||
*/ | ||
export interface Changeable<T> { | ||
/** | ||
* Callback called when the picker value is changed. | ||
* @param v Type of the value | ||
*/ | ||
onChange?: (v: T) => void | ||
} | ||
|
||
export interface AutocompleteProps extends Props, Conditional, Changeable<string | Array<any>> { | ||
/** | ||
* Sets the error string for the internal input element. | ||
*/ | ||
error?: string, | ||
/** | ||
* The text string to use for the floating label element. | ||
*/ | ||
label?: string, | ||
/** | ||
* If true, component can hold multiple values. | ||
* @default true | ||
*/ | ||
multiple?: boolean, | ||
/** | ||
* Object of key/values or array representing all items suggested. | ||
*/ | ||
source: Object | Array<any>, | ||
/** | ||
* If true, the list of suggestions will not be filtered when a value is selected, until the query is modified. | ||
* @default false | ||
*/ | ||
showSuggestionsWhenValueIsSet?: boolean, | ||
/** | ||
* Type of the input element. It can be a valid HTML5 input type | ||
* @default text | ||
*/ | ||
type?: string, | ||
/** | ||
* Value or array of values currently selected component.Current value of the input element. | ||
*/ | ||
value?: string | Array<any>, | ||
} | ||
/** | ||
* An input field with a set of predeterminated labeled values. When it's focused it shows a list of hints that are filtered by label as the user types. | ||
* They can be simple or multiple depending on the amount of values that can be selected. | ||
* The opening direction is determined at opening time depending on the current position. | ||
*/ | ||
export default class Autocomplete extends React.Component<AutocompleteProps, {}> { | ||
render(): React.DOMElement<any, any>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import * as React from 'react'; | ||
export interface Props { | ||
/** | ||
* Sets a CSS class on the component. | ||
*/ | ||
className?: string, | ||
id?: string; | ||
/** | ||
* A key used to uniquely identify the element within an Array | ||
*/ | ||
key?: string, | ||
/** | ||
* Inline style | ||
*/ | ||
style?: any, | ||
/** | ||
* Tooltip text | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltip?: string, | ||
/** | ||
* Amount of time in miliseconds spent before the tooltip is visible. | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltipDelay?: number, | ||
/** | ||
* If true, the Tooltip hides after a click in the host component. | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @default true | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltipHideOnClick?: boolean, | ||
} | ||
export interface Iconic { | ||
/** | ||
* Value of the icon (See icon component). | ||
*/ | ||
icon?: string | React.ReactElement<any> | React.ReactHTMLElement<any>, | ||
} | ||
export interface AvatarProps extends Props, Iconic { | ||
children?: any, | ||
image?: string | React.ReactElement<any> | React.ReactHTMLElement<any> | React.ClassicComponent<any, any>, | ||
title?: string | boolean, | ||
} | ||
/** | ||
* Avatars can be used to represent people. | ||
* For personal avatars, offer personalization options. | ||
* As users may choose not to personalize an avatar, provide delightful defaults. | ||
* When used with a specific logo, avatars can also be used to represent brand. | ||
*/ | ||
export default class Avatar extends React.Component<AvatarProps, {}> { | ||
render(): React.DOMElement<any, any>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
import * as React from 'react'; | ||
export interface Props { | ||
/** | ||
* Sets a CSS class on the component. | ||
*/ | ||
className?: string, | ||
id?: string; | ||
/** | ||
* A key used to uniquely identify the element within an Array | ||
*/ | ||
key?: string, | ||
/** | ||
* Inline style | ||
*/ | ||
style?: any, | ||
/** | ||
* Tooltip text | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltip?: string, | ||
/** | ||
* Amount of time in miliseconds spent before the tooltip is visible. | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltipDelay?: number, | ||
/** | ||
* If true, the Tooltip hides after a click in the host component. | ||
* APPLIES ONLY IF THE COMPONENT IS WRAPPED WITH Tooltip. | ||
* @default true | ||
* @see http://react-toolbox.com/#/components/tooltip | ||
*/ | ||
tooltipHideOnClick?: boolean, | ||
} | ||
|
||
// Interface for components with icons | ||
export interface Iconic { | ||
/** | ||
* Value of the icon (See icon component). | ||
*/ | ||
icon?: string | React.ReactElement<any> | React.ReactHTMLElement<any>, | ||
} | ||
|
||
export interface Conditional { | ||
/** | ||
* If true, component will be disabled | ||
* @default false | ||
*/ | ||
disabled?: boolean | ||
} | ||
|
||
/** | ||
* Properties of components that can be clicked | ||
*/ | ||
export interface Clickable { | ||
/** | ||
* Callback called when the button is clicked. | ||
*/ | ||
onClick?: Function | ||
} | ||
export interface ButtonProps extends Props, Clickable, Conditional, Iconic { | ||
/** | ||
* Indicates if the button should have accent color. | ||
* @default false | ||
*/ | ||
accent?: boolean, | ||
/** | ||
* If true, the button will have a flat look. | ||
* @default false | ||
*/ | ||
flat?: boolean, | ||
/** | ||
* If true, the button will have a floating look. | ||
* @default false | ||
*/ | ||
floating?: boolean, | ||
/** | ||
* If specified, the button will be rendered as an <a> | ||
*/ | ||
href?: string, | ||
/** | ||
* The text string to use for the name of the button. | ||
*/ | ||
label?: string, | ||
/** | ||
* If true, component will be disabled and show a loading animation. | ||
* @default false | ||
*/ | ||
loading?: boolean, | ||
/** | ||
* To be used with floating button. If true the button will be smaller. | ||
* @default false | ||
*/ | ||
mini?: boolean, | ||
/** | ||
* Indicates if the button should have primary color. | ||
* @default false | ||
*/ | ||
primary?: boolean, | ||
/** | ||
* If true, the button will have a raised look. | ||
* @default false | ||
*/ | ||
raised?: boolean, | ||
/** | ||
* If true, component will have a ripple effect on click. | ||
* @default true | ||
*/ | ||
ripple?: boolean, | ||
} | ||
/** | ||
* A button clearly communicates what action will occur when the user touches it. | ||
* It consists of text, an image, or both, designed in accordance with your app’s color theme. | ||
*/ | ||
export class Button extends React.Component<ButtonProps, {}> { | ||
render(): React.DOMElement<any, any>; | ||
} | ||
|
||
export class IconButton extends React.Component<ButtonProps, {}> { | ||
render(): React.DOMElement<any, any>; | ||
} |
Oops, something went wrong.