@alfalab/core-components-pattern-lock 1.0.2 → 1.0.3
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 +2 -2
- package/esm/Component.js +2 -2
- package/esm/index.css +5 -5
- package/esm/index.js +1 -1
- package/esm/{utils-30ae747f.d.ts → utils-6ae747c7.d.ts} +0 -0
- package/esm/{utils-30ae747f.js → utils-6ae747c7.js} +0 -0
- package/esm/utils.js +1 -1
- package/index.css +5 -5
- package/index.js +1 -1
- package/modern/Component.js +1 -1
- package/modern/index.css +5 -5
- package/package.json +2 -2
- package/{utils-a2a5e3e1.d.ts → utils-b6b198af.d.ts} +0 -0
- package/{utils-a2a5e3e1.js → utils-b6b198af.js} +0 -0
- package/utils.js +1 -1
package/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var utils = require('./utils-
|
|
3
|
+
var utils = require('./utils-b6b198af.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var reactCanvasPatternLock = require('react-canvas-pattern-lock');
|
|
6
6
|
var cn = require('classnames');
|
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"component":"pattern-
|
|
15
|
+
var styles = {"component":"pattern-lock__component_16xpg","hidden":"pattern-lock__hidden_16xpg","error":"pattern-lock__error_16xpg"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var PatternLock = React.forwardRef(function (_a, ref) {
|
package/esm/Component.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __rest, g as getSizes, a as getTheme, b as getColorByToken, c as __assign, d as getDefaultObserveTarget } from './utils-
|
|
1
|
+
import { _ as __rest, g as getSizes, a as getTheme, b as getColorByToken, c as __assign, d as getDefaultObserveTarget } from './utils-6ae747c7.js';
|
|
2
2
|
import React, { forwardRef, useState, useEffect } from 'react';
|
|
3
3
|
import { ReactCanvasPatternLock } from 'react-canvas-pattern-lock';
|
|
4
4
|
import cn from 'classnames';
|
|
5
5
|
import { Gap } from '@alfalab/core-components-gap/esm';
|
|
6
6
|
import { THEME_STATE, OBSERVE_OPTIONS, OBSERVABLE_TOKENS } from './consts.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"pattern-
|
|
8
|
+
var styles = {"component":"pattern-lock__component_16xpg","hidden":"pattern-lock__hidden_16xpg","error":"pattern-lock__error_16xpg"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var PatternLock = forwardRef(function (_a, ref) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ys98z */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-negative: #d91d0b;
|
|
4
4
|
}
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--pattern-lock-max-width: 500px;
|
|
20
20
|
}
|
|
21
|
-
.pattern-
|
|
21
|
+
.pattern-lock__component_16xpg {
|
|
22
22
|
max-width: var(--pattern-lock-max-width);
|
|
23
23
|
margin: var(--gap-xs) 0 var(--gap-xl) 0
|
|
24
24
|
}
|
|
25
|
-
.pattern-
|
|
25
|
+
.pattern-lock__component_16xpg canvas {
|
|
26
26
|
display: block;
|
|
27
27
|
margin: 0 auto;
|
|
28
28
|
}
|
|
29
|
-
.pattern-
|
|
29
|
+
.pattern-lock__hidden_16xpg {
|
|
30
30
|
visibility: hidden;
|
|
31
31
|
}
|
|
32
|
-
.pattern-
|
|
32
|
+
.pattern-lock__error_16xpg {
|
|
33
33
|
font-size: 16px;
|
|
34
34
|
line-height: 24px;
|
|
35
35
|
font-weight: 400;
|
package/esm/index.js
CHANGED
|
File without changes
|
|
File without changes
|
package/esm/utils.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { b as getColorByToken, d as getDefaultObserveTarget, g as getSizes, a as getTheme } from './utils-
|
|
1
|
+
export { b as getColorByToken, d as getDefaultObserveTarget, g as getSizes, a as getTheme } from './utils-6ae747c7.js';
|
|
2
2
|
import './consts.js';
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ys98z */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-negative: #d91d0b;
|
|
4
4
|
}
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--pattern-lock-max-width: 500px;
|
|
20
20
|
}
|
|
21
|
-
.pattern-
|
|
21
|
+
.pattern-lock__component_16xpg {
|
|
22
22
|
max-width: var(--pattern-lock-max-width);
|
|
23
23
|
margin: var(--gap-xs) 0 var(--gap-xl) 0
|
|
24
24
|
}
|
|
25
|
-
.pattern-
|
|
25
|
+
.pattern-lock__component_16xpg canvas {
|
|
26
26
|
display: block;
|
|
27
27
|
margin: 0 auto;
|
|
28
28
|
}
|
|
29
|
-
.pattern-
|
|
29
|
+
.pattern-lock__hidden_16xpg {
|
|
30
30
|
visibility: hidden;
|
|
31
31
|
}
|
|
32
|
-
.pattern-
|
|
32
|
+
.pattern-lock__error_16xpg {
|
|
33
33
|
font-size: 16px;
|
|
34
34
|
line-height: 24px;
|
|
35
35
|
font-weight: 400;
|
package/index.js
CHANGED
package/modern/Component.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Gap } from '@alfalab/core-components-gap/modern';
|
|
|
5
5
|
import { THEME_STATE, OBSERVE_OPTIONS, OBSERVABLE_TOKENS } from './consts.js';
|
|
6
6
|
import { getSizes, getTheme, getColorByToken, getDefaultObserveTarget } from './utils.js';
|
|
7
7
|
|
|
8
|
-
const styles = {"component":"pattern-
|
|
8
|
+
const styles = {"component":"pattern-lock__component_16xpg","hidden":"pattern-lock__hidden_16xpg","error":"pattern-lock__error_16xpg"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const PatternLock = forwardRef(({ observeTokens = false, observerParams = {}, justifyNodes = 'space-between', className, error, dataTestId, ...restProps }, ref) => {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ys98z */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-negative: #d91d0b;
|
|
4
4
|
}
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--pattern-lock-max-width: 500px;
|
|
20
20
|
}
|
|
21
|
-
.pattern-
|
|
21
|
+
.pattern-lock__component_16xpg {
|
|
22
22
|
max-width: var(--pattern-lock-max-width);
|
|
23
23
|
margin: var(--gap-xs) 0 var(--gap-xl) 0
|
|
24
24
|
}
|
|
25
|
-
.pattern-
|
|
25
|
+
.pattern-lock__component_16xpg canvas {
|
|
26
26
|
display: block;
|
|
27
27
|
margin: 0 auto;
|
|
28
28
|
}
|
|
29
|
-
.pattern-
|
|
29
|
+
.pattern-lock__hidden_16xpg {
|
|
30
30
|
visibility: hidden;
|
|
31
31
|
}
|
|
32
|
-
.pattern-
|
|
32
|
+
.pattern-lock__error_16xpg {
|
|
33
33
|
font-size: 16px;
|
|
34
34
|
line-height: 24px;
|
|
35
35
|
font-weight: 400;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-pattern-lock",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Pattern lock",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@alfalab/core-components-gap": "^1.1.0",
|
|
19
|
-
"react-canvas-pattern-lock": "^1.0.
|
|
19
|
+
"react-canvas-pattern-lock": "^1.0.2",
|
|
20
20
|
"react-merge-refs": "^1.1.0",
|
|
21
21
|
"classnames": "^2.3.1"
|
|
22
22
|
}
|
|
File without changes
|
|
File without changes
|