@alfalab/core-components-input-autocomplete 9.3.9 → 9.3.11
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-7ca84eff.d.ts +4 -270
- package/Component.mobile.js +1 -1
- package/autocomplete-field/Component.js +1 -1
- package/autocomplete-field/index.css +2 -2
- package/autocomplete-mobile-field/Component.js +1 -1
- package/autocomplete-mobile-field/index.css +8 -8
- package/cssm/Component-7ca84eff.d.ts +4 -270
- package/cssm/{getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
- package/cssm/index-7ca84eff.d.ts +10 -3
- package/cssm/index-bdb4c6b9.d.ts +2 -0
- package/cssm/index-e81c389f.d.ts +341 -0
- package/esm/Component-7ca84eff.d.ts +4 -270
- package/esm/Component.mobile.js +1 -1
- package/esm/autocomplete-field/Component.js +1 -1
- package/esm/autocomplete-field/index.css +2 -2
- package/esm/autocomplete-mobile-field/Component.js +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/esm/{getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
- package/esm/index-7ca84eff.d.ts +10 -3
- package/esm/index-bdb4c6b9.d.ts +2 -0
- package/esm/index-e81c389f.d.ts +341 -0
- package/esm/mobile.css +4 -4
- package/{getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
- package/index-7ca84eff.d.ts +10 -3
- package/index-bdb4c6b9.d.ts +2 -0
- package/index-e81c389f.d.ts +341 -0
- package/mobile.css +4 -4
- package/modern/Component-7ca84eff.d.ts +4 -270
- package/modern/Component.desktop.d.ts +4 -4
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.responsive.d.ts +4 -4
- package/modern/autocomplete-field/Component.js +1 -1
- package/modern/autocomplete-field/index.css +2 -2
- package/modern/autocomplete-mobile-field/Component.js +1 -1
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/modern/{getDataTestId-3fe0d3e6.d.ts → index-3885b0d7.d.ts} +2 -1
- package/modern/index-7ca84eff.d.ts +10 -3
- package/modern/index-bdb4c6b9.d.ts +2 -0
- package/modern/index-e81c389f.d.ts +341 -0
- package/modern/mobile.css +4 -4
- package/package.json +4 -4
package/Component-7ca84eff.d.ts
CHANGED
|
@@ -1,271 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { BottomSheetTitleAlign } from "./index-7ca84eff";
|
|
5
|
-
type IconButtonProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Компонент иконки
|
|
8
|
-
*/
|
|
9
|
-
icon: ElementType<{
|
|
10
|
-
className?: string;
|
|
11
|
-
}>;
|
|
12
|
-
/**
|
|
13
|
-
* Тип кнопки
|
|
14
|
-
*/
|
|
15
|
-
view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
|
|
16
|
-
/**
|
|
17
|
-
* Размер компонента
|
|
18
|
-
*/
|
|
19
|
-
size?: "xxs" | "xs" | "s";
|
|
20
|
-
/**
|
|
21
|
-
* Дополнительный класс
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
26
|
-
*/
|
|
27
|
-
dataTestId?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Набор цветов для компонента
|
|
30
|
-
*/
|
|
31
|
-
colors?: "default" | "inverted";
|
|
32
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
|
|
33
|
-
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
34
|
-
/**
|
|
35
|
-
* Дополнительный класс
|
|
36
|
-
*/
|
|
37
|
-
className?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Размер кнопки
|
|
40
|
-
*/
|
|
41
|
-
size?: IconButtonProps["size"];
|
|
42
|
-
/**
|
|
43
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
44
|
-
*/
|
|
45
|
-
dataTestId?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Иконка
|
|
48
|
-
*/
|
|
49
|
-
icon?: ElementType;
|
|
50
|
-
};
|
|
51
|
-
declare const Closer: React.FC<CloserProps>;
|
|
52
|
-
declare const colors: readonly [
|
|
53
|
-
"tertiary",
|
|
54
|
-
"disabled",
|
|
55
|
-
"accent",
|
|
56
|
-
"primary",
|
|
57
|
-
"attention",
|
|
58
|
-
"positive",
|
|
59
|
-
"secondary",
|
|
60
|
-
"tertiary-inverted",
|
|
61
|
-
"primary-inverted",
|
|
62
|
-
"secondary-inverted",
|
|
63
|
-
"link",
|
|
64
|
-
"negative"
|
|
65
|
-
];
|
|
66
|
-
type Color = (typeof colors)[number];
|
|
67
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
68
|
-
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
69
|
-
type TextBaseProps = {
|
|
70
|
-
/**
|
|
71
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
72
|
-
*/
|
|
73
|
-
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
74
|
-
/**
|
|
75
|
-
* Цвет текста
|
|
76
|
-
*/
|
|
77
|
-
color?: Color;
|
|
78
|
-
/**
|
|
79
|
-
* Толщина шрифта
|
|
80
|
-
*/
|
|
81
|
-
weight?: "regular" | "medium" | "bold";
|
|
82
|
-
/**
|
|
83
|
-
* Делает цифры моноширинными
|
|
84
|
-
*/
|
|
85
|
-
monospaceNumbers?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* HTML тег
|
|
88
|
-
*/
|
|
89
|
-
tag?: "span" | "div";
|
|
90
|
-
/**
|
|
91
|
-
* Css-класс для стилизации (native prop)
|
|
92
|
-
*/
|
|
93
|
-
className?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Id компонента для тестов
|
|
96
|
-
*/
|
|
97
|
-
dataTestId?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Контент (native prop)
|
|
100
|
-
*/
|
|
101
|
-
children?: React.ReactNode;
|
|
102
|
-
/**
|
|
103
|
-
* Добавляет отступы к тэгу 'p'
|
|
104
|
-
*/
|
|
105
|
-
defaultMargins?: never;
|
|
106
|
-
/**
|
|
107
|
-
* Количество строк (не поддерживает IE)
|
|
108
|
-
*/
|
|
109
|
-
rowLimit?: 1 | 2 | 3;
|
|
110
|
-
};
|
|
111
|
-
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
112
|
-
tag?: "p";
|
|
113
|
-
defaultMargins?: boolean;
|
|
114
|
-
};
|
|
115
|
-
type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
|
|
116
|
-
type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
|
|
117
|
-
type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
118
|
-
/**
|
|
119
|
-
* HTML тег
|
|
120
|
-
*/
|
|
121
|
-
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
122
|
-
/**
|
|
123
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
124
|
-
*/
|
|
125
|
-
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
126
|
-
/**
|
|
127
|
-
* Цвет текста
|
|
128
|
-
*/
|
|
129
|
-
color?: Color;
|
|
130
|
-
/**
|
|
131
|
-
* Толщина шрифта
|
|
132
|
-
*/
|
|
133
|
-
weight?: "regular" | "medium" | "bold";
|
|
134
|
-
/**
|
|
135
|
-
* Шрифт текста
|
|
136
|
-
*/
|
|
137
|
-
font?: "styrene" | "system";
|
|
138
|
-
/**
|
|
139
|
-
* Добавляет отступы
|
|
140
|
-
*/
|
|
141
|
-
defaultMargins?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* Css-класс для стилизации (native prop)
|
|
144
|
-
*/
|
|
145
|
-
className?: string;
|
|
146
|
-
/**
|
|
147
|
-
* Id компонента для тестов
|
|
148
|
-
*/
|
|
149
|
-
dataTestId?: string;
|
|
150
|
-
/**
|
|
151
|
-
* Контент (native prop)
|
|
152
|
-
*/
|
|
153
|
-
children?: React.ReactNode;
|
|
154
|
-
/**
|
|
155
|
-
* Количество строк (не поддерживает IE)
|
|
156
|
-
*/
|
|
157
|
-
rowLimit?: 1 | 2 | 3;
|
|
158
|
-
};
|
|
159
|
-
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
160
|
-
declare const Typography: {
|
|
161
|
-
Title: FC<TitleProps>;
|
|
162
|
-
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
163
|
-
TitleResponsive: FC<TitleProps>;
|
|
164
|
-
TitleMobile: FC<TitleMobileProps>;
|
|
165
|
-
};
|
|
166
|
-
declare const typographyPresets: {
|
|
167
|
-
mobile: {
|
|
168
|
-
list: {
|
|
169
|
-
text: {
|
|
170
|
-
primary: {
|
|
171
|
-
tag: string;
|
|
172
|
-
view: string;
|
|
173
|
-
};
|
|
174
|
-
secondary: {
|
|
175
|
-
tag: string;
|
|
176
|
-
color: string;
|
|
177
|
-
view: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
type BackerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
184
|
-
/**
|
|
185
|
-
* Дополнительный класс
|
|
186
|
-
*/
|
|
187
|
-
className?: string;
|
|
188
|
-
/**
|
|
189
|
-
* Размер кнопки
|
|
190
|
-
*/
|
|
191
|
-
size?: IconButtonProps["size"];
|
|
192
|
-
/**
|
|
193
|
-
* Иконка
|
|
194
|
-
*/
|
|
195
|
-
icon?: ElementType;
|
|
196
|
-
/**
|
|
197
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
198
|
-
*/
|
|
199
|
-
dataTestId?: string;
|
|
200
|
-
/**
|
|
201
|
-
* Обработчик нажатия
|
|
202
|
-
*/
|
|
203
|
-
onClick?: () => void;
|
|
204
|
-
};
|
|
205
|
-
declare const Backer: React.FC<BackerProps>;
|
|
206
|
-
declare const TitleResponsive: FC<TitleProps>;
|
|
207
|
-
type HeaderProps = {
|
|
208
|
-
/**
|
|
209
|
-
* Заголовок
|
|
210
|
-
*/
|
|
211
|
-
title?: ReactNode;
|
|
212
|
-
/**
|
|
213
|
-
* Дополнительный класс
|
|
214
|
-
*/
|
|
215
|
-
headerClassName?: string;
|
|
216
|
-
/**
|
|
217
|
-
* Дополнительный класс для аддонов
|
|
218
|
-
*/
|
|
219
|
-
addonClassName?: string;
|
|
220
|
-
/**
|
|
221
|
-
* Дополнительный класс для компонента крестика
|
|
222
|
-
*/
|
|
223
|
-
closerClassName?: string;
|
|
224
|
-
/**
|
|
225
|
-
* Дополнительный класс для компонента стрелки назад
|
|
226
|
-
*/
|
|
227
|
-
backerClassName?: string;
|
|
228
|
-
/**
|
|
229
|
-
* Слот слева
|
|
230
|
-
*/
|
|
231
|
-
leftAddons?: ReactNode;
|
|
232
|
-
/**
|
|
233
|
-
* Слот справа
|
|
234
|
-
*/
|
|
235
|
-
rightAddons?: ReactNode;
|
|
236
|
-
/**
|
|
237
|
-
* Слот снизу
|
|
238
|
-
*/
|
|
239
|
-
bottomAddons?: ReactNode;
|
|
240
|
-
/**
|
|
241
|
-
* Наличие компонента крестика
|
|
242
|
-
*/
|
|
243
|
-
hasCloser?: boolean;
|
|
244
|
-
/**
|
|
245
|
-
* Наличие компонента стрелки назад
|
|
246
|
-
*/
|
|
247
|
-
hasBacker?: boolean;
|
|
248
|
-
/**
|
|
249
|
-
* Выравнивание заголовка
|
|
250
|
-
*/
|
|
251
|
-
titleAlign?: BottomSheetTitleAlign;
|
|
252
|
-
/**
|
|
253
|
-
* Будет ли обрезан заголовок
|
|
254
|
-
*/
|
|
255
|
-
trimTitle?: boolean;
|
|
256
|
-
/**
|
|
257
|
-
* Фиксирует шапку
|
|
258
|
-
*/
|
|
259
|
-
sticky?: boolean;
|
|
260
|
-
/**
|
|
261
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
262
|
-
*/
|
|
263
|
-
dataTestId?: string;
|
|
264
|
-
/**
|
|
265
|
-
* Обработчик нажатия на стрелку назад
|
|
266
|
-
*/
|
|
267
|
-
onBack?: () => void;
|
|
268
|
-
};
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { NavigationBarProps } from "./index-e81c389f";
|
|
3
|
+
type HeaderProps = Omit<NavigationBarProps, 'view' | 'size'>;
|
|
269
4
|
declare const Header: FC<HeaderProps>;
|
|
270
|
-
export {
|
|
271
|
-
export type { TitleProps, TextProps, Color };
|
|
5
|
+
export { HeaderProps, Header };
|
package/Component.mobile.js
CHANGED
|
@@ -19,7 +19,7 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
|
19
19
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
20
20
|
var throttle__default = /*#__PURE__*/_interopDefaultCompat(throttle);
|
|
21
21
|
|
|
22
|
-
var styles = {"bottomSheetInput":"input-
|
|
22
|
+
var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_1t70i","footer":"input-autocomplete__footer_1t70i"};
|
|
23
23
|
require('./mobile.css')
|
|
24
24
|
|
|
25
25
|
var SELECTED = [];
|
|
@@ -12,7 +12,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
12
12
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"arrow":"input-
|
|
15
|
+
var styles = {"arrow":"input-autocomplete__arrow_1ywgm","error":"input-autocomplete__error_1ywgm"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var AutocompleteField = function (_a) {
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"input-
|
|
14
|
+
var styles = {"component":"input-autocomplete__component_1yixw","field":"input-autocomplete__field_1yixw","disabled":"input-autocomplete__disabled_1yixw","placeholder":"input-autocomplete__placeholder_1yixw","contentWrapper":"input-autocomplete__contentWrapper_1yixw","value":"input-autocomplete__value_1yixw","focusVisible":"input-autocomplete__focusVisible_1yixw"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1d79g */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #007aff;
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
} :root {
|
|
19
19
|
--focus-color: var(--color-light-border-link);
|
|
20
20
|
--disabled-cursor: not-allowed;
|
|
21
|
-
} .input-
|
|
21
|
+
} .input-autocomplete__component_1yixw {
|
|
22
22
|
width: 100%;
|
|
23
23
|
outline: none;
|
|
24
|
-
} .input-
|
|
24
|
+
} .input-autocomplete__field_1yixw:not(.input-autocomplete__disabled_1yixw) {
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
} .input-
|
|
26
|
+
} .input-autocomplete__disabled_1yixw {
|
|
27
27
|
cursor: var(--disabled-cursor);
|
|
28
|
-
} .input-
|
|
28
|
+
} .input-autocomplete__placeholder_1yixw {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
|
-
} .input-
|
|
30
|
+
} .input-autocomplete__contentWrapper_1yixw {
|
|
31
31
|
font-size: 16px;
|
|
32
32
|
line-height: 20px;
|
|
33
33
|
font-weight: 400;
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
text-overflow: ellipsis;
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
width: 100%;
|
|
39
|
-
} .input-
|
|
39
|
+
} .input-autocomplete__value_1yixw {
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
text-overflow: ellipsis;
|
|
42
42
|
text-align: left;
|
|
43
|
-
} .input-
|
|
43
|
+
} .input-autocomplete__focusVisible_1yixw {
|
|
44
44
|
outline: 2px solid var(--focus-color);
|
|
45
45
|
outline-offset: 2px;
|
|
46
46
|
}
|
|
@@ -1,271 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { BottomSheetTitleAlign } from "./index-7ca84eff";
|
|
5
|
-
type IconButtonProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Компонент иконки
|
|
8
|
-
*/
|
|
9
|
-
icon: ElementType<{
|
|
10
|
-
className?: string;
|
|
11
|
-
}>;
|
|
12
|
-
/**
|
|
13
|
-
* Тип кнопки
|
|
14
|
-
*/
|
|
15
|
-
view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
|
|
16
|
-
/**
|
|
17
|
-
* Размер компонента
|
|
18
|
-
*/
|
|
19
|
-
size?: "xxs" | "xs" | "s";
|
|
20
|
-
/**
|
|
21
|
-
* Дополнительный класс
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
26
|
-
*/
|
|
27
|
-
dataTestId?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Набор цветов для компонента
|
|
30
|
-
*/
|
|
31
|
-
colors?: "default" | "inverted";
|
|
32
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
|
|
33
|
-
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
34
|
-
/**
|
|
35
|
-
* Дополнительный класс
|
|
36
|
-
*/
|
|
37
|
-
className?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Размер кнопки
|
|
40
|
-
*/
|
|
41
|
-
size?: IconButtonProps["size"];
|
|
42
|
-
/**
|
|
43
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
44
|
-
*/
|
|
45
|
-
dataTestId?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Иконка
|
|
48
|
-
*/
|
|
49
|
-
icon?: ElementType;
|
|
50
|
-
};
|
|
51
|
-
declare const Closer: React.FC<CloserProps>;
|
|
52
|
-
declare const colors: readonly [
|
|
53
|
-
"tertiary",
|
|
54
|
-
"disabled",
|
|
55
|
-
"accent",
|
|
56
|
-
"primary",
|
|
57
|
-
"attention",
|
|
58
|
-
"positive",
|
|
59
|
-
"secondary",
|
|
60
|
-
"tertiary-inverted",
|
|
61
|
-
"primary-inverted",
|
|
62
|
-
"secondary-inverted",
|
|
63
|
-
"link",
|
|
64
|
-
"negative"
|
|
65
|
-
];
|
|
66
|
-
type Color = (typeof colors)[number];
|
|
67
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
68
|
-
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
69
|
-
type TextBaseProps = {
|
|
70
|
-
/**
|
|
71
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
72
|
-
*/
|
|
73
|
-
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
74
|
-
/**
|
|
75
|
-
* Цвет текста
|
|
76
|
-
*/
|
|
77
|
-
color?: Color;
|
|
78
|
-
/**
|
|
79
|
-
* Толщина шрифта
|
|
80
|
-
*/
|
|
81
|
-
weight?: "regular" | "medium" | "bold";
|
|
82
|
-
/**
|
|
83
|
-
* Делает цифры моноширинными
|
|
84
|
-
*/
|
|
85
|
-
monospaceNumbers?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* HTML тег
|
|
88
|
-
*/
|
|
89
|
-
tag?: "span" | "div";
|
|
90
|
-
/**
|
|
91
|
-
* Css-класс для стилизации (native prop)
|
|
92
|
-
*/
|
|
93
|
-
className?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Id компонента для тестов
|
|
96
|
-
*/
|
|
97
|
-
dataTestId?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Контент (native prop)
|
|
100
|
-
*/
|
|
101
|
-
children?: React.ReactNode;
|
|
102
|
-
/**
|
|
103
|
-
* Добавляет отступы к тэгу 'p'
|
|
104
|
-
*/
|
|
105
|
-
defaultMargins?: never;
|
|
106
|
-
/**
|
|
107
|
-
* Количество строк (не поддерживает IE)
|
|
108
|
-
*/
|
|
109
|
-
rowLimit?: 1 | 2 | 3;
|
|
110
|
-
};
|
|
111
|
-
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
112
|
-
tag?: "p";
|
|
113
|
-
defaultMargins?: boolean;
|
|
114
|
-
};
|
|
115
|
-
type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
|
|
116
|
-
type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
|
|
117
|
-
type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
118
|
-
/**
|
|
119
|
-
* HTML тег
|
|
120
|
-
*/
|
|
121
|
-
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
122
|
-
/**
|
|
123
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
124
|
-
*/
|
|
125
|
-
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
126
|
-
/**
|
|
127
|
-
* Цвет текста
|
|
128
|
-
*/
|
|
129
|
-
color?: Color;
|
|
130
|
-
/**
|
|
131
|
-
* Толщина шрифта
|
|
132
|
-
*/
|
|
133
|
-
weight?: "regular" | "medium" | "bold";
|
|
134
|
-
/**
|
|
135
|
-
* Шрифт текста
|
|
136
|
-
*/
|
|
137
|
-
font?: "styrene" | "system";
|
|
138
|
-
/**
|
|
139
|
-
* Добавляет отступы
|
|
140
|
-
*/
|
|
141
|
-
defaultMargins?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* Css-класс для стилизации (native prop)
|
|
144
|
-
*/
|
|
145
|
-
className?: string;
|
|
146
|
-
/**
|
|
147
|
-
* Id компонента для тестов
|
|
148
|
-
*/
|
|
149
|
-
dataTestId?: string;
|
|
150
|
-
/**
|
|
151
|
-
* Контент (native prop)
|
|
152
|
-
*/
|
|
153
|
-
children?: React.ReactNode;
|
|
154
|
-
/**
|
|
155
|
-
* Количество строк (не поддерживает IE)
|
|
156
|
-
*/
|
|
157
|
-
rowLimit?: 1 | 2 | 3;
|
|
158
|
-
};
|
|
159
|
-
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
160
|
-
declare const Typography: {
|
|
161
|
-
Title: FC<TitleProps>;
|
|
162
|
-
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
163
|
-
TitleResponsive: FC<TitleProps>;
|
|
164
|
-
TitleMobile: FC<TitleMobileProps>;
|
|
165
|
-
};
|
|
166
|
-
declare const typographyPresets: {
|
|
167
|
-
mobile: {
|
|
168
|
-
list: {
|
|
169
|
-
text: {
|
|
170
|
-
primary: {
|
|
171
|
-
tag: string;
|
|
172
|
-
view: string;
|
|
173
|
-
};
|
|
174
|
-
secondary: {
|
|
175
|
-
tag: string;
|
|
176
|
-
color: string;
|
|
177
|
-
view: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
type BackerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
184
|
-
/**
|
|
185
|
-
* Дополнительный класс
|
|
186
|
-
*/
|
|
187
|
-
className?: string;
|
|
188
|
-
/**
|
|
189
|
-
* Размер кнопки
|
|
190
|
-
*/
|
|
191
|
-
size?: IconButtonProps["size"];
|
|
192
|
-
/**
|
|
193
|
-
* Иконка
|
|
194
|
-
*/
|
|
195
|
-
icon?: ElementType;
|
|
196
|
-
/**
|
|
197
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
198
|
-
*/
|
|
199
|
-
dataTestId?: string;
|
|
200
|
-
/**
|
|
201
|
-
* Обработчик нажатия
|
|
202
|
-
*/
|
|
203
|
-
onClick?: () => void;
|
|
204
|
-
};
|
|
205
|
-
declare const Backer: React.FC<BackerProps>;
|
|
206
|
-
declare const TitleResponsive: FC<TitleProps>;
|
|
207
|
-
type HeaderProps = {
|
|
208
|
-
/**
|
|
209
|
-
* Заголовок
|
|
210
|
-
*/
|
|
211
|
-
title?: ReactNode;
|
|
212
|
-
/**
|
|
213
|
-
* Дополнительный класс
|
|
214
|
-
*/
|
|
215
|
-
headerClassName?: string;
|
|
216
|
-
/**
|
|
217
|
-
* Дополнительный класс для аддонов
|
|
218
|
-
*/
|
|
219
|
-
addonClassName?: string;
|
|
220
|
-
/**
|
|
221
|
-
* Дополнительный класс для компонента крестика
|
|
222
|
-
*/
|
|
223
|
-
closerClassName?: string;
|
|
224
|
-
/**
|
|
225
|
-
* Дополнительный класс для компонента стрелки назад
|
|
226
|
-
*/
|
|
227
|
-
backerClassName?: string;
|
|
228
|
-
/**
|
|
229
|
-
* Слот слева
|
|
230
|
-
*/
|
|
231
|
-
leftAddons?: ReactNode;
|
|
232
|
-
/**
|
|
233
|
-
* Слот справа
|
|
234
|
-
*/
|
|
235
|
-
rightAddons?: ReactNode;
|
|
236
|
-
/**
|
|
237
|
-
* Слот снизу
|
|
238
|
-
*/
|
|
239
|
-
bottomAddons?: ReactNode;
|
|
240
|
-
/**
|
|
241
|
-
* Наличие компонента крестика
|
|
242
|
-
*/
|
|
243
|
-
hasCloser?: boolean;
|
|
244
|
-
/**
|
|
245
|
-
* Наличие компонента стрелки назад
|
|
246
|
-
*/
|
|
247
|
-
hasBacker?: boolean;
|
|
248
|
-
/**
|
|
249
|
-
* Выравнивание заголовка
|
|
250
|
-
*/
|
|
251
|
-
titleAlign?: BottomSheetTitleAlign;
|
|
252
|
-
/**
|
|
253
|
-
* Будет ли обрезан заголовок
|
|
254
|
-
*/
|
|
255
|
-
trimTitle?: boolean;
|
|
256
|
-
/**
|
|
257
|
-
* Фиксирует шапку
|
|
258
|
-
*/
|
|
259
|
-
sticky?: boolean;
|
|
260
|
-
/**
|
|
261
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
262
|
-
*/
|
|
263
|
-
dataTestId?: string;
|
|
264
|
-
/**
|
|
265
|
-
* Обработчик нажатия на стрелку назад
|
|
266
|
-
*/
|
|
267
|
-
onBack?: () => void;
|
|
268
|
-
};
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { NavigationBarProps } from "./index-e81c389f";
|
|
3
|
+
type HeaderProps = Omit<NavigationBarProps, 'view' | 'size'>;
|
|
269
4
|
declare const Header: FC<HeaderProps>;
|
|
270
|
-
export {
|
|
271
|
-
export type { TitleProps, TextProps, Color };
|
|
5
|
+
export { HeaderProps, Header };
|
package/cssm/index-7ca84eff.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import React from "react";
|
|
|
4
4
|
import { HTMLAttributes, ReactNode, RefObject, FC } from "react";
|
|
5
5
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
6
6
|
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
7
|
+
import { NavigationBarProps } from "./index-e81c389f";
|
|
7
8
|
import { SwipeableHandlers } from "react-swipeable/types";
|
|
8
9
|
import { BackdropProps } from "./index-ebda875c";
|
|
9
10
|
type BottomSheetTitleAlign = "center" | "left";
|
|
@@ -20,6 +21,14 @@ type BottomSheetProps = {
|
|
|
20
21
|
* Заголовок
|
|
21
22
|
*/
|
|
22
23
|
title?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Размер заголовка
|
|
26
|
+
*/
|
|
27
|
+
titleSize?: NavigationBarProps["titleSize"];
|
|
28
|
+
/**
|
|
29
|
+
* Подзаголовок.
|
|
30
|
+
*/
|
|
31
|
+
subtitle?: NavigationBarProps["subtitle"];
|
|
23
32
|
/**
|
|
24
33
|
* Кнопка действия (обычно, это кнопка закрытия)
|
|
25
34
|
*/
|
|
@@ -188,7 +197,6 @@ type FooterProps = {
|
|
|
188
197
|
className?: string;
|
|
189
198
|
};
|
|
190
199
|
declare const Footer: FC<FooterProps>;
|
|
191
|
-
declare const isClient: () => boolean;
|
|
192
200
|
type SwipeableBackdropProps = BackdropProps & {
|
|
193
201
|
/**
|
|
194
202
|
* Прозрачность бэкдропа
|
|
@@ -204,5 +212,4 @@ type SwipeableBackdropProps = BackdropProps & {
|
|
|
204
212
|
opacityTimeout?: number;
|
|
205
213
|
};
|
|
206
214
|
declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
|
|
207
|
-
export { BottomSheetTitleAlign, BottomSheetProps, HEADER_OFFSET, CLOSE_OFFSET, BottomSheet, FooterProps, Footer,
|
|
208
|
-
export * from "./getDataTestId-3fe0d3e6";
|
|
215
|
+
export { BottomSheetTitleAlign, BottomSheetProps, HEADER_OFFSET, CLOSE_OFFSET, BottomSheet, FooterProps, Footer, SwipeableBackdropProps, SwipeableBackdrop };
|
package/cssm/index-bdb4c6b9.d.ts
CHANGED
|
@@ -131,6 +131,8 @@ type BaseModalProps = {
|
|
|
131
131
|
componentRef?: MutableRefObject<HTMLDivElement | null>;
|
|
132
132
|
};
|
|
133
133
|
type BaseModalContext = {
|
|
134
|
+
parentRef: React.RefObject<HTMLDivElement>;
|
|
135
|
+
componentRef: React.RefObject<HTMLDivElement>;
|
|
134
136
|
hasFooter?: boolean;
|
|
135
137
|
hasHeader?: boolean;
|
|
136
138
|
hasScroll?: boolean;
|