@salutejs/sdds-dfa 0.322.0-canary.2213.17513842134.0 → 0.322.0-canary.2213.17563910419.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Autocomplete/Autocomplete.d.ts +124 -117
- package/components/Autocomplete/Autocomplete.js +76 -4
- package/components/Combobox/Combobox.d.ts +24 -24
- package/components/Dropdown/Dropdown.d.ts +4 -4
- package/components/Select/Select.d.ts +6 -6
- package/es/components/Autocomplete/Autocomplete.js +61 -2
- package/package.json +3 -3
@@ -1,4 +1,7 @@
|
|
1
|
-
|
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?:
|
39
|
+
zIndex?: React.CSSProperties["zIndex"];
|
37
40
|
value?: string;
|
38
41
|
defaultValue?: string;
|
39
|
-
suggestions?:
|
42
|
+
suggestions?: SuggestionItemType[] | undefined;
|
40
43
|
threshold?: number;
|
41
|
-
filter?: (data:
|
42
|
-
onSuggestionSelect?: (data:
|
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?:
|
47
|
-
renderListEnd?: () =>
|
48
|
-
renderItem?: (item:
|
49
|
-
beforeList?:
|
50
|
-
afterList?:
|
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?:
|
57
|
-
leftHelper?:
|
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?:
|
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?:
|
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?:
|
80
|
+
hintContentLeft?: React.ReactNode;
|
78
81
|
} & {
|
79
82
|
chips?: never;
|
80
83
|
onChangeChips?: never;
|
81
84
|
enumerationType?: "plain";
|
82
|
-
onSearch?: (value: string, event?:
|
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<
|
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?:
|
94
|
+
zIndex?: React.CSSProperties["zIndex"];
|
92
95
|
value?: string;
|
93
96
|
defaultValue?: string;
|
94
|
-
suggestions?:
|
97
|
+
suggestions?: SuggestionItemType[] | undefined;
|
95
98
|
threshold?: number;
|
96
|
-
filter?: (data:
|
97
|
-
onSuggestionSelect?: (data:
|
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?:
|
102
|
-
renderListEnd?: () =>
|
103
|
-
renderItem?: (item:
|
104
|
-
beforeList?:
|
105
|
-
afterList?:
|
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?:
|
112
|
-
leftHelper?:
|
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?:
|
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?:
|
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?:
|
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<
|
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?:
|
151
|
+
zIndex?: React.CSSProperties["zIndex"];
|
149
152
|
value?: string;
|
150
153
|
defaultValue?: string;
|
151
|
-
suggestions?:
|
154
|
+
suggestions?: SuggestionItemType[] | undefined;
|
152
155
|
threshold?: number;
|
153
|
-
filter?: (data:
|
154
|
-
onSuggestionSelect?: (data:
|
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?:
|
159
|
-
renderListEnd?: () =>
|
160
|
-
renderItem?: (item:
|
161
|
-
beforeList?:
|
162
|
-
afterList?:
|
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?:
|
169
|
-
leftHelper?:
|
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?:
|
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?:
|
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<
|
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?:
|
206
|
+
zIndex?: React.CSSProperties["zIndex"];
|
204
207
|
value?: string;
|
205
208
|
defaultValue?: string;
|
206
|
-
suggestions?:
|
209
|
+
suggestions?: SuggestionItemType[] | undefined;
|
207
210
|
threshold?: number;
|
208
|
-
filter?: (data:
|
209
|
-
onSuggestionSelect?: (data:
|
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?:
|
214
|
-
renderListEnd?: () =>
|
215
|
-
renderItem?: (item:
|
216
|
-
beforeList?:
|
217
|
-
afterList?:
|
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?:
|
224
|
-
leftHelper?:
|
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?:
|
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<
|
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?:
|
263
|
+
zIndex?: React.CSSProperties["zIndex"];
|
261
264
|
value?: string;
|
262
265
|
defaultValue?: string;
|
263
|
-
suggestions?:
|
266
|
+
suggestions?: SuggestionItemType[] | undefined;
|
264
267
|
threshold?: number;
|
265
|
-
filter?: (data:
|
266
|
-
onSuggestionSelect?: (data:
|
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?:
|
271
|
-
renderListEnd?: () =>
|
272
|
-
renderItem?: (item:
|
273
|
-
beforeList?:
|
274
|
-
afterList?:
|
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?:
|
281
|
-
leftHelper?:
|
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?:
|
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?:
|
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?:
|
304
|
+
hintContentLeft?: React.ReactNode;
|
302
305
|
} & {
|
303
306
|
chips?: never;
|
304
307
|
onChangeChips?: never;
|
305
308
|
enumerationType?: "plain";
|
306
|
-
onSearch?: (value: string, event?:
|
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<
|
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?:
|
318
|
+
zIndex?: React.CSSProperties["zIndex"];
|
316
319
|
value?: string;
|
317
320
|
defaultValue?: string;
|
318
|
-
suggestions?:
|
321
|
+
suggestions?: SuggestionItemType[] | undefined;
|
319
322
|
threshold?: number;
|
320
|
-
filter?: (data:
|
321
|
-
onSuggestionSelect?: (data:
|
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?:
|
326
|
-
renderListEnd?: () =>
|
327
|
-
renderItem?: (item:
|
328
|
-
beforeList?:
|
329
|
-
afterList?:
|
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?:
|
336
|
-
leftHelper?:
|
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?:
|
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?:
|
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?:
|
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<
|
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?:
|
375
|
+
zIndex?: React.CSSProperties["zIndex"];
|
373
376
|
value?: string;
|
374
377
|
defaultValue?: string;
|
375
|
-
suggestions?:
|
378
|
+
suggestions?: SuggestionItemType[] | undefined;
|
376
379
|
threshold?: number;
|
377
|
-
filter?: (data:
|
378
|
-
onSuggestionSelect?: (data:
|
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?:
|
383
|
-
renderListEnd?: () =>
|
384
|
-
renderItem?: (item:
|
385
|
-
beforeList?:
|
386
|
-
afterList?:
|
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?:
|
393
|
-
leftHelper?:
|
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?:
|
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?:
|
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<
|
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?:
|
430
|
+
zIndex?: React.CSSProperties["zIndex"];
|
428
431
|
value?: string;
|
429
432
|
defaultValue?: string;
|
430
|
-
suggestions?:
|
433
|
+
suggestions?: SuggestionItemType[] | undefined;
|
431
434
|
threshold?: number;
|
432
|
-
filter?: (data:
|
433
|
-
onSuggestionSelect?: (data:
|
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?:
|
438
|
-
renderListEnd?: () =>
|
439
|
-
renderItem?: (item:
|
440
|
-
beforeList?:
|
441
|
-
afterList?:
|
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?:
|
448
|
-
leftHelper?:
|
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?:
|
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<
|
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
|
-
|
6
|
-
|
7
|
-
|
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
|
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>;
|
@@ -59,6 +58,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
59
58
|
view?: string;
|
60
59
|
emptyStateDescription?: string;
|
61
60
|
listHeight?: React.CSSProperties["height"];
|
61
|
+
listOverflow?: React.CSSProperties["overflow"];
|
62
62
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
63
63
|
readOnly?: boolean;
|
64
64
|
disabled?: true;
|
@@ -96,7 +96,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
96
96
|
textAfter?: string;
|
97
97
|
variant?: "normal" | "tight";
|
98
98
|
zIndex?: React.CSSProperties["zIndex"];
|
99
|
-
listOverflow?: React.CSSProperties["overflow"];
|
100
99
|
listMaxHeight?: React.CSSProperties["height"];
|
101
100
|
listWidth?: React.CSSProperties["width"];
|
102
101
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -114,6 +113,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
114
113
|
view?: string;
|
115
114
|
emptyStateDescription?: string;
|
116
115
|
listHeight?: React.CSSProperties["height"];
|
116
|
+
listOverflow?: React.CSSProperties["overflow"];
|
117
117
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
118
118
|
readOnly?: boolean;
|
119
119
|
disabled?: true;
|
@@ -151,7 +151,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
151
151
|
textAfter?: string;
|
152
152
|
variant?: "normal" | "tight";
|
153
153
|
zIndex?: React.CSSProperties["zIndex"];
|
154
|
-
listOverflow?: React.CSSProperties["overflow"];
|
155
154
|
listMaxHeight?: React.CSSProperties["height"];
|
156
155
|
listWidth?: React.CSSProperties["width"];
|
157
156
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -169,6 +168,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
169
168
|
view?: string;
|
170
169
|
emptyStateDescription?: string;
|
171
170
|
listHeight?: React.CSSProperties["height"];
|
171
|
+
listOverflow?: React.CSSProperties["overflow"];
|
172
172
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
173
173
|
readOnly?: boolean;
|
174
174
|
disabled?: true;
|
@@ -206,7 +206,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
206
206
|
textAfter?: string;
|
207
207
|
variant?: "normal" | "tight";
|
208
208
|
zIndex?: React.CSSProperties["zIndex"];
|
209
|
-
listOverflow?: React.CSSProperties["overflow"];
|
210
209
|
listMaxHeight?: React.CSSProperties["height"];
|
211
210
|
listWidth?: React.CSSProperties["width"];
|
212
211
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -224,6 +223,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
224
223
|
view?: string;
|
225
224
|
emptyStateDescription?: string;
|
226
225
|
listHeight?: React.CSSProperties["height"];
|
226
|
+
listOverflow?: React.CSSProperties["overflow"];
|
227
227
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
228
228
|
readOnly?: boolean;
|
229
229
|
disabled?: true;
|
@@ -261,7 +261,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
261
261
|
textAfter?: string;
|
262
262
|
variant?: "normal" | "tight";
|
263
263
|
zIndex?: React.CSSProperties["zIndex"];
|
264
|
-
listOverflow?: React.CSSProperties["overflow"];
|
265
264
|
listMaxHeight?: React.CSSProperties["height"];
|
266
265
|
listWidth?: React.CSSProperties["width"];
|
267
266
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -279,6 +278,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
279
278
|
view?: string;
|
280
279
|
emptyStateDescription?: string;
|
281
280
|
listHeight?: React.CSSProperties["height"];
|
281
|
+
listOverflow?: React.CSSProperties["overflow"];
|
282
282
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
283
283
|
readOnly?: boolean;
|
284
284
|
disabled?: true;
|
@@ -316,7 +316,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
316
316
|
textAfter?: string;
|
317
317
|
variant?: "normal" | "tight";
|
318
318
|
zIndex?: React.CSSProperties["zIndex"];
|
319
|
-
listOverflow?: React.CSSProperties["overflow"];
|
320
319
|
listMaxHeight?: React.CSSProperties["height"];
|
321
320
|
listWidth?: React.CSSProperties["width"];
|
322
321
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -334,6 +333,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
334
333
|
view?: string;
|
335
334
|
emptyStateDescription?: string;
|
336
335
|
listHeight?: React.CSSProperties["height"];
|
336
|
+
listOverflow?: React.CSSProperties["overflow"];
|
337
337
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
338
338
|
readOnly?: boolean;
|
339
339
|
disabled?: true;
|
@@ -371,7 +371,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
371
371
|
textAfter?: string;
|
372
372
|
variant?: "normal" | "tight";
|
373
373
|
zIndex?: React.CSSProperties["zIndex"];
|
374
|
-
listOverflow?: React.CSSProperties["overflow"];
|
375
374
|
listMaxHeight?: React.CSSProperties["height"];
|
376
375
|
listWidth?: React.CSSProperties["width"];
|
377
376
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -389,6 +388,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
389
388
|
view?: string;
|
390
389
|
emptyStateDescription?: string;
|
391
390
|
listHeight?: React.CSSProperties["height"];
|
391
|
+
listOverflow?: React.CSSProperties["overflow"];
|
392
392
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
393
393
|
readOnly?: boolean;
|
394
394
|
disabled?: true;
|
@@ -426,7 +426,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
426
426
|
textAfter?: string;
|
427
427
|
variant?: "normal" | "tight";
|
428
428
|
zIndex?: React.CSSProperties["zIndex"];
|
429
|
-
listOverflow?: React.CSSProperties["overflow"];
|
430
429
|
listMaxHeight?: React.CSSProperties["height"];
|
431
430
|
listWidth?: React.CSSProperties["width"];
|
432
431
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -444,6 +443,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
444
443
|
view?: string;
|
445
444
|
emptyStateDescription?: string;
|
446
445
|
listHeight?: React.CSSProperties["height"];
|
446
|
+
listOverflow?: React.CSSProperties["overflow"];
|
447
447
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
448
448
|
readOnly?: boolean;
|
449
449
|
disabled?: true;
|
@@ -481,7 +481,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
481
481
|
textAfter?: string;
|
482
482
|
variant?: "normal" | "tight";
|
483
483
|
zIndex?: React.CSSProperties["zIndex"];
|
484
|
-
listOverflow?: React.CSSProperties["overflow"];
|
485
484
|
listMaxHeight?: React.CSSProperties["height"];
|
486
485
|
listWidth?: React.CSSProperties["width"];
|
487
486
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -499,6 +498,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
499
498
|
view?: string;
|
500
499
|
emptyStateDescription?: string;
|
501
500
|
listHeight?: React.CSSProperties["height"];
|
501
|
+
listOverflow?: React.CSSProperties["overflow"];
|
502
502
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
503
503
|
readOnly?: true;
|
504
504
|
disabled?: boolean;
|
@@ -536,7 +536,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
536
536
|
textAfter?: string;
|
537
537
|
variant?: "normal" | "tight";
|
538
538
|
zIndex?: React.CSSProperties["zIndex"];
|
539
|
-
listOverflow?: React.CSSProperties["overflow"];
|
540
539
|
listMaxHeight?: React.CSSProperties["height"];
|
541
540
|
listWidth?: React.CSSProperties["width"];
|
542
541
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -554,6 +553,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
554
553
|
view?: string;
|
555
554
|
emptyStateDescription?: string;
|
556
555
|
listHeight?: React.CSSProperties["height"];
|
556
|
+
listOverflow?: React.CSSProperties["overflow"];
|
557
557
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
558
558
|
readOnly?: true;
|
559
559
|
disabled?: boolean;
|
@@ -591,7 +591,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
591
591
|
textAfter?: string;
|
592
592
|
variant?: "normal" | "tight";
|
593
593
|
zIndex?: React.CSSProperties["zIndex"];
|
594
|
-
listOverflow?: React.CSSProperties["overflow"];
|
595
594
|
listMaxHeight?: React.CSSProperties["height"];
|
596
595
|
listWidth?: React.CSSProperties["width"];
|
597
596
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -609,6 +608,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
609
608
|
view?: string;
|
610
609
|
emptyStateDescription?: string;
|
611
610
|
listHeight?: React.CSSProperties["height"];
|
611
|
+
listOverflow?: React.CSSProperties["overflow"];
|
612
612
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
613
613
|
readOnly?: true;
|
614
614
|
disabled?: boolean;
|
@@ -646,7 +646,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
646
646
|
textAfter?: string;
|
647
647
|
variant?: "normal" | "tight";
|
648
648
|
zIndex?: React.CSSProperties["zIndex"];
|
649
|
-
listOverflow?: React.CSSProperties["overflow"];
|
650
649
|
listMaxHeight?: React.CSSProperties["height"];
|
651
650
|
listWidth?: React.CSSProperties["width"];
|
652
651
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -664,6 +663,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
664
663
|
view?: string;
|
665
664
|
emptyStateDescription?: string;
|
666
665
|
listHeight?: React.CSSProperties["height"];
|
666
|
+
listOverflow?: React.CSSProperties["overflow"];
|
667
667
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
668
668
|
readOnly?: true;
|
669
669
|
disabled?: boolean;
|
@@ -701,7 +701,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
701
701
|
textAfter?: string;
|
702
702
|
variant?: "normal" | "tight";
|
703
703
|
zIndex?: React.CSSProperties["zIndex"];
|
704
|
-
listOverflow?: React.CSSProperties["overflow"];
|
705
704
|
listMaxHeight?: React.CSSProperties["height"];
|
706
705
|
listWidth?: React.CSSProperties["width"];
|
707
706
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -719,6 +718,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
719
718
|
view?: string;
|
720
719
|
emptyStateDescription?: string;
|
721
720
|
listHeight?: React.CSSProperties["height"];
|
721
|
+
listOverflow?: React.CSSProperties["overflow"];
|
722
722
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
723
723
|
readOnly?: true;
|
724
724
|
disabled?: boolean;
|
@@ -756,7 +756,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
756
756
|
textAfter?: string;
|
757
757
|
variant?: "normal" | "tight";
|
758
758
|
zIndex?: React.CSSProperties["zIndex"];
|
759
|
-
listOverflow?: React.CSSProperties["overflow"];
|
760
759
|
listMaxHeight?: React.CSSProperties["height"];
|
761
760
|
listWidth?: React.CSSProperties["width"];
|
762
761
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -774,6 +773,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
774
773
|
view?: string;
|
775
774
|
emptyStateDescription?: string;
|
776
775
|
listHeight?: React.CSSProperties["height"];
|
776
|
+
listOverflow?: React.CSSProperties["overflow"];
|
777
777
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
778
778
|
readOnly?: true;
|
779
779
|
disabled?: boolean;
|
@@ -811,7 +811,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
811
811
|
textAfter?: string;
|
812
812
|
variant?: "normal" | "tight";
|
813
813
|
zIndex?: React.CSSProperties["zIndex"];
|
814
|
-
listOverflow?: React.CSSProperties["overflow"];
|
815
814
|
listMaxHeight?: React.CSSProperties["height"];
|
816
815
|
listWidth?: React.CSSProperties["width"];
|
817
816
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -829,6 +828,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
829
828
|
view?: string;
|
830
829
|
emptyStateDescription?: string;
|
831
830
|
listHeight?: React.CSSProperties["height"];
|
831
|
+
listOverflow?: React.CSSProperties["overflow"];
|
832
832
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
833
833
|
readOnly?: true;
|
834
834
|
disabled?: boolean;
|
@@ -866,7 +866,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
866
866
|
textAfter?: string;
|
867
867
|
variant?: "normal" | "tight";
|
868
868
|
zIndex?: React.CSSProperties["zIndex"];
|
869
|
-
listOverflow?: React.CSSProperties["overflow"];
|
870
869
|
listMaxHeight?: React.CSSProperties["height"];
|
871
870
|
listWidth?: React.CSSProperties["width"];
|
872
871
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -884,6 +883,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
884
883
|
view?: string;
|
885
884
|
emptyStateDescription?: string;
|
886
885
|
listHeight?: React.CSSProperties["height"];
|
886
|
+
listOverflow?: React.CSSProperties["overflow"];
|
887
887
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
888
888
|
readOnly?: true;
|
889
889
|
disabled?: boolean;
|
@@ -921,7 +921,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
921
921
|
textAfter?: string;
|
922
922
|
variant?: "normal" | "tight";
|
923
923
|
zIndex?: React.CSSProperties["zIndex"];
|
924
|
-
listOverflow?: React.CSSProperties["overflow"];
|
925
924
|
listMaxHeight?: React.CSSProperties["height"];
|
926
925
|
listWidth?: React.CSSProperties["width"];
|
927
926
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -939,6 +938,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
939
938
|
view?: string;
|
940
939
|
emptyStateDescription?: string;
|
941
940
|
listHeight?: React.CSSProperties["height"];
|
941
|
+
listOverflow?: React.CSSProperties["overflow"];
|
942
942
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
943
943
|
readOnly?: false;
|
944
944
|
disabled?: false;
|
@@ -976,7 +976,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
976
976
|
textAfter?: string;
|
977
977
|
variant?: "normal" | "tight";
|
978
978
|
zIndex?: React.CSSProperties["zIndex"];
|
979
|
-
listOverflow?: React.CSSProperties["overflow"];
|
980
979
|
listMaxHeight?: React.CSSProperties["height"];
|
981
980
|
listWidth?: React.CSSProperties["width"];
|
982
981
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -994,6 +993,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
994
993
|
view?: string;
|
995
994
|
emptyStateDescription?: string;
|
996
995
|
listHeight?: React.CSSProperties["height"];
|
996
|
+
listOverflow?: React.CSSProperties["overflow"];
|
997
997
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
998
998
|
readOnly?: false;
|
999
999
|
disabled?: false;
|
@@ -1031,7 +1031,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1031
1031
|
textAfter?: string;
|
1032
1032
|
variant?: "normal" | "tight";
|
1033
1033
|
zIndex?: React.CSSProperties["zIndex"];
|
1034
|
-
listOverflow?: React.CSSProperties["overflow"];
|
1035
1034
|
listMaxHeight?: React.CSSProperties["height"];
|
1036
1035
|
listWidth?: React.CSSProperties["width"];
|
1037
1036
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -1049,6 +1048,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1049
1048
|
view?: string;
|
1050
1049
|
emptyStateDescription?: string;
|
1051
1050
|
listHeight?: React.CSSProperties["height"];
|
1051
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1052
1052
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1053
1053
|
readOnly?: false;
|
1054
1054
|
disabled?: false;
|
@@ -1086,7 +1086,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1086
1086
|
textAfter?: string;
|
1087
1087
|
variant?: "normal" | "tight";
|
1088
1088
|
zIndex?: React.CSSProperties["zIndex"];
|
1089
|
-
listOverflow?: React.CSSProperties["overflow"];
|
1090
1089
|
listMaxHeight?: React.CSSProperties["height"];
|
1091
1090
|
listWidth?: React.CSSProperties["width"];
|
1092
1091
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -1104,6 +1103,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1104
1103
|
view?: string;
|
1105
1104
|
emptyStateDescription?: string;
|
1106
1105
|
listHeight?: React.CSSProperties["height"];
|
1106
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1107
1107
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1108
1108
|
readOnly?: false;
|
1109
1109
|
disabled?: false;
|
@@ -1141,7 +1141,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1141
1141
|
textAfter?: string;
|
1142
1142
|
variant?: "normal" | "tight";
|
1143
1143
|
zIndex?: React.CSSProperties["zIndex"];
|
1144
|
-
listOverflow?: React.CSSProperties["overflow"];
|
1145
1144
|
listMaxHeight?: React.CSSProperties["height"];
|
1146
1145
|
listWidth?: React.CSSProperties["width"];
|
1147
1146
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -1159,6 +1158,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1159
1158
|
view?: string;
|
1160
1159
|
emptyStateDescription?: string;
|
1161
1160
|
listHeight?: React.CSSProperties["height"];
|
1161
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1162
1162
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1163
1163
|
readOnly?: false;
|
1164
1164
|
disabled?: false;
|
@@ -1196,7 +1196,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1196
1196
|
textAfter?: string;
|
1197
1197
|
variant?: "normal" | "tight";
|
1198
1198
|
zIndex?: React.CSSProperties["zIndex"];
|
1199
|
-
listOverflow?: React.CSSProperties["overflow"];
|
1200
1199
|
listMaxHeight?: React.CSSProperties["height"];
|
1201
1200
|
listWidth?: React.CSSProperties["width"];
|
1202
1201
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -1214,6 +1213,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1214
1213
|
view?: string;
|
1215
1214
|
emptyStateDescription?: string;
|
1216
1215
|
listHeight?: React.CSSProperties["height"];
|
1216
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1217
1217
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1218
1218
|
readOnly?: false;
|
1219
1219
|
disabled?: false;
|
@@ -1251,7 +1251,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1251
1251
|
textAfter?: string;
|
1252
1252
|
variant?: "normal" | "tight";
|
1253
1253
|
zIndex?: React.CSSProperties["zIndex"];
|
1254
|
-
listOverflow?: React.CSSProperties["overflow"];
|
1255
1254
|
listMaxHeight?: React.CSSProperties["height"];
|
1256
1255
|
listWidth?: React.CSSProperties["width"];
|
1257
1256
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -1269,6 +1268,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1269
1268
|
view?: string;
|
1270
1269
|
emptyStateDescription?: string;
|
1271
1270
|
listHeight?: React.CSSProperties["height"];
|
1271
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1272
1272
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1273
1273
|
readOnly?: false;
|
1274
1274
|
disabled?: false;
|
@@ -1306,7 +1306,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1306
1306
|
textAfter?: string;
|
1307
1307
|
variant?: "normal" | "tight";
|
1308
1308
|
zIndex?: React.CSSProperties["zIndex"];
|
1309
|
-
listOverflow?: React.CSSProperties["overflow"];
|
1310
1309
|
listMaxHeight?: React.CSSProperties["height"];
|
1311
1310
|
listWidth?: React.CSSProperties["width"];
|
1312
1311
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -1324,6 +1323,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1324
1323
|
view?: string;
|
1325
1324
|
emptyStateDescription?: string;
|
1326
1325
|
listHeight?: React.CSSProperties["height"];
|
1326
|
+
listOverflow?: React.CSSProperties["overflow"];
|
1327
1327
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
1328
1328
|
readOnly?: false;
|
1329
1329
|
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>;
|
@@ -99,6 +98,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
99
98
|
isOpen?: boolean;
|
100
99
|
listHeight?: React.CSSProperties["height"];
|
101
100
|
onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
|
101
|
+
listOverflow?: React.CSSProperties["overflow"];
|
102
102
|
} & 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 & {
|
103
103
|
hintText: string;
|
104
104
|
hintTrigger?: "hover" | "click";
|
@@ -137,7 +137,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
137
137
|
placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
|
138
138
|
variant?: "normal" | "tight";
|
139
139
|
zIndex?: React.CSSProperties["zIndex"];
|
140
|
-
listOverflow?: React.CSSProperties["overflow"];
|
141
140
|
listMaxHeight?: React.CSSProperties["height"];
|
142
141
|
listWidth?: React.CSSProperties["width"];
|
143
142
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -158,6 +157,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
158
157
|
isOpen?: boolean;
|
159
158
|
listHeight?: React.CSSProperties["height"];
|
160
159
|
onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
|
160
|
+
listOverflow?: React.CSSProperties["overflow"];
|
161
161
|
} & 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 & {
|
162
162
|
hintTrigger?: never;
|
163
163
|
hintText?: never;
|
@@ -195,7 +195,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
195
195
|
placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
|
196
196
|
variant?: "normal" | "tight";
|
197
197
|
zIndex?: React.CSSProperties["zIndex"];
|
198
|
-
listOverflow?: React.CSSProperties["overflow"];
|
199
198
|
listMaxHeight?: React.CSSProperties["height"];
|
200
199
|
listWidth?: React.CSSProperties["width"];
|
201
200
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -216,6 +215,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
216
215
|
isOpen?: boolean;
|
217
216
|
listHeight?: React.CSSProperties["height"];
|
218
217
|
onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
|
218
|
+
listOverflow?: React.CSSProperties["overflow"];
|
219
219
|
} & 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 & {
|
220
220
|
hintTrigger?: never;
|
221
221
|
hintText?: never;
|
@@ -254,7 +254,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
254
254
|
placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
|
255
255
|
variant?: "normal" | "tight";
|
256
256
|
zIndex?: React.CSSProperties["zIndex"];
|
257
|
-
listOverflow?: React.CSSProperties["overflow"];
|
258
257
|
listMaxHeight?: React.CSSProperties["height"];
|
259
258
|
listWidth?: React.CSSProperties["width"];
|
260
259
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -275,6 +274,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
275
274
|
isOpen?: boolean;
|
276
275
|
listHeight?: React.CSSProperties["height"];
|
277
276
|
onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
|
277
|
+
listOverflow?: React.CSSProperties["overflow"];
|
278
278
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>) | (import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
279
279
|
target: "button-like";
|
280
280
|
view?: "default" | "accent" | "secondary" | "clear" | "positive" | "warning" | "negative" | "dark" | "black" | "white";
|
@@ -300,7 +300,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
300
300
|
placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
|
301
301
|
variant?: "normal" | "tight";
|
302
302
|
zIndex?: React.CSSProperties["zIndex"];
|
303
|
-
listOverflow?: React.CSSProperties["overflow"];
|
304
303
|
listMaxHeight?: React.CSSProperties["height"];
|
305
304
|
listWidth?: React.CSSProperties["width"];
|
306
305
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -321,6 +320,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
321
320
|
isOpen?: boolean;
|
322
321
|
listHeight?: React.CSSProperties["height"];
|
323
322
|
onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
|
323
|
+
listOverflow?: React.CSSProperties["overflow"];
|
324
324
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>) | (import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").LabelProps & {
|
325
325
|
target: "button-like";
|
326
326
|
view?: "default" | "accent" | "secondary" | "clear" | "positive" | "warning" | "negative" | "dark" | "black" | "white";
|
@@ -347,7 +347,6 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
347
347
|
placement?: import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacement | Array<import("@salutejs/plasma-new-hope/types/components/Select/Select.types").SelectPlacementBasic>;
|
348
348
|
variant?: "normal" | "tight";
|
349
349
|
zIndex?: React.CSSProperties["zIndex"];
|
350
|
-
listOverflow?: React.CSSProperties["overflow"];
|
351
350
|
listMaxHeight?: React.CSSProperties["height"];
|
352
351
|
listWidth?: React.CSSProperties["width"];
|
353
352
|
portal?: string | React.RefObject<HTMLElement>;
|
@@ -368,6 +367,7 @@ declare const SelectNewHope: React.FunctionComponent<import("@salutejs/plasma-ne
|
|
368
367
|
isOpen?: boolean;
|
369
368
|
listHeight?: React.CSSProperties["height"];
|
370
369
|
onScrollBottom?: (e: React.UIEvent<HTMLElement>) => void;
|
370
|
+
listOverflow?: React.CSSProperties["overflow"];
|
371
371
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>))>;
|
372
372
|
export type SelectProps<K extends ItemOptionSelect> = DistributiveOmit<SelectPropsNewHope<K>, 'size' | 'view' | 'chipView' | 'disabled'> & DistributivePick<ComponentProps<typeof SelectNewHope>, 'size' | 'view' | 'chipView' | 'disabled'>;
|
373
373
|
declare const Select: <K extends ItemOptionSelect>(props: SelectProps<K> & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
|
@@ -1,4 +1,63 @@
|
|
1
|
-
|
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
|
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.2213.
|
3
|
+
"version": "0.322.0-canary.2213.17563910419.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.2213.
|
22
|
+
"@salutejs/plasma-new-hope": "0.336.0-canary.2213.17563910419.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": "
|
97
|
+
"gitHead": "3870593608adb470675a493ceeb3dae6c8344dc5"
|
98
98
|
}
|