@alfalab/core-components-custom-picker-button 2.0.14 → 2.1.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 +1 -1
- package/Component.mobile.d.ts +1 -1
- package/Component.responsive.d.ts +2 -2
- package/cssm/Component.desktop.d.ts +1 -1
- package/cssm/Component.mobile.d.ts +1 -1
- package/cssm/Component.responsive.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/cssm/field/Component.d.ts +2 -1
- package/{mobile.d.ts → cssm/mobile/index.d.ts} +1 -1
- package/cssm/{mobile.js → mobile/index.js} +3 -3
- package/{esm/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 +1 -1
- package/esm/Component.mobile.d.ts +1 -1
- package/esm/Component.responsive.d.ts +2 -2
- package/{modern/desktop.d.ts → esm/desktop/index.d.ts} +1 -1
- package/esm/{desktop.js → desktop/index.js} +2 -2
- package/esm/field/Component.d.ts +2 -1
- package/esm/field/Component.js +1 -1
- package/esm/field/index.css +5 -5
- package/{modern/mobile.d.ts → esm/mobile/index.d.ts} +1 -1
- package/esm/{mobile.js → mobile/index.js} +2 -2
- package/field/Component.d.ts +2 -1
- package/field/Component.js +1 -1
- package/field/index.css +5 -5
- package/{cssm/mobile.d.ts → mobile/index.d.ts} +1 -1
- package/{mobile.js → mobile/index.js} +2 -2
- package/mobile/package.json +3 -0
- package/modern/Component.desktop.d.ts +1 -1
- package/modern/Component.mobile.d.ts +1 -1
- package/modern/Component.responsive.d.ts +2 -2
- package/{desktop.d.ts → modern/desktop/index.d.ts} +1 -1
- package/modern/{desktop.js → desktop/index.js} +2 -2
- package/modern/field/Component.d.ts +2 -1
- package/modern/field/Component.js +1 -1
- package/modern/field/index.css +5 -5
- package/{esm/mobile.d.ts → modern/mobile/index.d.ts} +1 -1
- package/modern/{mobile.js → mobile/index.js} +2 -2
- package/package.json +4 -24
- package/src/{desktop.ts → desktop/index.ts} +1 -1
- package/src/desktop/package.json +3 -0
- package/src/{mobile.ts → mobile/index.ts} +1 -1
- package/src/mobile/package.json +3 -0
- package/Component-0f4b9bed.d.ts +0 -22
- package/Component-10db897e.d.ts +0 -72
- package/Component-4cd3936b.d.ts +0 -12
- package/Component-69921c40.d.ts +0 -184
- package/Component-72dda473.d.ts +0 -53
- package/Component-89f0cb07.d.ts +0 -38
- package/Component-8b2c2707.d.ts +0 -12
- package/Component-bdb4c6b9.d.ts +0 -12
- package/Component-c76d6398.d.ts +0 -5
- package/Component-ebda875c.d.ts +0 -12
- package/Component.desktop-0aa4e915.d.ts +0 -5
- package/Component.desktop-785df74d.d.ts +0 -6
- package/Component.mobile-16b1285a.d.ts +0 -5
- package/Component.mobile-d446ae02.d.ts +0 -23
- package/Component.mobile-d7e9f69d.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/component-10db897e.d.ts +0 -44
- package/consts-f777ba1a.d.ts +0 -2
- package/cssm/Component-0f4b9bed.d.ts +0 -22
- package/cssm/Component-10db897e.d.ts +0 -72
- package/cssm/Component-4cd3936b.d.ts +0 -12
- package/cssm/Component-69921c40.d.ts +0 -184
- package/cssm/Component-72dda473.d.ts +0 -53
- package/cssm/Component-89f0cb07.d.ts +0 -38
- package/cssm/Component-8b2c2707.d.ts +0 -12
- 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-0aa4e915.d.ts +0 -5
- package/cssm/Component.desktop-785df74d.d.ts +0 -6
- package/cssm/Component.mobile-16b1285a.d.ts +0 -5
- package/cssm/Component.mobile-d446ae02.d.ts +0 -23
- package/cssm/Component.mobile-d7e9f69d.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/component-10db897e.d.ts +0 -44
- package/cssm/consts-f777ba1a.d.ts +0 -2
- package/cssm/desktop-89f0cb07.d.ts +0 -2
- package/cssm/desktop-d446ae02.d.ts +0 -39
- package/cssm/hook-8abfea97.d.ts +0 -90
- package/cssm/index-10db897e.d.ts +0 -50
- package/cssm/index-136acbb1.d.ts +0 -28
- package/cssm/index-72dda473.d.ts +0 -12
- package/cssm/index-8b2c2707.d.ts +0 -6
- package/cssm/index-bdb4c6b9.d.ts +0 -2
- package/cssm/index-c44170fe.d.ts +0 -18
- package/cssm/index-c76d6398.d.ts +0 -2
- package/cssm/index-df3978fd.d.ts +0 -4
- package/cssm/index-ebda875c.d.ts +0 -37
- package/cssm/index-f12ee135.d.ts +0 -3
- package/cssm/mobile-89f0cb07.d.ts +0 -2
- package/cssm/mobile-d7e9f69d.d.ts +0 -2
- package/cssm/shared-4cd3936b.d.ts +0 -66
- package/cssm/types-1b036d4b.d.ts +0 -13
- package/cssm/types-1c79e231.d.ts +0 -113
- package/cssm/types-4480ac4f.d.ts +0 -3
- package/cssm/types-67a2d8af.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/cssm/utils-49cc3c24.d.ts +0 -8
- package/desktop-89f0cb07.d.ts +0 -2
- package/desktop-d446ae02.d.ts +0 -39
- package/esm/Component-0f4b9bed.d.ts +0 -22
- package/esm/Component-10db897e.d.ts +0 -72
- package/esm/Component-4cd3936b.d.ts +0 -12
- package/esm/Component-69921c40.d.ts +0 -184
- package/esm/Component-72dda473.d.ts +0 -53
- package/esm/Component-89f0cb07.d.ts +0 -38
- package/esm/Component-8b2c2707.d.ts +0 -12
- 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-0aa4e915.d.ts +0 -5
- package/esm/Component.desktop-785df74d.d.ts +0 -6
- package/esm/Component.mobile-16b1285a.d.ts +0 -5
- package/esm/Component.mobile-d446ae02.d.ts +0 -23
- package/esm/Component.mobile-d7e9f69d.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/component-10db897e.d.ts +0 -44
- package/esm/consts-f777ba1a.d.ts +0 -2
- package/esm/desktop-89f0cb07.d.ts +0 -2
- package/esm/desktop-d446ae02.d.ts +0 -39
- package/esm/hook-8abfea97.d.ts +0 -90
- package/esm/index-10db897e.d.ts +0 -50
- package/esm/index-136acbb1.d.ts +0 -28
- package/esm/index-72dda473.d.ts +0 -12
- package/esm/index-8b2c2707.d.ts +0 -6
- package/esm/index-bdb4c6b9.d.ts +0 -2
- package/esm/index-c44170fe.d.ts +0 -18
- package/esm/index-c76d6398.d.ts +0 -2
- package/esm/index-df3978fd.d.ts +0 -4
- package/esm/index-ebda875c.d.ts +0 -37
- package/esm/index-f12ee135.d.ts +0 -3
- package/esm/mobile-89f0cb07.d.ts +0 -2
- package/esm/mobile-d7e9f69d.d.ts +0 -2
- package/esm/shared-4cd3936b.d.ts +0 -66
- package/esm/types-1b036d4b.d.ts +0 -13
- package/esm/types-1c79e231.d.ts +0 -113
- package/esm/types-4480ac4f.d.ts +0 -3
- package/esm/types-67a2d8af.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/esm/utils-49cc3c24.d.ts +0 -8
- package/hook-8abfea97.d.ts +0 -90
- package/index-10db897e.d.ts +0 -50
- package/index-136acbb1.d.ts +0 -28
- package/index-72dda473.d.ts +0 -12
- package/index-8b2c2707.d.ts +0 -6
- package/index-bdb4c6b9.d.ts +0 -2
- package/index-c44170fe.d.ts +0 -18
- package/index-c76d6398.d.ts +0 -2
- package/index-df3978fd.d.ts +0 -4
- package/index-ebda875c.d.ts +0 -37
- package/index-f12ee135.d.ts +0 -3
- package/mobile-89f0cb07.d.ts +0 -2
- package/mobile-d7e9f69d.d.ts +0 -2
- package/modern/Component-0f4b9bed.d.ts +0 -22
- package/modern/Component-10db897e.d.ts +0 -72
- package/modern/Component-4cd3936b.d.ts +0 -12
- package/modern/Component-69921c40.d.ts +0 -184
- package/modern/Component-72dda473.d.ts +0 -53
- package/modern/Component-89f0cb07.d.ts +0 -38
- package/modern/Component-8b2c2707.d.ts +0 -12
- 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-0aa4e915.d.ts +0 -5
- package/modern/Component.desktop-785df74d.d.ts +0 -6
- package/modern/Component.mobile-16b1285a.d.ts +0 -5
- package/modern/Component.mobile-d446ae02.d.ts +0 -23
- package/modern/Component.mobile-d7e9f69d.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/component-10db897e.d.ts +0 -44
- package/modern/consts-f777ba1a.d.ts +0 -2
- package/modern/desktop-89f0cb07.d.ts +0 -2
- package/modern/desktop-d446ae02.d.ts +0 -39
- package/modern/hook-8abfea97.d.ts +0 -90
- package/modern/index-10db897e.d.ts +0 -50
- package/modern/index-136acbb1.d.ts +0 -28
- package/modern/index-72dda473.d.ts +0 -12
- package/modern/index-8b2c2707.d.ts +0 -6
- package/modern/index-bdb4c6b9.d.ts +0 -2
- package/modern/index-c44170fe.d.ts +0 -18
- package/modern/index-c76d6398.d.ts +0 -2
- package/modern/index-df3978fd.d.ts +0 -4
- package/modern/index-ebda875c.d.ts +0 -37
- package/modern/index-f12ee135.d.ts +0 -3
- package/modern/mobile-89f0cb07.d.ts +0 -2
- package/modern/mobile-d7e9f69d.d.ts +0 -2
- package/modern/shared-4cd3936b.d.ts +0 -66
- package/modern/types-1b036d4b.d.ts +0 -13
- package/modern/types-1c79e231.d.ts +0 -113
- package/modern/types-4480ac4f.d.ts +0 -3
- package/modern/types-67a2d8af.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/modern/utils-49cc3c24.d.ts +0 -8
- package/shared-4cd3936b.d.ts +0 -66
- package/types-1b036d4b.d.ts +0 -13
- package/types-1c79e231.d.ts +0 -113
- package/types-4480ac4f.d.ts +0 -3
- package/types-67a2d8af.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
- package/utils-49cc3c24.d.ts +0 -8
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FC, ReactNode, RefObject } from "react";
|
|
4
|
-
import { NavigationBarProps } from "./index-c76d6398";
|
|
5
|
-
import { SwipeableHandlers } from "react-swipeable";
|
|
6
|
-
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-67a2d8af";
|
|
8
|
-
type FooterProps = {
|
|
9
|
-
/**
|
|
10
|
-
* Контент футера
|
|
11
|
-
*/
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Фиксирует футер
|
|
15
|
-
*/
|
|
16
|
-
sticky?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Дополнительный класс
|
|
19
|
-
*/
|
|
20
|
-
className?: string;
|
|
21
|
-
};
|
|
22
|
-
declare const Footer: FC<FooterProps>;
|
|
23
|
-
type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
|
|
24
|
-
headerRef: RefObject<HTMLDivElement>;
|
|
25
|
-
headerOffset: number;
|
|
26
|
-
};
|
|
27
|
-
declare const Header: FC<HeaderProps>;
|
|
28
|
-
type SwipeableBackdropProps = BackdropProps & {
|
|
29
|
-
/**
|
|
30
|
-
* Прозрачность бэкдропа
|
|
31
|
-
*/
|
|
32
|
-
opacity?: number;
|
|
33
|
-
/**
|
|
34
|
-
* Обработчики свайпа
|
|
35
|
-
*/
|
|
36
|
-
handlers?: SwipeableHandlers;
|
|
37
|
-
/**
|
|
38
|
-
* Время анимации opacity
|
|
39
|
-
*/
|
|
40
|
-
opacityTimeout?: number;
|
|
41
|
-
};
|
|
42
|
-
declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
|
|
43
|
-
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
-
export { FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop, BottomSheet };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FC, SVGProps } from "react";
|
|
4
|
-
import { ButtonProps } from "./index-8b2c2707";
|
|
5
|
-
import { BaseSelectProps } from "./shared-4cd3936b";
|
|
6
|
-
import { PickerButtonSize, PickerButtonVariant } from "./types-4480ac4f";
|
|
7
|
-
type PickerButtonDesktopProps = Omit<BaseSelectProps, "placeholder" | "Arrow" | "autocomplete" | "size" | "onFocus" | "selected" | "closeOnSelect" | "multiple" | "hint" | "allowUnselect" | "options" | "searchProps" | "showSearch" | "Search"> & Pick<ButtonProps, "view" | "loading" | "leftAddons" | "rightAddons"> & {
|
|
8
|
-
options: Array<BaseSelectProps["options"][0] & {
|
|
9
|
-
/**
|
|
10
|
-
* Иконка, отображающаяся слева от текстового представления пункта
|
|
11
|
-
*/
|
|
12
|
-
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
13
|
-
}>;
|
|
14
|
-
/**
|
|
15
|
-
* Размер кнопки
|
|
16
|
-
*/
|
|
17
|
-
size?: PickerButtonSize;
|
|
18
|
-
/**
|
|
19
|
-
* Тип кнопки
|
|
20
|
-
*/
|
|
21
|
-
variant?: PickerButtonVariant;
|
|
22
|
-
/**
|
|
23
|
-
* Показывать стрелку
|
|
24
|
-
* @default true
|
|
25
|
-
*/
|
|
26
|
-
showArrow?: boolean;
|
|
27
|
-
};
|
|
28
|
-
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
|
|
29
|
-
options: Array<BaseSelectProps["options"][0] & {
|
|
30
|
-
/**
|
|
31
|
-
* Иконка, отображающаяся слева от текстового представления пункта
|
|
32
|
-
*/
|
|
33
|
-
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
34
|
-
}>;
|
|
35
|
-
size?: PickerButtonSize | undefined;
|
|
36
|
-
variant?: PickerButtonVariant | undefined;
|
|
37
|
-
showArrow?: boolean | undefined;
|
|
38
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
39
|
-
export { PickerButtonDesktopProps, PickerButtonDesktop };
|
package/cssm/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("./index-c44170fe").InputProps | undefined;
|
|
86
|
-
accessor?: ((option: OptionShape) => string) | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
};
|
|
89
|
-
export * from "./Component-0f4b9bed";
|
|
90
|
-
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
package/cssm/index-10db897e.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { PaddingType } from "./index-72dda473";
|
|
4
|
-
/* eslint-disable no-plusplus, no-param-reassign */
|
|
5
|
-
import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
|
|
6
|
-
declare const isClient: () => boolean;
|
|
7
|
-
declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
|
|
8
|
-
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
9
|
-
declare function easeInOutQuad(x: number): number;
|
|
10
|
-
declare const easingFns: {
|
|
11
|
-
easeInOutQuad: typeof easeInOutQuad;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Возвращает true, если значение равно null или undefined
|
|
15
|
-
*/
|
|
16
|
-
declare function isNil(value: unknown): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Выбор значения между min max границами
|
|
19
|
-
*/
|
|
20
|
-
declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
|
|
21
|
-
declare function noop(): void;
|
|
22
|
-
declare const fnUtils: {
|
|
23
|
-
clamp: typeof clamp;
|
|
24
|
-
noop: typeof noop;
|
|
25
|
-
isNil: typeof isNil;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Запрещает каретке становиться за указанные границы
|
|
29
|
-
*/
|
|
30
|
-
declare function caretGuard(guard: (value: string, selection: readonly [
|
|
31
|
-
from: number,
|
|
32
|
-
to: number
|
|
33
|
-
]) => [
|
|
34
|
-
from: number,
|
|
35
|
-
to: number
|
|
36
|
-
]): MaskitoPlugin;
|
|
37
|
-
/**
|
|
38
|
-
* Запрещает удалять указанный префикс
|
|
39
|
-
*/
|
|
40
|
-
declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
|
|
41
|
-
/**
|
|
42
|
-
* Препроцессор необходим для правильной вставки/автокомплита телефонного номера
|
|
43
|
-
*/
|
|
44
|
-
declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
|
|
45
|
-
declare const maskUtils: {
|
|
46
|
-
insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
|
|
47
|
-
prefixPostprocessor: typeof prefixPostprocessor;
|
|
48
|
-
caretGuard: typeof caretGuard;
|
|
49
|
-
};
|
|
50
|
-
export { isClient, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils };
|
package/cssm/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/cssm/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/cssm/index-8b2c2707.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ButtonProps } from "./typings-89f0cb07";
|
|
4
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
|
-
export { Button };
|
|
6
|
-
export type { ButtonProps } from "./typings-89f0cb07";
|
package/cssm/index-bdb4c6b9.d.ts
DELETED
package/cssm/index-c44170fe.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
4
|
-
/**
|
|
5
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
6
|
-
* @default 1024
|
|
7
|
-
*/
|
|
8
|
-
breakpoint?: number;
|
|
9
|
-
/**
|
|
10
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
11
|
-
*/
|
|
12
|
-
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
13
|
-
};
|
|
14
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
15
|
-
breakpoint?: number | undefined;
|
|
16
|
-
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
17
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export { FormControlProps, FormControl };
|
package/cssm/index-c76d6398.d.ts
DELETED
package/cssm/index-df3978fd.d.ts
DELETED
package/cssm/index-ebda875c.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react-transition-group" />
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { ButtonHTMLAttributes, ElementType, FC } from "react";
|
|
5
|
-
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
-
/**
|
|
7
|
-
* Вид компонента
|
|
8
|
-
*/
|
|
9
|
-
view: "desktop" | "mobile";
|
|
10
|
-
/**
|
|
11
|
-
* Дополнительный класс
|
|
12
|
-
*/
|
|
13
|
-
className?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Позиция крестика
|
|
16
|
-
*/
|
|
17
|
-
align?: "left" | "right";
|
|
18
|
-
/**
|
|
19
|
-
* Фиксирует крестик
|
|
20
|
-
*/
|
|
21
|
-
sticky?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Иконка
|
|
24
|
-
*/
|
|
25
|
-
icon?: ElementType;
|
|
26
|
-
/**
|
|
27
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
28
|
-
*/
|
|
29
|
-
dataTestId?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Коллбэк закрытия.
|
|
32
|
-
*/
|
|
33
|
-
onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
|
|
34
|
-
}
|
|
35
|
-
declare const Closer: FC<CloserProps>;
|
|
36
|
-
export { CloserProps, Closer };
|
|
37
|
-
export * from "./Component-8b2c2707";
|
package/cssm/index-f12ee135.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-0f4b9bed";
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
5
|
-
type useSelectWithLoadingProps = {
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
visibleOptions?: BaseSelectProps["visibleOptions"];
|
|
8
|
-
Option?: React.FC<OptionProps>;
|
|
9
|
-
};
|
|
10
|
-
declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
|
|
11
|
-
Option: (props: OptionProps) => React.JSX.Element;
|
|
12
|
-
options: OptionShape[];
|
|
13
|
-
} | null;
|
|
14
|
-
type OptionsFetcherResponse = {
|
|
15
|
-
options: OptionShape[];
|
|
16
|
-
hasMore: boolean;
|
|
17
|
-
};
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19
|
-
type useLazyLoadingProps = {
|
|
20
|
-
/** Количество элементов на "странице" */
|
|
21
|
-
limit?: number;
|
|
22
|
-
/** Начальный номер "страницы" */
|
|
23
|
-
initialOffset?: number;
|
|
24
|
-
/** Скелетон загружаемых элементов */
|
|
25
|
-
skeleton?: React.ReactNode;
|
|
26
|
-
/** Компонент пункта меню */
|
|
27
|
-
Option?: React.FC<OptionProps>;
|
|
28
|
-
/**
|
|
29
|
-
* Функция-загрузчик опций.
|
|
30
|
-
* @param offset - текущая страница
|
|
31
|
-
* @param limit - количество элементов на странице
|
|
32
|
-
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
33
|
-
* @returns Promise<{
|
|
34
|
-
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
35
|
-
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
36
|
-
* }>
|
|
37
|
-
*/
|
|
38
|
-
optionsFetcher(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
39
|
-
};
|
|
40
|
-
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
|
|
41
|
-
optionsProps: {
|
|
42
|
-
Option: (props: OptionProps) => React.JSX.Element;
|
|
43
|
-
options: OptionShape[];
|
|
44
|
-
optionsListProps: {
|
|
45
|
-
ref: React.RefObject<HTMLDivElement>;
|
|
46
|
-
inputProps: {
|
|
47
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
48
|
-
value: string;
|
|
49
|
-
}) => void;
|
|
50
|
-
value: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
onOpen: (payload: {
|
|
54
|
-
open?: boolean;
|
|
55
|
-
}) => void;
|
|
56
|
-
};
|
|
57
|
-
reset: () => void;
|
|
58
|
-
};
|
|
59
|
-
export * from "./index-ebda875c";
|
|
60
|
-
export * from "./Component-10db897e";
|
|
61
|
-
export * from "./Component-0f4b9bed";
|
|
62
|
-
export { useSelectWithLoading, useLazyLoading };
|
|
63
|
-
export * from "./hook-8abfea97";
|
|
64
|
-
export * from "./typings-0f4b9bed";
|
|
65
|
-
export * from "./utils-0f4b9bed";
|
|
66
|
-
export type { AdditionalMobileProps } from "./Component.mobile-f28cbba0";
|
package/cssm/types-1b036d4b.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
-
type WidthUnit = number | string;
|
|
3
|
-
type TextSkeletonProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Кол-во строк текста
|
|
6
|
-
*/
|
|
7
|
-
rows?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Ширина строки
|
|
10
|
-
*/
|
|
11
|
-
width?: WidthUnit | WidthUnit[];
|
|
12
|
-
};
|
|
13
|
-
export { TextElementType, TextSkeletonProps };
|
package/cssm/types-1c79e231.d.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import { CloserProps } from "./index-ebda875c";
|
|
5
|
-
type NavigationBarProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Контент шапки
|
|
8
|
-
*/
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Заголовок шапки
|
|
12
|
-
*/
|
|
13
|
-
title?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Подзаголовок (доступен только в мобильной версии)
|
|
16
|
-
*/
|
|
17
|
-
subtitle?: ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Размер заголовка (compact доступен только в мобильной версии)
|
|
20
|
-
*/
|
|
21
|
-
titleSize?: 'default' | 'compact';
|
|
22
|
-
/**
|
|
23
|
-
* Доп. класс для аддонов
|
|
24
|
-
*/
|
|
25
|
-
addonClassName?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Слот слева
|
|
28
|
-
*/
|
|
29
|
-
leftAddons?: ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Слот справа
|
|
32
|
-
*/
|
|
33
|
-
rightAddons?: ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Дополнительный класс для closer
|
|
36
|
-
*/
|
|
37
|
-
closerClassName?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Слот снизу
|
|
40
|
-
*/
|
|
41
|
-
bottomAddons?: ReactNode;
|
|
42
|
-
/**
|
|
43
|
-
* Наличие компонента крестика
|
|
44
|
-
*/
|
|
45
|
-
hasCloser?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Наличие кнопки "Назад"
|
|
48
|
-
*/
|
|
49
|
-
hasBackButton?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Дополнительный класс для правого аддона
|
|
52
|
-
*/
|
|
53
|
-
backButtonClassName?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Дополнительный класс
|
|
56
|
-
*/
|
|
57
|
-
className?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Дополнительный класс для контента
|
|
60
|
-
*/
|
|
61
|
-
contentClassName?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Дополнительный класс для нижнего аддона
|
|
64
|
-
*/
|
|
65
|
-
bottomAddonsClassName?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Выравнивание заголовка
|
|
68
|
-
*/
|
|
69
|
-
align?: 'left' | 'center';
|
|
70
|
-
/**
|
|
71
|
-
* Обрезать ли заголовок
|
|
72
|
-
*/
|
|
73
|
-
trim?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Фиксирует шапку
|
|
76
|
-
*/
|
|
77
|
-
sticky?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
80
|
-
*/
|
|
81
|
-
dataTestId?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Фоновое изображение
|
|
84
|
-
*/
|
|
85
|
-
imageUrl?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Иконка closer.
|
|
88
|
-
*/
|
|
89
|
-
closerIcon?: React.ElementType;
|
|
90
|
-
/**
|
|
91
|
-
* Обработчик закрытия
|
|
92
|
-
*/
|
|
93
|
-
onClose?: CloserProps['onClose'];
|
|
94
|
-
/**
|
|
95
|
-
* обработчик клика по кнопке "назад"
|
|
96
|
-
*/
|
|
97
|
-
onBack?: () => void;
|
|
98
|
-
/**
|
|
99
|
-
* Вид шапки - мобильный или десктоп
|
|
100
|
-
*/
|
|
101
|
-
view: 'desktop' | 'mobile';
|
|
102
|
-
/**
|
|
103
|
-
* Ссылка на родительскую ноду overflow: auto
|
|
104
|
-
*/
|
|
105
|
-
scrollableParentRef?: React.RefObject<HTMLDivElement>;
|
|
106
|
-
};
|
|
107
|
-
type ContentParams = {
|
|
108
|
-
extraClassName?: string;
|
|
109
|
-
wrapperRef?: React.RefObject<HTMLDivElement>;
|
|
110
|
-
style?: React.CSSProperties;
|
|
111
|
-
hidden?: boolean;
|
|
112
|
-
};
|
|
113
|
-
export { NavigationBarProps, ContentParams };
|
package/cssm/types-4480ac4f.d.ts
DELETED