@salutejs/plasma-web 1.571.1-canary.1868.14054564913.0 → 1.572.0-canary.1870.14062223595.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/api/plasma-web.api.md +1490 -1488
- package/components/Accordion/Accordion.d.ts +10 -9
- package/components/Attach/Attach.d.ts +159 -158
- package/components/Autocomplete/Autocomplete.d.ts +193 -192
- package/components/Avatar/Avatar.d.ts +47 -46
- package/components/AvatarGroup/AvatarGroup.d.ts +2 -1
- package/components/Badge/Badge.d.ts +41 -40
- package/components/Breadcrumbs/Breadcrumbs.d.ts +4 -3
- package/components/Button/Button.d.ts +36 -35
- package/components/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/components/Cell/Cell.d.ts +20 -19
- package/components/Checkbox/Checkbox.d.ts +1 -1
- package/components/Chip/Chip.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.d.ts +1 -0
- package/components/Combobox/Combobox.d.ts +953 -953
- package/components/Combobox/Legacy/Combobox.d.ts +37 -36
- package/components/Counter/Counter.d.ts +1 -0
- package/components/DatePicker/DatePicker.d.ts +51 -50
- package/components/Divider/Divider.d.ts +1 -0
- package/components/Drawer/Drawer.d.ts +19 -18
- package/components/Dropdown/Dropdown.d.ts +52 -52
- package/components/Dropdown/components/DropdownItem.d.ts +14 -14
- package/components/Dropzone/Dropzone.d.ts +16 -15
- package/components/Editable/Editable.d.ts +1 -0
- package/components/EmptyState/EmptyState.d.ts +1 -0
- package/components/Flow/Flow.d.ts +2 -1
- package/components/Grid/Grid.d.ts +1 -0
- package/components/IconButton/IconButton.d.ts +36 -35
- package/components/Image/Image.d.ts +4 -3
- package/components/Indicator/Indicator.d.ts +1 -0
- package/components/Link/Link.d.ts +1 -0
- package/components/LinkButton/LinkButton.d.ts +9 -8
- package/components/Mask/Mask.d.ts +225 -224
- package/components/Note/Note.d.ts +10 -9
- package/components/NumberFormat/NumberFormat.d.ts +1 -1
- package/components/NumberInput/NumberInput.d.ts +39 -38
- package/components/Pagination/Pagination.d.ts +1 -0
- package/components/Popover/Popover.d.ts +1 -0
- package/components/Price/Price.d.ts +1 -0
- package/components/Progress/Progress.d.ts +1 -0
- package/components/Radiobox/Radiobox.d.ts +1 -1
- package/components/Range/Range.d.ts +106 -105
- package/components/Rating/Rating.d.ts +14 -13
- package/components/Segment/Segment.d.ts +9 -8
- package/components/Select/Select.d.ts +244 -244
- package/components/Sheet/Sheet.d.ts +1 -0
- package/components/Skeleton/Skeleton.d.ts +5 -4
- package/components/Slider/Slider.d.ts +113 -104
- package/components/Steps/Steps.d.ts +1 -0
- package/components/Switch/Switch.d.ts +1 -1
- package/components/Tabs/TabItem.d.ts +14 -14
- package/components/Tabs/Tabs.d.ts +7 -5
- package/components/TextArea/TextArea.d.ts +206 -205
- package/components/TextArea/index.d.ts +4 -4
- package/components/TextField/TextField.d.ts +269 -261
- package/components/TextFieldGroup/TextFieldGroup.d.ts +13 -12
- package/components/Toast/Toast.d.ts +1 -0
- package/components/Tokens/Colors/Colors.styles.d.ts +26 -25
- package/components/Toolbar/Toolbar.d.ts +6 -5
- package/components/Tree/Tree.d.ts +1 -0
- package/components/Typography/Old/index.d.ts +10 -9
- package/components/Typography/Typography.d.ts +52 -51
- package/mixins/index.d.ts +2 -1
- package/package.json +11 -11
- package/temp/plasma-web.api.md +1490 -1488
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
/**
|
2
3
|
* Компонент Badge.
|
3
4
|
*/
|
@@ -28,59 +29,59 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
28
29
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
29
30
|
};
|
30
31
|
}> & ((import("react").HTMLAttributes<HTMLDivElement> & {
|
31
|
-
text?: string;
|
32
|
-
customColor?: string;
|
33
|
-
customBackgroundColor?: string;
|
34
|
-
maxWidth?: import("
|
35
|
-
size?: string;
|
36
|
-
view?: string;
|
32
|
+
text?: string | undefined;
|
33
|
+
customColor?: string | undefined;
|
34
|
+
customBackgroundColor?: string | undefined;
|
35
|
+
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
36
|
+
size?: string | undefined;
|
37
|
+
view?: string | undefined;
|
37
38
|
} & {
|
38
39
|
contentLeft?: import("react").ReactNode;
|
39
|
-
contentRight?:
|
40
|
+
contentRight?: undefined;
|
40
41
|
} & {
|
41
|
-
clear?: true;
|
42
|
-
pilled?:
|
43
|
-
transparent?:
|
42
|
+
clear?: true | undefined;
|
43
|
+
pilled?: undefined;
|
44
|
+
transparent?: undefined;
|
44
45
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
45
|
-
text?: string;
|
46
|
-
customColor?: string;
|
47
|
-
customBackgroundColor?: string;
|
48
|
-
maxWidth?: import("
|
49
|
-
size?: string;
|
50
|
-
view?: string;
|
46
|
+
text?: string | undefined;
|
47
|
+
customColor?: string | undefined;
|
48
|
+
customBackgroundColor?: string | undefined;
|
49
|
+
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
50
|
+
size?: string | undefined;
|
51
|
+
view?: string | undefined;
|
51
52
|
} & {
|
52
53
|
contentLeft?: import("react").ReactNode;
|
53
|
-
contentRight?:
|
54
|
+
contentRight?: undefined;
|
54
55
|
} & {
|
55
|
-
pilled?: boolean;
|
56
|
-
transparent?: boolean;
|
57
|
-
clear?:
|
56
|
+
pilled?: boolean | undefined;
|
57
|
+
transparent?: boolean | undefined;
|
58
|
+
clear?: undefined;
|
58
59
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
59
|
-
text?: string;
|
60
|
-
customColor?: string;
|
61
|
-
customBackgroundColor?: string;
|
62
|
-
maxWidth?: import("
|
63
|
-
size?: string;
|
64
|
-
view?: string;
|
60
|
+
text?: string | undefined;
|
61
|
+
customColor?: string | undefined;
|
62
|
+
customBackgroundColor?: string | undefined;
|
63
|
+
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
64
|
+
size?: string | undefined;
|
65
|
+
view?: string | undefined;
|
65
66
|
} & {
|
66
|
-
contentLeft?:
|
67
|
+
contentLeft?: undefined;
|
67
68
|
contentRight?: import("react").ReactNode;
|
68
69
|
} & {
|
69
|
-
clear?: true;
|
70
|
-
pilled?:
|
71
|
-
transparent?:
|
70
|
+
clear?: true | undefined;
|
71
|
+
pilled?: undefined;
|
72
|
+
transparent?: undefined;
|
72
73
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
73
|
-
text?: string;
|
74
|
-
customColor?: string;
|
75
|
-
customBackgroundColor?: string;
|
76
|
-
maxWidth?: import("
|
77
|
-
size?: string;
|
78
|
-
view?: string;
|
74
|
+
text?: string | undefined;
|
75
|
+
customColor?: string | undefined;
|
76
|
+
customBackgroundColor?: string | undefined;
|
77
|
+
maxWidth?: import("csstype").Property.Width<string | number> | undefined;
|
78
|
+
size?: string | undefined;
|
79
|
+
view?: string | undefined;
|
79
80
|
} & {
|
80
|
-
contentLeft?:
|
81
|
+
contentLeft?: undefined;
|
81
82
|
contentRight?: import("react").ReactNode;
|
82
83
|
} & {
|
83
|
-
pilled?: boolean;
|
84
|
-
transparent?: boolean;
|
85
|
-
clear?:
|
84
|
+
pilled?: boolean | undefined;
|
85
|
+
transparent?: boolean | undefined;
|
86
|
+
clear?: undefined;
|
86
87
|
} & import("react").RefAttributes<HTMLDivElement>))>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
/**
|
2
3
|
* Breadcrumbs
|
3
4
|
*/
|
@@ -12,9 +13,9 @@ export declare const Breadcrumbs: import("react").FunctionComponent<import("@sal
|
|
12
13
|
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
13
14
|
};
|
14
15
|
}> & import("react").HTMLAttributes<HTMLDivElement> & {
|
15
|
-
view?: string;
|
16
|
-
size?: string;
|
16
|
+
view?: string | undefined;
|
17
|
+
size?: string | undefined;
|
17
18
|
separator?: import("react").ReactNode;
|
18
19
|
items: import("@salutejs/plasma-new-hope/types/components/Breadcrumbs/Breadcrumbs.types").BreadcrumbsItem[];
|
19
|
-
showItems?: number;
|
20
|
+
showItems?: number | undefined;
|
20
21
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
/**
|
2
3
|
* Компонент Button.
|
3
4
|
*/
|
@@ -39,46 +40,46 @@ export declare const Button: import("react").FunctionComponent<import("@salutejs
|
|
39
40
|
filled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
40
41
|
fixed: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
41
42
|
};
|
42
|
-
}> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
|
43
|
-
text?: string;
|
43
|
+
}> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
44
|
+
text?: string | undefined;
|
44
45
|
contentLeft?: import("react").ReactNode;
|
45
|
-
contentPlacing?: "default" | "relaxed";
|
46
|
-
isLoading?: boolean;
|
46
|
+
contentPlacing?: ("default" | "relaxed") | undefined;
|
47
|
+
isLoading?: boolean | undefined;
|
47
48
|
loader?: import("react").ReactNode;
|
48
|
-
stretch?: boolean;
|
49
|
-
stretching?: "auto" | "fixed" | "filled";
|
50
|
-
square?: boolean;
|
51
|
-
focused?: boolean;
|
52
|
-
disabled?: boolean;
|
53
|
-
pin?:
|
54
|
-
view?: string;
|
55
|
-
size?: string;
|
56
|
-
outlined?: boolean;
|
57
|
-
shiftLeft?: boolean;
|
58
|
-
shiftRight?: boolean;
|
59
|
-
blur?:
|
49
|
+
stretch?: boolean | undefined;
|
50
|
+
stretching?: ("auto" | "fixed" | "filled") | undefined;
|
51
|
+
square?: boolean | undefined;
|
52
|
+
focused?: boolean | undefined;
|
53
|
+
disabled?: boolean | undefined;
|
54
|
+
pin?: "square-square" | "square-clear" | "clear-square" | "clear-clear" | "clear-circle" | "circle-clear" | "circle-circle" | undefined;
|
55
|
+
view?: string | undefined;
|
56
|
+
size?: string | undefined;
|
57
|
+
outlined?: boolean | undefined;
|
58
|
+
shiftLeft?: boolean | undefined;
|
59
|
+
shiftRight?: boolean | undefined;
|
60
|
+
blur?: "small" | "medium" | "large" | undefined;
|
60
61
|
} & {
|
61
|
-
value?: string | number;
|
62
|
-
contentRight?:
|
63
|
-
} & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps & {
|
64
|
-
text?: string;
|
62
|
+
value?: string | number | undefined;
|
63
|
+
contentRight?: undefined;
|
64
|
+
} & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
65
|
+
text?: string | undefined;
|
65
66
|
contentLeft?: import("react").ReactNode;
|
66
|
-
contentPlacing?: "default" | "relaxed";
|
67
|
-
isLoading?: boolean;
|
67
|
+
contentPlacing?: ("default" | "relaxed") | undefined;
|
68
|
+
isLoading?: boolean | undefined;
|
68
69
|
loader?: import("react").ReactNode;
|
69
|
-
stretch?: boolean;
|
70
|
-
stretching?: "auto" | "fixed" | "filled";
|
71
|
-
square?: boolean;
|
72
|
-
focused?: boolean;
|
73
|
-
disabled?: boolean;
|
74
|
-
pin?:
|
75
|
-
view?: string;
|
76
|
-
size?: string;
|
77
|
-
outlined?: boolean;
|
78
|
-
shiftLeft?: boolean;
|
79
|
-
shiftRight?: boolean;
|
80
|
-
blur?:
|
70
|
+
stretch?: boolean | undefined;
|
71
|
+
stretching?: ("auto" | "fixed" | "filled") | undefined;
|
72
|
+
square?: boolean | undefined;
|
73
|
+
focused?: boolean | undefined;
|
74
|
+
disabled?: boolean | undefined;
|
75
|
+
pin?: "square-square" | "square-clear" | "clear-square" | "clear-clear" | "clear-circle" | "circle-clear" | "circle-circle" | undefined;
|
76
|
+
view?: string | undefined;
|
77
|
+
size?: string | undefined;
|
78
|
+
outlined?: boolean | undefined;
|
79
|
+
shiftLeft?: boolean | undefined;
|
80
|
+
shiftRight?: boolean | undefined;
|
81
|
+
blur?: "small" | "medium" | "large" | undefined;
|
81
82
|
} & {
|
82
|
-
value?:
|
83
|
+
value?: undefined;
|
83
84
|
contentRight?: import("react").ReactNode;
|
84
85
|
} & import("react").RefAttributes<HTMLButtonElement>))>;
|
@@ -1,7 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
/**
|
2
3
|
* Группа кнопок.
|
3
4
|
*/
|
4
5
|
export declare const ButtonGroup: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
6
|
+
/**
|
7
|
+
* Группа кнопок.
|
8
|
+
*/
|
5
9
|
view: {
|
6
10
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
11
|
primary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
/**
|
2
3
|
* Кнопка.
|
3
4
|
*/
|
@@ -12,33 +13,33 @@ export declare const Cell: import("react").FunctionComponent<import("@salutejs/p
|
|
12
13
|
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
13
14
|
};
|
14
15
|
}> & (({
|
15
|
-
size?: string;
|
16
|
-
view?: string;
|
16
|
+
size?: string | undefined;
|
17
|
+
view?: string | undefined;
|
17
18
|
contentLeft?: import("react").ReactNode;
|
18
19
|
contentRight?: import("react").ReactNode;
|
19
|
-
alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
|
20
|
-
alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
|
21
|
-
stretching?: "fixed" | "filled" |
|
20
|
+
alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp | undefined;
|
21
|
+
alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp | undefined;
|
22
|
+
stretching?: "auto" | "fixed" | "filled" | undefined;
|
22
23
|
content?: import("react").ReactNode;
|
23
|
-
description?: string;
|
24
|
+
description?: string | undefined;
|
24
25
|
} & {
|
25
|
-
title?: string;
|
26
|
-
subtitle?: string;
|
27
|
-
label?: string;
|
28
|
-
children?:
|
26
|
+
title?: string | undefined;
|
27
|
+
subtitle?: string | undefined;
|
28
|
+
label?: string | undefined;
|
29
|
+
children?: undefined;
|
29
30
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>) | ({
|
30
|
-
size?: string;
|
31
|
-
view?: string;
|
31
|
+
size?: string | undefined;
|
32
|
+
view?: string | undefined;
|
32
33
|
contentLeft?: import("react").ReactNode;
|
33
34
|
contentRight?: import("react").ReactNode;
|
34
|
-
alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
|
35
|
-
alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp;
|
36
|
-
stretching?: "fixed" | "filled" |
|
35
|
+
alignContentLeft?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp | undefined;
|
36
|
+
alignContentRight?: import("@salutejs/plasma-new-hope/types/components/Cell/Cell.types").AlignProp | undefined;
|
37
|
+
stretching?: "auto" | "fixed" | "filled" | undefined;
|
37
38
|
content?: import("react").ReactNode;
|
38
|
-
description?: string;
|
39
|
+
description?: string | undefined;
|
39
40
|
} & {
|
40
|
-
title?:
|
41
|
-
subtitle?:
|
42
|
-
label?:
|
41
|
+
title?: undefined;
|
42
|
+
subtitle?: undefined;
|
43
|
+
label?: undefined;
|
43
44
|
children?: import("react").ReactNode;
|
44
45
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>))>;
|
@@ -22,7 +22,7 @@ declare const CheckboxComponent: import("react").FunctionComponent<import("@salu
|
|
22
22
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
23
23
|
};
|
24
24
|
}> & import("@salutejs/plasma-new-hope/types/components/Checkbox/Checkbox.types").CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
25
|
-
export type CheckboxProps = ComponentProps<typeof CheckboxComponent>;
|
25
|
+
export declare type CheckboxProps = ComponentProps<typeof CheckboxComponent>;
|
26
26
|
/**
|
27
27
|
* Флажок или чекбокс. Позволяет пользователю управлять параметром с двумя состояниями — ☑ включено и ☐ отключено.
|
28
28
|
*/
|