@salutejs/sdds-dfa 0.322.0-canary.2216.17549652479.0 → 0.322.0-canary.2216.17578968860.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,7 @@
1
- export declare const Autocomplete: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
1
+ import { AutocompleteProps, DistributiveOmit, DistributivePick, SuggestionItemType } from '@salutejs/plasma-new-hope/styled-components';
2
+ import React, { ComponentProps } from 'react';
3
+ import { config } from './Autocomplete.config';
4
+ export declare const AutocompleteComponent: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
2
5
  view: {
3
6
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
4
7
  positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -33,33 +36,33 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
33
36
  readOnly?: boolean;
34
37
  disabled?: boolean;
35
38
  portal?: string | React.RefObject<HTMLElement>;
36
- zIndex?: import("react").CSSProperties["zIndex"];
39
+ zIndex?: React.CSSProperties["zIndex"];
37
40
  value?: string;
38
41
  defaultValue?: string;
39
- suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
42
+ suggestions?: SuggestionItemType[] | undefined;
40
43
  threshold?: number;
41
- filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
42
- onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
44
+ filter?: ((data: SuggestionItemType) => boolean) | undefined;
45
+ onSuggestionSelect?: ((data: SuggestionItemType) => void) | undefined;
43
46
  onScroll?: (e: React.UIEvent<HTMLElement>) => void;
44
47
  listMaxHeight?: string;
45
48
  listWidth?: string;
46
- renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
47
- renderListEnd?: () => import("react").ReactNode;
48
- renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
49
- beforeList?: import("react").ReactNode;
50
- afterList?: import("react").ReactNode;
49
+ renderList?: ((data?: SuggestionItemType[] | undefined) => React.ReactNode) | undefined;
50
+ renderListEnd?: () => React.ReactNode;
51
+ renderItem?: ((item: SuggestionItemType) => React.ReactNode) | undefined;
52
+ beforeList?: React.ReactNode;
53
+ afterList?: React.ReactNode;
51
54
  virtual?: boolean;
52
55
  flip?: boolean;
53
56
  size?: string;
54
57
  view?: string;
55
58
  } & Omit<{
56
- titleCaption?: import("react").ReactNode;
57
- leftHelper?: import("react").ReactNode;
59
+ titleCaption?: React.ReactNode;
60
+ leftHelper?: React.ReactNode;
58
61
  contentLeft?: React.ReactElement;
59
62
  contentRight?: React.ReactElement;
60
63
  textBefore?: string;
61
64
  textAfter?: string;
62
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
65
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
63
66
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
64
67
  clear?: boolean;
65
68
  hasDivider?: boolean;
@@ -68,53 +71,53 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
68
71
  hintTrigger?: "hover" | "click";
69
72
  hintView?: string;
70
73
  hintSize?: string;
71
- hintTargetIcon?: import("react").ReactNode;
74
+ hintTargetIcon?: React.ReactNode;
72
75
  hintTargetPlacement?: "inner" | "outer";
73
76
  hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
74
77
  hintHasArrow?: boolean;
75
78
  hintOffset?: [number, number];
76
79
  hintWidth?: string;
77
- hintContentLeft?: import("react").ReactNode;
80
+ hintContentLeft?: React.ReactNode;
78
81
  } & {
79
82
  chips?: never;
80
83
  onChangeChips?: never;
81
84
  enumerationType?: "plain";
82
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
85
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
83
86
  chipType?: never;
84
87
  chipView?: never;
85
88
  chipValidator?: never;
86
- }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
89
+ }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
87
90
  labelPlacement?: string;
88
91
  readOnly?: boolean;
89
92
  disabled?: boolean;
90
93
  portal?: string | React.RefObject<HTMLElement>;
91
- zIndex?: import("react").CSSProperties["zIndex"];
94
+ zIndex?: React.CSSProperties["zIndex"];
92
95
  value?: string;
93
96
  defaultValue?: string;
94
- suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
97
+ suggestions?: SuggestionItemType[] | undefined;
95
98
  threshold?: number;
96
- filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
97
- onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
99
+ filter?: ((data: SuggestionItemType) => boolean) | undefined;
100
+ onSuggestionSelect?: ((data: SuggestionItemType) => void) | undefined;
98
101
  onScroll?: (e: React.UIEvent<HTMLElement>) => void;
99
102
  listMaxHeight?: string;
100
103
  listWidth?: string;
101
- renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
102
- renderListEnd?: () => import("react").ReactNode;
103
- renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
104
- beforeList?: import("react").ReactNode;
105
- afterList?: import("react").ReactNode;
104
+ renderList?: ((data?: SuggestionItemType[] | undefined) => React.ReactNode) | undefined;
105
+ renderListEnd?: () => React.ReactNode;
106
+ renderItem?: ((item: SuggestionItemType) => React.ReactNode) | undefined;
107
+ beforeList?: React.ReactNode;
108
+ afterList?: React.ReactNode;
106
109
  virtual?: boolean;
107
110
  flip?: boolean;
108
111
  size?: string;
109
112
  view?: string;
110
113
  } & Omit<{
111
- titleCaption?: import("react").ReactNode;
112
- leftHelper?: import("react").ReactNode;
114
+ titleCaption?: React.ReactNode;
115
+ leftHelper?: React.ReactNode;
113
116
  contentLeft?: React.ReactElement;
114
117
  contentRight?: React.ReactElement;
115
118
  textBefore?: string;
116
119
  textAfter?: string;
117
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
120
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
118
121
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
119
122
  clear?: boolean;
120
123
  hasDivider?: boolean;
@@ -123,13 +126,13 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
123
126
  hintTrigger?: "hover" | "click";
124
127
  hintView?: string;
125
128
  hintSize?: string;
126
- hintTargetIcon?: import("react").ReactNode;
129
+ hintTargetIcon?: React.ReactNode;
127
130
  hintTargetPlacement?: "inner" | "outer";
128
131
  hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
129
132
  hintHasArrow?: boolean;
130
133
  hintOffset?: [number, number];
131
134
  hintWidth?: string;
132
- hintContentLeft?: import("react").ReactNode;
135
+ hintContentLeft?: React.ReactNode;
133
136
  } & {
134
137
  enumerationType: "chip";
135
138
  onSearch?: never;
@@ -140,38 +143,38 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
140
143
  chipValidator?: (value: string) => {
141
144
  view?: string;
142
145
  };
143
- }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
146
+ }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
144
147
  labelPlacement?: string;
145
148
  readOnly?: boolean;
146
149
  disabled?: boolean;
147
150
  portal?: string | React.RefObject<HTMLElement>;
148
- zIndex?: import("react").CSSProperties["zIndex"];
151
+ zIndex?: React.CSSProperties["zIndex"];
149
152
  value?: string;
