@livechat/design-system-react-components 2.4.3 → 2.4.6
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/AppFrame/components/NavigationTopBar/types.d.ts +13 -1
- 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 +4 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -8,15 +8,23 @@ export interface INavigationTopBarProps extends ComponentCoreProps {
|
|
|
8
8
|
*/
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Nodes placed under the children.
|
|
12
12
|
*/
|
|
13
13
|
additionalNodes?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* The CSS class name
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
14
18
|
}
|
|
15
19
|
export interface ITopBarTitleProps extends ComponentCoreProps {
|
|
16
20
|
/**
|
|
17
21
|
* Content of the title.
|
|
18
22
|
*/
|
|
19
23
|
children: React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* The CSS class name
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
20
28
|
}
|
|
21
29
|
type CTAProps = {
|
|
22
30
|
label: string;
|
|
@@ -55,5 +63,9 @@ export interface ITopBarAlertProps extends ComponentCoreProps {
|
|
|
55
63
|
* Show or hide the alert, defaults to `true`. Changes to this prop are animated - the alert will enter and leave smoothly.
|
|
56
64
|
* */
|
|
57
65
|
isVisible?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The CSS class name
|
|
68
|
+
* */
|
|
69
|
+
className?: string;
|
|
58
70
|
}
|
|
59
71
|
export {};
|
|
@@ -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 | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Specify the button size
|
|
44
44
|
*/
|
|
45
|
-
size?: ButtonSize;
|
|
45
|
+
size?: ButtonSize | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* Set the loading state
|
|
48
48
|
*/
|
|
49
|
-
loading?: boolean;
|
|
49
|
+
loading?: boolean | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* Set the button for full width
|
|
52
52
|
*/
|
|
53
|
-
fullWidth?: boolean;
|
|
53
|
+
fullWidth?: boolean | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* Text displayed in loading state
|
|
56
56
|
*/
|
|
57
|
-
loaderLabel?: string;
|
|
57
|
+
loaderLabel?: string | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Renders given element
|
|
60
60
|
*/
|
|
61
|
-
icon?: React.ReactElement;
|
|
61
|
+
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Specify the place to render element given in `icon` prop
|
|
64
64
|
*/
|
|
65
|
-
iconPosition?: "left" | "right";
|
|
65
|
+
iconPosition?: "left" | "right" | undefined;
|
|
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 | undefined;
|
|
70
70
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Dispatch, ReducerAction, ReducerState } from 'react';
|
|
2
2
|
import { IRangeDatePickerProps, RangeDatePickerReducer } from './types';
|
|
3
3
|
|
|
4
|
-
export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [
|
|
4
|
+
export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [
|
|
5
|
+
ReducerState<RangeDatePickerReducer>,
|
|
6
|
+
Dispatch<ReducerAction<RangeDatePickerReducer>>
|
|
7
|
+
];
|