kwant-ui 3.51.0-dev.4 → 3.51.0-dev.7
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/Dropdown/DropdownTypes.d.ts +17 -1
- package/dist/components/Dropdown/hooks/useDropdownPositioning.d.ts +6 -0
- package/dist/components/TimePicker/types.d.ts +4 -1
- package/dist/index.es.js +194 -194
- package/dist/index.js +191 -191
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
2
|
import { AvatarDeclarations } from '../Avatar/Avatar.types';
|
|
3
3
|
import { IBaseDropdown } from '../BaseDropdown/BaseDropdownTypes';
|
|
4
4
|
export declare namespace IDropdown {
|
|
@@ -33,3 +33,19 @@ export declare namespace IDropdown {
|
|
|
33
33
|
withInput?: boolean;
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
+
export interface DropdownOffsets {
|
|
37
|
+
offsetTop?: string;
|
|
38
|
+
offsetBottom?: string;
|
|
39
|
+
maxHeight: number;
|
|
40
|
+
}
|
|
41
|
+
export interface UseDropdownPositioningProps {
|
|
42
|
+
isDynamicOptionPosition?: boolean;
|
|
43
|
+
targetRef?: RefObject<HTMLElement>;
|
|
44
|
+
opened: boolean;
|
|
45
|
+
maxHeight?: number;
|
|
46
|
+
offsetTop?: string;
|
|
47
|
+
offsetBottom?: string;
|
|
48
|
+
searchable?: boolean;
|
|
49
|
+
dataLength?: number;
|
|
50
|
+
itemHeight?: number;
|
|
51
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DropdownOffsets, UseDropdownPositioningProps } from '../DropdownTypes';
|
|
2
|
+
export declare const useDropdownPositioning: ({ isDynamicOptionPosition, targetRef, opened, maxHeight, offsetTop, offsetBottom, searchable, dataLength, itemHeight, }: UseDropdownPositioningProps) => {
|
|
3
|
+
currentOffsets: DropdownOffsets;
|
|
4
|
+
isOpeningUpward: boolean;
|
|
5
|
+
calculateDropdownPosition: () => void;
|
|
6
|
+
};
|
|
@@ -3,7 +3,10 @@ import { TooltipComponent } from '../Tooltip/types';
|
|
|
3
3
|
type Period = 'AM' | 'PM';
|
|
4
4
|
type Format = '12' | '24';
|
|
5
5
|
export interface TimePickerProps {
|
|
6
|
-
onChange?: (
|
|
6
|
+
onChange?: (value: {
|
|
7
|
+
time: string;
|
|
8
|
+
period?: Period;
|
|
9
|
+
}) => void;
|
|
7
10
|
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
8
11
|
disabled?: boolean;
|
|
9
12
|
required?: boolean;
|