150
153
  defaultValue?: string;
151
- suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
154
+ suggestions?: SuggestionItemType[] | undefined;
152
155
  threshold?: number;
153
- filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
154
- onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
156
+ filter?: ((data: SuggestionItemType) => boolean) | undefined;
157
+ onSuggestionSelect?: ((data: SuggestionItemType) => void) | undefined;
155
158
  onScroll?: (e: React.UIEvent<HTMLElement>) => void;
156
159
  listMaxHeight?: string;
157
160
  listWidth?: string;
158
- renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
159
- renderListEnd?: () => import("react").ReactNode;
160
- renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
161
- beforeList?: import("react").ReactNode;
162
- afterList?: import("react").ReactNode;
161
+ renderList?: ((data?: SuggestionItemType[] | undefined) => React.ReactNode) | undefined;
162
+ renderListEnd?: () => React.ReactNode;
163
+ renderItem?: ((item: SuggestionItemType) => React.ReactNode) | undefined;
164
+ beforeList?: React.ReactNode;
165
+ afterList?: React.ReactNode;
163
166
  virtual?: boolean;
164
167
  flip?: boolean;
165
168
  size?: string;
166
169
  view?: string;
167
170
  } & Omit<{
168
- titleCaption?: import("react").ReactNode;
169
- leftHelper?: import("react").ReactNode;
171
+ titleCaption?: React.ReactNode;
172
+ leftHelper?: React.ReactNode;
170
173
  contentLeft?: React.ReactElement;
171
174
  contentRight?: React.ReactElement;
172
175
  textBefore?: string;
173
176
  textAfter?: string;
174
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
177
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
175
178
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
176
179
  clear?: boolean;
177
180
  hasDivider?: boolean;
@@ -191,42 +194,42 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
191
194
  chips?: never;
192
195
  onChangeChips?: never;
193
196
  enumerationType?: "plain";
194
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
197
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
195
198
  chipType?: never;
196
199
  chipView?: never;
197
200
  chipValidator?: never;
198
- }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
201
+ }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
199
202
  labelPlacement?: string;
200
203
  readOnly?: boolean;
201
204
  disabled?: boolean;
202
205
  portal?: string | React.RefObject<HTMLElement>;
203
- zIndex?: import("react").CSSProperties["zIndex"];
206
+ zIndex?: React.CSSProperties["zIndex"];
204
207
  value?: string;
205
208
  defaultValue?: string;
206
- suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
209
+ suggestions?: SuggestionItemType[] | undefined;
207
210
  threshold?: number;
208
- filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
209
- onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
211
+ filter?: ((data: SuggestionItemType) => boolean) | undefined;
212
+ onSuggestionSelect?: ((data: SuggestionItemType) => void) | undefined;
210
213
  onScroll?: (e: React.UIEvent<HTMLElement>) => void;
211
214
  listMaxHeight?: string;
212
215
  listWidth?: string;
213
- renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
214
- renderListEnd?: () => import("react").ReactNode;
215
- renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
216
- beforeList?: import("react").ReactNode;
217
- afterList?: import("react").ReactNode;
216
+ renderList?: ((data?: SuggestionItemType[] | undefined) => React.ReactNode) | undefined;
217
+ renderListEnd?: () => React.ReactNode;
218
+ renderItem?: ((item: SuggestionItemType) => React.ReactNode) | undefined;
219
+ beforeList?: React.ReactNode;
220
+ afterList?: React.ReactNode;
218
221
  virtual?: boolean;
219
222
  flip?: boolean;
220
223
  size?: string;
221
224
  view?: string;
222
225
  } & Omit<{
223
- titleCaption?: import("react").ReactNode;
224
- leftHelper?: import("react").ReactNode;
226
+ titleCaption?: React.ReactNode;
227
+ leftHelper?: React.ReactNode;
225
228
  contentLeft?: React.ReactElement;
226
229
  contentRight?: React.ReactElement;
227
230
  textBefore?: string;
228
231
  textAfter?: string;
229
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
232
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
230
233
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
231
234
  clear?: boolean;
232
235
  hasDivider?: boolean;
@@ -252,38 +255,38 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
252
255
  chipValidator?: (value: string) => {
253
256
  view?: string;
254
257
  };
255
- }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
258
+ }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
256
259
  labelPlacement?: string;
257
260
  readOnly?: boolean;
258
261
  disabled?: boolean;
259
262
  portal?: string | React.RefObject<HTMLElement>;
260
- zIndex?: import("react").CSSProperties["zIndex"];
263
+ zIndex?: React.CSSProperties["zIndex"];
261
264
  value?: string;
262
265
  defaultValue?: string;
263
- suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
266
+ suggestions?: SuggestionItemType[] | undefined;
264
267
  threshold?: number;
265
- filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
266
- onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
268
+ filter?: ((data: SuggestionItemType) => boolean) | undefined;
269
+ onSuggestionSelect?: ((data: SuggestionItemType) => void) | undefined;
267
270
  onScroll?: (e: React.UIEvent<HTMLElement>) => void;
268
271
  listMaxHeight?: string;
269
272
  listWidth?: string;
270
- renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
271
- renderListEnd?: () => import("react").ReactNode;
272
- renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
273
- beforeList?: import("react").ReactNode;
274
- afterList?: import("react").ReactNode;
273
+ renderList?: ((data?: SuggestionItemType[] | undefined) => React.ReactNode) | undefined;
274
+ renderListEnd?: () => React.ReactNode;
275
+ renderItem?: ((item: SuggestionItemType) => React.ReactNode) | undefined;
276
+ beforeList?: React.ReactNode;
277
+ afterList?: React.ReactNode;
275
278
  virtual?: boolean;
276
279
  flip?: boolean;
277
280
  size?: string;
278
281
  view?: string;
279
282
  } & Omit<{
280
- titleCaption?: import("react").ReactNode;
281
- leftHelper?: import("react").ReactNode;
283
+ titleCaption?: React.ReactNode;
284
+ leftHelper?: React.ReactNode;
282
285
  contentLeft?: React.ReactElement;
283
286
  contentRight?: React.ReactElement;
284
287
  textBefore?: string;
285
288
  textAfter?: string;
286
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
289
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
287
290
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
288
291
  clear?: false;
289
292
  hasDivider?: never;
@@ -292,53 +295,53 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
292
295
  hintTrigger?: "hover" | "click";
293
296
  hintView?: string;
294
297
  hintSize?: string;
295
- hintTargetIcon?: import("react").ReactNode;
298
+ hintTargetIcon?: React.ReactNode;
296
299
  hintTargetPlacement?: "inner" | "outer";
297
300
  hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
298
301
  hintHasArrow?: boolean;
299
302
  hintOffset?: [number, number];
300
303
  hintWidth?: string;
301
- hintContentLeft?: import("react").ReactNode;
304
+ hintContentLeft?: React.ReactNode;
302
305
  } & {
303
306
  chips?: never;
304
307
  onChangeChips?: never;
305
308
  enumerationType?: "plain";
306
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
309
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
307
310
  chipType?: never;
308
311
  chipView?: never;
309
312
  chipValidator?: never;
310
- }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
313
+ }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
311
314
  labelPlacement?: string;
