wix-style-react
Version:
wix-style-react
69 lines • 3.71 kB
TypeScript
export default withMaxWidth;
declare function withMaxWidth(WrappedComponent: any): {
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: import("prop-types").Requireable<string>;
items: import("prop-types").Validator<(import("prop-types").InferProps<{
id: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
title: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
minWidth: import("prop-types").Requireable<number>;
maxWidth: import("prop-types").Requireable<number>;
textAlign: import("prop-types").Requireable<string>;
dataHook: import("prop-types").Requireable<string>;
}> | null | undefined)[]>;
};
contextType?: React.Context<any> | undefined;
};
import React from 'react';
//# sourceMappingURL=index.d.ts.map