@mcf/lib-ui 2.4.27 → 2.4.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ import { Props, GroupBase } from 'react-select';
3
+ export interface IOption {
4
+ label: string;
5
+ value: string | number;
6
+ isDisabled?: boolean;
7
+ }
8
+ export interface IMultilineOption extends IOption {
9
+ helperText?: string;
10
+ }
11
+ export declare enum DropdownVariant {
12
+ Default = "DEFAULT",
13
+ Multiline = "MULTILINE",
14
+ MultiSelect = "MULTISELECT"
15
+ }
16
+ export interface IDropdownProps extends Props<IOption, boolean, GroupBase<IOption>> {
17
+ width: string;
18
+ primaryLabel?: string;
19
+ secondaryLabel?: string;
20
+ additionalInfo?: string;
21
+ input?: {
22
+ onChange: (event?: React.FocusEvent<HTMLInputElement> | any) => void;
23
+ onBlur?: (event?: React.FocusEvent<HTMLInputElement>) => void;
24
+ onFocus?: (event?: React.FocusEvent<HTMLInputElement>) => void;
25
+ value?: any;
26
+ };
27
+ errorMsg?: string;
28
+ data: IOption[] | IMultilineOption[];
29
+ variant: DropdownVariant;
30
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IDropdownProps } from './DropdownNew.constants';
3
+ declare const Dropdown: ({ width, isSearchable, isDisabled, primaryLabel, secondaryLabel, additionalInfo, errorMsg, placeholder, data, defaultValue, input, variant, }: IDropdownProps) => JSX.Element;
4
+ export default Dropdown;
@@ -0,0 +1 @@
1
+ export { default as DropdownNew } from './DropdownNew';
@@ -21,3 +21,4 @@ export * from './Tabs';
21
21
  export * from './TextInputNew';
22
22
  export * from './Collapse';
23
23
  export * from './MenuList';
24
+ export * from './DropdownNew';