312
315
  readOnly?: boolean;
313
316
  disabled?: boolean;
314
317
  portal?: string | React.RefObject<HTMLElement>;
315
- zIndex?: import("react").CSSProperties["zIndex"];
318
+ zIndex?: React.CSSProperties["zIndex"];
316
319
  value?: string;
317
320
  defaultValue?: string;
318
- suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
321
+ suggestions?: SuggestionItemType[] | undefined;
319
322
  threshold?: number;
320
- filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
321
- onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
323
+ filter?: ((data: SuggestionItemType) => boolean) | undefined;
324
+ onSuggestionSelect?: ((data: SuggestionItemType) => void) | undefined;
322
325
  onScroll?: (e: React.UIEvent<HTMLElement>) => void;
323
326
  listMaxHeight?: string;
324
327
  listWidth?: string;
325
- renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
326
- renderListEnd?: () => import("react").ReactNode;
327
- renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
328
- beforeList?: import("react").ReactNode;
329
- afterList?: import("react").ReactNode;
328
+ renderList?: ((data?: SuggestionItemType[] | undefined) => React.ReactNode) | undefined;
329
+ renderListEnd?: () => React.ReactNode;
330
+ renderItem?: ((item: SuggestionItemType) => React.ReactNode) | undefined;
331
+ beforeList?: React.ReactNode;
332
+ afterList?: React.ReactNode;
330
333
  virtual?: boolean;
331
334
  flip?: boolean;
332
335
  size?: string;
333
336
  view?: string;
334
337
  } & Omit<{
335
- titleCaption?: import("react").ReactNode;
336
- leftHelper?: import("react").ReactNode;
338
+ titleCaption?: React.ReactNode;
339
+ leftHelper?: React.ReactNode;
337
340
  contentLeft?: React.ReactElement;
338
341
  contentRight?: React.ReactElement;
339
342
  textBefore?: string;
340
343
  textAfter?: string;
341
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
344
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
342
345
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
343
346
  clear?: false;
344
347
  hasDivider?: never;
@@ -347,13 +350,13 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
347
350
  hintTrigger?: "hover" | "click";
348
351
  hintView?: string;
349
352
  hintSize?: string;
350
- hintTargetIcon?: import("react").ReactNode;
353
+ hintTargetIcon?: React.ReactNode;
351
354
  hintTargetPlacement?: "inner" | "outer";
352
355
  hintPlacement?: import("@salutejs/plasma-new-hope/styled-components").PopoverPlacement | Array<import("@salutejs/plasma-new-hope/styled-components").PopoverPlacementBasic>;
353
356
  hintHasArrow?: boolean;
354
357
  hintOffset?: [number, number];
355
358
  hintWidth?: string;
356
- hintContentLeft?: import("react").ReactNode;
359
+ hintContentLeft?: React.ReactNode;
357
360
  } & {
358
361
  enumerationType: "chip";
359
362
  onSearch?: never;
@@ -364,38 +367,38 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
364
367
  chipValidator?: (value: string) => {
365
368
  view?: string;
366
369
  };
367
- }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
370
+ }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
368
371
  labelPlacement?: string;
369
372
  readOnly?: boolean;
370
373
  disabled?: boolean;
371
374
  portal?: string | React.RefObject<HTMLElement>;
372
- zIndex?: import("react").CSSProperties["zIndex"];
375
+ zIndex?: React.CSSProperties["zIndex"];
373
376
  value?: string;
374
377
  defaultValue?: string;
375
- suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
378
+ suggestions?: SuggestionItemType[] | undefined;
376
379
  threshold?: number;
377
- filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
378
- onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
380
+ filter?: ((data: SuggestionItemType) => boolean) | undefined;
381
+ onSuggestionSelect?: ((data: SuggestionItemType) => void) | undefined;
379
382
  onScroll?: (e: React.UIEvent<HTMLElement>) => void;
380
383
  listMaxHeight?: string;
381
384
  listWidth?: string;
382
- renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
383
- renderListEnd?: () => import("react").ReactNode;
384
- renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
385
- beforeList?: import("react").ReactNode;
386
- afterList?: import("react").ReactNode;
385
+ renderList?: ((data?: SuggestionItemType[] | undefined) => React.ReactNode) | undefined;
386
+ renderListEnd?: () => React.ReactNode;
387
+ renderItem?: ((item: SuggestionItemType) => React.ReactNode) | undefined;
388
+ beforeList?: React.ReactNode;
389
+ afterList?: React.ReactNode;
387
390
  virtual?: boolean;
388
391
  flip?: boolean;
389
392
  size?: string;
390
393
  view?: string;
