@bigbinary/neeto-molecules 3.3.12 → 3.3.13
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/dist/DeviceIncompatibilityMessage.js +96 -0
- package/dist/DeviceIncompatibilityMessage.js.map +1 -0
- package/dist/cjs/DeviceIncompatibilityMessage.js +123 -0
- package/dist/cjs/DeviceIncompatibilityMessage.js.map +1 -0
- package/package.json +1 -1
- package/src/translations/en.json +3 -0
- package/types/DeviceIncompatibilityMessage.d.ts +17 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
|
|
5
|
+
import Typography from '@bigbinary/neetoui/Typography';
|
|
6
|
+
import { p as propTypes } from './index-e5588516.js';
|
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var _rect, _path, _g, _g2, _path2, _defs;
|
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
|
+
var SvgScreenSize = function SvgScreenSize(props) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
|
+
width: 86,
|
|
14
|
+
height: 59,
|
|
15
|
+
fill: "none",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
17
|
+
}, props), _rect || (_rect = /*#__PURE__*/React.createElement("rect", {
|
|
18
|
+
x: 7.951,
|
|
19
|
+
y: 2.061,
|
|
20
|
+
width: 70.094,
|
|
21
|
+
height: 45.532,
|
|
22
|
+
rx: 4.394,
|
|
23
|
+
stroke: "#87929D",
|
|
24
|
+
strokeWidth: 4.121
|
|
25
|
+
})), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
26
|
+
d: "M28.871 32.02 57.34 16.708",
|
|
27
|
+
stroke: "#87929D",
|
|
28
|
+
strokeWidth: 3,
|
|
29
|
+
strokeLinecap: "round"
|
|
30
|
+
})), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
31
|
+
clipPath: "url(#screen-size_svg__a)"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
33
|
+
d: "m57.46 21.788 1.798-5.97-5.969-1.798",
|
|
34
|
+
stroke: "#87929D",
|
|
35
|
+
strokeWidth: 2.088,
|
|
36
|
+
strokeLinecap: "round",
|
|
37
|
+
strokeLinejoin: "round"
|
|
38
|
+
}))), _g2 || (_g2 = /*#__PURE__*/React.createElement("g", {
|
|
39
|
+
clipPath: "url(#screen-size_svg__b)"
|
|
40
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
41
|
+
d: "m28.525 27.162-1.37 6.093 6.093 1.37",
|
|
42
|
+
stroke: "#87929D",
|
|
43
|
+
strokeWidth: 2.092,
|
|
44
|
+
strokeLinecap: "round",
|
|
45
|
+
strokeLinejoin: "round"
|
|
46
|
+
}))), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
d: "M3 56.355h80",
|
|
48
|
+
stroke: "#87929D",
|
|
49
|
+
strokeWidth: 4.121,
|
|
50
|
+
strokeLinecap: "round"
|
|
51
|
+
})), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
52
|
+
id: "screen-size_svg__a"
|
|
53
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
54
|
+
fill: "#fff",
|
|
55
|
+
transform: "rotate(-28.231 53.398 -92.874) skewX(-.001)",
|
|
56
|
+
d: "M0 0h11.137v11.137H0z"
|
|
57
|
+
})), /*#__PURE__*/React.createElement("clipPath", {
|
|
58
|
+
id: "screen-size_svg__b"
|
|
59
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
60
|
+
fill: "#fff",
|
|
61
|
+
transform: "rotate(147.671 13.156 22.364) skewX(-.001)",
|
|
62
|
+
d: "M0 0h11.157v11.157H0z"
|
|
63
|
+
})))));
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
var DeviceIncompatibilityMessage = withT(function (_ref) {
|
|
67
|
+
var t = _ref.t,
|
|
68
|
+
_ref$className = _ref.className,
|
|
69
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
70
|
+
_ref$description = _ref.description,
|
|
71
|
+
description = _ref$description === void 0 ? "" : _ref$description;
|
|
72
|
+
return /*#__PURE__*/jsxs("div", {
|
|
73
|
+
className: classnames("mx-auto flex w-full max-w-80 flex-col items-center justify-center p-4", className),
|
|
74
|
+
children: [/*#__PURE__*/jsx(SvgScreenSize, {}), /*#__PURE__*/jsx(Typography, {
|
|
75
|
+
className: "neeto-ui-text-center mt-6",
|
|
76
|
+
"data-cy": "device-incompatibility-description",
|
|
77
|
+
"data-testid": "device-incompatibility-description",
|
|
78
|
+
style: "body2",
|
|
79
|
+
children: description || t("neetoMolecules.deviceIncompatibility.description")
|
|
80
|
+
})]
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
DeviceIncompatibilityMessage.propTypes = {
|
|
84
|
+
/**
|
|
85
|
+
* Additional classes to be added to the modal.
|
|
86
|
+
*/
|
|
87
|
+
className: propTypes.exports.string,
|
|
88
|
+
/**
|
|
89
|
+
* To provide description.
|
|
90
|
+
*/
|
|
91
|
+
description: propTypes.exports.node
|
|
92
|
+
};
|
|
93
|
+
var index = /*#__PURE__*/React__default.memo(DeviceIncompatibilityMessage);
|
|
94
|
+
|
|
95
|
+
export { index as default };
|
|
96
|
+
//# sourceMappingURL=DeviceIncompatibilityMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceIncompatibilityMessage.js","sources":["../src/assets/images/screen-size.svg","../src/components/DeviceIncompatibilityMessage/index.jsx"],"sourcesContent":["<svg width=\"86\" height=\"59\" viewBox=\"0 0 86 59\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"7.95124\" y=\"2.06061\" width=\"70.0943\" height=\"45.5319\" rx=\"4.39424\" stroke=\"#87929D\" stroke-width=\"4.12122\"/>\n<path d=\"M28.8711 32.0195L57.3394 16.7079\" stroke=\"#87929D\" stroke-width=\"3\" stroke-linecap=\"round\"/>\n<g clip-path=\"url(#clip0_3430_7602)\">\n<path d=\"M57.4595 21.7876L59.2582 15.8183L53.2891 14.0195\" stroke=\"#87929D\" stroke-width=\"2.08795\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</g>\n<g clip-path=\"url(#clip1_3430_7602)\">\n<path d=\"M28.5248 27.1616L27.1548 33.255L33.248 34.625\" stroke=\"#87929D\" stroke-width=\"2.09165\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</g>\n<path d=\"M3 56.3555H83\" stroke=\"#87929D\" stroke-width=\"4.12122\" stroke-linecap=\"round\"/>\n<defs>\n<clipPath id=\"clip0_3430_7602\">\n<rect width=\"11.1368\" height=\"11.1369\" fill=\"white\" transform=\"matrix(0.88105 -0.473022 0.47301 0.881057 50.2832 14.2109)\"/>\n</clipPath>\n<clipPath id=\"clip1_3430_7602\">\n<rect width=\"11.1566\" height=\"11.1567\" fill=\"white\" transform=\"matrix(-0.844992 0.534779 -0.534767 -0.845 36.2324 34.2266)\"/>\n</clipPath>\n</defs>\n</svg>\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport ScreenSizeImage from \"assets/images/screen-size\";\n\nconst DeviceIncompatibilityMessage = withT(\n ({ t, className = \"\", description = \"\" }) => (\n <div\n className={classnames(\n \"mx-auto flex w-full max-w-80 flex-col items-center justify-center p-4\",\n className\n )}\n >\n <ScreenSizeImage />\n <Typography\n className=\"neeto-ui-text-center mt-6\"\n data-cy=\"device-incompatibility-description\"\n data-testid=\"device-incompatibility-description\"\n style=\"body2\"\n >\n {description || t(\"neetoMolecules.deviceIncompatibility.description\")}\n </Typography>\n </div>\n )\n);\n\nDeviceIncompatibilityMessage.propTypes = {\n /**\n * Additional classes to be added to the modal.\n */\n className: PropTypes.string,\n /**\n * To provide description.\n */\n description: PropTypes.node,\n};\n\nexport default React.memo(DeviceIncompatibilityMessage);\n"],"names":["DeviceIncompatibilityMessage","withT","_ref","t","_ref$className","className","_ref$description","description","_jsxs","classnames","children","_jsx","ScreenSizeImage","Typography","style","propTypes","PropTypes","string","node","React","memo"],"mappings":";;;;;;;;AAAA,IAAI,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC;AACzC,SAAS,QAAQ,GAAG,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,EAAE;AAEnV,IAAI,aAAa,GAAG,SAAS,aAAa,CAAC,KAAK,EAAE;AAClD,EAAE,oBAAoB,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC;AAC1D,IAAI,KAAK,E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D,gBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,gBAAA,CAAA;AAAA,EAAA,oBACpCE,IAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,SAAS,EAAEI,UAAU,CACnB,uEAAuE,EACvEJ,SACF,CAAE;IAAAK,QAAA,EAAA,cAEFC,GAAA,CAACC,aAAe,IAAE,CAAC,eACnBD,GAAA,CAACE,UAAU,EAAA;AACTR,MAAAA,SAAS,EAAC,2BAA2B;AACrC,MAAA,SAAA,EAAQ,oCAAoC;AAC5C,MAAA,aAAA,EAAY,oCAAoC;AAChDS,MAAAA,KAAK,EAAC,OAAO;AAAAJ,MAAAA,QAAA,EAEZH,WAAW,IAAIJ,CAAC,CAAC,kDAAkD,CAAA;AAAC,KAC3D,CAAC,CAAA;AAAA,GACV,CAAC,CAAA;AAAA,CAEV,CAAC,CAAA;AAEDH,4BAA4B,CAACe,SAAS,GAAG;AACvC;AACF;AACA;EACEV,SAAS,EAAEW,iBAAS,CAACC,MAAM;AAC3B;AACF;AACA;EACEV,WAAW,EAAES,iBAAS,CAACE,IAAAA;AACzB,CAAC,CAAA;AAED,YAAA,aAAeC,cAAK,CAACC,IAAI,CAACpB,4BAA4B,CAAC;;;;"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var classnames = require('classnames');
|
|
5
|
+
var withT = require('@bigbinary/neeto-commons-frontend/react-utils/withT');
|
|
6
|
+
var Typography = require('@bigbinary/neetoui/Typography');
|
|
7
|
+
var index$1 = require('./index-248c4f4c.js');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
function _interopNamespace(e) {
|
|
13
|
+
if (e && e.__esModule) return e;
|
|
14
|
+
var n = Object.create(null);
|
|
15
|
+
if (e) {
|
|
16
|
+
Object.keys(e).forEach(function (k) {
|
|
17
|
+
if (k !== 'default') {
|
|
18
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return e[k]; }
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
n["default"] = e;
|
|
27
|
+
return Object.freeze(n);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
31
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
32
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
33
|
+
var withT__default = /*#__PURE__*/_interopDefaultLegacy(withT);
|
|
34
|
+
var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
|
|
35
|
+
|
|
36
|
+
var _rect, _path, _g, _g2, _path2, _defs;
|
|
37
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
38
|
+
var SvgScreenSize = function SvgScreenSize(props) {
|
|
39
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
40
|
+
width: 86,
|
|
41
|
+
height: 59,
|
|
42
|
+
fill: "none",
|
|
43
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
44
|
+
}, props), _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
|
|
45
|
+
x: 7.951,
|
|
46
|
+
y: 2.061,
|
|
47
|
+
width: 70.094,
|
|
48
|
+
height: 45.532,
|
|
49
|
+
rx: 4.394,
|
|
50
|
+
stroke: "#87929D",
|
|
51
|
+
strokeWidth: 4.121
|
|
52
|
+
})), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
53
|
+
d: "M28.871 32.02 57.34 16.708",
|
|
54
|
+
stroke: "#87929D",
|
|
55
|
+
strokeWidth: 3,
|
|
56
|
+
strokeLinecap: "round"
|
|
57
|
+
})), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
|
|
58
|
+
clipPath: "url(#screen-size_svg__a)"
|
|
59
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
60
|
+
d: "m57.46 21.788 1.798-5.97-5.969-1.798",
|
|
61
|
+
stroke: "#87929D",
|
|
62
|
+
strokeWidth: 2.088,
|
|
63
|
+
strokeLinecap: "round",
|
|
64
|
+
strokeLinejoin: "round"
|
|
65
|
+
}))), _g2 || (_g2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
66
|
+
clipPath: "url(#screen-size_svg__b)"
|
|
67
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
68
|
+
d: "m28.525 27.162-1.37 6.093 6.093 1.37",
|
|
69
|
+
stroke: "#87929D",
|
|
70
|
+
strokeWidth: 2.092,
|
|
71
|
+
strokeLinecap: "round",
|
|
72
|
+
strokeLinejoin: "round"
|
|
73
|
+
}))), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
74
|
+
d: "M3 56.355h80",
|
|
75
|
+
stroke: "#87929D",
|
|
76
|
+
strokeWidth: 4.121,
|
|
77
|
+
strokeLinecap: "round"
|
|
78
|
+
})), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
79
|
+
id: "screen-size_svg__a"
|
|
80
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
81
|
+
fill: "#fff",
|
|
82
|
+
transform: "rotate(-28.231 53.398 -92.874) skewX(-.001)",
|
|
83
|
+
d: "M0 0h11.137v11.137H0z"
|
|
84
|
+
})), /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
85
|
+
id: "screen-size_svg__b"
|
|
86
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
87
|
+
fill: "#fff",
|
|
88
|
+
transform: "rotate(147.671 13.156 22.364) skewX(-.001)",
|
|
89
|
+
d: "M0 0h11.157v11.157H0z"
|
|
90
|
+
})))));
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
var DeviceIncompatibilityMessage = withT__default["default"](function (_ref) {
|
|
94
|
+
var t = _ref.t,
|
|
95
|
+
_ref$className = _ref.className,
|
|
96
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
97
|
+
_ref$description = _ref.description,
|
|
98
|
+
description = _ref$description === void 0 ? "" : _ref$description;
|
|
99
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
100
|
+
className: classnames__default["default"]("mx-auto flex w-full max-w-80 flex-col items-center justify-center p-4", className),
|
|
101
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(SvgScreenSize, {}), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
102
|
+
className: "neeto-ui-text-center mt-6",
|
|
103
|
+
"data-cy": "device-incompatibility-description",
|
|
104
|
+
"data-testid": "device-incompatibility-description",
|
|
105
|
+
style: "body2",
|
|
106
|
+
children: description || t("neetoMolecules.deviceIncompatibility.description")
|
|
107
|
+
})]
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
DeviceIncompatibilityMessage.propTypes = {
|
|
111
|
+
/**
|
|
112
|
+
* Additional classes to be added to the modal.
|
|
113
|
+
*/
|
|
114
|
+
className: index$1.propTypes.exports.string,
|
|
115
|
+
/**
|
|
116
|
+
* To provide description.
|
|
117
|
+
*/
|
|
118
|
+
description: index$1.propTypes.exports.node
|
|
119
|
+
};
|
|
120
|
+
var index = /*#__PURE__*/React__default["default"].memo(DeviceIncompatibilityMessage);
|
|
121
|
+
|
|
122
|
+
module.exports = index;
|
|
123
|
+
//# sourceMappingURL=DeviceIncompatibilityMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceIncompatibilityMessage.js","sources":["../../src/assets/images/screen-size.svg","../../src/components/DeviceIncompatibilityMessage/index.jsx"],"sourcesContent":["<svg width=\"86\" height=\"59\" viewBox=\"0 0 86 59\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect x=\"7.95124\" y=\"2.06061\" width=\"70.0943\" height=\"45.5319\" rx=\"4.39424\" stroke=\"#87929D\" stroke-width=\"4.12122\"/>\n<path d=\"M28.8711 32.0195L57.3394 16.7079\" stroke=\"#87929D\" stroke-width=\"3\" stroke-linecap=\"round\"/>\n<g clip-path=\"url(#clip0_3430_7602)\">\n<path d=\"M57.4595 21.7876L59.2582 15.8183L53.2891 14.0195\" stroke=\"#87929D\" stroke-width=\"2.08795\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</g>\n<g clip-path=\"url(#clip1_3430_7602)\">\n<path d=\"M28.5248 27.1616L27.1548 33.255L33.248 34.625\" stroke=\"#87929D\" stroke-width=\"2.09165\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</g>\n<path d=\"M3 56.3555H83\" stroke=\"#87929D\" stroke-width=\"4.12122\" stroke-linecap=\"round\"/>\n<defs>\n<clipPath id=\"clip0_3430_7602\">\n<rect width=\"11.1368\" height=\"11.1369\" fill=\"white\" transform=\"matrix(0.88105 -0.473022 0.47301 0.881057 50.2832 14.2109)\"/>\n</clipPath>\n<clipPath id=\"clip1_3430_7602\">\n<rect width=\"11.1566\" height=\"11.1567\" fill=\"white\" transform=\"matrix(-0.844992 0.534779 -0.534767 -0.845 36.2324 34.2266)\"/>\n</clipPath>\n</defs>\n</svg>\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport withT from \"neetocommons/react-utils/withT\";\nimport { Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nimport ScreenSizeImage from \"assets/images/screen-size\";\n\nconst DeviceIncompatibilityMessage = withT(\n ({ t, className = \"\", description = \"\" }) => (\n <div\n className={classnames(\n \"mx-auto flex w-full max-w-80 flex-col items-center justify-center p-4\",\n className\n )}\n >\n <ScreenSizeImage />\n <Typography\n className=\"neeto-ui-text-center mt-6\"\n data-cy=\"device-incompatibility-description\"\n data-testid=\"device-incompatibility-description\"\n style=\"body2\"\n >\n {description || t(\"neetoMolecules.deviceIncompatibility.description\")}\n </Typography>\n </div>\n )\n);\n\nDeviceIncompatibilityMessage.propTypes = {\n /**\n * Additional classes to be added to the modal.\n */\n className: PropTypes.string,\n /**\n * To provide description.\n */\n description: PropTypes.node,\n};\n\nexport default React.memo(DeviceIncompatibilityMessage);\n"],"names":["React","DeviceIncompatibilityMessage","withT","_ref","t","_ref$className","className","_ref$description","description","_jsxs","classnames","children","_jsx","ScreenSizeImage","Typography","style","propTypes","PropTypes","string","node","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC;AACzC,SAAS,QAAQ,GAAG,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,EAAE;AAEnV,IAAI,aAAa,G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,CAAEG,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA;IAAAE,gBAAA,GAAAJ,IAAA,CAAEK,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,gBAAA,CAAA;AAAA,EAAA,oBACpCE,eAAA,CAAA,KAAA,EAAA;AACEH,IAAAA,SAAS,EAAEI,8BAAU,CACnB,uEAAuE,EACvEJ,SACF,CAAE;IAAAK,QAAA,EAAA,cAEFC,cAAA,CAACC,aAAe,IAAE,CAAC,eACnBD,cAAA,CAACE,8BAAU,EAAA;AACTR,MAAAA,SAAS,EAAC,2BAA2B;AACrC,MAAA,SAAA,EAAQ,oCAAoC;AAC5C,MAAA,aAAA,EAAY,oCAAoC;AAChDS,MAAAA,KAAK,EAAC,OAAO;AAAAJ,MAAAA,QAAA,EAEZH,WAAW,IAAIJ,CAAC,CAAC,kDAAkD,CAAA;AAAC,KAC3D,CAAC,CAAA;AAAA,GACV,CAAC,CAAA;AAAA,CAEV,CAAC,CAAA;AAEDH,4BAA4B,CAACe,SAAS,GAAG;AACvC;AACF;AACA;EACEV,SAAS,EAAEW,yBAAS,CAACC,MAAM;AAC3B;AACF;AACA;EACEV,WAAW,EAAES,yBAAS,CAACE,IAAAA;AACzB,CAAC,CAAA;AAED,YAAA,aAAenB,yBAAK,CAACoB,IAAI,CAACnB,4BAA4B,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.13",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
package/src/translations/en.json
CHANGED
|
@@ -735,6 +735,9 @@
|
|
|
735
735
|
"oneFileAllowed": "Please upload only 1 file",
|
|
736
736
|
"chooseFileOrDragHere": "Choose file or drag here"
|
|
737
737
|
}
|
|
738
|
+
},
|
|
739
|
+
"deviceIncompatibility": {
|
|
740
|
+
"description": "The design tab is currently not supported in this screen size. Please switch to a screen larger than 768px wide."
|
|
738
741
|
}
|
|
739
742
|
}
|
|
740
743
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Used to indicate screen incompatibility on smaller devices.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
*
|
|
8
|
+
* import DeviceIncompatibilityMessage from "@bigbinary/neeto-molecules/DeviceIncompatibilityMessage";
|
|
9
|
+
*
|
|
10
|
+
* const App = () => <DeviceIncompatibilityMessage />;
|
|
11
|
+
* @endexample
|
|
12
|
+
*/
|
|
13
|
+
const DeviceIncompatibilityMessage: React.FC<{
|
|
14
|
+
description?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}>;
|
|
17
|
+
export default DeviceIncompatibilityMessage;
|