@alfalab/core-components-picker-button 11.1.10 → 11.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-081223cb.d.ts +220 -0
- package/Component-0816e61d.d.ts +5 -0
- package/Component-72dda473.d.ts +53 -0
- package/Component-c44170fe.d.ts +281 -0
- package/Component.desktop-785df74d.d.ts +1 -1
- package/Component.desktop.d.ts +2 -2
- package/Component.desktop.js +3 -2
- package/Component.mobile-d7e9f69d.d.ts +1 -1
- package/Component.mobile.d.ts +4 -4
- package/Component.responsive.d.ts +7 -9
- package/Component.responsive.js +1 -0
- package/browser-a216f694.d.ts +6 -0
- package/cssm/Component-081223cb.d.ts +220 -0
- package/cssm/Component-0816e61d.d.ts +5 -0
- package/cssm/Component-c44170fe.d.ts +281 -0
- package/cssm/Component.desktop-785df74d.d.ts +1 -1
- package/cssm/Component.desktop.d.ts +2 -2
- package/cssm/Component.desktop.js +2 -1
- package/cssm/Component.mobile-d7e9f69d.d.ts +1 -1
- package/cssm/Component.mobile.d.ts +4 -4
- package/cssm/Component.responsive.d.ts +7 -9
- package/cssm/Component.responsive.js +1 -0
- package/cssm/browser-a216f694.d.ts +6 -0
- package/cssm/{desktop.d.ts → desktop/index.d.ts} +1 -1
- package/cssm/{desktop.js → desktop/index.js} +8 -7
- package/cssm/field/Component.d.ts +1 -1
- package/cssm/field/index.module.css +2 -2
- package/cssm/{index-10db897e.d.ts → index-081223cb.d.ts} +12 -1
- package/cssm/index-785df74d.d.ts +2 -0
- package/cssm/index-c44170fe.d.ts +17 -2
- package/cssm/index-ebda875c.d.ts +53 -192
- package/cssm/index.js +1 -0
- package/cssm/mobile/index.d.ts +2 -0
- package/cssm/{mobile.js → mobile/index.js} +6 -6
- package/cssm/option/Component.d.ts +2 -2
- package/cssm/shared/index.d.ts +2 -0
- package/cssm/{shared.js → shared/index.js} +1 -1
- package/cssm/typings-0816e61d.d.ts +1320 -0
- package/cssm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/cssm/useSkeleton-1b036d4b.d.ts +31 -3
- package/cssm/{utils-0f4b9bed.d.ts → utils-d2597f31.d.ts} +1 -1
- package/{esm/desktop.d.ts → desktop/index.d.ts} +1 -1
- package/{desktop.js → desktop/index.js} +5 -4
- package/desktop/package.json +3 -0
- package/esm/Component-081223cb.d.ts +220 -0
- package/esm/Component-0816e61d.d.ts +5 -0
- package/esm/Component-72dda473.d.ts +53 -0
- package/{cssm/Component-10db897e.d.ts → esm/Component-c44170fe.d.ts} +3 -18
- package/esm/Component.desktop-785df74d.d.ts +1 -1
- package/esm/Component.desktop.d.ts +2 -2
- package/esm/Component.desktop.js +3 -2
- package/esm/Component.mobile-d7e9f69d.d.ts +1 -1
- package/esm/Component.mobile.d.ts +4 -4
- package/esm/Component.responsive.d.ts +7 -9
- package/esm/Component.responsive.js +1 -0
- package/esm/browser-a216f694.d.ts +6 -0
- package/{modern/desktop.d.ts → esm/desktop/index.d.ts} +1 -1
- package/esm/{desktop.js → desktop/index.js} +5 -4
- package/esm/field/Component.d.ts +1 -1
- package/esm/field/Component.js +1 -1
- package/esm/field/index.css +8 -8
- package/{index-10db897e.d.ts → esm/index-081223cb.d.ts} +13 -2
- package/esm/index-785df74d.d.ts +2 -0
- package/esm/index-c44170fe.d.ts +17 -2
- package/esm/index-ebda875c.d.ts +1 -2
- package/esm/index.css +5 -5
- package/esm/index.js +1 -0
- package/esm/mobile/index.d.ts +2 -0
- package/esm/{mobile.js → mobile/index.js} +4 -4
- package/esm/option/Component.d.ts +2 -2
- package/esm/option/Component.js +1 -1
- package/esm/option/index.css +4 -4
- package/esm/shared/index.d.ts +2 -0
- package/esm/{shared.js → shared/index.js} +1 -1
- package/esm/typings-0816e61d.d.ts +1320 -0
- package/esm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/esm/useSkeleton-1b036d4b.d.ts +40 -0
- package/{modern/utils-0f4b9bed.d.ts → esm/utils-d2597f31.d.ts} +1 -1
- package/field/Component.d.ts +1 -1
- package/field/Component.js +1 -1
- package/field/index.css +8 -8
- package/{esm/index-10db897e.d.ts → index-081223cb.d.ts} +13 -2
- package/index-785df74d.d.ts +2 -0
- package/index-c44170fe.d.ts +17 -2
- package/index-ebda875c.d.ts +0 -1
- package/index.css +5 -5
- package/index.js +1 -0
- package/mobile/index.d.ts +2 -0
- package/{mobile.js → mobile/index.js} +4 -4
- package/mobile/package.json +3 -0
- package/modern/Component-081223cb.d.ts +220 -0
- package/modern/Component-0816e61d.d.ts +5 -0
- package/modern/Component-72dda473.d.ts +53 -0
- package/modern/Component-c44170fe.d.ts +281 -0
- package/modern/Component.desktop-785df74d.d.ts +1 -1
- package/modern/Component.desktop.d.ts +2 -2
- package/modern/Component.desktop.js +3 -2
- package/modern/Component.mobile-d7e9f69d.d.ts +1 -1
- package/modern/Component.mobile.d.ts +4 -4
- package/modern/Component.responsive.d.ts +7 -9
- package/modern/Component.responsive.js +1 -0
- package/modern/browser-a216f694.d.ts +6 -0
- package/{desktop.d.ts → modern/desktop/index.d.ts} +1 -1
- package/modern/{desktop.js → desktop/index.js} +5 -4
- package/modern/field/Component.d.ts +1 -1
- package/modern/field/Component.js +1 -1
- package/modern/field/index.css +8 -8
- package/modern/{index-10db897e.d.ts → index-081223cb.d.ts} +13 -2
- package/modern/index-785df74d.d.ts +2 -0
- package/modern/index-c44170fe.d.ts +17 -2
- package/modern/index-ebda875c.d.ts +0 -1
- package/modern/index.css +5 -5
- package/modern/index.js +1 -0
- package/modern/mobile/index.d.ts +2 -0
- package/modern/{mobile.js → mobile/index.js} +4 -4
- package/modern/option/Component.d.ts +2 -2
- package/modern/option/Component.js +1 -1
- package/modern/option/index.css +4 -4
- package/modern/shared/index.d.ts +2 -0
- package/modern/{shared.js → shared/index.js} +1 -1
- package/modern/typings-0816e61d.d.ts +1320 -0
- package/modern/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/modern/useSkeleton-1b036d4b.d.ts +40 -0
- package/{esm/utils-0f4b9bed.d.ts → modern/utils-d2597f31.d.ts} +1 -1
- package/option/Component.d.ts +2 -2
- package/option/Component.js +1 -1
- package/option/index.css +4 -4
- package/package.json +4 -3
- package/shared/index.d.ts +2 -0
- package/{shared.js → shared/index.js} +1 -1
- package/shared/package.json +3 -0
- package/src/Component.desktop.tsx +3 -0
- package/src/Component.mobile.tsx +3 -1
- package/src/Component.responsive.tsx +6 -6
- package/src/{desktop.ts → desktop/index.ts} +1 -1
- package/src/desktop/package.json +3 -0
- package/src/field/index.module.css +1 -1
- package/src/mobile/index.ts +1 -0
- package/src/mobile/package.json +3 -0
- package/src/shared/index.ts +2 -0
- package/src/shared/package.json +3 -0
- package/typings-0816e61d.d.ts +1320 -0
- package/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/useSkeleton-1b036d4b.d.ts +40 -0
- package/{utils-0f4b9bed.d.ts → utils-d2597f31.d.ts} +1 -1
- package/Component-0f4b9bed.d.ts +0 -72
- package/Component-10db897e.d.ts +0 -6
- package/Component-69921c40.d.ts +0 -184
- package/Component-bdb4c6b9.d.ts +0 -12
- package/Component-c76d6398.d.ts +0 -5
- package/Component-ebda875c.d.ts +0 -12
- 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/Component.responsive-3109f463.d.ts +0 -26
- package/Context-bdb4c6b9.d.ts +0 -4
- package/ResponsiveContext-baf4875b.d.ts +0 -5
- package/component-10db897e.d.ts +0 -44
- package/cssm/Component-0f4b9bed.d.ts +0 -5
- package/cssm/Component-aed0af6e.d.ts +0 -11
- package/cssm/Component-bdb4c6b9.d.ts +0 -12
- package/cssm/Component-c76d6398.d.ts +0 -5
- package/cssm/Component-ebda875c.d.ts +0 -101
- package/cssm/Component-f12ee135.d.ts +0 -72
- package/cssm/Component.mobile-96988a65.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.responsive-d7e9f69d.d.ts +0 -26
- package/cssm/Context-bdb4c6b9.d.ts +0 -4
- package/cssm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/cssm/desktop-69921c40.d.ts +0 -6
- package/cssm/hook-8abfea97.d.ts +0 -90
- package/cssm/hook-ebda875c.d.ts +0 -48
- package/cssm/index-136acbb1.d.ts +0 -28
- package/cssm/index-bdb4c6b9.d.ts +0 -180
- package/cssm/index-c76d6398.d.ts +0 -2
- package/cssm/index-f12ee135.d.ts +0 -324
- package/cssm/mobile.d.ts +0 -2
- package/cssm/shared-4cd3936b.d.ts +0 -7
- package/cssm/shared.d.ts +0 -2
- 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/desktop-69921c40.d.ts +0 -6
- package/esm/Component-0f4b9bed.d.ts +0 -72
- package/esm/Component-10db897e.d.ts +0 -6
- package/esm/Component-69921c40.d.ts +0 -184
- 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.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/Component.responsive-3109f463.d.ts +0 -26
- 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/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-bdb4c6b9.d.ts +0 -2
- package/esm/index-c76d6398.d.ts +0 -2
- package/esm/index-f12ee135.d.ts +0 -3
- package/esm/mobile-89f0cb07.d.ts +0 -6
- package/esm/mobile.d.ts +0 -2
- package/esm/shared-4cd3936b.d.ts +0 -65
- package/esm/shared.d.ts +0 -2
- 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-1574ad8b.d.ts +0 -29
- package/esm/utils-49cc3c24.d.ts +0 -8
- package/hook-8abfea97.d.ts +0 -90
- package/index-136acbb1.d.ts +0 -28
- package/index-bdb4c6b9.d.ts +0 -2
- package/index-c76d6398.d.ts +0 -2
- package/index-f12ee135.d.ts +0 -3
- package/mobile-89f0cb07.d.ts +0 -6
- package/mobile.d.ts +0 -2
- package/modern/Component-0f4b9bed.d.ts +0 -72
- package/modern/Component-10db897e.d.ts +0 -6
- package/modern/Component-69921c40.d.ts +0 -184
- 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.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/Component.responsive-3109f463.d.ts +0 -26
- 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/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-bdb4c6b9.d.ts +0 -2
- package/modern/index-c76d6398.d.ts +0 -2
- package/modern/index-f12ee135.d.ts +0 -3
- package/modern/mobile-89f0cb07.d.ts +0 -6
- package/modern/mobile.d.ts +0 -2
- package/modern/shared-4cd3936b.d.ts +0 -65
- package/modern/shared.d.ts +0 -2
- 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-1574ad8b.d.ts +0 -29
- package/modern/utils-49cc3c24.d.ts +0 -8
- package/shared-4cd3936b.d.ts +0 -65
- package/shared.d.ts +0 -2
- package/src/mobile.ts +0 -1
- package/src/shared.ts +0 -2
- 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-1574ad8b.d.ts +0 -29
- package/utils-49cc3c24.d.ts +0 -8
- /package/cssm/{mobile-96988a65.d.ts → index-d7e9f69d.d.ts} +0 -0
- /package/esm/{mobile-d7e9f69d.d.ts → index-d7e9f69d.d.ts} +0 -0
- /package/{mobile-d7e9f69d.d.ts → index-d7e9f69d.d.ts} +0 -0
- /package/modern/{mobile-d7e9f69d.d.ts → index-d7e9f69d.d.ts} +0 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
4
|
+
type StyleColors = {
|
|
5
|
+
default: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
inverted: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
13
|
+
/**
|
|
14
|
+
* Растягивает компонент на ширину контейнера
|
|
15
|
+
*/
|
|
16
|
+
block?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Размер компонента
|
|
19
|
+
*/
|
|
20
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
21
|
+
/**
|
|
22
|
+
* Набор цветов для компонента
|
|
23
|
+
*/
|
|
24
|
+
colors?: 'default' | 'inverted';
|
|
25
|
+
/**
|
|
26
|
+
* Заблокированное состояние
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Cостояние только для чтения
|
|
31
|
+
*/
|
|
32
|
+
readOnly?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Заполненное состояние
|
|
35
|
+
*/
|
|
36
|
+
filled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Выбранное (фокус) состояние
|
|
39
|
+
*/
|
|
40
|
+
focused?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Отображение ошибки
|
|
43
|
+
*/
|
|
44
|
+
error?: ReactNode | boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Текст подсказки
|
|
47
|
+
*/
|
|
48
|
+
hint?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Лейбл компонента
|
|
51
|
+
*/
|
|
52
|
+
label?: ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Вид лейбла внутри / снаружи
|
|
55
|
+
*/
|
|
56
|
+
labelView?: 'inner' | 'outer';
|
|
57
|
+
/**
|
|
58
|
+
* Слот слева
|
|
59
|
+
*/
|
|
60
|
+
leftAddons?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Слот справа
|
|
63
|
+
*/
|
|
64
|
+
rightAddons?: ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Слот под полем
|
|
67
|
+
*/
|
|
68
|
+
bottomAddons?: ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Дополнительный класс
|
|
71
|
+
*/
|
|
72
|
+
className?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Дополнительный класс для поля
|
|
75
|
+
*/
|
|
76
|
+
fieldClassName?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Дополнительный класс для поля
|
|
79
|
+
*/
|
|
80
|
+
inputWrapperClassName?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Дополнительный класс для лейбла
|
|
83
|
+
*/
|
|
84
|
+
labelClassName?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Дополнительный класс для аддонов
|
|
87
|
+
*/
|
|
88
|
+
addonsClassName?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Свойства для обертки левых аддонов
|
|
91
|
+
*/
|
|
92
|
+
leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
93
|
+
/**
|
|
94
|
+
* Свойства для обертки правых аддонов
|
|
95
|
+
*/
|
|
96
|
+
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
97
|
+
/**
|
|
98
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
99
|
+
*/
|
|
100
|
+
dataTestId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Компонент поля (инпут, textarea и пр.)
|
|
103
|
+
*/
|
|
104
|
+
children?: ReactNode;
|
|
105
|
+
/**
|
|
106
|
+
* Основные стили компонента.
|
|
107
|
+
*/
|
|
108
|
+
styles: {
|
|
109
|
+
[key: string]: string;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Стили компонента для default и inverted режима.
|
|
113
|
+
*/
|
|
114
|
+
colorStyles?: StyleColors;
|
|
115
|
+
};
|
|
116
|
+
declare const BaseFormControl: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
117
|
+
/**
|
|
118
|
+
* Растягивает компонент на ширину контейнера
|
|
119
|
+
*/
|
|
120
|
+
block?: boolean | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Размер компонента
|
|
123
|
+
*/
|
|
124
|
+
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Набор цветов для компонента
|
|
127
|
+
*/
|
|
128
|
+
colors?: "default" | "inverted" | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Заблокированное состояние
|
|
131
|
+
*/
|
|
132
|
+
disabled?: boolean | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Cостояние только для чтения
|
|
135
|
+
*/
|
|
136
|
+
readOnly?: boolean | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Заполненное состояние
|
|
139
|
+
*/
|
|
140
|
+
filled?: boolean | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* Выбранное (фокус) состояние
|
|
143
|
+
*/
|
|
144
|
+
focused?: boolean | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Отображение ошибки
|
|
147
|
+
*/
|
|
148
|
+
error?: ReactNode | boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Текст подсказки
|
|
151
|
+
*/
|
|
152
|
+
hint?: ReactNode;
|
|
153
|
+
/**
|
|
154
|
+
* Лейбл компонента
|
|
155
|
+
*/
|
|
156
|
+
label?: ReactNode;
|
|
157
|
+
/**
|
|
158
|
+
* Вид лейбла внутри / снаружи
|
|
159
|
+
*/
|
|
160
|
+
labelView?: "inner" | "outer" | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Слот слева
|
|
163
|
+
*/
|
|
164
|
+
leftAddons?: ReactNode;
|
|
165
|
+
/**
|
|
166
|
+
* Слот справа
|
|
167
|
+
*/
|
|
168
|
+
rightAddons?: ReactNode;
|
|
169
|
+
/**
|
|
170
|
+
* Слот под полем
|
|
171
|
+
*/
|
|
172
|
+
bottomAddons?: ReactNode;
|
|
173
|
+
/**
|
|
174
|
+
* Дополнительный класс
|
|
175
|
+
*/
|
|
176
|
+
className?: string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* Дополнительный класс для поля
|
|
179
|
+
*/
|
|
180
|
+
fieldClassName?: string | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* Дополнительный класс для поля
|
|
183
|
+
*/
|
|
184
|
+
inputWrapperClassName?: string | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* Дополнительный класс для лейбла
|
|
187
|
+
*/
|
|
188
|
+
labelClassName?: string | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* Дополнительный класс для аддонов
|
|
191
|
+
*/
|
|
192
|
+
addonsClassName?: string | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* Свойства для обертки левых аддонов
|
|
195
|
+
*/
|
|
196
|
+
leftAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Свойства для обертки правых аддонов
|
|
199
|
+
*/
|
|
200
|
+
rightAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
203
|
+
*/
|
|
204
|
+
dataTestId?: string | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Компонент поля (инпут, textarea и пр.)
|
|
207
|
+
*/
|
|
208
|
+
children?: ReactNode;
|
|
209
|
+
/**
|
|
210
|
+
* Основные стили компонента.
|
|
211
|
+
*/
|
|
212
|
+
styles: {
|
|
213
|
+
[key: string]: string;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Стили компонента для default и inverted режима.
|
|
217
|
+
*/
|
|
218
|
+
colorStyles?: StyleColors | undefined;
|
|
219
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
220
|
+
export { StyleColors, BaseFormControlProps, BaseFormControl };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BackgroundColorType, GraphicColorType } from "./index-72dda473";
|
|
4
|
+
type IconColorType = Extract<GraphicColorType, 'positive' | 'attention' | 'link' | 'negative' | 'tertiary' | 'secondary' | 'primary'>;
|
|
5
|
+
type BadgeProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Дополнительный класс
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Вид компонента
|
|
12
|
+
*/
|
|
13
|
+
view: 'icon' | 'count';
|
|
14
|
+
/**
|
|
15
|
+
* Размер компонента (только для view=icon)
|
|
16
|
+
* //deprecated(используйте height для view=count )
|
|
17
|
+
*/
|
|
18
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
19
|
+
/**
|
|
20
|
+
* Видимость белой обводки вокруг иконки
|
|
21
|
+
*/
|
|
22
|
+
visibleIconOutline?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Видимость цветной обводки вокруг иконки (только для view=icon)
|
|
25
|
+
*/
|
|
26
|
+
visibleColorOutline?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Контент компонента
|
|
29
|
+
*/
|
|
30
|
+
content?: React.ReactElement | number;
|
|
31
|
+
/**
|
|
32
|
+
* Высота компонента, min = 16; max = 48 (только для view=count)
|
|
33
|
+
*/
|
|
34
|
+
height?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Цветовое оформление бейджа при view='count'
|
|
37
|
+
*/
|
|
38
|
+
color?: Extract<BackgroundColorType, 'accent' | 'primary' | 'specialbg-secondary-transparent'>;
|
|
39
|
+
/**
|
|
40
|
+
* Цветовое оформление бейджа при view='icon'
|
|
41
|
+
*/
|
|
42
|
+
iconColor?: IconColorType;
|
|
43
|
+
/**
|
|
44
|
+
* Цвет подложки под иконкой
|
|
45
|
+
*/
|
|
46
|
+
iconUnderlayColor?: Extract<GraphicColorType, 'primary' | 'static-light'>;
|
|
47
|
+
/**
|
|
48
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
49
|
+
*/
|
|
50
|
+
dataTestId?: string;
|
|
51
|
+
};
|
|
52
|
+
declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
|
|
53
|
+
export { IconColorType, BadgeProps, Badge };
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ChangeEvent, ElementType, HTMLAttributes, InputHTMLAttributes, MouseEvent, ReactNode, RefAttributes } from "react";
|
|
4
|
+
import { FormControlProps } from "./index-c44170fe";
|
|
5
|
+
type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'onClick' | 'onMouseDown' | 'enterKeyHint'> & {
|
|
6
|
+
/**
|
|
7
|
+
* Значение поля ввода
|
|
8
|
+
*/
|
|
9
|
+
value?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Начальное значение поля
|
|
12
|
+
*/
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Растягивает компонент на ширину контейнера
|
|
16
|
+
*/
|
|
17
|
+
block?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Крестик для очистки поля
|
|
20
|
+
*/
|
|
21
|
+
clear?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Размер компонента
|
|
24
|
+
*/
|
|
25
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
26
|
+
/**
|
|
27
|
+
* Набор цветов для компонента
|
|
28
|
+
*/
|
|
29
|
+
colors?: 'default' | 'inverted';
|
|
30
|
+
/**
|
|
31
|
+
* Отображение ошибки
|
|
32
|
+
*/
|
|
33
|
+
error?: ReactNode | boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Отображение иконки успеха
|
|
36
|
+
*/
|
|
37
|
+
success?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Текст подсказки
|
|
40
|
+
*/
|
|
41
|
+
hint?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Лейбл компонента
|
|
44
|
+
*/
|
|
45
|
+
label?: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Вид лейбла внутри / снаружи
|
|
48
|
+
*/
|
|
49
|
+
labelView?: 'inner' | 'outer';
|
|
50
|
+
/**
|
|
51
|
+
* Атрибут type
|
|
52
|
+
*/
|
|
53
|
+
type?: 'number' | 'card' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
54
|
+
/**
|
|
55
|
+
* Ref для обертки input
|
|
56
|
+
*/
|
|
57
|
+
wrapperRef?: React.Ref<HTMLDivElement> | null;
|
|
58
|
+
/**
|
|
59
|
+
* Слот слева
|
|
60
|
+
*/
|
|
61
|
+
leftAddons?: React.ReactNode;
|
|
62
|
+
/**
|
|
63
|
+
* Слот справа
|
|
64
|
+
*/
|
|
65
|
+
rightAddons?: React.ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Свойства для обертки левых аддонов
|
|
68
|
+
*/
|
|
69
|
+
leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
70
|
+
/**
|
|
71
|
+
* Свойства для обертки правых аддонов
|
|
72
|
+
*/
|
|
73
|
+
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
74
|
+
/**
|
|
75
|
+
* Слот под инпутом
|
|
76
|
+
*/
|
|
77
|
+
bottomAddons?: React.ReactNode;
|
|
78
|
+
/**
|
|
79
|
+
* Дополнительный класс
|
|
80
|
+
*/
|
|
81
|
+
className?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Дополнительный класс для поля
|
|
84
|
+
*/
|
|
85
|
+
fieldClassName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Дополнительный класс инпута
|
|
88
|
+
*/
|
|
89
|
+
inputClassName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Дополнительный класс для лейбла
|
|
92
|
+
*/
|
|
93
|
+
labelClassName?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Дополнительный класс для аддонов
|
|
96
|
+
*/
|
|
97
|
+
addonsClassName?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Класс, который будет установлен при фокусе
|
|
100
|
+
*/
|
|
101
|
+
focusedClassName?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Класс, который будет установлен, если в поле есть значение
|
|
104
|
+
*/
|
|
105
|
+
filledClassName?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Обработчик поля ввода
|
|
108
|
+
*/
|
|
109
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, payload: {
|
|
110
|
+
value: string;
|
|
111
|
+
}) => void;
|
|
112
|
+
/**
|
|
113
|
+
* Обработчик нажатия на кнопку очистки
|
|
114
|
+
*/
|
|
115
|
+
onClear?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
116
|
+
/**
|
|
117
|
+
* Обработчик клика по полю
|
|
118
|
+
*/
|
|
119
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
120
|
+
/**
|
|
121
|
+
* Обработчик MouseDown по полю
|
|
122
|
+
*/
|
|
123
|
+
onMouseDown?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Обработчик MouseUp по полю
|
|
126
|
+
*/
|
|
127
|
+
onMouseUp?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
128
|
+
/**
|
|
129
|
+
* Компонент FormControl
|
|
130
|
+
*/
|
|
131
|
+
FormControlComponent?: ElementType<FormControlProps & RefAttributes<HTMLDivElement>>;
|
|
132
|
+
/**
|
|
133
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
134
|
+
*/
|
|
135
|
+
dataTestId?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Запрещает ввод с клавиатуры
|
|
138
|
+
*/
|
|
139
|
+
disableUserInput?: boolean;
|
|
140
|
+
};
|
|
141
|
+
declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "size" | "type" | "defaultValue" | "onChange" | "onClick" | "onMouseDown" | "enterKeyHint"> & {
|
|
142
|
+
/**
|
|
143
|
+
* Значение поля ввода
|
|
144
|
+
*/
|
|
145
|
+
value?: string | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* Начальное значение поля
|
|
148
|
+
*/
|
|
149
|
+
defaultValue?: string | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Растягивает компонент на ширину контейнера
|
|
152
|
+
*/
|
|
153
|
+
block?: boolean | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* Крестик для очистки поля
|
|
156
|
+
*/
|
|
157
|
+
clear?: boolean | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Размер компонента
|
|
160
|
+
*/
|
|
161
|
+
size?: "s" | "m" | "l" | "xl" | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Набор цветов для компонента
|
|
164
|
+
*/
|
|
165
|
+
colors?: "default" | "inverted" | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Отображение ошибки
|
|
168
|
+
*/
|
|
169
|
+
error?: ReactNode | boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Отображение иконки успеха
|
|
172
|
+
*/
|
|
173
|
+
success?: boolean | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Текст подсказки
|
|
176
|
+
*/
|
|
177
|
+
hint?: ReactNode;
|
|
178
|
+
/**
|
|
179
|
+
* Лейбл компонента
|
|
180
|
+
*/
|
|
181
|
+
label?: React.ReactNode;
|
|
182
|
+
/**
|
|
183
|
+
* Вид лейбла внутри / снаружи
|
|
184
|
+
*/
|
|
185
|
+
labelView?: "inner" | "outer" | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* Атрибут type
|
|
188
|
+
*/
|
|
189
|
+
type?: "number" | "text" | "tel" | "email" | "password" | "card" | "money" | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* Ref для обертки input
|
|
192
|
+
*/
|
|
193
|
+
wrapperRef?: React.Ref<HTMLDivElement> | undefined;
|
|
194
|
+
/**
|
|
195
|
+
* Слот слева
|
|
196
|
+
*/
|
|
197
|
+
leftAddons?: React.ReactNode;
|
|
198
|
+
/**
|
|
199
|
+
* Слот справа
|
|
200
|
+
*/
|
|
201
|
+
rightAddons?: React.ReactNode;
|
|
202
|
+
/**
|
|
203
|
+
* Свойства для обертки левых аддонов
|
|
204
|
+
*/
|
|
205
|
+
leftAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* Свойства для обертки правых аддонов
|
|
208
|
+
*/
|
|
209
|
+
rightAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Слот под инпутом
|
|
212
|
+
*/
|
|
213
|
+
bottomAddons?: React.ReactNode;
|
|
214
|
+
/**
|
|
215
|
+
* Дополнительный класс
|
|
216
|
+
*/
|
|
217
|
+
className?: string | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* Дополнительный класс для поля
|
|
220
|
+
*/
|
|
221
|
+
fieldClassName?: string | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* Дополнительный класс инпута
|
|
224
|
+
*/
|
|
225
|
+
inputClassName?: string | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* Дополнительный класс для лейбла
|
|
228
|
+
*/
|
|
229
|
+
labelClassName?: string | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* Дополнительный класс для аддонов
|
|
232
|
+
*/
|
|
233
|
+
addonsClassName?: string | undefined;
|
|
234
|
+
/**
|
|
235
|
+
* Класс, который будет установлен при фокусе
|
|
236
|
+
*/
|
|
237
|
+
focusedClassName?: string | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* Класс, который будет установлен, если в поле есть значение
|
|
240
|
+
*/
|
|
241
|
+
filledClassName?: string | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* Обработчик поля ввода
|
|
244
|
+
*/
|
|
245
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>, payload: {
|
|
246
|
+
value: string;
|
|
247
|
+
}) => void) | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Обработчик нажатия на кнопку очистки
|
|
250
|
+
*/
|
|
251
|
+
onClear?: ((event: MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
252
|
+
/**
|
|
253
|
+
* Обработчик клика по полю
|
|
254
|
+
*/
|
|
255
|
+
onClick?: ((event: MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
256
|
+
/**
|
|
257
|
+
* Обработчик MouseDown по полю
|
|
258
|
+
*/
|
|
259
|
+
onMouseDown?: ((event: MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
260
|
+
/**
|
|
261
|
+
* Обработчик MouseUp по полю
|
|
262
|
+
*/
|
|
263
|
+
onMouseUp?: ((event: MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
264
|
+
/**
|
|
265
|
+
* Компонент FormControl
|
|
266
|
+
*/
|
|
267
|
+
FormControlComponent?: React.ElementType<Omit<import("./index-c44170fe").BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
268
|
+
breakpoint?: number | undefined;
|
|
269
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
270
|
+
} & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
273
|
+
*/
|
|
274
|
+
dataTestId?: string | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* Запрещает ввод с клавиатуры
|
|
277
|
+
*/
|
|
278
|
+
disableUserInput?: boolean | undefined;
|
|
279
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
280
|
+
export * from "./Component-72dda473";
|
|
281
|
+
export { BaseInputProps, BaseInput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./
|
|
3
|
+
import { BaseFormControlProps } from "./index-c44170fe";
|
|
4
4
|
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
5
|
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export { FormControlDesktopProps, FormControlDesktop };
|
package/Component.desktop.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FC, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "@alfalab/core-components-button";
|
|
5
|
-
import { BaseSelectProps } from "
|
|
5
|
+
import { BaseSelectProps } from "@alfalab/core-components-select/shared";
|
|
6
6
|
import { PickerButtonSize, PickerButtonVariant } from "./types";
|
|
7
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
8
|
options: Array<BaseSelectProps['options'][0] & {
|
|
@@ -25,7 +25,7 @@ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' |
|
|
|
25
25
|
*/
|
|
26
26
|
showArrow?: boolean;
|
|
27
27
|
};
|
|
28
|
-
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "
|
|
28
|
+
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "options" | "hint" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
|
|
29
29
|
options: Array<BaseSelectProps['options'][0] & {
|
|
30
30
|
/**
|
|
31
31
|
* Иконка, отображающаяся слева от текстового представления пункта
|
package/Component.desktop.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
|
+
var coreComponentsPopover = require('@alfalab/core-components-popover');
|
|
8
9
|
var shared = require('@alfalab/core-components-select/shared');
|
|
9
10
|
var field_Component = require('./field/Component.js');
|
|
10
11
|
var option_Component = require('./option/Component.js');
|
|
@@ -20,7 +21,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
21
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
21
22
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
22
23
|
|
|
23
|
-
var styles = {"container":"picker-
|
|
24
|
+
var styles = {"container":"picker-button__container_1074s","optionsPopover":"picker-button__optionsPopover_1074s","sideGap":"picker-button__sideGap_1074s","option":"picker-button__option_1074s"};
|
|
24
25
|
require('./index.css')
|
|
25
26
|
|
|
26
27
|
var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
|
|
@@ -39,7 +40,7 @@ var PickerButtonDesktop = React.forwardRef(function (_a, ref) {
|
|
|
39
40
|
showArrow: showArrow,
|
|
40
41
|
breakpoint: 1,
|
|
41
42
|
};
|
|
42
|
-
return (React__default.default.createElement(shared.BaseSelect, tslib.__assign({}, restProps, { optionProps: { Checkmark: null }, ref: ref, Option: Option, Field: Field, size: size === 'm' ? 'm' : 's', fieldProps: tslib.__assign(tslib.__assign({}, fieldDefaultProps), fieldProps), Optgroup: Optgroup, OptionsList: OptionsList, className: cn__default.default(styles.container, className), popperClassName: cn__default.default('cc-picker-button', styles.optionsPopover, popperClassName, (_b = {},
|
|
43
|
+
return (React__default.default.createElement(shared.BaseSelect, tslib.__assign({}, restProps, { Popover: coreComponentsPopover.Popover, view: 'desktop', optionProps: { Checkmark: null }, ref: ref, Option: Option, Field: Field, size: size === 'm' ? 'm' : 's', fieldProps: tslib.__assign(tslib.__assign({}, fieldDefaultProps), fieldProps), Optgroup: Optgroup, OptionsList: OptionsList, className: cn__default.default(styles.container, className), popperClassName: cn__default.default('cc-picker-button', styles.optionsPopover, popperClassName, (_b = {},
|
|
43
44
|
_b[styles.sideGap] = isSideGap,
|
|
44
45
|
_b)), optionClassName: cn__default.default(styles.option, optionClassName), selected: [], closeOnSelect: true })));
|
|
45
46
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./
|
|
3
|
+
import { BaseFormControlProps } from "./index-c44170fe";
|
|
4
4
|
type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
5
|
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export { FormControlMobileProps, FormControlMobile };
|
package/Component.mobile.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AdditionalMobileProps } from "
|
|
4
|
-
import { PickerButtonDesktopProps } from "./desktop";
|
|
5
|
-
type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, 'OptionsList' | 'Checkmark' | 'onScroll'> & AdditionalMobileProps & {
|
|
3
|
+
import { AdditionalMobileProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
|
|
4
|
+
import { PickerButtonDesktopProps } from "./desktop/index";
|
|
5
|
+
type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, 'OptionsList' | 'Checkmark' | 'onScroll'> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
6
6
|
/**
|
|
7
7
|
* Контрольная точка для кнопки, с нее начинается desktop версия
|
|
8
8
|
* @default 1024
|
|
9
9
|
*/
|
|
10
10
|
breakpoint?: number;
|
|
11
11
|
};
|
|
12
|
-
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "
|
|
12
|
+
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "Checkmark" | "OptionsList"> & AdditionalMobileProps & BottomSheetSelectMobileProps & {
|
|
13
13
|
/**
|
|
14
14
|
* Контрольная точка для кнопки, с нее начинается desktop версия
|
|
15
15
|
* @default 1024
|