@salutejs/plasma-new-hope 0.322.0-canary.1933.14614537450.0 → 0.322.0-canary.1941.14637562685.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/emotion/cjs/components/CodeField/CodeField.types.js +5 -0
- package/emotion/es/components/CodeField/CodeField.types.js +1 -0
- package/package.json +4 -4
- package/styled-components/cjs/components/CodeField/CodeField.types.js +5 -0
- package/styled-components/es/components/CodeField/CodeField.types.js +1 -0
- package/types/components/CodeField/CodeField.types.d.ts +56 -0
- package/types/components/CodeField/CodeField.types.d.ts.map +1 -0
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.322.0-canary.
|
3
|
+
"version": "0.322.0-canary.1941.14637562685.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -80,8 +80,8 @@
|
|
80
80
|
"@rollup/plugin-babel": "^6.0.4",
|
81
81
|
"@rollup/plugin-commonjs": "^25.0.4",
|
82
82
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
83
|
-
"@salutejs/plasma-sb-utils": "0.197.0-canary.
|
84
|
-
"@salutejs/plasma-themes": "0.33.0-canary.
|
83
|
+
"@salutejs/plasma-sb-utils": "0.197.0-canary.1941.14637562685.0",
|
84
|
+
"@salutejs/plasma-themes": "0.33.0-canary.1941.14637562685.0",
|
85
85
|
"@storybook/addon-docs": "8.6.12",
|
86
86
|
"@storybook/addon-essentials": "8.6.12",
|
87
87
|
"@storybook/manager-api": "8.6.12",
|
@@ -137,5 +137,5 @@
|
|
137
137
|
"sideEffects": [
|
138
138
|
"*.css"
|
139
139
|
],
|
140
|
-
"gitHead": "
|
140
|
+
"gitHead": "14ed26b507acaedb163048c5da7f35081bf00a2b"
|
141
141
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import type { ChangeEvent } from 'react';
|
2
|
+
export declare type CodeFieldProps = {
|
3
|
+
/**
|
4
|
+
* Коллбек, вызываемый при вводе полного значения в поле
|
5
|
+
*/
|
6
|
+
onFullCodeEnter: (code: string) => void;
|
7
|
+
/**
|
8
|
+
* Длина кода
|
9
|
+
* @default 6
|
10
|
+
*/
|
11
|
+
length?: number;
|
12
|
+
/**
|
13
|
+
* Подпись к компоненту
|
14
|
+
*/
|
15
|
+
caption?: string;
|
16
|
+
/**
|
17
|
+
* Выравнивание подписи
|
18
|
+
* @default left
|
19
|
+
*/
|
20
|
+
captionAlign?: 'left' | 'center';
|
21
|
+
/**
|
22
|
+
* Подпись к компоненту
|
23
|
+
* @default default
|
24
|
+
*/
|
25
|
+
shape?: 'default' | 'segmented';
|
26
|
+
/**
|
27
|
+
* Вид компонента
|
28
|
+
*/
|
29
|
+
view?: string;
|
30
|
+
/**
|
31
|
+
* Размер компонента
|
32
|
+
*/
|
33
|
+
size?: string;
|
34
|
+
/**
|
35
|
+
* Код неверный
|
36
|
+
*/
|
37
|
+
isError?: boolean;
|
38
|
+
/**
|
39
|
+
* Регулярное выражение, по которому проверяется символ при вводе
|
40
|
+
* @default \/d\g - только цифры
|
41
|
+
*/
|
42
|
+
itemAllowedSymbols?: RegExp;
|
43
|
+
/**
|
44
|
+
* Поведение элемента поля ввода, при вводе некорректного значения
|
45
|
+
* - `keep` - проигрывается анимация ошибки, значение остается
|
46
|
+
* - `remove-symbol` - проигрывается анимация ошибки, значение элемента очищается
|
47
|
+
* - `remove-code` - проигрывается анимация ошибки, значение всего поля очищается
|
48
|
+
* @default 'remove-symbol'
|
49
|
+
*/
|
50
|
+
itemErrorBehavior?: 'keep' | 'remove-symbol' | 'remove-code';
|
51
|
+
/**
|
52
|
+
* Коллбек, вызываемый при изменении значения кода
|
53
|
+
*/
|
54
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
55
|
+
};
|
56
|
+
//# sourceMappingURL=CodeField.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CodeField.types.d.ts","sourceRoot":"","sources":["../../../src/components/CodeField/CodeField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,oBAAY,cAAc,GAAG;IACzB;;OAEG;IACH,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,aAAa,CAAC;IAC7D;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC7D,CAAC"}
|