@livechat/design-system-react-components 1.33.1 → 1.33.2
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/NavigationTopBar.d.ts +1 -1
- package/dist/components/Picker/components/PickerTriggerBody.d.ts +1 -0
- package/dist/components/Picker/hooks/usePickerItems.d.ts +4 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1768 -1746
- package/dist/style.css +1 -1
- package/dist/utils/plural.d.ts +1 -0
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ import { INavigationTopBarProps, ITopBarAlertProps, ITopBarTitleProps } from './
|
|
|
10
10
|
* </NavigationTopBar>
|
|
11
11
|
*/
|
|
12
12
|
export declare const NavigationTopBar: {
|
|
13
|
-
({ children, additionalNodes, }: INavigationTopBarProps): React.ReactElement;
|
|
13
|
+
({ children, className, additionalNodes, }: INavigationTopBarProps): React.ReactElement;
|
|
14
14
|
Alert: React.FC<ITopBarAlertProps>;
|
|
15
15
|
Title: React.FC<ITopBarTitleProps>;
|
|
16
16
|
};
|
|
@@ -17,5 +17,6 @@ export interface ITriggerBodyProps {
|
|
|
17
17
|
onClear: () => void;
|
|
18
18
|
virtualItemRef: React.MutableRefObject<HTMLElement | null>;
|
|
19
19
|
isTriggerFocused: boolean;
|
|
20
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
20
21
|
}
|
|
21
22
|
export declare const PickerTriggerBody: React.FC<ITriggerBodyProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { IPickerListItem } from '../types';
|
|
2
3
|
interface UsePickerItemsProps {
|
|
3
4
|
selected?: IPickerListItem[] | null;
|
|
@@ -6,6 +7,8 @@ interface UsePickerItemsProps {
|
|
|
6
7
|
selectAllOptionText?: string;
|
|
7
8
|
onSelect: (items: IPickerListItem[] | null) => void;
|
|
8
9
|
setOpen: (isOpen: boolean) => void;
|
|
10
|
+
clearSearchAfterSelection: boolean;
|
|
11
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
9
12
|
}
|
|
10
13
|
interface IUsePickerItems {
|
|
11
14
|
selectedKeys: string[];
|
|
@@ -16,5 +19,5 @@ interface IUsePickerItems {
|
|
|
16
19
|
handleItemRemove: (itemKey: string) => void;
|
|
17
20
|
handleClear: () => void;
|
|
18
21
|
}
|
|
19
|
-
export declare const usePickerItems: ({ selected, options, type, selectAllOptionText, onSelect, setOpen, }: UsePickerItemsProps) => IUsePickerItems;
|
|
22
|
+
export declare const usePickerItems: ({ selected, options, type, selectAllOptionText, onSelect, setOpen, clearSearchAfterSelection, inputRef, }: UsePickerItemsProps) => IUsePickerItems;
|
|
20
23
|
export {};
|