@dtdot/lego 0.19.9 → 0.19.12
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.
|
@@ -117,6 +117,9 @@ const InlineCard = ({ children, size, value, onClick, gestureLeftIcon, gestureLe
|
|
|
117
117
|
const [gestureLeftActivated, setGestureLeftActivated] = useState(false);
|
|
118
118
|
const opacity = useTransform(x, xInput, ['1', '0']);
|
|
119
119
|
const handleDragEnd = (e, panInfo) => {
|
|
120
|
+
if (e.type === 'pointercancel') {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
120
123
|
// approx xInputMin * 3
|
|
121
124
|
if (panInfo.offset.x < -180 && onGestureLeft) {
|
|
122
125
|
setGestureLeftActivated(true);
|
|
@@ -5,5 +5,5 @@ export interface InlineCardSelectionProps {
|
|
|
5
5
|
value?: string[];
|
|
6
6
|
onChange?: (value: string[]) => void;
|
|
7
7
|
}
|
|
8
|
-
declare const InlineCardSelection: ({ children, name, value
|
|
8
|
+
declare const InlineCardSelection: ({ children, name, value, onChange, }: InlineCardSelectionProps) => JSX.Element;
|
|
9
9
|
export default InlineCardSelection;
|
|
@@ -59,6 +59,9 @@ const ErrorMessage = styled(motion.div) `
|
|
|
59
59
|
left: 38px;
|
|
60
60
|
bottom: 0;
|
|
61
61
|
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
touch-action: none;
|
|
64
|
+
|
|
62
65
|
font-family: ${(props) => props.theme.fonts.default.family};
|
|
63
66
|
font-size: ${(props) => props.theme.fonts.default.size};
|
|
64
67
|
color: ${(props) => props.theme.colours.statusDanger.main};
|
|
@@ -71,6 +74,9 @@ const ErrorContainer = styled(motion.div) `
|
|
|
71
74
|
display: flex;
|
|
72
75
|
align-items: center;
|
|
73
76
|
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
touch-action: none;
|
|
79
|
+
|
|
74
80
|
color: ${(props) => props.theme.colours.statusDanger.main};
|
|
75
81
|
`;
|
|
76
82
|
const ErrorInner = styled.div `
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dtdot/lego",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.12",
|
|
4
4
|
"description": "Some reusable components for building my applications",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,53 +17,52 @@
|
|
|
17
17
|
"build"
|
|
18
18
|
],
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@babel/cli": "^7.
|
|
21
|
-
"@babel/core": "^7.
|
|
22
|
-
"@babel/preset-react": "^7.
|
|
23
|
-
"@babel/preset-typescript": "^7.
|
|
20
|
+
"@babel/cli": "^7.18.10",
|
|
21
|
+
"@babel/core": "^7.19.0",
|
|
22
|
+
"@babel/preset-react": "^7.18.6",
|
|
23
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
24
24
|
"@storybook/addon-actions": "^6.4.19",
|
|
25
25
|
"@storybook/addon-essentials": "^6.4.19",
|
|
26
|
-
"@storybook/
|
|
27
|
-
"@storybook/react": "^6.4.19",
|
|
26
|
+
"@storybook/react": "^6.1.21",
|
|
28
27
|
"@types/identicon.js": "^2.3.1",
|
|
29
|
-
"@types/qrcode": "^1.
|
|
30
|
-
"@types/react": "^
|
|
31
|
-
"@types/react-dom": "^
|
|
28
|
+
"@types/qrcode": "^1.5.0",
|
|
29
|
+
"@types/react": "^18.0.20",
|
|
30
|
+
"@types/react-dom": "^18.0.6",
|
|
32
31
|
"@types/spark-md5": "^3.0.2",
|
|
33
|
-
"@types/styled-components": "^5.1.
|
|
32
|
+
"@types/styled-components": "^5.1.26",
|
|
34
33
|
"@types/uuid": "^8.3.4",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
36
|
-
"@typescript-eslint/parser": "^5.
|
|
37
|
-
"babel-loader": "^8.2.
|
|
38
|
-
"eslint": "^8.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
35
|
+
"@typescript-eslint/parser": "^5.37.0",
|
|
36
|
+
"babel-loader": "^8.2.5",
|
|
37
|
+
"eslint": "^8.23.1",
|
|
39
38
|
"eslint-config-prettier": "^8.5.0",
|
|
40
|
-
"eslint-plugin-prettier": "^4.
|
|
41
|
-
"eslint-plugin-react": "^7.
|
|
42
|
-
"eslint-plugin-react-hooks": "^4.
|
|
43
|
-
"prettier": "^2.
|
|
44
|
-
"prettier-eslint": "^
|
|
45
|
-
"react": "^
|
|
46
|
-
"react-dom": "^
|
|
39
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
40
|
+
"eslint-plugin-react": "^7.31.8",
|
|
41
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
42
|
+
"prettier": "^2.7.1",
|
|
43
|
+
"prettier-eslint": "^15.0.1",
|
|
44
|
+
"react": "^18.2.0",
|
|
45
|
+
"react-dom": "^18.2.0",
|
|
47
46
|
"storybook-addon-styled-component-theme": "^2.0.0",
|
|
48
47
|
"styled-components": "^5.3.5",
|
|
49
|
-
"typescript": "^4.
|
|
48
|
+
"typescript": "^4.8.3"
|
|
50
49
|
},
|
|
51
50
|
"peerDependencies": {
|
|
52
|
-
"react": "^
|
|
53
|
-
"react-dom": "^
|
|
51
|
+
"react": "^18.2.0",
|
|
52
|
+
"react-dom": "^18.2.0",
|
|
54
53
|
"styled-components": "^5.3.5"
|
|
55
54
|
},
|
|
56
55
|
"dependencies": {
|
|
57
|
-
"@fortawesome/fontawesome-svg-core": "^
|
|
58
|
-
"@fortawesome/free-solid-svg-icons": "^
|
|
59
|
-
"@fortawesome/react-fontawesome": "^0.
|
|
60
|
-
"@popperjs/core": "^2.11.
|
|
61
|
-
"framer-motion": "^
|
|
56
|
+
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
|
57
|
+
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
|
58
|
+
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
59
|
+
"@popperjs/core": "^2.11.6",
|
|
60
|
+
"framer-motion": "^7.3.4",
|
|
62
61
|
"identicon.js": "^2.3.3",
|
|
63
|
-
"qrcode": "^1.5.
|
|
62
|
+
"qrcode": "^1.5.1",
|
|
64
63
|
"react-popper": "^2.2.5",
|
|
65
64
|
"react-use-measure": "^2.1.1",
|
|
66
65
|
"spark-md5": "^3.0.2",
|
|
67
|
-
"uuid": "^
|
|
66
|
+
"uuid": "^9.0.0"
|
|
68
67
|
}
|
|
69
68
|
}
|