@salutejs/sdds-finportal 0.166.0-canary.1550.11801015277.0 → 0.166.1-canary.1525.11803660289.0

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