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