@alfalab/core-components-picker-button 11.4.1 → 11.5.1
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-72dda473.d.ts +3 -0
- package/Component-a5b021bd.d.ts +158 -0
- package/Component-bdb4c6b9.d.ts +1 -1
- package/Component-c44170fe.d.ts +1 -1
- package/Component.responsive.d.ts +1 -1
- package/Context-c2e6f1b2.d.ts +4 -0
- package/{esm/ResponsiveContext-08e5596c.d.ts → ResponsiveContext-8a2a8ad1.d.ts} +1 -1
- package/cssm/Component-72dda473.d.ts +3 -0
- package/cssm/Component-a5b021bd.d.ts +158 -0
- package/cssm/Component-bdb4c6b9.d.ts +1 -1
- package/cssm/Component.responsive.d.ts +1 -1
- package/cssm/Context-c2e6f1b2.d.ts +4 -0
- package/{ResponsiveContext-08e5596c.d.ts → cssm/ResponsiveContext-8a2a8ad1.d.ts} +1 -1
- package/cssm/desktop/Component.desktop.d.ts +1 -1
- package/cssm/{index-081223cb.d.ts → index-a5b021bd.d.ts} +7 -2
- package/cssm/{types-1b036d4b.d.ts → types-1328ead9.d.ts} +8 -0
- package/{esm/typings-08e5596c.d.ts → cssm/typings-8a2a8ad1.d.ts} +1 -0
- package/cssm/typings-c29389e5.d.ts +17 -33
- package/{modern/useSkeleton-1b036d4b.d.ts → cssm/use-skeleton-1328ead9.d.ts} +1 -1
- package/cssm/utils/index.js +1 -1
- package/desktop/Component.desktop.d.ts +1 -1
- package/desktop/Component.desktop.js +1 -1
- package/esm/Component-72dda473.d.ts +3 -0
- package/esm/Component-a5b021bd.d.ts +158 -0
- package/esm/Component-bdb4c6b9.d.ts +1 -1
- package/esm/Component.responsive.d.ts +1 -1
- package/esm/Context-c2e6f1b2.d.ts +4 -0
- package/{modern/ResponsiveContext-08e5596c.d.ts → esm/ResponsiveContext-8a2a8ad1.d.ts} +1 -1
- package/esm/desktop/Component.desktop.d.ts +1 -1
- package/esm/desktop/Component.desktop.js +1 -1
- package/esm/field/Component.js +1 -1
- package/esm/field/index.css +6 -6
- package/{index-081223cb.d.ts → esm/index-a5b021bd.d.ts} +7 -2
- package/esm/index.css +5 -5
- package/esm/option/Component.js +1 -1
- package/esm/option/index.css +4 -4
- package/esm/{types-1b036d4b.d.ts → types-1328ead9.d.ts} +8 -0
- package/{cssm/typings-08e5596c.d.ts → esm/typings-8a2a8ad1.d.ts} +1 -0
- package/esm/typings-c29389e5.d.ts +17 -33
- package/{useSkeleton-1b036d4b.d.ts → esm/use-skeleton-1328ead9.d.ts} +1 -1
- package/esm/utils/index.js +1 -1
- package/field/Component.js +1 -1
- package/field/index.css +6 -6
- package/{esm/index-081223cb.d.ts → index-a5b021bd.d.ts} +7 -2
- package/index.css +5 -5
- package/modern/Component-72dda473.d.ts +3 -0
- package/modern/Component-a5b021bd.d.ts +158 -0
- package/modern/Component-bdb4c6b9.d.ts +1 -1
- package/modern/Component.responsive.d.ts +1 -1
- package/modern/Context-c2e6f1b2.d.ts +4 -0
- package/{cssm/ResponsiveContext-08e5596c.d.ts → modern/ResponsiveContext-8a2a8ad1.d.ts} +1 -1
- package/modern/desktop/Component.desktop.d.ts +1 -1
- package/modern/desktop/Component.desktop.js +1 -1
- package/modern/field/Component.js +1 -1
- package/modern/field/index.css +6 -6
- package/modern/{index-081223cb.d.ts → index-a5b021bd.d.ts} +7 -2
- package/modern/index.css +5 -5
- package/modern/option/Component.js +1 -1
- package/modern/option/index.css +4 -4
- package/modern/{types-1b036d4b.d.ts → types-1328ead9.d.ts} +8 -0
- package/modern/{typings-08e5596c.d.ts → typings-8a2a8ad1.d.ts} +1 -0
- package/modern/typings-c29389e5.d.ts +17 -33
- package/{cssm/useSkeleton-1b036d4b.d.ts → modern/use-skeleton-1328ead9.d.ts} +1 -1
- package/modern/utils/index.js +1 -1
- package/option/Component.js +1 -1
- package/option/index.css +4 -4
- package/package.json +5 -5
- package/src/utils/index.ts +1 -1
- package/{types-1b036d4b.d.ts → types-1328ead9.d.ts} +8 -0
- package/{typings-08e5596c.d.ts → typings-8a2a8ad1.d.ts} +1 -0
- package/typings-c29389e5.d.ts +17 -33
- package/{esm/useSkeleton-1b036d4b.d.ts → use-skeleton-1328ead9.d.ts} +1 -1
- package/utils/index.js +1 -1
- package/Component-081223cb.d.ts +0 -224
- package/cssm/Component-081223cb.d.ts +0 -224
- package/esm/Component-081223cb.d.ts +0 -224
- package/modern/Component-081223cb.d.ts +0 -224
package/Component-72dda473.d.ts
CHANGED
|
@@ -49,5 +49,8 @@ type BadgeProps = {
|
|
|
49
49
|
*/
|
|
50
50
|
dataTestId?: string;
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Используйте StatusBadge или Indicator
|
|
54
|
+
*/
|
|
52
55
|
declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
|
|
53
56
|
export { IconColorType, BadgeProps, Badge };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from "react";
|
|
4
|
+
type NativeProps = InputHTMLAttributes<HTMLInputElement>;
|
|
5
|
+
type Align = 'start' | 'center';
|
|
6
|
+
type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Управление состоянием вкл/выкл чекбокса (native prop)
|
|
9
|
+
*/
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Обработчик переключения чекбокса
|
|
13
|
+
*/
|
|
14
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, payload: {
|
|
15
|
+
checked: boolean;
|
|
16
|
+
name?: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Текст подписи к чекбоксу
|
|
20
|
+
*/
|
|
21
|
+
label?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Текст подсказки снизу
|
|
24
|
+
*/
|
|
25
|
+
hint?: ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Размер компонента
|
|
28
|
+
*/
|
|
29
|
+
size?: 's' | 'm';
|
|
30
|
+
/**
|
|
31
|
+
* Доп. класс чекбокса
|
|
32
|
+
*/
|
|
33
|
+
boxClassName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Доп. класс контента
|
|
36
|
+
*/
|
|
37
|
+
contentClassName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Выравнивание
|
|
40
|
+
*/
|
|
41
|
+
align?: Align;
|
|
42
|
+
/**
|
|
43
|
+
* Дополнительный слот
|
|
44
|
+
*/
|
|
45
|
+
addons?: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Растягивать ли компонент на всю ширину
|
|
48
|
+
*/
|
|
49
|
+
block?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Управление состоянием включен / выключен
|
|
52
|
+
*/
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
56
|
+
* Используйте props disabled
|
|
57
|
+
* Управление состоянием активен / неактивен
|
|
58
|
+
*/
|
|
59
|
+
inactive?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
62
|
+
*/
|
|
63
|
+
dataTestId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Управление неопределенным состоянием чекбокса
|
|
66
|
+
*/
|
|
67
|
+
indeterminate?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Отображение ошибки
|
|
70
|
+
*/
|
|
71
|
+
error?: ReactNode | boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Флаг для скрытия нативного инпута.
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
hiddenInput?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Пропсы для label
|
|
79
|
+
*/
|
|
80
|
+
labelProps?: DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
|
|
81
|
+
};
|
|
82
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size" | "onChange" | "enterKeyHint"> & {
|
|
83
|
+
/**
|
|
84
|
+
* Управление состоянием вкл/выкл чекбокса (native prop)
|
|
85
|
+
*/
|
|
86
|
+
checked?: boolean | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Обработчик переключения чекбокса
|
|
89
|
+
*/
|
|
90
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>, payload: {
|
|
91
|
+
checked: boolean;
|
|
92
|
+
name?: string;
|
|
93
|
+
}) => void) | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Текст подписи к чекбоксу
|
|
96
|
+
*/
|
|
97
|
+
label?: ReactNode;
|
|
98
|
+
/**
|
|
99
|
+
* Текст подсказки снизу
|
|
100
|
+
*/
|
|
101
|
+
hint?: ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* Размер компонента
|
|
104
|
+
*/
|
|
105
|
+
size?: "s" | "m" | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Доп. класс чекбокса
|
|
108
|
+
*/
|
|
109
|
+
boxClassName?: string | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Доп. класс контента
|
|
112
|
+
*/
|
|
113
|
+
contentClassName?: string | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Выравнивание
|
|
116
|
+
*/
|
|
117
|
+
align?: Align | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Дополнительный слот
|
|
120
|
+
*/
|
|
121
|
+
addons?: React.ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* Растягивать ли компонент на всю ширину
|
|
124
|
+
*/
|
|
125
|
+
block?: boolean | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Управление состоянием включен / выключен
|
|
128
|
+
*/
|
|
129
|
+
disabled?: boolean | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
132
|
+
* Используйте props disabled
|
|
133
|
+
* Управление состоянием активен / неактивен
|
|
134
|
+
*/
|
|
135
|
+
inactive?: boolean | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
138
|
+
*/
|
|
139
|
+
dataTestId?: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Управление неопределенным состоянием чекбокса
|
|
142
|
+
*/
|
|
143
|
+
indeterminate?: boolean | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Отображение ошибки
|
|
146
|
+
*/
|
|
147
|
+
error?: ReactNode | boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Флаг для скрытия нативного инпута.
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
hiddenInput?: boolean | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* Пропсы для label
|
|
155
|
+
*/
|
|
156
|
+
labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
|
|
157
|
+
} & React.RefAttributes<HTMLLabelElement>>;
|
|
158
|
+
export { CheckboxProps, Checkbox };
|
package/Component-bdb4c6b9.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { View } from "./typings-
|
|
3
|
+
import { View } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
5
5
|
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
6
|
fullscreen?: boolean | undefined;
|
package/Component-c44170fe.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
|
|
|
145
145
|
*/
|
|
146
146
|
disableUserInput?: boolean;
|
|
147
147
|
};
|
|
148
|
-
declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
148
|
+
declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "size" | "type" | "defaultValue" | "onChange" | "onClick" | "onMouseDown" | "enterKeyHint"> & {
|
|
149
149
|
/**
|
|
150
150
|
* Значение поля ввода
|
|
151
151
|
*/
|
|
@@ -9,7 +9,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
|
|
|
9
9
|
*/
|
|
10
10
|
breakpoint?: number;
|
|
11
11
|
};
|
|
12
|
-
declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-select/shared").BaseSelectProps, "size" | "
|
|
12
|
+
declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-select/shared").BaseSelectProps, "size" | "hint" | "placeholder" | "onFocus" | "selected" | "multiple" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<import("@alfalab/core-components-button").ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
|
|
13
13
|
options: ((import("@alfalab/core-components-select/shared").OptionShape | import("@alfalab/core-components-select/shared").GroupShape) & {
|
|
14
14
|
icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
|
|
15
15
|
})[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TResponsiveModalContext } from "./typings-
|
|
3
|
+
import { TResponsiveModalContext } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
|
|
5
5
|
export { ResponsiveContext };
|
|
@@ -49,5 +49,8 @@ type BadgeProps = {
|
|
|
49
49
|
*/
|
|
50
50
|
dataTestId?: string;
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Используйте StatusBadge или Indicator
|
|
54
|
+
*/
|
|
52
55
|
declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
|
|
53
56
|
export { IconColorType, BadgeProps, Badge };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from "react";
|
|
4
|
+
type NativeProps = InputHTMLAttributes<HTMLInputElement>;
|
|
5
|
+
type Align = 'start' | 'center';
|
|
6
|
+
type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Управление состоянием вкл/выкл чекбокса (native prop)
|
|
9
|
+
*/
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Обработчик переключения чекбокса
|
|
13
|
+
*/
|
|
14
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>, payload: {
|
|
15
|
+
checked: boolean;
|
|
16
|
+
name?: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Текст подписи к чекбоксу
|
|
20
|
+
*/
|
|
21
|
+
label?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Текст подсказки снизу
|
|
24
|
+
*/
|
|
25
|
+
hint?: ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Размер компонента
|
|
28
|
+
*/
|
|
29
|
+
size?: 's' | 'm';
|
|
30
|
+
/**
|
|
31
|
+
* Доп. класс чекбокса
|
|
32
|
+
*/
|
|
33
|
+
boxClassName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Доп. класс контента
|
|
36
|
+
*/
|
|
37
|
+
contentClassName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Выравнивание
|
|
40
|
+
*/
|
|
41
|
+
align?: Align;
|
|
42
|
+
/**
|
|
43
|
+
* Дополнительный слот
|
|
44
|
+
*/
|
|
45
|
+
addons?: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Растягивать ли компонент на всю ширину
|
|
48
|
+
*/
|
|
49
|
+
block?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Управление состоянием включен / выключен
|
|
52
|
+
*/
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
56
|
+
* Используйте props disabled
|
|
57
|
+
* Управление состоянием активен / неактивен
|
|
58
|
+
*/
|
|
59
|
+
inactive?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
62
|
+
*/
|
|
63
|
+
dataTestId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Управление неопределенным состоянием чекбокса
|
|
66
|
+
*/
|
|
67
|
+
indeterminate?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Отображение ошибки
|
|
70
|
+
*/
|
|
71
|
+
error?: ReactNode | boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Флаг для скрытия нативного инпута.
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
hiddenInput?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Пропсы для label
|
|
79
|
+
*/
|
|
80
|
+
labelProps?: DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
|
|
81
|
+
};
|
|
82
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size" | "onChange" | "enterKeyHint"> & {
|
|
83
|
+
/**
|
|
84
|
+
* Управление состоянием вкл/выкл чекбокса (native prop)
|
|
85
|
+
*/
|
|
86
|
+
checked?: boolean | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Обработчик переключения чекбокса
|
|
89
|
+
*/
|
|
90
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>, payload: {
|
|
91
|
+
checked: boolean;
|
|
92
|
+
name?: string;
|
|
93
|
+
}) => void) | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Текст подписи к чекбоксу
|
|
96
|
+
*/
|
|
97
|
+
label?: ReactNode;
|
|
98
|
+
/**
|
|
99
|
+
* Текст подсказки снизу
|
|
100
|
+
*/
|
|
101
|
+
hint?: ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* Размер компонента
|
|
104
|
+
*/
|
|
105
|
+
size?: "s" | "m" | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Доп. класс чекбокса
|
|
108
|
+
*/
|
|
109
|
+
boxClassName?: string | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Доп. класс контента
|
|
112
|
+
*/
|
|
113
|
+
contentClassName?: string | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Выравнивание
|
|
116
|
+
*/
|
|
117
|
+
align?: Align | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Дополнительный слот
|
|
120
|
+
*/
|
|
121
|
+
addons?: React.ReactNode;
|
|
122
|
+
/**
|
|
123
|
+
* Растягивать ли компонент на всю ширину
|
|
124
|
+
*/
|
|
125
|
+
block?: boolean | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Управление состоянием включен / выключен
|
|
128
|
+
*/
|
|
129
|
+
disabled?: boolean | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
132
|
+
* Используйте props disabled
|
|
133
|
+
* Управление состоянием активен / неактивен
|
|
134
|
+
*/
|
|
135
|
+
inactive?: boolean | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
138
|
+
*/
|
|
139
|
+
dataTestId?: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Управление неопределенным состоянием чекбокса
|
|
142
|
+
*/
|
|
143
|
+
indeterminate?: boolean | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Отображение ошибки
|
|
146
|
+
*/
|
|
147
|
+
error?: ReactNode | boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Флаг для скрытия нативного инпута.
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
hiddenInput?: boolean | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* Пропсы для label
|
|
155
|
+
*/
|
|
156
|
+
labelProps?: React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> | undefined;
|
|
157
|
+
} & React.RefAttributes<HTMLLabelElement>>;
|
|
158
|
+
export { CheckboxProps, Checkbox };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { View } from "./typings-
|
|
3
|
+
import { View } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
5
5
|
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
6
|
fullscreen?: boolean | undefined;
|
|
@@ -9,7 +9,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
|
|
|
9
9
|
*/
|
|
10
10
|
breakpoint?: number;
|
|
11
11
|
};
|
|
12
|
-
declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-select/shared").BaseSelectProps, "size" | "
|
|
12
|
+
declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("@alfalab/core-components-select/shared").BaseSelectProps, "size" | "hint" | "placeholder" | "onFocus" | "selected" | "multiple" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<import("@alfalab/core-components-button").ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
|
|
13
13
|
options: ((import("@alfalab/core-components-select/shared").OptionShape | import("@alfalab/core-components-select/shared").GroupShape) & {
|
|
14
14
|
icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
|
|
15
15
|
})[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TResponsiveModalContext } from "./typings-
|
|
3
|
+
import { TResponsiveModalContext } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
|
|
5
5
|
export { ResponsiveContext };
|
|
@@ -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" | "
|
|
28
|
+
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "hint" | "placeholder" | "onFocus" | "selected" | "multiple" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
|
|
29
29
|
options: Array<BaseSelectProps['options'][0] & {
|
|
30
30
|
/**
|
|
31
31
|
* Иконка, отображающаяся слева от текстового представления пункта
|
|
@@ -11,7 +11,8 @@ declare const os: {
|
|
|
11
11
|
isIOS: typeof isIOS;
|
|
12
12
|
isApplePlatform: typeof isApplePlatform;
|
|
13
13
|
};
|
|
14
|
-
declare
|
|
14
|
+
declare function getDataTestId(dataTestId: string, element: string): string;
|
|
15
|
+
declare function getDataTestId(dataTestId?: string, element?: string): string | undefined;
|
|
15
16
|
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
16
17
|
declare function easeInOutQuad(x: number): number;
|
|
17
18
|
declare const easingFns: {
|
|
@@ -57,5 +58,9 @@ declare const maskUtils: {
|
|
|
57
58
|
declare const hooks: {
|
|
58
59
|
useCustomWebkitScrollbar: typeof useCustomWebkitScrollbar;
|
|
59
60
|
};
|
|
60
|
-
|
|
61
|
+
declare function preventDefault(e: React.UIEvent): void;
|
|
62
|
+
declare const dom: {
|
|
63
|
+
preventDefault: typeof preventDefault;
|
|
64
|
+
};
|
|
65
|
+
export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
|
|
61
66
|
export * from "./browser-a216f694";
|
|
@@ -9,5 +9,13 @@ type TextSkeletonProps = {
|
|
|
9
9
|
* Ширина строки
|
|
10
10
|
*/
|
|
11
11
|
width?: WidthUnit | WidthUnit[];
|
|
12
|
+
/**
|
|
13
|
+
* Выравнивание элементов по горизонтали
|
|
14
|
+
*/
|
|
15
|
+
align?: 'left' | 'center' | 'right';
|
|
16
|
+
/**
|
|
17
|
+
* Класс для обертки скелетона
|
|
18
|
+
*/
|
|
19
|
+
wrapperClassName?: string;
|
|
12
20
|
};
|
|
13
21
|
export { TextElementType, TextSkeletonProps };
|
|
@@ -4,14 +4,13 @@ import React from "react";
|
|
|
4
4
|
import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC, AriaAttributes, FocusEvent, MouseEvent, RefAttributes, SVGProps } from "react";
|
|
5
5
|
import { HandledEvents } from "react-swipeable/es/types";
|
|
6
6
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
|
-
import { BaseModalProps
|
|
7
|
+
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
8
8
|
import { NavigationBarProps } from "./types-667e33fd";
|
|
9
9
|
import { BackgroundColorType } from "./index-72dda473";
|
|
10
10
|
import { BaseInputProps, BackdropProps } from "./index-ebda875c";
|
|
11
11
|
import { SwipeableHandlers } from "react-swipeable";
|
|
12
|
-
import { ContentProps } from "./typings-08e5596c";
|
|
13
|
-
import { ModalResponsiveProps as ModalProps } from "./typings-08e5596c";
|
|
14
12
|
import { FormControlProps } from "./index-c44170fe";
|
|
13
|
+
import { ModalResponsiveProps as ModalProps } from "./typings-8a2a8ad1";
|
|
15
14
|
import { PopoverProps } from "@alfalab/core-components-popover";
|
|
16
15
|
import { UseSelectWithApplyProps } from "./field/Component";
|
|
17
16
|
type BottomSheetTitleAlign = "center" | "left";
|
|
@@ -328,30 +327,6 @@ type FooterProps = {
|
|
|
328
327
|
*/
|
|
329
328
|
gap?: 16 | 24 | 32;
|
|
330
329
|
};
|
|
331
|
-
interface ControlsProps {
|
|
332
|
-
/**
|
|
333
|
-
* Основной слот
|
|
334
|
-
*/
|
|
335
|
-
primary?: ReactNode;
|
|
336
|
-
/**
|
|
337
|
-
* Дополнительный слот
|
|
338
|
-
*/
|
|
339
|
-
secondary?: ReactNode;
|
|
340
|
-
/**
|
|
341
|
-
* Выравнивание элементов футера
|
|
342
|
-
* @default start
|
|
343
|
-
*/
|
|
344
|
-
layout?: "start" | "center" | "space-between" | "column";
|
|
345
|
-
/**
|
|
346
|
-
* Выравнивание элементов футера (мобильный view)
|
|
347
|
-
* @default start
|
|
348
|
-
*/
|
|
349
|
-
mobileLayout?: "start" | "center" | "space-between" | "column";
|
|
350
|
-
/**
|
|
351
|
-
* Отступы между элементами футера
|
|
352
|
-
*/
|
|
353
|
-
gap?: 16 | 24 | 32;
|
|
354
|
-
}
|
|
355
330
|
declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
356
331
|
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
357
332
|
fullscreen?: boolean | undefined;
|
|
@@ -362,11 +337,20 @@ declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-b
|
|
|
362
337
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
363
338
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
364
339
|
Header: React.FC<HeaderProps>;
|
|
365
|
-
Content: React.FC<import("./typings-
|
|
340
|
+
Content: React.FC<import("./typings-8a2a8ad1").ContentProps>;
|
|
366
341
|
Footer: React.FC<FooterProps>;
|
|
367
342
|
Controls: React.FC<ControlsProps>;
|
|
368
343
|
};
|
|
369
|
-
declare
|
|
344
|
+
declare function getModalTestIds(dataTestId: string): {
|
|
345
|
+
modal: string;
|
|
346
|
+
content: string;
|
|
347
|
+
footer: string;
|
|
348
|
+
controls: string;
|
|
349
|
+
header: string;
|
|
350
|
+
title: string;
|
|
351
|
+
closer: string;
|
|
352
|
+
backButton: string;
|
|
353
|
+
};
|
|
370
354
|
type FooterProps$0 = {
|
|
371
355
|
/**
|
|
372
356
|
* Контент футера
|
|
@@ -402,7 +386,6 @@ type SwipeableBackdropProps = BackdropProps & {
|
|
|
402
386
|
opacityTimeout?: number;
|
|
403
387
|
};
|
|
404
388
|
declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
|
|
405
|
-
declare const Content: FC<ContentProps>;
|
|
406
389
|
type AnyObject = Record<string, any>;
|
|
407
390
|
type OptionShape = {
|
|
408
391
|
/**
|
|
@@ -1052,9 +1035,10 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
|
|
|
1052
1035
|
*/
|
|
1053
1036
|
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
1054
1037
|
};
|
|
1055
|
-
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, InputProps, Input, ModalResponsive as Modal,
|
|
1038
|
+
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, InputProps, Input, ModalResponsive as Modal, getModalTestIds, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
|
|
1056
1039
|
export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps };
|
|
1057
|
-
export { ModalResponsiveProps as ModalProps } from "./typings-
|
|
1058
|
-
export
|
|
1040
|
+
export { ModalResponsiveProps as ModalProps } from "./typings-8a2a8ad1";
|
|
1041
|
+
export { ModalContext } from "./Context-c2e6f1b2";
|
|
1042
|
+
export type { ContentProps as ModalContentProps } from "./typings-8a2a8ad1";
|
|
1059
1043
|
export * from "./Component.desktop-63dec22f";
|
|
1060
1044
|
export * from "./Component.mobile-96988a65";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import { TextSkeletonProps } from "./types-
|
|
4
|
+
import { TextSkeletonProps } from "./types-1328ead9";
|
|
5
5
|
type SkeletonProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Флаг, явно задающий состояние, при котором контент закрывается прелоадером
|
package/cssm/utils/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var getIcon = function (variant, size) {
|
|
|
11
11
|
if (variant === 'compact') {
|
|
12
12
|
return size === 'xxs' ? MoreSIcon.MoreSIcon : MoreMIcon.MoreMIcon;
|
|
13
13
|
}
|
|
14
|
-
return size === 'xxs' ? ChevronDownCompactSIcon.ChevronDownCompactSIcon : ChevronDownMIcon.ChevronDownMIcon;
|
|
14
|
+
return size === 'xxs' || size === 'xs' ? ChevronDownCompactSIcon.ChevronDownCompactSIcon : ChevronDownMIcon.ChevronDownMIcon;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
exports.getIcon = getIcon;
|
|
@@ -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" | "
|
|
28
|
+
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "hint" | "placeholder" | "onFocus" | "selected" | "multiple" | "options" | "showSearch" | "searchProps" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
|
|
29
29
|
options: Array<BaseSelectProps['options'][0] & {
|
|
30
30
|
/**
|
|
31
31
|
* Иконка, отображающаяся слева от текстового представления пункта
|
|
@@ -21,7 +21,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
22
22
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
23
23
|
|
|
24
|
-
var styles = {"container":"picker-
|
|
24
|
+
var styles = {"container":"picker-button__container_1ol27","optionsPopover":"picker-button__optionsPopover_1ol27","sideGap":"picker-button__sideGap_1ol27","option":"picker-button__option_1ol27"};
|
|
25
25
|
require('./../index.css')
|
|
26
26
|
|
|
27
27
|
var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
|
|
@@ -49,5 +49,8 @@ type BadgeProps = {
|
|
|
49
49
|
*/
|
|
50
50
|
dataTestId?: string;
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Используйте StatusBadge или Indicator
|
|
54
|
+
*/
|
|
52
55
|
declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
|
|
53
56
|
export { IconColorType, BadgeProps, Badge };
|