@alfalab/core-components-input-autocomplete 10.0.0 → 10.0.2
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/{cssm/Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/Component-5e1b8383.d.ts +70 -3
- package/Component-63dec22f.d.ts +166 -10
- package/{Component-425c8522.d.ts → Component-72dda473.d.ts} +1 -1
- package/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/Component-ebda875c.d.ts +8 -265
- package/Component.mobile-ebda875c.d.ts +6 -0
- package/Component.mobile-f1f15074.d.ts +1 -1
- package/Component.mobile.d.ts +4 -5
- package/Component.mobile.js +1 -1
- package/{mobile-45dc17c6.d.ts → Component.modal.mobile-5e1b8383.d.ts} +27 -14
- package/Component.modal.mobile.d.ts +2 -2
- package/Component.modal.mobile.js +1 -1
- package/Component.responsive.d.ts +2 -3
- package/Component.responsive.js +1 -1
- package/autocomplete-field/Component.js +1 -1
- package/autocomplete-field/index.css +2 -2
- package/autocomplete-mobile-field/Component.d.ts +6 -2
- package/autocomplete-mobile-field/Component.js +1 -1
- package/autocomplete-mobile-field/index.css +8 -8
- package/{esm/component-89a3cf4c.d.ts → component-50136800.d.ts} +1 -1
- package/{modern/Component-89a3cf4c.d.ts → cssm/Component-50136800.d.ts} +1 -1
- package/cssm/Component-5e1b8383.d.ts +1 -1
- package/cssm/Component-72dda473.d.ts +53 -0
- package/cssm/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/cssm/Component.mobile-f1f15074.d.ts +1 -1
- package/cssm/Component.mobile.d.ts +3 -4
- package/cssm/Component.modal.mobile-5e1b8383.d.ts +1 -1
- package/cssm/Component.responsive.d.ts +1 -2
- package/cssm/autocomplete-mobile-field/Component.d.ts +6 -2
- package/{modern/component-89a3cf4c.d.ts → cssm/component-50136800.d.ts} +1 -1
- package/cssm/index-50136800.d.ts +11 -0
- package/{esm/index-425c8522.d.ts → cssm/index-72dda473.d.ts} +7 -1
- package/cssm/index-c76d6398.d.ts +2 -0
- package/cssm/index-f12ee135.d.ts +1 -1
- package/cssm/types-d9f9bbcc.d.ts +2 -2
- package/esm/{Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/esm/Component-5e1b8383.d.ts +1 -1
- package/esm/Component-72dda473.d.ts +53 -0
- package/esm/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/esm/Component.mobile-f1f15074.d.ts +1 -1
- package/esm/Component.mobile.d.ts +3 -4
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.modal.mobile-5e1b8383.d.ts +1 -1
- package/esm/Component.modal.mobile.js +1 -1
- package/esm/Component.responsive.d.ts +1 -2
- package/esm/Component.responsive.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.d.ts +6 -2
- package/esm/autocomplete-mobile-field/Component.js +1 -1
- package/esm/autocomplete-mobile-field/index.css +8 -8
- package/{cssm/component-89a3cf4c.d.ts → esm/component-50136800.d.ts} +1 -1
- package/esm/index-50136800.d.ts +11 -0
- package/{cssm/index-425c8522.d.ts → esm/index-72dda473.d.ts} +7 -1
- package/esm/index-c76d6398.d.ts +2 -0
- package/esm/index-f12ee135.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/mobile.css +4 -4
- package/esm/mobile.js +1 -1
- package/esm/{mobile.module-ed5594fa.js → mobile.module-bb0cbc57.js} +1 -1
- package/esm/types-d9f9bbcc.d.ts +2 -2
- package/hook-9ea9e32c.d.ts +4 -4
- package/index-50136800.d.ts +11 -0
- package/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
- package/index-bdb4c6b9.d.ts +2 -172
- package/index-c76d6398.d.ts +2 -0
- package/index-ebda875c.d.ts +115 -11
- package/index-f12ee135.d.ts +3 -307
- package/index.js +1 -1
- package/mobile-06ffd24b.d.ts +5 -0
- package/mobile-96988a65.d.ts +2 -5
- package/mobile.css +4 -4
- package/mobile.js +1 -1
- package/{mobile.module-4fb8c86a.js → mobile.module-00dfdfed.js} +1 -1
- package/modern/Component-50136800.d.ts +6 -0
- package/modern/Component-5e1b8383.d.ts +1 -1
- package/modern/Component-72dda473.d.ts +53 -0
- package/modern/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
- package/modern/Component.mobile-f1f15074.d.ts +1 -1
- package/modern/Component.mobile.d.ts +3 -4
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.modal.mobile-5e1b8383.d.ts +1 -1
- package/modern/Component.modal.mobile.js +1 -1
- package/modern/Component.responsive.d.ts +1 -2
- package/modern/Component.responsive.js +1 -1
- package/modern/autocomplete-field/Component.js +1 -1
- package/modern/autocomplete-field/index.css +2 -2
- package/modern/autocomplete-mobile-field/Component.d.ts +6 -2
- package/modern/autocomplete-mobile-field/Component.js +1 -1
- package/modern/autocomplete-mobile-field/index.css +8 -8
- package/modern/component-50136800.d.ts +44 -0
- package/modern/index-50136800.d.ts +11 -0
- package/modern/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
- package/modern/index-c76d6398.d.ts +2 -0
- package/modern/index-f12ee135.d.ts +1 -1
- package/modern/index.js +1 -1
- package/modern/mobile.css +4 -4
- package/modern/mobile.js +1 -1
- package/modern/{mobile.module-a255d4ec.js → mobile.module-ca98f569.js} +1 -1
- package/modern/types-d9f9bbcc.d.ts +2 -2
- package/package.json +4 -4
- package/shared-4cd3936b.d.ts +88 -3
- package/src/Component.mobile.tsx +2 -2
- package/src/Component.responsive.tsx +0 -2
- package/src/autocomplete-mobile-field/Component.tsx +6 -3
- package/types-d9f9bbcc.d.ts +259 -0
- package/utils-1574ad8b.d.ts +29 -0
- package/utils-49cc3c24.d.ts +8 -0
- package/Component-89a3cf4c.d.ts +0 -6
- package/Component-96988a65.d.ts +0 -9
- package/Component-aed0af6e.d.ts +0 -11
- package/Component-f12ee135.d.ts +0 -72
- package/cssm/index-89a3cf4c.d.ts +0 -3
- package/cssm/index-e81c389f.d.ts +0 -3
- package/esm/index-89a3cf4c.d.ts +0 -3
- package/esm/index-e81c389f.d.ts +0 -3
- package/hook-ebda875c.d.ts +0 -48
- package/index-89a3cf4c.d.ts +0 -3
- package/index-e81c389f.d.ts +0 -3
- package/modern/index-89a3cf4c.d.ts +0 -3
- package/modern/index-e81c389f.d.ts +0 -3
- /package/{Component.mobile-f12ee135.d.ts → Component.mobile-06ffd24b.d.ts} +0 -0
- /package/cssm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/esm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/modern/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { NavigationBarProps } from "./types-
|
|
3
|
+
import { NavigationBarProps } from "./types-83e2bd9e";
|
|
4
4
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export * from "./Component-63dec22f";
|
|
6
6
|
export { NavigationBar };
|
package/Component-5e1b8383.d.ts
CHANGED
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
+
import { BaseSelectProps } from "./typings-5e1b8383";
|
|
6
|
+
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Футер
|
|
9
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
10
|
+
*/
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Будет ли свайпаться шторка
|
|
14
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
15
|
+
*/
|
|
16
|
+
swipeable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Отображать в BottomSheet
|
|
19
|
+
*/
|
|
20
|
+
isBottomSheet?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Дополнительные пропсы шторки
|
|
23
|
+
*/
|
|
24
|
+
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
25
|
+
/**
|
|
26
|
+
* Дополнительные пропсы модалки
|
|
27
|
+
*/
|
|
28
|
+
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
29
|
+
/**
|
|
30
|
+
* Дополнительные пропсы шапки модалки
|
|
31
|
+
*/
|
|
32
|
+
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
33
|
+
/**
|
|
34
|
+
* Дополнительные пропсы футера модалки
|
|
35
|
+
*/
|
|
36
|
+
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
37
|
+
};
|
|
38
|
+
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
39
|
+
/**
|
|
40
|
+
* Футер
|
|
41
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
42
|
+
*/
|
|
43
|
+
footer?: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Будет ли свайпаться шторка
|
|
46
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
47
|
+
*/
|
|
48
|
+
swipeable?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Отображать в BottomSheet
|
|
51
|
+
*/
|
|
52
|
+
isBottomSheet?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Дополнительные пропсы шторки
|
|
55
|
+
*/
|
|
56
|
+
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Дополнительные пропсы модалки
|
|
59
|
+
*/
|
|
60
|
+
modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Дополнительные пропсы шапки модалки
|
|
63
|
+
*/
|
|
64
|
+
modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Дополнительные пропсы футера модалки
|
|
67
|
+
*/
|
|
68
|
+
modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
|
|
69
|
+
} & React.RefAttributes<unknown>>;
|
|
70
|
+
export * from "./Component.mobile-f1f15074";
|
|
71
|
+
export { ModalMobileProps } from "./typings-bdb4c6b9";
|
|
72
|
+
export { SelectMobileProps, BaseSelectMobile };
|
package/Component-63dec22f.d.ts
CHANGED
|
@@ -1,11 +1,167 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
declare const colors: readonly [
|
|
5
|
+
"tertiary",
|
|
6
|
+
"disabled",
|
|
7
|
+
"accent",
|
|
8
|
+
"primary",
|
|
9
|
+
"attention",
|
|
10
|
+
"positive",
|
|
11
|
+
"secondary",
|
|
12
|
+
"tertiary-inverted",
|
|
13
|
+
"primary-inverted",
|
|
14
|
+
"secondary-inverted",
|
|
15
|
+
"link",
|
|
16
|
+
"negative",
|
|
17
|
+
"static-primary-light",
|
|
18
|
+
"static-secondary-light",
|
|
19
|
+
"static-tertiary-light",
|
|
20
|
+
"static-primary-dark",
|
|
21
|
+
"static-secondary-dark",
|
|
22
|
+
"static-tertiary-dark",
|
|
23
|
+
"static-accent"
|
|
24
|
+
];
|
|
25
|
+
type Color = (typeof colors)[number];
|
|
26
|
+
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
27
|
+
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
|
+
type TextBaseProps = {
|
|
29
|
+
/**
|
|
30
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
|
|
31
|
+
*/
|
|
32
|
+
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
33
|
+
/**
|
|
34
|
+
* Цвет текста
|
|
35
|
+
*/
|
|
36
|
+
color?: Color;
|
|
37
|
+
/**
|
|
38
|
+
* Толщина шрифта
|
|
39
|
+
*/
|
|
40
|
+
weight?: "regular" | "medium" | "bold";
|
|
41
|
+
/**
|
|
42
|
+
* Делает цифры моноширинными
|
|
43
|
+
*/
|
|
44
|
+
monospaceNumbers?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* HTML тег
|
|
47
|
+
*/
|
|
48
|
+
tag?: "span" | "div";
|
|
49
|
+
/**
|
|
50
|
+
* Css-класс для стилизации (native prop)
|
|
51
|
+
*/
|
|
52
|
+
className?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Id компонента для тестов
|
|
55
|
+
*/
|
|
56
|
+
dataTestId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Контент (native prop)
|
|
59
|
+
*/
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Добавляет отступы к тэгу 'p'
|
|
63
|
+
*/
|
|
64
|
+
defaultMargins?: never;
|
|
65
|
+
/**
|
|
66
|
+
* Количество строк (не поддерживает IE)
|
|
67
|
+
*/
|
|
68
|
+
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
};
|
|
70
|
+
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
71
|
+
tag?: "p";
|
|
72
|
+
defaultMargins?: boolean;
|
|
73
|
+
};
|
|
74
|
+
type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
|
|
75
|
+
type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
|
|
76
|
+
type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
77
|
+
/**
|
|
78
|
+
* HTML тег
|
|
79
|
+
*/
|
|
80
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
81
|
+
/**
|
|
82
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
83
|
+
*/
|
|
84
|
+
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
85
|
+
/**
|
|
86
|
+
* Цвет текста
|
|
87
|
+
*/
|
|
88
|
+
color?: Color;
|
|
89
|
+
/**
|
|
90
|
+
* Толщина шрифта
|
|
91
|
+
*/
|
|
92
|
+
weight?: "regular" | "medium" | "bold";
|
|
93
|
+
/**
|
|
94
|
+
* Шрифт текста
|
|
95
|
+
*/
|
|
96
|
+
font?: "styrene" | "system";
|
|
97
|
+
/**
|
|
98
|
+
* Добавляет отступы
|
|
99
|
+
*/
|
|
100
|
+
defaultMargins?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Css-класс для стилизации (native prop)
|
|
103
|
+
*/
|
|
104
|
+
className?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Id компонента для тестов
|
|
107
|
+
*/
|
|
108
|
+
dataTestId?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Контент (native prop)
|
|
111
|
+
*/
|
|
112
|
+
children?: React.ReactNode;
|
|
113
|
+
/**
|
|
114
|
+
* Количество строк (не поддерживает IE)
|
|
115
|
+
*/
|
|
116
|
+
rowLimit?: 1 | 2 | 3;
|
|
117
|
+
};
|
|
118
|
+
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
119
|
+
declare const Typography: {
|
|
120
|
+
Title: FC<TitleProps>;
|
|
121
|
+
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
122
|
+
TitleResponsive: FC<TitleProps>;
|
|
123
|
+
TitleMobile: FC<TitleMobileProps>;
|
|
124
|
+
};
|
|
125
|
+
declare const typographyPresets: {
|
|
126
|
+
mobile: {
|
|
127
|
+
list: {
|
|
128
|
+
text: {
|
|
129
|
+
primary: {
|
|
130
|
+
tag: string;
|
|
131
|
+
view: string;
|
|
132
|
+
};
|
|
133
|
+
secondary: {
|
|
134
|
+
tag: string;
|
|
135
|
+
color: string;
|
|
136
|
+
view: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
declare const TitleResponsive: FC<TitleProps>;
|
|
143
|
+
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
144
|
+
/**
|
|
145
|
+
* Текст после иконки
|
|
146
|
+
*/
|
|
147
|
+
text?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Дополнительный класс
|
|
150
|
+
*/
|
|
151
|
+
className?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Вид компонента
|
|
154
|
+
*/
|
|
155
|
+
view: 'mobile' | 'desktop';
|
|
156
|
+
/**
|
|
157
|
+
* Прозрачность текста
|
|
158
|
+
*/
|
|
159
|
+
textOpacity?: number;
|
|
160
|
+
/**
|
|
161
|
+
* Обработчик клика
|
|
162
|
+
*/
|
|
163
|
+
onClick?: () => void;
|
|
164
|
+
}
|
|
165
|
+
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
166
|
+
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
167
|
+
export type { TitleProps, TextProps, Color };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { BackgroundColorType, GraphicColorType } from "./index-
|
|
3
|
+
import { BackgroundColorType, GraphicColorType } from "./index-72dda473";
|
|
4
4
|
type IconColorType = Extract<GraphicColorType, 'positive' | 'attention' | 'link' | 'negative' | 'tertiary' | 'secondary' | 'primary'>;
|
|
5
5
|
type BadgeProps = {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { NavigationBarProps } from "./index-
|
|
2
|
+
import { NavigationBarProps } from "./index-c76d6398";
|
|
3
3
|
type HeaderProps = Omit<NavigationBarProps, 'size' | 'view' | 'parentRef'>;
|
|
4
4
|
declare const Header: FC<HeaderProps>;
|
|
5
5
|
export { HeaderProps, Header };
|
package/Component-ebda875c.d.ts
CHANGED
|
@@ -1,269 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="react-transition-group" />
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
[key: string]: string;
|
|
11
|
-
};
|
|
4
|
+
import { CheckboxProps } from "./index-ebda875c";
|
|
5
|
+
type HeaderProps = {
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
onChange?: CheckboxProps['onChange'];
|
|
9
|
+
mobile?: boolean;
|
|
12
10
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* Значение поля ввода
|
|
16
|
-
*/
|
|
17
|
-
value?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Начальное значение поля
|
|
20
|
-
*/
|
|
21
|
-
defaultValue?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Растягивает компонент на ширину контейнера
|
|
24
|
-
*/
|
|
25
|
-
block?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Крестик для очистки поля
|
|
28
|
-
*/
|
|
29
|
-
clear?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Размер компонента
|
|
32
|
-
*/
|
|
33
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
34
|
-
/**
|
|
35
|
-
* Набор цветов для компонента
|
|
36
|
-
*/
|
|
37
|
-
colors?: 'default' | 'inverted';
|
|
38
|
-
/**
|
|
39
|
-
* Отображение ошибки
|
|
40
|
-
*/
|
|
41
|
-
error?: ReactNode | boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Отображение иконки успеха
|
|
44
|
-
*/
|
|
45
|
-
success?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Текст подсказки
|
|
48
|
-
*/
|
|
49
|
-
hint?: ReactNode;
|
|
50
|
-
/**
|
|
51
|
-
* Лейбл компонента
|
|
52
|
-
*/
|
|
53
|
-
label?: React.ReactNode;
|
|
54
|
-
/**
|
|
55
|
-
* Вид лейбла внутри / снаружи
|
|
56
|
-
*/
|
|
57
|
-
labelView?: 'inner' | 'outer';
|
|
58
|
-
/**
|
|
59
|
-
* Атрибут type
|
|
60
|
-
*/
|
|
61
|
-
type?: 'number' | 'card' | 'email' | 'money' | 'password' | 'tel' | 'text';
|
|
62
|
-
/**
|
|
63
|
-
* Ref для обертки input
|
|
64
|
-
*/
|
|
65
|
-
wrapperRef?: React.Ref<HTMLDivElement> | null;
|
|
66
|
-
/**
|
|
67
|
-
* Слот слева
|
|
68
|
-
*/
|
|
69
|
-
leftAddons?: React.ReactNode;
|
|
70
|
-
/**
|
|
71
|
-
* Слот справа
|
|
72
|
-
*/
|
|
73
|
-
rightAddons?: React.ReactNode;
|
|
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
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
130
|
-
*/
|
|
131
|
-
FormControlComponent?: ElementType;
|
|
132
|
-
/**
|
|
133
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
134
|
-
*/
|
|
135
|
-
dataTestId?: string;
|
|
136
|
-
/**
|
|
137
|
-
* Стили компонента для default и inverted режима.
|
|
138
|
-
*/
|
|
139
|
-
colorStyles?: StyleColors;
|
|
140
|
-
};
|
|
141
|
-
declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "onClick" | "value" | "onMouseDown" | "size" | "defaultValue" | "onChange" | "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
|
-
bottomAddons?: React.ReactNode;
|
|
206
|
-
/**
|
|
207
|
-
* Дополнительный класс
|
|
208
|
-
*/
|
|
209
|
-
className?: string | undefined;
|
|
210
|
-
/**
|
|
211
|
-
* Дополнительный класс для поля
|
|
212
|
-
*/
|
|
213
|
-
fieldClassName?: string | undefined;
|
|
214
|
-
/**
|
|
215
|
-
* Дополнительный класс инпута
|
|
216
|
-
*/
|
|
217
|
-
inputClassName?: string | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* Дополнительный класс для лейбла
|
|
220
|
-
*/
|
|
221
|
-
labelClassName?: string | undefined;
|
|
222
|
-
/**
|
|
223
|
-
* Дополнительный класс для аддонов
|
|
224
|
-
*/
|
|
225
|
-
addonsClassName?: string | undefined;
|
|
226
|
-
/**
|
|
227
|
-
* Класс, который будет установлен при фокусе
|
|
228
|
-
*/
|
|
229
|
-
focusedClassName?: string | undefined;
|
|
230
|
-
/**
|
|
231
|
-
* Класс, который будет установлен, если в поле есть значение
|
|
232
|
-
*/
|
|
233
|
-
filledClassName?: string | undefined;
|
|
234
|
-
/**
|
|
235
|
-
* Обработчик поля ввода
|
|
236
|
-
*/
|
|
237
|
-
onChange?: ((event: ChangeEvent<HTMLInputElement>, payload: {
|
|
238
|
-
value: string;
|
|
239
|
-
}) => void) | undefined;
|
|
240
|
-
/**
|
|
241
|
-
* Обработчик нажатия на кнопку очистки
|
|
242
|
-
*/
|
|
243
|
-
onClear?: ((event: MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
244
|
-
/**
|
|
245
|
-
* Обработчик клика по полю
|
|
246
|
-
*/
|
|
247
|
-
onClick?: ((event: MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
248
|
-
/**
|
|
249
|
-
* Обработчик MouseDown по полю
|
|
250
|
-
*/
|
|
251
|
-
onMouseDown?: ((event: MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
252
|
-
/**
|
|
253
|
-
* Обработчик MouseUp по полю
|
|
254
|
-
*/
|
|
255
|
-
onMouseUp?: ((event: MouseEvent<HTMLDivElement>) => void) | undefined;
|
|
256
|
-
/**
|
|
257
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
258
|
-
*/
|
|
259
|
-
FormControlComponent?: React.ElementType<any> | undefined;
|
|
260
|
-
/**
|
|
261
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
262
|
-
*/
|
|
263
|
-
dataTestId?: string | undefined;
|
|
264
|
-
/**
|
|
265
|
-
* Стили компонента для default и inverted режима.
|
|
266
|
-
*/
|
|
267
|
-
colorStyles?: StyleColors | undefined;
|
|
268
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
269
|
-
export { StyleColors, BaseInputProps, BaseInput };
|
|
11
|
+
declare const Header: React.FC<HeaderProps>;
|
|
12
|
+
export { HeaderProps, Header };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
+
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
+
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
+
export { ButtonMobileProps, ButtonMobile };
|
|
@@ -28,7 +28,7 @@ type FooterProps = {
|
|
|
28
28
|
declare const Footer: FC<FooterProps>;
|
|
29
29
|
declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
|
|
30
30
|
Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
|
|
31
|
-
Header: React.FC<import("./Component-
|
|
31
|
+
Header: React.FC<import("./Component-c76d6398").HeaderProps>;
|
|
32
32
|
Footer: React.FC<FooterProps>;
|
|
33
33
|
};
|
|
34
34
|
export { Content, FooterProps, Footer, ModalMobile };
|
package/Component.mobile.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ChangeEvent, ElementType } from "react";
|
|
4
|
-
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
4
|
import { ButtonMobileProps } from "./mobile-96988a65";
|
|
6
|
-
import { BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
|
|
5
|
+
import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
|
|
7
6
|
type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
|
|
8
7
|
/**
|
|
9
8
|
* Обработчик выбора
|
|
@@ -32,7 +31,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
|
|
|
32
31
|
/**
|
|
33
32
|
* Дополнительные пропсы компонента BottomSheet
|
|
34
33
|
*/
|
|
35
|
-
bottomSheetProps?:
|
|
34
|
+
bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
|
|
36
35
|
/**
|
|
37
36
|
* Дополнительные пропсы на слот под заголовком компонента BottomSheet
|
|
38
37
|
*/
|
|
@@ -50,7 +49,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
|
|
|
50
49
|
*/
|
|
51
50
|
Input?: ElementType;
|
|
52
51
|
};
|
|
53
|
-
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "
|
|
52
|
+
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
|
|
54
53
|
/**
|
|
55
54
|
* Обработчик выбора
|
|
56
55
|
*/
|
|
@@ -78,7 +77,7 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<Base
|
|
|
78
77
|
/**
|
|
79
78
|
* Дополнительные пропсы компонента BottomSheet
|
|
80
79
|
*/
|
|
81
|
-
bottomSheetProps?:
|
|
80
|
+
bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
|
|
82
81
|
/**
|
|
83
82
|
* Дополнительные пропсы на слот под заголовком компонента BottomSheet
|
|
84
83
|
*/
|
package/Component.mobile.js
CHANGED
|
@@ -11,7 +11,7 @@ var mobile$1 = require('@alfalab/core-components-button/mobile');
|
|
|
11
11
|
var coreComponentsInput = require('@alfalab/core-components-input');
|
|
12
12
|
var mobile = require('@alfalab/core-components-select/mobile');
|
|
13
13
|
var autocompleteMobileField_Component = require('./autocomplete-mobile-field/Component.js');
|
|
14
|
-
var mobile_module = require('./mobile.module-
|
|
14
|
+
var mobile_module = require('./mobile.module-00dfdfed.js');
|
|
15
15
|
require('@alfalab/core-components-form-control/mobile');
|
|
16
16
|
require('@alfalab/hooks');
|
|
17
17
|
|