@salutejs/sdds-dfa 0.167.1-canary.1517.11744378817.0 → 0.168.0-canary.1550.11768426274.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-dfa.api.md +56 -49
- package/components/Combobox/Combobox.d.ts +12 -12
- package/components/Combobox/index.d.ts +12 -12
- package/components/Select/Select.config.d.ts +15 -7
- package/components/Select/Select.config.js +29 -21
- package/components/Select/Select.d.ts +42 -35
- package/components/Steps/Steps.config.js +1 -1
- package/es/components/Select/Select.config.js +30 -22
- package/es/components/Steps/Steps.config.js +1 -1
- package/package.json +3 -3
- package/temp/sdds-dfa.api.md +56 -49
package/temp/sdds-dfa.api.md
CHANGED
@@ -86,6 +86,7 @@ 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';
|
89
90
|
import { DropdownProps } from '@salutejs/plasma-new-hope/types/components/Dropdown/Dropdown.types';
|
90
91
|
import { dsplL } from '@salutejs/sdds-themes/tokens';
|
91
92
|
import { dsplLBold } from '@salutejs/sdds-themes/tokens';
|
@@ -118,16 +119,15 @@ import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
118
119
|
import { InputHTMLAttributes } from '@salutejs/plasma-new-hope/types/types';
|
119
120
|
import { InputHTMLAttributes as InputHTMLAttributes_2 } from 'react';
|
120
121
|
import type { ItemOption } from '@salutejs/plasma-new-hope';
|
122
|
+
import { ItemOptionSelect } from '@salutejs/plasma-new-hope/styled-components';
|
121
123
|
import { JSXElementConstructor } from 'react';
|
122
124
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
123
125
|
import { LinkCustomProps } from '@salutejs/plasma-new-hope/types/components/Link/Link';
|
124
126
|
import { MaskProps } from '@salutejs/plasma-new-hope/types/components/Mask/Mask.types';
|
125
127
|
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';
|
127
128
|
import { modalClasses } from '@salutejs/plasma-new-hope/styled-components';
|
128
129
|
import { ModalProps } from '@salutejs/plasma-new-hope/styled-components';
|
129
130
|
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';
|
@@ -1015,7 +1015,7 @@ true: PolymorphicClassName;
|
|
1015
1015
|
listOverflow?: Property.Overflow | undefined;
|
1016
1016
|
listHeight?: Property.Height<string | number> | undefined;
|
1017
1017
|
listWidth?: Property.Width<string | number> | undefined;
|
1018
|
-
portal?:
|
1018
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1019
1019
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1020
1020
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1021
1021
|
closeAfterSelect?: boolean | undefined;
|
@@ -1051,7 +1051,7 @@ true: PolymorphicClassName;
|
|
1051
1051
|
listOverflow?: Property.Overflow | undefined;
|
1052
1052
|
listHeight?: Property.Height<string | number> | undefined;
|
1053
1053
|
listWidth?: Property.Width<string | number> | undefined;
|
1054
|
-
portal?:
|
1054
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1055
1055
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1056
1056
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1057
1057
|
closeAfterSelect?: boolean | undefined;
|
@@ -1087,7 +1087,7 @@ true: PolymorphicClassName;
|
|
1087
1087
|
listOverflow?: Property.Overflow | undefined;
|
1088
1088
|
listHeight?: Property.Height<string | number> | undefined;
|
1089
1089
|
listWidth?: Property.Width<string | number> | undefined;
|
1090
|
-
portal?:
|
1090
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1091
1091
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1092
1092
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1093
1093
|
closeAfterSelect?: boolean | undefined;
|
@@ -1123,7 +1123,7 @@ true: PolymorphicClassName;
|
|
1123
1123
|
listOverflow?: Property.Overflow | undefined;
|
1124
1124
|
listHeight?: Property.Height<string | number> | undefined;
|
1125
1125
|
listWidth?: Property.Width<string | number> | undefined;
|
1126
|
-
portal?:
|
1126
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1127
1127
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1128
1128
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1129
1129
|
closeAfterSelect?: boolean | undefined;
|
@@ -1159,7 +1159,7 @@ true: PolymorphicClassName;
|
|
1159
1159
|
listOverflow?: Property.Overflow | undefined;
|
1160
1160
|
listHeight?: Property.Height<string | number> | undefined;
|
1161
1161
|
listWidth?: Property.Width<string | number> | undefined;
|
1162
|
-
portal?:
|
1162
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1163
1163
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1164
1164
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1165
1165
|
closeAfterSelect?: boolean | undefined;
|
@@ -1195,7 +1195,7 @@ true: PolymorphicClassName;
|
|
1195
1195
|
listOverflow?: Property.Overflow | undefined;
|
1196
1196
|
listHeight?: Property.Height<string | number> | undefined;
|
1197
1197
|
listWidth?: Property.Width<string | number> | undefined;
|
1198
|
-
portal?:
|
1198
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1199
1199
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1200
1200
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1201
1201
|
closeAfterSelect?: boolean | undefined;
|
@@ -1231,7 +1231,7 @@ true: PolymorphicClassName;
|
|
1231
1231
|
listOverflow?: Property.Overflow | undefined;
|
1232
1232
|
listHeight?: Property.Height<string | number> | undefined;
|
1233
1233
|
listWidth?: Property.Width<string | number> | undefined;
|
1234
|
-
portal?:
|
1234
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1235
1235
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1236
1236
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1237
1237
|
closeAfterSelect?: boolean | undefined;
|
@@ -1267,7 +1267,7 @@ true: PolymorphicClassName;
|
|
1267
1267
|
listOverflow?: Property.Overflow | undefined;
|
1268
1268
|
listHeight?: Property.Height<string | number> | undefined;
|
1269
1269
|
listWidth?: Property.Width<string | number> | undefined;
|
1270
|
-
portal?:
|
1270
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1271
1271
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1272
1272
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1273
1273
|
closeAfterSelect?: boolean | undefined;
|
@@ -1303,7 +1303,7 @@ true: PolymorphicClassName;
|
|
1303
1303
|
listOverflow?: Property.Overflow | undefined;
|
1304
1304
|
listHeight?: Property.Height<string | number> | undefined;
|
1305
1305
|
listWidth?: Property.Width<string | number> | undefined;
|
1306
|
-
portal?:
|
1306
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1307
1307
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1308
1308
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1309
1309
|
closeAfterSelect?: boolean | undefined;
|
@@ -1339,7 +1339,7 @@ true: PolymorphicClassName;
|
|
1339
1339
|
listOverflow?: Property.Overflow | undefined;
|
1340
1340
|
listHeight?: Property.Height<string | number> | undefined;
|
1341
1341
|
listWidth?: Property.Width<string | number> | undefined;
|
1342
|
-
portal?:
|
1342
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1343
1343
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1344
1344
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1345
1345
|
closeAfterSelect?: boolean | undefined;
|
@@ -1375,7 +1375,7 @@ true: PolymorphicClassName;
|
|
1375
1375
|
listOverflow?: Property.Overflow | undefined;
|
1376
1376
|
listHeight?: Property.Height<string | number> | undefined;
|
1377
1377
|
listWidth?: Property.Width<string | number> | undefined;
|
1378
|
-
portal?:
|
1378
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1379
1379
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1380
1380
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1381
1381
|
closeAfterSelect?: boolean | undefined;
|
@@ -1411,7 +1411,7 @@ true: PolymorphicClassName;
|
|
1411
1411
|
listOverflow?: Property.Overflow | undefined;
|
1412
1412
|
listHeight?: Property.Height<string | number> | undefined;
|
1413
1413
|
listWidth?: Property.Width<string | number> | undefined;
|
1414
|
-
portal?:
|
1414
|
+
portal?: string | RefObject<HTMLElement> | undefined;
|
1415
1415
|
renderItem?: ((item: ItemOption) => ReactNode) | undefined;
|
1416
1416
|
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
1417
1417
|
closeAfterSelect?: boolean | undefined;
|
@@ -3497,13 +3497,7 @@ export { SegmentProvider }
|
|
3497
3497
|
export { SegmentProviderProps }
|
3498
3498
|
|
3499
3499
|
// @public (undocumented)
|
3500
|
-
export const Select: React_2.ForwardRefExoticComponent<Omit<SelectProps
|
3501
|
-
size: {
|
3502
|
-
xs: PolymorphicClassName;
|
3503
|
-
s: PolymorphicClassName;
|
3504
|
-
m: PolymorphicClassName;
|
3505
|
-
l: PolymorphicClassName;
|
3506
|
-
};
|
3500
|
+
export const Select: React_2.ForwardRefExoticComponent<Omit<SelectProps<ItemOptionSelect>, "view" | "size" | "chipView"> & Pick<PropsType< {
|
3507
3501
|
view: {
|
3508
3502
|
default: PolymorphicClassName;
|
3509
3503
|
positive: PolymorphicClassName;
|
@@ -3516,11 +3510,24 @@ dark: PolymorphicClassName;
|
|
3516
3510
|
black: PolymorphicClassName;
|
3517
3511
|
white: PolymorphicClassName;
|
3518
3512
|
};
|
3513
|
+
size: {
|
3514
|
+
l: PolymorphicClassName;
|
3515
|
+
m: PolymorphicClassName;
|
3516
|
+
s: PolymorphicClassName;
|
3517
|
+
xs: PolymorphicClassName;
|
3518
|
+
};
|
3519
|
+
labelPlacement: {
|
3520
|
+
inner: PolymorphicClassName;
|
3521
|
+
outer: PolymorphicClassName;
|
3522
|
+
};
|
3519
3523
|
chipView: {
|
3520
3524
|
default: PolymorphicClassName;
|
3521
3525
|
secondary: PolymorphicClassName;
|
3522
3526
|
accent: PolymorphicClassName;
|
3523
3527
|
};
|
3528
|
+
disabled: {
|
3529
|
+
true: PolymorphicClassName;
|
3530
|
+
};
|
3524
3531
|
}> & (({
|
3525
3532
|
target?: "textfield-like" | undefined;
|
3526
3533
|
view?: "default" | "positive" | "warning" | "negative" | undefined;
|
@@ -3532,7 +3539,7 @@ accent: PolymorphicClassName;
|
|
3532
3539
|
multiselect?: false | undefined;
|
3533
3540
|
separator?: undefined;
|
3534
3541
|
} & {
|
3535
|
-
value
|
3542
|
+
value?: any;
|
3536
3543
|
onChange?: ((value: any) => void) | undefined;
|
3537
3544
|
listOverflow?: Property.Overflow | undefined;
|
3538
3545
|
listHeight?: Property.Height<string | number> | undefined;
|
@@ -3540,21 +3547,21 @@ accent: PolymorphicClassName;
|
|
3540
3547
|
placeholder?: string | undefined;
|
3541
3548
|
helperText?: string | undefined;
|
3542
3549
|
disabled?: boolean | undefined;
|
3543
|
-
items?:
|
3544
|
-
onItemSelect?: ((e:
|
3550
|
+
items?: DropdownNodeSelect[] | undefined;
|
3551
|
+
onItemSelect?: ((e: DropdownNodeSelect, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
3545
3552
|
hasItems?: boolean | undefined;
|
3546
3553
|
children?: undefined;
|
3547
3554
|
isOpen?: boolean | undefined;
|
3548
3555
|
isTargetAmount?: boolean | undefined;
|
3549
|
-
renderTarget?: ((item:
|
3550
|
-
placement?: ("
|
3556
|
+
renderTarget?: ((item: DropdownNodeSelect | DropdownNodeSelect[]) => React_2.ReactNode) | undefined;
|
3557
|
+
placement?: ("top" | "bottom" | "right" | "left" | "auto") | ("top" | "bottom" | "right" | "left")[] | undefined;
|
3551
3558
|
label?: string | undefined;
|
3552
3559
|
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
3553
3560
|
variant?: "normal" | "tight" | undefined;
|
3554
3561
|
listWidth?: Property.Width<string | number> | undefined;
|
3555
3562
|
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
3556
|
-
renderValue?: ((item:
|
3557
|
-
renderItem?: ((item:
|
3563
|
+
renderValue?: ((item: DropdownNodeSelect) => string) | undefined;
|
3564
|
+
renderItem?: ((item: DropdownNodeSelect) => React_2.ReactNode) | undefined;
|
3558
3565
|
closeAfterSelect?: boolean | undefined;
|
3559
3566
|
size?: string | undefined;
|
3560
3567
|
view?: string | undefined;
|
@@ -3570,7 +3577,7 @@ accent: PolymorphicClassName;
|
|
3570
3577
|
multiselect?: true | undefined;
|
3571
3578
|
separator?: string | undefined;
|
3572
3579
|
} & {
|
3573
|
-
value
|
3580
|
+
value?: any;
|
3574
3581
|
onChange?: ((value: any) => void) | undefined;
|
3575
3582
|
listOverflow?: Property.Overflow | undefined;
|
3576
3583
|
listHeight?: Property.Height<string | number> | undefined;
|
@@ -3578,21 +3585,21 @@ accent: PolymorphicClassName;
|
|
3578
3585
|
placeholder?: string | undefined;
|
3579
3586
|
helperText?: string | undefined;
|
3580
3587
|
disabled?: boolean | undefined;
|
3581
|
-
items?:
|
3582
|
-
onItemSelect?: ((e:
|
3588
|
+
items?: DropdownNodeSelect[] | undefined;
|
3589
|
+
onItemSelect?: ((e: DropdownNodeSelect, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
3583
3590
|
hasItems?: boolean | undefined;
|
3584
3591
|
children?: undefined;
|
3585
3592
|
isOpen?: boolean | undefined;
|
3586
3593
|
isTargetAmount?: boolean | undefined;
|
3587
|
-
renderTarget?: ((item:
|
3588
|
-
placement?: ("
|
3594
|
+
renderTarget?: ((item: DropdownNodeSelect | DropdownNodeSelect[]) => React_2.ReactNode) | undefined;
|
3595
|
+
placement?: ("top" | "bottom" | "right" | "left" | "auto") | ("top" | "bottom" | "right" | "left")[] | undefined;
|
3589
3596
|
label?: string | undefined;
|
3590
3597
|
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
3591
3598
|
variant?: "normal" | "tight" | undefined;
|
3592
3599
|
listWidth?: Property.Width<string | number> | undefined;
|
3593
3600
|
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
3594
|
-
renderValue?: ((item:
|
3595
|
-
renderItem?: ((item:
|
3601
|
+
renderValue?: ((item: DropdownNodeSelect) => string) | undefined;
|
3602
|
+
renderItem?: ((item: DropdownNodeSelect) => React_2.ReactNode) | undefined;
|
3596
3603
|
closeAfterSelect?: boolean | undefined;
|
3597
3604
|
size?: string | undefined;
|
3598
3605
|
view?: string | undefined;
|
@@ -3608,7 +3615,7 @@ accent: PolymorphicClassName;
|
|
3608
3615
|
multiselect?: false | undefined;
|
3609
3616
|
separator?: undefined;
|
3610
3617
|
} & {
|
3611
|
-
value
|
3618
|
+
value?: any;
|
3612
3619
|
onChange?: ((value: any) => void) | undefined;
|
3613
3620
|
listOverflow?: Property.Overflow | undefined;
|
3614
3621
|
listHeight?: Property.Height<string | number> | undefined;
|
@@ -3616,21 +3623,21 @@ accent: PolymorphicClassName;
|
|
3616
3623
|
placeholder?: string | undefined;
|
3617
3624
|
helperText?: string | undefined;
|
3618
3625
|
disabled?: boolean | undefined;
|
3619
|
-
items?:
|
3620
|
-
onItemSelect?: ((e:
|
3626
|
+
items?: DropdownNodeSelect[] | undefined;
|
3627
|
+
onItemSelect?: ((e: DropdownNodeSelect, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
3621
3628
|
hasItems?: boolean | undefined;
|
3622
3629
|
children?: undefined;
|
3623
3630
|
isOpen?: boolean | undefined;
|
3624
3631
|
isTargetAmount?: boolean | undefined;
|
3625
|
-
renderTarget?: ((item:
|
3626
|
-
placement?: ("
|
3632
|
+
renderTarget?: ((item: DropdownNodeSelect | DropdownNodeSelect[]) => React_2.ReactNode) | undefined;
|
3633
|
+
placement?: ("top" | "bottom" | "right" | "left" | "auto") | ("top" | "bottom" | "right" | "left")[] | undefined;
|
3627
3634
|
label?: string | undefined;
|
3628
3635
|
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
3629
3636
|
variant?: "normal" | "tight" | undefined;
|
3630
3637
|
listWidth?: Property.Width<string | number> | undefined;
|
3631
3638
|
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
3632
|
-
renderValue?: ((item:
|
3633
|
-
renderItem?: ((item:
|
3639
|
+
renderValue?: ((item: DropdownNodeSelect) => string) | undefined;
|
3640
|
+
renderItem?: ((item: DropdownNodeSelect) => React_2.ReactNode) | undefined;
|
3634
3641
|
closeAfterSelect?: boolean | undefined;
|
3635
3642
|
size?: string | undefined;
|
3636
3643
|
view?: string | undefined;
|
@@ -3646,7 +3653,7 @@ accent: PolymorphicClassName;
|
|
3646
3653
|
multiselect?: true | undefined;
|
3647
3654
|
separator?: string | undefined;
|
3648
3655
|
} & {
|
3649
|
-
value
|
3656
|
+
value?: any;
|
3650
3657
|
onChange?: ((value: any) => void) | undefined;
|
3651
3658
|
listOverflow?: Property.Overflow | undefined;
|
3652
3659
|
listHeight?: Property.Height<string | number> | undefined;
|
@@ -3654,21 +3661,21 @@ accent: PolymorphicClassName;
|
|
3654
3661
|
placeholder?: string | undefined;
|
3655
3662
|
helperText?: string | undefined;
|
3656
3663
|
disabled?: boolean | undefined;
|
3657
|
-
items?:
|
3658
|
-
onItemSelect?: ((e:
|
3664
|
+
items?: DropdownNodeSelect[] | undefined;
|
3665
|
+
onItemSelect?: ((e: DropdownNodeSelect, event: React_2.SyntheticEvent<Element, Event>) => void) | undefined;
|
3659
3666
|
hasItems?: boolean | undefined;
|
3660
3667
|
children?: undefined;
|
3661
3668
|
isOpen?: boolean | undefined;
|
3662
3669
|
isTargetAmount?: boolean | undefined;
|
3663
|
-
renderTarget?: ((item:
|
3664
|
-
placement?: ("
|
3670
|
+
renderTarget?: ((item: DropdownNodeSelect | DropdownNodeSelect[]) => React_2.ReactNode) | undefined;
|
3671
|
+
placement?: ("top" | "bottom" | "right" | "left" | "auto") | ("top" | "bottom" | "right" | "left")[] | undefined;
|
3665
3672
|
label?: string | undefined;
|
3666
3673
|
onScrollBottom?: ((e: React_2.UIEvent<HTMLUListElement, UIEvent>) => void) | undefined;
|
3667
3674
|
variant?: "normal" | "tight" | undefined;
|
3668
3675
|
listWidth?: Property.Width<string | number> | undefined;
|
3669
3676
|
portal?: string | React_2.RefObject<HTMLElement> | undefined;
|
3670
|
-
renderValue?: ((item:
|
3671
|
-
renderItem?: ((item:
|
3677
|
+
renderValue?: ((item: DropdownNodeSelect) => string) | undefined;
|
3678
|
+
renderItem?: ((item: DropdownNodeSelect) => React_2.ReactNode) | undefined;
|
3672
3679
|
closeAfterSelect?: boolean | undefined;
|
3673
3680
|
size?: string | undefined;
|
3674
3681
|
view?: string | undefined;
|