@livechat/design-system-react-components 2.4.2 → 2.4.5

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.
@@ -1,7 +1,7 @@
1
1
  import { IPickerListItem } from '../Picker';
2
2
  import { AutoCompleteProps, IAutoCompleteListItem } from './types';
3
3
 
4
- export declare const areAllOptionsStrings: (options: AutoCompleteProps['options']) => options is string[];
4
+ export declare const areAllOptionsStrings: (options: AutoCompleteProps["options"]) => options is string[];
5
5
  export declare const buildOptionsFromStrings: (options: string[]) => IPickerListItem[];
6
6
  export declare const buildOptionsFromAutoCompleteListItems: (options: IAutoCompleteListItem[]) => IPickerListItem[];
7
7
  export declare const getFilteredPickerItems: (items: IPickerListItem[], single: boolean, hideIfExactMatch: boolean, inputValue: string) => IPickerListItem[];
@@ -38,33 +38,33 @@ export declare const Button: React.ForwardRefExoticComponent<{
38
38
  /**
39
39
  * Specify the button kind
40
40
  */
41
- kind?: ButtonKind | undefined;
41
+ kind?: ButtonKind;
42
42
  /**
43
43
  * Specify the button size
44
44
  */
45
- size?: ButtonSize | undefined;
45
+ size?: ButtonSize;
46
46
  /**
47
47
  * Set the loading state
48
48
  */
49
- loading?: boolean | undefined;
49
+ loading?: boolean;
50
50
  /**
51
51
  * Set the button for full width
52
52
  */
53
- fullWidth?: boolean | undefined;
53
+ fullWidth?: boolean;
54
54
  /**
55
55
  * Text displayed in loading state
56
56
  */
57
- loaderLabel?: string | undefined;
57
+ loaderLabel?: string;
58
58
  /**
59
59
  * Renders given element
60
60
  */
61
- icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
61
+ icon?: React.ReactElement;
62
62
  /**
63
63
  * Specify the place to render element given in `icon` prop
64
64
  */
65
- iconPosition?: "left" | "right" | undefined;
65
+ iconPosition?: "left" | "right";
66
66
  /**
67
67
  * Set to enable animation that will show label on button hover if icon is present
68
68
  */
69
- animatedLabel?: boolean | undefined;
69
+ animatedLabel?: boolean;
70
70
  } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
@@ -1,7 +1,4 @@
1
1
  import { Dispatch, ReducerAction, ReducerState } from 'react';
2
2
  import { IRangeDatePickerProps, RangeDatePickerReducer } from './types';
3
3
 
4
- export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [
5
- ReducerState<RangeDatePickerReducer>,
6
- Dispatch<ReducerAction<RangeDatePickerReducer>>
7
- ];
4
+ export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [ReducerState<RangeDatePickerReducer>, Dispatch<ReducerAction<RangeDatePickerReducer>>];
@@ -5,6 +5,7 @@ type IProps = {
5
5
  onClick: (event: MouseEvent, id: ProductId) => void;
6
6
  product: ProductOption;
7
7
  isActive?: boolean;
8
+ isDarkMode: boolean;
8
9
  };
9
10
  export declare const ProductRow: FC<IProps>;
10
11
  export {};