@salutejs/plasma-b2c 1.417.0-canary.1475.11347015087.0 → 1.417.1-canary.1444.11348071542.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,7 +42,6 @@ import { BaseCallbackKeyboardInstance } from '@salutejs/plasma-new-hope/types/co
42
42
  import { BaseProps } from '@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types';
43
43
  import { BaseTabItemProps } from '@salutejs/plasma-new-hope/types/components/Tabs/TabItem.types';
44
44
  import { BaseTabsProps } from '@salutejs/plasma-new-hope/types/components/Tabs/Tabs.types';
45
- import { BasicProps } from '@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types';
46
45
  import { BlurProps } from '@salutejs/plasma-core';
47
46
  import { blurs } from '@salutejs/plasma-core';
48
47
  import { BoldProps } from '@salutejs/plasma-new-hope/types/components/Typography/Typography.types';
@@ -82,7 +81,6 @@ import { CellTextboxLabel } from '@salutejs/plasma-new-hope/styled-components';
82
81
  import { CellTextboxSubtitle } from '@salutejs/plasma-new-hope/styled-components';
83
82
  import { CellTextboxTitle } from '@salutejs/plasma-new-hope/styled-components';
84
83
  import { ChangeEvent } from 'react';
85
- import { ChangeInstanceCallback } from '@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types';
86
84
  import { CheckboxProps as CheckboxProps_2 } from '@salutejs/plasma-new-hope/types/components/Checkbox/Checkbox.types';
87
85
  import { ChipGroupProps } from '@salutejs/plasma-new-hope/types/components/ChipGroup/ChipGroup.types';
