@salutejs/plasma-b2c 1.413.0-canary.1470.11195366738.0 → 1.413.0-canary.1472.11217989006.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,6 +40,7 @@ import { BaseboxProps } from '@salutejs/plasma-new-hope/styled-components';
40
40
  import { BaseCallbackChangeInstance } from '@salutejs/plasma-new-hope/types/components/Range/Range.types';
41
41
  import { BaseCallbackKeyboardInstance } from '@salutejs/plasma-new-hope/types/components/Range/Range.types';
42
42
  import { BaseProps } from '@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types';
43
+ import { BasicProps } from '@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types';
43
44
  import { BlurProps } from '@salutejs/plasma-core';
44
45
  import { blurs } from '@salutejs/plasma-core';
45
46
  import { BoldProps } from '@salutejs/plasma-new-hope/types/components/Typography/Typography.types';
@@ -92,7 +93,6 @@ import { ColProps } from '@salutejs/plasma-new-hope/styled-components';
92
93
  import { ColSizeProps } from '@salutejs/plasma-new-hope/styled-components';
93
94
  import { ComboboxPrimitiveValue } from '@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types';
94
95
  import { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope/styled-components';
95
- import type { ComboboxProps as ComboboxProps_2 } from '@salutejs/plasma-new-hope';
96
96
  import { ComponentClass } from 'react';
97
97
  import { ComponentProps } from 'react';
98
98
  import { GridProps as ContainerProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -140,7 +140,6 @@ import { FocusProps } from '@salutejs/plasma-core';
140
140
  import { formatCurrency } from '@salutejs/plasma-core';
141
141
  import { FormTypeNumber } from '@salutejs/plasma-new-hope/types/types/FormType';
142
142
  import { FormTypeString } from '@salutejs/plasma-new-hope/types/types/FormType';
143
- import { ForwardedRef } from 'react';
144
143
  import { ForwardRefExoticComponent } from 'react';
145
144
  import { FunctionComponent } from 'react';
146
145
  import { gridBreakpoints } from '@salutejs/plasma-hope';
@@ -155,8 +154,6 @@ import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
155
154
  import { InputHTMLAttributes } from '@salutejs/plasma-core';
156
155
  import { InputHTMLAttributes as InputHTMLAttributes_2 } from '@salutejs/plasma-new-hope/types/types';
157
156
  import { InputHTMLAttributes as InputHTMLAttributes_3 } from 'react';
158
- import type { ItemOption } from '@salutejs/plasma-new-hope';
159
- import { ItemOption as ItemOption_2 } from '@salutejs/plasma-new-hope/styled-components';
160
157
  import { JSXElementConstructor } from 'react';
161
158
  import { KeyboardEvent as KeyboardEvent_2 } from 'react';
162
159
  import { LineSkeletonProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -177,7 +174,6 @@ import { ModalView } from '@salutejs/plasma-hope';
177
174
  import { monthLongName } from '@salutejs/plasma-core';
178
175
  import { monthShortName } from '@salutejs/plasma-core';
179
176
  import { MouseEvent as MouseEvent_2 } from 'react';
180
- import { MutableRefObject } from 'react';
181
177
  import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-components';
182
178
  import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
183
179
  import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -350,7 +346,7 @@ filled: PolymorphicClassName;
350
346
  fixed: PolymorphicClassName;
351
347
  };
352
348
  }> & {
353
- view: string;
349
+ view?: string | undefined;
354
350
  size?: string | undefined;
355
351
  singleActive?: boolean | undefined;
356
352
  defaultActiveEventKey?: number[] | undefined;
@@ -1226,15 +1222,232 @@ export { ColProps }
1226
1222
 
1227
1223
  export { ColSizeProps }
1228
1224
 
1229
- // Warning: (ae-forgotten-export) The symbol "CommonProps" needs to be exported by the entry point index.d.ts
1230
- //
1231
- // @public (undocumented)
1232
- export const Combobox: CommonProps;
1233
-
1234
- // Warning: (ae-forgotten-export) The symbol "CommonProps2" needs to be exported by the entry point index.d.ts
1235
- //
1236
1225
  // @public (undocumented)
1237
- export const Combobox2: <T extends ItemOption>(props: CommonProps2<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement | null;
1226
+ export const Combobox: React_2.ForwardRefExoticComponent<(Omit<PropsType< {
1227
+ view: {
1228
+ default: PolymorphicClassName;
1229
+ positive: PolymorphicClassName;
1230
+ warning: PolymorphicClassName;
1231
+ negative: PolymorphicClassName;
1232
+ };
1233
+ size: {
1234
+ l: PolymorphicClassName;
1235
+ m: PolymorphicClassName;
1236
+ s: PolymorphicClassName;
1237
+ xs: PolymorphicClassName;
1238
+ };
1239
+ labelPlacement: {
1240
+ inner: PolymorphicClassName;
1241
+ outer: PolymorphicClassName;
1242
+ };
1243
+ disabled: {
1244
+ true: PolymorphicClassName;
1245
+ };
1246
+ readOnly: {
1247
+ true: PolymorphicClassName;
1248
+ };
1249
+ }> & BasicProps & {
1250
+ readOnly?: boolean | undefined;
1251
+ disabled?: true | undefined;
1252
+ alwaysOpened?: false | undefined;
1253
+ } & {
1254
+ multiple?: false | undefined;
1255
+ value?: string | undefined;
1256
+ onChange?: ((value: string) => void) | undefined;
1257
+ isTargetAmount?: false | undefined;
1258
+ } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1259
+ view: {
1260
+ default: PolymorphicClassName;
1261
+ positive: PolymorphicClassName;
1262
+ warning: PolymorphicClassName;
1263
+ negative: PolymorphicClassName;
1264
+ };
1265
+ size: {
1266
+ l: PolymorphicClassName;
1267
+ m: PolymorphicClassName;
1268
+ s: PolymorphicClassName;
1269
+ xs: PolymorphicClassName;
1270
+ };
1271
+ labelPlacement: {
1272
+ inner: PolymorphicClassName;
1273
+ outer: PolymorphicClassName;
1274
+ };
1275
+ disabled: {
1276
+ true: PolymorphicClassName;
1277
+ };
1278
+ readOnly: {
1279
+ true: PolymorphicClassName;
1280
+ };
1281
+ }> & BasicProps & {
1282
+ readOnly?: boolean | undefined;
1283
+ disabled?: true | undefined;
1284
+ alwaysOpened?: false | undefined;
1285
+ } & {
1286
+ multiple: true;
1287
+ value?: string[] | undefined;
1288
+ onChange?: ((value: string[]) => void) | undefined;
1289
+ isTargetAmount?: boolean | undefined;
1290
+ } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1291
+ view: {
1292
+ default: PolymorphicClassName;
1293
+ positive: PolymorphicClassName;
1294
+ warning: PolymorphicClassName;
1295
+ negative: PolymorphicClassName;
1296
+ };
1297
+ size: {
1298
+ l: PolymorphicClassName;
1299
+ m: PolymorphicClassName;
1300
+ s: PolymorphicClassName;
1301
+ xs: PolymorphicClassName;
1302
+ };
1303
+ labelPlacement: {
1304
+ inner: PolymorphicClassName;
1305
+ outer: PolymorphicClassName;
1306
+ };
1307
+ disabled: {
1308
+ true: PolymorphicClassName;
1309
+ };
1310
+ readOnly: {
1311
+ true: PolymorphicClassName;
1312
+ };
1313
+ }> & BasicProps & {
1314
+ readOnly?: true | undefined;
1315
+ disabled?: boolean | undefined;
1316
+ alwaysOpened?: false | undefined;
1317
+ } & {
1318
+ multiple?: false | undefined;
1319
+ value?: string | undefined;
1320
+ onChange?: ((value: string) => void) | undefined;
1321
+ isTargetAmount?: false | undefined;
1322
+ } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1323
+ view: {
1324
+ default: PolymorphicClassName;
1325
+ positive: PolymorphicClassName;
1326
+ warning: PolymorphicClassName;
1327
+ negative: PolymorphicClassName;
1328
+ };
1329
+ size: {
1330
+ l: PolymorphicClassName;
1331
+ m: PolymorphicClassName;
1332
+ s: PolymorphicClassName;
1333
+ xs: PolymorphicClassName;
1334
+ };
1335
+ labelPlacement: {
1336
+ inner: PolymorphicClassName;
1337
+ outer: PolymorphicClassName;
1338
+ };
1339
+ disabled: {
1340
+ true: PolymorphicClassName;
1341
+ };
1342
+ readOnly: {
1343
+ true: PolymorphicClassName;
1344
+ };
1345
+ }> & BasicProps & {
1346
+ readOnly?: true | undefined;
1347
+ disabled?: boolean | undefined;
1348
+ alwaysOpened?: false | undefined;
1349
+ } & {
1350
+ multiple: true;
1351
+ value?: string[] | undefined;
1352
+ onChange?: ((value: string[]) => void) | undefined;
1353
+ isTargetAmount?: boolean | undefined;
1354
+ } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1355
+ view: {
1356
+ default: PolymorphicClassName;
1357
+ positive: PolymorphicClassName;
1358
+ warning: PolymorphicClassName;
1359
+ negative: PolymorphicClassName;
1360
+ };
1361
+ size: {
1362
+ l: PolymorphicClassName;
1363
+ m: PolymorphicClassName;
1364
+ s: PolymorphicClassName;
1365
+ xs: PolymorphicClassName;
1366
+ };
1367
+ labelPlacement: {
1368
+ inner: PolymorphicClassName;
1369
+ outer: PolymorphicClassName;
1370
+ };
1371
+ disabled: {
1372
+ true: PolymorphicClassName;
1373
+ };
1374
+ readOnly: {
1375
+ true: PolymorphicClassName;
1376
+ };
1377
+ }> & BasicProps & {
1378
+ readOnly?: false | undefined;
1379
+ disabled?: false | undefined;
1380
+ alwaysOpened?: true | undefined;
1381
+ } & {
1382
+ multiple?: false | undefined;
1383
+ value?: string | undefined;
1384
+ onChange?: ((value: string) => void) | undefined;
1385
+ isTargetAmount?: false | undefined;
1386
+ } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1387
+ view: {
1388
+ default: PolymorphicClassName;
1389
+ positive: PolymorphicClassName;
1390
+ warning: PolymorphicClassName;
1391
+ negative: PolymorphicClassName;
1392
+ };
1393
+ size: {
1394
+ l: PolymorphicClassName;
1395
+ m: PolymorphicClassName;
1396
+ s: PolymorphicClassName;
1397
+ xs: PolymorphicClassName;
1398
+ };
1399
+ labelPlacement: {
1400
+ inner: PolymorphicClassName;
1401
+ outer: PolymorphicClassName;
1402
+ };
1403
+ disabled: {
1404
+ true: PolymorphicClassName;
1405
+ };
1406
+ readOnly: {
1407
+ true: PolymorphicClassName;
1408
+ };
1409
+ }> & BasicProps & {
1410
+ readOnly?: false | undefined;
1411
+ disabled?: false | undefined;
1412
+ alwaysOpened?: true | undefined;
1413
+ } & {
1414
+ multiple: true;
1415
+ value?: string[] | undefined;
1416
+ onChange?: ((value: string[]) => void) | undefined;
1417
+ isTargetAmount?: boolean | undefined;
1418
+ } & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>, "ref"> | Omit<PropsType< {
1419
+ size: {
1420
+ xs: PolymorphicClassName;
1421
+ s: PolymorphicClassName;
1422
+ m: PolymorphicClassName;
1423
+ l: PolymorphicClassName;
1424
+ };
1425
+ view: {
1426
+ default: PolymorphicClassName;
1427
+ };
1428
+ }> & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & CustomComboboxProps & {
1429
+ valueType?: "single" | undefined;
1430
+ value?: ComboboxPrimitiveValue | undefined;
1431
+ onChangeValue?: ((value?: ComboboxPrimitiveValue | undefined) => void) | undefined;
1432
+ } & React_2.RefAttributes<HTMLInputElement> & {
1433
+ items?: undefined;
1434
+ }, "ref"> | Omit<PropsType< {
1435
+ size: {
1436
+ xs: PolymorphicClassName;
1437
+ s: PolymorphicClassName;
1438
+ m: PolymorphicClassName;
1439
+ l: PolymorphicClassName;
1440
+ };
1441
+ view: {
1442
+ default: PolymorphicClassName;
1443
+ };
1444
+ }> & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "target" | "size" | "checked" | "minLength" | "maxLength"> & CustomComboboxProps & {
1445
+ valueType: "multiple";
1446
+ value?: ComboboxPrimitiveValue[] | undefined;
1447
+ onChangeValue?: ((value?: ComboboxPrimitiveValue[] | undefined) => void) | undefined;
1448
+ } & React_2.RefAttributes<HTMLInputElement> & {
1449
+ items?: undefined;
1450
+ }, "ref">) & React_2.RefAttributes<HTMLInputElement>>;
1238
1451
 
1239
1452
  // @public (undocumented)
1240
1453
  export const ComboboxDivider: FunctionComponent<PropsType<Variants> & HTMLAttributes<HTMLDivElement> & {