@livechat/design-system-react-components 2.4.2 → 2.4.3
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.
- package/dist/components/AutoComplete/helpers.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +8 -8
- package/dist/components/DatePicker/hooks.d.ts +1 -4
- package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1447 -1440
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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[
|
|
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
|
|
41
|
+
kind?: ButtonKind;
|
|
42
42
|
/**
|
|
43
43
|
* Specify the button size
|
|
44
44
|
*/
|
|
45
|
-
size?: ButtonSize
|
|
45
|
+
size?: ButtonSize;
|
|
46
46
|
/**
|
|
47
47
|
* Set the loading state
|
|
48
48
|
*/
|
|
49
|
-
loading?: boolean
|
|
49
|
+
loading?: boolean;
|
|
50
50
|
/**
|
|
51
51
|
* Set the button for full width
|
|
52
52
|
*/
|
|
53
|
-
fullWidth?: boolean
|
|
53
|
+
fullWidth?: boolean;
|
|
54
54
|
/**
|
|
55
55
|
* Text displayed in loading state
|
|
56
56
|
*/
|
|
57
|
-
loaderLabel?: string
|
|
57
|
+
loaderLabel?: string;
|
|
58
58
|
/**
|
|
59
59
|
* Renders given element
|
|
60
60
|
*/
|
|
61
|
-
icon?: React.ReactElement
|
|
61
|
+
icon?: React.ReactElement;
|
|
62
62
|
/**
|
|
63
63
|
* Specify the place to render element given in `icon` prop
|
|
64
64
|
*/
|
|
65
|
-
iconPosition?: "left" | "right"
|
|
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
|
|
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>>];
|