@livechat/design-system-react-components 1.22.3 → 1.22.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.
- package/dist/components/Picker/constants.d.ts +1 -2
- package/dist/components/Picker/hooks/useFloatingPicker.d.ts +2 -1
- package/dist/components/Picker/types.d.ts +4 -0
- package/dist/foundations/design-token.d.ts +5 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1238 -1221
- package/dist/preview-stats.json +533 -533
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export declare const ITEM_ROW_HEIGHT = 35;
|
|
2
1
|
export declare const ITEM_GAP_HEIGHT = 2;
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const MIN_LIST_HEIGHT = 200;
|
|
4
3
|
export declare const DEFAULT_LIST_HEIGHT = 400;
|
|
5
4
|
export declare const DEFAULT_PICKER_OPTIONS: ({
|
|
6
5
|
key: string;
|
|
@@ -9,6 +9,7 @@ interface UseFloatingPickerProps {
|
|
|
9
9
|
useClickHookProps?: UseClickProps;
|
|
10
10
|
useDismissHookProps?: UseDismissProps;
|
|
11
11
|
openedOnInit: boolean;
|
|
12
|
+
minListHeight: number;
|
|
12
13
|
maxListHeight: number;
|
|
13
14
|
isOpen?: boolean;
|
|
14
15
|
onVisibilityChange?: (open: boolean, event?: Event | undefined) => void;
|
|
@@ -30,5 +31,5 @@ interface IUseFloatingPicker {
|
|
|
30
31
|
pointer: boolean;
|
|
31
32
|
setPointer: (pointer: boolean) => void;
|
|
32
33
|
}
|
|
33
|
-
export declare const useFloatingPicker: ({ disabled, items, placement, maxListHeight, floatingStrategy, useDismissHookProps, useClickHookProps, isOpen, onVisibilityChange, }: UseFloatingPickerProps) => IUseFloatingPicker;
|
|
34
|
+
export declare const useFloatingPicker: ({ disabled, items, placement, minListHeight, maxListHeight, floatingStrategy, useDismissHookProps, useClickHookProps, isOpen, onVisibilityChange, }: UseFloatingPickerProps) => IUseFloatingPicker;
|
|
34
35
|
export {};
|
|
@@ -36,6 +36,10 @@ export interface IPickerProps extends ComponentCoreProps {
|
|
|
36
36
|
* Specify the max height of the picker list
|
|
37
37
|
*/
|
|
38
38
|
maxListHeight?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Specify the min height of the picker list
|
|
41
|
+
*/
|
|
42
|
+
minListHeight?: number;
|
|
39
43
|
/**
|
|
40
44
|
* Specify whether the picker should be disabled
|
|
41
45
|
*/
|
|
@@ -107,6 +107,7 @@ export declare const DesignToken: {
|
|
|
107
107
|
SurfaceOtherAgent: string;
|
|
108
108
|
SurfaceOtherAgentHover: string;
|
|
109
109
|
SurfaceOtherSkeleton: string;
|
|
110
|
+
/** @deprecated */
|
|
110
111
|
SurfaceOtherInternalNote: string;
|
|
111
112
|
SurfaceOtherInternalNoteHover: string;
|
|
112
113
|
SurfaceOtherVisitor: string;
|
|
@@ -354,5 +355,9 @@ export declare const DesignToken: {
|
|
|
354
355
|
ActionLockHover: string;
|
|
355
356
|
ActionLockActive: string;
|
|
356
357
|
ActionLockDisabled: string;
|
|
358
|
+
SurfaceOtherInternalNoteMessageArea: string;
|
|
359
|
+
SurfaceOtherInternalNoteDefault: string;
|
|
360
|
+
ContentBasicInternalNoteMessagePlaceholder: string;
|
|
361
|
+
ContentBasicInternalNoteMessageActive: string;
|
|
357
362
|
};
|
|
358
363
|
export type DesignTokenKey = keyof typeof DesignToken;
|