aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@types/react
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-08-14 05:01:11 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-08-14 05:02:09 +0200
commit363723fc84f7b8477592e0105aeb331ec9a017af (patch)
tree29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/@types/react
parent5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff)
downloadwallet-core-363723fc84f7b8477592e0105aeb331ec9a017af.tar.xz
node_modules
Diffstat (limited to 'node_modules/@types/react')
-rw-r--r--node_modules/@types/react/README.md4
-rw-r--r--node_modules/@types/react/index.d.ts1615
-rw-r--r--node_modules/@types/react/package.json26
3 files changed, 1195 insertions, 450 deletions
diff --git a/node_modules/@types/react/README.md b/node_modules/@types/react/README.md
index f948eea35..3d15f7d05 100644
--- a/node_modules/@types/react/README.md
+++ b/node_modules/@types/react/README.md
@@ -8,9 +8,9 @@ This package contains type definitions for React (http://facebook.github.io/reac
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react
Additional Details
- * Last updated: Thu, 04 May 2017 23:19:18 GMT
+ * Last updated: Wed, 09 Aug 2017 14:12:23 GMT
* Dependencies: none
* Global values: React
# Credits
-These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly/>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>.
+These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly/>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>, Albert Kurniawan <https://github.com/morcerf>, Tanguy Krotoff <https://github.com/tkrotoff>, Dovydas Navickas <https://github.com/DovydasNavickas>, Stéphane Goetz <https://github.com/onigoetz>, Rich Seviora <https://github.com/richseviora>.
diff --git a/node_modules/@types/react/index.d.ts b/node_modules/@types/react/index.d.ts
index 7880df543..c7f66eabb 100644
--- a/node_modules/@types/react/index.d.ts
+++ b/node_modules/@types/react/index.d.ts
@@ -1,8 +1,51 @@
-// Type definitions for React v15.0
+// Type definitions for React 16.0
// Project: http://facebook.github.io/react/
-// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, John Reilly <https://github.com/johnnyreilly/>, Benoit Benezech <https://github.com/bbenezech>, Patricio Zavolinsky <https://github.com/pzavolinsky>, Digiguru <https://github.com/digiguru>, Eric Anderson <https://github.com/ericanderson>
+// Definitions by: Asana <https://asana.com>
+// AssureSign <http://www.assuresign.com>
+// Microsoft <https://microsoft.com>
+// John Reilly <https://github.com/johnnyreilly/>
+// Benoit Benezech <https://github.com/bbenezech>
+// Patricio Zavolinsky <https://github.com/pzavolinsky>
+// Digiguru <https://github.com/digiguru>
+// Eric Anderson <https://github.com/ericanderson>
+// Albert Kurniawan <https://github.com/morcerf>
+// Tanguy Krotoff <https://github.com/tkrotoff>
+// Dovydas Navickas <https://github.com/DovydasNavickas>
+// Stéphane Goetz <https://github.com/onigoetz>
+// Rich Seviora <https://github.com/richseviora>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// TypeScript Version: 2.2
+// TypeScript Version: 2.3
+
+/*
+Known Problems & Workarounds
+1. The type of cloneElement is incorrect.
+cloneElement(element, props) should accept props object with a subset of properties on element.props.
+React attributes, such as key and ref, should also be accepted in props, but should not exist on element.props.
+The "correct" way to model this, then, is with:
+declare function cloneElement<P extends Q, Q>(
+ element: ReactElement<P>,
+ props?: Q & Attributes,
+ ...children: ReactNode[]): ReactElement<P>;
+However, type inference for Q defaults to {} when intersected with another type.
+(https://github.com/Microsoft/TypeScript/pull/5738#issuecomment-181904905)
+And since any object is assignable to {}, we would lose the type safety of the P extends Q constraint.
+Therefore, the type of props is left as Q, which should work for most cases.
+If you need to call cloneElement with key or ref, you'll need a type cast:
+interface ButtonProps {
+ label: string,
+ isDisabled?: boolean;
+}
+var element: React.CElement<ButtonProps, Button>;
+React.cloneElement(element, { label: "label" });
+// cloning with optional props requires a cast
+React.cloneElement(element, <{ isDisabled?: boolean }>{ isDisabled: true });
+// cloning with key or ref requires a cast
+React.cloneElement(element, <React.ClassAttributes<Button>>{ ref: button => button.reset() });
+React.cloneElement(element, <{ isDisabled?: boolean } & React.Attributes>{
+ key: "disabledButton",
+ isDisabled: true
+});
+*/
type NativeAnimationEvent = AnimationEvent;
type NativeClipboardEvent = ClipboardEvent;
@@ -16,20 +59,23 @@ type NativeTransitionEvent = TransitionEvent;
type NativeUIEvent = UIEvent;
type NativeWheelEvent = WheelEvent;
+// tslint:disable-next-line:export-just-namespace
export = React;
export as namespace React;
declare namespace React {
-
//
// React Elements
// ----------------------------------------------------------------------
- type ReactType = string | ComponentClass<any> | StatelessComponent<any>;
+ type ReactType = string | ComponentType<any>;
+ type ComponentType<P = {}> = ComponentClass<P> | StatelessComponent<P>;
type Key = string | number;
- type Ref<T> = string | ((instance: T) => any);
- type ComponentState = {} | void;
+ type Ref<T> = string | ((instance: T | null) => any);
+
+ // tslint:disable-next-line:interface-over-type-literal
+ type ComponentState = {};
interface Attributes {
key?: Key;
@@ -56,47 +102,51 @@ declare namespace React {
type ClassicElement<P> = CElement<P, ClassicComponent<P, ComponentState>>;
- interface DOMElement<P extends DOMAttributes<T>, T extends Element> extends ReactElement<P> {
+ // string fallback for custom web-components
+ interface DOMElement<P extends HTMLAttributes<T> | SVGAttributes<T>, T extends Element> extends ReactElement<P> {
type: string;
ref: Ref<T>;
}
- interface ReactHTMLElement<T extends HTMLElement> extends DOMElement<HTMLAttributes<T>, T> {
+ // ReactHTML for ReactHTMLElement
+ // tslint:disable-next-line:no-empty-interface
+ interface ReactHTMLElement<T extends HTMLElement> extends DetailedReactHTMLElement<AllHTMLAttributes<T>, T> { }
+
+ interface DetailedReactHTMLElement<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMElement<P, T> {
+ type: keyof ReactHTML;
}
+ // ReactSVG for ReactSVGElement
interface ReactSVGElement extends DOMElement<SVGAttributes<SVGElement>, SVGElement> {
+ type: keyof ReactSVG;
}
//
// Factories
// ----------------------------------------------------------------------
- interface Factory<P> {
- (props?: Attributes & P, ...children: ReactNode[]): ReactElement<P>;
- }
+ type Factory<P> = (props?: Attributes & P, ...children: ReactNode[]) => ReactElement<P>;
- interface SFCFactory<P> {
- (props?: Attributes & P, ...children: ReactNode[]): SFCElement<P>;
- }
+ type SFCFactory<P> = (props?: Attributes & P, ...children: ReactNode[]) => SFCElement<P>;
- interface ComponentFactory<P, T extends Component<P, ComponentState>> {
- (props?: ClassAttributes<T> & P, ...children: ReactNode[]): CElement<P, T>;
- }
+ type ComponentFactory<P, T extends Component<P, ComponentState>> =
+ (props?: ClassAttributes<T> & P, ...children: ReactNode[]) => CElement<P, T>;
type CFactory<P, T extends Component<P, ComponentState>> = ComponentFactory<P, T>;
type ClassicFactory<P> = CFactory<P, ClassicComponent<P, ComponentState>>;
- interface DOMFactory<P extends DOMAttributes<T>, T extends Element> {
- (props?: ClassAttributes<T> & P | null, ...children: ReactNode[]): DOMElement<P, T>;
- }
+ type DOMFactory<P extends DOMAttributes<T>, T extends Element> =
+ (props?: ClassAttributes<T> & P | null, ...children: ReactNode[]) => DOMElement<P, T>;
- interface HTMLFactory<T extends HTMLElement> extends DOMFactory<HTMLAttributes<T>, T> {
- }
+ // tslint:disable-next-line:no-empty-interface
+ interface HTMLFactory<T extends HTMLElement> extends DetailedHTMLFactory<AllHTMLAttributes<T>, T> {}
- interface ChangeTargetHTMLFactory<T extends HTMLElement> extends DOMFactory<ChangeTargetHTMLAttributes<T>, T> {
+ interface DetailedHTMLFactory<P extends HTMLAttributes<T>, T extends HTMLElement> extends DOMFactory<P, T> {
+ (props?: ClassAttributes<T> & P | null, ...children: ReactNode[]): DetailedReactHTMLElement<P, T>;
}
interface SVGFactory extends DOMFactory<SVGAttributes<SVGElement>, SVGElement> {
+ (props?: ClassAttributes<SVGElement> & SVGAttributes<SVGElement> | null, ...children: ReactNode[]): ReactSVGElement;
}
//
@@ -117,8 +167,15 @@ declare namespace React {
function createClass<P, S>(spec: ComponentSpec<P, S>): ClassicComponentClass<P>;
+ // DOM Elements
+ function createFactory<T extends HTMLElement>(
+ type: keyof ReactHTML): HTMLFactory<T>;
+ function createFactory(
+ type: keyof ReactSVG): SVGFactory;
function createFactory<P extends DOMAttributes<T>, T extends Element>(
type: string): DOMFactory<P, T>;
+
+ // Custom components
function createFactory<P>(type: SFC<P>): SFCFactory<P>;
function createFactory<P>(
type: ClassType<P, ClassicComponent<P, ComponentState>, ClassicComponentClass<P>>): CFactory<P, ClassicComponent<P, ComponentState>>;
@@ -126,10 +183,21 @@ declare namespace React {
type: ClassType<P, T, C>): CFactory<P, T>;
function createFactory<P>(type: ComponentClass<P>): Factory<P>;
+ // DOM Elements
+ function createElement<P extends HTMLAttributes<T>, T extends HTMLElement>(
+ type: keyof ReactHTML,
+ props?: ClassAttributes<T> & P,
+ ...children: ReactNode[]): DetailedReactHTMLElement<P, T>;
+ function createElement<P extends SVGAttributes<T>, T extends SVGElement>(
+ type: keyof ReactSVG,
+ props?: ClassAttributes<T> & P,
+ ...children: ReactNode[]): ReactSVGElement;
function createElement<P extends DOMAttributes<T>, T extends Element>(
type: string,
props?: ClassAttributes<T> & P,
...children: ReactNode[]): DOMElement<P, T>;
+
+ // Custom components
function createElement<P>(
type: SFC<P>,
props?: Attributes & P,
@@ -147,10 +215,29 @@ declare namespace React {
props?: Attributes & P,
...children: ReactNode[]): ReactElement<P>;
+ // DOM Elements
+ // ReactHTMLElement
+ function cloneElement<P extends HTMLAttributes<T>, T extends HTMLElement>(
+ element: DetailedReactHTMLElement<P, T>,
+ props?: P,
+ ...children: ReactNode[]): DetailedReactHTMLElement<P, T>;
+ // ReactHTMLElement, less specific
+ function cloneElement<P extends HTMLAttributes<T>, T extends HTMLElement>(
+ element: ReactHTMLElement<T>,
+ props?: P,
+ ...children: ReactNode[]): ReactHTMLElement<T>;
+ // SVGElement
+ function cloneElement<P extends SVGAttributes<T>, T extends SVGElement>(
+ element: ReactSVGElement,
+ props?: P,
+ ...children: ReactNode[]): ReactSVGElement;
+ // DOM Element (has to be the last, because type checking stops at first overload that fits)
function cloneElement<P extends DOMAttributes<T>, T extends Element>(
element: DOMElement<P, T>,
- props?: ClassAttributes<T> & P,
+ props?: DOMAttributes<T> & P,
...children: ReactNode[]): DOMElement<P, T>;
+
+ // Custom components
function cloneElement<P extends Q, Q>(
element: SFCElement<P>,
props?: Q, // should be Q & Attributes, but then Q is inferred as {}
@@ -166,24 +253,31 @@ declare namespace React {
function isValidElement<P>(object: {}): object is ReactElement<P>;
- var DOM: ReactDOM;
- var PropTypes: ReactPropTypes;
- var Children: ReactChildren;
- var version: string;
+ const DOM: ReactDOM;
+ const PropTypes: ReactPropTypes;
+ const Children: ReactChildren;
+ const version: string;
//
// Component API
// ----------------------------------------------------------------------
- type ReactInstance = Component<any, any> | Element;
+ type ReactInstance = Component<any> | Element;
// Base component for plain JS classes
- class Component<P, S> implements ComponentLifecycle<P, S> {
+ // tslint:disable-next-line:no-empty-interface
+ interface Component<P = {}, S = {}> extends ComponentLifecycle<P, S> { }
+ class Component<P, S> {
constructor(props?: P, context?: any);
+
+ // Disabling unified-signatures to have separate overloads. It's easier to understand this way.
+ // tslint:disable:unified-signatures
setState<K extends keyof S>(f: (prevState: S, props: P) => Pick<S, K>, callback?: () => any): void;
setState<K extends keyof S>(state: Pick<S, K>, callback?: () => any): void;
+ // tslint:enable:unified-signatures
+
forceUpdate(callBack?: () => any): void;
- render(): JSX.Element | null;
+ render(): JSX.Element | null | false;
// React.Props<T> is now deprecated, which means that the `children`
// property is not available on `P` by default, even though you can
@@ -198,9 +292,9 @@ declare namespace React {
};
}
- class PureComponent<P, S> extends Component<P, S> { }
+ class PureComponent<P = {}, S = {}> extends Component<P, S> { }
- interface ClassicComponent<P, S> extends Component<P, S> {
+ interface ClassicComponent<P = {}, S = {}> extends Component<P, S> {
replaceState(nextState: S, callback?: () => any): void;
isMounted(): boolean;
getInitialState?(): S;
@@ -214,16 +308,16 @@ declare namespace React {
// Class Interfaces
// ----------------------------------------------------------------------
- type SFC<P> = StatelessComponent<P>;
- interface StatelessComponent<P> {
- (props: P & { children?: ReactNode }, context?: any): ReactElement<any>;
+ type SFC<P = {}> = StatelessComponent<P>;
+ interface StatelessComponent<P = {}> {
+ (props: P & { children?: ReactNode }, context?: any): ReactElement<any> | null;
propTypes?: ValidationMap<P>;
contextTypes?: ValidationMap<any>;
defaultProps?: Partial<P>;
displayName?: string;
}
- interface ComponentClass<P> {
+ interface ComponentClass<P = {}> {
new (props?: P, context?: any): Component<P, ComponentState>;
propTypes?: ValidationMap<P>;
contextTypes?: ValidationMap<any>;
@@ -232,7 +326,7 @@ declare namespace React {
displayName?: string;
}
- interface ClassicComponentClass<P> extends ComponentClass<P> {
+ interface ClassicComponentClass<P = {}> extends ComponentClass<P> {
new (props?: P, context?: any): ClassicComponent<P, ComponentState>;
getDefaultProps?(): P;
}
@@ -252,17 +346,58 @@ declare namespace React {
// ----------------------------------------------------------------------
interface ComponentLifecycle<P, S> {
+ /**
+ * Called immediately before mounting occurs, and before `Component#render`.
+ * Avoid introducing any side-effects or subscriptions in this method.
+ */
componentWillMount?(): void;
+ /**
+ * Called immediately after a compoment is mounted. Setting state here will trigger re-rendering.
+ */
componentDidMount?(): void;
+ /**
+ * Called when the component may be receiving new props.
+ * React may call this even if props have not changed, so be sure to compare new and existing
+ * props if you only want to handle changes.
+ *
+ * Calling `Component#setState` generally does not trigger this method.
+ */
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
+ /**
+ * Called to determine whether the change in props and state should trigger a re-render.
+ *
+ * `Component` always returns true.
+ * `PureComponent` implements a shallow comparison on props and state and returns true if any
+ * props or states have changed.
+ *
+ * If false is returned, `Component#render`, `componentWillUpdate`
+ * and `componentDidUpdate` will not be called.
+ */
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): boolean;
+ /**
+ * Called immediately before rendering when new props or state is received. Not called for the initial render.
+ *
+ * Note: You cannot call `Component#setState` here.
+ */
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
+ /**
+ * Called immediately after updating occurs. Not called for the initial render.
+ */
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<S>, prevContext: any): void;
+ /**
+ * Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as
+ * cancelled network requests, or cleaning up any DOM elements created in `componentDidMount`.
+ */
componentWillUnmount?(): void;
+ /**
+ * Catches exceptions generated in descendant components. Unhandled exceptions will cause
+ * the entire component tree to unmount.
+ */
+ componentDidCatch?(error: Error, errorInfo: ErrorInfo): void;
}
interface Mixin<P, S> extends ComponentLifecycle<P, S> {
- mixins?: Mixin<P, S>;
+ mixins?: Array<Mixin<P, S>>;
statics?: {
[key: string]: any;
};
@@ -325,9 +460,14 @@ declare namespace React {
relatedTarget: EventTarget;
}
+ // tslint:disable-next-line:no-empty-interface
interface FormEvent<T> extends SyntheticEvent<T> {
}
+ interface InvalidEvent<T> extends SyntheticEvent<T> {
+ target: EventTarget & T;
+ }
+
interface ChangeEvent<T> extends SyntheticEvent<T> {
target: EventTarget & T;
}
@@ -410,9 +550,7 @@ declare namespace React {
// Event Handler Types
// ----------------------------------------------------------------------
- interface EventHandler<E extends SyntheticEvent<any>> {
- (event: E): void;
- }
+ type EventHandler<E extends SyntheticEvent<any>> = (event: E) => void;
type ReactEventHandler<T> = EventHandler<SyntheticEvent<T>>;
@@ -441,7 +579,7 @@ declare namespace React {
* `createElement` or a factory, use `ClassAttributes<T>`:
*
* ```ts
- * var b: Button;
+ * var b: Button | null;
* var props: ButtonProps & ClassAttributes<Button> = {
* ref: b => button = b, // ok!
* label: "I'm a Button"
@@ -454,11 +592,10 @@ declare namespace React {
ref?: Ref<T>;
}
- interface HTMLProps<T> extends HTMLAttributes<T>, ClassAttributes<T> {
+ interface HTMLProps<T> extends AllHTMLAttributes<T>, ClassAttributes<T> {
}
- interface ChangeTargetHTMLProps<T extends HTMLElement> extends ChangeTargetHTMLAttributes<T>, ClassAttributes<T> {
- }
+ type DetailedHTMLProps<E extends HTMLAttributes<T>, T> = ClassAttributes<T> & E;
interface SVGProps<T> extends SVGAttributes<T>, ClassAttributes<T> {
}
@@ -500,6 +637,8 @@ declare namespace React {
onResetCapture?: FormEventHandler<T>;
onSubmit?: FormEventHandler<T>;
onSubmitCapture?: FormEventHandler<T>;
+ onInvalid?: FormEventHandler<T>;
+ onInvalidCapture?: FormEventHandler<T>;
// Image Events
onLoad?: ReactEventHandler<T>;
@@ -646,7 +785,6 @@ declare namespace React {
// This interface is not complete. Only properties accepting
// unitless numbers are listed here (see CSSProperty.js in React)
interface CSSProperties {
-
/**
* Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how justify-content aligns individual items within the main-axis.
*/
@@ -663,7 +801,10 @@ declare namespace React {
alignSelf?: CSSWideKeyword | "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
/**
- * This property allows precise alignment of elements, such as graphics, that do not have a baseline-table or lack the desired baseline in their baseline-table. With the alignment-adjust property, the position of the baseline identified by the alignment-baseline can be explicitly determined. It also determines precisely the alignment point for each glyph within a textual element.
+ * This property allows precise alignment of elements, such as graphics,
+ * that do not have a baseline-table or lack the desired baseline in their baseline-table.
+ * With the alignment-adjust property, the position of the baseline identified by the alignment-baseline
+ * can be explicitly determined. It also determines precisely the alignment point for each glyph within a textual element.
*/
alignmentAdjust?: CSSWideKeyword | any;
@@ -722,7 +863,9 @@ declare namespace React {
/**
* This property describes how the element's background images should blend with each other and the element's background color.
- * The value is a list of blend modes that corresponds to each background image. Each element in the list will apply to the corresponding element of background-image. If a property doesn’t have enough comma-separated values to match the number of layers, the UA must calculate its used value by repeating the list of values until there are enough.
+ * The value is a list of blend modes that corresponds to each background image. Each element in the list will apply to the
+ * corresponding element of background-image. If a property doesn’t have enough comma-separated values to match the number of layers,
+ * the UA must calculate its used value by repeating the list of values until there are enough.
*/
backgroundBlendMode?: CSSWideKeyword | any;
@@ -764,7 +907,8 @@ declare namespace React {
behavior?: CSSWideKeyword | any;
/**
- * Shorthand property that defines the different properties of all four sides of an element's border in a single declaration. It can be used to set border-width, border-style and border-color, or a subset of these.
+ * Shorthand property that defines the different properties of all four sides of an element's border in a single declaration.
+ * It can be used to set border-width, border-style and border-color, or a subset of these.
*/
border?: CSSWideKeyword | any;
@@ -795,7 +939,9 @@ declare namespace React {
borderBottomStyle?: CSSWideKeyword | any;
/**
- * Sets the width of an element's bottom border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's bottom border. To set all four borders,
+ * use the border-width shorthand property which sets the values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderBottomWidth?: CSSWideKeyword | any;
@@ -805,69 +951,90 @@ declare namespace React {
borderCollapse?: CSSWideKeyword | any;
/**
- * The CSS border-color property sets the color of an element's four borders. This property can have from one to four values, made up of the elementary properties:
+ * The CSS border-color property sets the color of an element's four borders.
+ * This property can have from one to four values, made up of the elementary properties:
* • border-top-color
* • border-right-color
* • border-bottom-color
* • border-left-color The default color is the currentColor of each of these values.
- * If you provide one value, it sets the color for the element. Two values set the horizontal and vertical values, respectively. Providing three values sets the top, vertical, and bottom values, in that order. Four values set all for sides: top, right, bottom, and left, in that order.
+ * If you provide one value, it sets the color for the element. Two values set the horizontal and vertical values,
+ * respectively. Providing three values sets the top, vertical, and bottom values, in that order.
+ * Four values set all for sides: top, right, bottom, and left, in that order.
*/
borderColor?: CSSWideKeyword | any;
/**
- * Specifies different corner clipping effects, such as scoop (inner curves), bevel (straight cuts) or notch (cut-off rectangles). Works along with border-radius to specify the size of each corner effect.
+ * Specifies different corner clipping effects, such as scoop (inner curves), bevel (straight cuts) or notch (cut-off rectangles).
+ * Works along with border-radius to specify the size of each corner effect.
*/
borderCornerShape?: CSSWideKeyword | any;
/**
- * The property border-image-source is used to set the image to be used instead of the border style. If this is set to none the border-style is used instead.
+ * The property border-image-source is used to set the image to be used instead of the border style.
+ * If this is set to none the border-style is used instead.
*/
borderImageSource?: CSSWideKeyword | any;
/**
- * The border-image-width CSS property defines the offset to use for dividing the border image in nine parts, the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge, bottom-left corner, and central right edge. They represent inward distance from the top, right, bottom, and left edges.
+ * The border-image-width CSS property defines the offset to use for dividing the border image in nine parts,
+ * the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge,
+ * bottom-left corner, and central right edge. They represent inward distance from the top, right, bottom, and left edges.
*/
borderImageWidth?: CSSWideKeyword | any;
/**
- * Shorthand property that defines the border-width, border-style and border-color of an element's left border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the left border — border-left-width, border-left-style and border-left-color.
+ * Shorthand property that defines the border-width, border-style and border-color of an element's left border in a single declaration.
+ * Note that you can use the corresponding longhand properties to set specific individual properties of the left border — border-left-width,
+ * border-left-style and border-left-color.
*/
borderLeft?: CSSWideKeyword | any;
/**
- * The CSS border-left-color property sets the color of an element's left border. This page explains the border-left-color value, but often you will find it more convenient to fix the border's left color as part of a shorthand set, either border-left or border-color.
+ * The CSS border-left-color property sets the color of an element's left border. This page explains the border-left-color value,
+ * but often you will find it more convenient to fix the border's left color as part of a shorthand set, either border-left or border-color.
* Colors can be defined several ways. For more information, see Usage.
*/
borderLeftColor?: CSSWideKeyword | any;
/**
- * Sets the style of an element's left border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
+ * Sets the style of an element's left border. To set all four borders, use the shorthand property, border-style.
+ * Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
*/
borderLeftStyle?: CSSWideKeyword | any;
/**
- * Sets the width of an element's left border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's left border. To set all four borders,
+ * use the border-width shorthand property which sets the values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderLeftWidth?: CSSWideKeyword | any;
/**
- * Shorthand property that defines the border-width, border-style and border-color of an element's right border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the right border — border-right-width, border-right-style and border-right-color.
+ * Shorthand property that defines the border-width, border-style and border-color of an element's right border
+ * in a single declaration. Note that you can use the corresponding longhand properties to set specific
+ * individual properties of the right border — border-right-width, border-right-style and border-right-color.
*/
borderRight?: CSSWideKeyword | any;
/**
- * Sets the color of an element's right border. This page explains the border-right-color value, but often you will find it more convenient to fix the border's right color as part of a shorthand set, either border-right or border-color.
+ * Sets the color of an element's right border. This page explains the border-right-color value,
+ * but often you will find it more convenient to fix the border's right color as part of a shorthand set,
+ * either border-right or border-color.
* Colors can be defined several ways. For more information, see Usage.
*/
borderRightColor?: CSSWideKeyword | any;
/**
- * Sets the style of an element's right border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
+ * Sets the style of an element's right border. To set all four borders, use the shorthand property,
+ * border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style,
+ * border-bottom-style, border-left-style.
*/
borderRightStyle?: CSSWideKeyword | any;
/**
- * Sets the width of an element's right border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's right border. To set all four borders,
+ * use the border-width shorthand property which sets the values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderRightWidth?: CSSWideKeyword | any;
@@ -877,17 +1044,24 @@ declare namespace React {
borderSpacing?: CSSWideKeyword | any;
/**
- * Sets the style of an element's four borders. This property can have from one to four values. With only one value, the value will be applied to all four borders; otherwise, this works as a shorthand property for each of border-top-style, border-right-style, border-bottom-style, border-left-style, where each border style may be assigned a separate value.
+ * Sets the style of an element's four borders. This property can have from one to four values.
+ * With only one value, the value will be applied to all four borders;
+ * otherwise, this works as a shorthand property for each of border-top-style, border-right-style,
+ * border-bottom-style, border-left-style, where each border style may be assigned a separate value.
*/
borderStyle?: CSSWideKeyword | any;
/**
- * Shorthand property that defines the border-width, border-style and border-color of an element's top border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the top border — border-top-width, border-top-style and border-top-color.
+ * Shorthand property that defines the border-width, border-style and border-color of an element's top border
+ * in a single declaration. Note that you can use the corresponding longhand properties to set specific
+ * individual properties of the top border — border-top-width, border-top-style and border-top-color.
*/
borderTop?: CSSWideKeyword | any;
/**
- * Sets the color of an element's top border. This page explains the border-top-color value, but often you will find it more convenient to fix the border's top color as part of a shorthand set, either border-top or border-color.
+ * Sets the color of an element's top border. This page explains the border-top-color value,
+ * but often you will find it more convenient to fix the border's top color as part of a shorthand set,
+ * either border-top or border-color.
* Colors can be defined several ways. For more information, see Usage.
*/
borderTopColor?: CSSWideKeyword | any;
@@ -903,22 +1077,30 @@ declare namespace React {
borderTopRightRadius?: CSSWideKeyword | any;
/**
- * Sets the style of an element's top border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
+ * Sets the style of an element's top border. To set all four borders, use the shorthand property, border-style.
+ * Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
*/
borderTopStyle?: CSSWideKeyword | any;
/**
- * Sets the width of an element's top border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's top border. To set all four borders,
+ * use the border-width shorthand property which sets the values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderTopWidth?: CSSWideKeyword | any;
/**
- * Sets the width of an element's four borders. This property can have from one to four values. This is a shorthand property for setting values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
+ * Sets the width of an element's four borders. This property can have from one to four values.
+ * This is a shorthand property for setting values simultaneously for border-top-width,
+ * border-right-width, border-bottom-width, and border-left-width.
*/
borderWidth?: CSSWideKeyword | any;
/**
- * This property specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's containing block. For relatively positioned boxes, the offset is with respect to the bottom edges of the box itself (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
+ * This property specifies how far an absolutely positioned box's bottom margin edge
+ * is offset above the bottom edge of the box's containing block. For relatively positioned boxes,
+ * the offset is with respect to the bottom edges of the box itself
+ * (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
*/
bottom?: CSSWideKeyword | any;
@@ -928,7 +1110,9 @@ declare namespace React {
boxAlign?: CSSWideKeyword | any;
/**
- * Breaks a box into fragments creating new borders, padding and repeating backgrounds or lets it stay as a continuous box on a page break, column break, or, for inline elements, at a line break.
+ * Breaks a box into fragments creating new borders,
+ * padding and repeating backgrounds or lets it stay as a continuous box on a page break,
+ * column break, or, for inline elements, at a line break.
*/
boxDecorationBreak?: CSSWideKeyword | any;
@@ -951,7 +1135,8 @@ declare namespace React {
/**
* Do not use. This property has been replaced by flex-order.
- * Specifies the ordinal group that a child element of the object belongs to. This ordinal value identifies the display order (along the axis defined by the box-orient property) for the group.
+ * Specifies the ordinal group that a child element of the object belongs to.
+ * This ordinal value identifies the display order (along the axis defined by the box-orient property) for the group.
*/
boxOrdinalGroup?: CSSWideKeyword | any;
@@ -972,7 +1157,11 @@ declare namespace React {
boxShadow?: CSSWideKeyword | any;
/**
- * The CSS break-after property allows you to force a break on multi-column layouts. More specifically, it allows you to force a break after an element. It allows you to determine if a break should occur, and what type of break it should be. The break-after CSS property describes how the page, column or region break behaves after the generated box. If there is no generated box, the property is ignored.
+ * The CSS break-after property allows you to force a break on multi-column layouts.
+ * More specifically, it allows you to force a break after an element.
+ * It allows you to determine if a break should occur, and what type of break it should be.
+ * The break-after CSS property describes how the page, column or region break behaves after the generated box.
+ * If there is no generated box, the property is ignored.
*/
breakAfter?: CSSWideKeyword | any;
@@ -987,23 +1176,28 @@ declare namespace React {
breakInside?: CSSWideKeyword | any;
/**
- * The clear CSS property specifies if an element can be positioned next to or must be positioned below the floating elements that precede it in the markup.
+ * The clear CSS property specifies if an element can be positioned next to
+ * or must be positioned below the floating elements that precede it in the markup.
*/
clear?: CSSWideKeyword | any;
/**
* Deprecated; see clip-path.
- * Lets you specify the dimensions of an absolutely positioned element that should be visible, and the element is clipped into this shape, and displayed.
+ * Lets you specify the dimensions of an absolutely positioned element that should be visible,
+ * and the element is clipped into this shape, and displayed.
*/
clip?: CSSWideKeyword | any;
/**
- * Clipping crops an graphic, so that only a portion of the graphic is rendered, or filled. This clip-rule property, when used with the clip-path property, defines which clip rule, or algorithm, to use when filling the different parts of a graphics.
+ * Clipping crops an graphic, so that only a portion of the graphic is rendered, or filled.
+ * This clip-rule property, when used with the clip-path property, defines which clip rule, or algorithm,
+ * to use when filling the different parts of a graphics.
*/
clipRule?: CSSWideKeyword | any;
/**
- * The color property sets the color of an element's foreground content (usually text), accepting any standard CSS color from keywords and hex values to RGB(a) and HSL(a).
+ * The color property sets the color of an element's foreground content (usually text),
+ * accepting any standard CSS color from keywords and hex values to RGB(a) and HSL(a).
*/
color?: CSSWideKeyword | any;
@@ -1039,7 +1233,8 @@ declare namespace React {
columnRuleWidth?: CSSWideKeyword | any;
/**
- * The column-span CSS property makes it possible for an element to span across all columns when its value is set to all. An element that spans more than one column is called a spanning element.
+ * The column-span CSS property makes it possible for an element to span across all columns when its value is set to all.
+ * An element that spans more than one column is called a spanning element.
*/
columnSpan?: CSSWideKeyword | any;
@@ -1054,22 +1249,31 @@ declare namespace React {
columns?: CSSWideKeyword | any;
/**
- * The counter-increment property accepts one or more names of counters (identifiers), each one optionally followed by an integer which specifies the value by which the counter should be incremented (e.g. if the value is 2, the counter increases by 2 each time it is invoked).
+ * The counter-increment property accepts one or more names of counters (identifiers),
+ * each one optionally followed by an integer which specifies the value by which the counter should be incremented
+ * (e.g. if the value is 2, the counter increases by 2 each time it is invoked).
*/
counterIncrement?: CSSWideKeyword | any;
/**
- * The counter-reset property contains a list of one or more names of counters, each one optionally followed by an integer (otherwise, the integer defaults to 0.) Each time the given element is invoked, the counters specified by the property are set to the given integer.
+ * The counter-reset property contains a list of one or more names of counters,
+ * each one optionally followed by an integer (otherwise, the integer defaults to 0.).
+ * Each time the given element is invoked, the counters specified by the property are set to the given integer.
*/
counterReset?: CSSWideKeyword | any;
/**
- * The cue property specifies sound files (known as an "auditory icon") to be played by speech media agents before and after presenting an element's content; if only one file is specified, it is played both before and after. The volume at which the file(s) should be played, relative to the volume of the main element, may also be specified. The icon files may also be set separately with the cue-before and cue-after properties.
+ * The cue property specifies sound files (known as an "auditory icon") to be played by speech media agents
+ * before and after presenting an element's content; if only one file is specified, it is played both before and after.
+ * The volume at which the file(s) should be played, relative to the volume of the main element, may also be specified.
+ * The icon files may also be set separately with the cue-before and cue-after properties.
*/
cue?: CSSWideKeyword | any;
/**
- * The cue-after property specifies a sound file (known as an "auditory icon") to be played by speech media agents after presenting an element's content; the volume at which the file should be played may also be specified. The shorthand property cue sets cue sounds for both before and after the element is presented.
+ * The cue-after property specifies a sound file (known as an "auditory icon") to be played by speech media agents
+ * after presenting an element's content; the volume at which the file should be played may also be specified.
+ * The shorthand property cue sets cue sounds for both before and after the element is presented.
*/
cueAfter?: CSSWideKeyword | any;
@@ -1089,7 +1293,11 @@ declare namespace React {
display?: CSSWideKeyword | any;
/**
- * The ‘fill’ property paints the interior of the given graphical element. The area to be painted consists of any areas inside the outline of the shape. To determine the inside of the shape, all subpaths are considered, and the interior is determined according to the rules associated with the current value of the ‘fill-rule’ property. The zero-width geometric outline of a shape is included in the area to be painted.
+ * The ‘fill’ property paints the interior of the given graphical element.
+ * The area to be painted consists of any areas inside the outline of the shape.
+ * To determine the inside of the shape, all subpaths are considered,
+ * and the interior is determined according to the rules associated with the current value of the ‘fill-rule’ property.
+ * The zero-width geometric outline of a shape is included in the area to be painted.
*/
fill?: CSSWideKeyword | any;
@@ -1100,7 +1308,10 @@ declare namespace React {
fillOpacity?: CSSWideKeyword | number;
/**
- * The ‘fill-rule’ property indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape. For a simple, non-intersecting path, it is intuitively clear what region lies "inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious.
+ * The ‘fill-rule’ property indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape.
+ * For a simple, non-intersecting path, it is intuitively clear what region lies "inside";
+ * however, for a more complex path, such as a path that intersects itself or where one subpath encloses another,
+ * the interpretation of "inside" is not so obvious.
* The ‘fill-rule’ property provides two options for how the inside of a shape is determined:
*/
fillRule?: CSSWideKeyword | any;
@@ -1122,7 +1333,8 @@ declare namespace React {
flexAlign?: CSSWideKeyword | any;
/**
- * The flex-basis CSS property describes the initial main size of the flex item before any free space is distributed according to the flex factors described in the flex property (flex-grow and flex-shrink).
+ * The flex-basis CSS property describes the initial main size of the flex item
+ * before any free space is distributed according to the flex factors described in the flex property (flex-grow and flex-shrink).
*/
flexBasis?: CSSWideKeyword | any;
@@ -1166,13 +1378,17 @@ declare namespace React {
flexShrink?: CSSWideKeyword | number;
/**
- * Specifies whether flex items are forced into a single line or can be wrapped onto multiple lines. If wrapping is allowed, this property also enables you to control the direction in which lines are stacked.
+ * Specifies whether flex items are forced into a single line or can be wrapped onto multiple lines.
+ * If wrapping is allowed, this property also enables you to control the direction in which lines are stacked.
* See CSS flex-wrap property https://drafts.csswg.org/css-flexbox-1/#flex-wrap-property
*/
flexWrap?: CSSWideKeyword | "nowrap" | "wrap" | "wrap-reverse";
/**
- * Elements which have the style float are floated horizontally. These elements can move as far to the left or right of the containing element. All elements after the floating element will flow around it, but elements before the floating element are not impacted. If several floating elements are placed after each other, they will float next to each other as long as there is room.
+ * Elements which have the style float are floated horizontally.
+ * These elements can move as far to the left or right of the containing element.
+ * All elements after the floating element will flow around it, but elements before the floating element are not impacted.
+ * If several floating elements are placed after each other, they will float next to each other as long as there is room.
*/
float?: CSSWideKeyword | any;
@@ -1182,17 +1398,20 @@ declare namespace React {
flowFrom?: CSSWideKeyword | any;
/**
- * The font property is shorthand that allows you to do one of two things: you can either set up six of the most mature font properties in one line, or you can set one of a choice of keywords to adopt a system font setting.
+ * The font property is shorthand that allows you to do one of two things: you can either set up six of the most mature font properties in one line,
+ * or you can set one of a choice of keywords to adopt a system font setting.
*/
font?: CSSWideKeyword | any;
/**
- * The font-family property allows one or more font family names and/or generic family names to be specified for usage on the selected element(s)' text. The browser then goes through the list; for each character in the selection it applies the first font family that has an available glyph for that character.
+ * The font-family property allows one or more font family names and/or generic family names to be specified for usage on the selected element(s)' text.
+ * The browser then goes through the list; for each character in the selection it applies the first font family that has an available glyph for that character.
*/
fontFamily?: CSSWideKeyword | any;
/**
- * The font-kerning property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text. This property controls <bold>metric kerning</bold> - that utilizes adjustment data contained in the font. Optical Kerning is not supported as yet.
+ * The font-kerning property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text.
+ * This property controls <bold>metric kerning</bold> - that utilizes adjustment data contained in the font. Optical Kerning is not supported as yet.
*/
fontKerning?: CSSWideKeyword | any;
@@ -1201,12 +1420,14 @@ declare namespace React {
* See CSS 3 font-size property https://www.w3.org/TR/css-fonts-3/#propdef-font-size
*/
fontSize?: CSSWideKeyword |
- "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large" |
- "larger" | "smaller" |
- CSSLength | CSSPercentage;
+ "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large" |
+ "larger" | "smaller" |
+ CSSLength | CSSPercentage;
/**
- * The font-size-adjust property adjusts the font-size of the fallback fonts defined with font-family, so that the x-height is the same no matter what font is used. This preserves the readability of the text when fallback happens.
+ * The font-size-adjust property adjusts the font-size of the fallback fonts defined with font-family,
+ * so that the x-height is the same no matter what font is used.
+ * This preserves the readability of the text when fallback happens.
* See CSS 3 font-size-adjust property https://www.w3.org/TR/css-fonts-3/#propdef-font-size-adjust
*/
fontSizeAdjust?: CSSWideKeyword | "none" | number;
@@ -1216,11 +1437,13 @@ declare namespace React {
* See CSS 3 font-stretch property https://drafts.csswg.org/css-fonts-3/#propdef-font-stretch
*/
fontStretch?: CSSWideKeyword |
- "normal" | "ultra-condensed" | "extra-condensed" | "condensed" | "semi-condensed" |
- "semi-expanded" | "expanded" | "extra-expanded" | "ultra-expanded";
+ "normal" | "ultra-condensed" | "extra-condensed" | "condensed" | "semi-condensed" |
+ "semi-expanded" | "expanded" | "extra-expanded" | "ultra-expanded";
/**
- * The font-style property allows normal, italic, or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face. Oblique faces can be simulated by artificially sloping the glyphs of the regular face.
+ * The font-style property allows normal, italic, or oblique faces to be selected.
+ * Italic forms are generally cursive in nature while oblique faces are typically sloped versions of the regular face.
+ * Oblique faces can be simulated by artificially sloping the glyphs of the regular face.
* See CSS 3 font-style property https://www.w3.org/TR/css-fonts-3/#propdef-font-style
*/
fontStyle?: CSSWideKeyword | "normal" | "italic" | "oblique";
@@ -1257,12 +1480,15 @@ declare namespace React {
gridColumn?: CSSWideKeyword | any;
/**
- * Controls a grid item's placement in a grid area as well as grid position and a grid span. The grid-column-end property (with grid-row-start, grid-row-end, and grid-column-start) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
+ * Controls a grid item's placement in a grid area as well as grid position and a grid span.
+ * The grid-column-end property (with grid-row-start, grid-row-end, and grid-column-start) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
*/
gridColumnEnd?: CSSWideKeyword | any;
/**
- * Determines a grid item's placement by specifying the starting grid lines of a grid item's grid area . A grid item's placement in a grid area consists of a grid position and a grid span. See also ( grid-row-start, grid-row-end, and grid-column-end)
+ * Determines a grid item's placement by specifying the starting grid lines of a grid item's grid area.
+ * A grid item's placement in a grid area consists of a grid position and a grid span.
+ * See also ( grid-row-start, grid-row-end, and grid-column-end)
*/
gridColumnStart?: CSSWideKeyword | any;
@@ -1272,7 +1498,8 @@ declare namespace React {
gridRow?: CSSWideKeyword | any;
/**
- * Determines a grid item’s placement by specifying the block-end. A grid item's placement in a grid area consists of a grid position and a grid span. The grid-row-end property (with grid-row-start, grid-column-start, and grid-column-end) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
+ * Determines a grid item’s placement by specifying the block-end. A grid item's placement in a grid area consists of a grid position and a grid span.
+ * The grid-row-end property (with grid-row-start, grid-column-start, and grid-column-end) determines a grid item's placement by specifying the grid lines of a grid item's grid area.
*/
gridRowEnd?: CSSWideKeyword | any;
@@ -1285,17 +1512,22 @@ declare namespace React {
gridRowSpan?: CSSWideKeyword | any;
/**
- * Specifies named grid areas which are not associated with any particular grid item, but can be referenced from the grid-placement properties. The syntax of the grid-template-areas property also provides a visualization of the structure of the grid, making the overall layout of the grid container easier to understand.
+ * Specifies named grid areas which are not associated with any particular grid item, but can be referenced from the grid-placement properties.
+ * The syntax of the grid-template-areas property also provides a visualization of the structure of the grid, making the overall layout of the grid container easier to understand.
*/
gridTemplateAreas?: CSSWideKeyword | any;
/**
- * Specifies (with grid-template-rows) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
+ * Specifies (with grid-template-rows) the line names and track sizing functions of the grid.
+ * Each sizing function can be specified as a length, a percentage of the grid container’s size,
+ * a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
*/
gridTemplateColumns?: CSSWideKeyword | any;
/**
- * Specifies (with grid-template-columns) the line names and track sizing functions of the grid. Each sizing function can be specified as a length, a percentage of the grid container’s size, a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
+ * Specifies (with grid-template-columns) the line names and track sizing functions of the grid.
+ * Each sizing function can be specified as a length, a percentage of the grid container’s size,
+ * a measurement of the contents occupying the column or row, or a fraction of the free space in the grid.
*/
gridTemplateRows?: CSSWideKeyword | any;
@@ -1315,7 +1547,8 @@ declare namespace React {
hyphenateLimitLines?: CSSWideKeyword | any;
/**
- * Specifies the maximum amount of trailing whitespace (before justification) that may be left in a line before hyphenation is triggered to pull part of a word from the next line back up into the current one.
+ * Specifies the maximum amount of trailing whitespace (before justification) that may be left in a line before hyphenation is triggered
+ * to pull part of a word from the next line back up into the current one.
*/
hyphenateLimitZone?: CSSWideKeyword | any;
@@ -1372,7 +1605,9 @@ declare namespace React {
listStyle?: CSSWideKeyword | any;
/**
- * This property sets the image that will be used as the list item marker. When the image is available, it will replace the marker set with the 'list-style-type' marker. That also means that if the image is not available, it will show the style specified by list-style-property
+ * This property sets the image that will be used as the list item marker. When the image is available,
+ * it will replace the marker set with the 'list-style-type' marker. That also means that if the image is not available,
+ * it will show the style specified by list-style-property
*/
listStyleImage?: CSSWideKeyword | any;
@@ -1387,7 +1622,9 @@ declare namespace React {
listStyleType?: CSSWideKeyword | any;
/**
- * The margin property is shorthand to allow you to set all four margins of an element at once. Its equivalent longhand properties are margin-top, margin-right, margin-bottom and margin-left. Negative values are also allowed.
+ * The margin property is shorthand to allow you to set all four margins of an element at once.
+ * Its equivalent longhand properties are margin-top, margin-right, margin-bottom and margin-left.
+ * Negative values are also allowed.
*/
margin?: CSSWideKeyword | any;
@@ -1422,22 +1659,29 @@ declare namespace React {
marqueeStyle?: CSSWideKeyword | any;
/**
- * This property is shorthand for setting mask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-composite and mask-size. Omitted values are set to their original properties' initial values.
+ * This property is shorthand for setting mask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-composite and mask-size.
+ * Omitted values are set to their original properties' initial values.
*/
mask?: CSSWideKeyword | any;
/**
- * This property is shorthand for setting mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, and mask-border-repeat. Omitted values are set to their original properties' initial values.
+ * This property is shorthand for setting mask-border-source, mask-border-slice, mask-border-width, mask-border-outset, and mask-border-repeat.
+ * Omitted values are set to their original properties' initial values.
*/
maskBorder?: CSSWideKeyword | any;
/**
- * This property specifies how the images for the sides and the middle part of the mask image are scaled and tiled. The first keyword applies to the horizontal sides, the second one applies to the vertical ones. If the second keyword is absent, it is assumed to be the same as the first, similar to the CSS border-image-repeat property.
+ * This property specifies how the images for the sides and the middle part of the mask image are scaled and tiled.
+ * The first keyword applies to the horizontal sides, the second one applies to the vertical ones.
+ * If the second keyword is absent, it is assumed to be the same as the first, similar to the CSS border-image-repeat property.
*/
maskBorderRepeat?: CSSWideKeyword | any;
/**
- * This property specifies inward offsets from the top, right, bottom, and left edges of the mask image, dividing it into nine regions: four corners, four edges, and a middle. The middle image part is discarded and treated as fully transparent black unless the fill keyword is present. The four values set the top, right, bottom and left offsets in that order, similar to the CSS border-image-slice property.
+ * This property specifies inward offsets from the top, right, bottom, and left edges of the mask image,
+ * dividing it into nine regions: four corners, four edges, and a middle.
+ * The middle image part is discarded and treated as fully transparent black unless the fill keyword is present.
+ * The four values set the top, right, bottom and left offsets in that order, similar to the CSS border-image-slice property.
*/
maskBorderSlice?: CSSWideKeyword | any;
@@ -1452,22 +1696,28 @@ declare namespace React {
maskBorderWidth?: CSSWideKeyword | any;
/**
- * Determines the mask painting area, which defines the area that is affected by the mask. The painted content of an element may be restricted to this area.
+ * Determines the mask painting area, which defines the area that is affected by the mask.
+ * The painted content of an element may be restricted to this area.
*/
maskClip?: CSSWideKeyword | any;
/**
- * For elements rendered as a single box, specifies the mask positioning area. For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages) specifies which boxes box-decoration-break operates on to determine the mask positioning area(s).
+ * For elements rendered as a single box, specifies the mask positioning area.
+ * For elements rendered as multiple boxes (e.g., inline boxes on several lines, boxes on several pages)
+ * specifies which boxes box-decoration-break operates on to determine the mask positioning area(s).
*/
maskOrigin?: CSSWideKeyword | any;
/**
- * This property must not be used. It is no longer included in any standard or standard track specification, nor is it implemented in any browser. It is only used when the text-align-last property is set to size. It controls allowed adjustments of font-size to fit line content.
+ * This property must not be used. It is no longer included in any standard or standard track specification,
+ * nor is it implemented in any browser. It is only used when the text-align-last property is set to size.
+ * It controls allowed adjustments of font-size to fit line content.
*/
maxFontSize?: CSSWideKeyword | any;
/**
- * Sets the maximum height for an element. It prevents the height of the element to exceed the specified value. If min-height is specified and is greater than max-height, max-height is overridden.
+ * Sets the maximum height for an element. It prevents the height of the element to exceed the specified value.
+ * If min-height is specified and is greater than max-height, max-height is overridden.
*/
maxHeight?: CSSWideKeyword | any;
@@ -1477,7 +1727,8 @@ declare namespace React {
maxWidth?: CSSWideKeyword | any;
/**
- * Sets the minimum height for an element. It prevents the height of the element to be smaller than the specified value. The value of min-height overrides both max-height and height.
+ * Sets the minimum height for an element. It prevents the height of the element to be smaller than the specified value.
+ * The value of min-height overrides both max-height and height.
*/
minHeight?: CSSWideKeyword | any;
@@ -1507,10 +1758,13 @@ declare namespace React {
orphans?: CSSWideKeyword | number;
/**
- * The CSS outline property is a shorthand property for setting one or more of the individual outline properties outline-style, outline-width and outline-color in a single rule. In most cases the use of this shortcut is preferable and more convenient.
+ * The CSS outline property is a shorthand property for setting one or more of the individual outline properties outline-style,
+ * outline-width and outline-color in a single rule. In most cases the use of this shortcut is preferable and more convenient.
* Outlines differ from borders in the following ways:
* • Outlines do not take up space, they are drawn above the content.
- * • Outlines may be non-rectangular. They are rectangular in Gecko/Firefox. Internet Explorer attempts to place the smallest contiguous outline around all elements or shapes that are indicated to have an outline. Opera draws a non-rectangular shape around a construct.
+ * • Outlines may be non-rectangular. They are rectangular in Gecko/Firefox.
+ * Internet Explorer attempts to place the smallest contiguous outline around all elements or shapes that are indicated to have an outline.
+ * Opera draws a non-rectangular shape around a construct.
*/
outline?: CSSWideKeyword | any;
@@ -1525,7 +1779,8 @@ declare namespace React {
outlineOffset?: CSSWideKeyword | any;
/**
- * The overflow property controls how extra content exceeding the bounding box of an element is rendered. It can be used in conjunction with an element that has a fixed width and height, to eliminate text-induced page distortion.
+ * The overflow property controls how extra content exceeding the bounding box of an element is rendered.
+ * It can be used in conjunction with an element that has a fixed width and height, to eliminate text-induced page distortion.
*/
overflow?: CSSWideKeyword | "auto" | "hidden" | "scroll" | "visible";
@@ -1545,72 +1800,99 @@ declare namespace React {
overflowY?: CSSWideKeyword | "auto" | "hidden" | "scroll" | "visible";
/**
- * The padding optional CSS property sets the required padding space on one to four sides of an element. The padding area is the space between an element and its border. Negative values are not allowed but decimal values are permitted. The element size is treated as fixed, and the content of the element shifts toward the center as padding is increased.
+ * The padding optional CSS property sets the required padding space on one to four sides of an element.
+ * The padding area is the space between an element and its border. Negative values are not allowed but decimal values are permitted.
+ * The element size is treated as fixed, and the content of the element shifts toward the center as padding is increased.
* The padding property is a shorthand to avoid setting each side separately (padding-top, padding-right, padding-bottom, padding-left).
*/
padding?: CSSWideKeyword | any;
/**
- * The padding-bottom CSS property of an element sets the padding space required on the bottom of an element. The padding area is the space between the content of the element and its border. Contrary to margin-bottom values, negative values of padding-bottom are invalid.
+ * The padding-bottom CSS property of an element sets the padding space required on the bottom of an element.
+ * The padding area is the space between the content of the element and its border.
+ * Contrary to margin-bottom values, negative values of padding-bottom are invalid.
*/
paddingBottom?: CSSWideKeyword | any;
/**
- * The padding-left CSS property of an element sets the padding space required on the left side of an element. The padding area is the space between the content of the element and its border. Contrary to margin-left values, negative values of padding-left are invalid.
+ * The padding-left CSS property of an element sets the padding space required on the left side of an element.
+ * The padding area is the space between the content of the element and its border.
+ * Contrary to margin-left values, negative values of padding-left are invalid.
*/
paddingLeft?: CSSWideKeyword | any;
/**
- * The padding-right CSS property of an element sets the padding space required on the right side of an element. The padding area is the space between the content of the element and its border. Contrary to margin-right values, negative values of padding-right are invalid.
+ * The padding-right CSS property of an element sets the padding space required on the right side of an element.
+ * The padding area is the space between the content of the element and its border.
+ * Contrary to margin-right values, negative values of padding-right are invalid.
*/
paddingRight?: CSSWideKeyword | any;
/**
- * The padding-top CSS property of an element sets the padding space required on the top of an element. The padding area is the space between the content of the element and its border. Contrary to margin-top values, negative values of padding-top are invalid.
+ * The padding-top CSS property of an element sets the padding space required on the top of an element.
+ * The padding area is the space between the content of the element and its border.
+ * Contrary to margin-top values, negative values of padding-top are invalid.
*/
paddingTop?: CSSWideKeyword | any;
/**
- * The page-break-after property is supported in all major browsers. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
+ * The page-break-after property is supported in all major browsers. With CSS3, page-break-* properties are only aliases of the break-* properties.
+ * The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
*/
pageBreakAfter?: CSSWideKeyword | any;
/**
- * The page-break-before property sets the page-breaking behavior before an element. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
+ * The page-break-before property sets the page-breaking behavior before an element.
+ * With CSS3, page-break-* properties are only aliases of the break-* properties.
+ * The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
*/
pageBreakBefore?: CSSWideKeyword | any;
/**
- * Sets the page-breaking behavior inside an element. With CSS3, page-break-* properties are only aliases of the break-* properties. The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
+ * Sets the page-breaking behavior inside an element. With CSS3, page-break-* properties are only aliases of the break-* properties.
+ * The CSS3 Fragmentation spec defines breaks for all CSS box fragmentation.
*/
pageBreakInside?: CSSWideKeyword | any;
/**
- * The pause property determines how long a speech media agent should pause before and after presenting an element. It is a shorthand for the pause-before and pause-after properties.
+ * The pause property determines how long a speech media agent should pause before and after presenting an element.
+ * It is a shorthand for the pause-before and pause-after properties.
*/
pause?: CSSWideKeyword | any;
/**
- * The pause-after property determines how long a speech media agent should pause after presenting an element. It may be replaced by the shorthand property pause, which sets pause time before and after.
+ * The pause-after property determines how long a speech media agent should pause after presenting an element.
+ * It may be replaced by the shorthand property pause, which sets pause time before and after.
*/
pauseAfter?: CSSWideKeyword | any;
/**
- * The pause-before property determines how long a speech media agent should pause before presenting an element. It may be replaced by the shorthand property pause, which sets pause time before and after.
+ * The pause-before property determines how long a speech media agent should pause before presenting an element.
+ * It may be replaced by the shorthand property pause, which sets pause time before and after.
*/
pauseBefore?: CSSWideKeyword | any;
/**
* The perspective property defines how far an element is placed from the view on the z-axis, from the screen to the viewer.
- * Perspective defines how an object is viewed. In graphic arts, perspective is the representation on a flat surface of what the viewer's eye would see in a 3D space. (See Wikipedia for more information about graphical perspective and for related illustrations.)
- * The illusion of perspective on a flat surface, such as a computer screen, is created by projecting points on the flat surface as they would appear if the flat surface were a window through which the viewer was looking at the object. In discussion of virtual environments, this flat surface is called a projection plane.
+ * Perspective defines how an object is viewed. In graphic arts, perspective is the representation on a flat surface of what the viewer's eye would see in a 3D space.
+ * (See Wikipedia for more information about graphical perspective and for related illustrations.)
+ * The illusion of perspective on a flat surface, such as a computer screen,
+ * is created by projecting points on the flat surface as they would appear if the flat surface were a window
+ * through which the viewer was looking at the object. In discussion of virtual environments, this flat surface is called a projection plane.
*/
perspective?: CSSWideKeyword | any;
/**
- * The perspective-origin property establishes the origin for the perspective property. It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.
- * When used with perspective, perspective-origin changes the appearance of an object, as if a viewer were looking at it from a different origin. An object appears differently if a viewer is looking directly at it versus looking at it from below, above, or from the side. Thus, the perspective-origin is like a vanishing point.
- * The default value of perspective-origin is 50% 50%. This displays an object as if the viewer's eye were positioned directly at the center of the screen, both top-to-bottom and left-to-right. A value of 0% 0% changes the object as if the viewer was looking toward the top left angle. A value of 100% 100% changes the appearance as if viewed toward the bottom right angle.
+ * The perspective-origin property establishes the origin for the perspective property.
+ * It effectively sets the X and Y position at which the viewer appears to be looking at the children of the element.
+ * When used with perspective, perspective-origin changes the appearance of an object,
+ * as if a viewer were looking at it from a different origin.
+ * An object appears differently if a viewer is looking directly at it versus looking at it from below, above, or from the side.
+ * Thus, the perspective-origin is like a vanishing point.
+ * The default value of perspective-origin is 50% 50%.
+ * This displays an object as if the viewer's eye were positioned directly at the center of the screen, both top-to-bottom and left-to-right.
+ * A value of 0% 0% changes the object as if the viewer was looking toward the top left angle.
+ * A value of 100% 100% changes the appearance as if viewed toward the bottom right angle.
*/
perspectiveOrigin?: CSSWideKeyword | any;
@@ -1620,13 +1902,15 @@ declare namespace React {
pointerEvents?: CSSWideKeyword | any;
/**
- * The position property controls the type of positioning used by an element within its parent elements. The effect of the position property depends on a lot of factors, for example the position property of parent elements.
+ * The position property controls the type of positioning used by an element within its parent elements.
+ * The effect of the position property depends on a lot of factors, for example the position property of parent elements.
*/
position?: CSSWideKeyword | "static" | "relative" | "absolute" | "fixed" | "sticky";
/**
* Obsolete: unsupported.
- * This property determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line, so that its "ink" lines up with the first glyph in the line above and below.
+ * This property determines whether or not a full-width punctuation mark character should be trimmed if it appears at the beginning of a line,
+ * so that its "ink" lines up with the first glyph in the line above and below.
*/
punctuationTrim?: CSSWideKeyword | any;
@@ -1636,17 +1920,20 @@ declare namespace React {
quotes?: CSSWideKeyword | any;
/**
- * Controls whether the last region in a chain displays additional 'overset' content according its default overflow property, or if it displays a fragment of content as if it were flowing into a subsequent region.
+ * Controls whether the last region in a chain displays additional 'overset' content according its default overflow property,
+ * or if it displays a fragment of content as if it were flowing into a subsequent region.
*/
regionFragment?: CSSWideKeyword | any;
/**
- * The rest-after property determines how long a speech media agent should pause after presenting an element's main content, before presenting that element's exit cue sound. It may be replaced by the shorthand property rest, which sets rest time before and after.
+ * The rest-after property determines how long a speech media agent should pause after presenting an element's main content,
+ * before presenting that element's exit cue sound. It may be replaced by the shorthand property rest, which sets rest time before and after.
*/
restAfter?: CSSWideKeyword | any;
/**
- * The rest-before property determines how long a speech media agent should pause after presenting an intro cue sound for an element, before presenting that element's main content. It may be replaced by the shorthand property rest, which sets rest time before and after.
+ * The rest-before property determines how long a speech media agent should pause after presenting an intro cue sound for an element,
+ * before presenting that element's main content. It may be replaced by the shorthand property rest, which sets rest time before and after.
*/
restBefore?: CSSWideKeyword | any;
@@ -1660,22 +1947,29 @@ declare namespace React {
rubyPosition?: CSSWideKeyword | any;
/**
- * Defines the alpha channel threshold used to extract a shape from an image. Can be thought of as a "minimum opacity" threshold; that is, a value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.
+ * Defines the alpha channel threshold used to extract a shape from an image. Can be thought of as a "minimum opacity" threshold;
+ * that is, a value of 0.5 means that the shape will enclose all the pixels that are more than 50% opaque.
*/
shapeImageThreshold?: CSSWideKeyword | any;
/**
- * A future level of CSS Shapes will define a shape-inside property, which will define a shape to wrap content within the element. See Editor's Draft <http://dev.w3.org/csswg/css-shapes/> and CSSWG wiki page on next-level plans <http://wiki.csswg.org/spec/css-shapes>
+ * A future level of CSS Shapes will define a shape-inside property, which will define a shape to wrap content within the element.
+ * See Editor's Draft <http://dev.w3.org/csswg/css-shapes/> and CSSWG wiki page on next-level plans <http://wiki.csswg.org/spec/css-shapes>
*/
shapeInside?: CSSWideKeyword | any;
/**
- * Adds a margin to a shape-outside. In effect, defines a new shape that is the smallest contour around all the points that are the shape-margin distance outward perpendicular to each point on the underlying shape. For points where a perpendicular direction is not defined (e.g., a triangle corner), takes all points on a circle centered at the point and with a radius of the shape-margin distance. This property accepts only non-negative values.
+ * Adds a margin to a shape-outside. In effect, defines a new shape that is the smallest contour around all the points
+ * that are the shape-margin distance outward perpendicular to each point on the underlying shape.
+ * For points where a perpendicular direction is not defined (e.g., a triangle corner),
+ * takes all points on a circle centered at the point and with a radius of the shape-margin distance.
+ * This property accepts only non-negative values.
*/
shapeMargin?: CSSWideKeyword | any;
/**
- * Declares a shape around which text should be wrapped, with possible modifications from the shape-margin property. The shape defined by shape-outside and shape-margin changes the geometry of a float element's float area.
+ * Declares a shape around which text should be wrapped, with possible modifications from the shape-margin property.
+ * The shape defined by shape-outside and shape-margin changes the geometry of a float element's float area.
*/
shapeOutside?: CSSWideKeyword | any;
@@ -1685,7 +1979,8 @@ declare namespace React {
speak?: CSSWideKeyword | any;
/**
- * The speak-as property determines how the speech synthesizer interprets the content: words as whole words or as a sequence of letters, numbers as a numerical value or a sequence of digits, punctuation as pauses in speech or named punctuation characters.
+ * The speak-as property determines how the speech synthesizer interprets the content: words as whole words or as a sequence of letters,
+ * numbers as a numerical value or a sequence of digits, punctuation as pauses in speech or named punctuation characters.
*/
speakAs?: CSSWideKeyword | any;
@@ -1712,7 +2007,8 @@ declare namespace React {
tableLayout?: CSSWideKeyword | any;
/**
- * The text-align CSS property describes how inline content like text is aligned in its parent block element. text-align does not control the alignment of block elements itself, only their inline content.
+ * The text-align CSS property describes how inline content like text is aligned in its parent block element.
+ * text-align does not control the alignment of block elements itself, only their inline content.
*/
textAlign?: CSSWideKeyword | any;
@@ -1749,14 +2045,17 @@ declare namespace React {
textDecorationSkip?: CSSWideKeyword | any;
/**
- * This property specifies the style of the text decoration line drawn on the specified element. The intended meaning for the values are the same as those of the border-style-properties.
+ * This property specifies the style of the text decoration line drawn on the specified element.
+ * The intended meaning for the values are the same as those of the border-style-properties.
*/
textDecorationStyle?: CSSWideKeyword | any;
textDecorationUnderline?: CSSWideKeyword | any;
/**
- * The text-emphasis property will apply special emphasis marks to the elements text. Slightly similar to the text-decoration property only that this property can have affect on the line-height. It also is noted that this is shorthand for text-emphasis-style and for text-emphasis-color.
+ * The text-emphasis property will apply special emphasis marks to the elements text.
+ * Slightly similar to the text-decoration property only that this property can have affect on the line-height.
+ * It also is noted that this is shorthand for text-emphasis-style and for text-emphasis-color.
*/
textEmphasis?: CSSWideKeyword | any;
@@ -1771,12 +2070,16 @@ declare namespace React {
textEmphasisStyle?: CSSWideKeyword | any;
/**
- * This property helps determine an inline box's block-progression dimension, derived from the text-height and font-size properties for non-replaced elements, the height or the width for replaced elements, and the stacked block-progression dimension for inline-block elements. The block-progression dimension determines the position of the padding, border and margin for the element.
+ * This property helps determine an inline box's block-progression dimension,
+ * derived from the text-height and font-size properties for non-replaced elements,
+ * the height or the width for replaced elements, and the stacked block-progression dimension for inline-block elements.
+ * The block-progression dimension determines the position of the padding, border and margin for the element.
*/
textHeight?: CSSWideKeyword | any;
/**
- * Specifies the amount of space horizontally that should be left on the first line of the text of an element. This horizontal spacing is at the beginning of the first line and is in respect to the left edge of the containing block box.
+ * Specifies the amount of space horizontally that should be left on the first line of the text of an element.
+ * This horizontal spacing is at the beginning of the first line and is in respect to the left edge of the containing block box.
*/
textIndent?: CSSWideKeyword | any;
@@ -1785,7 +2088,8 @@ declare namespace React {
textKashidaSpace?: CSSWideKeyword | any;
/**
- * The text-line-through property is a shorthand property for text-line-through-style, text-line-through-color and text-line-through-mode. (Considered obsolete; use text-decoration instead.)
+ * The text-line-through property is a shorthand property for text-line-through-style, text-line-through-color and text-line-through-mode.
+ * (Considered obsolete; use text-decoration instead.)
*/
textLineThrough?: CSSWideKeyword | any;
@@ -1813,7 +2117,9 @@ declare namespace React {
textLineThroughWidth?: CSSWideKeyword | any;
/**
- * The text-overflow shorthand CSS property determines how overflowed content that is not displayed is signaled to the users. It can be clipped, display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) or a Web author-defined string. It covers the two long-hand properties text-overflow-mode and text-overflow-ellipsis
+ * The text-overflow shorthand CSS property determines how overflowed content that is not displayed is signaled to the users.
+ * It can be clipped, display an ellipsis ('…', U+2026 HORIZONTAL ELLIPSIS) or a Web author-defined string.
+ * It covers the two long-hand properties text-overflow-mode and text-overflow-ellipsis
*/
textOverflow?: CSSWideKeyword | any;
@@ -1843,7 +2149,8 @@ declare namespace React {
textOverlineWidth?: CSSWideKeyword | any;
/**
- * The text-rendering CSS property provides information to the browser about how to optimize when rendering text. Options are: legibility, speed or geometric precision.
+ * The text-rendering CSS property provides information to the browser about how to optimize when rendering text.
+ * Options are: legibility, speed or geometric precision.
*/
textRendering?: CSSWideKeyword | any;
@@ -1853,7 +2160,8 @@ declare namespace React {
textScript?: CSSWideKeyword | any;
/**
- * The CSS text-shadow property applies one or more drop shadows to the text and <text-decorations> of an element. Each shadow is specified as an offset from the text, along with optional color and blur radius values.
+ * The CSS text-shadow property applies one or more drop shadows to the text and <text-decorations> of an element.
+ * Each shadow is specified as an offset from the text, along with optional color and blur radius values.
*/
textShadow?: CSSWideKeyword | any;
@@ -1875,7 +2183,9 @@ declare namespace React {
textUnderlineStyle?: CSSWideKeyword | any;
/**
- * This property specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's containing block. For relatively positioned boxes, the offset is with respect to the top edges of the box itself (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
+ * This property specifies how far an absolutely positioned box's top margin edge is offset below the top edge of the box's containing block.
+ * For relatively positioned boxes, the offset is with respect to the top edges of the box itself (i.e., the box is given a position in the normal flow,
+ * then offset from that position according to these properties).
*/
top?: CSSWideKeyword | any;
@@ -1885,7 +2195,8 @@ declare namespace React {
touchAction?: CSSWideKeyword | any;
/**
- * CSS transforms allow elements styled with CSS to be transformed in two-dimensional or three-dimensional space. Using this property, elements can be translated, rotated, scaled, and skewed. The value list may consist of 2D and/or 3D transform values.
+ * CSS transforms allow elements styled with CSS to be transformed in two-dimensional or three-dimensional space.
+ * Using this property, elements can be translated, rotated, scaled, and skewed. The value list may consist of 2D and/or 3D transform values.
*/
transform?: CSSWideKeyword | any;
@@ -1905,12 +2216,14 @@ declare namespace React {
transformStyle?: CSSWideKeyword | any;
/**
- * The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function, and transition-delay. It allows to define the transition between two states of an element.
+ * The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function,
+ * and transition-delay. It allows to define the transition between two states of an element.
*/
transition?: CSSWideKeyword | any;
/**
- * Defines when the transition will start. A value of ‘0s’ means the transition will execute as soon as the property is changed. Otherwise, the value specifies an offset from the moment the property is changed, and the transition will delay execution by that offset.
+ * Defines when the transition will start. A value of ‘0s’ means the transition will execute as soon as the property is changed.
+ * Otherwise, the value specifies an offset from the moment the property is changed, and the transition will delay execution by that offset.
*/
transitionDelay?: CSSWideKeyword | any;
@@ -1950,7 +2263,8 @@ declare namespace React {
userInput?: CSSWideKeyword | any;
/**
- * The vertical-align property controls how inline elements or text are vertically aligned compared to the baseline. If this property is used on table-cells it controls the vertical alignment of content of the table cell.
+ * The vertical-align property controls how inline elements or text are vertically aligned compared to the baseline.
+ * If this property is used on table-cells it controls the vertical alignment of content of the table cell.
*/
verticalAlign?: CSSWideKeyword | any;
@@ -1965,22 +2279,34 @@ declare namespace React {
voiceBalance?: CSSWideKeyword | any;
/**
- * The voice-duration property allows the author to explicitly set the amount of time it should take a speech synthesizer to read an element's content, for example to allow the speech to be synchronized with other media. With a value of auto (the default) the length of time it takes to read the content is determined by the content itself and the voice-rate property.
+ * The voice-duration property allows the author to explicitly set the amount of time it should take a speech synthesizer to read an element's content,
+ * for example to allow the speech to be synchronized with other media.
+ * With a value of auto (the default) the length of time it takes to read the content is determined by the content itself and the voice-rate property.
*/
voiceDuration?: CSSWideKeyword | any;
/**
- * The voice-family property sets the speaker's voice used by a speech media agent to read an element. The speaker may be specified as a named character (to match a voice option in the speech reading software) or as a generic description of the age and gender of the voice. Similar to the font-family property for visual media, a comma-separated list of fallback options may be given in case the speech reader does not recognize the character name or cannot synthesize the requested combination of generic properties.
+ * The voice-family property sets the speaker's voice used by a speech media agent to read an element.
+ * The speaker may be specified as a named character (to match a voice option in the speech reading software)
+ * or as a generic description of the age and gender of the voice.
+ * Similar to the font-family property for visual media,
+ * a comma-separated list of fallback options may be given in case the speech reader does not recognize the character name
+ * or cannot synthesize the requested combination of generic properties.
*/
voiceFamily?: CSSWideKeyword | any;
/**
- * The voice-pitch property sets pitch or tone (high or low) for the synthesized speech when reading an element; the pitch may be specified absolutely or relative to the normal pitch for the voice-family used to read the text.
+ * The voice-pitch property sets pitch or tone (high or low) for the synthesized speech when reading an element;
+ * the pitch may be specified absolutely or relative to the normal pitch for the voice-family used to read the text.
*/
voicePitch?: CSSWideKeyword | any;
/**
- * The voice-range property determines how much variation in pitch or tone will be created by the speech synthesize when reading an element. Emphasized text, grammatical structures and punctuation may all be rendered as changes in pitch, this property determines how strong or obvious those changes are; large ranges are associated with enthusiastic or emotional speech, while small ranges are associated with flat or mechanical speech.
+ * The voice-range property determines how much variation in pitch or tone will be created by the speech synthesize when reading an element.
+ * Emphasized text, grammatical structures and punctuation may all be rendered as changes in pitch,
+ * this property determines how strong or obvious those changes are;
+ * large ranges are associated with enthusiastic or emotional speech,
+ * while small ranges are associated with flat or mechanical speech.
*/
voiceRange?: CSSWideKeyword | any;
@@ -2022,7 +2348,8 @@ declare namespace React {
width?: CSSWideKeyword | any;
/**
- * The word-break property is often used when there is long generated content that is strung together without and spaces or hyphens to beak apart. A common case of this is when there is a long URL that does not have any hyphens. This case could potentially cause the breaking of the layout as it could extend past the parent element.
+ * The word-break property is often used when there is long generated content that is strung together without and spaces or hyphens to beak apart.
+ * A common case of this is when there is a long URL that does not have any hyphens. This case could potentially cause the breaking of the layout as it could extend past the parent element.
*/
wordBreak?: CSSWideKeyword | any;
@@ -2080,9 +2407,58 @@ declare namespace React {
suppressContentEditableWarning?: boolean;
// Standard HTML Attributes
+ accessKey?: string;
+ className?: string;
+ contentEditable?: boolean;
+ contextMenu?: string;
+ dir?: string;
+ draggable?: boolean;
+ hidden?: boolean;
+ id?: string;
+ lang?: string;
+ slot?: string;
+ spellCheck?: boolean;
+ style?: CSSProperties;
+ tabIndex?: number;
+ title?: string;
+
+ // Unknown
+ inputMode?: string;
+ is?: string;
+ radioGroup?: string; // <command>, <menuitem>
+
+ // WAI-ARIA
+ role?: string;
+
+ // RDFa Attributes
+ about?: string;
+ datatype?: string;
+ inlist?: any;
+ prefix?: string;
+ property?: string;
+ resource?: string;
+ typeof?: string;
+ vocab?: string;
+
+ // Non-standard Attributes
+ autoCapitalize?: string;
+ autoCorrect?: string;
+ autoSave?: string;
+ color?: string;
+ itemProp?: string;
+ itemScope?: boolean;
+ itemType?: string;
+ itemID?: string;
+ itemRef?: string;
+ results?: number;
+ security?: string;
+ unselectable?: boolean;
+ }
+
+ interface AllHTMLAttributes<T> extends HTMLAttributes<T> {
+ // Standard HTML Attributes
accept?: string;
acceptCharset?: string;
- accessKey?: string;
action?: string;
allowFullScreen?: boolean;
allowTransparency?: boolean;
@@ -2099,12 +2475,9 @@ declare namespace React {
checked?: boolean;
cite?: string;
classID?: string;
- className?: string;
cols?: number;
colSpan?: number;
content?: string;
- contentEditable?: boolean;
- contextMenu?: string;
controls?: boolean;
coords?: string;
crossOrigin?: string;
@@ -2112,10 +2485,8 @@ declare namespace React {
dateTime?: string;
default?: boolean;
defer?: boolean;
- dir?: string;
disabled?: boolean;
download?: any;
- draggable?: boolean;
encType?: string;
form?: string;
formAction?: string;
@@ -2126,21 +2497,16 @@ declare namespace React {
frameBorder?: number | string;
headers?: string;
height?: number | string;
- hidden?: boolean;
high?: number;
href?: string;
hrefLang?: string;
htmlFor?: string;
httpEquiv?: string;
- id?: string;
- inputMode?: string;
integrity?: string;
- is?: string;
keyParams?: string;
keyType?: string;
kind?: string;
label?: string;
- lang?: string;
list?: string;
loop?: boolean;
low?: number;
@@ -2166,12 +2532,10 @@ declare namespace React {
playsInline?: boolean;
poster?: string;
preload?: string;
- radioGroup?: string;
readOnly?: boolean;
rel?: string;
required?: boolean;
reversed?: boolean;
- role?: string;
rows?: number;
rowSpan?: number;
sandbox?: string;
@@ -2183,56 +2547,399 @@ declare namespace React {
shape?: string;
size?: number;
sizes?: string;
- slot?: string;
span?: number;
- spellCheck?: boolean;
src?: string;
srcDoc?: string;
srcLang?: string;
srcSet?: string;
start?: number;
step?: number | string;
- style?: CSSProperties;
summary?: string;
- tabIndex?: number;
target?: string;
- title?: string;
type?: string;
useMap?: string;
value?: string | string[] | number;
width?: number | string;
wmode?: string;
wrap?: string;
+ }
- // RDFa Attributes
- about?: string;
- datatype?: string;
- inlist?: any;
- prefix?: string;
- property?: string;
- resource?: string;
- typeof?: string;
- vocab?: string;
+ interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
+ download?: any;
+ href?: string;
+ hrefLang?: string;
+ media?: string;
+ rel?: string;
+ target?: string;
+ }
- // Non-standard Attributes
- autoCapitalize?: string;
- autoCorrect?: string;
- autoSave?: string;
- color?: string;
- itemProp?: string;
- itemScope?: boolean;
- itemType?: string;
- itemID?: string;
- itemRef?: string;
- results?: number;
- security?: string;
- unselectable?: boolean;
+ // tslint:disable-next-line:no-empty-interface
+ interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {}
+
+ interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
+ alt?: string;
+ coords?: string;
+ download?: any;
+ href?: string;
+ hrefLang?: string;
+ media?: string;
+ rel?: string;
+ shape?: string;
+ target?: string;
+ }
+
+ interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
+ href?: string;
+ target?: string;
+ }
+
+ interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
+ cite?: string;
+ }
+
+ interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoFocus?: boolean;
+ disabled?: boolean;
+ form?: string;
+ formAction?: string;
+ formEncType?: string;
+ formMethod?: string;
+ formNoValidate?: boolean;
+ formTarget?: string;
+ name?: string;
+ type?: string;
+ value?: string | string[] | number;
+ }
+
+ interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
+ height?: number | string;
+ width?: number | string;
+ }
+
+ interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
+ span?: number;
+ }
+
+ interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
+ span?: number;
+ }
+
+ interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
+ open?: boolean;
+ }
+
+ interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
+ cite?: string;
+ dateTime?: string;
+ }
+
+ interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
+ height?: number | string;
+ src?: string;
+ type?: string;
+ width?: number | string;
+ }
+
+ interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
+ disabled?: boolean;
+ form?: string;
+ name?: string;
+ }
+
+ interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
+ acceptCharset?: string;
+ action?: string;
+ autoComplete?: string;
+ encType?: string;
+ method?: string;
+ name?: string;
+ noValidate?: boolean;
+ target?: string;
+ }
+
+ interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
+ manifest?: string;
+ }
+
+ interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
+ allowFullScreen?: boolean;
+ allowTransparency?: boolean;
+ frameBorder?: number | string;
+ height?: number | string;
+ marginHeight?: number;
+ marginWidth?: number;
+ name?: string;
+ sandbox?: string;
+ scrolling?: string;
+ seamless?: boolean;
+ src?: string;
+ srcDoc?: string;
+ width?: number | string;
+ }
+
+ interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
+ alt?: string;
+ height?: number | string;
+ sizes?: string;
+ src?: string;
+ srcSet?: string;
+ useMap?: string;
+ width?: number | string;
+ }
+
+ interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
+ cite?: string;
+ dateTime?: string;
}
- interface ChangeTargetHTMLAttributes<T extends HTMLElement> extends HTMLAttributes<T> {
+ interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
+ accept?: string;
+ alt?: string;
+ autoComplete?: string;
+ autoFocus?: boolean;
+ capture?: boolean; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
+ checked?: boolean;
+ crossOrigin?: string;
+ disabled?: boolean;
+ form?: string;
+ formAction?: string;
+ formEncType?: string;
+ formMethod?: string;
+ formNoValidate?: boolean;
+ formTarget?: string;
+ height?: number | string;
+ list?: string;
+ max?: number | string;
+ maxLength?: number;
+ min?: number | string;
+ minLength?: number;
+ multiple?: boolean;
+ name?: string;
+ pattern?: string;
+ placeholder?: string;
+ readOnly?: boolean;
+ required?: boolean;
+ size?: number;
+ src?: string;
+ step?: number | string;
+ type?: string;
+ value?: string | string[] | number;
+ width?: number | string;
+
onChange?: ChangeEventHandler<T>;
}
+ interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoFocus?: boolean;
+ challenge?: string;
+ disabled?: boolean;
+ form?: string;
+ keyType?: string;
+ keyParams?: string;
+ name?: string;
+ }
+
+ interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
+ form?: string;
+ htmlFor?: string;
+ }
+
+ interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
+ value?: string | string[] | number;
+ }
+
+ interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
+ href?: string;
+ hrefLang?: string;
+ integrity?: string;
+ media?: string;
+ rel?: string;
+ sizes?: string;
+ type?: string;
+ }
+
+ interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
+ name?: string;
+ }
+
+ interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
+ type?: string;
+ }
+
+ interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoPlay?: boolean;
+ controls?: boolean;
+ crossOrigin?: string;
+ loop?: boolean;
+ mediaGroup?: string;
+ muted?: boolean;
+ preload?: string;
+ src?: string;
+ }
+
+ interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
+ charSet?: string;
+ content?: string;
+ httpEquiv?: string;
+ name?: string;
+ }
+
+ interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
+ form?: string;
+ high?: number;
+ low?: number;
+ max?: number | string;
+ min?: number | string;
+ optimum?: number;
+ value?: string | string[] | number;
+ }
+
+ interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
+ cite?: string;
+ }
+
+ interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
+ classID?: string;
+ data?: string;
+ form?: string;
+ height?: number | string;
+ name?: string;
+ type?: string;
+ useMap?: string;
+ width?: number | string;
+ wmode?: string;
+ }
+
+ interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
+ reversed?: boolean;
+ start?: number;
+ }
+
+ interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
+ disabled?: boolean;
+ label?: string;
+ }
+
+ interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
+ disabled?: boolean;
+ label?: string;
+ selected?: boolean;
+ value?: string | string[] | number;
+ }
+
+ interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
+ form?: string;
+ htmlFor?: string;
+ name?: string;
+ }
+
+ interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
+ name?: string;
+ value?: string | string[] | number;
+ }
+
+ interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
+ max?: number | string;
+ value?: string | string[] | number;
+ }
+
+ interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
+ async?: boolean;
+ charSet?: string;
+ crossOrigin?: string;
+ defer?: boolean;
+ integrity?: string;
+ nonce?: string;
+ src?: string;
+ type?: string;
+ }
+
+ interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoFocus?: boolean;
+ disabled?: boolean;
+ form?: string;
+ multiple?: boolean;
+ name?: string;
+ required?: boolean;
+ size?: number;
+ value?: string | string[] | number;
+ onChange?: ChangeEventHandler<T>;
+ }
+
+ interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
+ media?: string;
+ sizes?: string;
+ src?: string;
+ srcSet?: string;
+ type?: string;
+ }
+
+ interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
+ media?: string;
+ nonce?: string;
+ scoped?: boolean;
+ type?: string;
+ }
+
+ interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
+ cellPadding?: number | string;
+ cellSpacing?: number | string;
+ summary?: string;
+ }
+
+ interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
+ autoComplete?: string;
+ autoFocus?: boolean;
+ cols?: number;
+ dirName?: string;
+ disabled?: boolean;
+ form?: string;
+ maxLength?: number;
+ minLength?: number;
+ name?: string;
+ placeholder?: string;
+ readOnly?: boolean;
+ required?: boolean;
+ rows?: number;
+ value?: string | string[] | number;
+ wrap?: string;
+
+ onChange?: ChangeEventHandler<T>;
+ }
+
+ interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
+ colSpan?: number;
+ headers?: string;
+ rowSpan?: number;
+ scope?: string;
+ }
+
+ interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
+ colSpan?: number;
+ headers?: string;
+ rowSpan?: number;
+ scope?: string;
+ }
+
+ interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
+ dateTime?: string;
+ }
+
+ interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
+ default?: boolean;
+ kind?: string;
+ label?: string;
+ src?: string;
+ srcLang?: string;
+ }
+
+ interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
+ height?: number | string;
+ playsInline?: boolean;
+ poster?: string;
+ width?: number | string;
+ }
+
// this list is "complete" in that it contains every SVG attribute
// that React supports, but the types can be improved.
// Full list here: https://facebook.github.io/react/docs/dom-elements.html
@@ -2259,11 +2966,16 @@ declare namespace React {
type?: string;
width?: number | string;
+ // Other HTML properties supported by SVG elements in browsers
+ role?: string;
+ tabIndex?: number;
+
// SVG Specific attributes
accentHeight?: number | string;
accumulate?: "none" | "sum";
additive?: "replace" | "sum";
- alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
+ alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" |
+ "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
allowReorder?: "no" | "yes";
alphabetic?: number | string;
amplitude?: number | string;
@@ -2505,123 +3217,123 @@ declare namespace React {
// React.DOM
// ----------------------------------------------------------------------
- interface ReactDOM {
- // HTML
- a: HTMLFactory<HTMLAnchorElement>;
- abbr: HTMLFactory<HTMLElement>;
- address: HTMLFactory<HTMLElement>;
- area: HTMLFactory<HTMLAreaElement>;
- article: HTMLFactory<HTMLElement>;
- aside: HTMLFactory<HTMLElement>;
- audio: HTMLFactory<HTMLAudioElement>;
- b: HTMLFactory<HTMLElement>;
- base: HTMLFactory<HTMLBaseElement>;
- bdi: HTMLFactory<HTMLElement>;
- bdo: HTMLFactory<HTMLElement>;
- big: HTMLFactory<HTMLElement>;
- blockquote: HTMLFactory<HTMLElement>;
- body: HTMLFactory<HTMLBodyElement>;
- br: HTMLFactory<HTMLBRElement>;
- button: HTMLFactory<HTMLButtonElement>;
- canvas: HTMLFactory<HTMLCanvasElement>;
- caption: HTMLFactory<HTMLElement>;
- cite: HTMLFactory<HTMLElement>;
- code: HTMLFactory<HTMLElement>;
- col: HTMLFactory<HTMLTableColElement>;
- colgroup: HTMLFactory<HTMLTableColElement>;
- data: HTMLFactory<HTMLElement>;
- datalist: HTMLFactory<HTMLDataListElement>;
- dd: HTMLFactory<HTMLElement>;
- del: HTMLFactory<HTMLElement>;
- details: HTMLFactory<HTMLElement>;
- dfn: HTMLFactory<HTMLElement>;
- dialog: HTMLFactory<HTMLElement>;
- div: HTMLFactory<HTMLDivElement>;
- dl: HTMLFactory<HTMLDListElement>;
- dt: HTMLFactory<HTMLElement>;
- em: HTMLFactory<HTMLElement>;
- embed: HTMLFactory<HTMLEmbedElement>;
- fieldset: HTMLFactory<HTMLFieldSetElement>;
- figcaption: HTMLFactory<HTMLElement>;
- figure: HTMLFactory<HTMLElement>;
- footer: HTMLFactory<HTMLElement>;
- form: HTMLFactory<HTMLFormElement>;
- h1: HTMLFactory<HTMLHeadingElement>;
- h2: HTMLFactory<HTMLHeadingElement>;
- h3: HTMLFactory<HTMLHeadingElement>;
- h4: HTMLFactory<HTMLHeadingElement>;
- h5: HTMLFactory<HTMLHeadingElement>;
- h6: HTMLFactory<HTMLHeadingElement>;
- head: HTMLFactory<HTMLHeadElement>;
- header: HTMLFactory<HTMLElement>;
- hgroup: HTMLFactory<HTMLElement>;
- hr: HTMLFactory<HTMLHRElement>;
- html: HTMLFactory<HTMLHtmlElement>;
- i: HTMLFactory<HTMLElement>;
- iframe: HTMLFactory<HTMLIFrameElement>;
- img: HTMLFactory<HTMLImageElement>;
- input: ChangeTargetHTMLFactory<HTMLInputElement>;
- ins: HTMLFactory<HTMLModElement>;
- kbd: HTMLFactory<HTMLElement>;
- keygen: HTMLFactory<HTMLElement>;
- label: HTMLFactory<HTMLLabelElement>;
- legend: HTMLFactory<HTMLLegendElement>;
- li: HTMLFactory<HTMLLIElement>;
- link: HTMLFactory<HTMLLinkElement>;
- main: HTMLFactory<HTMLElement>;
- map: HTMLFactory<HTMLMapElement>;
- mark: HTMLFactory<HTMLElement>;
- menu: HTMLFactory<HTMLElement>;
- menuitem: HTMLFactory<HTMLElement>;
- meta: HTMLFactory<HTMLMetaElement>;
- meter: HTMLFactory<HTMLElement>;
- nav: HTMLFactory<HTMLElement>;
- noscript: HTMLFactory<HTMLElement>;
- object: HTMLFactory<HTMLObjectElement>;
- ol: HTMLFactory<HTMLOListElement>;
- optgroup: HTMLFactory<HTMLOptGroupElement>;
- option: HTMLFactory<HTMLOptionElement>;
- output: HTMLFactory<HTMLElement>;
- p: HTMLFactory<HTMLParagraphElement>;
- param: HTMLFactory<HTMLParamElement>;
- picture: HTMLFactory<HTMLElement>;
- pre: HTMLFactory<HTMLPreElement>;
- progress: HTMLFactory<HTMLProgressElement>;
- q: HTMLFactory<HTMLQuoteElement>;
- rp: HTMLFactory<HTMLElement>;
- rt: HTMLFactory<HTMLElement>;
- ruby: HTMLFactory<HTMLElement>;
- s: HTMLFactory<HTMLElement>;
- samp: HTMLFactory<HTMLElement>;
- script: HTMLFactory<HTMLElement>;
- section: HTMLFactory<HTMLElement>;
- select: ChangeTargetHTMLFactory<HTMLSelectElement>;
- small: HTMLFactory<HTMLElement>;
- source: HTMLFactory<HTMLSourceElement>;
- span: HTMLFactory<HTMLSpanElement>;
- strong: HTMLFactory<HTMLElement>;
- style: HTMLFactory<HTMLStyleElement>;
- sub: HTMLFactory<HTMLElement>;
- summary: HTMLFactory<HTMLElement>;
- sup: HTMLFactory<HTMLElement>;
- table: HTMLFactory<HTMLTableElement>;
- tbody: HTMLFactory<HTMLTableSectionElement>;
- td: HTMLFactory<HTMLTableDataCellElement>;
- textarea: ChangeTargetHTMLFactory<HTMLTextAreaElement>;
- tfoot: HTMLFactory<HTMLTableSectionElement>;
- th: HTMLFactory<HTMLTableHeaderCellElement>;
- thead: HTMLFactory<HTMLTableSectionElement>;
- time: HTMLFactory<HTMLElement>;
- title: HTMLFactory<HTMLTitleElement>;
- tr: HTMLFactory<HTMLTableRowElement>;
- track: HTMLFactory<HTMLTrackElement>;
- u: HTMLFactory<HTMLElement>;
- ul: HTMLFactory<HTMLUListElement>;
- "var": HTMLFactory<HTMLElement>;
- video: HTMLFactory<HTMLVideoElement>;
- wbr: HTMLFactory<HTMLElement>;
-
- // SVG
+ interface ReactHTML {
+ a: DetailedHTMLFactory<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
+ abbr: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ address: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ area: DetailedHTMLFactory<AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>;
+ article: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ aside: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ audio: DetailedHTMLFactory<AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>;
+ b: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ base: DetailedHTMLFactory<BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>;
+ bdi: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ bdo: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ big: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ blockquote: DetailedHTMLFactory<BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>;
+ body: DetailedHTMLFactory<HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>;
+ br: DetailedHTMLFactory<HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
+ button: DetailedHTMLFactory<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
+ canvas: DetailedHTMLFactory<CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>;
+ caption: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ cite: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ code: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ col: DetailedHTMLFactory<ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
+ colgroup: DetailedHTMLFactory<ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
+ data: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ datalist: DetailedHTMLFactory<HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>;
+ dd: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ del: DetailedHTMLFactory<DelHTMLAttributes<HTMLElement>, HTMLElement>;
+ details: DetailedHTMLFactory<DetailsHTMLAttributes<HTMLElement>, HTMLElement>;
+ dfn: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ dialog: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ div: DetailedHTMLFactory<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
+ dl: DetailedHTMLFactory<HTMLAttributes<HTMLDListElement>, HTMLDListElement>;
+ dt: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ em: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ embed: DetailedHTMLFactory<EmbedHTMLAttributes<HTMLEmbedElement>, HTMLEmbedElement>;
+ fieldset: DetailedHTMLFactory<FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>;
+ figcaption: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ figure: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ footer: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ form: DetailedHTMLFactory<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
+ h1: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h2: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h3: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h4: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h5: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h6: DetailedHTMLFactory<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ head: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLHeadElement>;
+ header: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ hgroup: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ hr: DetailedHTMLFactory<HTMLAttributes<HTMLHRElement>, HTMLHRElement>;
+ html: DetailedHTMLFactory<HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>;
+ i: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ iframe: DetailedHTMLFactory<IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>;
+ img: DetailedHTMLFactory<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
+ input: DetailedHTMLFactory<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
+ ins: DetailedHTMLFactory<InsHTMLAttributes<HTMLModElement>, HTMLModElement>;
+ kbd: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ keygen: DetailedHTMLFactory<KeygenHTMLAttributes<HTMLElement>, HTMLElement>;
+ label: DetailedHTMLFactory<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
+ legend: DetailedHTMLFactory<HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>;
+ li: DetailedHTMLFactory<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
+ link: DetailedHTMLFactory<LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>;
+ main: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ map: DetailedHTMLFactory<MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>;
+ mark: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ menu: DetailedHTMLFactory<MenuHTMLAttributes<HTMLElement>, HTMLElement>;
+ menuitem: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ meta: DetailedHTMLFactory<MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>;
+ meter: DetailedHTMLFactory<MeterHTMLAttributes<HTMLElement>, HTMLElement>;
+ nav: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ noscript: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ object: DetailedHTMLFactory<ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>;
+ ol: DetailedHTMLFactory<OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>;
+ optgroup: DetailedHTMLFactory<OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>;
+ option: DetailedHTMLFactory<OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>;
+ output: DetailedHTMLFactory<OutputHTMLAttributes<HTMLElement>, HTMLElement>;
+ p: DetailedHTMLFactory<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
+ param: DetailedHTMLFactory<ParamHTMLAttributes<HTMLParamElement>, HTMLParamElement>;
+ picture: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ pre: DetailedHTMLFactory<HTMLAttributes<HTMLPreElement>, HTMLPreElement>;
+ progress: DetailedHTMLFactory<ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>;
+ q: DetailedHTMLFactory<QuoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>;
+ rp: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ rt: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ ruby: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ s: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ samp: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ script: DetailedHTMLFactory<ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
+ section: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ select: DetailedHTMLFactory<SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
+ small: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ source: DetailedHTMLFactory<SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>;
+ span: DetailedHTMLFactory<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
+ strong: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ style: DetailedHTMLFactory<StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>;
+ sub: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ summary: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ sup: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ table: DetailedHTMLFactory<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
+ tbody: DetailedHTMLFactory<HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ td: DetailedHTMLFactory<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
+ textarea: DetailedHTMLFactory<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
+ tfoot: DetailedHTMLFactory<HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ th: DetailedHTMLFactory<ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>;
+ thead: DetailedHTMLFactory<HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ time: DetailedHTMLFactory<TimeHTMLAttributes<HTMLElement>, HTMLElement>;
+ title: DetailedHTMLFactory<HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>;
+ tr: DetailedHTMLFactory<HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>;
+ track: DetailedHTMLFactory<TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>;
+ u: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ ul: DetailedHTMLFactory<HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
+ "var": DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ video: DetailedHTMLFactory<VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
+ wbr: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
+ }
+
+ interface ReactSVG {
svg: SVGFactory;
animate: SVGFactory;
circle: SVGFactory;
@@ -2645,19 +3357,19 @@ declare namespace React {
use: SVGFactory;
}
+ interface ReactDOM extends ReactHTML, ReactSVG { }
+
//
// React.PropTypes
// ----------------------------------------------------------------------
- interface Validator<T> {
- (object: T, key: string, componentName: string, ...rest: any[]): Error | null;
- }
+ type Validator<T> = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null;
interface Requireable<T> extends Validator<T> {
isRequired: Validator<T>;
}
- type ValidationMap<T> = { [K in keyof T]?: Validator<T> };
+ type ValidationMap<T> = {[K in keyof T]?: Validator<T> };
interface ReactPropTypes {
any: Requireable<any>;
@@ -2671,7 +3383,7 @@ declare namespace React {
element: Requireable<any>;
instanceOf(expectedClass: {}): Requireable<any>;
oneOf(types: any[]): Requireable<any>;
- oneOfType(types: Validator<any>[]): Requireable<any>;
+ oneOfType(types: Array<Validator<any>>): Requireable<any>;
arrayOf(type: Validator<any>): Requireable<any>;
objectOf(type: Validator<any>): Requireable<any>;
shape(type: ValidationMap<any>): Requireable<any>;
@@ -2716,141 +3428,154 @@ declare namespace React {
item(index: number): Touch;
identifiedTouch(identifier: number): Touch;
}
+
+ //
+ // Error Interfaces
+ // ----------------------------------------------------------------------
+ interface ErrorInfo {
+ /**
+ * Captures which component contained the exception, and it's ancestors.
+ */
+ componentStack: string;
+ }
}
declare global {
namespace JSX {
+ // tslint:disable:no-empty-interface
interface Element extends React.ReactElement<any> { }
- interface ElementClass extends React.Component<any, any> {
- render(): JSX.Element | null;
+ interface ElementClass extends React.Component<any> {
+ render(): JSX.Element | null | false;
}
interface ElementAttributesProperty { props: {}; }
interface ElementChildrenAttribute { children: {}; }
interface IntrinsicAttributes extends React.Attributes { }
interface IntrinsicClassAttributes<T> extends React.ClassAttributes<T> { }
+ // tslint:enable:no-empty-interface
interface IntrinsicElements {
// HTML
- a: React.HTMLProps<HTMLAnchorElement>;
- abbr: React.HTMLProps<HTMLElement>;
- address: React.HTMLProps<HTMLElement>;
- area: React.HTMLProps<HTMLAreaElement>;
- article: React.HTMLProps<HTMLElement>;
- aside: React.HTMLProps<HTMLElement>;
- audio: React.HTMLProps<HTMLAudioElement>;
- b: React.HTMLProps<HTMLElement>;
- base: React.HTMLProps<HTMLBaseElement>;
- bdi: React.HTMLProps<HTMLElement>;
- bdo: React.HTMLProps<HTMLElement>;
- big: React.HTMLProps<HTMLElement>;
- blockquote: React.HTMLProps<HTMLElement>;
- body: React.HTMLProps<HTMLBodyElement>;
- br: React.HTMLProps<HTMLBRElement>;
- button: React.HTMLProps<HTMLButtonElement>;
- canvas: React.HTMLProps<HTMLCanvasElement>;
- caption: React.HTMLProps<HTMLElement>;
- cite: React.HTMLProps<HTMLElement>;
- code: React.HTMLProps<HTMLElement>;
- col: React.HTMLProps<HTMLTableColElement>;
- colgroup: React.HTMLProps<HTMLTableColElement>;
- data: React.HTMLProps<HTMLElement>;
- datalist: React.HTMLProps<HTMLDataListElement>;
- dd: React.HTMLProps<HTMLElement>;
- del: React.HTMLProps<HTMLElement>;
- details: React.HTMLProps<HTMLElement>;
- dfn: React.HTMLProps<HTMLElement>;
- dialog: React.HTMLProps<HTMLElement>;
- div: React.HTMLProps<HTMLDivElement>;
- dl: React.HTMLProps<HTMLDListElement>;
- dt: React.HTMLProps<HTMLElement>;
- em: React.HTMLProps<HTMLElement>;
- embed: React.HTMLProps<HTMLEmbedElement>;
- fieldset: React.HTMLProps<HTMLFieldSetElement>;
- figcaption: React.HTMLProps<HTMLElement>;
- figure: React.HTMLProps<HTMLElement>;
- footer: React.HTMLProps<HTMLElement>;
- form: React.HTMLProps<HTMLFormElement>;
- h1: React.HTMLProps<HTMLHeadingElement>;
- h2: React.HTMLProps<HTMLHeadingElement>;
- h3: React.HTMLProps<HTMLHeadingElement>;
- h4: React.HTMLProps<HTMLHeadingElement>;
- h5: React.HTMLProps<HTMLHeadingElement>;
- h6: React.HTMLProps<HTMLHeadingElement>;
- head: React.HTMLProps<HTMLHeadElement>;
- header: React.HTMLProps<HTMLElement>;
- hgroup: React.HTMLProps<HTMLElement>;
- hr: React.HTMLProps<HTMLHRElement>;
- html: React.HTMLProps<HTMLHtmlElement>;
- i: React.HTMLProps<HTMLElement>;
- iframe: React.HTMLProps<HTMLIFrameElement>;
- img: React.HTMLProps<HTMLImageElement>;
- input: React.ChangeTargetHTMLProps<HTMLInputElement>;
- ins: React.HTMLProps<HTMLModElement>;
- kbd: React.HTMLProps<HTMLElement>;
- keygen: React.HTMLProps<HTMLElement>;
- label: React.HTMLProps<HTMLLabelElement>;
- legend: React.HTMLProps<HTMLLegendElement>;
- li: React.HTMLProps<HTMLLIElement>;
- link: React.HTMLProps<HTMLLinkElement>;
- main: React.HTMLProps<HTMLElement>;
- map: React.HTMLProps<HTMLMapElement>;
- mark: React.HTMLProps<HTMLElement>;
- menu: React.HTMLProps<HTMLElement>;
- menuitem: React.HTMLProps<HTMLElement>;
- meta: React.HTMLProps<HTMLMetaElement>;
- meter: React.HTMLProps<HTMLElement>;
- nav: React.HTMLProps<HTMLElement>;
- noindex: React.HTMLProps<HTMLElement>;
- noscript: React.HTMLProps<HTMLElement>;
- object: React.HTMLProps<HTMLObjectElement>;
- ol: React.HTMLProps<HTMLOListElement>;
- optgroup: React.HTMLProps<HTMLOptGroupElement>;
- option: React.HTMLProps<HTMLOptionElement>;
- output: React.HTMLProps<HTMLElement>;
- p: React.HTMLProps<HTMLParagraphElement>;
- param: React.HTMLProps<HTMLParamElement>;
- picture: React.HTMLProps<HTMLElement>;
- pre: React.HTMLProps<HTMLPreElement>;
- progress: React.HTMLProps<HTMLProgressElement>;
- q: React.HTMLProps<HTMLQuoteElement>;
- rp: React.HTMLProps<HTMLElement>;
- rt: React.HTMLProps<HTMLElement>;
- ruby: React.HTMLProps<HTMLElement>;
- s: React.HTMLProps<HTMLElement>;
- samp: React.HTMLProps<HTMLElement>;
- script: React.HTMLProps<HTMLElement>;
- section: React.HTMLProps<HTMLElement>;
- select: React.ChangeTargetHTMLProps<HTMLSelectElement>;
- small: React.HTMLProps<HTMLElement>;
- source: React.HTMLProps<HTMLSourceElement>;
- span: React.HTMLProps<HTMLSpanElement>;
- strong: React.HTMLProps<HTMLElement>;
- style: React.HTMLProps<HTMLStyleElement>;
- sub: React.HTMLProps<HTMLElement>;
- summary: React.HTMLProps<HTMLElement>;
- sup: React.HTMLProps<HTMLElement>;
- table: React.HTMLProps<HTMLTableElement>;
- tbody: React.HTMLProps<HTMLTableSectionElement>;
- td: React.HTMLProps<HTMLTableDataCellElement>;
- textarea: React.ChangeTargetHTMLProps<HTMLTextAreaElement>;
- tfoot: React.HTMLProps<HTMLTableSectionElement>;
- th: React.HTMLProps<HTMLTableHeaderCellElement>;
- thead: React.HTMLProps<HTMLTableSectionElement>;
- time: React.HTMLProps<HTMLElement>;
- title: React.HTMLProps<HTMLTitleElement>;
- tr: React.HTMLProps<HTMLTableRowElement>;
- track: React.HTMLProps<HTMLTrackElement>;
- u: React.HTMLProps<HTMLElement>;
- ul: React.HTMLProps<HTMLUListElement>;
- "var": React.HTMLProps<HTMLElement>;
- video: React.HTMLProps<HTMLVideoElement>;
- wbr: React.HTMLProps<HTMLElement>;
+ a: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
+ abbr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ address: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ area: React.DetailedHTMLProps<React.AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>;
+ article: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ aside: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ audio: React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>;
+ b: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ base: React.DetailedHTMLProps<React.BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>;
+ bdi: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ bdo: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ big: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ blockquote: React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>;
+ body: React.DetailedHTMLProps<React.HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>;
+ br: React.DetailedHTMLProps<React.HTMLAttributes<HTMLBRElement>, HTMLBRElement>;
+ button: React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
+ canvas: React.DetailedHTMLProps<React.CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>;
+ caption: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ cite: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ code: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ col: React.DetailedHTMLProps<React.ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
+ colgroup: React.DetailedHTMLProps<React.ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>;
+ data: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ datalist: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>;
+ dd: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ del: React.DetailedHTMLProps<React.DelHTMLAttributes<HTMLElement>, HTMLElement>;
+ details: React.DetailedHTMLProps<React.DetailsHTMLAttributes<HTMLElement>, HTMLElement>;
+ dfn: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ dialog: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
+ dl: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDListElement>, HTMLDListElement>;
+ dt: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ em: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ embed: React.DetailedHTMLProps<React.EmbedHTMLAttributes<HTMLEmbedElement>, HTMLEmbedElement>;
+ fieldset: React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>;
+ figcaption: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ figure: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ footer: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ form: React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
+ h1: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h2: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h3: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h4: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h5: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ h6: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
+ head: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadElement>, HTMLHeadElement>;
+ header: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ hgroup: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ hr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>;
+ html: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>;
+ i: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ iframe: React.DetailedHTMLProps<React.IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>;
+ img: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
+ input: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
+ ins: React.DetailedHTMLProps<React.InsHTMLAttributes<HTMLModElement>, HTMLModElement>;
+ kbd: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ keygen: React.DetailedHTMLProps<React.KeygenHTMLAttributes<HTMLElement>, HTMLElement>;
+ label: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
+ legend: React.DetailedHTMLProps<React.HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>;
+ li: React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
+ link: React.DetailedHTMLProps<React.LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>;
+ main: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ map: React.DetailedHTMLProps<React.MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>;
+ mark: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ menu: React.DetailedHTMLProps<React.MenuHTMLAttributes<HTMLElement>, HTMLElement>;
+ menuitem: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ meta: React.DetailedHTMLProps<React.MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>;
+ meter: React.DetailedHTMLProps<React.MeterHTMLAttributes<HTMLElement>, HTMLElement>;
+ nav: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ noindex: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ noscript: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ object: React.DetailedHTMLProps<React.ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>;
+ ol: React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>;
+ optgroup: React.DetailedHTMLProps<React.OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>;
+ option: React.DetailedHTMLProps<React.OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>;
+ output: React.DetailedHTMLProps<React.OutputHTMLAttributes<HTMLElement>, HTMLElement>;
+ p: React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
+ param: React.DetailedHTMLProps<React.ParamHTMLAttributes<HTMLParamElement>, HTMLParamElement>;
+ picture: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ pre: React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>;
+ progress: React.DetailedHTMLProps<React.ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>;
+ q: React.DetailedHTMLProps<React.QuoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>;
+ rp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ rt: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ ruby: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ s: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ samp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ script: React.DetailedHTMLProps<React.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
+ section: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ select: React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
+ small: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ source: React.DetailedHTMLProps<React.SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>;
+ span: React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
+ strong: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ style: React.DetailedHTMLProps<React.StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>;
+ sub: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ summary: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ sup: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ table: React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
+ tbody: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ td: React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>;
+ textarea: React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
+ tfoot: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ th: React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>;
+ thead: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>;
+ time: React.DetailedHTMLProps<React.TimeHTMLAttributes<HTMLElement>, HTMLElement>;
+ title: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>;
+ tr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>;
+ track: React.DetailedHTMLProps<React.TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>;
+ u: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ ul: React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
+ "var": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
+ video: React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
+ wbr: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
// SVG
svg: React.SVGProps<SVGSVGElement>;
animate: React.SVGProps<SVGElement>; // TODO: It is SVGAnimateElement but is not in TypeScript's lib.dom.d.ts for now.
+ animateTransform: React.SVGProps<SVGElement>; // TODO: It is SVGAnimateTransformElement but is not in TypeScript's lib.dom.d.ts for now.
circle: React.SVGProps<SVGCircleElement>;
clipPath: React.SVGProps<SVGClipPathElement>;
defs: React.SVGProps<SVGDefsElement>;
diff --git a/node_modules/@types/react/package.json b/node_modules/@types/react/package.json
index 94e824a8c..8855a0db3 100644
--- a/node_modules/@types/react/package.json
+++ b/node_modules/@types/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/react",
- "version": "15.0.24",
+ "version": "16.0.2",
"description": "TypeScript definitions for React",
"license": "MIT",
"contributors": [
@@ -35,6 +35,26 @@
{
"name": "Eric Anderson",
"url": "https://github.com/ericanderson"
+ },
+ {
+ "name": "Albert Kurniawan",
+ "url": "https://github.com/morcerf"
+ },
+ {
+ "name": "Tanguy Krotoff",
+ "url": "https://github.com/tkrotoff"
+ },
+ {
+ "name": "Dovydas Navickas",
+ "url": "https://github.com/DovydasNavickas"
+ },
+ {
+ "name": "Stéphane Goetz",
+ "url": "https://github.com/onigoetz"
+ },
+ {
+ "name": "Rich Seviora",
+ "url": "https://github.com/richseviora"
}
],
"main": "",
@@ -45,6 +65,6 @@
"scripts": {},
"dependencies": {},
"peerDependencies": {},
- "typesPublisherContentHash": "0936312b5f6b9ce1bdddb7a1e3edd03cd7525018a652879040ef157afbd7df26",
- "typeScriptVersion": "2.2"
+ "typesPublisherContentHash": "c70d024b8a021e772e30a439c4b004bf4518745016c04056332c12a83ceaa8b0",
+ "typeScriptVersion": "2.3"
} \ No newline at end of file