@alfalab/core-components-input-autocomplete 10.2.3 → 10.3.0
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/Component.desktop.d.ts +3 -3
- package/Component.mobile.d.ts +2 -2
- package/Component.mobile.js +1 -1
- package/Component.modal.mobile.d.ts +3 -3
- package/Component.modal.mobile.js +1 -1
- package/Component.responsive.d.ts +6 -6
- package/Component.responsive.js +1 -1
- package/autocomplete-field/Component.d.ts +1 -1
- package/autocomplete-field/Component.js +1 -1
- package/autocomplete-field/index.css +2 -2
- package/autocomplete-mobile-field/Component.d.ts +2 -2
- package/autocomplete-mobile-field/Component.js +1 -1
- package/autocomplete-mobile-field/index.css +8 -8
- package/cssm/Component.desktop.d.ts +3 -3
- package/cssm/Component.mobile.d.ts +2 -2
- package/cssm/Component.modal.mobile.d.ts +3 -3
- package/cssm/Component.responsive.d.ts +6 -6
- package/cssm/autocomplete-field/Component.d.ts +1 -1
- package/cssm/autocomplete-mobile-field/Component.d.ts +2 -2
- package/cssm/{desktop.d.ts → desktop/index.d.ts} +1 -1
- package/cssm/{desktop.js → desktop/index.js} +3 -3
- package/{mobile.d.ts → cssm/mobile/index.d.ts} +2 -2
- package/cssm/{mobile.js → mobile/index.js} +5 -5
- package/{modern/desktop.d.ts → desktop/index.d.ts} +1 -1
- package/{desktop.js → desktop/index.js} +2 -2
- package/desktop/package.json +3 -0
- package/esm/Component.desktop.d.ts +3 -3
- package/esm/Component.mobile.d.ts +2 -2
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile.d.ts +3 -3
- package/esm/Component.modal.mobile.js +1 -1
- package/esm/Component.responsive.d.ts +6 -6
- package/esm/Component.responsive.js +1 -1
- package/esm/autocomplete-field/Component.d.ts +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 +2 -2
- package/esm/autocomplete-mobile-field/Component.js +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/{desktop.d.ts → esm/desktop/index.d.ts} +1 -1
- package/esm/{desktop.js → desktop/index.js} +2 -2
- package/esm/index.js +1 -1
- package/{cssm/mobile.d.ts → esm/mobile/index.d.ts} +2 -2
- package/esm/{mobile.js → mobile/index.js} +4 -4
- package/esm/mobile.css +4 -4
- package/esm/{mobile.module-c5b1b036.js → mobile.module-846d8b52.js} +1 -1
- package/index.js +1 -1
- package/{modern/mobile.d.ts → mobile/index.d.ts} +2 -2
- package/{mobile.js → mobile/index.js} +4 -4
- package/mobile/package.json +3 -0
- package/mobile.css +4 -4
- package/{mobile.module-c08975ff.js → mobile.module-7c0f2a72.js} +1 -1
- package/modern/Component.desktop.d.ts +4 -4
- package/modern/Component.mobile.d.ts +3 -3
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile.d.ts +4 -4
- package/modern/Component.modal.mobile.js +1 -1
- package/modern/Component.responsive.d.ts +9 -9
- package/modern/Component.responsive.js +1 -1
- package/modern/autocomplete-field/Component.d.ts +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 +2 -2
- package/modern/autocomplete-mobile-field/Component.js +1 -1
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/{esm/desktop.d.ts → modern/desktop/index.d.ts} +1 -1
- package/modern/{desktop.js → desktop/index.js} +2 -2
- package/modern/index.js +1 -1
- package/{esm/mobile.d.ts → modern/mobile/index.d.ts} +2 -2
- package/modern/{mobile.js → mobile/index.js} +4 -4
- package/modern/mobile.css +4 -4
- package/modern/{mobile.module-1bc0502b.js → mobile.module-7bf90bfc.js} +1 -1
- package/package.json +6 -6
- package/src/{desktop.ts → desktop/index.ts} +1 -1
- package/src/desktop/package.json +3 -0
- package/src/{mobile.ts → mobile/index.ts} +2 -2
- package/src/mobile/package.json +3 -0
- package/Component-0f4b9bed.d.ts +0 -72
- package/Component-69921c40.d.ts +0 -184
- package/Component-89f0cb07.d.ts +0 -38
- package/Component-bdb4c6b9.d.ts +0 -12
- package/Component-c76d6398.d.ts +0 -5
- package/Component-ebda875c.d.ts +0 -12
- package/Component.desktop-ebda875c.d.ts +0 -6
- package/Component.mobile-f1f15074.d.ts +0 -34
- package/Component.mobile-f28cbba0.d.ts +0 -41
- package/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/Context-bdb4c6b9.d.ts +0 -4
- package/ResponsiveContext-baf4875b.d.ts +0 -5
- package/consts-f777ba1a.d.ts +0 -2
- package/cssm/Component-0f4b9bed.d.ts +0 -72
- package/cssm/Component-69921c40.d.ts +0 -184
- package/cssm/Component-89f0cb07.d.ts +0 -38
- package/cssm/Component-bdb4c6b9.d.ts +0 -12
- package/cssm/Component-c76d6398.d.ts +0 -5
- package/cssm/Component-ebda875c.d.ts +0 -12
- package/cssm/Component.desktop-ebda875c.d.ts +0 -6
- package/cssm/Component.mobile-f1f15074.d.ts +0 -34
- package/cssm/Component.mobile-f28cbba0.d.ts +0 -41
- package/cssm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/cssm/Context-bdb4c6b9.d.ts +0 -4
- package/cssm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/cssm/consts-f777ba1a.d.ts +0 -2
- package/cssm/desktop-69921c40.d.ts +0 -6
- package/cssm/hook-8abfea97.d.ts +0 -90
- package/cssm/index-136acbb1.d.ts +0 -28
- package/cssm/index-72dda473.d.ts +0 -12
- package/cssm/index-bdb4c6b9.d.ts +0 -2
- package/cssm/index-c76d6398.d.ts +0 -185
- package/cssm/index-ebda875c.d.ts +0 -146
- package/cssm/index-f12ee135.d.ts +0 -52
- package/cssm/mobile-89f0cb07.d.ts +0 -6
- package/cssm/mobile-96988a65.d.ts +0 -6
- package/cssm/mobile-f28cbba0.d.ts +0 -5
- package/cssm/shared-4cd3936b.d.ts +0 -65
- package/cssm/types-1b036d4b.d.ts +0 -13
- package/cssm/types-72dda473.d.ts +0 -276
- package/cssm/typings-0f4b9bed.d.ts +0 -576
- package/cssm/typings-89f0cb07.d.ts +0 -93
- package/cssm/typings-bdb4c6b9.d.ts +0 -52
- package/cssm/useSkeleton-ebda875c.d.ts +0 -12
- package/cssm/utils-0f4b9bed.d.ts +0 -41
- package/cssm/utils-1574ad8b.d.ts +0 -29
- package/desktop-69921c40.d.ts +0 -6
- package/esm/Component-0f4b9bed.d.ts +0 -72
- package/esm/Component-69921c40.d.ts +0 -184
- package/esm/Component-89f0cb07.d.ts +0 -38
- package/esm/Component-bdb4c6b9.d.ts +0 -12
- package/esm/Component-c76d6398.d.ts +0 -5
- package/esm/Component-ebda875c.d.ts +0 -12
- package/esm/Component.desktop-ebda875c.d.ts +0 -6
- package/esm/Component.mobile-f1f15074.d.ts +0 -34
- package/esm/Component.mobile-f28cbba0.d.ts +0 -41
- package/esm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/esm/Context-bdb4c6b9.d.ts +0 -4
- package/esm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/esm/consts-f777ba1a.d.ts +0 -2
- package/esm/desktop-69921c40.d.ts +0 -6
- package/esm/hook-8abfea97.d.ts +0 -90
- package/esm/index-136acbb1.d.ts +0 -28
- package/esm/index-72dda473.d.ts +0 -12
- package/esm/index-bdb4c6b9.d.ts +0 -2
- package/esm/index-c76d6398.d.ts +0 -185
- package/esm/index-ebda875c.d.ts +0 -146
- package/esm/index-f12ee135.d.ts +0 -52
- package/esm/mobile-89f0cb07.d.ts +0 -6
- package/esm/mobile-96988a65.d.ts +0 -6
- package/esm/mobile-f28cbba0.d.ts +0 -5
- package/esm/shared-4cd3936b.d.ts +0 -65
- package/esm/types-1b036d4b.d.ts +0 -13
- package/esm/types-72dda473.d.ts +0 -276
- package/esm/typings-0f4b9bed.d.ts +0 -576
- package/esm/typings-89f0cb07.d.ts +0 -93
- package/esm/typings-bdb4c6b9.d.ts +0 -52
- package/esm/useSkeleton-ebda875c.d.ts +0 -12
- package/esm/utils-0f4b9bed.d.ts +0 -41
- package/esm/utils-1574ad8b.d.ts +0 -29
- package/hook-8abfea97.d.ts +0 -90
- package/index-136acbb1.d.ts +0 -28
- package/index-72dda473.d.ts +0 -12
- package/index-bdb4c6b9.d.ts +0 -2
- package/index-c76d6398.d.ts +0 -185
- package/index-ebda875c.d.ts +0 -146
- package/index-f12ee135.d.ts +0 -52
- package/mobile-89f0cb07.d.ts +0 -6
- package/mobile-96988a65.d.ts +0 -6
- package/mobile-f28cbba0.d.ts +0 -5
- package/modern/Component-0f4b9bed.d.ts +0 -72
- package/modern/Component-69921c40.d.ts +0 -184
- package/modern/Component-89f0cb07.d.ts +0 -38
- package/modern/Component-bdb4c6b9.d.ts +0 -12
- package/modern/Component-c76d6398.d.ts +0 -5
- package/modern/Component-ebda875c.d.ts +0 -12
- package/modern/Component.desktop-ebda875c.d.ts +0 -6
- package/modern/Component.mobile-f1f15074.d.ts +0 -34
- package/modern/Component.mobile-f28cbba0.d.ts +0 -41
- package/modern/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/modern/Context-bdb4c6b9.d.ts +0 -4
- package/modern/ResponsiveContext-baf4875b.d.ts +0 -5
- package/modern/consts-f777ba1a.d.ts +0 -2
- package/modern/desktop-69921c40.d.ts +0 -6
- package/modern/hook-8abfea97.d.ts +0 -90
- package/modern/index-136acbb1.d.ts +0 -28
- package/modern/index-72dda473.d.ts +0 -12
- package/modern/index-bdb4c6b9.d.ts +0 -2
- package/modern/index-c76d6398.d.ts +0 -185
- package/modern/index-ebda875c.d.ts +0 -146
- package/modern/index-f12ee135.d.ts +0 -52
- package/modern/mobile-89f0cb07.d.ts +0 -6
- package/modern/mobile-96988a65.d.ts +0 -6
- package/modern/mobile-f28cbba0.d.ts +0 -5
- package/modern/shared-4cd3936b.d.ts +0 -65
- package/modern/types-1b036d4b.d.ts +0 -13
- package/modern/types-72dda473.d.ts +0 -276
- package/modern/typings-0f4b9bed.d.ts +0 -576
- package/modern/typings-89f0cb07.d.ts +0 -93
- package/modern/typings-bdb4c6b9.d.ts +0 -52
- package/modern/useSkeleton-ebda875c.d.ts +0 -12
- package/modern/utils-0f4b9bed.d.ts +0 -41
- package/modern/utils-1574ad8b.d.ts +0 -29
- package/shared-4cd3936b.d.ts +0 -65
- package/types-1b036d4b.d.ts +0 -13
- package/types-72dda473.d.ts +0 -276
- package/typings-0f4b9bed.d.ts +0 -576
- package/typings-89f0cb07.d.ts +0 -93
- package/typings-bdb4c6b9.d.ts +0 -52
- package/useSkeleton-ebda875c.d.ts +0 -12
- package/utils-0f4b9bed.d.ts +0 -41
- package/utils-1574ad8b.d.ts +0 -29
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
3
|
-
type ModalDesktopProps = BaseModalProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Ширина модального окна
|
|
6
|
-
* @default "m"
|
|
7
|
-
*/
|
|
8
|
-
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen';
|
|
9
|
-
/**
|
|
10
|
-
* Растягивает модальное окно на весь экран
|
|
11
|
-
* @deprecated Используйте размер fullscreen
|
|
12
|
-
*/
|
|
13
|
-
fullscreen?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Фиксирует позицию модального окна после открытия,
|
|
16
|
-
* предотвращая скачки, если контент внутри будет меняться
|
|
17
|
-
*/
|
|
18
|
-
fixedPosition?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Управление наличием закрывающего крестика
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
hasCloser?: boolean;
|
|
24
|
-
};
|
|
25
|
-
type ModalMobileProps = Omit<ModalDesktopProps, 'size' | 'fixedPosition' | 'fullscreen'>;
|
|
26
|
-
type ModalResponsiveProps = ModalDesktopProps & {
|
|
27
|
-
/**
|
|
28
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
29
|
-
* @default 1024
|
|
30
|
-
*/
|
|
31
|
-
breakpoint?: number;
|
|
32
|
-
};
|
|
33
|
-
type View = 'desktop' | 'mobile';
|
|
34
|
-
type TResponsiveModalContext = {
|
|
35
|
-
view: View;
|
|
36
|
-
size: NonNullable<ModalDesktopProps['size']>;
|
|
37
|
-
};
|
|
38
|
-
type ContentProps = {
|
|
39
|
-
/**
|
|
40
|
-
* Контент
|
|
41
|
-
*/
|
|
42
|
-
children?: ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* Дополнительный класс
|
|
45
|
-
*/
|
|
46
|
-
className?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Растягивает контент на всю высоту
|
|
49
|
-
*/
|
|
50
|
-
flex?: boolean;
|
|
51
|
-
};
|
|
52
|
-
export { ModalDesktopProps, ModalMobileProps, ModalResponsiveProps, View, TResponsiveModalContext, ContentProps };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TextSkeletonProps } from "./types-1b036d4b";
|
|
4
|
-
type SkeletonProps = {
|
|
5
|
-
wrapperClassName?: string;
|
|
6
|
-
dataTestId?: string;
|
|
7
|
-
};
|
|
8
|
-
declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
|
|
9
|
-
renderSkeleton: (props: SkeletonProps) => React.JSX.Element | null;
|
|
10
|
-
textRef: React.RefObject<HTMLElement>;
|
|
11
|
-
};
|
|
12
|
-
export { useSkeleton };
|
package/esm/utils-0f4b9bed.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-0f4b9bed";
|
|
3
|
-
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
|
-
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
|
-
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
6
|
-
selected?: OptionShape | undefined;
|
|
7
|
-
selectedMultiple?: OptionShape[] | undefined;
|
|
8
|
-
}) => ReactNode[] | null;
|
|
9
|
-
declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected'], filterFn?: (option: OptionShape) => boolean): {
|
|
10
|
-
filteredOptions: (OptionShape | GroupShape)[];
|
|
11
|
-
flatOptions: OptionShape[];
|
|
12
|
-
selectedOptions: OptionShape[];
|
|
13
|
-
};
|
|
14
|
-
type useVisibleOptionsArgs = {
|
|
15
|
-
/**
|
|
16
|
-
* Количество видимых пунктов
|
|
17
|
-
*/
|
|
18
|
-
visibleOptions: number;
|
|
19
|
-
/**
|
|
20
|
-
* Реф на контейнер с пунтами меню
|
|
21
|
-
*/
|
|
22
|
-
listRef: RefObject<HTMLElement>;
|
|
23
|
-
/**
|
|
24
|
-
* Реф на контейнер, которому нужно установить высоту
|
|
25
|
-
*/
|
|
26
|
-
styleTargetRef?: RefObject<HTMLElement>;
|
|
27
|
-
/**
|
|
28
|
-
* Флаг открытия меню
|
|
29
|
-
*/
|
|
30
|
-
open?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Позволяет вызвать пересчет высоты
|
|
33
|
-
*/
|
|
34
|
-
invalidate?: unknown;
|
|
35
|
-
};
|
|
36
|
-
declare function useVisibleOptions({ visibleOptions, listRef, styleTargetRef, open, invalidate, }: useVisibleOptionsArgs): void;
|
|
37
|
-
declare function defaultFilterFn(optionText: string, search: string): boolean;
|
|
38
|
-
declare function defaultAccessor(option: OptionShape): string;
|
|
39
|
-
declare function usePrevious<T>(value: T): T | undefined;
|
|
40
|
-
declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
|
|
41
|
-
export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, defaultFilterFn, defaultAccessor, usePrevious, lastIndexOf };
|
package/esm/utils-1574ad8b.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
type SavedStyle = {
|
|
2
|
-
value: string;
|
|
3
|
-
key: string;
|
|
4
|
-
el: HTMLElement;
|
|
5
|
-
};
|
|
6
|
-
type RestoreStyle = {
|
|
7
|
-
container: HTMLElement;
|
|
8
|
-
modals: number;
|
|
9
|
-
styles: SavedStyle[];
|
|
10
|
-
};
|
|
11
|
-
declare class ModalStore {
|
|
12
|
-
private readonly restoreStyles;
|
|
13
|
-
constructor();
|
|
14
|
-
getRestoreStyles: () => RestoreStyle[];
|
|
15
|
-
}
|
|
16
|
-
declare const getModalStore: () => ModalStore;
|
|
17
|
-
declare class GlobalStore {
|
|
18
|
-
private readonly modalStore;
|
|
19
|
-
constructor();
|
|
20
|
-
getModalStore: () => ModalStore;
|
|
21
|
-
}
|
|
22
|
-
declare function isScrolledToTop(target: HTMLElement): boolean;
|
|
23
|
-
declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
24
|
-
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
25
|
-
declare const getScrollbarSize: () => number;
|
|
26
|
-
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
27
|
-
declare const handleContainer: (container?: HTMLElement) => void;
|
|
28
|
-
export type { SavedStyle };
|
|
29
|
-
export { getModalStore, GlobalStore, isScrolledToTop, isScrolledToBottom, hasScrollbar, getScrollbarSize, restoreContainerStyles, handleContainer };
|
package/hook-8abfea97.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectProps, OptionShape } from "./typings-0f4b9bed";
|
|
3
|
-
type UseSelectWithApplyProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Список выбранных пунктов
|
|
6
|
-
*/
|
|
7
|
-
selected: BaseSelectProps['selected'];
|
|
8
|
-
/**
|
|
9
|
-
* Список вариантов выбора
|
|
10
|
-
*/
|
|
11
|
-
options: BaseSelectProps['options'];
|
|
12
|
-
/**
|
|
13
|
-
* Обработчик выбора
|
|
14
|
-
*/
|
|
15
|
-
onChange: BaseSelectProps['onChange'];
|
|
16
|
-
/**
|
|
17
|
-
* Компонент выпадающего меню
|
|
18
|
-
*/
|
|
19
|
-
OptionsList?: BaseSelectProps['OptionsList'];
|
|
20
|
-
/**
|
|
21
|
-
* Пропсы, которые будут прокинуты в компонент списка
|
|
22
|
-
*/
|
|
23
|
-
optionsListProps?: BaseSelectProps['optionsListProps'];
|
|
24
|
-
/**
|
|
25
|
-
* Включает отображение поиска
|
|
26
|
-
*/
|
|
27
|
-
showSearch?: BaseSelectProps['showSearch'];
|
|
28
|
-
/**
|
|
29
|
-
* Настройки поиска
|
|
30
|
-
*/
|
|
31
|
-
searchProps?: BaseSelectProps['searchProps'];
|
|
32
|
-
/**
|
|
33
|
-
* Показывать кнопку очистки
|
|
34
|
-
*/
|
|
35
|
-
showClear?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Показывать пункт "Выбрать все"
|
|
38
|
-
*/
|
|
39
|
-
showSelectAll?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Показывать пункт "Выбрать все" в заголовке списка
|
|
42
|
-
*/
|
|
43
|
-
showHeaderWithSelectAll?: boolean;
|
|
44
|
-
};
|
|
45
|
-
declare const SELECT_ALL_KEY = "select_all";
|
|
46
|
-
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
|
|
47
|
-
OptionsList: import("react").ForwardRefExoticComponent<import("./typings-0f4b9bed").OptionsListProps & {
|
|
48
|
-
showClear?: boolean | undefined;
|
|
49
|
-
onClose?: (() => void) | undefined; /**
|
|
50
|
-
* Компонент выпадающего меню
|
|
51
|
-
*/
|
|
52
|
-
selectedDraft?: OptionShape[] | undefined;
|
|
53
|
-
OptionsList?: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
54
|
-
Footer?: import("react").FC<import("./Component-0f4b9bed").FooterProps> | undefined;
|
|
55
|
-
Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
|
|
56
|
-
headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
|
|
57
|
-
showHeaderWithSelectAll?: boolean | undefined;
|
|
58
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
59
|
-
optionsListProps: {
|
|
60
|
-
OptionsList: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
61
|
-
showClear: boolean;
|
|
62
|
-
onClear: () => void;
|
|
63
|
-
onApply: () => void;
|
|
64
|
-
onClose: () => void;
|
|
65
|
-
selectedDraft: OptionShape[];
|
|
66
|
-
showHeaderWithSelectAll: boolean;
|
|
67
|
-
headerProps: {
|
|
68
|
-
indeterminate: boolean;
|
|
69
|
-
checked: boolean;
|
|
70
|
-
onChange: () => void;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
allowUnselect: boolean;
|
|
74
|
-
multiple: boolean;
|
|
75
|
-
options: (OptionShape | import("./typings-0f4b9bed").GroupShape | {
|
|
76
|
-
key: string;
|
|
77
|
-
content: string;
|
|
78
|
-
})[];
|
|
79
|
-
onChange: (payload: import("./typings-0f4b9bed").BaseSelectChangePayload) => void;
|
|
80
|
-
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
81
|
-
showSearch: boolean | undefined;
|
|
82
|
-
searchProps: {
|
|
83
|
-
value: string;
|
|
84
|
-
onChange: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
85
|
-
componentProps?: import("@alfalab/core-components-input").InputProps | undefined;
|
|
86
|
-
accessor?: ((option: OptionShape) => string) | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
};
|
|
89
|
-
export * from "./Component-0f4b9bed";
|
|
90
|
-
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
package/index-136acbb1.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FC, ReactNode } from "react";
|
|
3
|
-
/**
|
|
4
|
-
* Набор констант для z-index соответствующих классов компонентов.
|
|
5
|
-
* Значения выбраны по приоритету.
|
|
6
|
-
*/
|
|
7
|
-
declare const stackingOrder: {
|
|
8
|
-
FOCUSED: number;
|
|
9
|
-
DEFAULT: number;
|
|
10
|
-
POPOVER: number;
|
|
11
|
-
MODAL: number;
|
|
12
|
-
TOAST: number;
|
|
13
|
-
};
|
|
14
|
-
declare const StackingContext: import("react").Context<number>;
|
|
15
|
-
type StackProps = {
|
|
16
|
-
/**
|
|
17
|
-
* Render prop, в который передается функция.
|
|
18
|
-
* Функция принимает аргумент со значением z-index из текущего контекста.
|
|
19
|
-
*/
|
|
20
|
-
children: (value: number) => ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Исходное значение для z-index.
|
|
23
|
-
* @default 5
|
|
24
|
-
*/
|
|
25
|
-
value?: number;
|
|
26
|
-
};
|
|
27
|
-
declare const Stack: FC<StackProps>;
|
|
28
|
-
export { stackingOrder, StackingContext, StackProps, Stack };
|
package/index-72dda473.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type BackgroundColorType = 'accent' | 'info' | 'attention-muted' | 'positive-muted' | 'negative-muted' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'quaternary' | 'quaternary-inverted' | 'specialbg-component' | 'specialbg-component-inverted' | 'specialbg-primary-grouped' | 'specialbg-secondary-grouped' | 'specialbg-tertiary-grouped' | 'specialbg-secondary-transparent' | 'specialbg-secondary-transparent-inverted' | 'specialbg-tertiary-transparent' | 'specialbg-tertiary-transparent-inverted';
|
|
2
|
-
type BorderColorType = 'accent' | 'key' | 'key-inverted' | 'link' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'underline' | 'underline-inverted' | 'graphic-attention' | 'graphic-link' | 'graphic-negative' | 'graphic-positive' | 'specialbg-secondary-transparent' | 'specialbg-secondary-transparent-inverted' | 'specialbg-tertiary-transparent' | 'specialbg-tertiary-transparent-inverted';
|
|
3
|
-
type GraphicColorType = 'accent' | 'link' | 'attention' | 'positive' | 'negative' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'quaternary' | 'quaternary-inverted' | 'static-light' | 'static-accent' | 'static-dark';
|
|
4
|
-
type ShadowType = 'shadow-xs' | 'shadow-s' | 'shadow-m' | 'shadow-l' | 'shadow-xl' | 'shadow-xs-hard' | 'shadow-s-hard' | 'shadow-m-hard' | 'shadow-l-hard' | 'shadow-xl-hard' | 'shadow-xs-up' | 'shadow-s-up' | 'shadow-m-up' | 'shadow-l-up' | 'shadow-xl-up' | 'shadow-xs-hard-up' | 'shadow-s-hard-up' | 'shadow-m-hard-up' | 'shadow-l-hard-up' | 'shadow-xl-hard-up';
|
|
5
|
-
type GapType = '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl';
|
|
6
|
-
type PaddingType = number | string | {
|
|
7
|
-
top?: number;
|
|
8
|
-
right?: number;
|
|
9
|
-
bottom?: number;
|
|
10
|
-
left?: number;
|
|
11
|
-
};
|
|
12
|
-
export { BackgroundColorType, BorderColorType, GraphicColorType, ShadowType, GapType, PaddingType };
|
package/index-bdb4c6b9.d.ts
DELETED
package/index-c76d6398.d.ts
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/* eslint-disable complexity */
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { ReactNode, ButtonHTMLAttributes, ElementType, AnchorHTMLAttributes, ReactElement } from "react";
|
|
5
|
-
import { ButtonProps } from "@alfalab/core-components-button";
|
|
6
|
-
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
|
-
/**
|
|
8
|
-
* Вид компонента
|
|
9
|
-
*/
|
|
10
|
-
view: "desktop" | "mobile";
|
|
11
|
-
/**
|
|
12
|
-
* Дополнительный класс
|
|
13
|
-
*/
|
|
14
|
-
className?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Позиция крестика
|
|
17
|
-
*/
|
|
18
|
-
align?: "left" | "right";
|
|
19
|
-
/**
|
|
20
|
-
* Фиксирует крестик
|
|
21
|
-
*/
|
|
22
|
-
sticky?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Иконка
|
|
25
|
-
*/
|
|
26
|
-
icon?: ElementType;
|
|
27
|
-
/**
|
|
28
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
29
|
-
*/
|
|
30
|
-
dataTestId?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Коллбэк закрытия.
|
|
33
|
-
*/
|
|
34
|
-
onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
|
|
35
|
-
}
|
|
36
|
-
type NavigationBarProps = {
|
|
37
|
-
/**
|
|
38
|
-
* Контент шапки
|
|
39
|
-
*/
|
|
40
|
-
children?: ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* Заголовок шапки
|
|
43
|
-
*/
|
|
44
|
-
title?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Подзаголовок (доступен только в мобильной версии)
|
|
47
|
-
*/
|
|
48
|
-
subtitle?: ReactNode;
|
|
49
|
-
/**
|
|
50
|
-
* Размер заголовка (compact доступен только в мобильной версии)
|
|
51
|
-
*/
|
|
52
|
-
titleSize?: "default" | "compact";
|
|
53
|
-
/**
|
|
54
|
-
* Доп. класс для аддонов
|
|
55
|
-
*/
|
|
56
|
-
addonClassName?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Слот слева
|
|
59
|
-
*/
|
|
60
|
-
leftAddons?: ReactNode;
|
|
61
|
-
/**
|
|
62
|
-
* Слот справа
|
|
63
|
-
*/
|
|
64
|
-
rightAddons?: ReactNode;
|
|
65
|
-
/**
|
|
66
|
-
* Дополнительный класс для closer
|
|
67
|
-
*/
|
|
68
|
-
closerClassName?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Слот снизу
|
|
71
|
-
*/
|
|
72
|
-
bottomAddons?: ReactNode;
|
|
73
|
-
/**
|
|
74
|
-
* Наличие компонента крестика
|
|
75
|
-
*/
|
|
76
|
-
hasCloser?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Наличие кнопки "Назад"
|
|
79
|
-
*/
|
|
80
|
-
hasBackButton?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Дополнительный класс для правого аддона
|
|
83
|
-
*/
|
|
84
|
-
backButtonClassName?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Дополнительный класс
|
|
87
|
-
*/
|
|
88
|
-
className?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Дополнительный класс для контента
|
|
91
|
-
*/
|
|
92
|
-
contentClassName?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Дополнительный класс для нижнего аддона
|
|
95
|
-
*/
|
|
96
|
-
bottomAddonsClassName?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Выравнивание заголовка
|
|
99
|
-
*/
|
|
100
|
-
align?: "left" | "center";
|
|
101
|
-
/**
|
|
102
|
-
* Обрезать ли заголовок
|
|
103
|
-
*/
|
|
104
|
-
trim?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Фиксирует шапку
|
|
107
|
-
*/
|
|
108
|
-
sticky?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
111
|
-
*/
|
|
112
|
-
dataTestId?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Фоновое изображение
|
|
115
|
-
*/
|
|
116
|
-
imageUrl?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Иконка closer.
|
|
119
|
-
*/
|
|
120
|
-
closerIcon?: React.ElementType;
|
|
121
|
-
/**
|
|
122
|
-
* Обработчик закрытия
|
|
123
|
-
*/
|
|
124
|
-
onClose?: CloserProps["onClose"];
|
|
125
|
-
/**
|
|
126
|
-
* обработчик клика по кнопке "назад"
|
|
127
|
-
*/
|
|
128
|
-
onBack?: () => void;
|
|
129
|
-
/**
|
|
130
|
-
* Вид шапки - мобильный или десктоп
|
|
131
|
-
*/
|
|
132
|
-
view: "desktop" | "mobile";
|
|
133
|
-
/**
|
|
134
|
-
* Ссылка на родительскую ноду overflow: auto
|
|
135
|
-
*/
|
|
136
|
-
scrollableParentRef?: React.RefObject<HTMLDivElement>;
|
|
137
|
-
};
|
|
138
|
-
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
139
|
-
type IconButtonProps = {
|
|
140
|
-
/**
|
|
141
|
-
* Компонент иконки
|
|
142
|
-
*/
|
|
143
|
-
icon: ElementType<{
|
|
144
|
-
className?: string;
|
|
145
|
-
}> | ReactElement;
|
|
146
|
-
/**
|
|
147
|
-
* Тип кнопки
|
|
148
|
-
*/
|
|
149
|
-
view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
|
|
150
|
-
/**
|
|
151
|
-
* Размер компонента
|
|
152
|
-
*/
|
|
153
|
-
size?: "xxs" | "xs" | "s";
|
|
154
|
-
/**
|
|
155
|
-
* Дополнительный класс
|
|
156
|
-
*/
|
|
157
|
-
className?: string;
|
|
158
|
-
/**
|
|
159
|
-
* Выравнивание иконки
|
|
160
|
-
* @default 'center'
|
|
161
|
-
*/
|
|
162
|
-
alignIcon?: "left" | "center" | "right";
|
|
163
|
-
/**
|
|
164
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
165
|
-
*/
|
|
166
|
-
dataTestId?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Набор цветов для компонента
|
|
169
|
-
*/
|
|
170
|
-
colors?: "default" | "inverted";
|
|
171
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "Component" | "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
|
|
172
|
-
declare const IconButton: React.ForwardRefExoticComponent<{
|
|
173
|
-
icon: ElementType<{
|
|
174
|
-
className?: string;
|
|
175
|
-
}> | ReactElement;
|
|
176
|
-
view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
|
|
177
|
-
size?: "s" | "xs" | "xxs" | undefined;
|
|
178
|
-
className?: string | undefined;
|
|
179
|
-
alignIcon?: "center" | "right" | "left" | undefined;
|
|
180
|
-
dataTestId?: string | undefined;
|
|
181
|
-
colors?: "default" | "inverted" | undefined;
|
|
182
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
183
|
-
export { NavigationBar, IconButtonProps, IconButton };
|
|
184
|
-
export * from "./Component-69921c40";
|
|
185
|
-
export type { NavigationBarProps };
|
package/index-ebda875c.d.ts
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react-transition-group" />
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { HTMLAttributes, ReactNode } from "react";
|
|
5
|
-
type StyleColors = {
|
|
6
|
-
default: {
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
};
|
|
9
|
-
inverted: {
|
|
10
|
-
[key: string]: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
14
|
-
/**
|
|
15
|
-
* Растягивает компонент на ширину контейнера
|
|
16
|
-
*/
|
|
17
|
-
block?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Размер компонента
|
|
20
|
-
*/
|
|
21
|
-
size?: "s" | "m" | "l" | "xl";
|
|
22
|
-
/**
|
|
23
|
-
* Набор цветов для компонента
|
|
24
|
-
*/
|
|
25
|
-
colors?: "default" | "inverted";
|
|
26
|
-
/**
|
|
27
|
-
* Заблокированное состояние
|
|
28
|
-
*/
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Cостояние только для чтения
|
|
32
|
-
*/
|
|
33
|
-
readOnly?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Заполненное состояние
|
|
36
|
-
*/
|
|
37
|
-
filled?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Выбранное (фокус) состояние
|
|
40
|
-
*/
|
|
41
|
-
focused?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Отображение ошибки
|
|
44
|
-
*/
|
|
45
|
-
error?: ReactNode | boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Текст подсказки
|
|
48
|
-
*/
|
|
49
|
-
hint?: ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* Лейбл компонента
|
|
52
|
-
*/
|
|
53
|
-
label?: ReactNode;
|
|
54
|
-
/**
|
|
55
|
-
* Вид лейбла внутри / снаружи
|
|
56
|
-
*/
|
|
57
|
-
labelView?: "inner" | "outer";
|
|
58
|
-
/**
|
|
59
|
-
* Слот слева
|
|
60
|
-
*/
|
|
61
|
-
leftAddons?: ReactNode;
|
|
62
|
-
/**
|
|
63
|
-
* Слот справа
|
|
64
|
-
*/
|
|
65
|
-
rightAddons?: ReactNode;
|
|
66
|
-
/**
|
|
67
|
-
* Слот под полем
|
|
68
|
-
*/
|
|
69
|
-
bottomAddons?: ReactNode;
|
|
70
|
-
/**
|
|
71
|
-
* Дополнительный класс
|
|
72
|
-
*/
|
|
73
|
-
className?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Дополнительный класс для поля
|
|
76
|
-
*/
|
|
77
|
-
fieldClassName?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Дополнительный класс для поля
|
|
80
|
-
*/
|
|
81
|
-
inputWrapperClassName?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Дополнительный класс для лейбла
|
|
84
|
-
*/
|
|
85
|
-
labelClassName?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Дополнительный класс для аддонов
|
|
88
|
-
*/
|
|
89
|
-
addonsClassName?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Свойства для обертки левых аддонов
|
|
92
|
-
*/
|
|
93
|
-
leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
94
|
-
/**
|
|
95
|
-
* Свойства для обертки правых аддонов
|
|
96
|
-
*/
|
|
97
|
-
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
98
|
-
/**
|
|
99
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
100
|
-
*/
|
|
101
|
-
dataTestId?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Компонент поля (инпут, textarea и пр.)
|
|
104
|
-
*/
|
|
105
|
-
children?: ReactNode;
|
|
106
|
-
/**
|
|
107
|
-
* Основные стили компонента.
|
|
108
|
-
*/
|
|
109
|
-
styles: {
|
|
110
|
-
[key: string]: string;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* Стили компонента для default и inverted режима.
|
|
114
|
-
*/
|
|
115
|
-
colorStyles?: StyleColors;
|
|
116
|
-
};
|
|
117
|
-
declare const BaseFormControl: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
118
|
-
block?: boolean | undefined;
|
|
119
|
-
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
120
|
-
colors?: "default" | "inverted" | undefined;
|
|
121
|
-
disabled?: boolean | undefined;
|
|
122
|
-
readOnly?: boolean | undefined;
|
|
123
|
-
filled?: boolean | undefined;
|
|
124
|
-
focused?: boolean | undefined;
|
|
125
|
-
error?: ReactNode | boolean;
|
|
126
|
-
hint?: ReactNode;
|
|
127
|
-
label?: ReactNode;
|
|
128
|
-
labelView?: "inner" | "outer" | undefined;
|
|
129
|
-
leftAddons?: ReactNode;
|
|
130
|
-
rightAddons?: ReactNode;
|
|
131
|
-
bottomAddons?: ReactNode;
|
|
132
|
-
className?: string | undefined;
|
|
133
|
-
fieldClassName?: string | undefined;
|
|
134
|
-
inputWrapperClassName?: string | undefined;
|
|
135
|
-
labelClassName?: string | undefined;
|
|
136
|
-
addonsClassName?: string | undefined;
|
|
137
|
-
leftAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
138
|
-
rightAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
139
|
-
dataTestId?: string | undefined;
|
|
140
|
-
children?: ReactNode;
|
|
141
|
-
styles: {
|
|
142
|
-
[key: string]: string;
|
|
143
|
-
};
|
|
144
|
-
colorStyles?: StyleColors | undefined;
|
|
145
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
146
|
-
export { StyleColors, BaseFormControlProps, BaseFormControl };
|
package/index-f12ee135.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FC, ReactNode, RefObject } from "react";
|
|
4
|
-
import { BottomSheetProps } from "./types-72dda473";
|
|
5
|
-
import { NavigationBarProps } from "./index-c76d6398";
|
|
6
|
-
import { SwipeableHandlers } from "react-swipeable";
|
|
7
|
-
import { BackdropProps } from "./index-ebda875c";
|
|
8
|
-
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const TIMEOUT = 500;
|
|
10
|
-
declare const SWIPE_VELOCITY = 0.4;
|
|
11
|
-
declare const MARKER_HEIGHT = 24;
|
|
12
|
-
declare const CLOSE_OFFSET = 0.2;
|
|
13
|
-
declare const SCROLL_OFFSET = 1;
|
|
14
|
-
declare const HEADER_OFFSET = 24;
|
|
15
|
-
declare const convertPercentToNumber: (value: string | number, fullHeight: number, headerOffset?: number) => number;
|
|
16
|
-
type FooterProps = {
|
|
17
|
-
/**
|
|
18
|
-
* Контент футера
|
|
19
|
-
*/
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Фиксирует футер
|
|
23
|
-
*/
|
|
24
|
-
sticky?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Дополнительный класс
|
|
27
|
-
*/
|
|
28
|
-
className?: string;
|
|
29
|
-
};
|
|
30
|
-
declare const Footer: FC<FooterProps>;
|
|
31
|
-
type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
|
|
32
|
-
headerRef: RefObject<HTMLDivElement>;
|
|
33
|
-
headerOffset: number;
|
|
34
|
-
};
|
|
35
|
-
declare const Header: FC<HeaderProps>;
|
|
36
|
-
type SwipeableBackdropProps = BackdropProps & {
|
|
37
|
-
/**
|
|
38
|
-
* Прозрачность бэкдропа
|
|
39
|
-
*/
|
|
40
|
-
opacity?: number;
|
|
41
|
-
/**
|
|
42
|
-
* Обработчики свайпа
|
|
43
|
-
*/
|
|
44
|
-
handlers?: SwipeableHandlers;
|
|
45
|
-
/**
|
|
46
|
-
* Время анимации opacity
|
|
47
|
-
*/
|
|
48
|
-
opacityTimeout?: number;
|
|
49
|
-
};
|
|
50
|
-
declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
|
|
51
|
-
export { BottomSheet, TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, CLOSE_OFFSET, SCROLL_OFFSET, HEADER_OFFSET, convertPercentToNumber, FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop };
|
|
52
|
-
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-72dda473";
|
package/mobile-89f0cb07.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { CommonButtonProps } from "./typings-89f0cb07";
|
|
4
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
|
-
export { ButtonMobile };
|
|
6
|
-
export type { CommonButtonProps as ButtonMobileProps } from "./typings-89f0cb07";
|
package/mobile-96988a65.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
-
type FormControlMobileProps = Omit<BaseFormControlProps, "styles" | "colorStyles">;
|
|
5
|
-
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { FormControlMobileProps, FormControlMobile };
|