@salutejs/sdds-finportal 0.154.1-canary.1527.11616679910.0 → 0.155.0-canary.1511.11616350336.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -136,6 +136,8 @@ import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-comp
136
136
  import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
137
137
  import { NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
138
138
  import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
139
+ import { numberInputClasses } from '@salutejs/plasma-new-hope/styled-components';
140
+ import { numberInputTokens } from '@salutejs/plasma-new-hope/styled-components';
139
141
  import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
140
142
  import { Overlay } from '@salutejs/plasma-new-hope/styled-components';
141
143
  import { OverlayProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -194,6 +196,7 @@ import { StepItemProps } from '@salutejs/plasma-new-hope/styled-components';
194
196
  import { StepsProps } from '@salutejs/plasma-new-hope/types/components/Steps/Steps.types';
195
197
  import { StyledComponent } from 'styled-components';
196
198
  import { SwitchProps as SwitchProps_2 } from '@salutejs/plasma-new-hope/styled-components';
199
+ import { SyntheticEvent } from 'react';
197
200
  import { TabItemRefs } from '@salutejs/plasma-new-hope/styled-components';
198
201
  import { TabsContext } from '@salutejs/plasma-new-hope/styled-components';
199
202
  import { TabsControllerProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -1068,83 +1071,6 @@ true: PolymorphicClassName;
1068
1071
  isTargetAmount?: false | undefined;
1069
1072
  targetAmount?: undefined;
1070
1073
  renderValue?: undefined;
1071
- } & {
1072
- requiredPlacement?: "right" | "left" | undefined;
1073
- } & {
1074
- required: true;
1075
- optional?: false | undefined;
1076
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1077
- items: ItemOption[];
1078
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1079
- label?: string | undefined;
1080
- placeholder?: string | undefined;
1081
- helperText?: string | undefined;
1082
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1083
- textBefore?: string | undefined;
1084
- textAfter?: string | undefined;
1085
- variant?: "normal" | "tight" | undefined;
1086
- listOverflow?: Property.Overflow | undefined;
1087
- listHeight?: Property.Height<string | number> | undefined;
1088
- listWidth?: Property.Width<string | number> | undefined;
1089
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1090
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1091
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1092
- closeAfterSelect?: boolean | undefined;
1093
- size?: string | undefined;
1094
- view?: string | undefined;
1095
- labelPlacement?: "outer" | "inner" | undefined;
1096
- } & {
1097
- readOnly?: boolean | undefined;
1098
- disabled?: true | undefined;
1099
- alwaysOpened?: false | undefined;
1100
- } & {
1101
- multiple?: false | undefined;
1102
- value?: string | undefined;
1103
- onChange?: ((value: string) => void) | undefined;
1104
- isTargetAmount?: false | undefined;
1105
- targetAmount?: undefined;
1106
- renderValue?: undefined;
1107
- } & {
1108
- requiredPlacement?: "right" | "left" | undefined;
1109
- } & {
1110
- optional?: true | undefined;
1111
- required?: false | undefined;
1112
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1113
- items: ItemOption[];
1114
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1115
- label?: string | undefined;
1116
- placeholder?: string | undefined;
1117
- helperText?: string | undefined;
1118
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1119
- textBefore?: string | undefined;
1120
- textAfter?: string | undefined;
1121
- variant?: "normal" | "tight" | undefined;
1122
- listOverflow?: Property.Overflow | undefined;
1123
- listHeight?: Property.Height<string | number> | undefined;
1124
- listWidth?: Property.Width<string | number> | undefined;
1125
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1126
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1127
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1128
- closeAfterSelect?: boolean | undefined;
1129
- size?: string | undefined;
1130
- view?: string | undefined;
1131
- labelPlacement?: "outer" | "inner" | undefined;
1132
- } & {
1133
- readOnly?: boolean | undefined;
1134
- disabled?: true | undefined;
1135
- alwaysOpened?: false | undefined;
1136
- } & {
1137
- multiple: true;
1138
- value?: string[] | undefined;
1139
- onChange?: ((value: string[]) => void) | undefined;
1140
- isTargetAmount?: true | undefined;
1141
- targetAmount?: number | undefined;
1142
- renderValue?: ((item: ItemOption) => string) | undefined;
1143
- } & {
1144
- requiredPlacement?: "right" | "left" | undefined;
1145
- } & {
1146
- required: true;
1147
- optional?: false | undefined;
1148
1074
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1149
1075
  items: ItemOption[];
1150
1076
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1176,11 +1102,6 @@ true: PolymorphicClassName;
1176
1102
  isTargetAmount?: true | undefined;
1177
1103
  targetAmount?: number | undefined;
1178
1104
  renderValue?: ((item: ItemOption) => string) | undefined;
1179
- } & {
1180
- requiredPlacement?: "right" | "left" | undefined;
1181
- } & {
1182
- optional?: true | undefined;
1183
- required?: false | undefined;
1184
1105
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1185
1106
  items: ItemOption[];
1186
1107
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1212,47 +1133,6 @@ true: PolymorphicClassName;
1212
1133
  isTargetAmount?: false | undefined;
1213
1134
  targetAmount?: undefined;
1214
1135
  renderValue?: undefined;
1215
- } & {
1216
- requiredPlacement?: "right" | "left" | undefined;
1217
- } & {
1218
- required: true;
1219
- optional?: false | undefined;
1220
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1221
- items: ItemOption[];
1222
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1223
- label?: string | undefined;
1224
- placeholder?: string | undefined;
1225
- helperText?: string | undefined;
1226
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1227
- textBefore?: string | undefined;
1228
- textAfter?: string | undefined;
1229
- variant?: "normal" | "tight" | undefined;
1230
- listOverflow?: Property.Overflow | undefined;
1231
- listHeight?: Property.Height<string | number> | undefined;
1232
- listWidth?: Property.Width<string | number> | undefined;
1233
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1234
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1235
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1236
- closeAfterSelect?: boolean | undefined;
1237
- size?: string | undefined;
1238
- view?: string | undefined;
1239
- labelPlacement?: "outer" | "inner" | undefined;
1240
- } & {
1241
- readOnly?: true | undefined;
1242
- disabled?: boolean | undefined;
1243
- alwaysOpened?: false | undefined;
1244
- } & {
1245
- multiple?: false | undefined;
1246
- value?: string | undefined;
1247
- onChange?: ((value: string) => void) | undefined;
1248
- isTargetAmount?: false | undefined;
1249
- targetAmount?: undefined;
1250
- renderValue?: undefined;
1251
- } & {
1252
- requiredPlacement?: "right" | "left" | undefined;
1253
- } & {
1254
- optional?: true | undefined;
1255
- required?: false | undefined;
1256
1136
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1257
1137
  items: ItemOption[];
1258
1138
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1284,47 +1164,6 @@ true: PolymorphicClassName;
1284
1164
  isTargetAmount?: true | undefined;
1285
1165
  targetAmount?: number | undefined;
1286
1166
  renderValue?: ((item: ItemOption) => string) | undefined;
1287
- } & {
1288
- requiredPlacement?: "right" | "left" | undefined;
1289
- } & {
1290
- required: true;
1291
- optional?: false | undefined;
1292
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1293
- items: ItemOption[];
1294
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1295
- label?: string | undefined;
1296
- placeholder?: string | undefined;
1297
- helperText?: string | undefined;
1298
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1299
- textBefore?: string | undefined;
1300
- textAfter?: string | undefined;
1301
- variant?: "normal" | "tight" | undefined;
1302
- listOverflow?: Property.Overflow | undefined;
1303
- listHeight?: Property.Height<string | number> | undefined;
1304
- listWidth?: Property.Width<string | number> | undefined;
1305
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1306
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1307
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1308
- closeAfterSelect?: boolean | undefined;
1309
- size?: string | undefined;
1310
- view?: string | undefined;
1311
- labelPlacement?: "outer" | "inner" | undefined;
1312
- } & {
1313
- readOnly?: true | undefined;
1314
- disabled?: boolean | undefined;
1315
- alwaysOpened?: false | undefined;
1316
- } & {
1317
- multiple: true;
1318
- value?: string[] | undefined;
1319
- onChange?: ((value: string[]) => void) | undefined;
1320
- isTargetAmount?: true | undefined;
1321
- targetAmount?: number | undefined;
1322
- renderValue?: ((item: ItemOption) => string) | undefined;
1323
- } & {
1324
- requiredPlacement?: "right" | "left" | undefined;
1325
- } & {
1326
- optional?: true | undefined;
1327
- required?: false | undefined;
1328
1167
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1329
1168
  items: ItemOption[];
1330
1169
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1356,47 +1195,6 @@ true: PolymorphicClassName;
1356
1195
  isTargetAmount?: false | undefined;
1357
1196
  targetAmount?: undefined;
1358
1197
  renderValue?: undefined;
1359
- } & {
1360
- requiredPlacement?: "right" | "left" | undefined;
1361
- } & {
1362
- required: true;
1363
- optional?: false | undefined;
1364
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1365
- items: ItemOption[];
1366
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1367
- label?: string | undefined;
1368
- placeholder?: string | undefined;
1369
- helperText?: string | undefined;
1370
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1371
- textBefore?: string | undefined;
1372
- textAfter?: string | undefined;
1373
- variant?: "normal" | "tight" | undefined;
1374
- listOverflow?: Property.Overflow | undefined;
1375
- listHeight?: Property.Height<string | number> | undefined;
1376
- listWidth?: Property.Width<string | number> | undefined;
1377
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1378
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1379
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1380
- closeAfterSelect?: boolean | undefined;
1381
- size?: string | undefined;
1382
- view?: string | undefined;
1383
- labelPlacement?: "outer" | "inner" | undefined;
1384
- } & {
1385
- readOnly?: false | undefined;
1386
- disabled?: false | undefined;
1387
- alwaysOpened?: true | undefined;
1388
- } & {
1389
- multiple?: false | undefined;
1390
- value?: string | undefined;
1391
- onChange?: ((value: string) => void) | undefined;
1392
- isTargetAmount?: false | undefined;
1393
- targetAmount?: undefined;
1394
- renderValue?: undefined;
1395
- } & {
1396
- requiredPlacement?: "right" | "left" | undefined;
1397
- } & {
1398
- optional?: true | undefined;
1399
- required?: false | undefined;
1400
1198
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1401
1199
  items: ItemOption[];
1402
1200
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1428,47 +1226,6 @@ true: PolymorphicClassName;
1428
1226
  isTargetAmount?: true | undefined;
1429
1227
  targetAmount?: number | undefined;
1430
1228
  renderValue?: ((item: ItemOption) => string) | undefined;
1431
- } & {
1432
- requiredPlacement?: "right" | "left" | undefined;
1433
- } & {
1434
- required: true;
1435
- optional?: false | undefined;
1436
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1437
- items: ItemOption[];
1438
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1439
- label?: string | undefined;
1440
- placeholder?: string | undefined;
1441
- helperText?: string | undefined;
1442
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1443
- textBefore?: string | undefined;
1444
- textAfter?: string | undefined;
1445
- variant?: "normal" | "tight" | undefined;
1446
- listOverflow?: Property.Overflow | undefined;
1447
- listHeight?: Property.Height<string | number> | undefined;
1448
- listWidth?: Property.Width<string | number> | undefined;
1449
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1450
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1451
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1452
- closeAfterSelect?: boolean | undefined;
1453
- size?: string | undefined;
1454
- view?: string | undefined;
1455
- labelPlacement?: "outer" | "inner" | undefined;
1456
- } & {
1457
- readOnly?: false | undefined;
1458
- disabled?: false | undefined;
1459
- alwaysOpened?: true | undefined;
1460
- } & {
1461
- multiple: true;
1462
- value?: string[] | undefined;
1463
- onChange?: ((value: string[]) => void) | undefined;
1464
- isTargetAmount?: true | undefined;
1465
- targetAmount?: number | undefined;
1466
- renderValue?: ((item: ItemOption) => string) | undefined;
1467
- } & {
1468
- requiredPlacement?: "right" | "left" | undefined;
1469
- } & {
1470
- optional?: true | undefined;
1471
- required?: false | undefined;
1472
1229
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & {
1473
1230
  ref?: ForwardedRef<HTMLInputElement> | undefined;
1474
1231
  }) => ReactElement | null;
@@ -3158,6 +2915,92 @@ export const NotificationsProvider: React_2.FC<{
3158
2915
  placement?: NotificationPlacement;
3159
2916
  }>;
3160
2917
 
2918
+ // @public (undocumented)
2919
+ export const NumberInput: FunctionComponent<PropsType< {
2920
+ view: {
2921
+ default: PolymorphicClassName;
2922
+ secondary: PolymorphicClassName;
2923
+ accent: PolymorphicClassName;
2924
+ clear: PolymorphicClassName;
2925
+ };
2926
+ size: {
2927
+ l: PolymorphicClassName;
2928
+ m: PolymorphicClassName;
2929
+ s: PolymorphicClassName;
2930
+ xs: PolymorphicClassName;
2931
+ };
2932
+ shape: {
2933
+ cornered: PolymorphicClassName;
2934
+ pilled: PolymorphicClassName;
2935
+ };
2936
+ inputBackgroundType: {
2937
+ fill: PolymorphicClassName;
2938
+ clear: PolymorphicClassName;
2939
+ };
2940
+ segmentation: {
2941
+ default: PolymorphicClassName;
2942
+ segmented: PolymorphicClassName;
2943
+ solid: PolymorphicClassName;
2944
+ };
2945
+ disabled: {
2946
+ true: PolymorphicClassName;
2947
+ };
2948
+ }> & (({
2949
+ value?: number | undefined;
2950
+ min?: number | undefined;
2951
+ max?: number | undefined;
2952
+ step?: number | undefined;
2953
+ isLoading?: boolean | undefined;
2954
+ loader?: ReactNode;
2955
+ size?: string | undefined;
2956
+ view?: string | undefined;
2957
+ clear?: boolean | undefined;
2958
+ shape?: string | undefined;
2959
+ disabled?: boolean | undefined;
2960
+ textBefore?: string | undefined;
2961
+ textAfter?: string | undefined;
2962
+ customIncrementButton?: ReactNode;
2963
+ incrementIcon?: ReactNode;
2964
+ customDecrementButton?: ReactNode;
2965
+ decrementIcon?: ReactNode;
2966
+ isManualInput?: boolean | undefined;
2967
+ onChange?: ((event: SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
2968
+ onIncrement?: ((value: number) => void) | undefined;
2969
+ onDecrement?: ((value: number) => void) | undefined;
2970
+ } & {
2971
+ segmentation?: "clear" | undefined;
2972
+ inputBackgroundType?: undefined;
2973
+ } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>) | ({
2974
+ value?: number | undefined;
2975
+ min?: number | undefined;
2976
+ max?: number | undefined;
2977
+ step?: number | undefined;
2978
+ isLoading?: boolean | undefined;
2979
+ loader?: ReactNode;
2980
+ size?: string | undefined;
2981
+ view?: string | undefined;
2982
+ clear?: boolean | undefined;
2983
+ shape?: string | undefined;
2984
+ disabled?: boolean | undefined;
2985
+ textBefore?: string | undefined;
2986
+ textAfter?: string | undefined;
2987
+ customIncrementButton?: ReactNode;
2988
+ incrementIcon?: ReactNode;
2989
+ customDecrementButton?: ReactNode;
2990
+ decrementIcon?: ReactNode;
2991
+ isManualInput?: boolean | undefined;
2992
+ onChange?: ((event: SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
2993
+ onIncrement?: ((value: number) => void) | undefined;
2994
+ onDecrement?: ((value: number) => void) | undefined;
2995
+ } & {
2996
+ segmentation?: string | undefined;
2997
+ inputBackgroundType?: string | undefined;
2998
+ } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>))>;
2999
+
3000
+ export { numberInputClasses }
3001
+
3002
+ export { numberInputTokens }
3003
+
3161
3004
  export { Overlay }
3162
3005
 
3163
3006
  export { OverlayProps }