@alfalab/core-components-input-autocomplete 10.0.0 → 10.0.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/{cssm/Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/Component-5e1b8383.d.ts +70 -3
- package/Component-63dec22f.d.ts +166 -10
- package/{Component-425c8522.d.ts → Component-72dda473.d.ts} +1 -1
- package/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/Component-ebda875c.d.ts +8 -265
- package/Component.mobile-ebda875c.d.ts +6 -0
- package/Component.mobile-f1f15074.d.ts +1 -1
- package/Component.mobile.d.ts +4 -5
- package/Component.mobile.js +1 -1
- package/{mobile-45dc17c6.d.ts → Component.modal.mobile-5e1b8383.d.ts} +27 -14
- package/Component.modal.mobile.d.ts +2 -2
- package/Component.modal.mobile.js +1 -1
- package/Component.responsive.d.ts +2 -3
- package/Component.responsive.js +1 -1
- package/autocomplete-field/Component.js +1 -1
- package/autocomplete-field/index.css +2 -2
- package/autocomplete-mobile-field/Component.d.ts +6 -2
- package/autocomplete-mobile-field/Component.js +1 -1
- package/autocomplete-mobile-field/index.css +8 -8
- package/{esm/component-89a3cf4c.d.ts → component-50136800.d.ts} +1 -1
- package/{modern/Component-89a3cf4c.d.ts → cssm/Component-50136800.d.ts} +1 -1
- package/cssm/Component-5e1b8383.d.ts +1 -1
- package/cssm/Component-72dda473.d.ts +53 -0
- package/cssm/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/cssm/Component.mobile-f1f15074.d.ts +1 -1
- package/cssm/Component.mobile.d.ts +3 -4
- package/cssm/Component.modal.mobile-5e1b8383.d.ts +1 -1
- package/cssm/Component.responsive.d.ts +1 -2
- package/cssm/autocomplete-mobile-field/Component.d.ts +6 -2
- package/{modern/component-89a3cf4c.d.ts → cssm/component-50136800.d.ts} +1 -1
- package/cssm/index-50136800.d.ts +11 -0
- package/{esm/index-425c8522.d.ts → cssm/index-72dda473.d.ts} +7 -1
- package/cssm/index-c76d6398.d.ts +2 -0
- package/cssm/index-f12ee135.d.ts +1 -1
- package/cssm/types-d9f9bbcc.d.ts +2 -2
- package/esm/{Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/esm/Component-5e1b8383.d.ts +1 -1
- package/esm/Component-72dda473.d.ts +53 -0
- package/esm/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/esm/Component.mobile-f1f15074.d.ts +1 -1
- package/esm/Component.mobile.d.ts +3 -4
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile-5e1b8383.d.ts +1 -1
- package/esm/Component.modal.mobile.js +1 -1
- package/esm/Component.responsive.d.ts +1 -2
- package/esm/Component.responsive.js +1 -1
- package/esm/autocomplete-field/Component.js +1 -1
- package/esm/autocomplete-field/index.css +2 -2
- package/esm/autocomplete-mobile-field/Component.d.ts +6 -2
- package/esm/autocomplete-mobile-field/Component.js +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/{cssm/component-89a3cf4c.d.ts → esm/component-50136800.d.ts} +1 -1
- package/esm/index-50136800.d.ts +11 -0
- package/{cssm/index-425c8522.d.ts → esm/index-72dda473.d.ts} +7 -1
- package/esm/index-c76d6398.d.ts +2 -0
- package/esm/index-f12ee135.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/mobile.css +4 -4
- package/esm/mobile.js +1 -1
- package/esm/{mobile.module-ed5594fa.js → mobile.module-bb0cbc57.js} +1 -1
- package/esm/types-d9f9bbcc.d.ts +2 -2
- package/hook-9ea9e32c.d.ts +4 -4
- package/index-50136800.d.ts +11 -0
- package/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
- package/index-bdb4c6b9.d.ts +2 -172
- package/index-c76d6398.d.ts +2 -0
- package/index-ebda875c.d.ts +115 -11
- package/index-f12ee135.d.ts +3 -307
- package/index.js +1 -1
- package/mobile-06ffd24b.d.ts +5 -0
- package/mobile-96988a65.d.ts +2 -5
- package/mobile.css +4 -4
- package/mobile.js +1 -1
- package/{mobile.module-4fb8c86a.js → mobile.module-00dfdfed.js} +1 -1
- package/modern/Component-50136800.d.ts +6 -0
- package/modern/Component-5e1b8383.d.ts +1 -1
- package/modern/Component-72dda473.d.ts +53 -0
- package/modern/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/modern/Component.mobile-f1f15074.d.ts +1 -1
- package/modern/Component.mobile.d.ts +3 -4
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile-5e1b8383.d.ts +1 -1
- package/modern/Component.modal.mobile.js +1 -1
- package/modern/Component.responsive.d.ts +1 -2
- package/modern/Component.responsive.js +1 -1
- package/modern/autocomplete-field/Component.js +1 -1
- package/modern/autocomplete-field/index.css +2 -2
- package/modern/autocomplete-mobile-field/Component.d.ts +6 -2
- package/modern/autocomplete-mobile-field/Component.js +1 -1
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/modern/component-50136800.d.ts +44 -0
- package/modern/index-50136800.d.ts +11 -0
- package/modern/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
- package/modern/index-c76d6398.d.ts +2 -0
- package/modern/index-f12ee135.d.ts +1 -1
- package/modern/index.js +1 -1
- package/modern/mobile.css +4 -4
- package/modern/mobile.js +1 -1
- package/modern/{mobile.module-a255d4ec.js → mobile.module-ca98f569.js} +1 -1
- package/modern/types-d9f9bbcc.d.ts +2 -2
- package/package.json +4 -4
- package/shared-4cd3936b.d.ts +88 -3
- package/src/Component.mobile.tsx +2 -2
- package/src/Component.responsive.tsx +0 -2
- package/src/autocomplete-mobile-field/Component.tsx +6 -3
- package/types-d9f9bbcc.d.ts +259 -0
- package/utils-1574ad8b.d.ts +29 -0
- package/utils-49cc3c24.d.ts +8 -0
- package/Component-89a3cf4c.d.ts +0 -6
- package/Component-96988a65.d.ts +0 -9
- package/Component-aed0af6e.d.ts +0 -11
- package/Component-f12ee135.d.ts +0 -72
- package/cssm/index-89a3cf4c.d.ts +0 -3
- package/cssm/index-e81c389f.d.ts +0 -3
- package/esm/index-89a3cf4c.d.ts +0 -3
- package/esm/index-e81c389f.d.ts +0 -3
- package/hook-ebda875c.d.ts +0 -48
- package/index-89a3cf4c.d.ts +0 -3
- package/index-e81c389f.d.ts +0 -3
- package/modern/index-89a3cf4c.d.ts +0 -3
- package/modern/index-e81c389f.d.ts +0 -3
- /package/{Component.mobile-f12ee135.d.ts → Component.mobile-06ffd24b.d.ts} +0 -0
- /package/cssm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/esm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/modern/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
package/Component-f12ee135.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
-
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
6
|
-
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
|
-
/**
|
|
8
|
-
* Футер
|
|
9
|
-
* @deprecated Используйте bottomSheetProps.actionButton
|
|
10
|
-
*/
|
|
11
|
-
footer?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Будет ли свайпаться шторка
|
|
14
|
-
* @deprecated Используйте bottomSheetProps.swipeable
|
|
15
|
-
*/
|
|
16
|
-
swipeable?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Отображать в BottomSheet
|
|
19
|
-
*/
|
|
20
|
-
isBottomSheet?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Дополнительные пропсы шторки
|
|
23
|
-
*/
|
|
24
|
-
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
25
|
-
/**
|
|
26
|
-
* Дополнительные пропсы модалки
|
|
27
|
-
*/
|
|
28
|
-
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
29
|
-
/**
|
|
30
|
-
* Дополнительные пропсы шапки модалки
|
|
31
|
-
*/
|
|
32
|
-
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
33
|
-
/**
|
|
34
|
-
* Дополнительные пропсы футера модалки
|
|
35
|
-
*/
|
|
36
|
-
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
37
|
-
};
|
|
38
|
-
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
39
|
-
/**
|
|
40
|
-
* Футер
|
|
41
|
-
* @deprecated Используйте bottomSheetProps.actionButton
|
|
42
|
-
*/
|
|
43
|
-
footer?: ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* Будет ли свайпаться шторка
|
|
46
|
-
* @deprecated Используйте bottomSheetProps.swipeable
|
|
47
|
-
*/
|
|
48
|
-
swipeable?: boolean | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Отображать в BottomSheet
|
|
51
|
-
*/
|
|
52
|
-
isBottomSheet?: boolean | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Дополнительные пропсы шторки
|
|
55
|
-
*/
|
|
56
|
-
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Дополнительные пропсы модалки
|
|
59
|
-
*/
|
|
60
|
-
modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Дополнительные пропсы шапки модалки
|
|
63
|
-
*/
|
|
64
|
-
modalHeaderProps?: Partial<import("./Component-e81c389f").HeaderProps> | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Дополнительные пропсы футера модалки
|
|
67
|
-
*/
|
|
68
|
-
modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
|
|
69
|
-
} & React.RefAttributes<unknown>>;
|
|
70
|
-
export * from "./Component.mobile-f1f15074";
|
|
71
|
-
export { ModalMobileProps } from "./typings-bdb4c6b9";
|
|
72
|
-
export { SelectMobileProps, BaseSelectMobile };
|
package/cssm/index-89a3cf4c.d.ts
DELETED
package/cssm/index-e81c389f.d.ts
DELETED
package/esm/index-89a3cf4c.d.ts
DELETED
package/esm/index-e81c389f.d.ts
DELETED
package/hook-ebda875c.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { OptionProps, OptionShape } from "./typings-5e1b8383";
|
|
4
|
-
type OptionsFetcherResponse = {
|
|
5
|
-
options: OptionShape[];
|
|
6
|
-
hasMore: boolean;
|
|
7
|
-
};
|
|
8
|
-
type useLazyLoadingProps = {
|
|
9
|
-
/** Количество элементов на "странице" */
|
|
10
|
-
limit?: number;
|
|
11
|
-
/** Начальный номер "страницы" */
|
|
12
|
-
initialOffset?: number;
|
|
13
|
-
/** Скелетон загружаемых элементов */
|
|
14
|
-
skeleton?: React.ReactNode;
|
|
15
|
-
/** Компонент пункта меню */
|
|
16
|
-
Option?: React.FC<OptionProps>;
|
|
17
|
-
/**
|
|
18
|
-
* Функция-загрузчик опций.
|
|
19
|
-
* @param offset - текущая страница
|
|
20
|
-
* @param limit - количество элементов на странице
|
|
21
|
-
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
22
|
-
* @returns Promise<{
|
|
23
|
-
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
24
|
-
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
25
|
-
* }>
|
|
26
|
-
*/
|
|
27
|
-
optionsFetcher(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
28
|
-
};
|
|
29
|
-
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option, }: useLazyLoadingProps): {
|
|
30
|
-
optionsProps: {
|
|
31
|
-
Option: (props: OptionProps) => React.JSX.Element;
|
|
32
|
-
options: OptionShape[];
|
|
33
|
-
optionsListProps: {
|
|
34
|
-
ref: React.RefObject<HTMLDivElement>;
|
|
35
|
-
inputProps: {
|
|
36
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
37
|
-
value: string;
|
|
38
|
-
}) => void;
|
|
39
|
-
value: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
onOpen: (payload: {
|
|
43
|
-
open?: boolean;
|
|
44
|
-
}) => void;
|
|
45
|
-
};
|
|
46
|
-
reset: () => void;
|
|
47
|
-
};
|
|
48
|
-
export { useLazyLoading };
|
package/index-89a3cf4c.d.ts
DELETED
package/index-e81c389f.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|