@alfalab/core-components-pattern-lock 1.2.3 → 1.2.4
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/Component.js +1 -1
- package/esm/Component.js +1 -1
- package/esm/index.css +10 -10
- package/index.css +10 -10
- package/modern/Component.js +1 -1
- package/modern/index.css +10 -10
- package/package.json +3 -3
- package/send-stats.js +0 -82
package/Component.js
CHANGED
|
@@ -21,7 +21,7 @@ var getDataTestId = function (dataTestId, element) {
|
|
|
21
21
|
return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
var styles = {"component":"pattern-
|
|
24
|
+
var styles = {"component":"pattern-lock__component_1an4o","hidden":"pattern-lock__hidden_1an4o","error":"pattern-lock__error_1an4o","forgotBtn":"pattern-lock__forgotBtn_1an4o"};
|
|
25
25
|
require('./index.css')
|
|
26
26
|
|
|
27
27
|
var PatternLock = React.forwardRef(function (_a, ref) {
|
package/esm/Component.js
CHANGED
|
@@ -12,7 +12,7 @@ var getDataTestId = function (dataTestId, element) {
|
|
|
12
12
|
return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
var styles = {"component":"pattern-
|
|
15
|
+
var styles = {"component":"pattern-lock__component_1an4o","hidden":"pattern-lock__hidden_1an4o","error":"pattern-lock__error_1an4o","forgotBtn":"pattern-lock__forgotBtn_1an4o"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var PatternLock = forwardRef(function (_a, ref) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: yvl29 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-negative: #d91d0b; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
--size-m-height: 56px;
|
|
27
27
|
} :root {
|
|
28
28
|
--pattern-lock-max-width: 500px;
|
|
29
|
-
} .pattern-
|
|
29
|
+
} .pattern-lock__component_1an4o {
|
|
30
30
|
max-width: var(--pattern-lock-max-width);
|
|
31
31
|
margin: var(--gap-xs) 0 var(--gap-xl) 0
|
|
32
|
-
} .pattern-
|
|
32
|
+
} .pattern-lock__component_1an4o canvas {
|
|
33
33
|
display: block;
|
|
34
34
|
margin: 0 auto;
|
|
35
|
-
} .pattern-
|
|
35
|
+
} .pattern-lock__hidden_1an4o {
|
|
36
36
|
visibility: hidden;
|
|
37
|
-
} .pattern-
|
|
37
|
+
} .pattern-lock__error_1an4o {
|
|
38
38
|
font-size: 16px;
|
|
39
39
|
line-height: 24px;
|
|
40
40
|
font-weight: 400;
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
padding: 0 var(--gap-m);
|
|
46
46
|
min-height: 24px;
|
|
47
47
|
color: var(--color-light-text-negative);
|
|
48
|
-
} .pattern-
|
|
48
|
+
} .pattern-lock__forgotBtn_1an4o {
|
|
49
49
|
display: block;
|
|
50
50
|
min-height: var(--size-xs-height);
|
|
51
51
|
margin: var(--gap-xl) auto 0;
|
|
52
52
|
} @media screen and (min-width: 360px) {
|
|
53
|
-
.pattern-
|
|
53
|
+
.pattern-lock__forgotBtn_1an4o {
|
|
54
54
|
margin-top: var(--gap-2xl);
|
|
55
55
|
min-height: var(--size-s-height);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.pattern-
|
|
58
|
+
.pattern-lock__component_1an4o {
|
|
59
59
|
margin-bottom: var(--gap-s);
|
|
60
60
|
}
|
|
61
61
|
} @media screen and (min-width: 390px) {
|
|
62
|
-
.pattern-
|
|
62
|
+
.pattern-lock__forgotBtn_1an4o {
|
|
63
63
|
min-height: var(--size-m-height);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.pattern-
|
|
66
|
+
.pattern-lock__component_1an4o {
|
|
67
67
|
margin-bottom: var(--gap-l);
|
|
68
68
|
}
|
|
69
69
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: yvl29 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-negative: #d91d0b; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
--size-m-height: 56px;
|
|
27
27
|
} :root {
|
|
28
28
|
--pattern-lock-max-width: 500px;
|
|
29
|
-
} .pattern-
|
|
29
|
+
} .pattern-lock__component_1an4o {
|
|
30
30
|
max-width: var(--pattern-lock-max-width);
|
|
31
31
|
margin: var(--gap-xs) 0 var(--gap-xl) 0
|
|
32
|
-
} .pattern-
|
|
32
|
+
} .pattern-lock__component_1an4o canvas {
|
|
33
33
|
display: block;
|
|
34
34
|
margin: 0 auto;
|
|
35
|
-
} .pattern-
|
|
35
|
+
} .pattern-lock__hidden_1an4o {
|
|
36
36
|
visibility: hidden;
|
|
37
|
-
} .pattern-
|
|
37
|
+
} .pattern-lock__error_1an4o {
|
|
38
38
|
font-size: 16px;
|
|
39
39
|
line-height: 24px;
|
|
40
40
|
font-weight: 400;
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
padding: 0 var(--gap-m);
|
|
46
46
|
min-height: 24px;
|
|
47
47
|
color: var(--color-light-text-negative);
|
|
48
|
-
} .pattern-
|
|
48
|
+
} .pattern-lock__forgotBtn_1an4o {
|
|
49
49
|
display: block;
|
|
50
50
|
min-height: var(--size-xs-height);
|
|
51
51
|
margin: var(--gap-xl) auto 0;
|
|
52
52
|
} @media screen and (min-width: 360px) {
|
|
53
|
-
.pattern-
|
|
53
|
+
.pattern-lock__forgotBtn_1an4o {
|
|
54
54
|
margin-top: var(--gap-2xl);
|
|
55
55
|
min-height: var(--size-s-height);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.pattern-
|
|
58
|
+
.pattern-lock__component_1an4o {
|
|
59
59
|
margin-bottom: var(--gap-s);
|
|
60
60
|
}
|
|
61
61
|
} @media screen and (min-width: 390px) {
|
|
62
|
-
.pattern-
|
|
62
|
+
.pattern-lock__forgotBtn_1an4o {
|
|
63
63
|
min-height: var(--size-m-height);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.pattern-
|
|
66
|
+
.pattern-lock__component_1an4o {
|
|
67
67
|
margin-bottom: var(--gap-l);
|
|
68
68
|
}
|
|
69
69
|
}
|
package/modern/Component.js
CHANGED
|
@@ -11,7 +11,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
11
11
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
const styles = {"component":"pattern-
|
|
14
|
+
const styles = {"component":"pattern-lock__component_1an4o","hidden":"pattern-lock__hidden_1an4o","error":"pattern-lock__error_1an4o","forgotBtn":"pattern-lock__forgotBtn_1an4o"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
const PatternLock = forwardRef(({ observeTokens = false, observerParams = {}, justifyNodes = 'space-between', className, error, dataTestId, forgotCodeBtnText = 'Забыли код?', showForgotCodeBtn = false, onForgotBtnClick, extraBounds = DEFAULT_EXTRA_BOUNDS, ...restProps }, ref) => {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: yvl29 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-negative: #d91d0b; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
--size-m-height: 56px;
|
|
27
27
|
} :root {
|
|
28
28
|
--pattern-lock-max-width: 500px;
|
|
29
|
-
} .pattern-
|
|
29
|
+
} .pattern-lock__component_1an4o {
|
|
30
30
|
max-width: var(--pattern-lock-max-width);
|
|
31
31
|
margin: var(--gap-xs) 0 var(--gap-xl) 0
|
|
32
|
-
} .pattern-
|
|
32
|
+
} .pattern-lock__component_1an4o canvas {
|
|
33
33
|
display: block;
|
|
34
34
|
margin: 0 auto;
|
|
35
|
-
} .pattern-
|
|
35
|
+
} .pattern-lock__hidden_1an4o {
|
|
36
36
|
visibility: hidden;
|
|
37
|
-
} .pattern-
|
|
37
|
+
} .pattern-lock__error_1an4o {
|
|
38
38
|
font-size: 16px;
|
|
39
39
|
line-height: 24px;
|
|
40
40
|
font-weight: 400;
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
padding: 0 var(--gap-m);
|
|
46
46
|
min-height: 24px;
|
|
47
47
|
color: var(--color-light-text-negative);
|
|
48
|
-
} .pattern-
|
|
48
|
+
} .pattern-lock__forgotBtn_1an4o {
|
|
49
49
|
display: block;
|
|
50
50
|
min-height: var(--size-xs-height);
|
|
51
51
|
margin: var(--gap-xl) auto 0;
|
|
52
52
|
} @media screen and (min-width: 360px) {
|
|
53
|
-
.pattern-
|
|
53
|
+
.pattern-lock__forgotBtn_1an4o {
|
|
54
54
|
margin-top: var(--gap-2xl);
|
|
55
55
|
min-height: var(--size-s-height);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.pattern-
|
|
58
|
+
.pattern-lock__component_1an4o {
|
|
59
59
|
margin-bottom: var(--gap-s);
|
|
60
60
|
}
|
|
61
61
|
} @media screen and (min-width: 390px) {
|
|
62
|
-
.pattern-
|
|
62
|
+
.pattern-lock__forgotBtn_1an4o {
|
|
63
63
|
min-height: var(--size-m-height);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.pattern-
|
|
66
|
+
.pattern-lock__component_1an4o {
|
|
67
67
|
margin-bottom: var(--gap-l);
|
|
68
68
|
}
|
|
69
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-pattern-lock",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Pattern lock",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-button": "^8.5.
|
|
19
|
-
"@alfalab/core-components-gap": "^1.1.
|
|
18
|
+
"@alfalab/core-components-button": "^8.5.1",
|
|
19
|
+
"@alfalab/core-components-gap": "^1.1.3",
|
|
20
20
|
"react-canvas-pattern-lock": "^1.1.1",
|
|
21
21
|
"classnames": "^2.3.1",
|
|
22
22
|
"tslib": "^2.4.0"
|
package/send-stats.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
const http = require('http');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const { promisify } = require('util');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const readFile = promisify(fs.readFile);
|
|
7
|
-
|
|
8
|
-
async function main() {
|
|
9
|
-
const remoteHost = process.env.NIS_HOST || 'digital';
|
|
10
|
-
const remotePort = process.env.NIS_PORT || 80;
|
|
11
|
-
const remotePath = process.env.NIS_PATH || '/npm-install-stats/api/install-stats';
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
const [_, node, os, arch] =
|
|
15
|
-
/node\/v(\d+\.\d+\.\d+) (\w+) (\w+)/.exec(process.env.npm_config_user_agent) || [];
|
|
16
|
-
const [__, npm] = /npm\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
17
|
-
const [___, yarn] = /yarn\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
18
|
-
|
|
19
|
-
let ownPackageJson, packageJson;
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
const result = await Promise.all([
|
|
23
|
-
readFile(path.join(process.cwd(), 'package.json'), 'utf-8'),
|
|
24
|
-
readFile(path.join(process.cwd(), '../../../package.json'), 'utf-8'),
|
|
25
|
-
]);
|
|
26
|
-
|
|
27
|
-
ownPackageJson = JSON.parse(result[0]);
|
|
28
|
-
packageJson = JSON.parse(result[1]);
|
|
29
|
-
} catch (err) {
|
|
30
|
-
ownPackageJson = '';
|
|
31
|
-
packageJson = '';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const data = {
|
|
35
|
-
node,
|
|
36
|
-
npm,
|
|
37
|
-
yarn,
|
|
38
|
-
os,
|
|
39
|
-
arch,
|
|
40
|
-
ownPackageJson: JSON.stringify(ownPackageJson),
|
|
41
|
-
packageJson: JSON.stringify(packageJson),
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const body = JSON.stringify(data);
|
|
45
|
-
|
|
46
|
-
const options = {
|
|
47
|
-
host: remoteHost,
|
|
48
|
-
port: remotePort,
|
|
49
|
-
path: remotePath,
|
|
50
|
-
method: 'POST',
|
|
51
|
-
headers: {
|
|
52
|
-
'Content-Type': 'application/json',
|
|
53
|
-
'Content-Length': body.length,
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return new Promise((resolve, reject) => {
|
|
58
|
-
const req = http.request(options, (res) => {
|
|
59
|
-
res.on('end', () => {
|
|
60
|
-
resolve();
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
req.on('error', () => {
|
|
65
|
-
reject();
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
req.write(body);
|
|
69
|
-
req.end();
|
|
70
|
-
});
|
|
71
|
-
} catch (error) {
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
main()
|
|
77
|
-
.then(() => {
|
|
78
|
-
process.exit(0);
|
|
79
|
-
})
|
|
80
|
-
.catch(() => {
|
|
81
|
-
process.exit(0);
|
|
82
|
-
});
|