@alfalab/core-components-pattern-lock 1.3.1 → 1.3.2

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 CHANGED
@@ -17,7 +17,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
17
17
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
 
20
- var styles = {"component":"pattern-lock__component_1dlzb","hidden":"pattern-lock__hidden_1dlzb","error":"pattern-lock__error_1dlzb","forgotBtn":"pattern-lock__forgotBtn_1dlzb"};
20
+ var styles = {"component":"pattern-lock__component_1j5nw","hidden":"pattern-lock__hidden_1j5nw","error":"pattern-lock__error_1j5nw","forgotBtn":"pattern-lock__forgotBtn_1j5nw"};
21
21
  require('./index.css')
22
22
 
23
23
  var PatternLock = React.forwardRef(function (_a, ref) {
package/esm/Component.js CHANGED
@@ -8,7 +8,7 @@ import { getDataTestId } from '@alfalab/core-components-shared/esm';
8
8
  import { THEME_STATE, DEFAULT_EXTRA_BOUNDS, OBSERVE_OPTIONS, OBSERVABLE_TOKENS } from './consts.js';
9
9
  import { getSizes, getTheme, getColorByToken, getDefaultObserveTarget } from './utils.js';
10
10
 
11
- var styles = {"component":"pattern-lock__component_1dlzb","hidden":"pattern-lock__hidden_1dlzb","error":"pattern-lock__error_1dlzb","forgotBtn":"pattern-lock__forgotBtn_1dlzb"};
11
+ var styles = {"component":"pattern-lock__component_1j5nw","hidden":"pattern-lock__hidden_1j5nw","error":"pattern-lock__error_1j5nw","forgotBtn":"pattern-lock__forgotBtn_1j5nw"};
12
12
  require('./index.css')
13
13
 
14
14
  var PatternLock = forwardRef(function (_a, ref) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: iwzha */
1
+ /* hash: 8u5ns */
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-lock__component_1dlzb {
29
+ } .pattern-lock__component_1j5nw {
30
30
  max-width: var(--pattern-lock-max-width);
31
31
  margin: var(--gap-xs) 0 var(--gap-xl) 0
32
- } .pattern-lock__component_1dlzb canvas {
32
+ } .pattern-lock__component_1j5nw canvas {
33
33
  display: block;
34
34
  margin: 0 auto;
35
- } .pattern-lock__hidden_1dlzb {
35
+ } .pattern-lock__hidden_1j5nw {
36
36
  visibility: hidden;
37
- } .pattern-lock__error_1dlzb {
37
+ } .pattern-lock__error_1j5nw {
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-lock__forgotBtn_1dlzb {
48
+ } .pattern-lock__forgotBtn_1j5nw {
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-lock__forgotBtn_1dlzb {
53
+ .pattern-lock__forgotBtn_1j5nw {
54
54
  margin-top: var(--gap-2xl);
55
55
  min-height: var(--size-s-height);
56
56
  }
57
57
 
58
- .pattern-lock__component_1dlzb {
58
+ .pattern-lock__component_1j5nw {
59
59
  margin-bottom: var(--gap-s);
60
60
  }
61
61
  } @media screen and (min-width: 390px) {
62
- .pattern-lock__forgotBtn_1dlzb {
62
+ .pattern-lock__forgotBtn_1j5nw {
63
63
  min-height: var(--size-m-height);
64
64
  }
65
65
 
66
- .pattern-lock__component_1dlzb {
66
+ .pattern-lock__component_1j5nw {
67
67
  margin-bottom: var(--gap-l);
68
68
  }
69
69
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: iwzha */
1
+ /* hash: 8u5ns */
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-lock__component_1dlzb {
29
+ } .pattern-lock__component_1j5nw {
30
30
  max-width: var(--pattern-lock-max-width);
31
31
  margin: var(--gap-xs) 0 var(--gap-xl) 0
32
- } .pattern-lock__component_1dlzb canvas {
32
+ } .pattern-lock__component_1j5nw canvas {
33
33
  display: block;
34
34
  margin: 0 auto;
35
- } .pattern-lock__hidden_1dlzb {
35
+ } .pattern-lock__hidden_1j5nw {
36
36
  visibility: hidden;
37
- } .pattern-lock__error_1dlzb {
37
+ } .pattern-lock__error_1j5nw {
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-lock__forgotBtn_1dlzb {
48
+ } .pattern-lock__forgotBtn_1j5nw {
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-lock__forgotBtn_1dlzb {
53
+ .pattern-lock__forgotBtn_1j5nw {
54
54
  margin-top: var(--gap-2xl);
55
55
  min-height: var(--size-s-height);
56
56
  }
57
57
 
58
- .pattern-lock__component_1dlzb {
58
+ .pattern-lock__component_1j5nw {
59
59
  margin-bottom: var(--gap-s);
60
60
  }
61
61
  } @media screen and (min-width: 390px) {
62
- .pattern-lock__forgotBtn_1dlzb {
62
+ .pattern-lock__forgotBtn_1j5nw {
63
63
  min-height: var(--size-m-height);
64
64
  }
65
65
 
66
- .pattern-lock__component_1dlzb {
66
+ .pattern-lock__component_1j5nw {
67
67
  margin-bottom: var(--gap-l);
68
68
  }
69
69
  }
@@ -7,7 +7,7 @@ import { getDataTestId } from '@alfalab/core-components-shared/modern';
7
7
  import { THEME_STATE, DEFAULT_EXTRA_BOUNDS, OBSERVE_OPTIONS, OBSERVABLE_TOKENS } from './consts.js';
8
8
  import { getSizes, getTheme, getColorByToken, getDefaultObserveTarget } from './utils.js';
9
9
 
10
- const styles = {"component":"pattern-lock__component_1dlzb","hidden":"pattern-lock__hidden_1dlzb","error":"pattern-lock__error_1dlzb","forgotBtn":"pattern-lock__forgotBtn_1dlzb"};
10
+ const styles = {"component":"pattern-lock__component_1j5nw","hidden":"pattern-lock__hidden_1j5nw","error":"pattern-lock__error_1j5nw","forgotBtn":"pattern-lock__forgotBtn_1j5nw"};
11
11
  require('./index.css')
12
12
 
13
13
  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: iwzha */
1
+ /* hash: 8u5ns */
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-lock__component_1dlzb {
29
+ } .pattern-lock__component_1j5nw {
30
30
  max-width: var(--pattern-lock-max-width);
31
31
  margin: var(--gap-xs) 0 var(--gap-xl) 0
32
- } .pattern-lock__component_1dlzb canvas {
32
+ } .pattern-lock__component_1j5nw canvas {
33
33
  display: block;
34
34
  margin: 0 auto;
35
- } .pattern-lock__hidden_1dlzb {
35
+ } .pattern-lock__hidden_1j5nw {
36
36
  visibility: hidden;
37
- } .pattern-lock__error_1dlzb {
37
+ } .pattern-lock__error_1j5nw {
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-lock__forgotBtn_1dlzb {
48
+ } .pattern-lock__forgotBtn_1j5nw {
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-lock__forgotBtn_1dlzb {
53
+ .pattern-lock__forgotBtn_1j5nw {
54
54
  margin-top: var(--gap-2xl);
55
55
  min-height: var(--size-s-height);
56
56
  }
57
57
 
58
- .pattern-lock__component_1dlzb {
58
+ .pattern-lock__component_1j5nw {
59
59
  margin-bottom: var(--gap-s);
60
60
  }
61
61
  } @media screen and (min-width: 390px) {
62
- .pattern-lock__forgotBtn_1dlzb {
62
+ .pattern-lock__forgotBtn_1j5nw {
63
63
  min-height: var(--size-m-height);
64
64
  }
65
65
 
66
- .pattern-lock__component_1dlzb {
66
+ .pattern-lock__component_1j5nw {
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.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Pattern lock",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-button": "^9.0.1",
18
+ "@alfalab/core-components-button": "^9.0.2",
19
19
  "@alfalab/core-components-gap": "^1.2.0",
20
20
  "@alfalab/core-components-shared": "^0.2.0",
21
21
  "react-canvas-pattern-lock": "^1.1.1",