@alfalab/core-components-table 2.2.42 → 2.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-5e1b8383.d.ts +5 -0
- package/Component-63dec22f.d.ts +167 -0
- package/Component-89a3cf4c.d.ts +6 -0
- package/Component-bdb4c6b9.d.ts +12 -0
- package/Component-e81c389f.d.ts +5 -0
- package/Component-ebda875c.d.ts +12 -0
- package/Component.desktop-63dec22f.d.ts +6 -0
- package/Component.desktop-785df74d.d.ts +6 -0
- package/Component.mobile-d7e9f69d.d.ts +6 -0
- package/Component.mobile-ebda875c.d.ts +6 -0
- package/Component.responsive-785df74d.d.ts +26 -0
- package/Context-bdb4c6b9.d.ts +4 -0
- package/ResponsiveContext-baf4875b.d.ts +5 -0
- package/component-89a3cf4c.d.ts +44 -0
- package/component.js +1 -1
- package/components/index.js +1 -1
- package/components/pagination/Component.js +3 -3
- package/components/pagination/index.css +8 -8
- package/components/pagination/index.js +1 -1
- package/components/pagination/select-field/index.css +4 -4
- package/components/pagination/select-field/index.js +1 -1
- package/components/table/Component.js +1 -1
- package/components/table/index.css +7 -7
- package/components/tbody/Component.js +1 -1
- package/components/tbody/index.css +2 -2
- package/components/tcell/Component.js +1 -1
- package/components/tcell/index.css +6 -6
- package/components/texpandable-row/Component.js +1 -1
- package/components/texpandable-row/index.css +5 -5
- package/components/thead/Component.js +1 -1
- package/components/thead/index.css +6 -6
- package/components/thead-cell/Component.js +1 -1
- package/components/thead-cell/index.css +10 -9
- package/components/trow/Component.js +1 -1
- package/components/trow/index.css +8 -8
- package/components/tsortable-head-cell/Component.js +2 -2
- package/components/tsortable-head-cell/index.css +8 -10
- package/consts-f777ba1a.d.ts +2 -0
- package/cssm/Component-5e1b8383.d.ts +5 -0
- package/cssm/Component-63dec22f.d.ts +167 -0
- package/cssm/Component-89a3cf4c.d.ts +6 -0
- package/cssm/Component-bdb4c6b9.d.ts +12 -0
- package/cssm/Component-e81c389f.d.ts +5 -0
- package/cssm/Component-ebda875c.d.ts +12 -0
- package/cssm/Component.desktop-63dec22f.d.ts +6 -0
- package/cssm/Component.desktop-785df74d.d.ts +6 -0
- package/cssm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/cssm/Component.mobile-ebda875c.d.ts +6 -0
- package/cssm/Component.responsive-785df74d.d.ts +26 -0
- package/cssm/Context-bdb4c6b9.d.ts +4 -0
- package/cssm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/cssm/component-89a3cf4c.d.ts +44 -0
- package/cssm/component.js +1 -1
- package/cssm/components/index.js +1 -1
- package/cssm/components/pagination/Component.js +2 -2
- package/cssm/components/pagination/index.js +1 -1
- package/cssm/components/thead-cell/index.module.css +2 -1
- package/cssm/components/tsortable-head-cell/Component.js +1 -1
- package/cssm/components/tsortable-head-cell/index.module.css +0 -2
- package/cssm/consts-f777ba1a.d.ts +2 -0
- package/cssm/desktop-63dec22f.d.ts +6 -0
- package/cssm/hook-5e1b8383.d.ts +75 -0
- package/cssm/hook-ebda875c.d.ts +48 -0
- package/cssm/index-136acbb1.d.ts +28 -0
- package/cssm/index-3109f463.d.ts +62 -0
- package/cssm/index-425c8522.d.ts +6 -0
- package/cssm/index-89a3cf4c.d.ts +3 -0
- package/cssm/index-bdb4c6b9.d.ts +2 -0
- package/cssm/index-c44170fe.d.ts +21 -0
- package/cssm/index-e81c389f.d.ts +3 -0
- package/cssm/index-ebda875c.d.ts +81 -0
- package/cssm/index-f12ee135.d.ts +3 -0
- package/cssm/index.js +1 -1
- package/cssm/mobile-96988a65.d.ts +2 -0
- package/cssm/types-425c8522.d.ts +259 -0
- package/cssm/types-ebda875c.d.ts +113 -0
- package/cssm/typings-5e1b8383.d.ts +550 -0
- package/cssm/typings-9211a437.d.ts +95 -0
- package/cssm/typings-bdb4c6b9.d.ts +52 -0
- package/cssm/utils-1574ad8b.d.ts +29 -0
- package/cssm/utils-49cc3c24.d.ts +8 -0
- package/cssm/utils-5e1b8383.d.ts +38 -0
- package/desktop-63dec22f.d.ts +6 -0
- package/esm/Component-5e1b8383.d.ts +5 -0
- package/esm/Component-63dec22f.d.ts +167 -0
- package/esm/Component-89a3cf4c.d.ts +6 -0
- package/esm/Component-bdb4c6b9.d.ts +12 -0
- package/esm/Component-e81c389f.d.ts +5 -0
- package/esm/Component-ebda875c.d.ts +12 -0
- package/esm/Component.desktop-63dec22f.d.ts +6 -0
- package/esm/Component.desktop-785df74d.d.ts +6 -0
- package/esm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/esm/Component.mobile-ebda875c.d.ts +6 -0
- package/esm/Component.responsive-785df74d.d.ts +26 -0
- package/esm/Context-bdb4c6b9.d.ts +4 -0
- package/esm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/esm/component-89a3cf4c.d.ts +44 -0
- package/esm/component.js +1 -1
- package/esm/components/index.js +1 -1
- package/esm/components/pagination/Component.js +3 -3
- package/esm/components/pagination/index.css +8 -8
- package/esm/components/pagination/index.js +1 -1
- package/esm/components/pagination/select-field/index.css +4 -4
- package/esm/components/pagination/select-field/index.js +1 -1
- package/esm/components/table/Component.js +1 -1
- package/esm/components/table/index.css +7 -7
- package/esm/components/tbody/Component.js +1 -1
- package/esm/components/tbody/index.css +2 -2
- package/esm/components/tcell/Component.js +1 -1
- package/esm/components/tcell/index.css +6 -6
- package/esm/components/texpandable-row/Component.js +1 -1
- package/esm/components/texpandable-row/index.css +5 -5
- package/esm/components/thead/Component.js +1 -1
- package/esm/components/thead/index.css +6 -6
- package/esm/components/thead-cell/Component.js +1 -1
- package/esm/components/thead-cell/index.css +10 -9
- package/esm/components/trow/Component.js +1 -1
- package/esm/components/trow/index.css +8 -8
- package/esm/components/tsortable-head-cell/Component.js +2 -2
- package/esm/components/tsortable-head-cell/index.css +8 -10
- package/esm/consts-f777ba1a.d.ts +2 -0
- package/esm/desktop-63dec22f.d.ts +6 -0
- package/esm/hook-5e1b8383.d.ts +75 -0
- package/esm/hook-ebda875c.d.ts +48 -0
- package/esm/index-136acbb1.d.ts +28 -0
- package/esm/index-3109f463.d.ts +62 -0
- package/esm/index-425c8522.d.ts +6 -0
- package/esm/index-89a3cf4c.d.ts +3 -0
- package/esm/index-bdb4c6b9.d.ts +2 -0
- package/esm/index-c44170fe.d.ts +21 -0
- package/esm/index-e81c389f.d.ts +3 -0
- package/esm/index-ebda875c.d.ts +81 -0
- package/esm/index-f12ee135.d.ts +3 -0
- package/esm/index.js +1 -1
- package/esm/mobile-96988a65.d.ts +2 -0
- package/esm/types-425c8522.d.ts +259 -0
- package/esm/types-ebda875c.d.ts +113 -0
- package/esm/typings-5e1b8383.d.ts +550 -0
- package/esm/typings-9211a437.d.ts +95 -0
- package/esm/typings-bdb4c6b9.d.ts +52 -0
- package/esm/utils-1574ad8b.d.ts +29 -0
- package/esm/utils-49cc3c24.d.ts +8 -0
- package/esm/utils-5e1b8383.d.ts +38 -0
- package/hook-5e1b8383.d.ts +75 -0
- package/hook-ebda875c.d.ts +48 -0
- package/index-136acbb1.d.ts +28 -0
- package/index-3109f463.d.ts +62 -0
- package/index-425c8522.d.ts +6 -0
- package/index-89a3cf4c.d.ts +3 -0
- package/index-bdb4c6b9.d.ts +2 -0
- package/index-c44170fe.d.ts +21 -0
- package/index-e81c389f.d.ts +3 -0
- package/index-ebda875c.d.ts +81 -0
- package/index-f12ee135.d.ts +3 -0
- package/index.js +1 -1
- package/mobile-96988a65.d.ts +2 -0
- package/modern/Component-5e1b8383.d.ts +5 -0
- package/modern/Component-63dec22f.d.ts +167 -0
- package/modern/Component-89a3cf4c.d.ts +6 -0
- package/modern/Component-bdb4c6b9.d.ts +12 -0
- package/modern/Component-e81c389f.d.ts +5 -0
- package/modern/Component-ebda875c.d.ts +12 -0
- package/modern/Component.desktop-63dec22f.d.ts +6 -0
- package/modern/Component.desktop-785df74d.d.ts +6 -0
- package/modern/Component.mobile-d7e9f69d.d.ts +6 -0
- package/modern/Component.mobile-ebda875c.d.ts +6 -0
- package/modern/Component.responsive-785df74d.d.ts +26 -0
- package/modern/Context-bdb4c6b9.d.ts +4 -0
- package/modern/ResponsiveContext-baf4875b.d.ts +5 -0
- package/modern/component-89a3cf4c.d.ts +44 -0
- package/modern/component.js +1 -1
- package/modern/components/index.js +1 -1
- package/modern/components/pagination/Component.js +3 -3
- package/modern/components/pagination/index.css +8 -8
- package/modern/components/pagination/index.js +1 -1
- package/modern/components/pagination/select-field/index.css +4 -4
- package/modern/components/pagination/select-field/index.js +1 -1
- package/modern/components/table/Component.js +1 -1
- package/modern/components/table/index.css +7 -7
- package/modern/components/tbody/Component.js +1 -1
- package/modern/components/tbody/index.css +2 -2
- package/modern/components/tcell/Component.js +1 -1
- package/modern/components/tcell/index.css +6 -6
- package/modern/components/texpandable-row/Component.js +1 -1
- package/modern/components/texpandable-row/index.css +5 -5
- package/modern/components/thead/Component.js +1 -1
- package/modern/components/thead/index.css +6 -6
- package/modern/components/thead-cell/Component.js +1 -1
- package/modern/components/thead-cell/index.css +10 -9
- package/modern/components/trow/Component.js +1 -1
- package/modern/components/trow/index.css +8 -8
- package/modern/components/tsortable-head-cell/Component.js +2 -2
- package/modern/components/tsortable-head-cell/index.css +8 -10
- package/modern/consts-f777ba1a.d.ts +2 -0
- package/modern/desktop-63dec22f.d.ts +6 -0
- package/modern/hook-5e1b8383.d.ts +75 -0
- package/modern/hook-ebda875c.d.ts +48 -0
- package/modern/index-136acbb1.d.ts +28 -0
- package/modern/index-3109f463.d.ts +62 -0
- package/modern/index-425c8522.d.ts +6 -0
- package/modern/index-89a3cf4c.d.ts +3 -0
- package/modern/index-bdb4c6b9.d.ts +2 -0
- package/modern/index-c44170fe.d.ts +21 -0
- package/modern/index-e81c389f.d.ts +3 -0
- package/modern/index-ebda875c.d.ts +81 -0
- package/modern/index-f12ee135.d.ts +3 -0
- package/modern/index.js +1 -1
- package/modern/mobile-96988a65.d.ts +2 -0
- package/modern/types-425c8522.d.ts +259 -0
- package/modern/types-ebda875c.d.ts +113 -0
- package/modern/typings-5e1b8383.d.ts +550 -0
- package/modern/typings-9211a437.d.ts +95 -0
- package/modern/typings-bdb4c6b9.d.ts +52 -0
- package/modern/utils-1574ad8b.d.ts +29 -0
- package/modern/utils-49cc3c24.d.ts +8 -0
- package/modern/utils-5e1b8383.d.ts +38 -0
- package/package.json +4 -4
- package/src/component.tsx +22 -0
- package/src/components/index.ts +9 -0
- package/src/components/pagination/Component.tsx +104 -0
- package/src/components/pagination/index.module.css +38 -0
- package/src/components/pagination/index.ts +1 -0
- package/src/components/pagination/select-field/index.module.css +13 -0
- package/src/components/pagination/select-field/index.tsx +25 -0
- package/src/components/table/Component.tsx +109 -0
- package/src/components/table/index.module.css +35 -0
- package/src/components/table/index.ts +1 -0
- package/src/components/table/utils.ts +19 -0
- package/src/components/table-context/index.tsx +28 -0
- package/src/components/tbody/Component.tsx +22 -0
- package/src/components/tbody/index.module.css +6 -0
- package/src/components/tbody/index.ts +1 -0
- package/src/components/tcell/Component.tsx +56 -0
- package/src/components/tcell/index.module.css +35 -0
- package/src/components/tcell/index.ts +1 -0
- package/src/components/texpandable-row/Component.tsx +58 -0
- package/src/components/texpandable-row/index.module.css +25 -0
- package/src/components/texpandable-row/index.ts +1 -0
- package/src/components/thead/Component.tsx +33 -0
- package/src/components/thead/index.module.css +32 -0
- package/src/components/thead/index.ts +1 -0
- package/src/components/thead-cell/Component.tsx +67 -0
- package/src/components/thead-cell/index.module.css +47 -0
- package/src/components/thead-cell/index.ts +1 -0
- package/src/components/trow/Component.tsx +56 -0
- package/src/components/trow/index.module.css +35 -0
- package/src/components/trow/index.ts +1 -0
- package/src/components/tsortable-head-cell/Component.tsx +50 -0
- package/src/components/tsortable-head-cell/index.module.css +41 -0
- package/src/components/tsortable-head-cell/index.ts +1 -0
- package/src/components/tsortable-head-cell/sort-icon-asc.tsx +16 -0
- package/src/components/tsortable-head-cell/sort-icon-desc.tsx +16 -0
- package/src/components/tsortable-head-cell/sort-icon-unset.tsx +16 -0
- package/src/index.ts +1 -0
- package/src/typings.ts +8 -0
- package/src/utils.ts +6 -0
- package/types-425c8522.d.ts +259 -0
- package/types-ebda875c.d.ts +113 -0
- package/typings-5e1b8383.d.ts +550 -0
- package/typings-9211a437.d.ts +95 -0
- package/typings-bdb4c6b9.d.ts +52 -0
- package/utils-1574ad8b.d.ts +29 -0
- package/utils-49cc3c24.d.ts +8 -0
- package/utils-5e1b8383.d.ts +38 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./typings-5e1b8383";
|
|
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
|
+
showClear?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Показывать пункт "Выбрать все"
|
|
30
|
+
*/
|
|
31
|
+
showSelectAll?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Показывать пункт "Выбрать все" в заголовке списка
|
|
34
|
+
*/
|
|
35
|
+
showHeaderWithSelectAll?: boolean;
|
|
36
|
+
};
|
|
37
|
+
declare const SELECT_ALL_KEY = "select_all";
|
|
38
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, }: UseSelectWithApplyProps): {
|
|
39
|
+
OptionsList: import("react").ForwardRefExoticComponent<import("./typings-5e1b8383").OptionsListProps & {
|
|
40
|
+
showClear?: boolean | undefined;
|
|
41
|
+
onClose?: (() => void) | undefined;
|
|
42
|
+
selectedDraft?: OptionShape[] | undefined;
|
|
43
|
+
OptionsList?: import("react").FC<import("./typings-5e1b8383").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
44
|
+
Footer?: import("react").FC<import("./Component-ebda875c").FooterProps> | undefined;
|
|
45
|
+
Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
|
|
46
|
+
headerProps?: import("./Component-ebda875c").HeaderProps | undefined; /**
|
|
47
|
+
* Показывать кнопку очистки
|
|
48
|
+
*/
|
|
49
|
+
showHeaderWithSelectAll?: boolean | undefined;
|
|
50
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
|
+
optionsListProps: {
|
|
52
|
+
OptionsList: import("react").FC<import("./typings-5e1b8383").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
53
|
+
showClear: boolean;
|
|
54
|
+
onClear: () => void;
|
|
55
|
+
onApply: () => void;
|
|
56
|
+
onClose: () => void;
|
|
57
|
+
selectedDraft: OptionShape[];
|
|
58
|
+
showHeaderWithSelectAll: boolean;
|
|
59
|
+
headerProps: {
|
|
60
|
+
indeterminate: boolean;
|
|
61
|
+
checked: boolean;
|
|
62
|
+
onChange: () => void;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
allowUnselect: boolean;
|
|
66
|
+
multiple: boolean;
|
|
67
|
+
options: (OptionShape | import("./typings-5e1b8383").GroupShape | {
|
|
68
|
+
key: string;
|
|
69
|
+
content: string;
|
|
70
|
+
})[];
|
|
71
|
+
onChange: (payload: import("./typings-5e1b8383").BaseSelectChangePayload) => void;
|
|
72
|
+
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
73
|
+
};
|
|
74
|
+
export * from "./Component-ebda875c";
|
|
75
|
+
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -0,0 +1,48 @@
|
|
|
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 };
|
|
@@ -0,0 +1,28 @@
|
|
|
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 };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
type MqProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
5
|
+
*/
|
|
6
|
+
query?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Запрос на поддержку тач-событий
|
|
9
|
+
*/
|
|
10
|
+
touch?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Дочерние элементы.
|
|
13
|
+
*/
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Обработчик изменений в совпадении запросов
|
|
17
|
+
*/
|
|
18
|
+
onMatchChange?: (isMatched: boolean) => void;
|
|
19
|
+
};
|
|
20
|
+
declare const Mq: FC<MqProps>;
|
|
21
|
+
/**
|
|
22
|
+
* Хук для медиа запросов.
|
|
23
|
+
* @param query media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
24
|
+
* @param defaultValue Значение по-умолчанию.
|
|
25
|
+
*/
|
|
26
|
+
declare const useMatchMedia: (query: string, defaultValue?: boolean | (() => boolean)) => boolean[];
|
|
27
|
+
/**
|
|
28
|
+
* Возвращает MediaQueryList для заданного media-выражения.
|
|
29
|
+
*
|
|
30
|
+
* @param queryProp media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
31
|
+
*/
|
|
32
|
+
declare function getMatchMedia(queryProp: string): MediaQueryList;
|
|
33
|
+
/**
|
|
34
|
+
* Удаляет MediaQueryList.
|
|
35
|
+
*
|
|
36
|
+
* @param queryProp media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
37
|
+
*/
|
|
38
|
+
declare function releaseMatchMedia(queryProp: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* Возвращает `true`, если есть поддержка `Pointer Events`
|
|
41
|
+
*/
|
|
42
|
+
declare function isPointerEventsSupported(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Возвращает `true`, если есть поддержка `Touch Events`
|
|
45
|
+
*/
|
|
46
|
+
declare function isTouchSupported(): boolean;
|
|
47
|
+
declare const _exports: {
|
|
48
|
+
"--mobile-xs": string;
|
|
49
|
+
"--mobile-s": string;
|
|
50
|
+
"--mobile-m": string;
|
|
51
|
+
"--mobile-l": string;
|
|
52
|
+
"--mobile": string;
|
|
53
|
+
"--tablet-s": string;
|
|
54
|
+
"--tablet-m": string;
|
|
55
|
+
"--tablet": string;
|
|
56
|
+
"--desktop-s": string;
|
|
57
|
+
"--desktop-m": string;
|
|
58
|
+
"--desktop-l": string;
|
|
59
|
+
"--desktop-xl": string;
|
|
60
|
+
"--desktop": string;
|
|
61
|
+
};
|
|
62
|
+
export { _exports as default, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported };
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
export { BackgroundColorType, BorderColorType, GraphicColorType, ShadowType, GapType };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BaseInputProps } from "./index-ebda875c";
|
|
4
|
+
type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
12
|
+
*/
|
|
13
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
14
|
+
};
|
|
15
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
16
|
+
breakpoint?: number | undefined;
|
|
17
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
18
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
19
|
+
type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
|
|
20
|
+
declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
+
export { InputProps, Input, InputMobileProps, InputMobile };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { ButtonHTMLAttributes, ElementType, FC, 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
|
+
declare const Closer: FC<CloserProps>;
|
|
37
|
+
type IconButtonProps = {
|
|
38
|
+
/**
|
|
39
|
+
* Компонент иконки
|
|
40
|
+
*/
|
|
41
|
+
icon: ElementType<{
|
|
42
|
+
className?: string;
|
|
43
|
+
}> | ReactElement;
|
|
44
|
+
/**
|
|
45
|
+
* Тип кнопки
|
|
46
|
+
*/
|
|
47
|
+
view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
|
|
48
|
+
/**
|
|
49
|
+
* Размер компонента
|
|
50
|
+
*/
|
|
51
|
+
size?: "xxs" | "xs" | "s";
|
|
52
|
+
/**
|
|
53
|
+
* Дополнительный класс
|
|
54
|
+
*/
|
|
55
|
+
className?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Выравнивание иконки
|
|
58
|
+
* @default 'center'
|
|
59
|
+
*/
|
|
60
|
+
alignIcon?: "left" | "center" | "right";
|
|
61
|
+
/**
|
|
62
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
63
|
+
*/
|
|
64
|
+
dataTestId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Набор цветов для компонента
|
|
67
|
+
*/
|
|
68
|
+
colors?: "default" | "inverted";
|
|
69
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
|
|
70
|
+
declare const IconButton: React.ForwardRefExoticComponent<{
|
|
71
|
+
icon: ElementType<{
|
|
72
|
+
className?: string;
|
|
73
|
+
}> | ReactElement;
|
|
74
|
+
view?: "transparent" | "primary" | "secondary" | "tertiary" | "negative" | undefined;
|
|
75
|
+
size?: "s" | "xxs" | "xs" | undefined;
|
|
76
|
+
className?: string | undefined;
|
|
77
|
+
alignIcon?: "center" | "left" | "right" | undefined;
|
|
78
|
+
dataTestId?: string | undefined;
|
|
79
|
+
colors?: "default" | "inverted" | undefined;
|
|
80
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
81
|
+
export { CloserProps, Closer, IconButtonProps, IconButton };
|
package/modern/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import './utils.js';
|
|
|
8
8
|
import './components/thead/Component.js';
|
|
9
9
|
import './components/pagination/Component.js';
|
|
10
10
|
import '@alfalab/core-components-pagination/modern';
|
|
11
|
-
import '@alfalab/core-components-select/modern';
|
|
11
|
+
import '@alfalab/core-components-select/modern/desktop';
|
|
12
12
|
import './components/pagination/select-field/index.js';
|
|
13
13
|
import '@alfalab/core-components-button/modern';
|
|
14
14
|
import './components/thead-cell/Component.js';
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/// <reference types="react-transition-group" />
|
|
2
|
+
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
|
+
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
|
+
import { NavigationBarProps } from "./index-e81c389f";
|
|
6
|
+
import { BackgroundColorType } from "./index-425c8522";
|
|
7
|
+
type BottomSheetTitleAlign = 'center' | 'left';
|
|
8
|
+
type BottomSheetProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Контент
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Управление видимостью
|
|
15
|
+
*/
|
|
16
|
+
open: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Заголовок
|
|
19
|
+
*/
|
|
20
|
+
title?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Размер заголовка
|
|
23
|
+
*/
|
|
24
|
+
titleSize?: NavigationBarProps['titleSize'];
|
|
25
|
+
/**
|
|
26
|
+
* Подзаголовок.
|
|
27
|
+
*/
|
|
28
|
+
subtitle?: NavigationBarProps['subtitle'];
|
|
29
|
+
/**
|
|
30
|
+
* Кнопка действия (обычно, это кнопка закрытия)
|
|
31
|
+
*/
|
|
32
|
+
actionButton?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Нода, компонент или функция возвращающая их
|
|
35
|
+
*
|
|
36
|
+
* Контейнер к которому будут добавляться порталы
|
|
37
|
+
*/
|
|
38
|
+
container?: BaseModalProps['container'];
|
|
39
|
+
/**
|
|
40
|
+
* Рендерить ли в контейнер через портал.
|
|
41
|
+
*/
|
|
42
|
+
usePortal?: BaseModalProps['usePortal'];
|
|
43
|
+
/**
|
|
44
|
+
* Дополнительный класс
|
|
45
|
+
*/
|
|
46
|
+
className?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Дополнительный класс
|
|
49
|
+
*/
|
|
50
|
+
contentClassName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Дополнительные пропсы на контейнер.
|
|
53
|
+
*/
|
|
54
|
+
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
55
|
+
/**
|
|
56
|
+
* Дополнительный класс
|
|
57
|
+
*/
|
|
58
|
+
containerClassName?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Цвет фона
|
|
61
|
+
*/
|
|
62
|
+
backgroundColor?: Extract<BackgroundColorType, 'primary' | 'secondary'>;
|
|
63
|
+
/**
|
|
64
|
+
* Дополнительный класс шапки
|
|
65
|
+
*/
|
|
66
|
+
headerClassName?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Дополнительный класс футера
|
|
69
|
+
*/
|
|
70
|
+
footerClassName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Дополнительный класс для аддонов
|
|
73
|
+
*/
|
|
74
|
+
addonClassName?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Дополнительный класс для компонента крестика
|
|
77
|
+
*/
|
|
78
|
+
closerClassName?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Дополнительный класс для компонента стрелки назад
|
|
81
|
+
*/
|
|
82
|
+
backerClassName?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Дополнительный класс для компонента модального окна
|
|
85
|
+
*/
|
|
86
|
+
modalClassName?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Дополнительный класс для обертки модального окна
|
|
89
|
+
*/
|
|
90
|
+
modalWrapperClassName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
93
|
+
*/
|
|
94
|
+
transitionProps?: Partial<TransitionProps>;
|
|
95
|
+
/**
|
|
96
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
97
|
+
*/
|
|
98
|
+
dataTestId?: string;
|
|
99
|
+
/**
|
|
100
|
+
* z-index компонента
|
|
101
|
+
*/
|
|
102
|
+
zIndex?: number;
|
|
103
|
+
/**
|
|
104
|
+
* Будет ли свайпаться шторка
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
swipeable?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Будет ли свайпаться контент
|
|
110
|
+
*/
|
|
111
|
+
swipeableContent?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Порог свайпа
|
|
114
|
+
*/
|
|
115
|
+
swipeThreshold?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Слот слева
|
|
118
|
+
*/
|
|
119
|
+
leftAddons?: ReactNode;
|
|
120
|
+
/**
|
|
121
|
+
* Слот справа
|
|
122
|
+
*/
|
|
123
|
+
rightAddons?: ReactNode;
|
|
124
|
+
/**
|
|
125
|
+
* Слот снизу
|
|
126
|
+
*/
|
|
127
|
+
bottomAddons?: ReactNode;
|
|
128
|
+
/**
|
|
129
|
+
* Наличие компонента крестика
|
|
130
|
+
*/
|
|
131
|
+
hasCloser?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Наличие компонента стрелки назад
|
|
134
|
+
*/
|
|
135
|
+
hasBacker?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Выравнивание заголовка
|
|
138
|
+
*/
|
|
139
|
+
titleAlign?: BottomSheetTitleAlign;
|
|
140
|
+
/**
|
|
141
|
+
* Фиксирует шапку
|
|
142
|
+
*/
|
|
143
|
+
stickyHeader?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Фиксирует футер
|
|
146
|
+
*/
|
|
147
|
+
stickyFooter?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Высота шторки
|
|
150
|
+
*/
|
|
151
|
+
initialHeight?: 'default' | 'full';
|
|
152
|
+
/**
|
|
153
|
+
* Будет ли виден оверлэй
|
|
154
|
+
*/
|
|
155
|
+
hideOverlay?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Будет ли видна шапка
|
|
158
|
+
*/
|
|
159
|
+
hideHeader?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Будет ли обрезан заголовок
|
|
162
|
+
*/
|
|
163
|
+
trimTitle?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Запретить закрытие шторки кликом на оверлэй
|
|
166
|
+
*/
|
|
167
|
+
disableOverlayClick?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
170
|
+
*/
|
|
171
|
+
disableBlockingScroll?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Отключает ловушку фокуса
|
|
174
|
+
*/
|
|
175
|
+
disableFocusLock?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
178
|
+
* Не анимировать шторку при изменении размера вьюпорта
|
|
179
|
+
*/
|
|
180
|
+
ignoreScreenChange?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Свойства для Бэкдропа
|
|
183
|
+
*/
|
|
184
|
+
backdropProps?: BaseModalProps['backdropProps'];
|
|
185
|
+
/**
|
|
186
|
+
* Реф на контейнер, в котором происходит скролл
|
|
187
|
+
*/
|
|
188
|
+
scrollableContainerRef?: RefObject<HTMLElement>;
|
|
189
|
+
/**
|
|
190
|
+
* Реф для управления компонентом.
|
|
191
|
+
*/
|
|
192
|
+
bottomSheetInstanceRef?: RefObject<{
|
|
193
|
+
scrollToArea: (idx: number) => void;
|
|
194
|
+
}>;
|
|
195
|
+
/**
|
|
196
|
+
* Реф на контейнер, в котором находится шторка
|
|
197
|
+
*/
|
|
198
|
+
sheetContainerRef?: RefObject<HTMLElement>;
|
|
199
|
+
/**
|
|
200
|
+
* Магнитные области видимой высоты шторки.
|
|
201
|
+
* Можно использовать значения в пикселях - 10(число), либо в процентах - 10%(строка).
|
|
202
|
+
* По-умолчанию -[0, window.innerHeight - '24px']
|
|
203
|
+
* массив должен состоять минимум из 2 элементов
|
|
204
|
+
*/
|
|
205
|
+
magneticAreas?: Array<number | string>;
|
|
206
|
+
/**
|
|
207
|
+
* Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
|
|
208
|
+
*/
|
|
209
|
+
initialActiveAreaIndex?: number;
|
|
210
|
+
/**
|
|
211
|
+
* Отключает скролл контентной области.
|
|
212
|
+
*/
|
|
213
|
+
scrollLocked?: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Скрыть скроллбар внутри шторки
|
|
216
|
+
*/
|
|
217
|
+
hideScrollbar?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Верхний отступ шторки, если она открыта на максимальную высоту
|
|
220
|
+
*/
|
|
221
|
+
headerOffset?: number;
|
|
222
|
+
/**
|
|
223
|
+
* Содержимое bottom-sheet всегда в DOM
|
|
224
|
+
*/
|
|
225
|
+
keepMounted?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Отключает автоматический перевод фокуса на bottom-sheet при открытии
|
|
228
|
+
*/
|
|
229
|
+
disableAutoFocus?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
|
|
232
|
+
*/
|
|
233
|
+
disableRestoreFocus?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Отключает вызов `onClose` при нажатии Escape
|
|
236
|
+
*/
|
|
237
|
+
disableEscapeKeyDown?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Обработчик закрытия
|
|
240
|
+
*/
|
|
241
|
+
onClose: () => void;
|
|
242
|
+
/**
|
|
243
|
+
* Обработчик нажатия на стрелку назад
|
|
244
|
+
*/
|
|
245
|
+
onBack?: () => void;
|
|
246
|
+
/**
|
|
247
|
+
* Вызывается в начале анимации притягивания к одной из `magneticAreas`
|
|
248
|
+
*/
|
|
249
|
+
onMagnetize?: (index: number) => void;
|
|
250
|
+
/**
|
|
251
|
+
* Вызывается после окончания анимации притягивания
|
|
252
|
+
*/
|
|
253
|
+
onMagnetizeEnd?: () => void;
|
|
254
|
+
/**
|
|
255
|
+
* Вызывается при изменении положения шторки
|
|
256
|
+
*/
|
|
257
|
+
onOffsetChange?: (offset: number, percent: number) => void;
|
|
258
|
+
};
|
|
259
|
+
export { BottomSheetTitleAlign, BottomSheetProps };
|