391
394
  } & Omit<{
392
- titleCaption?: import("react").ReactNode;
393
- leftHelper?: import("react").ReactNode;
395
+ titleCaption?: React.ReactNode;
396
+ leftHelper?: React.ReactNode;
394
397
  contentLeft?: React.ReactElement;
395
398
  contentRight?: React.ReactElement;
396
399
  textBefore?: string;
397
400
  textAfter?: string;
398
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
401
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
399
402
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
400
403
  clear?: false;
401
404
  hasDivider?: never;
@@ -415,42 +418,42 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
415
418
  chips?: never;
416
419
  onChangeChips?: never;
417
420
  enumerationType?: "plain";
418
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
421
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
419
422
  chipType?: never;
420
423
  chipView?: never;
421
424
  chipValidator?: never;
422
- }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>) | ({
425
+ }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & React.RefAttributes<HTMLInputElement>) | ({
423
426
  labelPlacement?: string;
424
427
  readOnly?: boolean;
425
428
  disabled?: boolean;
426
429
  portal?: string | React.RefObject<HTMLElement>;
427
- zIndex?: import("react").CSSProperties["zIndex"];
430
+ zIndex?: React.CSSProperties["zIndex"];
428
431
  value?: string;
429
432
  defaultValue?: string;
430
- suggestions?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[];
433
+ suggestions?: SuggestionItemType[] | undefined;
431
434
  threshold?: number;
432
- filter?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => boolean;
433
- onSuggestionSelect?: (data: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => void;
435
+ filter?: ((data: SuggestionItemType) => boolean) | undefined;
436
+ onSuggestionSelect?: ((data: SuggestionItemType) => void) | undefined;
434
437
  onScroll?: (e: React.UIEvent<HTMLElement>) => void;
435
438
  listMaxHeight?: string;
436
439
  listWidth?: string;
437
- renderList?: (data?: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType[]) => import("react").ReactNode;
438
- renderListEnd?: () => import("react").ReactNode;
439
- renderItem?: (item: import("@salutejs/plasma-new-hope/styled-components").SuggestionItemType) => React.ReactNode;
440
- beforeList?: import("react").ReactNode;
441
- afterList?: import("react").ReactNode;
440
+ renderList?: ((data?: SuggestionItemType[] | undefined) => React.ReactNode) | undefined;
441
+ renderListEnd?: () => React.ReactNode;
442
+ renderItem?: ((item: SuggestionItemType) => React.ReactNode) | undefined;
443
+ beforeList?: React.ReactNode;
444
+ afterList?: React.ReactNode;
442
445
  virtual?: boolean;
443
446
  flip?: boolean;
444
447
  size?: string;
445
448
  view?: string;
446
449
  } & Omit<{
447
- titleCaption?: import("react").ReactNode;
448
- leftHelper?: import("react").ReactNode;
450
+ titleCaption?: React.ReactNode;
451
+ leftHelper?: React.ReactNode;
449
452
  contentLeft?: React.ReactElement;
450
453
  contentRight?: React.ReactElement;
451
454
  textBefore?: string;
452
455
  textAfter?: string;
453
- onSearch?: (value: string, event?: import("react").KeyboardEvent<HTMLInputElement>) => void;
456
+ onSearch?: (value: string, event?: React.KeyboardEvent<HTMLInputElement>) => void;
454
457
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
455
458
  clear?: false;
456
459
  hasDivider?: never;
@@ -476,4 +479,8 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
476
479
  chipValidator?: (value: string) => {
477
480
  view?: string;
478
481
  };
479
- }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & import("react").RefAttributes<HTMLInputElement>))>;
482
+ }, "labelPlacement" | "chipView" | "chips" | "onChangeChips" | "enumerationType" | "chipType" | "chipValidator"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "value" | "required"> & React.RefAttributes<HTMLInputElement>))>;
483
+ type PropsFromConfig = keyof typeof config['variations'];
484
+ type Props<T extends SuggestionItemType> = DistributiveOmit<AutocompleteProps<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof AutocompleteComponent>, PropsFromConfig>;
485
+ export declare const Autocomplete: <T extends SuggestionItemType>(props: Props<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement | null;
486
+ export {};
@@ -2,13 +2,85 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- Object.defineProperty(exports, "Autocomplete", {
6
- enumerable: true,
7
- get: function() {
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get Autocomplete () {
8
13
  return Autocomplete;
14
+ },
15
+ get AutocompleteComponent () {
16
+ return AutocompleteComponent;
9
17
  }
10
18
  });
11
19
  var _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
20
+ var _react = /*#__PURE__*/ _interop_require_default(require("react"));
12
21
  var _Autocompleteconfig = require("./Autocomplete.config");
22
+ function _define_property(obj, key, value) {
23
+ if (key in obj) {
24
+ Object.defineProperty(obj, key, {
25
+ value: value,
26
+ enumerable: true,
27
+ configurable: true,
28
+ writable: true
29
+ });
30
+ } else {
31
+ obj[key] = value;
32
+ }
33
+ return obj;
34
+ }
35
+ function _interop_require_default(obj) {
36
+ return obj && obj.__esModule ? obj : {
37
+ default: obj
38
+ };
39
+ }
40
+ function _object_spread(target) {
41
+ for(var i = 1; i < arguments.length; i++){
42
+ var source = arguments[i] != null ? arguments[i] : {};
43
+ var ownKeys = Object.keys(source);
44
+ if (typeof Object.getOwnPropertySymbols === "function") {
45
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
46
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
47
+ }));
48
+ }
49
+ ownKeys.forEach(function(key) {
50
+ _define_property(target, key, source[key]);
51
+ });
52
+ }
53
+ return target;
54
+ }
55
+ function ownKeys(object, enumerableOnly) {
56
+ var keys = Object.keys(object);
57
+ if (Object.getOwnPropertySymbols) {
58
+ var symbols = Object.getOwnPropertySymbols(object);
59
+ if (enumerableOnly) {
60
+ symbols = symbols.filter(function(sym) {
61
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
62
+ });
63
+ }
64
+ keys.push.apply(keys, symbols);
65
+ }
66
+ return keys;
67
+ }
68
+ function _object_spread_props(target, source) {
69
+ source = source != null ? source : {};
70
+ if (Object.getOwnPropertyDescriptors) {
71
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
72
+ } else {
73
+ ownKeys(Object(source)).forEach(function(key) {
74
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
75
+ });
76
+ }
77
+ return target;
78
+ }
13
79
  var mergedConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.autocompleteConfig, _Autocompleteconfig.config);
14
- var Autocomplete = (0, _styledcomponents.component)(mergedConfig);
80
+ var AutocompleteComponent = (0, _styledcomponents.component)(mergedConfig);
81
+ var AutocompleteWithoutRef = function(props, ref) {
82
+ return /*#__PURE__*/ _react.default.createElement(AutocompleteComponent, _object_spread_props(_object_spread({}, props), {
83
+ ref: ref
84
+ }));
85
+ };
86
+ var Autocomplete = (0, _styledcomponents.fixedForwardRef)(AutocompleteWithoutRef);
@@ -41,7 +41,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
41
41
  textAfter?: string;
42
42
  variant?: "normal" | "tight";
43
43
  zIndex?: React.CSSProperties["zIndex"];
44
- listOverflow?: React.CSSProperties["overflow"];
45
44
  listMaxHeight?: React.CSSProperties["height"];
46
45
  listWidth?: React.CSSProperties["width"];
47
46
  portal?: string | React.RefObject<HTMLElement>;
@@ -58,6 +57,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
58
57
  view?: string;
59
58
  emptyStateDescription?: string;
60
59
  listHeight?: React.CSSProperties["height"];
60
+ listOverflow?: React.CSSProperties["overflow"];
61
61
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
62
62
  readOnly?: boolean;
63
63
  disabled?: true;
@@ -95,7 +95,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
95
95
  textAfter?: string;
96
96
  variant?: "normal" | "tight";
97
97
  zIndex?: React.CSSProperties["zIndex"];
98
- listOverflow?: React.CSSProperties["overflow"];
99
98
  listMaxHeight?: React.CSSProperties["height"];
100
99
  listWidth?: React.CSSProperties["width"];
101
100
  portal?: string | React.RefObject<HTMLElement>;
@@ -112,6 +111,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
112
111
  view?: string;
