@salutejs/plasma-b2c 1.413.0-canary.1470.11193231082.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> & {
@@ -20,7 +20,7 @@ export declare const Accordion: import("react").FunctionComponent<import("@salut
20
20
  fixed: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
21
21
  };
22
22
  }> & {
23
- view: string;
23
+ view?: string | undefined;
24
24
  size?: string | undefined;
25
25
  singleActive?: boolean | undefined;
26
26
  defaultActiveEventKey?: number[] | undefined;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const Combobox: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
2
+ export declare const Combobox: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
3
3
  view: {
4
4
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
5
5
  positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
@@ -22,27 +22,7 @@ declare const Combobox: import("react").FunctionComponent<import("@salutejs/plas
22
22
  readOnly: {
23
23
  true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
24
24
  };
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?: ((label: string, textValue: string) => boolean) | undefined;
41
- closeAfterSelect?: boolean | undefined;
42
- size?: string | undefined;
43
- view?: string | undefined;
44
- labelPlacement?: "outer" | "inner" | undefined;
45
- } & {
25
+ }> & ((import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
46
26
  readOnly?: boolean | undefined;
47
27
  disabled?: true | undefined;
48
28
  alwaysOpened?: false | undefined;
@@ -51,27 +31,7 @@ declare const Combobox: import("react").FunctionComponent<import("@salutejs/plas
51
31
  value?: string | undefined;
52
32
  onChange?: ((value: string) => void) | undefined;
53
33
  isTargetAmount?: false | undefined;
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?: ((label: string, textValue: string) => boolean) | undefined;
70
- closeAfterSelect?: boolean | undefined;
71
- size?: string | undefined;
72
- view?: string | undefined;
73
- labelPlacement?: "outer" | "inner" | undefined;
74
- } & {
34
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
75
35
  readOnly?: boolean | undefined;
76
36
  disabled?: true | undefined;
77
37
  alwaysOpened?: false | undefined;
@@ -80,27 +40,7 @@ declare const Combobox: import("react").FunctionComponent<import("@salutejs/plas
80
40
  value?: string[] | undefined;
81
41
  onChange?: ((value: string[]) => void) | undefined;
82
42
  isTargetAmount?: boolean | undefined;
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?: ((label: string, textValue: string) => boolean) | undefined;
99
- closeAfterSelect?: boolean | undefined;
100
- size?: string | undefined;
101
- view?: string | undefined;
102
- labelPlacement?: "outer" | "inner" | undefined;
103
- } & {
43
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
104
44
  readOnly?: true | undefined;
105
45
  disabled?: boolean | undefined;
106
46
  alwaysOpened?: false | undefined;
@@ -109,27 +49,7 @@ declare const Combobox: import("react").FunctionComponent<import("@salutejs/plas
109
49
  value?: string | undefined;
110
50
  onChange?: ((value: string) => void) | undefined;
111
51
  isTargetAmount?: false | undefined;
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?: ((label: string, textValue: string) => boolean) | undefined;
128
- closeAfterSelect?: boolean | undefined;
129
- size?: string | undefined;
130
- view?: string | undefined;
131
- labelPlacement?: "outer" | "inner" | undefined;
132
- } & {
52
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
133
53
  readOnly?: true | undefined;
134
54
  disabled?: boolean | undefined;
135
55
  alwaysOpened?: false | undefined;
@@ -138,27 +58,7 @@ declare const Combobox: import("react").FunctionComponent<import("@salutejs/plas
138
58
  value?: string[] | undefined;
139
59
  onChange?: ((value: string[]) => void) | undefined;
140
60
  isTargetAmount?: boolean | undefined;
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?: ((label: string, textValue: string) => boolean) | undefined;
157
- closeAfterSelect?: boolean | undefined;
158
- size?: string | undefined;
159
- view?: string | undefined;
160
- labelPlacement?: "outer" | "inner" | undefined;
161
- } & {
61
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
162
62
  readOnly?: false | undefined;
163
63
  disabled?: false | undefined;
164
64
  alwaysOpened?: true | undefined;
@@ -167,27 +67,7 @@ declare const Combobox: import("react").FunctionComponent<import("@salutejs/plas
167
67
  value?: string | undefined;
168
68
  onChange?: ((value: string) => void) | undefined;
169
69
  isTargetAmount?: false | undefined;
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?: ((label: string, textValue: string) => boolean) | undefined;
186
- closeAfterSelect?: boolean | undefined;
187
- size?: string | undefined;
188
- view?: string | undefined;
189
- labelPlacement?: "outer" | "inner" | undefined;
190
- } & {
70
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
191
71
  readOnly?: false | undefined;
192
72
  disabled?: false | undefined;
193
73
  alwaysOpened?: true | undefined;
@@ -197,4 +77,3 @@ declare const Combobox: import("react").FunctionComponent<import("@salutejs/plas
197
77
  onChange?: ((value: string[]) => void) | undefined;
198
78
  isTargetAmount?: boolean | undefined;
199
79
  } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
200
- export { Combobox };
@@ -6,42 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.Combobox = void 0;
7
7
  var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
8
8
  var _Combobox = /*#__PURE__*/require("./Combobox.config");
9
- // import React from 'react';
10
-
11
9
  var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.comboboxNewConfig, _Combobox.config);
12
- var Combobox = exports.Combobox = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
13
-
14
- // type PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';
15
- //
16
- // type ComboboxType = <T extends ItemOption>(
17
- // props: Omit<ComboboxProps<T>, PropsFromConfig> &
18
- // Pick<ComponentProps<typeof ComboboxComponent>, PropsFromConfig> & { ref?: ForwardedRef<HTMLInputElement> },
19
- // ) => ReactElement;
20
- //
21
- // const Combobox = ComboboxComponent as ComboboxType;
22
-
23
- // const items = [
24
- // {
25
- // value: 'north_america',
26
- // label: 'Северная Америка',
27
- // name: 'dima',
28
- // },
29
- // {
30
- // value: 'north_america',
31
- // label: 'Северная Америка',
32
- // name: 'dima',
33
- // },
34
- // ];
35
- //
36
- // const Func = () => {
37
- // return (
38
- // <Combobox
39
- // items={items}
40
- // renderItem={(item) => {
41
- // console.log(item);
42
- //
43
- // return <div>123</div>;
44
- // }}
45
- // />
46
- // );
47
- // };
10
+ var Combobox = exports.Combobox = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
@@ -9,11 +9,11 @@ export declare const Combobox: import("react").FunctionComponent<import("@salute
9
9
  view: {
10
10
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
11
11
  };
12
- }> & ((Omit<import("@salutejs/plasma-core").InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value" | "type" | "target" | "checked" | "minLength" | "maxLength"> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").CustomComboboxProps & {
12
+ }> & ((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 & {
13
13
  valueType?: "single" | undefined;
14
14
  value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue | undefined;
15
15
  onChangeValue?: ((value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue | undefined) => void) | undefined;
16
- } & import("react").RefAttributes<HTMLInputElement>) | (Omit<import("@salutejs/plasma-core").InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value" | "type" | "target" | "checked" | "minLength" | "maxLength"> & import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").CustomComboboxProps & {
16
+ } & import("react").RefAttributes<HTMLInputElement>) | (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 & {
17
17
  valueType: "multiple";
18
18
  value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue[] | undefined;
19
19
  onChangeValue?: ((value?: import("@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types").ComboboxPrimitiveValue[] | undefined) => void) | undefined;