wix-style-react
Version:
wix-style-react
70 lines • 3.61 kB
TypeScript
declare const _default: {
new (props: any): {
state: {
itemMaxWidth: undefined;
};
initMaxWidth(itemsContainer: any): void;
render(): React.JSX.Element;
context: unknown;
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
};
new (props: any, context: any): {
state: {
itemMaxWidth: undefined;
};
initMaxWidth(itemsContainer: any): void;
render(): React.JSX.Element;
context: unknown;
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
};
propTypes: {
type: PropTypes.Requireable<string>;
items: PropTypes.Validator<(PropTypes.InferProps<{
id: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
minWidth: PropTypes.Requireable<number>;
maxWidth: PropTypes.Requireable<number>;
textAlign: PropTypes.Requireable<string>;
dataHook: PropTypes.Requireable<string>;
}> | null | undefined)[]>;
};
contextType?: React.Context<any> | undefined;
};
export default _default;
import React from 'react';
import PropTypes from 'prop-types';
//# sourceMappingURL=index.d.ts.map