113
112
  emptyStateDescription?: string;
114
113
  listHeight?: React.CSSProperties["height"];
114
+ listOverflow?: React.CSSProperties["overflow"];
115
115
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
116
116
  readOnly?: boolean;
117
117
  disabled?: true;
@@ -149,7 +149,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
149
149
  textAfter?: string;
150
150
  variant?: "normal" | "tight";
151
151
  zIndex?: React.CSSProperties["zIndex"];
152
- listOverflow?: React.CSSProperties["overflow"];
153
152
  listMaxHeight?: React.CSSProperties["height"];
154
153
  listWidth?: React.CSSProperties["width"];
155
154
  portal?: string | React.RefObject<HTMLElement>;
@@ -166,6 +165,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
166
165
  view?: string;
167
166
  emptyStateDescription?: string;
168
167
  listHeight?: React.CSSProperties["height"];
168
+ listOverflow?: React.CSSProperties["overflow"];
169
169
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
170
170
  readOnly?: boolean;
171
171
  disabled?: true;
@@ -203,7 +203,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
203
203
  textAfter?: string;
204
204
  variant?: "normal" | "tight";
205
205
  zIndex?: React.CSSProperties["zIndex"];
206
- listOverflow?: React.CSSProperties["overflow"];
207
206
  listMaxHeight?: React.CSSProperties["height"];
208
207
  listWidth?: React.CSSProperties["width"];
209
208
  portal?: string | React.RefObject<HTMLElement>;
@@ -220,6 +219,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
220
219
  view?: string;
221
220
  emptyStateDescription?: string;
222
221
  listHeight?: React.CSSProperties["height"];
222
+ listOverflow?: React.CSSProperties["overflow"];
223
223
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
224
224
  readOnly?: boolean;
225
225
  disabled?: true;
@@ -257,7 +257,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
257
257
  textAfter?: string;
258
258
  variant?: "normal" | "tight";
259
259
  zIndex?: React.CSSProperties["zIndex"];
260
- listOverflow?: React.CSSProperties["overflow"];
261
260
  listMaxHeight?: React.CSSProperties["height"];
262
261
  listWidth?: React.CSSProperties["width"];
263
262
  portal?: string | React.RefObject<HTMLElement>;
@@ -274,6 +273,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
274
273
  view?: string;
275
274
  emptyStateDescription?: string;
276
275
  listHeight?: React.CSSProperties["height"];
276
+ listOverflow?: React.CSSProperties["overflow"];
277
277
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
278
278
  readOnly?: boolean;
279
279
  disabled?: true;
@@ -311,7 +311,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
311
311
  textAfter?: string;
312
312
  variant?: "normal" | "tight";
313
313
  zIndex?: React.CSSProperties["zIndex"];
314
- listOverflow?: React.CSSProperties["overflow"];
315
314
  listMaxHeight?: React.CSSProperties["height"];
316
315
  listWidth?: React.CSSProperties["width"];
317
316
  portal?: string | React.RefObject<HTMLElement>;
@@ -328,6 +327,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
328
327
  view?: string;
329
328
  emptyStateDescription?: string;
330
329
  listHeight?: React.CSSProperties["height"];
330
+ listOverflow?: React.CSSProperties["overflow"];
331
331
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
332
332
  readOnly?: boolean;
333
333
  disabled?: true;
@@ -365,7 +365,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
365
365
  textAfter?: string;
366
366
  variant?: "normal" | "tight";
367
367
  zIndex?: React.CSSProperties["zIndex"];
368
- listOverflow?: React.CSSProperties["overflow"];
369
368
  listMaxHeight?: React.CSSProperties["height"];
370
369
  listWidth?: React.CSSProperties["width"];
371
370
  portal?: string | React.RefObject<HTMLElement>;
@@ -382,6 +381,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
382
381
  view?: string;
383
382
  emptyStateDescription?: string;
384
383
  listHeight?: React.CSSProperties["height"];
384
+ listOverflow?: React.CSSProperties["overflow"];
385
385
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
386
386
  readOnly?: boolean;
387
387
  disabled?: true;
@@ -419,7 +419,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
419
419
  textAfter?: string;
420
420
  variant?: "normal" | "tight";
421
421
  zIndex?: React.CSSProperties["zIndex"];
422
- listOverflow?: React.CSSProperties["overflow"];
423
422
  listMaxHeight?: React.CSSProperties["height"];
424
423
  listWidth?: React.CSSProperties["width"];
425
424
  portal?: string | React.RefObject<HTMLElement>;
@@ -436,6 +435,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
436
435
  view?: string;
437
436
  emptyStateDescription?: string;
438
437
  listHeight?: React.CSSProperties["height"];
438
+ listOverflow?: React.CSSProperties["overflow"];
439
439
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
440
440
  readOnly?: boolean;
441
441
  disabled?: true;
@@ -473,7 +473,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
473
473
  textAfter?: string;
474
474
  variant?: "normal" | "tight";
475
475
  zIndex?: React.CSSProperties["zIndex"];
476
- listOverflow?: React.CSSProperties["overflow"];
477
476
  listMaxHeight?: React.CSSProperties["height"];
478
477
  listWidth?: React.CSSProperties["width"];
479
478
  portal?: string | React.RefObject<HTMLElement>;
@@ -490,6 +489,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
490
489
  view?: string;
491
490
  emptyStateDescription?: string;
492
491
  listHeight?: React.CSSProperties["height"];
492
+ listOverflow?: React.CSSProperties["overflow"];
493
493
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
494
494
  readOnly?: true;
495
495
  disabled?: boolean;
@@ -527,7 +527,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
527
527
  textAfter?: string;
528
528
  variant?: "normal" | "tight";
529
529
  zIndex?: React.CSSProperties["zIndex"];
530
- listOverflow?: React.CSSProperties["overflow"];
531
530
  listMaxHeight?: React.CSSProperties["height"];
532
531
  listWidth?: React.CSSProperties["width"];
533
532
  portal?: string | React.RefObject<HTMLElement>;
@@ -544,6 +543,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
544
543
  view?: string;
545
544
  emptyStateDescription?: string;
546
545
  listHeight?: React.CSSProperties["height"];
546
+ listOverflow?: React.CSSProperties["overflow"];
547
547
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
548
548
  readOnly?: true;
549
549
  disabled?: boolean;
@@ -581,7 +581,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
581
581
  textAfter?: string;
582
582
  variant?: "normal" | "tight";
583
583
  zIndex?: React.CSSProperties["zIndex"];
584
- listOverflow?: React.CSSProperties["overflow"];
585
584
  listMaxHeight?: React.CSSProperties["height"];
586
585
  listWidth?: React.CSSProperties["width"];
587
586
  portal?: string | React.RefObject<HTMLElement>;
