@alfalab/core-components-picker-button 11.1.3 → 11.1.4

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.
Files changed (45) hide show
  1. package/Component-1a4fbd11.d.ts +4 -274
  2. package/Component-63dec22f.d.ts +184 -0
  3. package/Component-dd8ca091.d.ts +70 -3
  4. package/Component-ebda875c.d.ts +9 -98
  5. package/Component.desktop.d.ts +1 -1
  6. package/Component.desktop.js +1 -1
  7. package/Component.mobile.d.ts +1 -1
  8. package/Component.modal.mobile-dd8ca091.d.ts +60 -0
  9. package/Component.responsive.d.ts +1 -1
  10. package/component-1a4fbd11.d.ts +44 -0
  11. package/esm/Component.desktop.js +1 -1
  12. package/esm/field/Component.js +1 -1
  13. package/esm/field/index.css +6 -6
  14. package/esm/index.css +5 -5
  15. package/esm/option/Component.js +1 -1
  16. package/esm/option/index.css +4 -4
  17. package/field/Component.js +1 -1
  18. package/field/index.css +6 -6
  19. package/hook-8abfea97.d.ts +4 -4
  20. package/index-1a4fbd11.d.ts +2 -2
  21. package/index-bdb4c6b9.d.ts +2 -180
  22. package/index-c44170fe.d.ts +145 -3
  23. package/index-ebda875c.d.ts +53 -191
  24. package/index-f12ee135.d.ts +3 -324
  25. package/index.css +5 -5
  26. package/modern/Component.desktop.js +1 -1
  27. package/modern/field/Component.js +1 -1
  28. package/modern/field/index.css +6 -6
  29. package/modern/index.css +5 -5
  30. package/modern/option/Component.js +1 -1
  31. package/modern/option/index.css +4 -4
  32. package/option/Component.js +1 -1
  33. package/option/index.css +4 -4
  34. package/package.json +2 -2
  35. package/shared-4cd3936b.d.ts +59 -1
  36. package/types-e40becc7.d.ts +276 -0
  37. package/utils-1574ad8b.d.ts +29 -0
  38. package/utils-49cc3c24.d.ts +8 -0
  39. package/Component-72dda473.d.ts +0 -53
  40. package/Component-aed0af6e.d.ts +0 -11
  41. package/Component-f12ee135.d.ts +0 -72
  42. package/Component.mobile-96988a65.d.ts +0 -6
  43. package/hook-ebda875c.d.ts +0 -48
  44. /package/{Component.responsive-d7e9f69d.d.ts → Component.responsive-3109f463.d.ts} +0 -0
  45. /package/{useSkeleton-1b036d4b.d.ts → useSkeleton-ebda875c.d.ts} +0 -0
@@ -1,48 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { OptionProps, OptionShape } from "./typings-dd8ca091";
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 };