@salutejs/plasma-b2c 1.413.0-canary.1470.11181201904.0 → 1.413.0-canary.1470.11192852883.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/plasma-b2c.api.md +13 -234
- package/components/Combobox/Combobox.d.ts +21 -27
- package/components/Combobox/Combobox.js +39 -3
- package/components/Combobox/index.d.ts +15 -234
- package/components/Combobox/index.js +21 -3
- package/css/cjs/components/Combobox/Combobox.js +27 -3
- package/css/cjs/components/Combobox/Combobox.js.map +1 -1
- package/css/cjs/components/Combobox/index.js +20 -1
- package/css/cjs/components/Combobox/index.js.map +1 -1
- package/css/cjs/index.js +1 -0
- package/css/cjs/index.js.map +1 -1
- package/css/es/components/Combobox/Combobox.js +28 -3
- package/css/es/components/Combobox/Combobox.js.map +1 -1
- package/css/es/components/Combobox/index.js +20 -2
- package/css/es/components/Combobox/index.js.map +1 -1
- package/css/es/index.js +1 -1
- package/es/components/Combobox/Combobox.js +40 -2
- package/es/components/Combobox/index.js +19 -2
- package/package.json +3 -3
- package/temp/plasma-b2c.api.md +13 -234
package/temp/plasma-b2c.api.md
CHANGED
@@ -92,7 +92,7 @@ import { ColProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
92
92
|
import { ColSizeProps } from '@salutejs/plasma-new-hope/styled-components';
|
93
93
|
import { ComboboxPrimitiveValue } from '@salutejs/plasma-new-hope/types/components/Combobox/ComboboxOld/Combobox.types';
|
94
94
|
import { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope/styled-components';
|
95
|
-
import { ComboboxProps as ComboboxProps_2 } from '@salutejs/plasma-new-hope
|
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,6 +140,7 @@ 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';
|
143
144
|
import { ForwardRefExoticComponent } from 'react';
|
144
145
|
import { FunctionComponent } from 'react';
|
145
146
|
import { gridBreakpoints } from '@salutejs/plasma-hope';
|
@@ -154,7 +155,8 @@ import { IndicatorProps } from '@salutejs/plasma-new-hope/styled-components';
|
|
154
155
|
import { InputHTMLAttributes } from '@salutejs/plasma-core';
|
155
156
|
import { InputHTMLAttributes as InputHTMLAttributes_2 } from '@salutejs/plasma-new-hope/types/types';
|
156
157
|
import { InputHTMLAttributes as InputHTMLAttributes_3 } from 'react';
|
157
|
-
import { ItemOption } from '@salutejs/plasma-new-hope
|
158
|
+
import type { ItemOption } from '@salutejs/plasma-new-hope';
|
159
|
+
import { ItemOption as ItemOption_2 } from '@salutejs/plasma-new-hope/styled-components';
|
158
160
|
import { JSXElementConstructor } from 'react';
|
159
161
|
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
160
162
|
import { LineSkeletonProps } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -175,6 +177,7 @@ import { ModalView } from '@salutejs/plasma-hope';
|
|
175
177
|
import { monthLongName } from '@salutejs/plasma-core';
|
176
178
|
import { monthShortName } from '@salutejs/plasma-core';
|
177
179
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
180
|
+
import { MutableRefObject } from 'react';
|
178
181
|
import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
179
182
|
import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
|
180
183
|
import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -1223,239 +1226,15 @@ export { ColProps }
|
|
1223
1226
|
|
1224
1227
|
export { ColSizeProps }
|
1225
1228
|
|
1229
|
+
// Warning: (ae-forgotten-export) The symbol "CommonProps" needs to be exported by the entry point index.d.ts
|
1230
|
+
//
|
1226
1231
|
// @public (undocumented)
|
1227
|
-
export const Combobox:
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
};
|
1234
|
-
view: {
|
1235
|
-
default: PolymorphicClassName;
|
1236
|
-
};
|
1237
|
-
}> & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value" | "type" | "target" | "checked" | "minLength" | "maxLength"> & CustomComboboxProps & {
|
1238
|
-
valueType?: "single" | undefined;
|
1239
|
-
value?: ComboboxPrimitiveValue | undefined;
|
1240
|
-
onChangeValue?: ((value?: ComboboxPrimitiveValue | undefined) => void) | undefined;
|
1241
|
-
} & React_2.RefAttributes<HTMLInputElement> & {
|
1242
|
-
items?: undefined;
|
1243
|
-
}, "ref"> | Omit<PropsType< {
|
1244
|
-
size: {
|
1245
|
-
xs: PolymorphicClassName;
|
1246
|
-
s: PolymorphicClassName;
|
1247
|
-
m: PolymorphicClassName;
|
1248
|
-
l: PolymorphicClassName;
|
1249
|
-
};
|
1250
|
-
view: {
|
1251
|
-
default: PolymorphicClassName;
|
1252
|
-
};
|
1253
|
-
}> & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value" | "type" | "target" | "checked" | "minLength" | "maxLength"> & CustomComboboxProps & {
|
1254
|
-
valueType: "multiple";
|
1255
|
-
value?: ComboboxPrimitiveValue[] | undefined;
|
1256
|
-
onChangeValue?: ((value?: ComboboxPrimitiveValue[] | undefined) => void) | undefined;
|
1257
|
-
} & React_2.RefAttributes<HTMLInputElement> & {
|
1258
|
-
items?: undefined;
|
1259
|
-
}, "ref"> | Omit<Omit<ComboboxProps_2<ItemOption>, "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & Pick<PropsType< {
|
1260
|
-
view: {
|
1261
|
-
default: PolymorphicClassName;
|
1262
|
-
positive: PolymorphicClassName;
|
1263
|
-
warning: PolymorphicClassName;
|
1264
|
-
negative: PolymorphicClassName;
|
1265
|
-
};
|
1266
|
-
size: {
|
1267
|
-
l: PolymorphicClassName;
|
1268
|
-
m: PolymorphicClassName;
|
1269
|
-
s: PolymorphicClassName;
|
1270
|
-
xs: PolymorphicClassName;
|
1271
|
-
};
|
1272
|
-
labelPlacement: {
|
1273
|
-
inner: PolymorphicClassName;
|
1274
|
-
outer: PolymorphicClassName;
|
1275
|
-
};
|
1276
|
-
disabled: {
|
1277
|
-
true: PolymorphicClassName;
|
1278
|
-
};
|
1279
|
-
readOnly: {
|
1280
|
-
true: PolymorphicClassName;
|
1281
|
-
};
|
1282
|
-
}> & (({
|
1283
|
-
items: ItemOption[];
|
1284
|
-
placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
|
1285
|
-
label?: string | undefined;
|
1286
|
-
placeholder?: string | undefined;
|
1287
|
-
helperText?: string | undefined;
|
1288
|
-
contentLeft?: React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | undefined;
|
1289
|
-
textBefore?: string | undefined;
|
1290
|
-
textAfter?: string | undefined;
|
1291
|
-
variant?: "normal" | "tight" | undefined;
|
1292
|
-
listOverflow?: Property.Overflow | undefined;
|
1293
|
-
listHeight?: Property.Height<string | number> | undefined;
|
1294
|
-
listWidth?: Property.Width<string | number> | undefined;
|
1295
|
-
portal?: React_2.MutableRefObject<HTMLElement | null> | undefined;
|
1296
|
-
renderItem?: ((item: ItemOption) => React_2.ReactNode) | undefined;
|
1297
|
-
filter?: ((label: string, textValue: string) => boolean) | undefined;
|
1298
|
-
closeAfterSelect?: boolean | undefined;
|
1299
|
-
size?: string | undefined;
|
1300
|
-
view?: string | undefined;
|
1301
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
1302
|
-
} & {
|
1303
|
-
readOnly?: boolean | undefined;
|
1304
|
-
disabled?: true | undefined;
|
1305
|
-
alwaysOpened?: false | undefined;
|
1306
|
-
} & {
|
1307
|
-
multiple?: false | undefined;
|
1308
|
-
value?: string | undefined;
|
1309
|
-
onChange?: ((value: string) => void) | undefined;
|
1310
|
-
isTargetAmount?: false | undefined;
|
1311
|
-
} & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>) | ({
|
1312
|
-
items: ItemOption[];
|
1313
|
-
placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
|
1314
|
-
label?: string | undefined;
|
1315
|
-
placeholder?: string | undefined;
|
1316
|
-
helperText?: string | undefined;
|
1317
|
-
contentLeft?: React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | undefined;
|
1318
|
-
textBefore?: string | undefined;
|
1319
|
-
textAfter?: string | undefined;
|
1320
|
-
variant?: "normal" | "tight" | undefined;
|
1321
|
-
listOverflow?: Property.Overflow | undefined;
|
1322
|
-
listHeight?: Property.Height<string | number> | undefined;
|
1323
|
-
listWidth?: Property.Width<string | number> | undefined;
|
1324
|
-
portal?: React_2.MutableRefObject<HTMLElement | null> | undefined;
|
1325
|
-
renderItem?: ((item: ItemOption) => React_2.ReactNode) | undefined;
|
1326
|
-
filter?: ((label: string, textValue: string) => boolean) | undefined;
|
1327
|
-
closeAfterSelect?: boolean | undefined;
|
1328
|
-
size?: string | undefined;
|
1329
|
-
view?: string | undefined;
|
1330
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
1331
|
-
} & {
|
1332
|
-
readOnly?: boolean | undefined;
|
1333
|
-
disabled?: true | undefined;
|
1334
|
-
alwaysOpened?: false | undefined;
|
1335
|
-
} & {
|
1336
|
-
multiple: true;
|
1337
|
-
value?: string[] | undefined;
|
1338
|
-
onChange?: ((value: string[]) => void) | undefined;
|
1339
|
-
isTargetAmount?: boolean | undefined;
|
1340
|
-
} & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>) | ({
|
1341
|
-
items: ItemOption[];
|
1342
|
-
placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
|
1343
|
-
label?: string | undefined;
|
1344
|
-
placeholder?: string | undefined;
|
1345
|
-
helperText?: string | undefined;
|
1346
|
-
contentLeft?: React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | undefined;
|
1347
|
-
textBefore?: string | undefined;
|
1348
|
-
textAfter?: string | undefined;
|
1349
|
-
variant?: "normal" | "tight" | undefined;
|
1350
|
-
listOverflow?: Property.Overflow | undefined;
|
1351
|
-
listHeight?: Property.Height<string | number> | undefined;
|
1352
|
-
listWidth?: Property.Width<string | number> | undefined;
|
1353
|
-
portal?: React_2.MutableRefObject<HTMLElement | null> | undefined;
|
1354
|
-
renderItem?: ((item: ItemOption) => React_2.ReactNode) | undefined;
|
1355
|
-
filter?: ((label: string, textValue: string) => boolean) | undefined;
|
1356
|
-
closeAfterSelect?: boolean | undefined;
|
1357
|
-
size?: string | undefined;
|
1358
|
-
view?: string | undefined;
|
1359
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
1360
|
-
} & {
|
1361
|
-
readOnly?: true | undefined;
|
1362
|
-
disabled?: boolean | undefined;
|
1363
|
-
alwaysOpened?: false | undefined;
|
1364
|
-
} & {
|
1365
|
-
multiple?: false | undefined;
|
1366
|
-
value?: string | undefined;
|
1367
|
-
onChange?: ((value: string) => void) | undefined;
|
1368
|
-
isTargetAmount?: false | undefined;
|
1369
|
-
} & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>) | ({
|
1370
|
-
items: ItemOption[];
|
1371
|
-
placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
|
1372
|
-
label?: string | undefined;
|
1373
|
-
placeholder?: string | undefined;
|
1374
|
-
helperText?: string | undefined;
|
1375
|
-
contentLeft?: React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | undefined;
|
1376
|
-
textBefore?: string | undefined;
|
1377
|
-
textAfter?: string | undefined;
|
1378
|
-
variant?: "normal" | "tight" | undefined;
|
1379
|
-
listOverflow?: Property.Overflow | undefined;
|
1380
|
-
listHeight?: Property.Height<string | number> | undefined;
|
1381
|
-
listWidth?: Property.Width<string | number> | undefined;
|
1382
|
-
portal?: React_2.MutableRefObject<HTMLElement | null> | undefined;
|
1383
|
-
renderItem?: ((item: ItemOption) => React_2.ReactNode) | undefined;
|
1384
|
-
filter?: ((label: string, textValue: string) => boolean) | undefined;
|
1385
|
-
closeAfterSelect?: boolean | undefined;
|
1386
|
-
size?: string | undefined;
|
1387
|
-
view?: string | undefined;
|
1388
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
1389
|
-
} & {
|
1390
|
-
readOnly?: true | undefined;
|
1391
|
-
disabled?: boolean | undefined;
|
1392
|
-
alwaysOpened?: false | undefined;
|
1393
|
-
} & {
|
1394
|
-
multiple: true;
|
1395
|
-
value?: string[] | undefined;
|
1396
|
-
onChange?: ((value: string[]) => void) | undefined;
|
1397
|
-
isTargetAmount?: boolean | undefined;
|
1398
|
-
} & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>) | ({
|
1399
|
-
items: ItemOption[];
|
1400
|
-
placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
|
1401
|
-
label?: string | undefined;
|
1402
|
-
placeholder?: string | undefined;
|
1403
|
-
helperText?: string | undefined;
|
1404
|
-
contentLeft?: React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | undefined;
|
1405
|
-
textBefore?: string | undefined;
|
1406
|
-
textAfter?: string | undefined;
|
1407
|
-
variant?: "normal" | "tight" | undefined;
|
1408
|
-
listOverflow?: Property.Overflow | undefined;
|
1409
|
-
listHeight?: Property.Height<string | number> | undefined;
|
1410
|
-
listWidth?: Property.Width<string | number> | undefined;
|
1411
|
-
portal?: React_2.MutableRefObject<HTMLElement | null> | undefined;
|
1412
|
-
renderItem?: ((item: ItemOption) => React_2.ReactNode) | undefined;
|
1413
|
-
filter?: ((label: string, textValue: string) => boolean) | undefined;
|
1414
|
-
closeAfterSelect?: boolean | undefined;
|
1415
|
-
size?: string | undefined;
|
1416
|
-
view?: string | undefined;
|
1417
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
1418
|
-
} & {
|
1419
|
-
readOnly?: false | undefined;
|
1420
|
-
disabled?: false | undefined;
|
1421
|
-
alwaysOpened?: true | undefined;
|
1422
|
-
} & {
|
1423
|
-
multiple?: false | undefined;
|
1424
|
-
value?: string | undefined;
|
1425
|
-
onChange?: ((value: string) => void) | undefined;
|
1426
|
-
isTargetAmount?: false | undefined;
|
1427
|
-
} & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>) | ({
|
1428
|
-
items: ItemOption[];
|
1429
|
-
placement?: ("top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end") | undefined;
|
1430
|
-
label?: string | undefined;
|
1431
|
-
placeholder?: string | undefined;
|
1432
|
-
helperText?: string | undefined;
|
1433
|
-
contentLeft?: React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | undefined;
|
1434
|
-
textBefore?: string | undefined;
|
1435
|
-
textAfter?: string | undefined;
|
1436
|
-
variant?: "normal" | "tight" | undefined;
|
1437
|
-
listOverflow?: Property.Overflow | undefined;
|
1438
|
-
listHeight?: Property.Height<string | number> | undefined;
|
1439
|
-
listWidth?: Property.Width<string | number> | undefined;
|
1440
|
-
portal?: React_2.MutableRefObject<HTMLElement | null> | undefined;
|
1441
|
-
renderItem?: ((item: ItemOption) => React_2.ReactNode) | undefined;
|
1442
|
-
filter?: ((label: string, textValue: string) => boolean) | undefined;
|
1443
|
-
closeAfterSelect?: boolean | undefined;
|
1444
|
-
size?: string | undefined;
|
1445
|
-
view?: string | undefined;
|
1446
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
1447
|
-
} & {
|
1448
|
-
readOnly?: false | undefined;
|
1449
|
-
disabled?: false | undefined;
|
1450
|
-
alwaysOpened?: true | undefined;
|
1451
|
-
} & {
|
1452
|
-
multiple: true;
|
1453
|
-
value?: string[] | undefined;
|
1454
|
-
onChange?: ((value: string[]) => void) | undefined;
|
1455
|
-
isTargetAmount?: boolean | undefined;
|
1456
|
-
} & Omit<React_2.ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & React_2.RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & {
|
1457
|
-
ref: React_2.ForwardedRef<HTMLInputElement>;
|
1458
|
-
}, "ref">) & React_2.RefAttributes<HTMLInputElement>>;
|
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
|
+
// @public (undocumented)
|
1237
|
+
export const Combobox2: <T extends ItemOption>(props: CommonProps2<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactNode;
|
1459
1238
|
|
1460
1239
|
// @public (undocumented)
|
1461
1240
|
export const ComboboxDivider: FunctionComponent<PropsType<Variants> & HTMLAttributes<HTMLDivElement> & {
|