@@ -598,6 +597,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
598
597
  view?: string;
599
598
  emptyStateDescription?: string;
600
599
  listHeight?: React.CSSProperties["height"];
600
+ listOverflow?: React.CSSProperties["overflow"];
601
601
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
602
602
  readOnly?: true;
603
603
  disabled?: boolean;
@@ -635,7 +635,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
635
635
  textAfter?: string;
636
636
  variant?: "normal" | "tight";
637
637
  zIndex?: React.CSSProperties["zIndex"];
638
- listOverflow?: React.CSSProperties["overflow"];
639
638
  listMaxHeight?: React.CSSProperties["height"];
640
639
  listWidth?: React.CSSProperties["width"];
641
640
  portal?: string | React.RefObject<HTMLElement>;
@@ -652,6 +651,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
652
651
  view?: string;
653
652
  emptyStateDescription?: string;
654
653
  listHeight?: React.CSSProperties["height"];
654
+ listOverflow?: React.CSSProperties["overflow"];
655
655
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
656
656
  readOnly?: true;
657
657
  disabled?: boolean;
@@ -689,7 +689,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
689
689
  textAfter?: string;
690
690
  variant?: "normal" | "tight";
691
691
  zIndex?: React.CSSProperties["zIndex"];
692
- listOverflow?: React.CSSProperties["overflow"];
693
692
  listMaxHeight?: React.CSSProperties["height"];
694
693
  listWidth?: React.CSSProperties["width"];
695
694
  portal?: string | React.RefObject<HTMLElement>;
@@ -706,6 +705,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
706
705
  view?: string;
707
706
  emptyStateDescription?: string;
708
707
  listHeight?: React.CSSProperties["height"];
708
+ listOverflow?: React.CSSProperties["overflow"];
709
709
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
710
710
  readOnly?: true;
711
711
  disabled?: boolean;
@@ -743,7 +743,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
743
743
  textAfter?: string;
744
744
  variant?: "normal" | "tight";
745
745
  zIndex?: React.CSSProperties["zIndex"];
746
- listOverflow?: React.CSSProperties["overflow"];
747
746
  listMaxHeight?: React.CSSProperties["height"];
748
747
  listWidth?: React.CSSProperties["width"];
749
748
  portal?: string | React.RefObject<HTMLElement>;
@@ -760,6 +759,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
760
759
  view?: string;
761
760
  emptyStateDescription?: string;
762
761
  listHeight?: React.CSSProperties["height"];
762
+ listOverflow?: React.CSSProperties["overflow"];
763
763
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
764
764
  readOnly?: true;
765
765
  disabled?: boolean;
@@ -797,7 +797,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
797
797
  textAfter?: string;
798
798
  variant?: "normal" | "tight";
799
799
  zIndex?: React.CSSProperties["zIndex"];
800
- listOverflow?: React.CSSProperties["overflow"];
801
800
  listMaxHeight?: React.CSSProperties["height"];
802
801
  listWidth?: React.CSSProperties["width"];
803
802
  portal?: string | React.RefObject<HTMLElement>;
@@ -814,6 +813,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
814
813
  view?: string;
815
814
  emptyStateDescription?: string;
816
815
  listHeight?: React.CSSProperties["height"];
816
+ listOverflow?: React.CSSProperties["overflow"];
817
817
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
818
818
  readOnly?: true;
819
819
  disabled?: boolean;
@@ -851,7 +851,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
851
851
  textAfter?: string;
852
852
  variant?: "normal" | "tight";
853
853
  zIndex?: React.CSSProperties["zIndex"];
854
- listOverflow?: React.CSSProperties["overflow"];
855
854
  listMaxHeight?: React.CSSProperties["height"];
856
855
  listWidth?: React.CSSProperties["width"];
857
856
  portal?: string | React.RefObject<HTMLElement>;
@@ -868,6 +867,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
868
867
  view?: string;
869
868
  emptyStateDescription?: string;
870
869
  listHeight?: React.CSSProperties["height"];
870
+ listOverflow?: React.CSSProperties["overflow"];
871
871
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
872
872
  readOnly?: true;
873
873
  disabled?: boolean;
@@ -905,7 +905,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
905
905
  textAfter?: string;
906
906
  variant?: "normal" | "tight";
907
907
  zIndex?: React.CSSProperties["zIndex"];
908
- listOverflow?: React.CSSProperties["overflow"];
909
908
  listMaxHeight?: React.CSSProperties["height"];
910
909
  listWidth?: React.CSSProperties["width"];
911
910
  portal?: string | React.RefObject<HTMLElement>;
@@ -922,6 +921,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
922
921
  view?: string;
923
922
  emptyStateDescription?: string;
924
923
  listHeight?: React.CSSProperties["height"];
924
+ listOverflow?: React.CSSProperties["overflow"];
925
925
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
926
926
  readOnly?: false;
927
927
  disabled?: false;
@@ -959,7 +959,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
959
959
  textAfter?: string;
960
960
  variant?: "normal" | "tight";
961
961
  zIndex?: React.CSSProperties["zIndex"];
962
- listOverflow?: React.CSSProperties["overflow"];
963
962
  listMaxHeight?: React.CSSProperties["height"];
964
963
  listWidth?: React.CSSProperties["width"];
965
964
  portal?: string | React.RefObject<HTMLElement>;
@@ -976,6 +975,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
976
975
  view?: string;
977
976
  emptyStateDescription?: string;
978
977
  listHeight?: React.CSSProperties["height"];
978
+ listOverflow?: React.CSSProperties["overflow"];
979
979
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
980
980
  readOnly?: false;
981
981
  disabled?: false;
@@ -1013,7 +1013,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1013
1013
  textAfter?: string;
1014
1014
  variant?: "normal" | "tight";
1015
1015
  zIndex?: React.CSSProperties["zIndex"];
1016
- listOverflow?: React.CSSProperties["overflow"];
1017
1016
  listMaxHeight?: React.CSSProperties["height"];
1018
1017
  listWidth?: React.CSSProperties["width"];
1019
1018
  portal?: string | React.RefObject<HTMLElement>;
@@ -1030,6 +1029,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1030
1029
  view?: string;
1031
1030
  emptyStateDescription?: string;
1032
1031
  listHeight?: React.CSSProperties["height"];
1032
+ listOverflow?: React.CSSProperties["overflow"];
1033
1033
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
1034
1034
  readOnly?: false;
1035
1035
  disabled?: false;
@@ -1067,7 +1067,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1067
1067
  textAfter?: string;
1068
1068
  variant?: "normal" | "tight";
1069
1069
  zIndex?: React.CSSProperties["zIndex"];
1070
- listOverflow?: React.CSSProperties["overflow"];
1071
1070
  listMaxHeight?: React.CSSProperties["height"];
