@salutejs/sdds-finportal 0.165.2-canary.1557.11803291365.0 → 0.166.0-canary.1550.11799501370.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-finportal.api.md +59 -240
- package/components/Attach/Attach.d.ts +8 -8
- package/components/Button/Button.d.ts +4 -4
- package/components/Combobox/Combobox.d.ts +82 -80
- package/components/Combobox/Combobox.js +10 -1
- package/components/Combobox/index.d.ts +1 -465
- package/components/Combobox/index.js +7 -3
- package/components/IconButton/IconButton.d.ts +2 -2
- package/components/Mask/Mask.d.ts +16 -16
- package/components/Radiobox/Radiobox.d.ts +2 -2
- package/components/Select/Select.config.d.ts +15 -7
- package/components/Select/Select.config.js +29 -21
- package/components/Select/Select.d.ts +59 -50
- package/components/Select/Select.js +5 -6
- package/components/Switch/Switch.config.d.ts +0 -7
- package/components/Switch/Switch.config.js +5 -12
- package/components/Switch/Switch.d.ts +0 -12
- package/components/TextArea/TextArea.d.ts +16 -16
- package/components/TextField/TextField.d.ts +16 -16
- package/es/components/Combobox/Combobox.js +11 -2
- package/es/components/Combobox/index.js +1 -3
- package/es/components/Select/Select.config.js +30 -22
- package/es/components/Select/Select.js +5 -4
- package/es/components/Switch/Switch.config.js +5 -12
- package/package.json +3 -3
- package/temp/sdds-finportal.api.md +5447 -0
@@ -21,7 +21,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
|
|
21
21
|
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
22
22
|
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
23
23
|
};
|
24
|
-
}> & ((import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
24
|
+
}> & ((import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
25
25
|
text?: string | undefined;
|
26
26
|
contentLeft?: import("react").ReactNode;
|
27
27
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -44,7 +44,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
|
|
44
44
|
contentRight?: undefined;
|
45
45
|
} & import("@salutejs/plasma-new-hope/types/components/Attach/Attach.types").BaseAttachProps & {
|
46
46
|
buttonType?: "button" | undefined;
|
47
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
47
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
48
48
|
text?: string | undefined;
|
49
49
|
contentLeft?: import("react").ReactNode;
|
50
50
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -70,7 +70,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
|
|
70
70
|
} & {
|
71
71
|
value?: undefined;
|
72
72
|
contentRight?: import("react").ReactNode;
|
73
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
73
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
74
74
|
text?: string | undefined;
|
75
75
|
contentLeft?: import("react").ReactNode;
|
76
76
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -94,7 +94,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
|
|
94
94
|
} & import("@salutejs/plasma-new-hope/types/components/Attach/Attach.types").BaseAttachProps & {
|
95
95
|
buttonType?: "iconButton" | undefined;
|
96
96
|
icon?: import("react").ReactNode;
|
97
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
97
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
98
98
|
text?: string | undefined;
|
99
99
|
contentLeft?: import("react").ReactNode;
|
100
100
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -121,7 +121,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
|
|
121
121
|
} & {
|
122
122
|
value?: undefined;
|
123
123
|
contentRight?: import("react").ReactNode;
|
124
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
124
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
125
125
|
text?: string | undefined;
|
126
126
|
contentLeft?: import("react").ReactNode;
|
127
127
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -147,7 +147,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
|
|
147
147
|
} & {
|
148
148
|
value?: string | number | undefined;
|
149
149
|
contentRight?: undefined;
|
150
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
150
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
151
151
|
text?: string | undefined;
|
152
152
|
contentLeft?: import("react").ReactNode;
|
153
153
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -170,7 +170,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
|
|
170
170
|
contentRight?: import("react").ReactNode;
|
171
171
|
} & import("@salutejs/plasma-new-hope/types/components/Attach/Attach.types").BaseAttachProps & {
|
172
172
|
buttonType?: "button" | undefined;
|
173
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
173
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
174
174
|
text?: string | undefined;
|
175
175
|
contentLeft?: import("react").ReactNode;
|
176
176
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -197,7 +197,7 @@ export declare const Attach: import("react").FunctionComponent<import("@salutejs
|
|
197
197
|
} & {
|
198
198
|
value?: string | number | undefined;
|
199
199
|
contentRight?: undefined;
|
200
|
-
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
200
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
201
201
|
text?: string | undefined;
|
202
202
|
contentLeft?: import("react").ReactNode;
|
203
203
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -34,7 +34,7 @@ declare const ButtonComponent: import("react").FunctionComponent<import("@salute
|
|
34
34
|
filled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
35
35
|
fixed: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
36
36
|
};
|
37
|
-
}> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
37
|
+
}> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
38
38
|
text?: string | undefined;
|
39
39
|
contentLeft?: import("react").ReactNode;
|
40
40
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -55,7 +55,7 @@ declare const ButtonComponent: import("react").FunctionComponent<import("@salute
|
|
55
55
|
} & {
|
56
56
|
value?: string | number | undefined;
|
57
57
|
contentRight?: undefined;
|
58
|
-
} & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
58
|
+
} & 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> & {
|
59
59
|
text?: string | undefined;
|
60
60
|
contentLeft?: import("react").ReactNode;
|
61
61
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -116,7 +116,7 @@ export declare const Button: import("react").FunctionComponent<import("@salutejs
|
|
116
116
|
filled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
117
117
|
fixed: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
118
118
|
};
|
119
|
-
}> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
119
|
+
}> & ((Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/styled-components").AsProps<any> & {
|
120
120
|
text?: string | undefined;
|
121
121
|
contentLeft?: import("react").ReactNode;
|
122
122
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -137,7 +137,7 @@ export declare const Button: import("react").FunctionComponent<import("@salutejs
|
|
137
137
|
} & {
|
138
138
|
value?: string | number | undefined;
|
139
139
|
contentRight?: undefined;
|
140
|
-
} & import("react").RefAttributes<HTMLButtonElement>) | (Omit<import("react").ButtonHTMLAttributes<HTMLElement>, "value"> & Omit<import("react").AnchorHTMLAttributes<HTMLElement>, "type"> & import("@salutejs/plasma-new-hope/
|
140
|
+
} & 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> & {
|
141
141
|
text?: string | undefined;
|
142
142
|
contentLeft?: import("react").ReactNode;
|
143
143
|
contentPlacing?: ("default" | "relaxed") | undefined;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';
|
2
|
+
import React from 'react';
|
3
|
+
declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & Pick<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
4
|
view: {
|
4
5
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
6
|
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -23,21 +24,21 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
23
24
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
24
25
|
};
|
25
26
|
}> & (({
|
26
|
-
items:
|
27
|
+
items: ItemOption[];
|
27
28
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
28
29
|
label?: string | undefined;
|
29
30
|
placeholder?: string | undefined;
|
30
31
|
helperText?: string | undefined;
|
31
|
-
contentLeft?:
|
32
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
32
33
|
textBefore?: string | undefined;
|
33
34
|
textAfter?: string | undefined;
|
34
35
|
variant?: "normal" | "tight" | undefined;
|
35
36
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
36
37
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
37
38
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
38
|
-
portal?:
|
39
|
-
renderItem?: ((item:
|
40
|
-
filter?: ((item:
|
39
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
40
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
41
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
41
42
|
closeAfterSelect?: boolean | undefined;
|
42
43
|
size?: string | undefined;
|
43
44
|
view?: string | undefined;
|
@@ -58,22 +59,22 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
58
59
|
} & {
|
59
60
|
required: true;
|
60
61
|
optional?: false | undefined;
|
61
|
-
} & Omit<
|
62
|
-
items:
|
62
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
63
|
+
items: ItemOption[];
|
63
64
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
64
65
|
label?: string | undefined;
|
65
66
|
placeholder?: string | undefined;
|
66
67
|
helperText?: string | undefined;
|
67
|
-
contentLeft?:
|
68
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
68
69
|
textBefore?: string | undefined;
|
69
70
|
textAfter?: string | undefined;
|
70
71
|
variant?: "normal" | "tight" | undefined;
|
71
72
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
72
73
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
73
74
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
74
|
-
portal?:
|
75
|
-
renderItem?: ((item:
|
76
|
-
filter?: ((item:
|
75
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
76
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
77
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
77
78
|
closeAfterSelect?: boolean | undefined;
|
78
79
|
size?: string | undefined;
|
79
80
|
view?: string | undefined;
|
@@ -94,22 +95,22 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
94
95
|
} & {
|
95
96
|
optional?: true | undefined;
|
96
97
|
required?: false | undefined;
|
97
|
-
} & Omit<
|
98
|
-
items:
|
98
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
99
|
+
items: ItemOption[];
|
99
100
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
100
101
|
label?: string | undefined;
|
101
102
|
placeholder?: string | undefined;
|
102
103
|
helperText?: string | undefined;
|
103
|
-
contentLeft?:
|
104
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
104
105
|
textBefore?: string | undefined;
|
105
106
|
textAfter?: string | undefined;
|
106
107
|
variant?: "normal" | "tight" | undefined;
|
107
108
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
108
109
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
109
110
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
110
|
-
portal?:
|
111
|
-
renderItem?: ((item:
|
112
|
-
filter?: ((item:
|
111
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
112
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
113
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
113
114
|
closeAfterSelect?: boolean | undefined;
|
114
115
|
size?: string | undefined;
|
115
116
|
view?: string | undefined;
|
@@ -124,28 +125,28 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
124
125
|
onChange?: ((value: string[]) => void) | undefined;
|
125
126
|
isTargetAmount?: true | undefined;
|
126
127
|
targetAmount?: number | undefined;
|
127
|
-
renderValue?: ((item:
|
128
|
+
renderValue?: ((item: ItemOption) => string) | undefined;
|
128
129
|
} & {
|
129
130
|
requiredPlacement?: "right" | "left" | undefined;
|
130
131
|
} & {
|
131
132
|
required: true;
|
132
133
|
optional?: false | undefined;
|
133
|
-
} & Omit<
|
134
|
-
items:
|
134
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
135
|
+
items: ItemOption[];
|
135
136
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
136
137
|
label?: string | undefined;
|
137
138
|
placeholder?: string | undefined;
|
138
139
|
helperText?: string | undefined;
|
139
|
-
contentLeft?:
|
140
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
140
141
|
textBefore?: string | undefined;
|
141
142
|
textAfter?: string | undefined;
|
142
143
|
variant?: "normal" | "tight" | undefined;
|
143
144
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
144
145
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
145
146
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
146
|
-
portal?:
|
147
|
-
renderItem?: ((item:
|
148
|
-
filter?: ((item:
|
147
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
148
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
149
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
149
150
|
closeAfterSelect?: boolean | undefined;
|
150
151
|
size?: string | undefined;
|
151
152
|
view?: string | undefined;
|
@@ -160,28 +161,28 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
160
161
|
onChange?: ((value: string[]) => void) | undefined;
|
161
162
|
isTargetAmount?: true | undefined;
|
162
163
|
targetAmount?: number | undefined;
|
163
|
-
renderValue?: ((item:
|
164
|
+
renderValue?: ((item: ItemOption) => string) | undefined;
|
164
165
|
} & {
|
165
166
|
requiredPlacement?: "right" | "left" | undefined;
|
166
167
|
} & {
|
167
168
|
optional?: true | undefined;
|
168
169
|
required?: false | undefined;
|
169
|
-
} & Omit<
|
170
|
-
items:
|
170
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
171
|
+
items: ItemOption[];
|
171
172
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
172
173
|
label?: string | undefined;
|
173
174
|
placeholder?: string | undefined;
|
174
175
|
helperText?: string | undefined;
|
175
|
-
contentLeft?:
|
176
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
176
177
|
textBefore?: string | undefined;
|
177
178
|
textAfter?: string | undefined;
|
178
179
|
variant?: "normal" | "tight" | undefined;
|
179
180
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
180
181
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
181
182
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
182
|
-
portal?:
|
183
|
-
renderItem?: ((item:
|
184
|
-
filter?: ((item:
|
183
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
184
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
185
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
185
186
|
closeAfterSelect?: boolean | undefined;
|
186
187
|
size?: string | undefined;
|
187
188
|
view?: string | undefined;
|
@@ -202,22 +203,22 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
202
203
|
} & {
|
203
204
|
required: true;
|
204
205
|
optional?: false | undefined;
|
205
|
-
} & Omit<
|
206
|
-
items:
|
206
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
207
|
+
items: ItemOption[];
|
207
208
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
208
209
|
label?: string | undefined;
|
209
210
|
placeholder?: string | undefined;
|
210
211
|
helperText?: string | undefined;
|
211
|
-
contentLeft?:
|
212
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
212
213
|
textBefore?: string | undefined;
|
213
214
|
textAfter?: string | undefined;
|
214
215
|
variant?: "normal" | "tight" | undefined;
|
215
216
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
216
217
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
217
218
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
218
|
-
portal?:
|
219
|
-
renderItem?: ((item:
|
220
|
-
filter?: ((item:
|
219
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
220
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
221
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
221
222
|
closeAfterSelect?: boolean | undefined;
|
222
223
|
size?: string | undefined;
|
223
224
|
view?: string | undefined;
|
@@ -238,22 +239,22 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
238
239
|
} & {
|
239
240
|
optional?: true | undefined;
|
240
241
|
required?: false | undefined;
|
241
|
-
} & Omit<
|
242
|
-
items:
|
242
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
243
|
+
items: ItemOption[];
|
243
244
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
244
245
|
label?: string | undefined;
|
245
246
|
placeholder?: string | undefined;
|
246
247
|
helperText?: string | undefined;
|
247
|
-
contentLeft?:
|
248
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
248
249
|
textBefore?: string | undefined;
|
249
250
|
textAfter?: string | undefined;
|
250
251
|
variant?: "normal" | "tight" | undefined;
|
251
252
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
252
253
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
253
254
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
254
|
-
portal?:
|
255
|
-
renderItem?: ((item:
|
256
|
-
filter?: ((item:
|
255
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
256
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
257
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
257
258
|
closeAfterSelect?: boolean | undefined;
|
258
259
|
size?: string | undefined;
|
259
260
|
view?: string | undefined;
|
@@ -268,28 +269,28 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
268
269
|
onChange?: ((value: string[]) => void) | undefined;
|
269
270
|
isTargetAmount?: true | undefined;
|
270
271
|
targetAmount?: number | undefined;
|
271
|
-
renderValue?: ((item:
|
272
|
+
renderValue?: ((item: ItemOption) => string) | undefined;
|
272
273
|
} & {
|
273
274
|
requiredPlacement?: "right" | "left" | undefined;
|
274
275
|
} & {
|
275
276
|
required: true;
|
276
277
|
optional?: false | undefined;
|
277
|
-
} & Omit<
|
278
|
-
items:
|
278
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
279
|
+
items: ItemOption[];
|
279
280
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
280
281
|
label?: string | undefined;
|
281
282
|
placeholder?: string | undefined;
|
282
283
|
helperText?: string | undefined;
|
283
|
-
contentLeft?:
|
284
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
284
285
|
textBefore?: string | undefined;
|
285
286
|
textAfter?: string | undefined;
|
286
287
|
variant?: "normal" | "tight" | undefined;
|
287
288
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
288
289
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
289
290
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
290
|
-
portal?:
|
291
|
-
renderItem?: ((item:
|
292
|
-
filter?: ((item:
|
291
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
292
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
293
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
293
294
|
closeAfterSelect?: boolean | undefined;
|
294
295
|
size?: string | undefined;
|
295
296
|
view?: string | undefined;
|
@@ -304,28 +305,28 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
304
305
|
onChange?: ((value: string[]) => void) | undefined;
|
305
306
|
isTargetAmount?: true | undefined;
|
306
307
|
targetAmount?: number | undefined;
|
307
|
-
renderValue?: ((item:
|
308
|
+
renderValue?: ((item: ItemOption) => string) | undefined;
|
308
309
|
} & {
|
309
310
|
requiredPlacement?: "right" | "left" | undefined;
|
310
311
|
} & {
|
311
312
|
optional?: true | undefined;
|
312
313
|
required?: false | undefined;
|
313
|
-
} & Omit<
|
314
|
-
items:
|
314
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
315
|
+
items: ItemOption[];
|
315
316
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
316
317
|
label?: string | undefined;
|
317
318
|
placeholder?: string | undefined;
|
318
319
|
helperText?: string | undefined;
|
319
|
-
contentLeft?:
|
320
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
320
321
|
textBefore?: string | undefined;
|
321
322
|
textAfter?: string | undefined;
|
322
323
|
variant?: "normal" | "tight" | undefined;
|
323
324
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
324
325
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
325
326
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
326
|
-
portal?:
|
327
|
-
renderItem?: ((item:
|
328
|
-
filter?: ((item:
|
327
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
328
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
329
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
329
330
|
closeAfterSelect?: boolean | undefined;
|
330
331
|
size?: string | undefined;
|
331
332
|
view?: string | undefined;
|
@@ -346,22 +347,22 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
346
347
|
} & {
|
347
348
|
required: true;
|
348
349
|
optional?: false | undefined;
|
349
|
-
} & Omit<
|
350
|
-
items:
|
350
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
351
|
+
items: ItemOption[];
|
351
352
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
352
353
|
label?: string | undefined;
|
353
354
|
placeholder?: string | undefined;
|
354
355
|
helperText?: string | undefined;
|
355
|
-
contentLeft?:
|
356
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
356
357
|
textBefore?: string | undefined;
|
357
358
|
textAfter?: string | undefined;
|
358
359
|
variant?: "normal" | "tight" | undefined;
|
359
360
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
360
361
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
361
362
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
362
|
-
portal?:
|
363
|
-
renderItem?: ((item:
|
364
|
-
filter?: ((item:
|
363
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
364
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
365
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
365
366
|
closeAfterSelect?: boolean | undefined;
|
366
367
|
size?: string | undefined;
|
367
368
|
view?: string | undefined;
|
@@ -382,22 +383,22 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
382
383
|
} & {
|
383
384
|
optional?: true | undefined;
|
384
385
|
required?: false | undefined;
|
385
|
-
} & Omit<
|
386
|
-
items:
|
386
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
387
|
+
items: ItemOption[];
|
387
388
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
388
389
|
label?: string | undefined;
|
389
390
|
placeholder?: string | undefined;
|
390
391
|
helperText?: string | undefined;
|
391
|
-
contentLeft?:
|
392
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
392
393
|
textBefore?: string | undefined;
|
393
394
|
textAfter?: string | undefined;
|
394
395
|
variant?: "normal" | "tight" | undefined;
|
395
396
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
396
397
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
397
398
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
398
|
-
portal?:
|
399
|
-
renderItem?: ((item:
|
400
|
-
filter?: ((item:
|
399
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
400
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
401
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
401
402
|
closeAfterSelect?: boolean | undefined;
|
402
403
|
size?: string | undefined;
|
403
404
|
view?: string | undefined;
|
@@ -412,28 +413,28 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
412
413
|
onChange?: ((value: string[]) => void) | undefined;
|
413
414
|
isTargetAmount?: true | undefined;
|
414
415
|
targetAmount?: number | undefined;
|
415
|
-
renderValue?: ((item:
|
416
|
+
renderValue?: ((item: ItemOption) => string) | undefined;
|
416
417
|
} & {
|
417
418
|
requiredPlacement?: "right" | "left" | undefined;
|
418
419
|
} & {
|
419
420
|
required: true;
|
420
421
|
optional?: false | undefined;
|
421
|
-
} & Omit<
|
422
|
-
items:
|
422
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
423
|
+
items: ItemOption[];
|
423
424
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
424
425
|
label?: string | undefined;
|
425
426
|
placeholder?: string | undefined;
|
426
427
|
helperText?: string | undefined;
|
427
|
-
contentLeft?:
|
428
|
+
contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
428
429
|
textBefore?: string | undefined;
|
429
430
|
textAfter?: string | undefined;
|
430
431
|
variant?: "normal" | "tight" | undefined;
|
431
432
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
432
433
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
433
434
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
434
|
-
portal?:
|
435
|
-
renderItem?: ((item:
|
436
|
-
filter?: ((item:
|
435
|
+
portal?: string | React.RefObject<HTMLElement> | undefined;
|
436
|
+
renderItem?: ((item: ItemOption) => React.ReactNode) | undefined;
|
437
|
+
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
437
438
|
closeAfterSelect?: boolean | undefined;
|
438
439
|
size?: string | undefined;
|
439
440
|
view?: string | undefined;
|
@@ -448,10 +449,11 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
448
449
|
onChange?: ((value: string[]) => void) | undefined;
|
449
450
|
isTargetAmount?: true | undefined;
|
450
451
|
targetAmount?: number | undefined;
|
451
|
-
renderValue?: ((item:
|
452
|
+
renderValue?: ((item: ItemOption) => string) | undefined;
|
452
453
|
} & {
|
453
454
|
requiredPlacement?: "right" | "left" | undefined;
|
454
455
|
} & {
|
455
456
|
optional?: true | undefined;
|
456
457
|
required?: false | undefined;
|
457
|
-
} & Omit<
|
458
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & React.RefAttributes<HTMLInputElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
459
|
+
export { Combobox };
|
@@ -5,6 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.Combobox = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
9
|
var _Combobox = /*#__PURE__*/require("./Combobox.config");
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
9
12
|
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.comboboxNewConfig, _Combobox.config);
|
10
|
-
var
|
13
|
+
var ComboboxNew = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
14
|
+
var ComboboxComponent = function ComboboxComponent(props, ref) {
|
15
|
+
return /*#__PURE__*/_react["default"].createElement(ComboboxNew, _extends({
|
16
|
+
ref: ref
|
17
|
+
}, props));
|
18
|
+
};
|
19
|
+
var Combobox = exports.Combobox = /*#__PURE__*/(0, _styledComponents.fixedForwardRef)(ComboboxComponent);
|