@salutejs/sdds-dfa 0.160.1-canary.1527.11616679910.0 → 0.161.0-canary.1511.11616350336.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -128,6 +128,8 @@ import { modalClasses } from '@salutejs/plasma-new-hope/styled-components';
128
128
  import { ModalProps } from '@salutejs/plasma-new-hope/styled-components';
129
129
  import { MouseEvent as MouseEvent_2 } from 'react';
130
130
  import { MutableRefObject } from 'react';
131
+ import { numberInputClasses } from '@salutejs/plasma-new-hope/styled-components';
132
+ import { numberInputTokens } from '@salutejs/plasma-new-hope/styled-components';
131
133
  import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
132
134
  import { Overlay } from '@salutejs/plasma-new-hope/styled-components';
133
135
  import { OverlayProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -183,6 +185,7 @@ import { StepItemProps } from '@salutejs/plasma-new-hope/styled-components';
183
185
  import { StepsProps } from '@salutejs/plasma-new-hope/types/components/Steps/Steps.types';
184
186
  import { StyledComponent } from 'styled-components';
185
187
  import { SwitchProps as SwitchProps_2 } from '@salutejs/plasma-new-hope/styled-components';
188
+ import { SyntheticEvent } from 'react';
186
189
  import { TabItemRefs } from '@salutejs/plasma-new-hope/styled-components';
187
190
  import { TabsContext } from '@salutejs/plasma-new-hope/styled-components';
188
191
  import { TabsControllerProps } from '@salutejs/plasma-new-hope/styled-components';
@@ -1017,83 +1020,6 @@ true: PolymorphicClassName;
1017
1020
  isTargetAmount?: false | undefined;
1018
1021
  targetAmount?: undefined;
1019
1022
  renderValue?: undefined;
1020
- } & {
1021
- requiredPlacement?: "right" | "left" | undefined;
1022
- } & {
1023
- required: true;
1024
- optional?: false | undefined;
1025
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1026
- items: ItemOption[];
1027
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1028
- label?: string | undefined;
1029
- placeholder?: string | undefined;
1030
- helperText?: string | undefined;
1031
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1032
- textBefore?: string | undefined;
1033
- textAfter?: string | undefined;
1034
- variant?: "normal" | "tight" | undefined;
1035
- listOverflow?: Property.Overflow | undefined;
1036
- listHeight?: Property.Height<string | number> | undefined;
1037
- listWidth?: Property.Width<string | number> | undefined;
1038
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1039
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1040
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1041
- closeAfterSelect?: boolean | undefined;
1042
- size?: string | undefined;
1043
- view?: string | undefined;
1044
- labelPlacement?: "outer" | "inner" | undefined;
1045
- } & {
1046
- readOnly?: boolean | undefined;
1047
- disabled?: true | undefined;
1048
- alwaysOpened?: false | undefined;
1049
- } & {
1050
- multiple?: false | undefined;
1051
- value?: string | undefined;
1052
- onChange?: ((value: string) => void) | undefined;
1053
- isTargetAmount?: false | undefined;
1054
- targetAmount?: undefined;
1055
- renderValue?: undefined;
1056
- } & {
1057
- requiredPlacement?: "right" | "left" | undefined;
1058
- } & {
1059
- optional?: true | undefined;
1060
- required?: false | undefined;
1061
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1062
- items: ItemOption[];
1063
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1064
- label?: string | undefined;
1065
- placeholder?: string | undefined;
1066
- helperText?: string | undefined;
1067
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1068
- textBefore?: string | undefined;
1069
- textAfter?: string | undefined;
1070
- variant?: "normal" | "tight" | undefined;
1071
- listOverflow?: Property.Overflow | undefined;
1072
- listHeight?: Property.Height<string | number> | undefined;
1073
- listWidth?: Property.Width<string | number> | undefined;
1074
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1075
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1076
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1077
- closeAfterSelect?: boolean | undefined;
1078
- size?: string | undefined;
1079
- view?: string | undefined;
1080
- labelPlacement?: "outer" | "inner" | undefined;
1081
- } & {
1082
- readOnly?: boolean | undefined;
1083
- disabled?: true | undefined;
1084
- alwaysOpened?: false | undefined;
1085
- } & {
1086
- multiple: true;
1087
- value?: string[] | undefined;
1088
- onChange?: ((value: string[]) => void) | undefined;
1089
- isTargetAmount?: true | undefined;
1090
- targetAmount?: number | undefined;
1091
- renderValue?: ((item: ItemOption) => string) | undefined;
1092
- } & {
1093
- requiredPlacement?: "right" | "left" | undefined;
1094
- } & {
1095
- required: true;
1096
- optional?: false | undefined;
1097
1023
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1098
1024
  items: ItemOption[];
1099
1025
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1125,11 +1051,6 @@ true: PolymorphicClassName;
1125
1051
  isTargetAmount?: true | undefined;
1126
1052
  targetAmount?: number | undefined;
1127
1053
  renderValue?: ((item: ItemOption) => string) | undefined;
1128
- } & {
1129
- requiredPlacement?: "right" | "left" | undefined;
1130
- } & {
1131
- optional?: true | undefined;
1132
- required?: false | undefined;
1133
1054
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1134
1055
  items: ItemOption[];
1135
1056
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1161,47 +1082,6 @@ true: PolymorphicClassName;
1161
1082
  isTargetAmount?: false | undefined;
1162
1083
  targetAmount?: undefined;
1163
1084
  renderValue?: undefined;
1164
- } & {
1165
- requiredPlacement?: "right" | "left" | undefined;
1166
- } & {
1167
- required: true;
1168
- optional?: false | undefined;
1169
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1170
- items: ItemOption[];
1171
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1172
- label?: string | undefined;
1173
- placeholder?: string | undefined;
1174
- helperText?: string | undefined;
1175
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1176
- textBefore?: string | undefined;
1177
- textAfter?: string | undefined;
1178
- variant?: "normal" | "tight" | undefined;
1179
- listOverflow?: Property.Overflow | undefined;
1180
- listHeight?: Property.Height<string | number> | undefined;
1181
- listWidth?: Property.Width<string | number> | undefined;
1182
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1183
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1184
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1185
- closeAfterSelect?: boolean | undefined;
1186
- size?: string | undefined;
1187
- view?: string | undefined;
1188
- labelPlacement?: "outer" | "inner" | undefined;
1189
- } & {
1190
- readOnly?: true | undefined;
1191
- disabled?: boolean | undefined;
1192
- alwaysOpened?: false | undefined;
1193
- } & {
1194
- multiple?: false | undefined;
1195
- value?: string | undefined;
1196
- onChange?: ((value: string) => void) | undefined;
1197
- isTargetAmount?: false | undefined;
1198
- targetAmount?: undefined;
1199
- renderValue?: undefined;
1200
- } & {
1201
- requiredPlacement?: "right" | "left" | undefined;
1202
- } & {
1203
- optional?: true | undefined;
1204
- required?: false | undefined;
1205
1085
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1206
1086
  items: ItemOption[];
1207
1087
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1233,47 +1113,6 @@ true: PolymorphicClassName;
1233
1113
  isTargetAmount?: true | undefined;
1234
1114
  targetAmount?: number | undefined;
1235
1115
  renderValue?: ((item: ItemOption) => string) | undefined;
1236
- } & {
1237
- requiredPlacement?: "right" | "left" | undefined;
1238
- } & {
1239
- required: true;
1240
- optional?: false | undefined;
1241
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1242
- items: ItemOption[];
1243
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1244
- label?: string | undefined;
1245
- placeholder?: string | undefined;
1246
- helperText?: string | undefined;
1247
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1248
- textBefore?: string | undefined;
1249
- textAfter?: string | undefined;
1250
- variant?: "normal" | "tight" | undefined;
1251
- listOverflow?: Property.Overflow | undefined;
1252
- listHeight?: Property.Height<string | number> | undefined;
1253
- listWidth?: Property.Width<string | number> | undefined;
1254
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1255
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1256
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1257
- closeAfterSelect?: boolean | undefined;
1258
- size?: string | undefined;
1259
- view?: string | undefined;
1260
- labelPlacement?: "outer" | "inner" | undefined;
1261
- } & {
1262
- readOnly?: true | undefined;
1263
- disabled?: boolean | undefined;
1264
- alwaysOpened?: false | undefined;
1265
- } & {
1266
- multiple: true;
1267
- value?: string[] | undefined;
1268
- onChange?: ((value: string[]) => void) | undefined;
1269
- isTargetAmount?: true | undefined;
1270
- targetAmount?: number | undefined;
1271
- renderValue?: ((item: ItemOption) => string) | undefined;
1272
- } & {
1273
- requiredPlacement?: "right" | "left" | undefined;
1274
- } & {
1275
- optional?: true | undefined;
1276
- required?: false | undefined;
1277
1116
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1278
1117
  items: ItemOption[];
1279
1118
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1305,47 +1144,6 @@ true: PolymorphicClassName;
1305
1144
  isTargetAmount?: false | undefined;
1306
1145
  targetAmount?: undefined;
1307
1146
  renderValue?: undefined;
1308
- } & {
1309
- requiredPlacement?: "right" | "left" | undefined;
1310
- } & {
1311
- required: true;
1312
- optional?: false | undefined;
1313
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1314
- items: ItemOption[];
1315
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1316
- label?: string | undefined;
1317
- placeholder?: string | undefined;
1318
- helperText?: string | undefined;
1319
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1320
- textBefore?: string | undefined;
1321
- textAfter?: string | undefined;
1322
- variant?: "normal" | "tight" | undefined;
1323
- listOverflow?: Property.Overflow | undefined;
1324
- listHeight?: Property.Height<string | number> | undefined;
1325
- listWidth?: Property.Width<string | number> | undefined;
1326
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1327
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1328
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1329
- closeAfterSelect?: boolean | undefined;
1330
- size?: string | undefined;
1331
- view?: string | undefined;
1332
- labelPlacement?: "outer" | "inner" | undefined;
1333
- } & {
1334
- readOnly?: false | undefined;
1335
- disabled?: false | undefined;
1336
- alwaysOpened?: true | undefined;
1337
- } & {
1338
- multiple?: false | undefined;
1339
- value?: string | undefined;
1340
- onChange?: ((value: string) => void) | undefined;
1341
- isTargetAmount?: false | undefined;
1342
- targetAmount?: undefined;
1343
- renderValue?: undefined;
1344
- } & {
1345
- requiredPlacement?: "right" | "left" | undefined;
1346
- } & {
1347
- optional?: true | undefined;
1348
- required?: false | undefined;
1349
1147
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1350
1148
  items: ItemOption[];
1351
1149
  placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
@@ -1377,47 +1175,6 @@ true: PolymorphicClassName;
1377
1175
  isTargetAmount?: true | undefined;
1378
1176
  targetAmount?: number | undefined;
1379
1177
  renderValue?: ((item: ItemOption) => string) | undefined;
1380
- } & {
1381
- requiredPlacement?: "right" | "left" | undefined;
1382
- } & {
1383
- required: true;
1384
- optional?: false | undefined;
1385
- } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>) | ({
1386
- items: ItemOption[];
1387
- placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
1388
- label?: string | undefined;
1389
- placeholder?: string | undefined;
1390
- helperText?: string | undefined;
1391
- contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
1392
- textBefore?: string | undefined;
1393
- textAfter?: string | undefined;
1394
- variant?: "normal" | "tight" | undefined;
1395
- listOverflow?: Property.Overflow | undefined;
1396
- listHeight?: Property.Height<string | number> | undefined;
1397
- listWidth?: Property.Width<string | number> | undefined;
1398
- portal?: MutableRefObject<HTMLElement | null> | undefined;
1399
- renderItem?: ((item: ItemOption) => ReactNode) | undefined;
1400
- filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
1401
- closeAfterSelect?: boolean | undefined;
1402
- size?: string | undefined;
1403
- view?: string | undefined;
1404
- labelPlacement?: "outer" | "inner" | undefined;
1405
- } & {
1406
- readOnly?: false | undefined;
1407
- disabled?: false | undefined;
1408
- alwaysOpened?: true | undefined;
1409
- } & {
1410
- multiple: true;
1411
- value?: string[] | undefined;
1412
- onChange?: ((value: string[]) => void) | undefined;
1413
- isTargetAmount?: true | undefined;
1414
- targetAmount?: number | undefined;
1415
- renderValue?: ((item: ItemOption) => string) | undefined;
1416
- } & {
1417
- requiredPlacement?: "right" | "left" | undefined;
1418
- } & {
1419
- optional?: true | undefined;
1420
- required?: false | undefined;
1421
1178
  } & Omit<ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & {
1422
1179
  ref?: ForwardedRef<HTMLInputElement> | undefined;
1423
1180
  }) => ReactElement | null;