1072
1071
  listWidth?: React.CSSProperties["width"];
1073
1072
  portal?: string | React.RefObject<HTMLElement>;
@@ -1084,6 +1083,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1084
1083
  view?: string;
1085
1084
  emptyStateDescription?: string;
1086
1085
  listHeight?: React.CSSProperties["height"];
1086
+ listOverflow?: React.CSSProperties["overflow"];
1087
1087
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
1088
1088
  readOnly?: false;
1089
1089
  disabled?: false;
@@ -1121,7 +1121,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1121
1121
  textAfter?: string;
1122
1122
  variant?: "normal" | "tight";
1123
1123
  zIndex?: React.CSSProperties["zIndex"];
1124
- listOverflow?: React.CSSProperties["overflow"];
1125
1124
  listMaxHeight?: React.CSSProperties["height"];
1126
1125
  listWidth?: React.CSSProperties["width"];
1127
1126
  portal?: string | React.RefObject<HTMLElement>;
@@ -1138,6 +1137,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1138
1137
  view?: string;
1139
1138
  emptyStateDescription?: string;
1140
1139
  listHeight?: React.CSSProperties["height"];
1140
+ listOverflow?: React.CSSProperties["overflow"];
1141
1141
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
1142
1142
  readOnly?: false;
1143
1143
  disabled?: false;
@@ -1175,7 +1175,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1175
1175
  textAfter?: string;
1176
1176
  variant?: "normal" | "tight";
1177
1177
  zIndex?: React.CSSProperties["zIndex"];
1178
- listOverflow?: React.CSSProperties["overflow"];
1179
1178
  listMaxHeight?: React.CSSProperties["height"];
1180
1179
  listWidth?: React.CSSProperties["width"];
1181
1180
  portal?: string | React.RefObject<HTMLElement>;
@@ -1192,6 +1191,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1192
1191
  view?: string;
1193
1192
  emptyStateDescription?: string;
1194
1193
  listHeight?: React.CSSProperties["height"];
1194
+ listOverflow?: React.CSSProperties["overflow"];
1195
1195
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
1196
1196
  readOnly?: false;
1197
1197
  disabled?: false;
@@ -1229,7 +1229,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1229
1229
  textAfter?: string;
1230
1230
  variant?: "normal" | "tight";
1231
1231
  zIndex?: React.CSSProperties["zIndex"];
1232
- listOverflow?: React.CSSProperties["overflow"];
1233
1232
  listMaxHeight?: React.CSSProperties["height"];
1234
1233
  listWidth?: React.CSSProperties["width"];
1235
1234
  portal?: string | React.RefObject<HTMLElement>;
@@ -1246,6 +1245,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1246
1245
  view?: string;
1247
1246
  emptyStateDescription?: string;
1248
1247
  listHeight?: React.CSSProperties["height"];
1248
+ listOverflow?: React.CSSProperties["overflow"];
1249
1249
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
1250
1250
  readOnly?: false;
1251
1251
  disabled?: false;
@@ -1283,7 +1283,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1283
1283
  textAfter?: string;
1284
1284
  variant?: "normal" | "tight";
1285
1285
  zIndex?: React.CSSProperties["zIndex"];
1286
- listOverflow?: React.CSSProperties["overflow"];
1287
1286
  listMaxHeight?: React.CSSProperties["height"];
1288
1287
  listWidth?: React.CSSProperties["width"];
1289
1288
  portal?: string | React.RefObject<HTMLElement>;
@@ -1300,6 +1299,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
1300
1299
  view?: string;
1301
1300
  emptyStateDescription?: string;
1302
1301
  listHeight?: React.CSSProperties["height"];
1302
+ listOverflow?: React.CSSProperties["overflow"];
1303
1303
  } & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
1304
1304
  readOnly?: false;
1305
1305
  disabled?: false;
