@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
66 lines (65 loc) • 2.5 kB
TypeScript
export default Select;
/**
* @deprecated - Components in the legacy folder (/src/legacy) are deprecated. Please use a component from the components folder (/src/components) instead. Legacy components may not follow accessibility standards.
**/
declare class Select extends React.Component<any, any, any> {
constructor(props: any);
constructor(props: any, context: any);
state: {
isOpen: boolean;
selected: any[];
selectedIndex: any[];
anchorNode: any;
anchorWidth: any;
id: any;
};
componentDidUpdate(prevProps: any, prevState: any): void;
hidePopover: () => void;
handleSelect: (e: any, opts: any) => void;
choosePosition: () => void;
handleToggle: () => void;
setAnchorWidth: (elementAnchor: any) => void;
render(): JSX.Element;
clickTextField: any;
list: List;
}
declare namespace Select {
namespace propTypes {
let buttonProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
let className: PropTypes.Requireable<string>;
let defaultValue: PropTypes.Requireable<string>;
let id: PropTypes.Requireable<string>;
let isDynamic: PropTypes.Requireable<boolean>;
let isMulti: PropTypes.Requireable<boolean>;
let listProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
let onSelect: PropTypes.Requireable<(...args: any[]) => any>;
let overlayProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
}
namespace defaultProps {
let buttonProps_1: any;
export { buttonProps_1 as buttonProps };
let children_1: any;
export { children_1 as children };
let className_1: string;
export { className_1 as className };
let defaultValue_1: string;
export { defaultValue_1 as defaultValue };
let id_1: any;
export { id_1 as id };
let isDynamic_1: boolean;
export { isDynamic_1 as isDynamic };
let isMulti_1: boolean;
export { isMulti_1 as isMulti };
let listProps_1: any;
export { listProps_1 as listProps };
let onSelect_1: any;
export { onSelect_1 as onSelect };
let overlayProps_1: any;
export { overlayProps_1 as overlayProps };
}
let displayName: string;
}
import React from 'react';
import { List } from '@momentum-ui/react-collaboration';
import PropTypes from 'prop-types';