88
86
  import { ChipProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -96,7 +94,7 @@ import { ColProps } from '@salutejs/plasma-new-hope/styled-components';
96
94
  import { ColSizeProps } from '@salutejs/plasma-new-hope/styled-components';
97
95
  import { ComboboxPrimitiveValue } from '@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types';
98
96
  import { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope/styled-components';
99
- import { CommitInstanceCallback } from '@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types';
97
+ import type { ComboboxProps as ComboboxProps_2 } from '@salutejs/plasma-new-hope';
100
98
  import { ComponentClass } from 'react';
101
99
  import { ComponentProps } from 'react';
102
100
  import { GridProps as ContainerProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -108,8 +106,10 @@ import { CustomHorizontalTabsProps } from '@salutejs/plasma-new-hope/types/compo
108
106
  import { CustomPopoverProps } from '@salutejs/plasma-new-hope/types/components/Popover/Popover.types';
109
107
  import { CustomToastProps } from '@salutejs/plasma-new-hope/types/components/Toast/Toast.types';
110
108
  import { CustomVerticalTabsProps } from '@salutejs/plasma-new-hope/types/components/Tabs/Tabs.types';
109
+ import { DateInfo } from '@salutejs/plasma-new-hope/types/components/Calendar/Calendar.types';
111
110
  import { DatePickerCalendarProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types';
112
111
  import { datePickerClasses } from '@salutejs/plasma-new-hope/styled-components';
112
+ import { DatePickerdVariationProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types';
113
113
  import { DatePickerPlacement } from '@salutejs/plasma-new-hope/styled-components';
114
114
  import { DatePickerPlacementBasic } from '@salutejs/plasma-new-hope/styled-components';
115
115
  import { DatePickerPopoverProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types';
@@ -118,7 +118,6 @@ import { DatePickerRangePlacement } from '@salutejs/plasma-new-hope/styled-compo
118
118
  import { DatePickerRangeProps } from '@salutejs/plasma-new-hope/styled-components';
119
119
  import { DatePickerTextFieldProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types';
120
120
  import { datePickerTokens } from '@salutejs/plasma-new-hope/styled-components';
121
- import { DatePickerVariationProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types';
122
121
  import { defaultValidate } from '@salutejs/plasma-hope';
123
122
  import { DisabledProps } from '@salutejs/plasma-core';
124
123
  import { DividerProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -157,6 +156,8 @@ import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
157
156
  import { InputHTMLAttributes } from '@salutejs/plasma-core';
158
157
  import { InputHTMLAttributes as InputHTMLAttributes_2 } from '@salutejs/plasma-new-hope/types/types';
159
158
  import { InputHTMLAttributes as InputHTMLAttributes_3 } from 'react';
159
+ import type { ItemOption } from '@salutejs/plasma-new-hope';
160
+ import { ItemOption as ItemOption_2 } from '@salutejs/plasma-new-hope/styled-components';
160
161
  import { JSXElementConstructor } from 'react';
161
162
  import { KeyboardEvent as KeyboardEvent_2 } from 'react';
162
163
  import { LineSkeletonProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -177,6 +178,7 @@ import { ModalView } from '@salutejs/plasma-hope';
177
178
  import { monthLongName } from '@salutejs/plasma-core';
178
179
  import { monthShortName } from '@salutejs/plasma-core';
179
180
  import { MouseEvent as MouseEvent_2 } from 'react';
181
+ import { MutableRefObject } from 'react';
180
182
  import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-components';
181
183
  import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
182
184
  import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -1224,232 +1226,10 @@ export { ColProps }
1224
1226
 
1225
1227
  export { ColSizeProps }
1226
1228
 
1229
+ // Warning: (ae-forgotten-export) The symbol "CommonProps" needs to be exported by the entry point index.d.ts
1230
+ //
1227
1231
  // @public (undocumented)
1228
- export const Combobox: React_2.ForwardRefExoticComponent<(Omit<PropsType< {
1229
- view: {
1230
- default: PolymorphicClassName;
1231
- positive: PolymorphicClassName;
1232
- warning: PolymorphicClassName;
1233
- negative: PolymorphicClassName;
1234
- };
1235
- size: {
1236
- l: PolymorphicClassName;
1237
- m: PolymorphicClassName;
1238
- s: PolymorphicClassName;
1239
- xs: PolymorphicClassName;
1240
- };
1241
- labelPlacement: {
1242
- inner: PolymorphicClassName;
1243
- outer: PolymorphicClassName;
1244
- };
1245
- disabled: {
1246
- true: PolymorphicClassName;
1247
- };
1248
- readOnly: {
1249
- true: PolymorphicClassName;
1250
- };
1251
- }> & BasicProps & {
1252
- readOnly?: boolean | undefined;
1253
- disabled?: true | undefined;
1254
- alwaysOpened?: false | undefined;
1255
- } & {
1256
- multiple?: false | undefined;
1257
- value?: string | undefined;
1258
- onChange?: ((value: string) => void) | undefined;
1259
- isTargetAmount?: false | undefined;
1260
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1261
- view: {
1262
- default: PolymorphicClassName;
1263
- positive: PolymorphicClassName;
1264
- warning: PolymorphicClassName;
1265
- negative: PolymorphicClassName;
1266
- };
1267
- size: {
1268
- l: PolymorphicClassName;
1269
- m: PolymorphicClassName;
1270
- s: PolymorphicClassName;
1271
- xs: PolymorphicClassName;
1272
- };
1273
- labelPlacement: {
1274
- inner: PolymorphicClassName;
1275
- outer: PolymorphicClassName;
1276
- };
1277
- disabled: {
1278
- true: PolymorphicClassName;
1279
- };
1280
- readOnly: {
1281
- true: PolymorphicClassName;
1282
- };
1283
- }> & BasicProps & {
1284
- readOnly?: boolean | undefined;
1285
- disabled?: true | undefined;
1286
- alwaysOpened?: false | undefined;
1287
- } & {
1288
- multiple: true;
1289
- value?: string[] | undefined;
1290
- onChange?: ((value: string[]) => void) | undefined;
1291
- isTargetAmount?: boolean | undefined;
1292
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1293
- view: {
1294
- default: PolymorphicClassName;
1295
- positive: PolymorphicClassName;
1296
- warning: PolymorphicClassName;
1297
- negative: PolymorphicClassName;
1298
- };
1299
- size: {
1300
- l: PolymorphicClassName;
1301
- m: PolymorphicClassName;
1302
- s: PolymorphicClassName;
1303
- xs: PolymorphicClassName;
1304
- };
1305
- labelPlacement: {
1306
- inner: PolymorphicClassName;
1307
- outer: PolymorphicClassName;
1308
- };
1309
- disabled: {
1310
- true: PolymorphicClassName;
1311
- };
1312
- readOnly: {
1313
- true: PolymorphicClassName;
1314
- };
1315
- }> & BasicProps & {
1316
- readOnly?: true | undefined;
1317
- disabled?: boolean | undefined;
1318
- alwaysOpened?: false | undefined;
1319
- } & {
1320
- multiple?: false | undefined;
1321
- value?: string | undefined;
1322
- onChange?: ((value: string) => void) | undefined;
1323
- isTargetAmount?: false | undefined;
1324
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1325
- view: {
1326
- default: PolymorphicClassName;
1327
- positive: PolymorphicClassName;
1328
- warning: PolymorphicClassName;
1329
- negative: PolymorphicClassName;
1330
- };
1331
- size: {
1332
- l: PolymorphicClassName;
1333
- m: PolymorphicClassName;
1334
- s: PolymorphicClassName;
1335
- xs: PolymorphicClassName;
1336
- };
1337
- labelPlacement: {
1338
- inner: PolymorphicClassName;
1339
- outer: PolymorphicClassName;
1340
- };
1341
- disabled: {
1342
- true: PolymorphicClassName;
1343
- };
1344
- readOnly: {
1345
- true: PolymorphicClassName;
1346
- };
1347
- }> & BasicProps & {
1348
- readOnly?: true | undefined;
1349
- disabled?: boolean | undefined;
1350
- alwaysOpened?: false | undefined;
1351
- } & {
1352
- multiple: true;
1353
- value?: string[] | undefined;
1354
- onChange?: ((value: string[]) => void) | undefined;
1355
- isTargetAmount?: boolean | undefined;
1356
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1357
- view: {
1358
- default: PolymorphicClassName;
1359
- positive: PolymorphicClassName;
1360
- warning: PolymorphicClassName;
1361
- negative: PolymorphicClassName;
1362
- };
1363
- size: {
1364
- l: PolymorphicClassName;
1365
- m: PolymorphicClassName;
1366
- s: PolymorphicClassName;
1367
- xs: PolymorphicClassName;
1368
- };
1369
- labelPlacement: {
1370
- inner: PolymorphicClassName;
1371
- outer: PolymorphicClassName;
1372
- };
1373
- disabled: {
1374
- true: PolymorphicClassName;
1375
- };
1376
- readOnly: {
1377
- true: PolymorphicClassName;
1378
- };
1379
- }> & BasicProps & {
1380
- readOnly?: false | undefined;
1381
- disabled?: false | undefined;
1382
- alwaysOpened?: true | undefined;
1383
- } & {
1384
- multiple?: false | undefined;
1385
- value?: string | undefined;
1386
- onChange?: ((value: string) => void) | undefined;
1387
- isTargetAmount?: false | undefined;
1388
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1389
- view: {
1390
- default: PolymorphicClassName;
1391
- positive: PolymorphicClassName;
1392
- warning: PolymorphicClassName;
1393
- negative: PolymorphicClassName;
1394
- };
1395
- size: {
1396
- l: PolymorphicClassName;
1397
- m: PolymorphicClassName;
1398
- s: PolymorphicClassName;
1399
- xs: PolymorphicClassName;
1400
- };
1401
- labelPlacement: {
1402
- inner: PolymorphicClassName;
1403
- outer: PolymorphicClassName;
1404
- };
1405
- disabled: {
1406
- true: PolymorphicClassName;
1407
- };
1408
- readOnly: {
1409
- true: PolymorphicClassName;
1410
- };
1411
- }> & BasicProps & {
1412
- readOnly?: false | undefined;
1413
- disabled?: false | undefined;
1414
- alwaysOpened?: true | undefined;
1415
- } & {
1416
- multiple: true;
1417
- value?: string[] | undefined;
1418
- onChange?: ((value: string[]) => void) | undefined;
1419
- isTargetAmount?: boolean | undefined;
1420
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1421
- size: {
1422
- xs: PolymorphicClassName;
1423
- s: PolymorphicClassName;
1424
- m: PolymorphicClassName;
1425
- l: PolymorphicClassName;
1426
- };
1427
- view: {
1428
- default: PolymorphicClassName;
1429
- };
1430
- }> & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & CustomComboboxProps & {
1431
- valueType?: "single" | undefined;
1432
- value?: ComboboxPrimitiveValue | undefined;
1433
- onChangeValue?: ((value?: ComboboxPrimitiveValue | undefined) => void) | undefined;
1434
- } & React_2.RefAttributes<HTMLInputElement> & {
1435
- items?: undefined;
1436
- }, "ref"> | Omit<PropsType< {
1437
- size: {
1438
- xs: PolymorphicClassName;
1439
- s: PolymorphicClassName;
1440
- m: PolymorphicClassName;
1441
- l: PolymorphicClassName;
1442
- };
1443
- view: {
1444
- default: PolymorphicClassName;
1445
- };
1446
- }> & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & CustomComboboxProps & {
1447
- valueType: "multiple";
1448
- value?: ComboboxPrimitiveValue[] | undefined;
1449
- onChangeValue?: ((value?: ComboboxPrimitiveValue[] | undefined) => void) | undefined;
1450
- } & React_2.RefAttributes<HTMLInputElement> & {
1451
- items?: undefined;
1452
- }, "ref">) & React_2.RefAttributes<HTMLInputElement>>;
1232
+ export const Combobox: <T extends ItemOption>(props: CommonProps<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement | null;
1453
1233
 
1454
1234
  // @public (undocumented)
1455
1235
  export const ComboboxDivider: FunctionComponent<PropsType<Variants> & HTMLAttributes<HTMLDivElement> & {
@@ -1559,7 +1339,7 @@ true: PolymorphicClassName;
1559
1339
  readOnly: {
1560
1340
  true: PolymorphicClassName;
1561
1341
  };
1562
- }> & DatePickerVariationProps & DatePickerTextFieldProps & DatePickerCalendarProps & DatePickerPopoverProps & Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> & RefAttributes<HTMLInputElement>>;
1342
+ }> & DatePickerdVariationProps & DatePickerTextFieldProps & DatePickerCalendarProps & DatePickerPopoverProps & Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> & RefAttributes<HTMLInputElement>>;
1563
1343
 
1564
1344
  export { datePickerClasses }
1565
1345
 
@@ -1586,14 +1366,12 @@ true: PolymorphicClassName;
1586
1366
  readOnly: {
1587
1367
  true: PolymorphicClassName;
1588
1368
  };
1589
- }> & DatePickerVariationProps & {
1369
+ }> & DatePickerdVariationProps & {
1590
1370
  defaultFirstDate?: Date | undefined;
1591
1371
  defaultSecondDate?: Date | undefined;
1592
1372
  name?: string | undefined;
1593
- onChangeFirstValue?: ChangeInstanceCallback | undefined;
1594
- onChangeSecondValue?: ChangeInstanceCallback | undefined;
1595
- onCommitFirstDate?: CommitInstanceCallback | undefined;
1596
- onCommitSecondDate?: CommitInstanceCallback | undefined;
1373
+ onCommitFirstDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: DateInfo | undefined) => void) | undefined;
1374
+ onCommitSecondDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: DateInfo | undefined) => void) | undefined;
1597
1375
  onChange?: ((event: {
1598
1376
  target: {
1599
1377
  value?: string | undefined;
@@ -1625,6 +1403,8 @@ firstTextfieldTextBefore?: string | undefined;
1625
1403
  secondTextfieldTextBefore?: string | undefined;
1626
1404
  firstTextfieldTextAfter?: string | undefined;
1627
1405
  secondTextfieldTextAfter?: string | undefined;
1406
+ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
1407
+ onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
1628
1408
  onFocusFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1629
1409
  onFocusSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1630
1410
  onBlurFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
@@ -22,7 +22,27 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
22
22
  readOnly: {
23
23
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
24
24
  };
25
- }> & ((import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
25
+ }> & (({
26
+ items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
27
+ placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
28
+ label?: string | undefined;
29
+ placeholder?: string | undefined;
30
+ helperText?: string | undefined;
31
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
32
+ textBefore?: string | undefined;
33
+ textAfter?: string | undefined;
34
+ variant?: "normal" | "tight" | undefined;
35
+ listOverflow?: import("csstype").Property.Overflow | undefined;
36
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
37
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
38
+ portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
39
+ renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
40
+ filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
41
+ closeAfterSelect?: boolean | undefined;
42
+ size?: string | undefined;
43
+ view?: string | undefined;
44
+ labelPlacement?: "outer" | "inner" | undefined;
45
+ } & {
26
46
  readOnly?: boolean | undefined;
27
47
  disabled?: true | undefined;
28
48
  alwaysOpened?: false | undefined;
@@ -31,7 +51,27 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
31
51
  value?: string | undefined;
32
52
  onChange?: ((value: string) => void) | undefined;
33
53
  isTargetAmount?: false | undefined;
34
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
54
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
55
+ items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
56
+ placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
57
+ label?: string | undefined;
58
+ placeholder?: string | undefined;
59
+ helperText?: string | undefined;
60
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
61
+ textBefore?: string | undefined;
62
+ textAfter?: string | undefined;
63
+ variant?: "normal" | "tight" | undefined;
64
+ listOverflow?: import("csstype").Property.Overflow | undefined;
65
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
66
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
67
+ portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
68
+ renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
69
+ filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
70
+ closeAfterSelect?: boolean | undefined;
71
+ size?: string | undefined;
72
+ view?: string | undefined;
73
+ labelPlacement?: "outer" | "inner" | undefined;
74
+ } & {
35
75
  readOnly?: boolean | undefined;
36
76
  disabled?: true | undefined;
37
77
  alwaysOpened?: false | undefined;
@@ -40,7 +80,27 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
40
80
  value?: string[] | undefined;
41
81
  onChange?: ((value: string[]) => void) | undefined;
42
82
  isTargetAmount?: boolean | undefined;
43
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
83
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
84
+ items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
85
+ placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
86
+ label?: string | undefined;
87
+ placeholder?: string | undefined;
88
+ helperText?: string | undefined;
89
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
90
+ textBefore?: string | undefined;
91
+ textAfter?: string | undefined;
92
+ variant?: "normal" | "tight" | undefined;
93
+ listOverflow?: import("csstype").Property.Overflow | undefined;
94
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
95
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
96
+ portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
97
+ renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
98
+ filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
99
+ closeAfterSelect?: boolean | undefined;
100
+ size?: string | undefined;
101
+ view?: string | undefined;
102
+ labelPlacement?: "outer" | "inner" | undefined;
103
+ } & {
44
104
  readOnly?: true | undefined;
45
105
  disabled?: boolean | undefined;
46
106
  alwaysOpened?: false | undefined;
@@ -49,7 +109,27 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
49
109
  value?: string | undefined;
50
110
  onChange?: ((value: string) => void) | undefined;
51
111
  isTargetAmount?: false | undefined;
52
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
112
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
113
+ items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
114
+ placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
115
+ label?: string | undefined;
116
+ placeholder?: string | undefined;
117
+ helperText?: string | undefined;
118
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
119
+ textBefore?: string | undefined;
120
+ textAfter?: string | undefined;
121
+ variant?: "normal" | "tight" | undefined;
122
+ listOverflow?: import("csstype").Property.Overflow | undefined;
123
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
124
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
125
+ portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
126
+ renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
127
+ filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
128
+ closeAfterSelect?: boolean | undefined;
129
+ size?: string | undefined;
130
+ view?: string | undefined;
131
+ labelPlacement?: "outer" | "inner" | undefined;
132
+ } & {
53
133
  readOnly?: true | undefined;
54
134
  disabled?: boolean | undefined;
55
135
  alwaysOpened?: false | undefined;
@@ -58,7 +138,27 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
58
138
  value?: string[] | undefined;
59
139
  onChange?: ((value: string[]) => void) | undefined;
60
140
  isTargetAmount?: boolean | undefined;
61
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
141
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
142
+ items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
143
+ placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
144
+ label?: string | undefined;
145
+ placeholder?: string | undefined;
146
+ helperText?: string | undefined;
147
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
148
+ textBefore?: string | undefined;
149
+ textAfter?: string | undefined;
150
+ variant?: "normal" | "tight" | undefined;
151
+ listOverflow?: import("csstype").Property.Overflow | undefined;
152
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
153
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
154
+ portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
155
+ renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
156
+ filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
157
+ closeAfterSelect?: boolean | undefined;
158
+ size?: string | undefined;
159
+ view?: string | undefined;
160
+ labelPlacement?: "outer" | "inner" | undefined;
161
+ } & {
62
162
  readOnly?: false | undefined;
63
163
  disabled?: false | undefined;
64
164
  alwaysOpened?: true | undefined;
@@ -67,7 +167,27 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
67
167
  value?: string | undefined;
68
168
  onChange?: ((value: string) => void) | undefined;
69
169
  isTargetAmount?: false | undefined;
70
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
170
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
171
+ items: import("@salutejs/plasma-new-hope/styled-components").ItemOption[];
172
+ placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
173
+ label?: string | undefined;
174
+ placeholder?: string | undefined;
175
+ helperText?: string | undefined;
176
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
177
+ textBefore?: string | undefined;
178
+ textAfter?: string | undefined;
179
+ variant?: "normal" | "tight" | undefined;
180
+ listOverflow?: import("csstype").Property.Overflow | undefined;
181
+ listHeight?: import("csstype").Property.Height<string | number> | undefined;
182
+ listWidth?: import("csstype").Property.Width<string | number> | undefined;
183
+ portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
184
+ renderItem?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption) => import("react").ReactNode) | undefined;
185
+ filter?: ((item: import("@salutejs/plasma-new-hope/styled-components").ItemOption, textValue: string) => boolean) | undefined;
186
+ closeAfterSelect?: boolean | undefined;
187
+ size?: string | undefined;
188
+ view?: string | undefined;
189
+ labelPlacement?: "outer" | "inner" | undefined;
190
+ } & {
71
191
  readOnly?: false | undefined;
72
192
  disabled?: false | undefined;
73
193
  alwaysOpened?: true | undefined;
@@ -1,229 +1,14 @@
1
- import React from 'react';
1
+ import React, { ComponentProps } from 'react';
2
+ import type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';
3
+ import { config } from './Combobox.config';
4
+ import { Combobox as ComboboxOld } from './Legacy';
5
+ import { Combobox as ComboboxNew } from './Combobox';
2
6
  export { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';
3
7
  export type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope/styled-components';
4
- declare const Combobox: React.ForwardRefExoticComponent<(Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
5
- view: {
6
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
- positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
8
- warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
9
- negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
10
- };
11
- size: {
12
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
13
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
14
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
15
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
16
- };
17
- labelPlacement: {
18
- inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
19
- outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
20
- };
21
- disabled: {
22
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
23
- };
24
- readOnly: {
25
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
26
- };
27
- }> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
28
- readOnly?: boolean | undefined;
29
- disabled?: true | undefined;
30
- alwaysOpened?: false | undefined;
31
- } & {
32
- multiple?: false | undefined;
33
- value?: string | undefined;
34
- onChange?: ((value: string) => void) | undefined;
35
- isTargetAmount?: false | undefined;
36
- } & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
37
- view: {
38
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
39
- positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
40
- warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
41
- negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
42
- };
43
- size: {
44
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
45
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
46
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
47
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
48
- };
49
- labelPlacement: {
50
- inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
51
- outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
52
- };
53
- disabled: {
54
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
55
- };
56
- readOnly: {
57
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
58
- };
59
- }> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
60
- readOnly?: boolean | undefined;
61
- disabled?: true | undefined;
62
- alwaysOpened?: false | undefined;
63
- } & {
64
- multiple: true;
65
- value?: string[] | undefined;
66
- onChange?: ((value: string[]) => void) | undefined;
67
- isTargetAmount?: boolean | undefined;
68
- } & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
69
- view: {
70
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
71
- positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
72
- warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
73
- negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
74
- };
75
- size: {
76
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
77
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
78
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
79
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
80
- };
81
- labelPlacement: {
82
- inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
83
- outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
84
- };
85
- disabled: {
86
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
87
- };
88
- readOnly: {
89
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
90
- };
91
- }> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
92
- readOnly?: true | undefined;
93
- disabled?: boolean | undefined;
94
- alwaysOpened?: false | undefined;
95
- } & {
96
- multiple?: false | undefined;
97
- value?: string | undefined;
98
- onChange?: ((value: string) => void) | undefined;
99
- isTargetAmount?: false | undefined;
100
- } & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
101
- view: {
102
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
103
- positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
104
- warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
105
- negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
106
- };
107
- size: {
108
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
109
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
110
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
111
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
112
- };
113
- labelPlacement: {
114
- inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
115
- outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
116
- };
117
- disabled: {
118
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
119
- };
120
- readOnly: {
121
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
122
- };
123
- }> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
124
- readOnly?: true | undefined;
125
- disabled?: boolean | undefined;
126
- alwaysOpened?: false | undefined;
127
- } & {
128
- multiple: true;
129
- value?: string[] | undefined;
130
- onChange?: ((value: string[]) => void) | undefined;
131
- isTargetAmount?: boolean | undefined;
132
- } & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
133
- view: {
134
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
135
- positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
136
- warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
137
- negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
138
- };
139
- size: {
140
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
141
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
142
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
143
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
144
- };
145
- labelPlacement: {
146
- inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
147
- outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
148
- };
149
- disabled: {
150
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
151
- };
152
- readOnly: {
153
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
154
- };
155
- }> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
156
- readOnly?: false | undefined;
157
- disabled?: false | undefined;
158
- alwaysOpened?: true | undefined;
159
- } & {
160
- multiple?: false | undefined;
161
- value?: string | undefined;
162
- onChange?: ((value: string) => void) | undefined;
163
- isTargetAmount?: false | undefined;
164
- } & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
165
- view: {
166
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
167
- positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
168
- warning: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
169
- negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
170
- };
171
- size: {
172
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
173
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
174
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
175
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
176
- };
177
- labelPlacement: {
178
- inner: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
179
- outer: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
180
- };
181
- disabled: {
182
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
183
- };
184
- readOnly: {
185
- true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
186
- };
187
- }> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
188
- readOnly?: false | undefined;
189
- disabled?: false | undefined;
190
- alwaysOpened?: true | undefined;
191
- } & {
192
- multiple: true;
193
- value?: string[] | undefined;
194
- onChange?: ((value: string[]) => void) | undefined;
195
- isTargetAmount?: boolean | undefined;
196
- } & Omit<React.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
197
- size: {
198
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
199
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
200
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
201
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
202
- };
203
- view: {
204
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
205
- };
206
- }> & Omit<import("@salutejs/plasma-core").InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").CustomComboboxProps & {
207
- valueType?: "single" | undefined;
208
- value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue | undefined;
209
- onChangeValue?: ((value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue | undefined) => void) | undefined;
210
- } & React.RefAttributes<HTMLInputElement> & {
211
- items?: undefined;
212
- }, "ref"> | Omit<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
213
- size: {
214
- xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
215
- s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
216
- m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
217
- l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
218
- };
219
- view: {
220
- default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
221
- };
222
- }> & Omit<import("@salutejs/plasma-core").InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").CustomComboboxProps & {
223
- valueType: "multiple";
224
- value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue[] | undefined;
225
- onChangeValue?: ((value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue[] | undefined) => void) | undefined;
226
- } & React.RefAttributes<HTMLInputElement> & {
227
- items?: undefined;
228
- }, "ref">) & React.RefAttributes<HTMLInputElement>>;
229
- export { Combobox };
8
+ declare type PropsFromConfig = keyof typeof config['variations'];
9
+ declare type PropsOld = ComponentProps<typeof ComboboxOld> & {
10
+ items?: never;
11
+ };
12
+ declare type PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> & Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
13
+ declare type CommonProps<T extends ItemOption> = PropsOld | PropsNew<T>;
14
+ export declare const Combobox: <T extends ItemOption>(props: CommonProps<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement | null;
@@ -41,7 +41,10 @@ var _Combobox = /*#__PURE__*/require("./Combobox");
41
41
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
42
42
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
43
43
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
44
- var Combobox = exports.Combobox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
44
+ function fixedForwardRef(render) {
45
+ return /*#__PURE__*/(0, _react.forwardRef)(render);
46
+ }
47
+ var ComboboxComponent = function ComboboxComponent(props, ref) {
45
48
  if (props.items) {
46
49
  return /*#__PURE__*/_react["default"].createElement(_Combobox.Combobox, _extends({
47
50
  ref: ref
@@ -50,4 +53,5 @@ var Combobox = exports.Combobox = /*#__PURE__*/(0, _react.forwardRef)(function (
50
53
  return /*#__PURE__*/_react["default"].createElement(_Legacy.Combobox, _extends({
51
54
  ref: ref
52
55
  }, props));
53
- });
56
+ };
57
+ var Combobox = exports.Combobox = /*#__PURE__*/fixedForwardRef(ComboboxComponent);
@@ -15,7 +15,7 @@ export declare const DatePicker: import("react").FunctionComponent<import("@salu
15
15
  readOnly: {
16
16
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
17
17
  };
18
- }> & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerVariationProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerTextFieldProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerCalendarProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerPopoverProps & Omit<import("react").HTMLAttributes<HTMLDivElement>, "defaultValue"> & import("react").RefAttributes<HTMLInputElement>>;
18
+ }> & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerdVariationProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerTextFieldProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerCalendarProps & import("@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types").DatePickerPopoverProps & Omit<import("react").HTMLAttributes<HTMLDivElement>, "defaultValue"> & import("react").RefAttributes<HTMLInputElement>>;
19
19
  export declare const DatePickerRange: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
20
20
  view: {
21
21
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -32,14 +32,12 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
32
32
  readOnly: {
33
33
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
34
34
  };
35
- }> & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerVariationProps & {
35
+ }> & import("@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types").DatePickerdVariationProps & {
36
36
  defaultFirstDate?: Date | undefined;
37
37
  defaultSecondDate?: Date | undefined;
38
38
  name?: string | undefined;
39
- onChangeFirstValue?: import("@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types").ChangeInstanceCallback | undefined;
40
- onChangeSecondValue?: import("@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types").ChangeInstanceCallback | undefined;
41
- onCommitFirstDate?: import("@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types").CommitInstanceCallback | undefined;
42
- onCommitSecondDate?: import("@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types").CommitInstanceCallback | undefined;
39
+ onCommitFirstDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("@salutejs/plasma-new-hope/types/components/Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
40
+ onCommitSecondDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: import("@salutejs/plasma-new-hope/types/components/Calendar/Calendar.types").DateInfo | undefined) => void) | undefined;
43
41
  onChange?: ((event: {
44
42
  target: {
45
43
  value?: string | undefined;
@@ -71,6 +69,8 @@ export declare const DatePickerRange: import("react").FunctionComponent<import("
71
69
  secondTextfieldTextBefore?: string | undefined;
72
70
  firstTextfieldTextAfter?: string | undefined;
73
71
  secondTextfieldTextAfter?: string | undefined;
72
+ onChangeFirstValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackChangeInstance | undefined;
73
+ onChangeSecondValue?: import("@salutejs/plasma-new-hope/types/components/Range/Range.types").BaseCallbackChangeInstance | undefined;
74
74
  onFocusFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
75
75
  onFocusSecondTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
76
76
  onBlurFirstTextfield?: ((event: import("react").ChangeEvent<HTMLInputElement>) => void) | undefined;
@@ -7,7 +7,10 @@ var React = require('react');
7
7
  var Combobox$2 = require('./Combobox.js');
8
8
  var Combobox$1 = require('./Legacy/Combobox.js');
9
9
 
10
- var Combobox = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
+ function fixedForwardRef(render) {
11
+ return /*#__PURE__*/React.forwardRef(render);
12
+ }
13
+ var ComboboxComponent = function ComboboxComponent(props, ref) {
11
14
  if (props.items) {
12
15
  return /*#__PURE__*/React.createElement(Combobox$2.Combobox, _rollupPluginBabelHelpers.extends({
13
16
  ref: ref
@@ -16,7 +19,8 @@ var Combobox = /*#__PURE__*/React.forwardRef(function (props, ref) {
16
19
  return /*#__PURE__*/React.createElement(Combobox$1.Combobox, _rollupPluginBabelHelpers.extends({
17
20
  ref: ref
18
21
  }, props));
19
- });
22
+ };
23
+ var Combobox = /*#__PURE__*/fixedForwardRef(ComboboxComponent);
20
24
 
21
25
  exports.ComboboxDivider = Combobox$1.ComboboxDivider;
22
26
  exports.ComboboxFooter = Combobox$1.ComboboxFooter;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps } from 'react';\n\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\ntype PropsNew = ComponentProps<typeof ComboboxNew>;\n\ntype CommonProps = PropsOld | PropsNew;\n\nconst Combobox = forwardRef<HTMLInputElement, CommonProps>((props, ref) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...props} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n});\n\nexport { Combobox };\n"],"names":["Combobox","forwardRef","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld"],"mappings":";;;;;;;;;AAcMA,IAAAA,QAAQ,gBAAGC,gBAAU,CAAgC,UAACC,KAAK,EAAEC,GAAG,EAAK;EACvE,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,mBAAW,EAAAC,iCAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,mBAAW,EAAAD,iCAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps } from 'react';\nimport type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Combobox.config';\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\nfunction fixedForwardRef<T, P = {}>(\n render: (props: P, ref: React.Ref<T>) => React.ReactElement | null,\n): (props: P & React.RefAttributes<T>) => React.ReactElement | null {\n return forwardRef(render as any) as any;\n}\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: CommonProps<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nexport const Combobox = fixedForwardRef(ComboboxComponent);\n"],"names":["fixedForwardRef","render","forwardRef","ComboboxComponent","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld","Combobox"],"mappings":";;;;;;;;;AAWA,SAASA,eAAeA,CACpBC,MAAkE,EACF;EAChE,oBAAOC,gBAAU,CAACD,MAAa,CAAC,CAAA;AACpC,CAAA;AAWA,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAqB,EAAEC,GAAyC,EAAK;EAClH,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,mBAAW,EAAAC,iCAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,mBAAW,EAAAD,iCAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;IAEYQ,QAAQ,gBAAGZ,eAAe,CAACG,iBAAiB;;;;;;;;;"}
@@ -4,7 +4,10 @@ import { Combobox as Combobox$1 } from './Combobox.js';
4
4
  import { Combobox as Combobox$2 } from './Legacy/Combobox.js';
5
5
  export { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy/Combobox.js';
6
6
 
7
- var Combobox = /*#__PURE__*/forwardRef(function (props, ref) {
7
+ function fixedForwardRef(render) {
8
+ return /*#__PURE__*/forwardRef(render);
9
+ }
10
+ var ComboboxComponent = function ComboboxComponent(props, ref) {
8
11
  if (props.items) {
9
12
  return /*#__PURE__*/React.createElement(Combobox$1, _extends({
10
13
  ref: ref
@@ -13,7 +16,8 @@ var Combobox = /*#__PURE__*/forwardRef(function (props, ref) {
13
16
  return /*#__PURE__*/React.createElement(Combobox$2, _extends({
14
17
  ref: ref
15
18
  }, props));
16
- });
19
+ };
20
+ var Combobox = /*#__PURE__*/fixedForwardRef(ComboboxComponent);
17
21
 
18
22
  export { Combobox };
19
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps } from 'react';\n\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\ntype PropsNew = ComponentProps<typeof ComboboxNew>;\n\ntype CommonProps = PropsOld | PropsNew;\n\nconst Combobox = forwardRef<HTMLInputElement, CommonProps>((props, ref) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...props} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n});\n\nexport { Combobox };\n"],"names":["Combobox","forwardRef","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld"],"mappings":";;;;;;AAcMA,IAAAA,QAAQ,gBAAGC,UAAU,CAAgC,UAACC,KAAK,EAAEC,GAAG,EAAK;EACvE,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,UAAW,EAAAC,QAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,UAAW,EAAAD,QAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps } from 'react';\nimport type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';\n\nimport { config } from './Combobox.config';\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\nfunction fixedForwardRef<T, P = {}>(\n render: (props: P, ref: React.Ref<T>) => React.ReactElement | null,\n): (props: P & React.RefAttributes<T>) => React.ReactElement | null {\n return forwardRef(render as any) as any;\n}\n\ntype PropsFromConfig = keyof typeof config['variations'];\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent = <T extends ItemOption>(props: CommonProps<T>, ref: React.ForwardedRef<HTMLInputElement>) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nexport const Combobox = fixedForwardRef(ComboboxComponent);\n"],"names":["fixedForwardRef","render","forwardRef","ComboboxComponent","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld","Combobox"],"mappings":";;;;;;AAWA,SAASA,eAAeA,CACpBC,MAAkE,EACF;EAChE,oBAAOC,UAAU,CAACD,MAAa,CAAC,CAAA;AACpC,CAAA;AAWA,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAA0BC,KAAqB,EAAEC,GAAyC,EAAK;EAClH,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,UAAW,EAAAC,QAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,UAAW,EAAAD,QAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;IAEYQ,QAAQ,gBAAGZ,eAAe,CAACG,iBAAiB;;;;"}
@@ -3,7 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { Combobox as ComboboxOld } from './Legacy';
4
4
  import { Combobox as ComboboxNew } from './Combobox';
5
5
  export { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';
6
- var Combobox = /*#__PURE__*/forwardRef(function (props, ref) {
6
+ function fixedForwardRef(render) {
7
+ return /*#__PURE__*/forwardRef(render);
8
+ }
9
+ var ComboboxComponent = function ComboboxComponent(props, ref) {
7
10
  if (props.items) {
8
11
  return /*#__PURE__*/React.createElement(ComboboxNew, _extends({
9
12
  ref: ref
@@ -12,5 +15,5 @@ var Combobox = /*#__PURE__*/forwardRef(function (props, ref) {
12
15
  return /*#__PURE__*/React.createElement(ComboboxOld, _extends({
13
16
  ref: ref
14
17
  }, props));
15
- });
16
- export { Combobox };
18
+ };
19
+ export var Combobox = /*#__PURE__*/fixedForwardRef(ComboboxComponent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-b2c",
3
- "version": "1.417.0-canary.1475.11347015087.0",
3
+ "version": "1.417.1-canary.1444.11348071542.0",
4
4
  "description": "Salute Design System / React UI kit for business-related web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@salutejs/plasma-core": "1.182.0-dev.0",
46
46
  "@salutejs/plasma-hope": "1.315.0-dev.0",
47
- "@salutejs/plasma-new-hope": "0.166.0-canary.1475.11347015087.0",
47
+ "@salutejs/plasma-new-hope": "0.166.1-canary.1444.11348071542.0",
48
48
  "@salutejs/plasma-themes": "0.20.0-dev.0",
49
49
  "@salutejs/plasma-tokens-b2c": "0.53.0-dev.0",
50
50
  "@salutejs/plasma-tokens-web": "1.58.0-dev.0",
@@ -109,5 +109,5 @@
109
109
  "react"
110
110
  ],
111
111
  "sideEffects": false,
112
- "gitHead": "f291c9e0ef6cdeb122e62bf24492e2a061f85c3f"
112
+ "gitHead": "b5b87bbab8fcc6c35c9f228d554a5fec0ce548cd"
113
113
  }
@@ -42,7 +42,6 @@ import { BaseCallbackKeyboardInstance } from '@salutejs/plasma-new-hope/types/co
42
42
  import { BaseProps } from '@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types';
43
43
  import { BaseTabItemProps } from '@salutejs/plasma-new-hope/types/components/Tabs/TabItem.types';
44
44
  import { BaseTabsProps } from '@salutejs/plasma-new-hope/types/components/Tabs/Tabs.types';
45
- import { BasicProps } from '@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types';
46
45
  import { BlurProps } from '@salutejs/plasma-core';
47
46
  import { blurs } from '@salutejs/plasma-core';
48
47
  import { BoldProps } from '@salutejs/plasma-new-hope/types/components/Typography/Typography.types';
@@ -82,7 +81,6 @@ import { CellTextboxLabel } from '@salutejs/plasma-new-hope/styled-components';
82
81
  import { CellTextboxSubtitle } from '@salutejs/plasma-new-hope/styled-components';
83
82
  import { CellTextboxTitle } from '@salutejs/plasma-new-hope/styled-components';
84
83
  import { ChangeEvent } from 'react';
85
- import { ChangeInstanceCallback } from '@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types';
86
84
  import { CheckboxProps as CheckboxProps_2 } from '@salutejs/plasma-new-hope/types/components/Checkbox/Checkbox.types';
87
85
  import { ChipGroupProps } from '@salutejs/plasma-new-hope/types/components/ChipGroup/ChipGroup.types';
88
86
  import { ChipProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -96,7 +94,7 @@ import { ColProps } from '@salutejs/plasma-new-hope/styled-components';
96
94
  import { ColSizeProps } from '@salutejs/plasma-new-hope/styled-components';
97
95
  import { ComboboxPrimitiveValue } from '@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types';
98
96
  import { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope/styled-components';
99
- import { CommitInstanceCallback } from '@salutejs/plasma-new-hope/types/components/DatePicker/RangeDate/RangeDate.types';
97
+ import type { ComboboxProps as ComboboxProps_2 } from '@salutejs/plasma-new-hope';
100
98
  import { ComponentClass } from 'react';
101
99
  import { ComponentProps } from 'react';
102
100
  import { GridProps as ContainerProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -108,8 +106,10 @@ import { CustomHorizontalTabsProps } from '@salutejs/plasma-new-hope/types/compo
108
106
  import { CustomPopoverProps } from '@salutejs/plasma-new-hope/types/components/Popover/Popover.types';
109
107
  import { CustomToastProps } from '@salutejs/plasma-new-hope/types/components/Toast/Toast.types';
110
108
  import { CustomVerticalTabsProps } from '@salutejs/plasma-new-hope/types/components/Tabs/Tabs.types';
109
+ import { DateInfo } from '@salutejs/plasma-new-hope/types/components/Calendar/Calendar.types';
111
110
  import { DatePickerCalendarProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types';
112
111
  import { datePickerClasses } from '@salutejs/plasma-new-hope/styled-components';
112
+ import { DatePickerdVariationProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types';
113
113
  import { DatePickerPlacement } from '@salutejs/plasma-new-hope/styled-components';
114
114
  import { DatePickerPlacementBasic } from '@salutejs/plasma-new-hope/styled-components';
115
115
  import { DatePickerPopoverProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types';
@@ -118,7 +118,6 @@ import { DatePickerRangePlacement } from '@salutejs/plasma-new-hope/styled-compo
118
118
  import { DatePickerRangeProps } from '@salutejs/plasma-new-hope/styled-components';
119
119
  import { DatePickerTextFieldProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/SingleDate/SingleDate.types';
120
120
  import { datePickerTokens } from '@salutejs/plasma-new-hope/styled-components';
121
- import { DatePickerVariationProps } from '@salutejs/plasma-new-hope/types/components/DatePicker/DatePickerBase.types';
122
121
  import { defaultValidate } from '@salutejs/plasma-hope';
123
122
  import { DisabledProps } from '@salutejs/plasma-core';
124
123
  import { DividerProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -157,6 +156,8 @@ import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
157
156
  import { InputHTMLAttributes } from '@salutejs/plasma-core';
158
157
  import { InputHTMLAttributes as InputHTMLAttributes_2 } from '@salutejs/plasma-new-hope/types/types';
159
158
  import { InputHTMLAttributes as InputHTMLAttributes_3 } from 'react';
159
+ import type { ItemOption } from '@salutejs/plasma-new-hope';
160
+ import { ItemOption as ItemOption_2 } from '@salutejs/plasma-new-hope/styled-components';
160
161
  import { JSXElementConstructor } from 'react';
161
162
  import { KeyboardEvent as KeyboardEvent_2 } from 'react';
162
163
  import { LineSkeletonProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -177,6 +178,7 @@ import { ModalView } from '@salutejs/plasma-hope';
177
178
  import { monthLongName } from '@salutejs/plasma-core';
178
179
  import { monthShortName } from '@salutejs/plasma-core';
179
180
  import { MouseEvent as MouseEvent_2 } from 'react';
181
+ import { MutableRefObject } from 'react';
180
182
  import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-components';
181
183
  import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
182
184
  import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -1224,232 +1226,10 @@ export { ColProps }
1224
1226
 
1225
1227
  export { ColSizeProps }
1226
1228
 
1229
+ // Warning: (ae-forgotten-export) The symbol "CommonProps" needs to be exported by the entry point index.d.ts
1230
+ //
1227
1231
  // @public (undocumented)
1228
- export const Combobox: React_2.ForwardRefExoticComponent<(Omit<PropsType< {
1229
- view: {
1230
- default: PolymorphicClassName;
1231
- positive: PolymorphicClassName;
1232
- warning: PolymorphicClassName;
1233
- negative: PolymorphicClassName;
1234
- };
1235
- size: {
1236
- l: PolymorphicClassName;
1237
- m: PolymorphicClassName;
1238
- s: PolymorphicClassName;
1239
- xs: PolymorphicClassName;
1240
- };
1241
- labelPlacement: {
1242
- inner: PolymorphicClassName;
1243
- outer: PolymorphicClassName;
1244
- };
1245
- disabled: {
1246
- true: PolymorphicClassName;
1247
- };
1248
- readOnly: {
1249
- true: PolymorphicClassName;
1250
- };
1251
- }> & BasicProps & {
1252
- readOnly?: boolean | undefined;
1253
- disabled?: true | undefined;
1254
- alwaysOpened?: false | undefined;
1255
- } & {
1256
- multiple?: false | undefined;
1257
- value?: string | undefined;
1258
- onChange?: ((value: string) => void) | undefined;
1259
- isTargetAmount?: false | undefined;
1260
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1261
- view: {
1262
- default: PolymorphicClassName;
1263
- positive: PolymorphicClassName;
1264
- warning: PolymorphicClassName;
1265
- negative: PolymorphicClassName;
1266
- };
1267
- size: {
1268
- l: PolymorphicClassName;
1269
- m: PolymorphicClassName;
1270
- s: PolymorphicClassName;
1271
- xs: PolymorphicClassName;
1272
- };
1273
- labelPlacement: {
1274
- inner: PolymorphicClassName;
1275
- outer: PolymorphicClassName;
1276
- };
1277
- disabled: {
1278
- true: PolymorphicClassName;
1279
- };
1280
- readOnly: {
1281
- true: PolymorphicClassName;
1282
- };
1283
- }> & BasicProps & {
1284
- readOnly?: boolean | undefined;
1285
- disabled?: true | undefined;
1286
- alwaysOpened?: false | undefined;
1287
- } & {
1288
- multiple: true;
1289
- value?: string[] | undefined;
1290
- onChange?: ((value: string[]) => void) | undefined;
1291
- isTargetAmount?: boolean | undefined;
1292
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1293
- view: {
1294
- default: PolymorphicClassName;
1295
- positive: PolymorphicClassName;
1296
- warning: PolymorphicClassName;
1297
- negative: PolymorphicClassName;
1298
- };
1299
- size: {
1300
- l: PolymorphicClassName;
1301
- m: PolymorphicClassName;
1302
- s: PolymorphicClassName;
1303
- xs: PolymorphicClassName;
1304
- };
1305
- labelPlacement: {
1306
- inner: PolymorphicClassName;
1307
- outer: PolymorphicClassName;
1308
- };
1309
- disabled: {
1310
- true: PolymorphicClassName;
1311
- };
1312
- readOnly: {
1313
- true: PolymorphicClassName;
1314
- };
1315
- }> & BasicProps & {
1316
- readOnly?: true | undefined;
1317
- disabled?: boolean | undefined;
1318
- alwaysOpened?: false | undefined;
1319
- } & {
1320
- multiple?: false | undefined;
1321
- value?: string | undefined;
1322
- onChange?: ((value: string) => void) | undefined;
1323
- isTargetAmount?: false | undefined;
1324
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1325
- view: {
1326
- default: PolymorphicClassName;
1327
- positive: PolymorphicClassName;
1328
- warning: PolymorphicClassName;
1329
- negative: PolymorphicClassName;
1330
- };
1331
- size: {
1332
- l: PolymorphicClassName;
1333
- m: PolymorphicClassName;
1334
- s: PolymorphicClassName;
1335
- xs: PolymorphicClassName;
1336
- };
1337
- labelPlacement: {
1338
- inner: PolymorphicClassName;
1339
- outer: PolymorphicClassName;
1340
- };
1341
- disabled: {
1342
- true: PolymorphicClassName;
1343
- };
1344
- readOnly: {
1345
- true: PolymorphicClassName;
1346
- };
1347
- }> & BasicProps & {
1348
- readOnly?: true | undefined;
1349
- disabled?: boolean | undefined;
1350
- alwaysOpened?: false | undefined;
1351
- } & {
1352
- multiple: true;
1353
- value?: string[] | undefined;
1354
- onChange?: ((value: string[]) => void) | undefined;
1355
- isTargetAmount?: boolean | undefined;
1356
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1357
- view: {
1358
- default: PolymorphicClassName;
1359
- positive: PolymorphicClassName;
1360
- warning: PolymorphicClassName;
1361
- negative: PolymorphicClassName;
1362
- };
1363
- size: {
1364
- l: PolymorphicClassName;
1365
- m: PolymorphicClassName;
1366
- s: PolymorphicClassName;
1367
- xs: PolymorphicClassName;
1368
- };
1369
- labelPlacement: {
1370
- inner: PolymorphicClassName;
1371
- outer: PolymorphicClassName;
1372
- };
1373
- disabled: {
1374
- true: PolymorphicClassName;
1375
- };
1376
- readOnly: {
1377
- true: PolymorphicClassName;
1378
- };
1379
- }> & BasicProps & {
1380
- readOnly?: false | undefined;
1381
- disabled?: false | undefined;
1382
- alwaysOpened?: true | undefined;
1383
- } & {
1384
- multiple?: false | undefined;
1385
- value?: string | undefined;
1386
- onChange?: ((value: string) => void) | undefined;
1387
- isTargetAmount?: false | undefined;
1388
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1389
- view: {
1390
- default: PolymorphicClassName;
1391
- positive: PolymorphicClassName;
1392
- warning: PolymorphicClassName;
1393
- negative: PolymorphicClassName;
1394
- };
1395
- size: {
1396
- l: PolymorphicClassName;
1397
- m: PolymorphicClassName;
1398
- s: PolymorphicClassName;
1399
- xs: PolymorphicClassName;
1400
- };
1401
- labelPlacement: {
1402
- inner: PolymorphicClassName;
1403
- outer: PolymorphicClassName;
1404
- };
1405
- disabled: {
1406
- true: PolymorphicClassName;
1407
- };
1408
- readOnly: {
1409
- true: PolymorphicClassName;
1410
- };
1411
- }> & BasicProps & {
1412
- readOnly?: false | undefined;
1413
- disabled?: false | undefined;
1414
- alwaysOpened?: true | undefined;
1415
- } & {
1416
- multiple: true;
1417
- value?: string[] | undefined;
1418
- onChange?: ((value: string[]) => void) | undefined;
1419
- isTargetAmount?: boolean | undefined;
1420
- } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1421
- size: {
1422
- xs: PolymorphicClassName;
1423
- s: PolymorphicClassName;
1424
- m: PolymorphicClassName;
1425
- l: PolymorphicClassName;
1426
- };
1427
- view: {
1428
- default: PolymorphicClassName;
1429
- };
1430
- }> & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & CustomComboboxProps & {
1431
- valueType?: "single" | undefined;
1432
- value?: ComboboxPrimitiveValue | undefined;
1433
- onChangeValue?: ((value?: ComboboxPrimitiveValue | undefined) => void) | undefined;
1434
- } & React_2.RefAttributes<HTMLInputElement> & {
1435
- items?: undefined;
1436
- }, "ref"> | Omit<PropsType< {
1437
- size: {
1438
- xs: PolymorphicClassName;
1439
- s: PolymorphicClassName;
1440
- m: PolymorphicClassName;
1441
- l: PolymorphicClassName;
1442
- };
1443
- view: {
1444
- default: PolymorphicClassName;
1445
- };
1446
- }> & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & CustomComboboxProps & {
1447
- valueType: "multiple";
1448
- value?: ComboboxPrimitiveValue[] | undefined;
1449
- onChangeValue?: ((value?: ComboboxPrimitiveValue[] | undefined) => void) | undefined;
1450
- } & React_2.RefAttributes<HTMLInputElement> & {
1451
- items?: undefined;
1452
- }, "ref">) & React_2.RefAttributes<HTMLInputElement>>;
1232
+ export const Combobox: <T extends ItemOption>(props: CommonProps<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement | null;
1453
1233
 
1454
1234
  // @public (undocumented)
1455
1235
  export const ComboboxDivider: FunctionComponent<PropsType<Variants> & HTMLAttributes<HTMLDivElement> & {
@@ -1559,7 +1339,7 @@ true: PolymorphicClassName;
1559
1339
  readOnly: {
1560
1340
  true: PolymorphicClassName;
1561
1341
  };
1562
- }> & DatePickerVariationProps & DatePickerTextFieldProps & DatePickerCalendarProps & DatePickerPopoverProps & Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> & RefAttributes<HTMLInputElement>>;
1342
+ }> & DatePickerdVariationProps & DatePickerTextFieldProps & DatePickerCalendarProps & DatePickerPopoverProps & Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> & RefAttributes<HTMLInputElement>>;
1563
1343
 
1564
1344
  export { datePickerClasses }
1565
1345
 
@@ -1586,14 +1366,12 @@ true: PolymorphicClassName;
1586
1366
  readOnly: {
1587
1367
  true: PolymorphicClassName;
1588
1368
  };
1589
- }> & DatePickerVariationProps & {
1369
+ }> & DatePickerdVariationProps & {
1590
1370
  defaultFirstDate?: Date | undefined;
1591
1371
  defaultSecondDate?: Date | undefined;
1592
1372
  name?: string | undefined;
1593
- onChangeFirstValue?: ChangeInstanceCallback | undefined;
1594
- onChangeSecondValue?: ChangeInstanceCallback | undefined;
1595
- onCommitFirstDate?: CommitInstanceCallback | undefined;
1596
- onCommitSecondDate?: CommitInstanceCallback | undefined;
1373
+ onCommitFirstDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: DateInfo | undefined) => void) | undefined;
1374
+ onCommitSecondDate?: ((value: string | Date, error?: boolean | undefined, success?: boolean | undefined, dateInfo?: DateInfo | undefined) => void) | undefined;
1597
1375
  onChange?: ((event: {
1598
1376
  target: {
1599
1377
  value?: string | undefined;
@@ -1625,6 +1403,8 @@ firstTextfieldTextBefore?: string | undefined;
1625
1403
  secondTextfieldTextBefore?: string | undefined;
1626
1404
  firstTextfieldTextAfter?: string | undefined;
1627
1405
  secondTextfieldTextAfter?: string | undefined;
1406
+ onChangeFirstValue?: BaseCallbackChangeInstance | undefined;
1407
+ onChangeSecondValue?: BaseCallbackChangeInstance | undefined;
1628
1408
  onFocusFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1629
1409
  onFocusSecondTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1630
1410
  onBlurFirstTextfield?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;