@salutejs/sdds-cs 0.314.0-canary.1924.14511649579.0 → 0.314.0-canary.1925.14706826356.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/CHANGELOG.md +121 -0
- package/components/Combobox/Combobox.d.ts +99 -99
- package/components/Combobox/index.d.ts +1 -1
- package/components/DatePicker/DatePicker.config.js +1 -1
- package/components/DatePicker/DatePicker.d.ts +6 -4
- package/components/Tabs/horizontal/HorizontalTabItem.config.js +4 -4
- package/components/Tabs/vertical/VerticalTabItem.config.js +1 -1
- package/emotion/cjs/components/DatePicker/DatePicker.config.js +1 -1
- package/emotion/cjs/components/DatePicker/DatePicker.stories.tsx +7 -10
- package/emotion/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +4 -4
- package/emotion/cjs/components/Tabs/vertical/VerticalTabItem.config.js +1 -1
- package/emotion/es/components/DatePicker/DatePicker.config.js +1 -1
- package/emotion/es/components/DatePicker/DatePicker.stories.tsx +7 -10
- package/emotion/es/components/Tabs/horizontal/HorizontalTabItem.config.js +4 -4
- package/emotion/es/components/Tabs/vertical/VerticalTabItem.config.js +1 -1
- package/es/components/DatePicker/DatePicker.config.js +1 -1
- package/es/components/Tabs/horizontal/HorizontalTabItem.config.js +4 -4
- package/es/components/Tabs/vertical/VerticalTabItem.config.js +1 -1
- package/package.json +8 -8
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ComboboxItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';
|
2
2
|
import React, { ComponentProps } from 'react';
|
3
3
|
import { config } from './Combobox.config';
|
4
4
|
declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
@@ -20,7 +20,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
20
20
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
21
21
|
};
|
22
22
|
}> & (({
|
23
|
-
items:
|
23
|
+
items: ComboboxItemOption[];
|
24
24
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
25
25
|
placeholder?: string | undefined;
|
26
26
|
helperText?: string | undefined;
|
@@ -33,8 +33,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
33
33
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
34
34
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
35
35
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
36
|
-
renderItem?: ((item:
|
37
|
-
filter?: ((item:
|
36
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
37
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
38
38
|
closeAfterSelect?: boolean | undefined;
|
39
39
|
onChangeValue?: ((value: string) => void) | undefined;
|
40
40
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -73,7 +73,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
73
73
|
hintWidth?: string | undefined;
|
74
74
|
hintContentLeft?: React.ReactNode;
|
75
75
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
76
|
-
items:
|
76
|
+
items: ComboboxItemOption[];
|
77
77
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
78
78
|
placeholder?: string | undefined;
|
79
79
|
helperText?: string | undefined;
|
@@ -86,8 +86,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
86
86
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
87
87
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
88
88
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
89
|
-
renderItem?: ((item:
|
90
|
-
filter?: ((item:
|
89
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
90
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
91
91
|
closeAfterSelect?: boolean | undefined;
|
92
92
|
onChangeValue?: ((value: string) => void) | undefined;
|
93
93
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -126,7 +126,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
126
126
|
hintWidth?: undefined;
|
127
127
|
hintContentLeft?: undefined;
|
128
128
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
129
|
-
items:
|
129
|
+
items: ComboboxItemOption[];
|
130
130
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
131
131
|
placeholder?: string | undefined;
|
132
132
|
helperText?: string | undefined;
|
@@ -139,8 +139,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
139
139
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
140
140
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
141
141
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
142
|
-
renderItem?: ((item:
|
143
|
-
filter?: ((item:
|
142
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
143
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
144
144
|
closeAfterSelect?: boolean | undefined;
|
145
145
|
onChangeValue?: ((value: string) => void) | undefined;
|
146
146
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -162,7 +162,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
162
162
|
} & {
|
163
163
|
multiple?: false | undefined;
|
164
164
|
value?: string | undefined;
|
165
|
-
onChange?: ((value: string, item:
|
165
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
166
166
|
isTargetAmount?: false | undefined;
|
167
167
|
targetAmount?: undefined;
|
168
168
|
renderValue?: undefined;
|
@@ -179,7 +179,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
179
179
|
hintWidth?: string | undefined;
|
180
180
|
hintContentLeft?: React.ReactNode;
|
181
181
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
182
|
-
items:
|
182
|
+
items: ComboboxItemOption[];
|
183
183
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
184
184
|
placeholder?: string | undefined;
|
185
185
|
helperText?: string | undefined;
|
@@ -192,8 +192,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
192
192
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
193
193
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
194
194
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
195
|
-
renderItem?: ((item:
|
196
|
-
filter?: ((item:
|
195
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
196
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
197
197
|
closeAfterSelect?: boolean | undefined;
|
198
198
|
onChangeValue?: ((value: string) => void) | undefined;
|
199
199
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -215,7 +215,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
215
215
|
} & {
|
216
216
|
multiple?: false | undefined;
|
217
217
|
value?: string | undefined;
|
218
|
-
onChange?: ((value: string, item:
|
218
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
219
219
|
isTargetAmount?: false | undefined;
|
220
220
|
targetAmount?: undefined;
|
221
221
|
renderValue?: undefined;
|
@@ -232,7 +232,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
232
232
|
hintWidth?: undefined;
|
233
233
|
hintContentLeft?: undefined;
|
234
234
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
235
|
-
items:
|
235
|
+
items: ComboboxItemOption[];
|
236
236
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
237
237
|
placeholder?: string | undefined;
|
238
238
|
helperText?: string | undefined;
|
@@ -245,8 +245,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
245
245
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
246
246
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
247
247
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
248
|
-
renderItem?: ((item:
|
249
|
-
filter?: ((item:
|
248
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
249
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
250
250
|
closeAfterSelect?: boolean | undefined;
|
251
251
|
onChangeValue?: ((value: string) => void) | undefined;
|
252
252
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -268,10 +268,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
268
268
|
} & {
|
269
269
|
multiple: true;
|
270
270
|
value?: string[] | undefined;
|
271
|
-
onChange?: ((value: string[], item:
|
271
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
272
272
|
isTargetAmount?: true | undefined;
|
273
273
|
targetAmount?: number | undefined;
|
274
|
-
renderValue?: ((item:
|
274
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
275
275
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
276
276
|
hintText: string;
|
277
277
|
hintTrigger?: "click" | "hover" | undefined;
|
@@ -285,7 +285,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
285
285
|
hintWidth?: string | undefined;
|
286
286
|
hintContentLeft?: React.ReactNode;
|
287
287
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
288
|
-
items:
|
288
|
+
items: ComboboxItemOption[];
|
289
289
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
290
290
|
placeholder?: string | undefined;
|
291
291
|
helperText?: string | undefined;
|
@@ -298,8 +298,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
298
298
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
299
299
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
300
300
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
301
|
-
renderItem?: ((item:
|
302
|
-
filter?: ((item:
|
301
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
302
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
303
303
|
closeAfterSelect?: boolean | undefined;
|
304
304
|
onChangeValue?: ((value: string) => void) | undefined;
|
305
305
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -321,10 +321,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
321
321
|
} & {
|
322
322
|
multiple: true;
|
323
323
|
value?: string[] | undefined;
|
324
|
-
onChange?: ((value: string[], item:
|
324
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
325
325
|
isTargetAmount?: true | undefined;
|
326
326
|
targetAmount?: number | undefined;
|
327
|
-
renderValue?: ((item:
|
327
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
328
328
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
329
329
|
hintTrigger?: undefined;
|
330
330
|
hintText?: undefined;
|
@@ -338,7 +338,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
338
338
|
hintWidth?: undefined;
|
339
339
|
hintContentLeft?: undefined;
|
340
340
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
341
|
-
items:
|
341
|
+
items: ComboboxItemOption[];
|
342
342
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
343
343
|
placeholder?: string | undefined;
|
344
344
|
helperText?: string | undefined;
|
@@ -351,8 +351,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
351
351
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
352
352
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
353
353
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
354
|
-
renderItem?: ((item:
|
355
|
-
filter?: ((item:
|
354
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
355
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
356
356
|
closeAfterSelect?: boolean | undefined;
|
357
357
|
onChangeValue?: ((value: string) => void) | undefined;
|
358
358
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -377,7 +377,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
377
377
|
value?: undefined;
|
378
378
|
isTargetAmount?: true | undefined;
|
379
379
|
targetAmount?: number | undefined;
|
380
|
-
renderValue?: ((item:
|
380
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
381
381
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
382
382
|
hintText: string;
|
383
383
|
hintTrigger?: "click" | "hover" | undefined;
|
@@ -391,7 +391,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
391
391
|
hintWidth?: string | undefined;
|
392
392
|
hintContentLeft?: React.ReactNode;
|
393
393
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
394
|
-
items:
|
394
|
+
items: ComboboxItemOption[];
|
395
395
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
396
396
|
placeholder?: string | undefined;
|
397
397
|
helperText?: string | undefined;
|
@@ -404,8 +404,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
404
404
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
405
405
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
406
406
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
407
|
-
renderItem?: ((item:
|
408
|
-
filter?: ((item:
|
407
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
408
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
409
409
|
closeAfterSelect?: boolean | undefined;
|
410
410
|
onChangeValue?: ((value: string) => void) | undefined;
|
411
411
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -430,7 +430,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
430
430
|
value?: undefined;
|
431
431
|
isTargetAmount?: true | undefined;
|
432
432
|
targetAmount?: number | undefined;
|
433
|
-
renderValue?: ((item:
|
433
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
434
434
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
435
435
|
hintTrigger?: undefined;
|
436
436
|
hintText?: undefined;
|
@@ -444,7 +444,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
444
444
|
hintWidth?: undefined;
|
445
445
|
hintContentLeft?: undefined;
|
446
446
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
447
|
-
items:
|
447
|
+
items: ComboboxItemOption[];
|
448
448
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
449
449
|
placeholder?: string | undefined;
|
450
450
|
helperText?: string | undefined;
|
@@ -457,8 +457,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
457
457
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
458
458
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
459
459
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
460
|
-
renderItem?: ((item:
|
461
|
-
filter?: ((item:
|
460
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
461
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
462
462
|
closeAfterSelect?: boolean | undefined;
|
463
463
|
onChangeValue?: ((value: string) => void) | undefined;
|
464
464
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -497,7 +497,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
497
497
|
hintWidth?: string | undefined;
|
498
498
|
hintContentLeft?: React.ReactNode;
|
499
499
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
500
|
-
items:
|
500
|
+
items: ComboboxItemOption[];
|
501
501
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
502
502
|
placeholder?: string | undefined;
|
503
503
|
helperText?: string | undefined;
|
@@ -510,8 +510,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
510
510
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
511
511
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
512
512
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
513
|
-
renderItem?: ((item:
|
514
|
-
filter?: ((item:
|
513
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
514
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
515
515
|
closeAfterSelect?: boolean | undefined;
|
516
516
|
onChangeValue?: ((value: string) => void) | undefined;
|
517
517
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -550,7 +550,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
550
550
|
hintWidth?: undefined;
|
551
551
|
hintContentLeft?: undefined;
|
552
552
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
553
|
-
items:
|
553
|
+
items: ComboboxItemOption[];
|
554
554
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
555
555
|
placeholder?: string | undefined;
|
556
556
|
helperText?: string | undefined;
|
@@ -563,8 +563,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
563
563
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
564
564
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
565
565
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
566
|
-
renderItem?: ((item:
|
567
|
-
filter?: ((item:
|
566
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
567
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
568
568
|
closeAfterSelect?: boolean | undefined;
|
569
569
|
onChangeValue?: ((value: string) => void) | undefined;
|
570
570
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -586,7 +586,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
586
586
|
} & {
|
587
587
|
multiple?: false | undefined;
|
588
588
|
value?: string | undefined;
|
589
|
-
onChange?: ((value: string, item:
|
589
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
590
590
|
isTargetAmount?: false | undefined;
|
591
591
|
targetAmount?: undefined;
|
592
592
|
renderValue?: undefined;
|
@@ -603,7 +603,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
603
603
|
hintWidth?: string | undefined;
|
604
604
|
hintContentLeft?: React.ReactNode;
|
605
605
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
606
|
-
items:
|
606
|
+
items: ComboboxItemOption[];
|
607
607
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
608
608
|
placeholder?: string | undefined;
|
609
609
|
helperText?: string | undefined;
|
@@ -616,8 +616,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
616
616
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
617
617
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
618
618
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
619
|
-
renderItem?: ((item:
|
620
|
-
filter?: ((item:
|
619
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
620
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
621
621
|
closeAfterSelect?: boolean | undefined;
|
622
622
|
onChangeValue?: ((value: string) => void) | undefined;
|
623
623
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -639,7 +639,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
639
639
|
} & {
|
640
640
|
multiple?: false | undefined;
|
641
641
|
value?: string | undefined;
|
642
|
-
onChange?: ((value: string, item:
|
642
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
643
643
|
isTargetAmount?: false | undefined;
|
644
644
|
targetAmount?: undefined;
|
645
645
|
renderValue?: undefined;
|
@@ -656,7 +656,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
656
656
|
hintWidth?: undefined;
|
657
657
|
hintContentLeft?: undefined;
|
658
658
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
659
|
-
items:
|
659
|
+
items: ComboboxItemOption[];
|
660
660
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
661
661
|
placeholder?: string | undefined;
|
662
662
|
helperText?: string | undefined;
|
@@ -669,8 +669,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
669
669
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
670
670
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
671
671
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
672
|
-
renderItem?: ((item:
|
673
|
-
filter?: ((item:
|
672
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
673
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
674
674
|
closeAfterSelect?: boolean | undefined;
|
675
675
|
onChangeValue?: ((value: string) => void) | undefined;
|
676
676
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -692,10 +692,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
692
692
|
} & {
|
693
693
|
multiple: true;
|
694
694
|
value?: string[] | undefined;
|
695
|
-
onChange?: ((value: string[], item:
|
695
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
696
696
|
isTargetAmount?: true | undefined;
|
697
697
|
targetAmount?: number | undefined;
|
698
|
-
renderValue?: ((item:
|
698
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
699
699
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
700
700
|
hintText: string;
|
701
701
|
hintTrigger?: "click" | "hover" | undefined;
|
@@ -709,7 +709,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
709
709
|
hintWidth?: string | undefined;
|
710
710
|
hintContentLeft?: React.ReactNode;
|
711
711
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
712
|
-
items:
|
712
|
+
items: ComboboxItemOption[];
|
713
713
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
714
714
|
placeholder?: string | undefined;
|
715
715
|
helperText?: string | undefined;
|
@@ -722,8 +722,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
722
722
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
723
723
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
724
724
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
725
|
-
renderItem?: ((item:
|
726
|
-
filter?: ((item:
|
725
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
726
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
727
727
|
closeAfterSelect?: boolean | undefined;
|
728
728
|
onChangeValue?: ((value: string) => void) | undefined;
|
729
729
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -745,10 +745,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
745
745
|
} & {
|
746
746
|
multiple: true;
|
747
747
|
value?: string[] | undefined;
|
748
|
-
onChange?: ((value: string[], item:
|
748
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
749
749
|
isTargetAmount?: true | undefined;
|
750
750
|
targetAmount?: number | undefined;
|
751
|
-
renderValue?: ((item:
|
751
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
752
752
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
753
753
|
hintTrigger?: undefined;
|
754
754
|
hintText?: undefined;
|
@@ -762,7 +762,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
762
762
|
hintWidth?: undefined;
|
763
763
|
hintContentLeft?: undefined;
|
764
764
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
765
|
-
items:
|
765
|
+
items: ComboboxItemOption[];
|
766
766
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
767
767
|
placeholder?: string | undefined;
|
768
768
|
helperText?: string | undefined;
|
@@ -775,8 +775,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
775
775
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
776
776
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
777
777
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
778
|
-
renderItem?: ((item:
|
779
|
-
filter?: ((item:
|
778
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
779
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
780
780
|
closeAfterSelect?: boolean | undefined;
|
781
781
|
onChangeValue?: ((value: string) => void) | undefined;
|
782
782
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -801,7 +801,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
801
801
|
value?: undefined;
|
802
802
|
isTargetAmount?: true | undefined;
|
803
803
|
targetAmount?: number | undefined;
|
804
|
-
renderValue?: ((item:
|
804
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
805
805
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
806
806
|
hintText: string;
|
807
807
|
hintTrigger?: "click" | "hover" | undefined;
|
@@ -815,7 +815,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
815
815
|
hintWidth?: string | undefined;
|
816
816
|
hintContentLeft?: React.ReactNode;
|
817
817
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
818
|
-
items:
|
818
|
+
items: ComboboxItemOption[];
|
819
819
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
820
820
|
placeholder?: string | undefined;
|
821
821
|
helperText?: string | undefined;
|
@@ -828,8 +828,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
828
828
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
829
829
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
830
830
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
831
|
-
renderItem?: ((item:
|
832
|
-
filter?: ((item:
|
831
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
832
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
833
833
|
closeAfterSelect?: boolean | undefined;
|
834
834
|
onChangeValue?: ((value: string) => void) | undefined;
|
835
835
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -854,7 +854,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
854
854
|
value?: undefined;
|
855
855
|
isTargetAmount?: true | undefined;
|
856
856
|
targetAmount?: number | undefined;
|
857
|
-
renderValue?: ((item:
|
857
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
858
858
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
859
859
|
hintTrigger?: undefined;
|
860
860
|
hintText?: undefined;
|
@@ -868,7 +868,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
868
868
|
hintWidth?: undefined;
|
869
869
|
hintContentLeft?: undefined;
|
870
870
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
871
|
-
items:
|
871
|
+
items: ComboboxItemOption[];
|
872
872
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
873
873
|
placeholder?: string | undefined;
|
874
874
|
helperText?: string | undefined;
|
@@ -881,8 +881,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
881
881
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
882
882
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
883
883
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
884
|
-
renderItem?: ((item:
|
885
|
-
filter?: ((item:
|
884
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
885
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
886
886
|
closeAfterSelect?: boolean | undefined;
|
887
887
|
onChangeValue?: ((value: string) => void) | undefined;
|
888
888
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -921,7 +921,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
921
921
|
hintWidth?: string | undefined;
|
922
922
|
hintContentLeft?: React.ReactNode;
|
923
923
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
924
|
-
items:
|
924
|
+
items: ComboboxItemOption[];
|
925
925
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
926
926
|
placeholder?: string | undefined;
|
927
927
|
helperText?: string | undefined;
|
@@ -934,8 +934,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
934
934
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
935
935
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
936
936
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
937
|
-
renderItem?: ((item:
|
938
|
-
filter?: ((item:
|
937
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
938
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
939
939
|
closeAfterSelect?: boolean | undefined;
|
940
940
|
onChangeValue?: ((value: string) => void) | undefined;
|
941
941
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -974,7 +974,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
974
974
|
hintWidth?: undefined;
|
975
975
|
hintContentLeft?: undefined;
|
976
976
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
977
|
-
items:
|
977
|
+
items: ComboboxItemOption[];
|
978
978
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
979
979
|
placeholder?: string | undefined;
|
980
980
|
helperText?: string | undefined;
|
@@ -987,8 +987,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
987
987
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
988
988
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
989
989
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
990
|
-
renderItem?: ((item:
|
991
|
-
filter?: ((item:
|
990
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
991
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
992
992
|
closeAfterSelect?: boolean | undefined;
|
993
993
|
onChangeValue?: ((value: string) => void) | undefined;
|
994
994
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1010,7 +1010,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1010
1010
|
} & {
|
1011
1011
|
multiple?: false | undefined;
|
1012
1012
|
value?: string | undefined;
|
1013
|
-
onChange?: ((value: string, item:
|
1013
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
1014
1014
|
isTargetAmount?: false | undefined;
|
1015
1015
|
targetAmount?: undefined;
|
1016
1016
|
renderValue?: undefined;
|
@@ -1027,7 +1027,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1027
1027
|
hintWidth?: string | undefined;
|
1028
1028
|
hintContentLeft?: React.ReactNode;
|
1029
1029
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1030
|
-
items:
|
1030
|
+
items: ComboboxItemOption[];
|
1031
1031
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1032
1032
|
placeholder?: string | undefined;
|
1033
1033
|
helperText?: string | undefined;
|
@@ -1040,8 +1040,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1040
1040
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1041
1041
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1042
1042
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1043
|
-
renderItem?: ((item:
|
1044
|
-
filter?: ((item:
|
1043
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1044
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1045
1045
|
closeAfterSelect?: boolean | undefined;
|
1046
1046
|
onChangeValue?: ((value: string) => void) | undefined;
|
1047
1047
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1063,7 +1063,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1063
1063
|
} & {
|
1064
1064
|
multiple?: false | undefined;
|
1065
1065
|
value?: string | undefined;
|
1066
|
-
onChange?: ((value: string, item:
|
1066
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
1067
1067
|
isTargetAmount?: false | undefined;
|
1068
1068
|
targetAmount?: undefined;
|
1069
1069
|
renderValue?: undefined;
|
@@ -1080,7 +1080,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1080
1080
|
hintWidth?: undefined;
|
1081
1081
|
hintContentLeft?: undefined;
|
1082
1082
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1083
|
-
items:
|
1083
|
+
items: ComboboxItemOption[];
|
1084
1084
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1085
1085
|
placeholder?: string | undefined;
|
1086
1086
|
helperText?: string | undefined;
|
@@ -1093,8 +1093,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1093
1093
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1094
1094
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1095
1095
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1096
|
-
renderItem?: ((item:
|
1097
|
-
filter?: ((item:
|
1096
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1097
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1098
1098
|
closeAfterSelect?: boolean | undefined;
|
1099
1099
|
onChangeValue?: ((value: string) => void) | undefined;
|
1100
1100
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1116,10 +1116,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1116
1116
|
} & {
|
1117
1117
|
multiple: true;
|
1118
1118
|
value?: string[] | undefined;
|
1119
|
-
onChange?: ((value: string[], item:
|
1119
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
1120
1120
|
isTargetAmount?: true | undefined;
|
1121
1121
|
targetAmount?: number | undefined;
|
1122
|
-
renderValue?: ((item:
|
1122
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1123
1123
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1124
1124
|
hintText: string;
|
1125
1125
|
hintTrigger?: "click" | "hover" | undefined;
|
@@ -1133,7 +1133,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1133
1133
|
hintWidth?: string | undefined;
|
1134
1134
|
hintContentLeft?: React.ReactNode;
|
1135
1135
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1136
|
-
items:
|
1136
|
+
items: ComboboxItemOption[];
|
1137
1137
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1138
1138
|
placeholder?: string | undefined;
|
1139
1139
|
helperText?: string | undefined;
|
@@ -1146,8 +1146,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1146
1146
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1147
1147
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1148
1148
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1149
|
-
renderItem?: ((item:
|
1150
|
-
filter?: ((item:
|
1149
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1150
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1151
1151
|
closeAfterSelect?: boolean | undefined;
|
1152
1152
|
onChangeValue?: ((value: string) => void) | undefined;
|
1153
1153
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1169,10 +1169,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1169
1169
|
} & {
|
1170
1170
|
multiple: true;
|
1171
1171
|
value?: string[] | undefined;
|
1172
|
-
onChange?: ((value: string[], item:
|
1172
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
1173
1173
|
isTargetAmount?: true | undefined;
|
1174
1174
|
targetAmount?: number | undefined;
|
1175
|
-
renderValue?: ((item:
|
1175
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1176
1176
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1177
1177
|
hintTrigger?: undefined;
|
1178
1178
|
hintText?: undefined;
|
@@ -1186,7 +1186,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1186
1186
|
hintWidth?: undefined;
|
1187
1187
|
hintContentLeft?: undefined;
|
1188
1188
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1189
|
-
items:
|
1189
|
+
items: ComboboxItemOption[];
|
1190
1190
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1191
1191
|
placeholder?: string | undefined;
|
1192
1192
|
helperText?: string | undefined;
|
@@ -1199,8 +1199,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1199
1199
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1200
1200
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1201
1201
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1202
|
-
renderItem?: ((item:
|
1203
|
-
filter?: ((item:
|
1202
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1203
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1204
1204
|
closeAfterSelect?: boolean | undefined;
|
1205
1205
|
onChangeValue?: ((value: string) => void) | undefined;
|
1206
1206
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1225,7 +1225,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1225
1225
|
value?: undefined;
|
1226
1226
|
isTargetAmount?: true | undefined;
|
1227
1227
|
targetAmount?: number | undefined;
|
1228
|
-
renderValue?: ((item:
|
1228
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1229
1229
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1230
1230
|
hintText: string;
|
1231
1231
|
hintTrigger?: "click" | "hover" | undefined;
|
@@ -1239,7 +1239,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1239
1239
|
hintWidth?: string | undefined;
|
1240
1240
|
hintContentLeft?: React.ReactNode;
|
1241
1241
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1242
|
-
items:
|
1242
|
+
items: ComboboxItemOption[];
|
1243
1243
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1244
1244
|
placeholder?: string | undefined;
|
1245
1245
|
helperText?: string | undefined;
|
@@ -1252,8 +1252,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1252
1252
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1253
1253
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1254
1254
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1255
|
-
renderItem?: ((item:
|
1256
|
-
filter?: ((item:
|
1255
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1256
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1257
1257
|
closeAfterSelect?: boolean | undefined;
|
1258
1258
|
onChangeValue?: ((value: string) => void) | undefined;
|
1259
1259
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1278,7 +1278,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1278
1278
|
value?: undefined;
|
1279
1279
|
isTargetAmount?: true | undefined;
|
1280
1280
|
targetAmount?: number | undefined;
|
1281
|
-
renderValue?: ((item:
|
1281
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1282
1282
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1283
1283
|
hintTrigger?: undefined;
|
1284
1284
|
hintText?: undefined;
|
@@ -1293,6 +1293,6 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1293
1293
|
hintContentLeft?: undefined;
|
1294
1294
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>))>;
|
1295
1295
|
declare type PropsFromConfig = keyof typeof config['variations'];
|
1296
|
-
export declare type Props<T extends
|
1297
|
-
declare const Combobox: <T extends
|
1296
|
+
export declare type Props<T extends ComboboxItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
|
1297
|
+
declare const Combobox: <T extends ComboboxItemOption>(props: Props<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
1298
1298
|
export { Combobox };
|