@@ -16,13 +16,12 @@ declare const DropdownNewHope: React.FunctionComponent<import("@salutejs/plasma-
16
16
  alwaysOpened?: boolean;
17
17
  children?: React.ReactNode;
18
18
  itemRole?: string;
19
- onHover?: (index: number) => void;
19
+ onHover?: ((index: number, item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption) => void) | undefined;
20
20
  onItemSelect?: ((item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption, event: React.SyntheticEvent) => void) | undefined;
21
21
  trigger?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownTrigger;
22
22
  openByRightClick?: boolean;
23
23
  placement?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownPlacement;
24
24
  offset?: [number, number];
25
- listOverflow?: React.CSSProperties["overflow"];
26
25
  listMaxHeight?: React.CSSProperties["height"];
27
26
  listWidth?: React.CSSProperties["width"];
28
27
  hasArrow?: boolean;
@@ -40,6 +39,7 @@ declare const DropdownNewHope: React.FunctionComponent<import("@salutejs/plasma-
40
39
  onItemClick?: ((item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption, event: React.SyntheticEvent) => void) | undefined;
41
40
  listHeight?: React.CSSProperties["height"];
42
41
  hoverIndex?: number;
42
+ listOverflow?: React.CSSProperties["overflow"];
43
43
  } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
44
44
  export type DropdownProps<T extends DropdownItemOption> = Omit<DropdownNewProps<T>, 'size' | 'view'> & Pick<ComponentProps<typeof DropdownNewHope>, 'size' | 'view'>;
45
45
  declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewProps<T>, "size" | "view"> & Pick<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
@@ -58,13 +58,12 @@ declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewPr
58
58
  alwaysOpened?: boolean;
59
59
  children?: React.ReactNode;
60
60
  itemRole?: string;
61
- onHover?: (index: number) => void;
61
+ onHover?: ((index: number, item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption) => void) | undefined;
62
62
  onItemSelect?: ((item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption, event: React.SyntheticEvent) => void) | undefined;
63
63
  trigger?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownTrigger;
64
64
  openByRightClick?: boolean;
65
65
  placement?: import("@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types").DropdownPlacement;
66
66
  offset?: [number, number];
67
- listOverflow?: React.CSSProperties["overflow"];
68
67
  listMaxHeight?: React.CSSProperties["height"];
69
68
  listWidth?: React.CSSProperties["width"];
70
69
  hasArrow?: boolean;
@@ -82,5 +81,6 @@ declare const Dropdown: <T extends DropdownItemOption>(props: Omit<DropdownNewPr
82
81
  onItemClick?: ((item: import("@salutejs/plasma-new-hope/types/components/Dropdown").DropdownItemOption, event: React.SyntheticEvent) => void) | undefined;
83
82
  listHeight?: React.CSSProperties["height"];
84
83
  hoverIndex?: number;
84
+ listOverflow?: React.CSSProperties["overflow"];
85
85
  } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "size" | "view"> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
86
86
  export { Dropdown };
@@ -78,7 +78,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
78
78
  placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
79
79
  variant?: "normal" | "tight";
80
80
  zIndex?: React.CSSProperties["zIndex"];
81
- listOverflow?: React.CSSProperties["overflow"];
82
81
  listMaxHeight?: React.CSSProperties["height"];
83
82
  listWidth?: React.CSSProperties["width"];
84
83
  portal?: string | React.RefObject<HTMLElement>;
@@ -98,6 +97,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
98
97
  isOpen?: boolean;
99
98
  listHeight?: React.CSSProperties["height"];
100
99
  onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
100
+ listOverflow?: React.CSSProperties["overflow"];
101
101
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>) | (import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
102
102
  hintText: string;
103
103
  hintTrigger?: "hover" | "click";
@@ -136,7 +136,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
136
136
  placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
137
137
  variant?: "normal" | "tight";
138
138
  zIndex?: React.CSSProperties["zIndex"];
139
- listOverflow?: React.CSSProperties["overflow"];
140
139
  listMaxHeight?: React.CSSProperties["height"];
141
140
  listWidth?: React.CSSProperties["width"];
142
141
  portal?: string | React.RefObject<HTMLElement>;
@@ -156,6 +155,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
156
155
  isOpen?: boolean;
157
156
  listHeight?: React.CSSProperties["height"];
158
157
  onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
158
+ listOverflow?: React.CSSProperties["overflow"];
159
159
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>) | (import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
160
160
  hintTrigger?: never;
161
161
  hintText?: never;
@@ -193,7 +193,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
193
193
  placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
194
194
  variant?: "normal" | "tight";
195
195
  zIndex?: React.CSSProperties["zIndex"];
196
- listOverflow?: React.CSSProperties["overflow"];
197
196
  listMaxHeight?: React.CSSProperties["height"];
198
197
  listWidth?: React.CSSProperties["width"];
199
198
  portal?: string | React.RefObject<HTMLElement>;
@@ -213,6 +212,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
213
212
  isOpen?: boolean;
214
213
  listHeight?: React.CSSProperties["height"];
215
214
  onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
215
+ listOverflow?: React.CSSProperties["overflow"];
216
216
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>) | (import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
217
217
  hintTrigger?: never;
218
218
  hintText?: never;
@@ -251,7 +251,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
251
251
  placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
252
252
  variant?: "normal" | "tight";
253
253
  zIndex?: React.CSSProperties["zIndex"];
254
- listOverflow?: React.CSSProperties["overflow"];
255
254
  listMaxHeight?: React.CSSProperties["height"];
256
255
  listWidth?: React.CSSProperties["width"];
257
256
  portal?: string | React.RefObject<HTMLElement>;
@@ -271,6 +270,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
271
270
  isOpen?: boolean;
272
271
  listHeight?: React.CSSProperties["height"];
273
272
  onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
273
+ listOverflow?: React.CSSProperties["overflow"];
274
274
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>) | (import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
275
275
  target: "button-like";
276
276
  view?: "default" | "accent" | "secondary" | "clear" | "positive" | "warning" | "negative" | "dark" | "black" | "white";
@@ -296,7 +296,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
296
296
  placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
297
297
  variant?: "normal" | "tight";
298
298
  zIndex?: React.CSSProperties["zIndex"];
299
- listOverflow?: React.CSSProperties["overflow"];
300
299
  listMaxHeight?: React.CSSProperties["height"];
301
300
  listWidth?: React.CSSProperties["width"];
302
301
  portal?: string | React.RefObject<HTMLElement>;
@@ -316,6 +315,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
316
315
  isOpen?: boolean;
317
316
  listHeight?: React.CSSProperties["height"];
318
317
  onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
318
+ listOverflow?: React.CSSProperties["overflow"];
319
319
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>) | (import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
320
320
  target: "button-like";
321
321
  view?: "default" | "accent" | "secondary" | "clear" | "positive" | "warning" | "negative" | "dark" | "black" | "white";
@@ -342,7 +342,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
342
342
  placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
343
343
  variant?: "normal" | "tight";
344
344
  zIndex?: React.CSSProperties["zIndex"];
345
- listOverflow?: React.CSSProperties["overflow"];
346
345
  listMaxHeight?: React.CSSProperties["height"];
347
346
  listWidth?: React.CSSProperties["width"];
348
347
  portal?: string | React.RefObject<HTMLElement>;
@@ -362,6 +361,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
362
361
  isOpen?: boolean;
363
362
  listHeight?: React.CSSProperties["height"];
364
363
  onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
364
+ listOverflow?: React.CSSProperties["overflow"];
365
365
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>))>;
366
366
  export type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<SelectPropsNewHope<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
367
367
  declare const Select: <K extends ItemOptionSelect>(props: SelectProps<K> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
@@ -1,4 +1,63 @@
1
- import { autocompleteConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
37
+ }
38
+ keys.push.apply(keys, symbols);
39
+ }
40
+ return keys;
41
+ }
42
+ function _object_spread_props(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
50
+ }
51
+ return target;
52
+ }
53
+ import { autocompleteConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/styled-components';
54
+ import React from 'react';
2
55
  import { config } from './Autocomplete.config';
3
56
  var mergedConfig = mergeConfig(autocompleteConfig, config);
4
- export var Autocomplete = component(mergedConfig);
57
+ export var AutocompleteComponent = component(mergedConfig);
58
+ var AutocompleteWithoutRef = function(props, ref) {
59
+ return /*#__PURE__*/ React.createElement(AutocompleteComponent, _object_spread_props(_object_spread({}, props), {
60
+ ref: ref
61
+ }));
62
+ };
63
+ export var Autocomplete = fixedForwardRef(AutocompleteWithoutRef);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-dfa",
3
- "version": "0.322.0-canary.2216.17549652479.0",
3
+ "version": "0.322.0-canary.2216.17578968860.0",
4
4
  "description": "Salute Design System / React UI kit for SDDS DFA web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "directory": "packages/sdds-dfa"
20
20
  },
21
21
  "dependencies": {
22
- "@salutejs/plasma-new-hope": "0.336.0-canary.2216.17549652479.0",
22
+ "@salutejs/plasma-new-hope": "0.336.0-canary.2216.17578968860.0",
23
23
  "@salutejs/sdds-themes": "0.47.0"
24
24
  },
25
25
  "peerDependencies": {
@@ -94,5 +94,5 @@
94
94
  "Anton Vinogradov"
95
95
  ],
96
96
  "sideEffects": false,
97
- "gitHead": "efc7378be06a6e39f9786f76f87113d16758381f"
97
+ "gitHead": "6c549573f4338f28f4cda54e2206baf29549da9d"
98
98
  }