@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.
- package/api/sdds-finportal.api.md +89 -246
- package/components/Combobox/Combobox.config.js +8 -8
- package/components/Combobox/Combobox.d.ts +0 -246
- package/components/Combobox/index.d.ts +0 -246
- package/components/NumberInput/NumberInput.config.d.ts +38 -0
- package/components/NumberInput/NumberInput.config.js +47 -0
- package/components/NumberInput/NumberInput.d.ts +81 -0
- package/components/NumberInput/NumberInput.js +10 -0
- package/components/NumberInput/index.d.ts +2 -0
- package/components/NumberInput/index.js +25 -0
- package/es/components/Combobox/Combobox.config.js +8 -8
- package/es/components/NumberInput/NumberInput.config.js +41 -0
- package/es/components/NumberInput/NumberInput.js +4 -0
- package/es/components/NumberInput/index.js +2 -0
- package/es/index.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +11 -0
- package/package.json +3 -3
- package/temp/sdds-finportal.api.md +89 -246
@@ -58,47 +58,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
58
58
|
isTargetAmount?: false | undefined;
|
59
59
|
targetAmount?: undefined;
|
60
60
|
renderValue?: undefined;
|
61
|
-
} & {
|
62
|
-
requiredPlacement?: "right" | "left" | undefined;
|
63
|
-
} & {
|
64
|
-
required: true;
|
65
|
-
optional?: false | undefined;
|
66
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
67
|
-
items: ItemOption[];
|
68
|
-
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
69
|
-
label?: string | undefined;
|
70
|
-
placeholder?: string | undefined;
|
71
|
-
helperText?: string | undefined;
|
72
|
-
contentLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
73
|
-
textBefore?: string | undefined;
|
74
|
-
textAfter?: string | undefined;
|
75
|
-
variant?: "normal" | "tight" | undefined;
|
76
|
-
listOverflow?: import("csstype").Property.Overflow | undefined;
|
77
|
-
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
78
|
-
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
79
|
-
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
80
|
-
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
81
|
-
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
82
|
-
closeAfterSelect?: boolean | undefined;
|
83
|
-
size?: string | undefined;
|
84
|
-
view?: string | undefined;
|
85
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
86
|
-
} & {
|
87
|
-
readOnly?: boolean | undefined;
|
88
|
-
disabled?: true | undefined;
|
89
|
-
alwaysOpened?: false | undefined;
|
90
|
-
} & {
|
91
|
-
multiple?: false | undefined;
|
92
|
-
value?: string | undefined;
|
93
|
-
onChange?: ((value: string) => void) | undefined;
|
94
|
-
isTargetAmount?: false | undefined;
|
95
|
-
targetAmount?: undefined;
|
96
|
-
renderValue?: undefined;
|
97
|
-
} & {
|
98
|
-
requiredPlacement?: "right" | "left" | undefined;
|
99
|
-
} & {
|
100
|
-
optional?: true | undefined;
|
101
|
-
required?: false | undefined;
|
102
61
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
103
62
|
items: ItemOption[];
|
104
63
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
@@ -130,83 +89,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
130
89
|
isTargetAmount?: true | undefined;
|
131
90
|
targetAmount?: number | undefined;
|
132
91
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
133
|
-
} & {
|
134
|
-
requiredPlacement?: "right" | "left" | undefined;
|
135
|
-
} & {
|
136
|
-
required: true;
|
137
|
-
optional?: false | undefined;
|
138
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
139
|
-
items: ItemOption[];
|
140
|
-
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
141
|
-
label?: string | undefined;
|
142
|
-
placeholder?: string | undefined;
|
143
|
-
helperText?: string | undefined;
|
144
|
-
contentLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
145
|
-
textBefore?: string | undefined;
|
146
|
-
textAfter?: string | undefined;
|
147
|
-
variant?: "normal" | "tight" | undefined;
|
148
|
-
listOverflow?: import("csstype").Property.Overflow | undefined;
|
149
|
-
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
150
|
-
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
151
|
-
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
152
|
-
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
153
|
-
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
154
|
-
closeAfterSelect?: boolean | undefined;
|
155
|
-
size?: string | undefined;
|
156
|
-
view?: string | undefined;
|
157
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
158
|
-
} & {
|
159
|
-
readOnly?: boolean | undefined;
|
160
|
-
disabled?: true | undefined;
|
161
|
-
alwaysOpened?: false | undefined;
|
162
|
-
} & {
|
163
|
-
multiple: true;
|
164
|
-
value?: string[] | undefined;
|
165
|
-
onChange?: ((value: string[]) => void) | undefined;
|
166
|
-
isTargetAmount?: true | undefined;
|
167
|
-
targetAmount?: number | undefined;
|
168
|
-
renderValue?: ((item: ItemOption) => string) | undefined;
|
169
|
-
} & {
|
170
|
-
requiredPlacement?: "right" | "left" | undefined;
|
171
|
-
} & {
|
172
|
-
optional?: true | undefined;
|
173
|
-
required?: false | undefined;
|
174
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
175
|
-
items: ItemOption[];
|
176
|
-
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
177
|
-
label?: string | undefined;
|
178
|
-
placeholder?: string | undefined;
|
179
|
-
helperText?: string | undefined;
|
180
|
-
contentLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
181
|
-
textBefore?: string | undefined;
|
182
|
-
textAfter?: string | undefined;
|
183
|
-
variant?: "normal" | "tight" | undefined;
|
184
|
-
listOverflow?: import("csstype").Property.Overflow | undefined;
|
185
|
-
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
186
|
-
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
187
|
-
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
188
|
-
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
189
|
-
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
190
|
-
closeAfterSelect?: boolean | undefined;
|
191
|
-
size?: string | undefined;
|
192
|
-
view?: string | undefined;
|
193
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
194
|
-
} & {
|
195
|
-
readOnly?: true | undefined;
|
196
|
-
disabled?: boolean | undefined;
|
197
|
-
alwaysOpened?: false | undefined;
|
198
|
-
} & {
|
199
|
-
multiple?: false | undefined;
|
200
|
-
value?: string | undefined;
|
201
|
-
onChange?: ((value: string) => void) | undefined;
|
202
|
-
isTargetAmount?: false | undefined;
|
203
|
-
targetAmount?: undefined;
|
204
|
-
renderValue?: undefined;
|
205
|
-
} & {
|
206
|
-
requiredPlacement?: "right" | "left" | undefined;
|
207
|
-
} & {
|
208
|
-
required: true;
|
209
|
-
optional?: false | undefined;
|
210
92
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
211
93
|
items: ItemOption[];
|
212
94
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
@@ -238,11 +120,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
238
120
|
isTargetAmount?: false | undefined;
|
239
121
|
targetAmount?: undefined;
|
240
122
|
renderValue?: undefined;
|
241
|
-
} & {
|
242
|
-
requiredPlacement?: "right" | "left" | undefined;
|
243
|
-
} & {
|
244
|
-
optional?: true | undefined;
|
245
|
-
required?: false | undefined;
|
246
123
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
247
124
|
items: ItemOption[];
|
248
125
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
@@ -274,47 +151,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
274
151
|
isTargetAmount?: true | undefined;
|
275
152
|
targetAmount?: number | undefined;
|
276
153
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
277
|
-
} & {
|
278
|
-
requiredPlacement?: "right" | "left" | undefined;
|
279
|
-
} & {
|
280
|
-
required: true;
|
281
|
-
optional?: false | undefined;
|
282
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
283
|
-
items: ItemOption[];
|
284
|
-
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
285
|
-
label?: string | undefined;
|
286
|
-
placeholder?: string | undefined;
|
287
|
-
helperText?: string | undefined;
|
288
|
-
contentLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
289
|
-
textBefore?: string | undefined;
|
290
|
-
textAfter?: string | undefined;
|
291
|
-
variant?: "normal" | "tight" | undefined;
|
292
|
-
listOverflow?: import("csstype").Property.Overflow | undefined;
|
293
|
-
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
294
|
-
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
295
|
-
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
296
|
-
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
297
|
-
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
298
|
-
closeAfterSelect?: boolean | undefined;
|
299
|
-
size?: string | undefined;
|
300
|
-
view?: string | undefined;
|
301
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
302
|
-
} & {
|
303
|
-
readOnly?: true | undefined;
|
304
|
-
disabled?: boolean | undefined;
|
305
|
-
alwaysOpened?: false | undefined;
|
306
|
-
} & {
|
307
|
-
multiple: true;
|
308
|
-
value?: string[] | undefined;
|
309
|
-
onChange?: ((value: string[]) => void) | undefined;
|
310
|
-
isTargetAmount?: true | undefined;
|
311
|
-
targetAmount?: number | undefined;
|
312
|
-
renderValue?: ((item: ItemOption) => string) | undefined;
|
313
|
-
} & {
|
314
|
-
requiredPlacement?: "right" | "left" | undefined;
|
315
|
-
} & {
|
316
|
-
optional?: true | undefined;
|
317
|
-
required?: false | undefined;
|
318
154
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
319
155
|
items: ItemOption[];
|
320
156
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
@@ -346,83 +182,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
346
182
|
isTargetAmount?: false | undefined;
|
347
183
|
targetAmount?: undefined;
|
348
184
|
renderValue?: undefined;
|
349
|
-
} & {
|
350
|
-
requiredPlacement?: "right" | "left" | undefined;
|
351
|
-
} & {
|
352
|
-
required: true;
|
353
|
-
optional?: false | undefined;
|
354
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
355
|
-
items: ItemOption[];
|
356
|
-
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
357
|
-
label?: string | undefined;
|
358
|
-
placeholder?: string | undefined;
|
359
|
-
helperText?: string | undefined;
|
360
|
-
contentLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
361
|
-
textBefore?: string | undefined;
|
362
|
-
textAfter?: string | undefined;
|
363
|
-
variant?: "normal" | "tight" | undefined;
|
364
|
-
listOverflow?: import("csstype").Property.Overflow | undefined;
|
365
|
-
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
366
|
-
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
367
|
-
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
368
|
-
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
369
|
-
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
370
|
-
closeAfterSelect?: boolean | undefined;
|
371
|
-
size?: string | undefined;
|
372
|
-
view?: string | undefined;
|
373
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
374
|
-
} & {
|
375
|
-
readOnly?: false | undefined;
|
376
|
-
disabled?: false | undefined;
|
377
|
-
alwaysOpened?: true | undefined;
|
378
|
-
} & {
|
379
|
-
multiple?: false | undefined;
|
380
|
-
value?: string | undefined;
|
381
|
-
onChange?: ((value: string) => void) | undefined;
|
382
|
-
isTargetAmount?: false | undefined;
|
383
|
-
targetAmount?: undefined;
|
384
|
-
renderValue?: undefined;
|
385
|
-
} & {
|
386
|
-
requiredPlacement?: "right" | "left" | undefined;
|
387
|
-
} & {
|
388
|
-
optional?: true | undefined;
|
389
|
-
required?: false | undefined;
|
390
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
391
|
-
items: ItemOption[];
|
392
|
-
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
393
|
-
label?: string | undefined;
|
394
|
-
placeholder?: string | undefined;
|
395
|
-
helperText?: string | undefined;
|
396
|
-
contentLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
397
|
-
textBefore?: string | undefined;
|
398
|
-
textAfter?: string | undefined;
|
399
|
-
variant?: "normal" | "tight" | undefined;
|
400
|
-
listOverflow?: import("csstype").Property.Overflow | undefined;
|
401
|
-
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
402
|
-
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
403
|
-
portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
|
404
|
-
renderItem?: ((item: ItemOption) => import("react").ReactNode) | undefined;
|
405
|
-
filter?: ((item: ItemOption, textValue: string) => boolean) | undefined;
|
406
|
-
closeAfterSelect?: boolean | undefined;
|
407
|
-
size?: string | undefined;
|
408
|
-
view?: string | undefined;
|
409
|
-
labelPlacement?: "outer" | "inner" | undefined;
|
410
|
-
} & {
|
411
|
-
readOnly?: false | undefined;
|
412
|
-
disabled?: false | undefined;
|
413
|
-
alwaysOpened?: true | undefined;
|
414
|
-
} & {
|
415
|
-
multiple: true;
|
416
|
-
value?: string[] | undefined;
|
417
|
-
onChange?: ((value: string[]) => void) | undefined;
|
418
|
-
isTargetAmount?: true | undefined;
|
419
|
-
targetAmount?: number | undefined;
|
420
|
-
renderValue?: ((item: ItemOption) => string) | undefined;
|
421
|
-
} & {
|
422
|
-
requiredPlacement?: "right" | "left" | undefined;
|
423
|
-
} & {
|
424
|
-
required: true;
|
425
|
-
optional?: false | undefined;
|
426
185
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
427
186
|
items: ItemOption[];
|
428
187
|
placement?: ("top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end") | undefined;
|
@@ -454,11 +213,6 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
454
213
|
isTargetAmount?: true | undefined;
|
455
214
|
targetAmount?: number | undefined;
|
456
215
|
renderValue?: ((item: ItemOption) => string) | undefined;
|
457
|
-
} & {
|
458
|
-
requiredPlacement?: "right" | "left" | undefined;
|
459
|
-
} & {
|
460
|
-
optional?: true | undefined;
|
461
|
-
required?: false | undefined;
|
462
216
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>)), "view" | "size" | "disabled" | "readOnly" | "labelPlacement"> & {
|
463
217
|
ref?: ForwardedRef<HTMLInputElement> | undefined;
|
464
218
|
}) => ReactElement | null;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
export declare const config: {
|
2
|
+
defaults: {
|
3
|
+
view: string;
|
4
|
+
size: string;
|
5
|
+
shape: string;
|
6
|
+
inputBackgroundType: string;
|
7
|
+
};
|
8
|
+
variations: {
|
9
|
+
view: {
|
10
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
13
|
+
clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
14
|
+
};
|
15
|
+
size: {
|
16
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
17
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
18
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
19
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
20
|
+
};
|
21
|
+
shape: {
|
22
|
+
cornered: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
23
|
+
pilled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
24
|
+
};
|
25
|
+
inputBackgroundType: {
|
26
|
+
fill: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
27
|
+
clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
28
|
+
};
|
29
|
+
segmentation: {
|
30
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
31
|
+
segmented: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
32
|
+
solid: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
33
|
+
};
|
34
|
+
disabled: {
|
35
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
36
|
+
};
|
37
|
+
};
|
38
|
+
};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.config = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
9
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
10
|
+
var config = exports.config = {
|
11
|
+
defaults: {
|
12
|
+
view: 'default',
|
13
|
+
size: 'l',
|
14
|
+
shape: 'cornered',
|
15
|
+
inputBackgroundType: 'fill'
|
16
|
+
},
|
17
|
+
variations: {
|
18
|
+
view: {
|
19
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--inverse-text-primary);\n ", ": var(--text-tertiary);\n ", ": var(--inverse-text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--inverse-surface-transparent-secondary);\n ", ": var(--surface-solid-default);\n\n ", ": var(--inverse-text-primary);\n ", ": var(--surface-solid-default);\n ", ": var(--inverse-text-primary);\n ", ": var(--inverse-text-primary-hover);\n ", ": var(--surface-solid-default-hover);\n ", ": var(--inverse-text-primary);\n ", ": var(--inverse-text-primary-active);\n ", ": var(--surface-solid-default-active);\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), _styledComponents.numberInputTokens.caretColor, _styledComponents.numberInputTokens.errorColor, _styledComponents.numberInputTokens.backgroundErrorColor, _styledComponents.numberInputTokens.color, _styledComponents.numberInputTokens.colorSolid, _styledComponents.numberInputTokens.additionalTextColor, _styledComponents.numberInputTokens.additionalTextColorSolid, _styledComponents.numberInputTokens.backgroundColorFocus, _styledComponents.numberInputTokens.backgroundColorSolidFocus, _styledComponents.numberInputTokens.backgroundColorSolid, _styledComponents.numberInputTokens.iconButtonColor, _styledComponents.numberInputTokens.iconButtonBackgroundColor, _styledComponents.numberInputTokens.iconButtonColorHover, _styledComponents.numberInputTokens.iconButtonColorSolidHover, _styledComponents.numberInputTokens.iconButtonBackgroundColorHover, _styledComponents.numberInputTokens.iconButtonColorActive, _styledComponents.numberInputTokens.iconButtonColorSolidActive, _styledComponents.numberInputTokens.iconButtonBackgroundColorActive, _styledComponents.numberInputTokens.actionButtonDisabledOpacity, _styledComponents.numberInputTokens.loaderSpinnerColor, _styledComponents.numberInputTokens.loaderSpinnerColorSolid),
|
20
|
+
secondary: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--text-primary);\n ", ": var(--text-tertiary);\n ", ": var(--text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary);\n\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": var(--text-primary-hover);\n ", ": var(--surface-transparent-secondary-hover);\n ", ": var(--text-primary);\n ", ": var(--text-primary-active);\n ", ": var(--surface-transparent-secondary-active);\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), _styledComponents.numberInputTokens.caretColor, _styledComponents.numberInputTokens.errorColor, _styledComponents.numberInputTokens.backgroundErrorColor, _styledComponents.numberInputTokens.color, _styledComponents.numberInputTokens.colorSolid, _styledComponents.numberInputTokens.additionalTextColor, _styledComponents.numberInputTokens.additionalTextColorSolid, _styledComponents.numberInputTokens.backgroundColorFocus, _styledComponents.numberInputTokens.backgroundColorSolidFocus, _styledComponents.numberInputTokens.backgroundColorSolid, _styledComponents.numberInputTokens.iconButtonColor, _styledComponents.numberInputTokens.iconButtonBackgroundColor, _styledComponents.numberInputTokens.iconButtonColorHover, _styledComponents.numberInputTokens.iconButtonColorSolidHover, _styledComponents.numberInputTokens.iconButtonBackgroundColorHover, _styledComponents.numberInputTokens.iconButtonColorActive, _styledComponents.numberInputTokens.iconButtonColorSolidActive, _styledComponents.numberInputTokens.iconButtonBackgroundColorActive, _styledComponents.numberInputTokens.actionButtonDisabledOpacity, _styledComponents.numberInputTokens.loaderSpinnerColor, _styledComponents.numberInputTokens.loaderSpinnerColorSolid),
|
21
|
+
accent: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--inverse-text-primary);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--on-dark-text-primary);\n ", ": var(--text-tertiary);\n ", ": var(--on-dark-text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--on-dark-surface-transparent-secondary);\n ", ": var(--surface-accent);\n\n ", ": var(--on-dark-text-primary);\n ", ": var(--surface-accent);\n ", ": var(--inverse-text-primary);\n ", ": var(--on-dark-text-primary-hover);\n ", ": var(--surface-accent-hover);\n ", ": var(--inverse-text-primary);\n ", ": var(--on-dark-text-primary-active);\n ", ": var(--surface-accent-active);\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), _styledComponents.numberInputTokens.caretColor, _styledComponents.numberInputTokens.caretColorSolid, _styledComponents.numberInputTokens.errorColor, _styledComponents.numberInputTokens.backgroundErrorColor, _styledComponents.numberInputTokens.color, _styledComponents.numberInputTokens.colorSolid, _styledComponents.numberInputTokens.additionalTextColor, _styledComponents.numberInputTokens.additionalTextColorSolid, _styledComponents.numberInputTokens.backgroundColorFocus, _styledComponents.numberInputTokens.backgroundColorSolidFocus, _styledComponents.numberInputTokens.backgroundColorSolid, _styledComponents.numberInputTokens.iconButtonColor, _styledComponents.numberInputTokens.iconButtonBackgroundColor, _styledComponents.numberInputTokens.iconButtonColorHover, _styledComponents.numberInputTokens.iconButtonColorSolidHover, _styledComponents.numberInputTokens.iconButtonBackgroundColorHover, _styledComponents.numberInputTokens.iconButtonColorActive, _styledComponents.numberInputTokens.iconButtonColorSolidActive, _styledComponents.numberInputTokens.iconButtonBackgroundColorActive, _styledComponents.numberInputTokens.actionButtonDisabledOpacity, _styledComponents.numberInputTokens.loaderSpinnerColor, _styledComponents.numberInputTokens.loaderSpinnerColorSolid),
|
22
|
+
clear: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-accent);\n ", ": var(--text-accent);\n ", ": var(--text-negative);\n ", ": var(--surface-transparent-negative);\n\n ", ": var(--text-primary);\n ", ": var(--text-primary);\n ", ": var(--text-primary-hover);\n ", ": var(--text-tertiary);\n ", ": var(--text-tertiary);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--surface-transparent-secondary);\n ", ": transparent;\n\n ", ": var(--text-primary);\n ", ": transparent;\n ", ": var(--text-primary-hover);\n ", ": transparent;\n ", ": var(--text-primary-active);\n ", ": transparent;\n\n ", ": 0.4;\n\n ", ": inherit;\n ", ": inherit;\n "])), _styledComponents.numberInputTokens.caretColor, _styledComponents.numberInputTokens.caretColorSolid, _styledComponents.numberInputTokens.errorColor, _styledComponents.numberInputTokens.backgroundErrorColor, _styledComponents.numberInputTokens.color, _styledComponents.numberInputTokens.colorSolid, _styledComponents.numberInputTokens.iconButtonColorSolidHover, _styledComponents.numberInputTokens.additionalTextColor, _styledComponents.numberInputTokens.additionalTextColorSolid, _styledComponents.numberInputTokens.backgroundColorFocus, _styledComponents.numberInputTokens.backgroundColorSolidFocus, _styledComponents.numberInputTokens.backgroundColorSolid, _styledComponents.numberInputTokens.iconButtonColor, _styledComponents.numberInputTokens.iconButtonBackgroundColor, _styledComponents.numberInputTokens.iconButtonColorHover, _styledComponents.numberInputTokens.iconButtonBackgroundColorHover, _styledComponents.numberInputTokens.iconButtonColorActive, _styledComponents.numberInputTokens.iconButtonBackgroundColorActive, _styledComponents.numberInputTokens.actionButtonDisabledOpacity, _styledComponents.numberInputTokens.loaderSpinnerColor, _styledComponents.numberInputTokens.loaderSpinnerColorSolid)
|
23
|
+
},
|
24
|
+
size: {
|
25
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 11.75rem;\n ", ": 3.5rem;\n ", ": 3.5rem;\n ", ": 1.5rem;\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-bold-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n\n ", ": 0.875rem;\n ", ": 0.375rem;\n\n ", ": 0 0.125rem;\n ", ": 0.875rem;\n ", ": 3.5rem;\n ", ": 1.063rem 1.125rem;\n\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n\n ", ": 1.375rem;\n "])), _styledComponents.numberInputTokens.rootMinWidth, _styledComponents.numberInputTokens.iconButtonHeight, _styledComponents.numberInputTokens.iconButtonWidth, _styledComponents.numberInputTokens.iconButtonPadding, _styledComponents.numberInputTokens.iconButtonFontFamily, _styledComponents.numberInputTokens.iconButtonFontSize, _styledComponents.numberInputTokens.iconButtonFontStyle, _styledComponents.numberInputTokens.iconButtonFontWeight, _styledComponents.numberInputTokens.iconButtonLetterSpacing, _styledComponents.numberInputTokens.iconButtonLineHeight, _styledComponents.numberInputTokens.iconButtonRadius, _styledComponents.numberInputTokens.iconButtonSegmentationRadius, _styledComponents.numberInputTokens.inputWrapperMargin, _styledComponents.numberInputTokens.inputWrapperBorderRadius, _styledComponents.numberInputTokens.textWrapperHeight, _styledComponents.numberInputTokens.textWrapperPadding, _styledComponents.numberInputTokens.fontFamily, _styledComponents.numberInputTokens.fontSize, _styledComponents.numberInputTokens.fontStyle, _styledComponents.numberInputTokens.fontWeight, _styledComponents.numberInputTokens.letterSpacing, _styledComponents.numberInputTokens.lineHeight, _styledComponents.numberInputTokens.textBeforeMarginRight, _styledComponents.numberInputTokens.textAfterMarginLeft, _styledComponents.numberInputTokens.loaderSpinnerSize),
|
26
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 10.25rem;\n ", ": 3rem;\n ", ": 3rem;\n ", ": 1.25rem;\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-bold-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n\n ", ": 0.75rem;\n ", ": 0.25rem;\n\n ", ": 0 0.125rem;\n ", ": 0.75rem;\n ", ": 3rem;\n ", ": 0.875rem 1rem;\n\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n\n ", ": 1.375rem;\n "])), _styledComponents.numberInputTokens.rootMinWidth, _styledComponents.numberInputTokens.iconButtonHeight, _styledComponents.numberInputTokens.iconButtonWidth, _styledComponents.numberInputTokens.iconButtonPadding, _styledComponents.numberInputTokens.iconButtonFontFamily, _styledComponents.numberInputTokens.iconButtonFontSize, _styledComponents.numberInputTokens.iconButtonFontStyle, _styledComponents.numberInputTokens.iconButtonFontWeight, _styledComponents.numberInputTokens.iconButtonLetterSpacing, _styledComponents.numberInputTokens.iconButtonLineHeight, _styledComponents.numberInputTokens.iconButtonRadius, _styledComponents.numberInputTokens.iconButtonSegmentationRadius, _styledComponents.numberInputTokens.inputWrapperMargin, _styledComponents.numberInputTokens.inputWrapperBorderRadius, _styledComponents.numberInputTokens.textWrapperHeight, _styledComponents.numberInputTokens.textWrapperPadding, _styledComponents.numberInputTokens.fontFamily, _styledComponents.numberInputTokens.fontSize, _styledComponents.numberInputTokens.fontStyle, _styledComponents.numberInputTokens.fontWeight, _styledComponents.numberInputTokens.letterSpacing, _styledComponents.numberInputTokens.lineHeight, _styledComponents.numberInputTokens.textBeforeMarginRight, _styledComponents.numberInputTokens.textAfterMarginLeft, _styledComponents.numberInputTokens.loaderSpinnerSize),
|
27
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 8.75rem;\n ", ": 2.5rem;\n ", ": 2.5rem;\n ", ": 1rem;\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-bold-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.625rem;\n ", ": 0.25rem;\n\n ", ": 0 0.125rem;\n ", ": 0.625rem;\n ", ": 2.5rem;\n ", ": 0.688rem 0.875rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n\n ", ": 1.375rem;\n "])), _styledComponents.numberInputTokens.rootMinWidth, _styledComponents.numberInputTokens.iconButtonHeight, _styledComponents.numberInputTokens.iconButtonWidth, _styledComponents.numberInputTokens.iconButtonPadding, _styledComponents.numberInputTokens.iconButtonFontFamily, _styledComponents.numberInputTokens.iconButtonFontSize, _styledComponents.numberInputTokens.iconButtonFontStyle, _styledComponents.numberInputTokens.iconButtonFontWeight, _styledComponents.numberInputTokens.iconButtonLetterSpacing, _styledComponents.numberInputTokens.iconButtonLineHeight, _styledComponents.numberInputTokens.iconButtonRadius, _styledComponents.numberInputTokens.iconButtonSegmentationRadius, _styledComponents.numberInputTokens.inputWrapperMargin, _styledComponents.numberInputTokens.inputWrapperBorderRadius, _styledComponents.numberInputTokens.textWrapperHeight, _styledComponents.numberInputTokens.textWrapperPadding, _styledComponents.numberInputTokens.fontFamily, _styledComponents.numberInputTokens.fontSize, _styledComponents.numberInputTokens.fontStyle, _styledComponents.numberInputTokens.fontWeight, _styledComponents.numberInputTokens.letterSpacing, _styledComponents.numberInputTokens.lineHeight, _styledComponents.numberInputTokens.textBeforeMarginRight, _styledComponents.numberInputTokens.textAfterMarginLeft, _styledComponents.numberInputTokens.loaderSpinnerSize),
|
28
|
+
xs: /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 6.875rem;\n ", ": 2rem;\n ", ": 2rem;\n ", ": 0.75rem;\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-bold-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 0.5rem;\n ", ": 0.125rem;\n\n ", ": 0 0.125rem;\n ", ": 0.5rem;\n ", ": 2rem;\n ", ": 0.563rem 0.625rem;\n\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": 0.25rem;\n ", ": 0.25rem;\n\n ", ": 1rem;\n "])), _styledComponents.numberInputTokens.rootMinWidth, _styledComponents.numberInputTokens.iconButtonHeight, _styledComponents.numberInputTokens.iconButtonWidth, _styledComponents.numberInputTokens.iconButtonPadding, _styledComponents.numberInputTokens.iconButtonFontFamily, _styledComponents.numberInputTokens.iconButtonFontSize, _styledComponents.numberInputTokens.iconButtonFontStyle, _styledComponents.numberInputTokens.iconButtonFontWeight, _styledComponents.numberInputTokens.iconButtonLetterSpacing, _styledComponents.numberInputTokens.iconButtonLineHeight, _styledComponents.numberInputTokens.iconButtonRadius, _styledComponents.numberInputTokens.iconButtonSegmentationRadius, _styledComponents.numberInputTokens.inputWrapperMargin, _styledComponents.numberInputTokens.inputWrapperBorderRadius, _styledComponents.numberInputTokens.textWrapperHeight, _styledComponents.numberInputTokens.textWrapperPadding, _styledComponents.numberInputTokens.fontFamily, _styledComponents.numberInputTokens.fontSize, _styledComponents.numberInputTokens.fontStyle, _styledComponents.numberInputTokens.fontWeight, _styledComponents.numberInputTokens.letterSpacing, _styledComponents.numberInputTokens.lineHeight, _styledComponents.numberInputTokens.textBeforeMarginRight, _styledComponents.numberInputTokens.textAfterMarginLeft, _styledComponents.numberInputTokens.loaderSpinnerSize)
|
29
|
+
},
|
30
|
+
shape: {
|
31
|
+
cornered: /*#__PURE__*/(0, _styledComponents.css)(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
|
32
|
+
pilled: /*#__PURE__*/(0, _styledComponents.css)(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 50%;\n "])), _styledComponents.numberInputTokens.iconButtonRadius)
|
33
|
+
},
|
34
|
+
inputBackgroundType: {
|
35
|
+
fill: /*#__PURE__*/(0, _styledComponents.css)(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-primary);\n ", ": var(--surface-transparent-primary);\n "])), _styledComponents.numberInputTokens.backgroundColor, _styledComponents.numberInputTokens.backgroundColorHover),
|
36
|
+
clear: /*#__PURE__*/(0, _styledComponents.css)(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": transparent;\n ", ": transparent;\n "])), _styledComponents.numberInputTokens.backgroundColor, _styledComponents.numberInputTokens.backgroundColorHover)
|
37
|
+
},
|
38
|
+
segmentation: {
|
39
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
|
40
|
+
segmented: /*#__PURE__*/(0, _styledComponents.css)(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteral([""]))),
|
41
|
+
solid: /*#__PURE__*/(0, _styledComponents.css)(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0;\n "])), _styledComponents.numberInputTokens.iconButtonSegmentationRadius)
|
42
|
+
},
|
43
|
+
disabled: {
|
44
|
+
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.numberInputTokens.disabledOpacity)
|
45
|
+
}
|
46
|
+
}
|
47
|
+
};
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const NumberInput: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
|
+
view: {
|
4
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
|
+
secondary: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
|
+
accent: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
|
+
clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
8
|
+
};
|
9
|
+
size: {
|
10
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
13
|
+
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
14
|
+
};
|
15
|
+
shape: {
|
16
|
+
cornered: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
17
|
+
pilled: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
18
|
+
};
|
19
|
+
inputBackgroundType: {
|
20
|
+
fill: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
21
|
+
clear: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
22
|
+
};
|
23
|
+
segmentation: {
|
24
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
25
|
+
segmented: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
26
|
+
solid: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
27
|
+
};
|
28
|
+
disabled: {
|
29
|
+
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
30
|
+
};
|
31
|
+
}> & (({
|
32
|
+
value?: number | undefined;
|
33
|
+
min?: number | undefined;
|
34
|
+
max?: number | undefined;
|
35
|
+
step?: number | undefined;
|
36
|
+
isLoading?: boolean | undefined;
|
37
|
+
loader?: import("react").ReactNode;
|
38
|
+
size?: string | undefined;
|
39
|
+
view?: string | undefined;
|
40
|
+
clear?: boolean | undefined;
|
41
|
+
shape?: string | undefined;
|
42
|
+
disabled?: boolean | undefined;
|
43
|
+
textBefore?: string | undefined;
|
44
|
+
textAfter?: string | undefined;
|
45
|
+
customIncrementButton?: import("react").ReactNode;
|
46
|
+
incrementIcon?: import("react").ReactNode;
|
47
|
+
customDecrementButton?: import("react").ReactNode;
|
48
|
+
decrementIcon?: import("react").ReactNode;
|
49
|
+
isManualInput?: boolean | undefined;
|
50
|
+
onChange?: ((event: import("react").SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
|
51
|
+
onIncrement?: ((value: number) => void) | undefined;
|
52
|
+
onDecrement?: ((value: number) => void) | undefined;
|
53
|
+
} & {
|
54
|
+
segmentation?: "clear" | undefined;
|
55
|
+
inputBackgroundType?: undefined;
|
56
|
+
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
|
57
|
+
value?: number | undefined;
|
58
|
+
min?: number | undefined;
|
59
|
+
max?: number | undefined;
|
60
|
+
step?: number | undefined;
|
61
|
+
isLoading?: boolean | undefined;
|
62
|
+
loader?: import("react").ReactNode;
|
63
|
+
size?: string | undefined;
|
64
|
+
view?: string | undefined;
|
65
|
+
clear?: boolean | undefined;
|
66
|
+
shape?: string | undefined;
|
67
|
+
disabled?: boolean | undefined;
|
68
|
+
textBefore?: string | undefined;
|
69
|
+
textAfter?: string | undefined;
|
70
|
+
customIncrementButton?: import("react").ReactNode;
|
71
|
+
incrementIcon?: import("react").ReactNode;
|
72
|
+
customDecrementButton?: import("react").ReactNode;
|
73
|
+
decrementIcon?: import("react").ReactNode;
|
74
|
+
isManualInput?: boolean | undefined;
|
75
|
+
onChange?: ((event: import("react").SyntheticEvent<HTMLInputElement, Event> | null, value: string | number) => void) | undefined;
|
76
|
+
onIncrement?: ((value: number) => void) | undefined;
|
77
|
+
onDecrement?: ((value: number) => void) | undefined;
|
78
|
+
} & {
|
79
|
+
segmentation?: string | undefined;
|
80
|
+
inputBackgroundType?: string | undefined;
|
81
|
+
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "value"> & import("react").RefAttributes<HTMLInputElement>))>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.NumberInput = void 0;
|
7
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
+
var _NumberInput = /*#__PURE__*/require("./NumberInput.config");
|
9
|
+
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.numberInputConfig, _NumberInput.config);
|
10
|
+
var NumberInput = exports.NumberInput = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "NumberInput", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _NumberInput.NumberInput;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
Object.defineProperty(exports, "numberInputClasses", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function get() {
|
15
|
+
return _styledComponents.numberInputClasses;
|
16
|
+
}
|
17
|
+
});
|
18
|
+
Object.defineProperty(exports, "numberInputTokens", {
|
19
|
+
enumerable: true,
|
20
|
+
get: function get() {
|
21
|
+
return _styledComponents.numberInputTokens;
|
22
|
+
}
|
23
|
+
});
|
24
|
+
var _NumberInput = /*#__PURE__*/require("./NumberInput");
|
25
|
+
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|