@salutejs/sdds-dfa 0.168.0-canary.1550.11777193712.0 → 0.168.0-canary.1553.11776288397.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-dfa.api.md +61 -68
- package/components/Combobox/Combobox.d.ts +12 -12
- package/components/Combobox/index.d.ts +12 -12
- package/components/Select/Select.config.d.ts +7 -15
- package/components/Select/Select.config.js +21 -29
- package/components/Select/Select.d.ts +47 -54
- package/es/components/Select/Select.config.js +22 -30
- package/package.json +6 -6
- package/temp/sdds-dfa.api.md +61 -68
package/api/sdds-dfa.api.md
CHANGED
@@ -86,7 +86,6 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
|
|
86
86
|
import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
|
87
87
|
import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
|
88
88
|
import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
|
89
|
-
import { DropdownNodeSelect } from '@salutejs/plasma-new-hope/styled-components';
|
90
89
|
import { DropdownProps } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
|
91
90
|
import { dsplL } from '@salutejs/sdds-themes/tokens';
|
92
91
|
import { dsplLBold } from '@salutejs/sdds-themes/tokens';
|
@@ -119,15 +118,16 @@ import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
119
118
|
import { InputHTMLAttributes } from '@salutejs/plasma-new-hope/types/types';
|
120
119
|
import { InputHTMLAttributes as InputHTMLAttributes_2 } from 'react';
|
121
120
|
import type { ItemOption } from '@salutejs/plasma-new-hope';
|
122
|
-
import { ItemOptionSelect } from '@salutejs/plasma-new-hope/styled-components';
|
123
121
|
import { JSXElementConstructor } from 'react';
|
124
122
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
125
123
|
import { LinkCustomProps } from '@salutejs/plasma-new-hope/types/components/Link/Link';
|
126
124
|
import { MaskProps } from '@salutejs/plasma-new-hope/types/components/Mask/Mask.types';
|
127
125
|
import { mediaQuery } from '@salutejs/plasma-new-hope/styled-components';
|
126
|
+
import { MergedDropdownNode } from '@salutejs/plasma-new-hope/types/components/Select/ui/Inner/ui/Item/Item.types';
|
128
127
|
import { modalClasses } from '@salutejs/plasma-new-hope/styled-components';
|
129
128
|
import { ModalProps } from '@salutejs/plasma-new-hope/styled-components';
|
130
129
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
130
|
+
import { MutableRefObject } from 'react';
|
131
131
|
import { numberInputClasses } from '@salutejs/plasma-new-hope/styled-components';
|
132
132
|
import { numberInputTokens } from '@salutejs/plasma-new-hope/styled-components';
|
133
133
|
import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
|
@@ -1017,7 +1017,7 @@ true: PolymorphicClassName;
|
|
1017
1017
|
listOverflow?: Property.Overflow | undefined;
|
1018
1018
|
listHeight?: Property.Height<string | number> | undefined;
|
1019
1019
|
listWidth?: Property.Width<string | number> | undefined;
|
1020
|
-
portal?:
|
1020
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1021
1021
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1022
1022
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1023
1023
|
closeAfterSelect?: boolean | undefined;
|
@@ -1053,7 +1053,7 @@ true: PolymorphicClassName;
|
|
1053
1053
|
listOverflow?: Property.Overflow | undefined;
|
1054
1054
|
listHeight?: Property.Height<string | number> | undefined;
|
1055
1055
|
listWidth?: Property.Width<string | number> | undefined;
|
1056
|
-
portal?:
|
1056
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1057
1057
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1058
1058
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1059
1059
|
closeAfterSelect?: boolean | undefined;
|
@@ -1089,7 +1089,7 @@ true: PolymorphicClassName;
|
|
1089
1089
|
listOverflow?: Property.Overflow | undefined;
|
1090
1090
|
listHeight?: Property.Height<string | number> | undefined;
|
1091
1091
|
listWidth?: Property.Width<string | number> | undefined;
|
1092
|
-
portal?:
|
1092
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1093
1093
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1094
1094
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1095
1095
|
closeAfterSelect?: boolean | undefined;
|
@@ -1125,7 +1125,7 @@ true: PolymorphicClassName;
|
|
1125
1125
|
listOverflow?: Property.Overflow | undefined;
|
1126
1126
|
listHeight?: Property.Height<string | number> | undefined;
|
1127
1127
|
listWidth?: Property.Width<string | number> | undefined;
|
1128
|
-
portal?:
|
1128
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1129
1129
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1130
1130
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1131
1131
|
closeAfterSelect?: boolean | undefined;
|
@@ -1161,7 +1161,7 @@ true: PolymorphicClassName;
|
|
1161
1161
|
listOverflow?: Property.Overflow | undefined;
|
1162
1162
|
listHeight?: Property.Height<string | number> | undefined;
|
1163
1163
|
listWidth?: Property.Width<string | number> | undefined;
|
1164
|
-
portal?:
|
1164
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1165
1165
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1166
1166
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1167
1167
|
closeAfterSelect?: boolean | undefined;
|
@@ -1197,7 +1197,7 @@ true: PolymorphicClassName;
|
|
1197
1197
|
listOverflow?: Property.Overflow | undefined;
|
1198
1198
|
listHeight?: Property.Height<string | number> | undefined;
|
1199
1199
|
listWidth?: Property.Width<string | number> | undefined;
|
1200
|
-
portal?:
|
1200
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1201
1201
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1202
1202
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1203
1203
|
closeAfterSelect?: boolean | undefined;
|
@@ -1233,7 +1233,7 @@ true: PolymorphicClassName;
|
|
1233
1233
|
listOverflow?: Property.Overflow | undefined;
|
1234
1234
|
listHeight?: Property.Height<string | number> | undefined;
|
1235
1235
|
listWidth?: Property.Width<string | number> | undefined;
|
1236
|
-
portal?:
|
1236
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1237
1237
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1238
1238
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1239
1239
|
closeAfterSelect?: boolean | undefined;
|
@@ -1269,7 +1269,7 @@ true: PolymorphicClassName;
|
|
1269
1269
|
listOverflow?: Property.Overflow | undefined;
|
1270
1270
|
listHeight?: Property.Height<string | number> | undefined;
|
1271
1271
|
listWidth?: Property.Width<string | number> | undefined;
|
1272
|
-
portal?:
|
1272
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1273
1273
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1274
1274
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1275
1275
|
closeAfterSelect?: boolean | undefined;
|
@@ -1305,7 +1305,7 @@ true: PolymorphicClassName;
|
|
1305
1305
|
listOverflow?: Property.Overflow | undefined;
|
1306
1306
|
listHeight?: Property.Height<string | number> | undefined;
|
1307
1307
|
listWidth?: Property.Width<string | number> | undefined;
|
1308
|
-
portal?:
|
1308
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1309
1309
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1310
1310
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1311
1311
|
closeAfterSelect?: boolean | undefined;
|
@@ -1341,7 +1341,7 @@ true: PolymorphicClassName;
|
|
1341
1341
|
listOverflow?: Property.Overflow | undefined;
|
1342
1342
|
listHeight?: Property.Height<string | number> | undefined;
|
1343
1343
|
listWidth?: Property.Width<string | number> | undefined;
|
1344
|
-
portal?:
|
1344
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1345
1345
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1346
1346
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1347
1347
|
closeAfterSelect?: boolean | undefined;
|
@@ -1377,7 +1377,7 @@ true: PolymorphicClassName;
|
|
1377
1377
|
listOverflow?: Property.Overflow | undefined;
|
1378
1378
|
listHeight?: Property.Height<string | number> | undefined;
|
1379
1379
|
listWidth?: Property.Width<string | number> | undefined;
|
1380
|
-
portal?:
|
1380
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1381
1381
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1382
1382
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1383
1383
|
closeAfterSelect?: boolean | undefined;
|
@@ -1413,7 +1413,7 @@ true: PolymorphicClassName;
|
|
1413
1413
|
listOverflow?: Property.Overflow | undefined;
|
1414
1414
|
listHeight?: Property.Height<string | number> | undefined;
|
1415
1415
|
listWidth?: Property.Width<string | number> | undefined;
|
1416
|
-
portal?:
|
1416
|
+
portal?: MutableRefObject<HTMLElement | null> | undefined;
|
1417
1417
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1418
1418
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1419
1419
|
closeAfterSelect?: boolean | undefined;
|
@@ -3499,7 +3499,13 @@ export { SegmentProvider }
|
|
3499
3499
|
export { SegmentProviderProps }
|
3500
3500
|
|
3501
3501
|
// @public (undocumented)
|
3502
|
-
export const Select: React_2.ForwardRefExoticComponent<Omit<SelectProps
|
3502
|
+
export const Select: React_2.ForwardRefExoticComponent<Omit<SelectProps, "view" | "size" | "chipView"> & Pick<PropsType< {
|
3503
|
+
size: {
|
3504
|
+
xs: PolymorphicClassName;
|
3505
|
+
s: PolymorphicClassName;
|
3506
|
+
m: PolymorphicClassName;
|
3507
|
+
l: PolymorphicClassName;
|
3508
|
+
};
|
3503
3509
|
view: {
|
3504
3510
|
default: PolymorphicClassName;
|
3505
3511
|
positive: PolymorphicClassName;
|
@@ -3512,24 +3518,11 @@ dark: PolymorphicClassName;
|
|
3512
3518
|
black: PolymorphicClassName;
|
3513
3519
|
white: PolymorphicClassName;
|
3514
3520
|
};
|
3515
|
-
size: {
|
3516
|
-
l: PolymorphicClassName;
|
3517
|
-
m: PolymorphicClassName;
|
3518
|
-
s: PolymorphicClassName;
|
3519
|
-
xs: PolymorphicClassName;
|
3520
|
-
};
|
3521
|
-
labelPlacement: {
|
3522
|
-
inner: PolymorphicClassName;
|
3523
|
-
outer: PolymorphicClassName;
|
3524
|
-
};
|
3525
3521
|
chipView: {
|
3526
3522
|
default: PolymorphicClassName;
|
3527
3523
|
secondary: PolymorphicClassName;
|
3528
3524
|
accent: PolymorphicClassName;
|
3529
3525
|
};
|
3530
|
-
disabled: {
|
3531
|
-
true: PolymorphicClassName;
|
3532
|
-
};
|
3533
3526
|
}> & (({
|
3534
3527
|
target?: "textfield-like" | undefined;
|
3535
3528
|
view?: "default" | "positive" | "warning" | "negative" | undefined;
|
@@ -3541,33 +3534,33 @@ true: PolymorphicClassName;
|
|
3541
3534
|
multiselect?: false | undefined;
|
3542
3535
|
separator?: undefined;
|
3543
3536
|
} & {
|
3544
|
-
value
|
3537
|
+
value: any;
|
3545
3538
|
onChange?: ((value: any) => void) | undefined;
|
3546
3539
|
listOverflow?: Property.Overflow | undefined;
|
3547
3540
|
listHeight?: Property.Height<string | number> | undefined;
|
3541
|
+
status?: "warning" | "success" | "error" | undefined;
|
3548
3542
|
placeholder?: string | undefined;
|
3549
3543
|
helperText?: string | undefined;
|
3550
3544
|
disabled?: boolean | undefined;
|
3551
|
-
items?:
|
3552
|
-
onItemSelect?: ((e:
|
3545
|
+
items?: MergedDropdownNode[] | undefined;
|
3546
|
+
onItemSelect?: ((e: MergedDropdownNode, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
3547
|
+
hasItems?: boolean | undefined;
|
3553
3548
|
children?: undefined;
|
3549
|
+
isOpen?: boolean | undefined;
|
3554
3550
|
isTargetAmount?: boolean | undefined;
|
3555
|
-
renderTarget?: ((item:
|
3556
|
-
placement?: ("
|
3551
|
+
renderTarget?: ((item: MergedDropdownNode | MergedDropdownNode[]) => React_2.ReactNode) | undefined;
|
3552
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
3557
3553
|
label?: string | undefined;
|
3558
3554
|
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
3559
3555
|
variant?: "normal" | "tight" | undefined;
|
3560
3556
|
listWidth?: Property.Width<string | number> | undefined;
|
3561
3557
|
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
3562
|
-
renderValue?: ((item:
|
3563
|
-
renderItem?: ((item:
|
3558
|
+
renderValue?: ((item: MergedDropdownNode) => string) | undefined;
|
3559
|
+
renderItem?: ((item: MergedDropdownNode) => React_2.ReactNode) | undefined;
|
3564
3560
|
closeAfterSelect?: boolean | undefined;
|
3565
3561
|
size?: string | undefined;
|
3566
3562
|
view?: string | undefined;
|
3567
3563
|
chipView?: string | undefined;
|
3568
|
-
status?: "warning" | "success" | "error" | undefined;
|
3569
|
-
hasItems?: boolean | undefined;
|
3570
|
-
isOpen?: boolean | undefined;
|
3571
3564
|
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>) | ({
|
3572
3565
|
target?: "textfield-like" | undefined;
|
3573
3566
|
view?: "default" | "positive" | "warning" | "negative" | undefined;
|
@@ -3579,33 +3572,33 @@ true: PolymorphicClassName;
|
|
3579
3572
|
multiselect?: true | undefined;
|
3580
3573
|
separator?: string | undefined;
|
3581
3574
|
} & {
|
3582
|
-
value
|
3575
|
+
value: any;
|
3583
3576
|
onChange?: ((value: any) => void) | undefined;
|
3584
3577
|
listOverflow?: Property.Overflow | undefined;
|
3585
3578
|
listHeight?: Property.Height<string | number> | undefined;
|
3579
|
+
status?: "warning" | "success" | "error" | undefined;
|
3586
3580
|
placeholder?: string | undefined;
|
3587
3581
|
helperText?: string | undefined;
|
3588
3582
|
disabled?: boolean | undefined;
|
3589
|
-
items?:
|
3590
|
-
onItemSelect?: ((e:
|
3583
|
+
items?: MergedDropdownNode[] | undefined;
|
3584
|
+
onItemSelect?: ((e: MergedDropdownNode, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
3585
|
+
hasItems?: boolean | undefined;
|
3591
3586
|
children?: undefined;
|
3587
|
+
isOpen?: boolean | undefined;
|
3592
3588
|
isTargetAmount?: boolean | undefined;
|
3593
|
-
renderTarget?: ((item:
|
3594
|
-
placement?: ("
|
3589
|
+
renderTarget?: ((item: MergedDropdownNode | MergedDropdownNode[]) => React_2.ReactNode) | undefined;
|
3590
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
3595
3591
|
label?: string | undefined;
|
3596
3592
|
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
3597
3593
|
variant?: "normal" | "tight" | undefined;
|
3598
3594
|
listWidth?: Property.Width<string | number> | undefined;
|
3599
3595
|
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
3600
|
-
renderValue?: ((item:
|
3601
|
-
renderItem?: ((item:
|
3596
|
+
renderValue?: ((item: MergedDropdownNode) => string) | undefined;
|
3597
|
+
renderItem?: ((item: MergedDropdownNode) => React_2.ReactNode) | undefined;
|
3602
3598
|
closeAfterSelect?: boolean | undefined;
|
3603
3599
|
size?: string | undefined;
|
3604
3600
|
view?: string | undefined;
|
3605
3601
|
chipView?: string | undefined;
|
3606
|
-
status?: "warning" | "success" | "error" | undefined;
|
3607
|
-
hasItems?: boolean | undefined;
|
3608
|
-
isOpen?: boolean | undefined;
|
3609
3602
|
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>) | ({
|
3610
3603
|
target?: "button-like" | undefined;
|
3611
3604
|
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "clear" | "dark" | "black" | "white" | undefined;
|
@@ -3617,33 +3610,33 @@ true: PolymorphicClassName;
|
|
3617
3610
|
multiselect?: false | undefined;
|
3618
3611
|
separator?: undefined;
|
3619
3612
|
} & {
|
3620
|
-
value
|
3613
|
+
value: any;
|
3621
3614
|
onChange?: ((value: any) => void) | undefined;
|
3622
3615
|
listOverflow?: Property.Overflow | undefined;
|
3623
3616
|
listHeight?: Property.Height<string | number> | undefined;
|
3617
|
+
status?: "warning" | "success" | "error" | undefined;
|
3624
3618
|
placeholder?: string | undefined;
|
3625
3619
|
helperText?: string | undefined;
|
3626
3620
|
disabled?: boolean | undefined;
|
3627
|
-
items?:
|
3628
|
-
onItemSelect?: ((e:
|
3621
|
+
items?: MergedDropdownNode[] | undefined;
|
3622
|
+
onItemSelect?: ((e: MergedDropdownNode, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
3623
|
+
hasItems?: boolean | undefined;
|
3629
3624
|
children?: undefined;
|
3625
|
+
isOpen?: boolean | undefined;
|
3630
3626
|
isTargetAmount?: boolean | undefined;
|
3631
|
-
renderTarget?: ((item:
|
3632
|
-
placement?: ("
|
3627
|
+
renderTarget?: ((item: MergedDropdownNode | MergedDropdownNode[]) => React_2.ReactNode) | undefined;
|
3628
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
3633
3629
|
label?: string | undefined;
|
3634
3630
|
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
3635
3631
|
variant?: "normal" | "tight" | undefined;
|
3636
3632
|
listWidth?: Property.Width<string | number> | undefined;
|
3637
3633
|
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
3638
|
-
renderValue?: ((item:
|
3639
|
-
renderItem?: ((item:
|
3634
|
+
renderValue?: ((item: MergedDropdownNode) => string) | undefined;
|
3635
|
+
renderItem?: ((item: MergedDropdownNode) => React_2.ReactNode) | undefined;
|
3640
3636
|
closeAfterSelect?: boolean | undefined;
|
3641
3637
|
size?: string | undefined;
|
3642
3638
|
view?: string | undefined;
|
3643
3639
|
chipView?: string | undefined;
|
3644
|
-
status?: "warning" | "success" | "error" | undefined;
|
3645
|
-
hasItems?: boolean | undefined;
|
3646
|
-
isOpen?: boolean | undefined;
|
3647
3640
|
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>) | ({
|
3648
3641
|
target?: "button-like" | undefined;
|
3649
3642
|
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "clear" | "dark" | "black" | "white" | undefined;
|
@@ -3655,33 +3648,33 @@ true: PolymorphicClassName;
|
|
3655
3648
|
multiselect?: true | undefined;
|
3656
3649
|
separator?: string | undefined;
|
3657
3650
|
} & {
|
3658
|
-
value
|
3651
|
+
value: any;
|
3659
3652
|
onChange?: ((value: any) => void) | undefined;
|
3660
3653
|
listOverflow?: Property.Overflow | undefined;
|
3661
3654
|
listHeight?: Property.Height<string | number> | undefined;
|
3655
|
+
status?: "warning" | "success" | "error" | undefined;
|
3662
3656
|
placeholder?: string | undefined;
|
3663
3657
|
helperText?: string | undefined;
|
3664
3658
|
disabled?: boolean | undefined;
|
3665
|
-
items?:
|
3666
|
-
onItemSelect?: ((e:
|
3659
|
+
items?: MergedDropdownNode[] | undefined;
|
3660
|
+
onItemSelect?: ((e: MergedDropdownNode, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
3661
|
+
hasItems?: boolean | undefined;
|
3667
3662
|
children?: undefined;
|
3663
|
+
isOpen?: boolean | undefined;
|
3668
3664
|
isTargetAmount?: boolean | undefined;
|
3669
|
-
renderTarget?: ((item:
|
3670
|
-
placement?: ("
|
3665
|
+
renderTarget?: ((item: MergedDropdownNode | MergedDropdownNode[]) => React_2.ReactNode) | undefined;
|
3666
|
+
placement?: ("auto" | ("top" | "bottom" | "right" | "left")) | ("top" | "bottom" | "right" | "left")[] | undefined;
|
3671
3667
|
label?: string | undefined;
|
3672
3668
|
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
3673
3669
|
variant?: "normal" | "tight" | undefined;
|
3674
3670
|
listWidth?: Property.Width<string | number> | undefined;
|
3675
3671
|
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
3676
|
-
renderValue?: ((item:
|
3677
|
-
renderItem?: ((item:
|
3672
|
+
renderValue?: ((item: MergedDropdownNode) => string) | undefined;
|
3673
|
+
renderItem?: ((item: MergedDropdownNode) => React_2.ReactNode) | undefined;
|
3678
3674
|
closeAfterSelect?: boolean | undefined;
|
3679
3675
|
size?: string | undefined;
|
3680
3676
|
view?: string | undefined;
|
3681
3677
|
chipView?: string | undefined;
|
3682
|
-
status?: "warning" | "success" | "error" | undefined;
|
3683
|
-
hasItems?: boolean | undefined;
|
3684
|
-
isOpen?: boolean | undefined;
|
3685
3678
|
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>)), "view" | "size" | "chipView"> & React_2.RefAttributes<HTMLButtonElement>>;
|
3686
3679
|
|
3687
3680
|
// @public
|
@@ -35,7 +35,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
35
35
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
36
36
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
37
37
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
38
|
-
portal?:
|
38
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
39
39
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
40
40
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
41
41
|
closeAfterSelect?: boolean | undefined;
|
@@ -71,7 +71,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
71
71
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
72
72
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
73
73
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
74
|
-
portal?:
|
74
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
75
75
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
76
76
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
77
77
|
closeAfterSelect?: boolean | undefined;
|
@@ -107,7 +107,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
107
107
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
108
108
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
109
109
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
110
|
-
portal?:
|
110
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
111
111
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
112
112
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
113
113
|
closeAfterSelect?: boolean | undefined;
|
@@ -143,7 +143,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
143
143
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
144
144
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
145
145
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
146
|
-
portal?:
|
146
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
147
147
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
148
148
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
149
149
|
closeAfterSelect?: boolean | undefined;
|
@@ -179,7 +179,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
179
179
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
180
180
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
181
181
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
182
|
-
portal?:
|
182
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
183
183
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
184
184
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
185
185
|
closeAfterSelect?: boolean | undefined;
|
@@ -215,7 +215,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
215
215
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
216
216
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
217
217
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
218
|
-
portal?:
|
218
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
219
219
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
220
220
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
221
221
|
closeAfterSelect?: boolean | undefined;
|
@@ -251,7 +251,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
251
251
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
252
252
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
253
253
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
254
|
-
portal?:
|
254
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
255
255
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
256
256
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
257
257
|
closeAfterSelect?: boolean | undefined;
|
@@ -287,7 +287,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
287
287
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
288
288
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
289
289
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
290
|
-
portal?:
|
290
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
291
291
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
292
292
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
293
293
|
closeAfterSelect?: boolean | undefined;
|
@@ -323,7 +323,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
323
323
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
324
324
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
325
325
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
326
|
-
portal?:
|
326
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
327
327
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
328
328
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
329
329
|
closeAfterSelect?: boolean | undefined;
|
@@ -359,7 +359,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
359
359
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
360
360
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
361
361
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
362
|
-
portal?:
|
362
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
363
363
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
364
364
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
365
365
|
closeAfterSelect?: boolean | undefined;
|
@@ -395,7 +395,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
395
395
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
396
396
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
397
397
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
398
|
-
portal?:
|
398
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
399
399
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
400
400
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
401
401
|
closeAfterSelect?: boolean | undefined;
|
@@ -431,7 +431,7 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
|
|
431
431
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
432
432
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
433
433
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
434
|
-
portal?:
|
434
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
435
435
|
renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
|
436
436
|
filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
|
437
437
|
closeAfterSelect?: boolean | undefined;
|
@@ -40,7 +40,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
40
40
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
41
41
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
42
42
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
43
|
-
portal?:
|
43
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
44
44
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
45
45
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
46
46
|
closeAfterSelect?: boolean | undefined;
|
@@ -76,7 +76,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
76
76
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
77
77
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
78
78
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
79
|
-
portal?:
|
79
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
80
80
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
81
81
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
82
82
|
closeAfterSelect?: boolean | undefined;
|
@@ -112,7 +112,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
112
112
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
113
113
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
114
114
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
115
|
-
portal?:
|
115
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
116
116
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
117
117
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
118
118
|
closeAfterSelect?: boolean | undefined;
|
@@ -148,7 +148,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
148
148
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
149
149
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
150
150
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
151
|
-
portal?:
|
151
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
152
152
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
153
153
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
154
154
|
closeAfterSelect?: boolean | undefined;
|
@@ -184,7 +184,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
184
184
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
185
185
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
186
186
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
187
|
-
portal?:
|
187
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
188
188
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
189
189
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
190
190
|
closeAfterSelect?: boolean | undefined;
|
@@ -220,7 +220,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
220
220
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
221
221
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
222
222
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
223
|
-
portal?:
|
223
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
224
224
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
225
225
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
226
226
|
closeAfterSelect?: boolean | undefined;
|
@@ -256,7 +256,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
256
256
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
257
257
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
258
258
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
259
|
-
portal?:
|
259
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
260
260
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
261
261
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
262
262
|
closeAfterSelect?: boolean | undefined;
|
@@ -292,7 +292,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
292
292
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
293
293
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
294
294
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
295
|
-
portal?:
|
295
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
296
296
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
297
297
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
298
298
|
closeAfterSelect?: boolean | undefined;
|
@@ -328,7 +328,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
328
328
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
329
329
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
330
330
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
331
|
-
portal?:
|
331
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
332
332
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
333
333
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
334
334
|
closeAfterSelect?: boolean | undefined;
|
@@ -364,7 +364,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
364
364
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
365
365
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
366
366
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
367
|
-
portal?:
|
367
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
368
368
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
369
369
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
370
370
|
closeAfterSelect?: boolean | undefined;
|
@@ -400,7 +400,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
400
400
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
401
401
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
402
402
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
403
|
-
portal?:
|
403
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
404
404
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
405
405
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
406
406
|
closeAfterSelect?: boolean | undefined;
|
@@ -436,7 +436,7 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
436
436
|
listOverflow?: import("csstype").Property.Overflow | undefined;
|
437
437
|
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
438
438
|
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
439
|
-
portal?:
|
439
|
+
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
440
440
|
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
441
441
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
442
442
|
closeAfterSelect?: boolean | undefined;
|
@@ -1,11 +1,16 @@
|
|
1
1
|
export declare const config: {
|
2
2
|
defaults: {
|
3
3
|
view: string;
|
4
|
-
size: string;
|
5
|
-
labelPlacement: string;
|
6
4
|
chipView: string;
|
5
|
+
size: string;
|
7
6
|
};
|
8
7
|
variations: {
|
8
|
+
size: {
|
9
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
10
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
13
|
+
};
|
9
14
|
view: {
|
10
15
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
16
|
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -18,23 +23,10 @@ export declare const config: {
|
|
18
23
|
black: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
19
24
|
white: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
20
25
|
};
|
21
|
-
size: {
|
22
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
23
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
24
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
25
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
26
|
-
};
|
27
|
-
labelPlacement: {
|
28
|
-
inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
29
|
-
outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
30
|
-
};
|
31
26
|
chipView: {
|
32
27
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
33
28
|
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
34
29
|
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
35
30
|
};
|
36
|
-
disabled: {
|
37
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
38
|
-
};
|
39
31
|
};
|
40
32
|
};
|