kitchen-simulator 1.1.1-test.32 → 1.1.1-test.35
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.
|
@@ -1,80 +1,62 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
borderRadius: 100,
|
|
61
|
-
padding: '16px 72px',
|
|
62
|
-
textTransform: 'none',
|
|
63
|
-
fontWeight: 500,
|
|
64
|
-
fontSize: '1rem',
|
|
65
|
-
'&:hover': {
|
|
66
|
-
backgroundColor: '#7c3aed'
|
|
67
|
-
},
|
|
68
|
-
'&:active': {
|
|
69
|
-
backgroundColor: '#5a25c2'
|
|
70
|
-
},
|
|
71
|
-
'&:disabled': {
|
|
72
|
-
backgroundColor: '#F3E5F5',
|
|
73
|
-
color: '#1D1B20'
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
});
|
|
2
|
+
var styles = {
|
|
3
|
+
root: {
|
|
4
|
+
display: 'flex',
|
|
5
|
+
justifyContent: 'center',
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
backgroundColor: '#D1C4E9',
|
|
8
|
+
background: 'url("/assets/img/svg/disclaimer/background.svg") no-repeat center',
|
|
9
|
+
backgroundSize: 'cover',
|
|
10
|
+
padding: '16px',
|
|
11
|
+
height: '100dvh',
|
|
12
|
+
width: '100dvw'
|
|
13
|
+
},
|
|
14
|
+
card: {
|
|
15
|
+
display: 'flex',
|
|
16
|
+
flexDirection: 'column',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
backgroundColor: '#fff',
|
|
19
|
+
borderRadius: 24,
|
|
20
|
+
width: '85vw',
|
|
21
|
+
textAlign: 'center',
|
|
22
|
+
boxShadow: '0 8px 20px rgba(0,0,0,0.08)',
|
|
23
|
+
height: 'fit-content',
|
|
24
|
+
opacity: '90%',
|
|
25
|
+
gap: '1rem',
|
|
26
|
+
padding: '1.5rem',
|
|
27
|
+
maxWidth: '364px'
|
|
28
|
+
},
|
|
29
|
+
title: {
|
|
30
|
+
fontWeight: 'bold',
|
|
31
|
+
fontSize: '1.5rem',
|
|
32
|
+
lineHeight: '133%',
|
|
33
|
+
letterSpacing: '0px',
|
|
34
|
+
textAlign: 'center',
|
|
35
|
+
verticalAlign: 'middle',
|
|
36
|
+
maxWidth: '200px'
|
|
37
|
+
},
|
|
38
|
+
body: {
|
|
39
|
+
fontWeight: 400,
|
|
40
|
+
fontStyle: 'normal',
|
|
41
|
+
fontSize: '0.875rem',
|
|
42
|
+
lineHeight: '143%',
|
|
43
|
+
letterSpacing: '0.17px',
|
|
44
|
+
color: '#49454F',
|
|
45
|
+
maxWidth: '90%'
|
|
46
|
+
},
|
|
47
|
+
button: {
|
|
48
|
+
marginTop: '0.5rem',
|
|
49
|
+
backgroundColor: '#6750A4',
|
|
50
|
+
color: '#fff',
|
|
51
|
+
borderRadius: 100,
|
|
52
|
+
padding: '16px 72px',
|
|
53
|
+
textTransform: 'none',
|
|
54
|
+
fontWeight: 500,
|
|
55
|
+
fontSize: '1rem',
|
|
56
|
+
border: 'none',
|
|
57
|
+
cursor: 'pointer'
|
|
58
|
+
}
|
|
59
|
+
};
|
|
78
60
|
export default function DisclaimerScreen(_ref) {
|
|
79
61
|
var _ref$open = _ref.open,
|
|
80
62
|
open = _ref$open === void 0 ? true : _ref$open,
|
|
@@ -85,7 +67,6 @@ export default function DisclaimerScreen(_ref) {
|
|
|
85
67
|
message = _ref$message === void 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, "We\u2019re adding the finishing touches to the mobile version.", /*#__PURE__*/React.createElement("br", null), "In the meantime, try our desktop version to start designing your dream room.") : _ref$message,
|
|
86
68
|
_ref$buttonText = _ref.buttonText,
|
|
87
69
|
buttonText = _ref$buttonText === void 0 ? 'Close' : _ref$buttonText;
|
|
88
|
-
var classes = useStyles();
|
|
89
70
|
useEffect(function () {
|
|
90
71
|
var viewportMeta = document.querySelector('meta[name="viewport"]');
|
|
91
72
|
if (!viewportMeta) {
|
|
@@ -97,21 +78,20 @@ export default function DisclaimerScreen(_ref) {
|
|
|
97
78
|
}, []);
|
|
98
79
|
if (!open) return null;
|
|
99
80
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
|
-
|
|
81
|
+
style: styles.root
|
|
101
82
|
}, /*#__PURE__*/React.createElement("div", {
|
|
102
|
-
|
|
83
|
+
style: styles.card
|
|
103
84
|
}, /*#__PURE__*/React.createElement("img", {
|
|
104
85
|
width: 40,
|
|
105
86
|
height: 40,
|
|
106
87
|
alt: "loog",
|
|
107
88
|
src: '/assets/img/svg/disclaimer/logo-dots.svg'
|
|
108
|
-
}), /*#__PURE__*/React.createElement(
|
|
109
|
-
|
|
110
|
-
}, titleTop), /*#__PURE__*/React.createElement(
|
|
111
|
-
|
|
112
|
-
}, message), /*#__PURE__*/React.createElement(
|
|
113
|
-
|
|
114
|
-
className: classes.button,
|
|
89
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
style: styles.title
|
|
91
|
+
}, titleTop), /*#__PURE__*/React.createElement("div", {
|
|
92
|
+
style: styles.body
|
|
93
|
+
}, message), /*#__PURE__*/React.createElement("button", {
|
|
94
|
+
style: styles.button,
|
|
115
95
|
onClick: onClose
|
|
116
96
|
}, buttonText)));
|
|
117
97
|
}
|
|
@@ -6,83 +6,65 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = DisclaimerScreen;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _core = require("@material-ui/core");
|
|
10
9
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
padding: '16px 72px',
|
|
70
|
-
textTransform: 'none',
|
|
71
|
-
fontWeight: 500,
|
|
72
|
-
fontSize: '1rem',
|
|
73
|
-
'&:hover': {
|
|
74
|
-
backgroundColor: '#7c3aed'
|
|
75
|
-
},
|
|
76
|
-
'&:active': {
|
|
77
|
-
backgroundColor: '#5a25c2'
|
|
78
|
-
},
|
|
79
|
-
'&:disabled': {
|
|
80
|
-
backgroundColor: '#F3E5F5',
|
|
81
|
-
color: '#1D1B20'
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
});
|
|
10
|
+
var styles = {
|
|
11
|
+
root: {
|
|
12
|
+
display: 'flex',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
backgroundColor: '#D1C4E9',
|
|
16
|
+
background: 'url("/assets/img/svg/disclaimer/background.svg") no-repeat center',
|
|
17
|
+
backgroundSize: 'cover',
|
|
18
|
+
padding: '16px',
|
|
19
|
+
height: '100dvh',
|
|
20
|
+
width: '100dvw'
|
|
21
|
+
},
|
|
22
|
+
card: {
|
|
23
|
+
display: 'flex',
|
|
24
|
+
flexDirection: 'column',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
backgroundColor: '#fff',
|
|
27
|
+
borderRadius: 24,
|
|
28
|
+
width: '85vw',
|
|
29
|
+
textAlign: 'center',
|
|
30
|
+
boxShadow: '0 8px 20px rgba(0,0,0,0.08)',
|
|
31
|
+
height: 'fit-content',
|
|
32
|
+
opacity: '90%',
|
|
33
|
+
gap: '1rem',
|
|
34
|
+
padding: '1.5rem',
|
|
35
|
+
maxWidth: '364px'
|
|
36
|
+
},
|
|
37
|
+
title: {
|
|
38
|
+
fontWeight: 'bold',
|
|
39
|
+
fontSize: '1.5rem',
|
|
40
|
+
lineHeight: '133%',
|
|
41
|
+
letterSpacing: '0px',
|
|
42
|
+
textAlign: 'center',
|
|
43
|
+
verticalAlign: 'middle',
|
|
44
|
+
maxWidth: '200px'
|
|
45
|
+
},
|
|
46
|
+
body: {
|
|
47
|
+
fontWeight: 400,
|
|
48
|
+
fontStyle: 'normal',
|
|
49
|
+
fontSize: '0.875rem',
|
|
50
|
+
lineHeight: '143%',
|
|
51
|
+
letterSpacing: '0.17px',
|
|
52
|
+
color: '#49454F',
|
|
53
|
+
maxWidth: '90%'
|
|
54
|
+
},
|
|
55
|
+
button: {
|
|
56
|
+
marginTop: '0.5rem',
|
|
57
|
+
backgroundColor: '#6750A4',
|
|
58
|
+
color: '#fff',
|
|
59
|
+
borderRadius: 100,
|
|
60
|
+
padding: '16px 72px',
|
|
61
|
+
textTransform: 'none',
|
|
62
|
+
fontWeight: 500,
|
|
63
|
+
fontSize: '1rem',
|
|
64
|
+
border: 'none',
|
|
65
|
+
cursor: 'pointer'
|
|
66
|
+
}
|
|
67
|
+
};
|
|
86
68
|
function DisclaimerScreen(_ref) {
|
|
87
69
|
var _ref$open = _ref.open,
|
|
88
70
|
open = _ref$open === void 0 ? true : _ref$open,
|
|
@@ -93,7 +75,6 @@ function DisclaimerScreen(_ref) {
|
|
|
93
75
|
message = _ref$message === void 0 ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, "We\u2019re adding the finishing touches to the mobile version.", /*#__PURE__*/_react["default"].createElement("br", null), "In the meantime, try our desktop version to start designing your dream room.") : _ref$message,
|
|
94
76
|
_ref$buttonText = _ref.buttonText,
|
|
95
77
|
buttonText = _ref$buttonText === void 0 ? 'Close' : _ref$buttonText;
|
|
96
|
-
var classes = useStyles();
|
|
97
78
|
(0, _react.useEffect)(function () {
|
|
98
79
|
var viewportMeta = document.querySelector('meta[name="viewport"]');
|
|
99
80
|
if (!viewportMeta) {
|
|
@@ -105,21 +86,20 @@ function DisclaimerScreen(_ref) {
|
|
|
105
86
|
}, []);
|
|
106
87
|
if (!open) return null;
|
|
107
88
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
|
-
|
|
89
|
+
style: styles.root
|
|
109
90
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
-
|
|
91
|
+
style: styles.card
|
|
111
92
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
112
93
|
width: 40,
|
|
113
94
|
height: 40,
|
|
114
95
|
alt: "loog",
|
|
115
96
|
src: '/assets/img/svg/disclaimer/logo-dots.svg'
|
|
116
|
-
}), /*#__PURE__*/_react["default"].createElement(
|
|
117
|
-
|
|
118
|
-
}, titleTop), /*#__PURE__*/_react["default"].createElement(
|
|
119
|
-
|
|
120
|
-
}, message), /*#__PURE__*/_react["default"].createElement(
|
|
121
|
-
|
|
122
|
-
className: classes.button,
|
|
97
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
style: styles.title
|
|
99
|
+
}, titleTop), /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
style: styles.body
|
|
101
|
+
}, message), /*#__PURE__*/_react["default"].createElement("button", {
|
|
102
|
+
style: styles.button,
|
|
123
103
|
onClick: onClose
|
|
124
104
|
}, buttonText)));
|
|
125
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kitchen-simulator",
|
|
3
|
-
"version": "1.1.1-test.
|
|
3
|
+
"version": "1.1.1-test.35",
|
|
4
4
|
"description": "It is a kitchen simulator.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -59,21 +59,22 @@
|
|
|
59
59
|
],
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"react": ">=16.9 <19",
|
|
62
|
-
"react-dom": ">=16.9 <19"
|
|
62
|
+
"react-dom": ">=16.9 <19",
|
|
63
|
+
"prop-types": "^15.8.1",
|
|
64
|
+
"@mapbox/react-range": "0.0.7",
|
|
65
|
+
"immutable": "3.8.2",
|
|
66
|
+
"immutablediff": "0.4.4",
|
|
67
|
+
"immutablepatch": "0.5.0",
|
|
68
|
+
"convert-units": "2.3.4"
|
|
63
69
|
},
|
|
64
70
|
"dependencies": {
|
|
65
|
-
"@mapbox/react-range": "0.0.7",
|
|
66
71
|
"@sentry/react": "^9.10.1",
|
|
67
72
|
"area-polygon": "1.0.1",
|
|
68
73
|
"axios": "^0.20.0",
|
|
69
74
|
"browserify-zlib": "^0.2.0",
|
|
70
75
|
"camera-controls": "^2.8.5",
|
|
71
|
-
"convert-units": "2.3.4",
|
|
72
76
|
"dotenv": "^16.4.7",
|
|
73
77
|
"history": "4.10.1",
|
|
74
|
-
"immutable": "3.8.2",
|
|
75
|
-
"immutablediff": "0.4.4",
|
|
76
|
-
"immutablepatch": "0.5.0",
|
|
77
78
|
"path-browserify": "^1.0.1",
|
|
78
79
|
"polylabel": "1.0.2",
|
|
79
80
|
"posthog-js": "^1.271.0",
|
|
@@ -85,10 +86,15 @@
|
|
|
85
86
|
"redux": "4.0.1",
|
|
86
87
|
"shortid": "2.2.14",
|
|
87
88
|
"stream-browserify": "^3.0.0",
|
|
88
|
-
"localstorage-slim": "^1.3.0"
|
|
89
|
-
"prop-types": "^15.8.1"
|
|
89
|
+
"localstorage-slim": "^1.3.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
+
"convert-units": "2.3.4",
|
|
93
|
+
"immutable": "3.8.2",
|
|
94
|
+
"immutablediff": "0.4.4",
|
|
95
|
+
"immutablepatch": "0.5.0",
|
|
96
|
+
"@mapbox/react-range": "0.0.7",
|
|
97
|
+
"prop-types": "^15.8.1",
|
|
92
98
|
"@babel/cli": "^7.28.3",
|
|
93
99
|
"@babel/core": "^7.28.4",
|
|
94
100
|
"@babel/preset-env": "^7.28.3",
|