@salutejs/plasma-web 1.579.1-canary.1944.14664380698.0 → 1.579.1-canary.1944.14717616818.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 +1 -287
- package/components/Combobox/Combobox.d.ts +100 -100
- 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/css/cjs/components/Combobox/Combobox.js.map +1 -1
- package/css/cjs/components/DatePicker/DatePicker.config.js +1 -1
- package/css/cjs/components/DatePicker/DatePicker.config.js.map +1 -1
- package/css/cjs/components/DatePicker/{DatePicker.config_om5396.css → DatePicker.config_1q6rwyz.css} +1 -1
- package/css/cjs/components/DatePicker/DatePicker.css +7 -7
- package/css/cjs/components/Tabs/TabItem.css +21 -21
- package/css/cjs/components/Tabs/TabsController.css +15 -15
- package/css/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js +1 -1
- package/css/cjs/components/Tabs/horizontal/HorizontalTabItem.config.js.map +1 -1
- package/css/{es/components/Tabs/horizontal/HorizontalTabItem.config_axznj3.css → cjs/components/Tabs/horizontal/HorizontalTabItem.config_1va7kam.css} +4 -4
- package/css/cjs/components/Tabs/vertical/VerticalTabItem.config.js +1 -1
- package/css/cjs/components/Tabs/vertical/VerticalTabItem.config.js.map +1 -1
- package/css/{es/components/Tabs/vertical/VerticalTabItem.config_1b9301p.css → cjs/components/Tabs/vertical/VerticalTabItem.config_11dsuhl.css} +1 -1
- package/css/cjs/index.css +28 -28
- package/css/es/components/Combobox/Combobox.js.map +1 -1
- package/css/es/components/DatePicker/DatePicker.config.js +1 -1
- package/css/es/components/DatePicker/DatePicker.config.js.map +1 -1
- package/css/es/components/DatePicker/{DatePicker.config_om5396.css → DatePicker.config_1q6rwyz.css} +1 -1
- package/css/es/components/DatePicker/DatePicker.css +7 -7
- package/css/es/components/Tabs/TabItem.css +21 -21
- package/css/es/components/Tabs/TabsController.css +15 -15
- package/css/es/components/Tabs/horizontal/HorizontalTabItem.config.js +1 -1
- package/css/es/components/Tabs/horizontal/HorizontalTabItem.config.js.map +1 -1
- package/css/{cjs/components/Tabs/horizontal/HorizontalTabItem.config_axznj3.css → es/components/Tabs/horizontal/HorizontalTabItem.config_1va7kam.css} +4 -4
- package/css/es/components/Tabs/vertical/VerticalTabItem.config.js +1 -1
- package/css/es/components/Tabs/vertical/VerticalTabItem.config.js.map +1 -1
- package/css/{cjs/components/Tabs/vertical/VerticalTabItem.config_1b9301p.css → es/components/Tabs/vertical/VerticalTabItem.config_11dsuhl.css} +1 -1
- package/css/es/index.css +28 -28
- 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 +6 -6
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ComponentProps } from 'react';
|
2
|
-
import type {
|
2
|
+
import type { ComboboxItemOption, ComboboxProps, DistributiveOmit, DistributivePick } from '@salutejs/plasma-new-hope';
|
3
3
|
import React from 'react';
|
4
4
|
import { config } from './Combobox.config';
|
5
5
|
import { Combobox as ComboboxOld } from './Legacy';
|
@@ -34,7 +34,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
34
34
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
35
35
|
};
|
36
36
|
}> & (({
|
37
|
-
items:
|
37
|
+
items: ComboboxItemOption[];
|
38
38
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
39
39
|
placeholder?: string | undefined;
|
40
40
|
helperText?: string | undefined;
|
@@ -47,8 +47,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
47
47
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
48
48
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
49
49
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
50
|
-
renderItem?: ((item:
|
51
|
-
filter?: ((item:
|
50
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
51
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
52
52
|
closeAfterSelect?: boolean | undefined;
|
53
53
|
onChangeValue?: ((value: string) => void) | undefined;
|
54
54
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -87,7 +87,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
87
87
|
hintWidth?: string | undefined;
|
88
88
|
hintContentLeft?: React.ReactNode;
|
89
89
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
90
|
-
items:
|
90
|
+
items: ComboboxItemOption[];
|
91
91
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
92
92
|
placeholder?: string | undefined;
|
93
93
|
helperText?: string | undefined;
|
@@ -100,8 +100,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
100
100
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
101
101
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
102
102
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
103
|
-
renderItem?: ((item:
|
104
|
-
filter?: ((item:
|
103
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
104
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
105
105
|
closeAfterSelect?: boolean | undefined;
|
106
106
|
onChangeValue?: ((value: string) => void) | undefined;
|
107
107
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -140,7 +140,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
140
140
|
hintWidth?: undefined;
|
141
141
|
hintContentLeft?: undefined;
|
142
142
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
143
|
-
items:
|
143
|
+
items: ComboboxItemOption[];
|
144
144
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
145
145
|
placeholder?: string | undefined;
|
146
146
|
helperText?: string | undefined;
|
@@ -153,8 +153,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
153
153
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
154
154
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
155
155
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
156
|
-
renderItem?: ((item:
|
157
|
-
filter?: ((item:
|
156
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
157
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
158
158
|
closeAfterSelect?: boolean | undefined;
|
159
159
|
onChangeValue?: ((value: string) => void) | undefined;
|
160
160
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -176,7 +176,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
176
176
|
} & {
|
177
177
|
multiple?: false | undefined;
|
178
178
|
value?: string | undefined;
|
179
|
-
onChange?: ((value: string, item:
|
179
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
180
180
|
isTargetAmount?: false | undefined;
|
181
181
|
targetAmount?: undefined;
|
182
182
|
renderValue?: undefined;
|
@@ -193,7 +193,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
193
193
|
hintWidth?: string | undefined;
|
194
194
|
hintContentLeft?: React.ReactNode;
|
195
195
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
196
|
-
items:
|
196
|
+
items: ComboboxItemOption[];
|
197
197
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
198
198
|
placeholder?: string | undefined;
|
199
199
|
helperText?: string | undefined;
|
@@ -206,8 +206,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
206
206
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
207
207
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
208
208
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
209
|
-
renderItem?: ((item:
|
210
|
-
filter?: ((item:
|
209
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
210
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
211
211
|
closeAfterSelect?: boolean | undefined;
|
212
212
|
onChangeValue?: ((value: string) => void) | undefined;
|
213
213
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -229,7 +229,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
229
229
|
} & {
|
230
230
|
multiple?: false | undefined;
|
231
231
|
value?: string | undefined;
|
232
|
-
onChange?: ((value: string, item:
|
232
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
233
233
|
isTargetAmount?: false | undefined;
|
234
234
|
targetAmount?: undefined;
|
235
235
|
renderValue?: undefined;
|
@@ -246,7 +246,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
246
246
|
hintWidth?: undefined;
|
247
247
|
hintContentLeft?: undefined;
|
248
248
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
249
|
-
items:
|
249
|
+
items: ComboboxItemOption[];
|
250
250
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
251
251
|
placeholder?: string | undefined;
|
252
252
|
helperText?: string | undefined;
|
@@ -259,8 +259,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
259
259
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
260
260
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
261
261
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
262
|
-
renderItem?: ((item:
|
263
|
-
filter?: ((item:
|
262
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
263
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
264
264
|
closeAfterSelect?: boolean | undefined;
|
265
265
|
onChangeValue?: ((value: string) => void) | undefined;
|
266
266
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -282,10 +282,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
282
282
|
} & {
|
283
283
|
multiple: true;
|
284
284
|
value?: string[] | undefined;
|
285
|
-
onChange?: ((value: string[], item:
|
285
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
286
286
|
isTargetAmount?: true | undefined;
|
287
287
|
targetAmount?: number | undefined;
|
288
|
-
renderValue?: ((item:
|
288
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
289
289
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
290
290
|
hintText: string;
|
291
291
|
hintTrigger?: "hover" | "click" | undefined;
|
@@ -299,7 +299,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
299
299
|
hintWidth?: string | undefined;
|
300
300
|
hintContentLeft?: React.ReactNode;
|
301
301
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
302
|
-
items:
|
302
|
+
items: ComboboxItemOption[];
|
303
303
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
304
304
|
placeholder?: string | undefined;
|
305
305
|
helperText?: string | undefined;
|
@@ -312,8 +312,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
312
312
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
313
313
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
314
314
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
315
|
-
renderItem?: ((item:
|
316
|
-
filter?: ((item:
|
315
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
316
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
317
317
|
closeAfterSelect?: boolean | undefined;
|
318
318
|
onChangeValue?: ((value: string) => void) | undefined;
|
319
319
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -335,10 +335,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
335
335
|
} & {
|
336
336
|
multiple: true;
|
337
337
|
value?: string[] | undefined;
|
338
|
-
onChange?: ((value: string[], item:
|
338
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
339
339
|
isTargetAmount?: true | undefined;
|
340
340
|
targetAmount?: number | undefined;
|
341
|
-
renderValue?: ((item:
|
341
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
342
342
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
343
343
|
hintTrigger?: undefined;
|
344
344
|
hintText?: undefined;
|
@@ -352,7 +352,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
352
352
|
hintWidth?: undefined;
|
353
353
|
hintContentLeft?: undefined;
|
354
354
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
355
|
-
items:
|
355
|
+
items: ComboboxItemOption[];
|
356
356
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
357
357
|
placeholder?: string | undefined;
|
358
358
|
helperText?: string | undefined;
|
@@ -365,8 +365,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
365
365
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
366
366
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
367
367
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
368
|
-
renderItem?: ((item:
|
369
|
-
filter?: ((item:
|
368
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
369
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
370
370
|
closeAfterSelect?: boolean | undefined;
|
371
371
|
onChangeValue?: ((value: string) => void) | undefined;
|
372
372
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -391,7 +391,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
391
391
|
value?: undefined;
|
392
392
|
isTargetAmount?: true | undefined;
|
393
393
|
targetAmount?: number | undefined;
|
394
|
-
renderValue?: ((item:
|
394
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
395
395
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
396
396
|
hintText: string;
|
397
397
|
hintTrigger?: "hover" | "click" | undefined;
|
@@ -405,7 +405,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
405
405
|
hintWidth?: string | undefined;
|
406
406
|
hintContentLeft?: React.ReactNode;
|
407
407
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
408
|
-
items:
|
408
|
+
items: ComboboxItemOption[];
|
409
409
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
410
410
|
placeholder?: string | undefined;
|
411
411
|
helperText?: string | undefined;
|
@@ -418,8 +418,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
418
418
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
419
419
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
420
420
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
421
|
-
renderItem?: ((item:
|
422
|
-
filter?: ((item:
|
421
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
422
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
423
423
|
closeAfterSelect?: boolean | undefined;
|
424
424
|
onChangeValue?: ((value: string) => void) | undefined;
|
425
425
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -444,7 +444,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
444
444
|
value?: undefined;
|
445
445
|
isTargetAmount?: true | undefined;
|
446
446
|
targetAmount?: number | undefined;
|
447
|
-
renderValue?: ((item:
|
447
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
448
448
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
449
449
|
hintTrigger?: undefined;
|
450
450
|
hintText?: undefined;
|
@@ -458,7 +458,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
458
458
|
hintWidth?: undefined;
|
459
459
|
hintContentLeft?: undefined;
|
460
460
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
461
|
-
items:
|
461
|
+
items: ComboboxItemOption[];
|
462
462
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
463
463
|
placeholder?: string | undefined;
|
464
464
|
helperText?: string | undefined;
|
@@ -471,8 +471,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
471
471
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
472
472
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
473
473
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
474
|
-
renderItem?: ((item:
|
475
|
-
filter?: ((item:
|
474
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
475
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
476
476
|
closeAfterSelect?: boolean | undefined;
|
477
477
|
onChangeValue?: ((value: string) => void) | undefined;
|
478
478
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -511,7 +511,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
511
511
|
hintWidth?: string | undefined;
|
512
512
|
hintContentLeft?: React.ReactNode;
|
513
513
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
514
|
-
items:
|
514
|
+
items: ComboboxItemOption[];
|
515
515
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
516
516
|
placeholder?: string | undefined;
|
517
517
|
helperText?: string | undefined;
|
@@ -524,8 +524,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
524
524
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
525
525
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
526
526
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
527
|
-
renderItem?: ((item:
|
528
|
-
filter?: ((item:
|
527
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
528
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
529
529
|
closeAfterSelect?: boolean | undefined;
|
530
530
|
onChangeValue?: ((value: string) => void) | undefined;
|
531
531
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -564,7 +564,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
564
564
|
hintWidth?: undefined;
|
565
565
|
hintContentLeft?: undefined;
|
566
566
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
567
|
-
items:
|
567
|
+
items: ComboboxItemOption[];
|
568
568
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
569
569
|
placeholder?: string | undefined;
|
570
570
|
helperText?: string | undefined;
|
@@ -577,8 +577,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
577
577
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
578
578
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
579
579
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
580
|
-
renderItem?: ((item:
|
581
|
-
filter?: ((item:
|
580
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
581
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
582
582
|
closeAfterSelect?: boolean | undefined;
|
583
583
|
onChangeValue?: ((value: string) => void) | undefined;
|
584
584
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -600,7 +600,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
600
600
|
} & {
|
601
601
|
multiple?: false | undefined;
|
602
602
|
value?: string | undefined;
|
603
|
-
onChange?: ((value: string, item:
|
603
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
604
604
|
isTargetAmount?: false | undefined;
|
605
605
|
targetAmount?: undefined;
|
606
606
|
renderValue?: undefined;
|
@@ -617,7 +617,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
617
617
|
hintWidth?: string | undefined;
|
618
618
|
hintContentLeft?: React.ReactNode;
|
619
619
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
620
|
-
items:
|
620
|
+
items: ComboboxItemOption[];
|
621
621
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
622
622
|
placeholder?: string | undefined;
|
623
623
|
helperText?: string | undefined;
|
@@ -630,8 +630,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
630
630
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
631
631
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
632
632
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
633
|
-
renderItem?: ((item:
|
634
|
-
filter?: ((item:
|
633
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
634
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
635
635
|
closeAfterSelect?: boolean | undefined;
|
636
636
|
onChangeValue?: ((value: string) => void) | undefined;
|
637
637
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -653,7 +653,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
653
653
|
} & {
|
654
654
|
multiple?: false | undefined;
|
655
655
|
value?: string | undefined;
|
656
|
-
onChange?: ((value: string, item:
|
656
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
657
657
|
isTargetAmount?: false | undefined;
|
658
658
|
targetAmount?: undefined;
|
659
659
|
renderValue?: undefined;
|
@@ -670,7 +670,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
670
670
|
hintWidth?: undefined;
|
671
671
|
hintContentLeft?: undefined;
|
672
672
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
673
|
-
items:
|
673
|
+
items: ComboboxItemOption[];
|
674
674
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
675
675
|
placeholder?: string | undefined;
|
676
676
|
helperText?: string | undefined;
|
@@ -683,8 +683,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
683
683
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
684
684
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
685
685
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
686
|
-
renderItem?: ((item:
|
687
|
-
filter?: ((item:
|
686
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
687
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
688
688
|
closeAfterSelect?: boolean | undefined;
|
689
689
|
onChangeValue?: ((value: string) => void) | undefined;
|
690
690
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -706,10 +706,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
706
706
|
} & {
|
707
707
|
multiple: true;
|
708
708
|
value?: string[] | undefined;
|
709
|
-
onChange?: ((value: string[], item:
|
709
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
710
710
|
isTargetAmount?: true | undefined;
|
711
711
|
targetAmount?: number | undefined;
|
712
|
-
renderValue?: ((item:
|
712
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
713
713
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
714
714
|
hintText: string;
|
715
715
|
hintTrigger?: "hover" | "click" | undefined;
|
@@ -723,7 +723,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
723
723
|
hintWidth?: string | undefined;
|
724
724
|
hintContentLeft?: React.ReactNode;
|
725
725
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
726
|
-
items:
|
726
|
+
items: ComboboxItemOption[];
|
727
727
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
728
728
|
placeholder?: string | undefined;
|
729
729
|
helperText?: string | undefined;
|
@@ -736,8 +736,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
736
736
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
737
737
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
738
738
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
739
|
-
renderItem?: ((item:
|
740
|
-
filter?: ((item:
|
739
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
740
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
741
741
|
closeAfterSelect?: boolean | undefined;
|
742
742
|
onChangeValue?: ((value: string) => void) | undefined;
|
743
743
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -759,10 +759,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
759
759
|
} & {
|
760
760
|
multiple: true;
|
761
761
|
value?: string[] | undefined;
|
762
|
-
onChange?: ((value: string[], item:
|
762
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
763
763
|
isTargetAmount?: true | undefined;
|
764
764
|
targetAmount?: number | undefined;
|
765
|
-
renderValue?: ((item:
|
765
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
766
766
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
767
767
|
hintTrigger?: undefined;
|
768
768
|
hintText?: undefined;
|
@@ -776,7 +776,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
776
776
|
hintWidth?: undefined;
|
777
777
|
hintContentLeft?: undefined;
|
778
778
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
779
|
-
items:
|
779
|
+
items: ComboboxItemOption[];
|
780
780
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
781
781
|
placeholder?: string | undefined;
|
782
782
|
helperText?: string | undefined;
|
@@ -789,8 +789,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
789
789
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
790
790
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
791
791
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
792
|
-
renderItem?: ((item:
|
793
|
-
filter?: ((item:
|
792
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
793
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
794
794
|
closeAfterSelect?: boolean | undefined;
|
795
795
|
onChangeValue?: ((value: string) => void) | undefined;
|
796
796
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -815,7 +815,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
815
815
|
value?: undefined;
|
816
816
|
isTargetAmount?: true | undefined;
|
817
817
|
targetAmount?: number | undefined;
|
818
|
-
renderValue?: ((item:
|
818
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
819
819
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
820
820
|
hintText: string;
|
821
821
|
hintTrigger?: "hover" | "click" | undefined;
|
@@ -829,7 +829,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
829
829
|
hintWidth?: string | undefined;
|
830
830
|
hintContentLeft?: React.ReactNode;
|
831
831
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
832
|
-
items:
|
832
|
+
items: ComboboxItemOption[];
|
833
833
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
834
834
|
placeholder?: string | undefined;
|
835
835
|
helperText?: string | undefined;
|
@@ -842,8 +842,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
842
842
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
843
843
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
844
844
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
845
|
-
renderItem?: ((item:
|
846
|
-
filter?: ((item:
|
845
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
846
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
847
847
|
closeAfterSelect?: boolean | undefined;
|
848
848
|
onChangeValue?: ((value: string) => void) | undefined;
|
849
849
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -868,7 +868,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
868
868
|
value?: undefined;
|
869
869
|
isTargetAmount?: true | undefined;
|
870
870
|
targetAmount?: number | undefined;
|
871
|
-
renderValue?: ((item:
|
871
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
872
872
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
873
873
|
hintTrigger?: undefined;
|
874
874
|
hintText?: undefined;
|
@@ -882,7 +882,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
882
882
|
hintWidth?: undefined;
|
883
883
|
hintContentLeft?: undefined;
|
884
884
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
885
|
-
items:
|
885
|
+
items: ComboboxItemOption[];
|
886
886
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
887
887
|
placeholder?: string | undefined;
|
888
888
|
helperText?: string | undefined;
|
@@ -895,8 +895,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
895
895
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
896
896
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
897
897
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
898
|
-
renderItem?: ((item:
|
899
|
-
filter?: ((item:
|
898
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
899
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
900
900
|
closeAfterSelect?: boolean | undefined;
|
901
901
|
onChangeValue?: ((value: string) => void) | undefined;
|
902
902
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -935,7 +935,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
935
935
|
hintWidth?: string | undefined;
|
936
936
|
hintContentLeft?: React.ReactNode;
|
937
937
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
938
|
-
items:
|
938
|
+
items: ComboboxItemOption[];
|
939
939
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
940
940
|
placeholder?: string | undefined;
|
941
941
|
helperText?: string | undefined;
|
@@ -948,8 +948,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
948
948
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
949
949
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
950
950
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
951
|
-
renderItem?: ((item:
|
952
|
-
filter?: ((item:
|
951
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
952
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
953
953
|
closeAfterSelect?: boolean | undefined;
|
954
954
|
onChangeValue?: ((value: string) => void) | undefined;
|
955
955
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -988,7 +988,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
988
988
|
hintWidth?: undefined;
|
989
989
|
hintContentLeft?: undefined;
|
990
990
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
991
|
-
items:
|
991
|
+
items: ComboboxItemOption[];
|
992
992
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
993
993
|
placeholder?: string | undefined;
|
994
994
|
helperText?: string | undefined;
|
@@ -1001,8 +1001,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1001
1001
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1002
1002
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1003
1003
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1004
|
-
renderItem?: ((item:
|
1005
|
-
filter?: ((item:
|
1004
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1005
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1006
1006
|
closeAfterSelect?: boolean | undefined;
|
1007
1007
|
onChangeValue?: ((value: string) => void) | undefined;
|
1008
1008
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1024,7 +1024,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1024
1024
|
} & {
|
1025
1025
|
multiple?: false | undefined;
|
1026
1026
|
value?: string | undefined;
|
1027
|
-
onChange?: ((value: string, item:
|
1027
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
1028
1028
|
isTargetAmount?: false | undefined;
|
1029
1029
|
targetAmount?: undefined;
|
1030
1030
|
renderValue?: undefined;
|
@@ -1041,7 +1041,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1041
1041
|
hintWidth?: string | undefined;
|
1042
1042
|
hintContentLeft?: React.ReactNode;
|
1043
1043
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1044
|
-
items:
|
1044
|
+
items: ComboboxItemOption[];
|
1045
1045
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1046
1046
|
placeholder?: string | undefined;
|
1047
1047
|
helperText?: string | undefined;
|
@@ -1054,8 +1054,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1054
1054
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1055
1055
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1056
1056
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1057
|
-
renderItem?: ((item:
|
1058
|
-
filter?: ((item:
|
1057
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1058
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1059
1059
|
closeAfterSelect?: boolean | undefined;
|
1060
1060
|
onChangeValue?: ((value: string) => void) | undefined;
|
1061
1061
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1077,7 +1077,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1077
1077
|
} & {
|
1078
1078
|
multiple?: false | undefined;
|
1079
1079
|
value?: string | undefined;
|
1080
|
-
onChange?: ((value: string, item:
|
1080
|
+
onChange?: ((value: string, item: ComboboxItemOption | null) => void) | undefined;
|
1081
1081
|
isTargetAmount?: false | undefined;
|
1082
1082
|
targetAmount?: undefined;
|
1083
1083
|
renderValue?: undefined;
|
@@ -1094,7 +1094,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1094
1094
|
hintWidth?: undefined;
|
1095
1095
|
hintContentLeft?: undefined;
|
1096
1096
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1097
|
-
items:
|
1097
|
+
items: ComboboxItemOption[];
|
1098
1098
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1099
1099
|
placeholder?: string | undefined;
|
1100
1100
|
helperText?: string | undefined;
|
@@ -1107,8 +1107,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1107
1107
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1108
1108
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1109
1109
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1110
|
-
renderItem?: ((item:
|
1111
|
-
filter?: ((item:
|
1110
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1111
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1112
1112
|
closeAfterSelect?: boolean | undefined;
|
1113
1113
|
onChangeValue?: ((value: string) => void) | undefined;
|
1114
1114
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1130,10 +1130,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1130
1130
|
} & {
|
1131
1131
|
multiple: true;
|
1132
1132
|
value?: string[] | undefined;
|
1133
|
-
onChange?: ((value: string[], item:
|
1133
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
1134
1134
|
isTargetAmount?: true | undefined;
|
1135
1135
|
targetAmount?: number | undefined;
|
1136
|
-
renderValue?: ((item:
|
1136
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1137
1137
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1138
1138
|
hintText: string;
|
1139
1139
|
hintTrigger?: "hover" | "click" | undefined;
|
@@ -1147,7 +1147,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1147
1147
|
hintWidth?: string | undefined;
|
1148
1148
|
hintContentLeft?: React.ReactNode;
|
1149
1149
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1150
|
-
items:
|
1150
|
+
items: ComboboxItemOption[];
|
1151
1151
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1152
1152
|
placeholder?: string | undefined;
|
1153
1153
|
helperText?: string | undefined;
|
@@ -1160,8 +1160,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1160
1160
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1161
1161
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1162
1162
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1163
|
-
renderItem?: ((item:
|
1164
|
-
filter?: ((item:
|
1163
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1164
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1165
1165
|
closeAfterSelect?: boolean | undefined;
|
1166
1166
|
onChangeValue?: ((value: string) => void) | undefined;
|
1167
1167
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1183,10 +1183,10 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1183
1183
|
} & {
|
1184
1184
|
multiple: true;
|
1185
1185
|
value?: string[] | undefined;
|
1186
|
-
onChange?: ((value: string[], item:
|
1186
|
+
onChange?: ((value: string[], item: ComboboxItemOption | null) => void) | undefined;
|
1187
1187
|
isTargetAmount?: true | undefined;
|
1188
1188
|
targetAmount?: number | undefined;
|
1189
|
-
renderValue?: ((item:
|
1189
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1190
1190
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1191
1191
|
hintTrigger?: undefined;
|
1192
1192
|
hintText?: undefined;
|
@@ -1200,7 +1200,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1200
1200
|
hintWidth?: undefined;
|
1201
1201
|
hintContentLeft?: undefined;
|
1202
1202
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1203
|
-
items:
|
1203
|
+
items: ComboboxItemOption[];
|
1204
1204
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1205
1205
|
placeholder?: string | undefined;
|
1206
1206
|
helperText?: string | undefined;
|
@@ -1213,8 +1213,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1213
1213
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1214
1214
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1215
1215
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1216
|
-
renderItem?: ((item:
|
1217
|
-
filter?: ((item:
|
1216
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1217
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1218
1218
|
closeAfterSelect?: boolean | undefined;
|
1219
1219
|
onChangeValue?: ((value: string) => void) | undefined;
|
1220
1220
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1239,7 +1239,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1239
1239
|
value?: undefined;
|
1240
1240
|
isTargetAmount?: true | undefined;
|
1241
1241
|
targetAmount?: number | undefined;
|
1242
|
-
renderValue?: ((item:
|
1242
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1243
1243
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1244
1244
|
hintText: string;
|
1245
1245
|
hintTrigger?: "hover" | "click" | undefined;
|
@@ -1253,7 +1253,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1253
1253
|
hintWidth?: string | undefined;
|
1254
1254
|
hintContentLeft?: React.ReactNode;
|
1255
1255
|
} & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "defaultValue" | "name" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
1256
|
-
items:
|
1256
|
+
items: ComboboxItemOption[];
|
1257
1257
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").Placement | undefined;
|
1258
1258
|
placeholder?: string | undefined;
|
1259
1259
|
helperText?: string | undefined;
|
@@ -1266,8 +1266,8 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1266
1266
|
listMaxHeight?: import("csstype").Property.Height<string | number> | undefined;
|
1267
1267
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
1268
1268
|
portal?: string | React.RefObject<HTMLElement> | undefined;
|
1269
|
-
renderItem?: ((item:
|
1270
|
-
filter?: ((item:
|
1269
|
+
renderItem?: ((item: ComboboxItemOption) => React.ReactNode) | undefined;
|
1270
|
+
filter?: ((item: ComboboxItemOption, textValue: string) => boolean) | undefined;
|
1271
1271
|
closeAfterSelect?: boolean | undefined;
|
1272
1272
|
onChangeValue?: ((value: string) => void) | undefined;
|
1273
1273
|
onScroll?: ((e: React.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
@@ -1292,7 +1292,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
1292
1292
|
value?: undefined;
|
1293
1293
|
isTargetAmount?: true | undefined;
|
1294
1294
|
targetAmount?: number | undefined;
|
1295
|
-
renderValue?: ((item:
|
1295
|
+
renderValue?: ((item: ComboboxItemOption) => string) | undefined;
|
1296
1296
|
} & import("@salutejs/plasma-new-hope/types/components/TextField/TextField.types").RequiredProps & {
|
1297
1297
|
hintTrigger?: undefined;
|
1298
1298
|
hintText?: undefined;
|
@@ -1310,7 +1310,7 @@ declare type PropsFromConfig = keyof typeof config['variations'];
|
|
1310
1310
|
declare type PropsOld = ComponentProps<typeof ComboboxOld> & {
|
1311
1311
|
items?: never;
|
1312
1312
|
};
|
1313
|
-
declare type PropsNew<T extends
|
1314
|
-
declare type CommonProps<T extends
|
1315
|
-
declare const Combobox: <T extends
|
1313
|
+
declare type PropsNew<T extends ComboboxItemOption> = DistributiveOmit<ComboboxProps<T>, PropsFromConfig> & DistributivePick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
|
1314
|
+
declare type CommonProps<T extends ComboboxItemOption> = PropsOld | PropsNew<T>;
|
1315
|
+
declare const Combobox: <T extends ComboboxItemOption>(props: CommonProps<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
1316
1316
|
export { Combobox };
|