@@ -3064,6 +2821,92 @@ export { modalClasses }
3064
2821
 
3065
2822
  export { ModalProps }
3066
2823
 
2824
+ // @public (undocumented)
2825
+ export const NumberInput: FunctionComponent<PropsType< {
2826
+ view: {
2827
+ default: PolymorphicClassName;
2828
+ secondary: PolymorphicClassName;
2829
+ accent: PolymorphicClassName;
2830
+ clear: PolymorphicClassName;
2831
+ };
2832
+ size: {
2833
+ l: PolymorphicClassName;
2834
+ m: PolymorphicClassName;
2835
+ s: PolymorphicClassName;
2836
+ xs: PolymorphicClassName;
2837
+ };
2838
+ shape: {
2839
+ cornered: PolymorphicClassName;
2840
+ pilled: PolymorphicClassName;
2841
+ };
2842
+ inputBackgroundType: {
2843
+ fill: PolymorphicClassName;
2844
+ clear: PolymorphicClassName;
2845
+ };
2846
+ segmentation: {
2847
+ default: PolymorphicClassName;
2848
+ segmented: PolymorphicClassName;
2849
+ solid: PolymorphicClassName;
2850
+ };
2851
+ disabled: {
2852
+ true: PolymorphicClassName;
2853
+ };
2854
+ }> & (({
2855
+ value?: number | undefined;
2856
+ min?: number | undefined;
2857
+ max?: number | undefined;
2858
+ step?: number | undefined;
2859
+ isLoading?: boolean | undefined;
2860
+ loader?: ReactNode;
2861
+ size?: string | undefined;
2862
+ view?: string | undefined;
2863
+ clear?: boolean | undefined;
2864
+ shape?: string | undefined;
2865
+ disabled?: boolean | undefined;
2866
+ textBefore?: string | undefined;
2867
+ textAfter?: string | undefined;
2868
+ customIncrementButton?: ReactNode;
2869
+ incrementIcon?: ReactNode;
2870
+ customDecrementButton?: ReactNode;
2871
+ decrementIcon?: ReactNode;
2872
+ isManualInput?: boolean | undefined;
2873
+ onChange?: ((event: SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
2874
+ onIncrement?: ((value: number) => void) | undefined;
2875
+ onDecrement?: ((value: number) => void) | undefined;
2876
+ } & {
2877
+ segmentation?: "clear" | undefined;
2878
+ inputBackgroundType?: undefined;
2879
+ } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>) | ({
2880
+ value?: number | undefined;
2881
+ min?: number | undefined;
2882
+ max?: number | undefined;
2883
+ step?: number | undefined;
2884
+ isLoading?: boolean | undefined;
2885
+ loader?: ReactNode;
2886
+ size?: string | undefined;
2887
+ view?: string | undefined;
2888
+ clear?: boolean | undefined;
2889
+ shape?: string | undefined;
2890
+ disabled?: boolean | undefined;
2891
+ textBefore?: string | undefined;
2892
+ textAfter?: string | undefined;
2893
+ customIncrementButton?: ReactNode;
2894
+ incrementIcon?: ReactNode;
2895
+ customDecrementButton?: ReactNode;
2896
+ decrementIcon?: ReactNode;
2897
+ isManualInput?: boolean | undefined;
2898
+ onChange?: ((event: SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
2899
+ onIncrement?: ((value: number) => void) | undefined;
2900
+ onDecrement?: ((value: number) => void) | undefined;
2901
+ } & {
2902
+ segmentation?: string | undefined;
2903
+ inputBackgroundType?: string | undefined;
2904
+ } & Omit<InputHTMLAttributes_2<HTMLInputElement>, "onChange" | "size" | "value"> & RefAttributes<HTMLInputElement>))>;
2905
+
2906
+ export { numberInputClasses }
2907
+
2908
+ export { numberInputTokens }
2909
+
3067
2910
  export { Overlay }
3068
2911
 
3069
2912
  export { OverlayProps }