ordering-ui-external 1.6.2 → 1.6.4
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/_bundles/{0.ordering-ui.9399c2752e3ad5f2250b.js → 0.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{1.ordering-ui.9399c2752e3ad5f2250b.js → 1.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{2.ordering-ui.9399c2752e3ad5f2250b.js → 2.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{4.ordering-ui.9399c2752e3ad5f2250b.js → 4.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{5.ordering-ui.9399c2752e3ad5f2250b.js → 5.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{6.ordering-ui.9399c2752e3ad5f2250b.js → 6.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{7.ordering-ui.9399c2752e3ad5f2250b.js → 7.ordering-ui.2b0f914882a17cd0b389.js} +1 -1
- package/_bundles/{7.ordering-ui.9399c2752e3ad5f2250b.js.LICENSE.txt → 7.ordering-ui.2b0f914882a17cd0b389.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.9399c2752e3ad5f2250b.js → 8.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/{9.ordering-ui.9399c2752e3ad5f2250b.js → 9.ordering-ui.2b0f914882a17cd0b389.js} +0 -0
- package/_bundles/ordering-ui.2b0f914882a17cd0b389.js +2 -0
- package/_bundles/{ordering-ui.9399c2752e3ad5f2250b.js.LICENSE.txt → ordering-ui.2b0f914882a17cd0b389.js.LICENSE.txt} +0 -0
- package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +31 -14
- package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +36 -22
- package/_modules/themes/five/src/components/Checkout/index.js +2 -1
- package/_modules/themes/five/src/components/Header/index.js +2 -2
- package/_modules/themes/five/src/components/Header/styles.js +13 -4
- package/_modules/themes/five/src/components/LoginForm/index.js +8 -17
- package/_modules/themes/five/src/components/LoginForm/styles.js +1 -1
- package/_modules/themes/five/src/components/SignUpForm/index.js +7 -13
- package/_modules/themes/five/src/components/SignUpForm/styles.js +33 -33
- package/_modules/themes/five/src/styles/Buttons/index.js +3 -1
- package/package.json +2 -2
- package/src/themes/five/src/components/BusinessBasicInformation/index.js +95 -73
- package/src/themes/five/src/components/BusinessBasicInformation/styles.js +19 -4
- package/src/themes/five/src/components/Checkout/index.js +4 -1
- package/src/themes/five/src/components/Header/index.js +2 -2
- package/src/themes/five/src/components/Header/styles.js +40 -0
- package/src/themes/five/src/components/LoginForm/index.js +5 -11
- package/src/themes/five/src/components/LoginForm/styles.js +29 -8
- package/src/themes/five/src/components/SignUpForm/index.js +6 -12
- package/src/themes/five/src/components/SignUpForm/styles.js +3 -1
- package/src/themes/five/src/styles/Buttons/index.js +4 -0
- package/_bundles/ordering-ui.9399c2752e3ad5f2250b.js +0 -2
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.WrapperPassword = exports.ValidationText = exports.TogglePassword = exports.Title = exports.TermsConditionWrapper = exports.SocialButtons = exports.SkeletonWrapper = exports.SkeletonSocialWrapper = exports.SignUpContainer = exports.RedirectLink = exports.ReCaptchaWrapper = exports.PromotionsWrapper = exports.LoginDivider = exports.InputWrapper = exports.InputContainer = exports.InputBeforeIcon = exports.FormSide = exports.FormInput = exports.DividerLine = exports.CheckboxArea = exports.BussinessAndDriverSignUp = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34;
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
13
|
-
var SignUpContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n display: flex;\n
|
|
13
|
+
var SignUpContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n display: flex;\n ", "\n padding: 0 10px;\n box-sizing: border-box;\n\n flex-direction: column;\n\n @media (min-width: 768px) {\n flex-direction: row;\n }\n"])), function (_ref) {
|
|
14
14
|
var isPopup = _ref.isPopup;
|
|
15
|
-
return isPopup
|
|
15
|
+
return !isPopup && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-height: calc(100vh - 65px);\n "])));
|
|
16
16
|
});
|
|
17
17
|
exports.SignUpContainer = SignUpContainer;
|
|
18
|
-
var Side = _styledComponents.default.div(
|
|
19
|
-
var FormSide = (0, _styledComponents.default)(Side)(
|
|
18
|
+
var Side = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n"])));
|
|
19
|
+
var FormSide = (0, _styledComponents.default)(Side)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex-direction: column;\n align-items: center;\n margin: auto;\n\n @media (min-width: 992px) {\n font-size: ", ";\n }\n\n @media (min-width: 1200px){\n font-size: ", ";\n }\n"])), function (_ref2) {
|
|
20
20
|
var isPopup = _ref2.isPopup;
|
|
21
21
|
return isPopup ? '12px' : '1em';
|
|
22
22
|
}, function (_ref3) {
|
|
@@ -24,7 +24,7 @@ var FormSide = (0, _styledComponents.default)(Side)(_templateObject3 || (_templa
|
|
|
24
24
|
return isPopup ? '0.9em' : '1em';
|
|
25
25
|
});
|
|
26
26
|
exports.FormSide = FormSide;
|
|
27
|
-
var FormInput = _styledComponents.default.form(
|
|
27
|
+
var FormInput = _styledComponents.default.form(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: ", ";\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n input {\n &::placeholder, .PhoneInputInput::placeholder {\n color: ", " !important;\n }\n\n &:-ms-input-placeholder, .PhoneInputInput:-ms-input-placeholder {\n color: ", " !important;\n }\n\n &::-ms-input-placeholder, .PhoneInputInput::-ms-input-placeholder {\n color: ", " !important;\n }\n }\n\n div.phone_number {\n margin: 10px 0px;\n width: 100%;\n }\n\n input.form:not(:last-child) {\n margin: 5px 0px;\n padding: 8px 20px;\n }\n\n button {\n margin-top: 10px;\n padding: 5px;\n width: 100%;\n }\n"])), function (_ref4) {
|
|
28
28
|
var isPopup = _ref4.isPopup;
|
|
29
29
|
return isPopup ? '100%' : '80%';
|
|
30
30
|
}, function (props) {
|
|
@@ -38,16 +38,16 @@ var FormInput = _styledComponents.default.form(_templateObject4 || (_templateObj
|
|
|
38
38
|
return (_props$theme$colors3 = props.theme.colors) === null || _props$theme$colors3 === void 0 ? void 0 : _props$theme$colors3.lightGray;
|
|
39
39
|
});
|
|
40
40
|
exports.FormInput = FormInput;
|
|
41
|
-
var RedirectLink = _styledComponents.default.div(
|
|
41
|
+
var RedirectLink = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n padding: 10px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n margin: 0px;\n font-size: 17px;\n\n span {\n margin-right: 5px;\n color: black;\n\n ", "\n }\n\n a {\n color: ", " !important;\n text-decoration: none;\n &:link, &:visited {\n color: ", " !important;\n }\n &:hover {\n text-decoration: underline !important;\n }\n }\n\n * {\n margin: 0px;\n padding: 0px;\n }\n\n ", "\n\n @media (min-width: 425px) {\n flex-direction: row;\n }\n\n @media (min-width: 768px) {\n font-size: 14px;\n }\n\n @media (min-width: 992px) {\n font-size: ", ";\n flex-direction: row;\n }\n\n @media (min-width: 1200px) {\n ", ";\n }\n"])), function (props) {
|
|
42
42
|
var _props$theme;
|
|
43
|
-
return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(
|
|
43
|
+
return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
|
|
44
44
|
}, function (props) {
|
|
45
45
|
return props.theme.colors.primary;
|
|
46
46
|
}, function (props) {
|
|
47
47
|
return props.theme.colors.primary;
|
|
48
48
|
}, function (_ref5) {
|
|
49
49
|
var register = _ref5.register;
|
|
50
|
-
return register && (0, _styledComponents.css)(
|
|
50
|
+
return register && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: calc(95% - 20px);\n\n @media (min-width: 481px) {\n width: ", ";\n }\n "])), function (_ref6) {
|
|
51
51
|
var isPopup = _ref6.isPopup;
|
|
52
52
|
return isPopup ? 'calc(100% - 20px)' : 'calc(80% - 20px)';
|
|
53
53
|
});
|
|
@@ -56,74 +56,74 @@ var RedirectLink = _styledComponents.default.div(_templateObject5 || (_templateO
|
|
|
56
56
|
return isPopup ? '13px' : '18px';
|
|
57
57
|
}, function (_ref8) {
|
|
58
58
|
var isPopup = _ref8.isPopup;
|
|
59
|
-
return isPopup && (0, _styledComponents.css)(
|
|
59
|
+
return isPopup && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-size: 16px;\n "])));
|
|
60
60
|
});
|
|
61
61
|
exports.RedirectLink = RedirectLink;
|
|
62
|
-
var SocialButtons = _styledComponents.default.div(
|
|
62
|
+
var SocialButtons = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: ", ";\n\n button {\n width: 100%;\n padding: 5px;\n color: #000000;\n margin-bottom: 15px;\n\n img {\n width: 30px;\n }\n\n div {\n font-size: 16px;\n }\n }\n"])), function (_ref9) {
|
|
63
63
|
var isPopup = _ref9.isPopup;
|
|
64
64
|
return isPopup ? '100%' : '80%';
|
|
65
65
|
});
|
|
66
66
|
exports.SocialButtons = SocialButtons;
|
|
67
|
-
var Title = _styledComponents.default.h1(
|
|
67
|
+
var Title = _styledComponents.default.h1(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-weight: 600;\n font-size: 24px;\n margin-top: 0;\n margin-bottom: 30px;\n color: ", ";\n"])), function (props) {
|
|
68
68
|
return props.theme.colors.darkTextColor;
|
|
69
69
|
});
|
|
70
70
|
exports.Title = Title;
|
|
71
|
-
var SkeletonWrapper = _styledComponents.default.div(
|
|
71
|
+
var SkeletonWrapper = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n span{\n margin: 10px 0;\n border-radius: 30px;\n }\n"])));
|
|
72
72
|
exports.SkeletonWrapper = SkeletonWrapper;
|
|
73
|
-
var SkeletonSocialWrapper = (0, _styledComponents.default)(SkeletonWrapper)(
|
|
73
|
+
var SkeletonSocialWrapper = (0, _styledComponents.default)(SkeletonWrapper)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n width: ", ";\n span{\n margin-top: 0;\n }\n"])), function (_ref10) {
|
|
74
74
|
var isPopup = _ref10.isPopup;
|
|
75
75
|
return isPopup ? '100%' : '80%';
|
|
76
76
|
});
|
|
77
77
|
exports.SkeletonSocialWrapper = SkeletonSocialWrapper;
|
|
78
|
-
var WrapperPassword = _styledComponents.default.div(
|
|
78
|
+
var WrapperPassword = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n width: 100%;\n position: relative;\n input{\n box-sizing: border-box;\n width: 100%;\n padding-right: 40px !important;\n padding-left: 40px !important;\n }\n"])));
|
|
79
79
|
exports.WrapperPassword = WrapperPassword;
|
|
80
|
-
var TogglePassword = _styledComponents.default.span(
|
|
80
|
+
var TogglePassword = _styledComponents.default.span(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n position: absolute;\n font-weight: 300;\n color: #333;\n font-size: 24px;\n transform: translate(-150%, 24%);\n max-height: 100%;\n ", "\n span{\n cursor: pointer;\n }\n svg {\n font-size: 16px;\n color: ", ";\n }\n"])), function (props) {
|
|
81
81
|
var _props$theme2;
|
|
82
|
-
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(
|
|
82
|
+
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n transform: translate(150%, 24%);\n "])));
|
|
83
83
|
}, function (props) {
|
|
84
84
|
return props.theme.colors.lightGray;
|
|
85
85
|
});
|
|
86
86
|
exports.TogglePassword = TogglePassword;
|
|
87
|
-
var ReCaptchaWrapper = _styledComponents.default.div(
|
|
87
|
+
var ReCaptchaWrapper = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin: 12px auto;\n"])));
|
|
88
88
|
exports.ReCaptchaWrapper = ReCaptchaWrapper;
|
|
89
|
-
var LoginDivider = _styledComponents.default.div(
|
|
89
|
+
var LoginDivider = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n width: 80%;\n margin: 30px 0;\n\n p {\n margin: 0;\n width: 70px;\n font-size: 14px;\n color: #748194;\n text-align: center;\n }\n"])));
|
|
90
90
|
exports.LoginDivider = LoginDivider;
|
|
91
|
-
var DividerLine = _styledComponents.default.div(
|
|
91
|
+
var DividerLine = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n height: 1px;\n background: #E9ECEF;\n flex-grow: 1;\n"])));
|
|
92
92
|
exports.DividerLine = DividerLine;
|
|
93
|
-
var InputContainer = _styledComponents.default.div(
|
|
93
|
+
var InputContainer = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n margin: 5px 0px;\n\n \n @media (min-width: 800px) {\n ", "\n }\n"])), function (_ref11) {
|
|
94
94
|
var isHalf = _ref11.isHalf;
|
|
95
|
-
return isHalf && (0, _styledComponents.css)(
|
|
95
|
+
return isHalf && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n width: 48%;\n "])));
|
|
96
96
|
});
|
|
97
97
|
exports.InputContainer = InputContainer;
|
|
98
|
-
var InputWrapper = _styledComponents.default.div(
|
|
99
|
-
return props.theme.rtl ? (0, _styledComponents.css)(
|
|
98
|
+
var InputWrapper = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n \n input{\n box-sizing: border-box;\n width: 100%;\n\n ", "\n margin: 10px 0;\n }\n"])), function (props) {
|
|
99
|
+
return props.theme.rtl ? (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n padding-right: 40px !important;\n "]))) : (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n padding-left: 40px !important;\n "])));
|
|
100
100
|
});
|
|
101
101
|
exports.InputWrapper = InputWrapper;
|
|
102
|
-
var InputBeforeIcon = _styledComponents.default.div(
|
|
102
|
+
var InputBeforeIcon = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0px;\n left: 15px;\n display: flex;\n align-items: center;\n height: 100%;\n\n ", "\n\n svg {\n font-size: 16px;\n color: #B1BCCC;\n }\n"])), function (props) {
|
|
103
103
|
var _props$theme3;
|
|
104
|
-
return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(
|
|
104
|
+
return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n right: 15px;\n left: initial;\n "])));
|
|
105
105
|
});
|
|
106
106
|
exports.InputBeforeIcon = InputBeforeIcon;
|
|
107
|
-
var TermsConditionWrapper = _styledComponents.default.div(
|
|
107
|
+
var TermsConditionWrapper = _styledComponents.default.div(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: 10px 0;\n\n > label {\n font-size: 14px;\n ", "\n\n > span:first-child {\n font-weight: 500;\n ", "\n }\n\n > a {\n color: ", " !important;\n }\n }\n\n @media (min-width: 768px) {\n > label {\n font-size: 16px;\n }\n }\n"])), function (props) {
|
|
108
108
|
var _props$theme4;
|
|
109
|
-
return (_props$theme4 = props.theme) !== null && _props$theme4 !== void 0 && _props$theme4.rtl ? (0, _styledComponents.css)(
|
|
109
|
+
return (_props$theme4 = props.theme) !== null && _props$theme4 !== void 0 && _props$theme4.rtl ? (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n margin-right: 7px;\n "]))) : (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n margin-left: 7px;\n "])));
|
|
110
110
|
}, function (props) {
|
|
111
111
|
var _props$theme5;
|
|
112
|
-
return (_props$theme5 = props.theme) !== null && _props$theme5 !== void 0 && _props$theme5.rtl ? (0, _styledComponents.css)(
|
|
112
|
+
return (_props$theme5 = props.theme) !== null && _props$theme5 !== void 0 && _props$theme5.rtl ? (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n margin-left: 7px;\n "]))) : (0, _styledComponents.css)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n margin-right: 7px;\n "])));
|
|
113
113
|
}, function (props) {
|
|
114
114
|
return props.theme.colors.primary;
|
|
115
115
|
});
|
|
116
116
|
exports.TermsConditionWrapper = TermsConditionWrapper;
|
|
117
|
-
var PromotionsWrapper = (0, _styledComponents.default)(TermsConditionWrapper)(
|
|
117
|
+
var PromotionsWrapper = (0, _styledComponents.default)(TermsConditionWrapper)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral([""])));
|
|
118
118
|
exports.PromotionsWrapper = PromotionsWrapper;
|
|
119
|
-
var BussinessAndDriverSignUp = _styledComponents.default.div(
|
|
119
|
+
var BussinessAndDriverSignUp = _styledComponents.default.div(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-direction: column;\n\n button:first-child {\n margin-bottom: 10px;\n }\n\n @media (min-width: 481px) {\n width: ", ";\n }\n\n @media (min-width: 993px) {\n flex-direction: row;\n button:first-child {\n margin-bottom: 0px;\n }\n }\n\n button {\n width: 100%;\n margin-top: 15px;\n padding: 5px;\n margin: 0 10px;\n }\n"])), function (_ref12) {
|
|
120
120
|
var isPopup = _ref12.isPopup;
|
|
121
121
|
return isPopup ? 'calc(100% - 20px)' : 'calc(80% - 20px)';
|
|
122
122
|
});
|
|
123
123
|
exports.BussinessAndDriverSignUp = BussinessAndDriverSignUp;
|
|
124
|
-
var CheckboxArea = _styledComponents.default.div(
|
|
124
|
+
var CheckboxArea = _styledComponents.default.div(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral([""])));
|
|
125
125
|
exports.CheckboxArea = CheckboxArea;
|
|
126
|
-
var ValidationText = _styledComponents.default.span(
|
|
126
|
+
var ValidationText = _styledComponents.default.span(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n color: ", ";\n"])), function (props) {
|
|
127
127
|
return props.theme.colors.danger500;
|
|
128
128
|
});
|
|
129
129
|
exports.ValidationText = ValidationText;
|
|
@@ -37,7 +37,7 @@ var Button = _styledComponents.default.button(_templateObject || (_templateObjec
|
|
|
37
37
|
return circle && outline && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n background: #FFF;\n color: #CCC;\n border-color: #CCC;\n padding: 0;\n width: 34px;\n height: 34px;\n line-height: 34px;\n text-align: center;\n border-radius: 50%;\n &:active {\n color: #FFF;\n background: ", ";\n }\n "])), (0, _polished.darken)(0.07, '#CCC'));
|
|
38
38
|
}, function (_ref6) {
|
|
39
39
|
var color = _ref6.color;
|
|
40
|
-
return color === 'primary' && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n border-color: ", ";\n &:active {\n background: ", ";\n }\n ", "\n ", "\n ", "\n "])), function (props) {
|
|
40
|
+
return color === 'primary' && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n border-color: ", ";\n &:active {\n background: ", ";\n }\n &:hover {\n background: ", ";\n color: #FFF;\n }\n ", "\n ", "\n ", "\n "])), function (props) {
|
|
41
41
|
return props.theme.colors.primary;
|
|
42
42
|
}, function (props) {
|
|
43
43
|
return props.theme.colors.primaryContrast;
|
|
@@ -45,6 +45,8 @@ var Button = _styledComponents.default.button(_templateObject || (_templateObjec
|
|
|
45
45
|
return props.theme.colors.primary;
|
|
46
46
|
}, function (props) {
|
|
47
47
|
return (0, _polished.darken)(0.07, props.theme.colors.primary);
|
|
48
|
+
}, function (props) {
|
|
49
|
+
return (0, _polished.darken)(0.07, props.theme.colors.primary);
|
|
48
50
|
}, function (_ref7) {
|
|
49
51
|
var outline = _ref7.outline;
|
|
50
52
|
return outline && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n background: #FFF;\n color: ", ";\n border-color: ", ";\n &:active {\n color: ", ";\n background: ", ";\n }\n &:hover {\n background: ", ";\n color: #FFF;\n }\n "])), function (props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"libphonenumber-js": "^1.9.4",
|
|
86
86
|
"lodash": "^4.17.19",
|
|
87
87
|
"moment": "^2.29.4",
|
|
88
|
-
"ordering-components-external": "1.5.
|
|
88
|
+
"ordering-components-external": "1.5.3",
|
|
89
89
|
"polished": "^3.6.6",
|
|
90
90
|
"react-bootstrap-icons": "^1.7.2",
|
|
91
91
|
"react-calendar": "^3.3.1",
|
|
@@ -10,12 +10,12 @@ import BsInfoCircle from '@meronex/icons/bs/BsInfoCircle'
|
|
|
10
10
|
|
|
11
11
|
import { useUtils, useOrder, useLanguage, useConfig, useOrderingTheme } from 'ordering-components-external'
|
|
12
12
|
|
|
13
|
-
import { convertHoursToMinutes, shape } from '../../../../../utils'
|
|
13
|
+
import { convertHoursToMinutes, shape, lightenDarkenColor } from '../../../../../utils'
|
|
14
14
|
import { Select } from '../../styles/Select'
|
|
15
15
|
import { MomentContent } from '../MomentContent'
|
|
16
16
|
import CgSearch from '@meronex/icons/cg/CgSearch'
|
|
17
17
|
import { SearchProducts } from '../SearchProducts'
|
|
18
|
-
|
|
18
|
+
import { SearchProducts as SearchProductsStarbucks } from '../../../../six/src/components/BusinessProductsListing/SearchProducts'
|
|
19
19
|
import {
|
|
20
20
|
BusinessContainer,
|
|
21
21
|
BusinessContent,
|
|
@@ -34,7 +34,8 @@ import {
|
|
|
34
34
|
SearchComponentContainer,
|
|
35
35
|
SocialList,
|
|
36
36
|
IconWrapper,
|
|
37
|
-
BusinessInfoWrapper
|
|
37
|
+
BusinessInfoWrapper,
|
|
38
|
+
WrapperFloatingSearch
|
|
38
39
|
} from './styles'
|
|
39
40
|
import { BusinessPreorder } from '../BusinessPreorder'
|
|
40
41
|
|
|
@@ -83,6 +84,7 @@ export const BusinessBasicInformation = (props) => {
|
|
|
83
84
|
const showDistance = !orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.distance?.hidden
|
|
84
85
|
const showSort = !orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.sort?.hidden
|
|
85
86
|
const isInfoShrunken = orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.layout?.position === 'shrunken'
|
|
87
|
+
const searchLayout = theme?.business_view?.components?.product_search?.components?.layout?.type
|
|
86
88
|
const hideCity = orderingTheme?.theme?.business_view?.components?.header?.components?.business?.components?.city?.hidden
|
|
87
89
|
const layoutsWithOldSearch = ['starbucks', 'old']
|
|
88
90
|
const hideSearch = layoutsWithOldSearch.includes(orderingTheme?.theme?.business_view?.components?.product_search?.components?.layout?.type)
|
|
@@ -188,6 +190,8 @@ export const BusinessBasicInformation = (props) => {
|
|
|
188
190
|
{business?.ribbon?.enabled && (
|
|
189
191
|
<RibbonBox
|
|
190
192
|
bgColor={business?.ribbon?.color}
|
|
193
|
+
colorText={lightenDarkenColor(business?.ribbon?.color)}
|
|
194
|
+
borderRibbon={lightenDarkenColor(business?.ribbon?.color)}
|
|
191
195
|
isRoundRect={business?.ribbon?.shape === shape?.rectangleRound}
|
|
192
196
|
isCapsule={business?.ribbon?.shape === shape?.capsuleShape}
|
|
193
197
|
>
|
|
@@ -383,79 +387,97 @@ export const BusinessBasicInformation = (props) => {
|
|
|
383
387
|
{!isInfoShrunken && (
|
|
384
388
|
<BusinessInfoComponent />
|
|
385
389
|
)}
|
|
386
|
-
|
|
387
|
-
{
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
<
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
390
|
+
{(business?.header || business?.logo || loading || isInfoShrunken) && (
|
|
391
|
+
<BusinessContainer bgimage={business?.header} isSkeleton={isSkeleton} id='container' isClosed={!business?.open}>
|
|
392
|
+
{(!loading && !business?.open) && <h1>{t('CLOSED', 'Closed')}</h1>}
|
|
393
|
+
{showLogo && business?.logo && (
|
|
394
|
+
<BusinessContent>
|
|
395
|
+
<WrapperBusinessLogo>
|
|
396
|
+
{!loading && (
|
|
397
|
+
<BusinessLogo bgimage={optimizeImage(business?.logo, 'h_200,c_limit')} />
|
|
398
|
+
)}
|
|
399
|
+
</WrapperBusinessLogo>
|
|
400
|
+
</BusinessContent>
|
|
401
|
+
)}
|
|
402
|
+
{isInfoShrunken && (
|
|
403
|
+
<BusinessInfoComponent />
|
|
404
|
+
)}
|
|
405
|
+
{!loading && (
|
|
406
|
+
<>
|
|
407
|
+
{isInfoShrunken && (
|
|
408
|
+
<SearchComponentContainer>
|
|
409
|
+
<SearchComponent />
|
|
410
|
+
</SearchComponentContainer>
|
|
395
411
|
)}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
)}
|
|
414
|
-
<Modal
|
|
415
|
-
width='70%'
|
|
416
|
-
open={openBusinessInformation}
|
|
417
|
-
onClose={setOpenBusinessInformation}
|
|
418
|
-
padding='0'
|
|
419
|
-
hideCloseDefault
|
|
420
|
-
isTransparent
|
|
421
|
-
>
|
|
422
|
-
<BusinessInformation
|
|
423
|
-
business={business}
|
|
424
|
-
getBusinessType={getBusinessType}
|
|
425
|
-
optimizeImage={optimizeImage}
|
|
426
|
-
onClose={setOpenBusinessInformation}
|
|
427
|
-
/>
|
|
428
|
-
</Modal>
|
|
429
|
-
<Modal
|
|
430
|
-
width='70%'
|
|
431
|
-
open={isBusinessReviews}
|
|
432
|
-
onClose={() => setIsBusinessReviews(false)}
|
|
433
|
-
padding='20px'
|
|
434
|
-
>
|
|
435
|
-
<BusinessReviews
|
|
436
|
-
businessId={business.id}
|
|
437
|
-
reviews={business.reviews?.reviews}
|
|
438
|
-
businessName={business.name}
|
|
439
|
-
stars={business.reviews?.total}
|
|
440
|
-
/>
|
|
441
|
-
</Modal>
|
|
442
|
-
<Modal
|
|
443
|
-
open={isPreOrder}
|
|
444
|
-
width={isCustomerMode ? '700px' : '760px'}
|
|
445
|
-
onClose={() => setIsPreOrder(false)}
|
|
446
|
-
padding={isCustomerMode && '20px'}
|
|
447
|
-
>
|
|
448
|
-
{isCustomerMode ? (
|
|
449
|
-
<MomentContent onClose={() => setIsPreOrder(false)} />
|
|
450
|
-
) : (
|
|
451
|
-
<BusinessPreorder
|
|
452
|
-
business={business}
|
|
453
|
-
handleClick={() => setIsPreOrder(false)}
|
|
454
|
-
/>
|
|
412
|
+
{searchLayout === 'floating' && (
|
|
413
|
+
<WrapperFloatingSearch>
|
|
414
|
+
<SearchProductsStarbucks
|
|
415
|
+
handleChangeSearch={handleChangeSearch}
|
|
416
|
+
searchValue={searchValue}
|
|
417
|
+
sortByOptions={sortByOptions}
|
|
418
|
+
sortByValue={sortByValue}
|
|
419
|
+
onChange={(val) => handleChangeSortBy && handleChangeSortBy(val)}
|
|
420
|
+
businessState={businessState}
|
|
421
|
+
disablePadding
|
|
422
|
+
/>
|
|
423
|
+
</WrapperFloatingSearch>
|
|
424
|
+
)}
|
|
425
|
+
<BusinessMoreDetail>
|
|
426
|
+
<BsInfoCircle onClick={() => setOpenBusinessInformation(true)} />
|
|
427
|
+
</BusinessMoreDetail>
|
|
428
|
+
</>
|
|
455
429
|
)}
|
|
456
|
-
</
|
|
457
|
-
|
|
430
|
+
</BusinessContainer>
|
|
431
|
+
)}
|
|
432
|
+
{!business?.header && !business?.logo && !loading && !isInfoShrunken && (
|
|
433
|
+
<BusinessMoreDetail position='relative'>
|
|
434
|
+
<BsInfoCircle onClick={() => setOpenBusinessInformation(true)} />
|
|
435
|
+
</BusinessMoreDetail>
|
|
436
|
+
)}
|
|
458
437
|
</BusinessInfoWrapper>
|
|
438
|
+
<Modal
|
|
439
|
+
width='70%'
|
|
440
|
+
open={openBusinessInformation}
|
|
441
|
+
onClose={setOpenBusinessInformation}
|
|
442
|
+
padding='0'
|
|
443
|
+
hideCloseDefault
|
|
444
|
+
isTransparent
|
|
445
|
+
>
|
|
446
|
+
<BusinessInformation
|
|
447
|
+
business={business}
|
|
448
|
+
getBusinessType={getBusinessType}
|
|
449
|
+
optimizeImage={optimizeImage}
|
|
450
|
+
onClose={setOpenBusinessInformation}
|
|
451
|
+
/>
|
|
452
|
+
</Modal>
|
|
453
|
+
<Modal
|
|
454
|
+
width='70%'
|
|
455
|
+
open={isBusinessReviews}
|
|
456
|
+
onClose={() => setIsBusinessReviews(false)}
|
|
457
|
+
padding='20px'
|
|
458
|
+
>
|
|
459
|
+
<BusinessReviews
|
|
460
|
+
businessId={business.id}
|
|
461
|
+
reviews={business.reviews?.reviews}
|
|
462
|
+
businessName={business.name}
|
|
463
|
+
stars={business.reviews?.total}
|
|
464
|
+
/>
|
|
465
|
+
</Modal>
|
|
466
|
+
<Modal
|
|
467
|
+
open={isPreOrder}
|
|
468
|
+
width={isCustomerMode ? '700px' : '760px'}
|
|
469
|
+
onClose={() => setIsPreOrder(false)}
|
|
470
|
+
padding={isCustomerMode && '20px'}
|
|
471
|
+
>
|
|
472
|
+
{isCustomerMode ? (
|
|
473
|
+
<MomentContent onClose={() => setIsPreOrder(false)} />
|
|
474
|
+
) : (
|
|
475
|
+
<BusinessPreorder
|
|
476
|
+
business={business}
|
|
477
|
+
handleClick={() => setIsPreOrder(false)}
|
|
478
|
+
/>
|
|
479
|
+
)}
|
|
480
|
+
</Modal>
|
|
459
481
|
{props.afterComponents?.map((AfterComponent, i) => (
|
|
460
482
|
<AfterComponent key={i} {...props} />))}
|
|
461
483
|
{props.afterElements?.map((AfterElement, i) => (
|
|
@@ -306,9 +306,16 @@ export const BusinessDetail = styled.div`
|
|
|
306
306
|
`
|
|
307
307
|
|
|
308
308
|
export const BusinessMoreDetail = styled.div`
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
${({ position }) => position ? css`
|
|
310
|
+
width: 100% !important;
|
|
311
|
+
justify-content: flex-end !important;
|
|
312
|
+
top: 0px;
|
|
313
|
+
right: 0px;
|
|
314
|
+
` : css`
|
|
315
|
+
top: 30px;
|
|
316
|
+
right: 30px;
|
|
317
|
+
`}
|
|
318
|
+
position: ${props => props.position ?? 'absolute'};
|
|
312
319
|
min-width: 24px;
|
|
313
320
|
width: 24px;
|
|
314
321
|
height: 24px;
|
|
@@ -319,7 +326,7 @@ export const BusinessMoreDetail = styled.div`
|
|
|
319
326
|
|
|
320
327
|
svg {
|
|
321
328
|
font-size: 24px;
|
|
322
|
-
color: white;
|
|
329
|
+
color: ${props => props.position ? 'black' : 'white'};
|
|
323
330
|
}
|
|
324
331
|
`
|
|
325
332
|
|
|
@@ -376,6 +383,14 @@ export const RibbonBox = styled.div`
|
|
|
376
383
|
${({ isCapsule }) => isCapsule && css`
|
|
377
384
|
border-radius: 50px;
|
|
378
385
|
`}
|
|
386
|
+
|
|
387
|
+
${({ colorText }) => colorText && css`
|
|
388
|
+
color: ${colorText ? 'black' : 'white'};
|
|
389
|
+
`}
|
|
390
|
+
|
|
391
|
+
${({ borderRibbon }) => borderRibbon && css`
|
|
392
|
+
border: 1px solid ${borderRibbon ? 'black' : 'white'};
|
|
393
|
+
`}
|
|
379
394
|
`
|
|
380
395
|
export const SearchIconWrapper = styled.div`
|
|
381
396
|
cursor: pointer;
|
|
@@ -242,7 +242,7 @@ export const Header = (props) => {
|
|
|
242
242
|
onClick={(e) => handleClickUserCustomer(e)}
|
|
243
243
|
>
|
|
244
244
|
<GeoAlt />
|
|
245
|
-
<span>{orderState.options?.address?.address || t('
|
|
245
|
+
<span>{orderState.options?.address?.address || t('LANG_WHAT_IS_YOUR_ADDRESS', 'What\'s your address?')}</span>
|
|
246
246
|
</AddressMenu>
|
|
247
247
|
<Divider />
|
|
248
248
|
</>
|
|
@@ -512,7 +512,7 @@ export const Header = (props) => {
|
|
|
512
512
|
onClose={() => closeAuthModal()}
|
|
513
513
|
width='50%'
|
|
514
514
|
authModal
|
|
515
|
-
closeOnBackdrop
|
|
515
|
+
closeOnBackdrop
|
|
516
516
|
>
|
|
517
517
|
{modalPageToShow === 'login' && (
|
|
518
518
|
<LoginForm
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components'
|
|
2
|
+
import { darken } from 'polished'
|
|
2
3
|
|
|
3
4
|
export const Header = styled.div`
|
|
4
5
|
display: flex;
|
|
@@ -241,6 +242,11 @@ export const MenuLink = styled.a`
|
|
|
241
242
|
color: ${props => props.theme.colors.primaryContrast};
|
|
242
243
|
border-radius: 7.6px;
|
|
243
244
|
padding: 11px 15px;
|
|
245
|
+
|
|
246
|
+
&:hover {
|
|
247
|
+
background: ${props => darken(0.07, props.theme.colors.primary)};
|
|
248
|
+
color: #FFF;
|
|
249
|
+
}
|
|
244
250
|
`}
|
|
245
251
|
`
|
|
246
252
|
|
|
@@ -431,3 +437,37 @@ export const AddressFormWrapper = styled.div`
|
|
|
431
437
|
margin-top: 20px;
|
|
432
438
|
}
|
|
433
439
|
`
|
|
440
|
+
export const InputGroup = styled.div`
|
|
441
|
+
p {
|
|
442
|
+
font-weight: 500;
|
|
443
|
+
font-size: 20px;
|
|
444
|
+
color: ${props => props.theme.colors.darkTextColor};
|
|
445
|
+
width: 100%;
|
|
446
|
+
text-align: left;
|
|
447
|
+
margin: 0 0 7px 0;
|
|
448
|
+
}
|
|
449
|
+
`
|
|
450
|
+
|
|
451
|
+
export const LanguageSelectorWrapper = styled(InputGroup)`
|
|
452
|
+
> div {
|
|
453
|
+
border-radius: 7.6px;
|
|
454
|
+
text-align: left;
|
|
455
|
+
background: #F8F9FA !important;
|
|
456
|
+
border-color: #F8F9FA;
|
|
457
|
+
background-color: #F8F9FA !important;
|
|
458
|
+
height: 44px;
|
|
459
|
+
|
|
460
|
+
> div:first-child {
|
|
461
|
+
height: 44px;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
#list {
|
|
465
|
+
border-radius: 7.6px;
|
|
466
|
+
background: #F8F9FA !important;
|
|
467
|
+
border-color: #F8F9FA;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
#select-input {
|
|
471
|
+
margin: 0px 10px 0 5px;
|
|
472
|
+
}
|
|
473
|
+
`
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
useLanguage,
|
|
10
10
|
useConfig,
|
|
11
11
|
useSession,
|
|
12
|
+
useToast, ToastType,
|
|
12
13
|
ReCaptcha,
|
|
13
14
|
useApi
|
|
14
15
|
} from 'ordering-components-external'
|
|
@@ -88,10 +89,10 @@ const LoginFormUI = (props) => {
|
|
|
88
89
|
useLoginOtpCellphone
|
|
89
90
|
} = props
|
|
90
91
|
const numOtpInputs = loginTab === 'otp' ? 6 : 4
|
|
91
|
-
const otpPlaceholder = [...Array(numOtpInputs)].fill(0).join('')
|
|
92
92
|
const [ordering, { setOrdering }] = useApi()
|
|
93
93
|
const [, t] = useLanguage()
|
|
94
94
|
const theme = useTheme()
|
|
95
|
+
const [, { showToast }] = useToast()
|
|
95
96
|
const [{ configs }] = useConfig()
|
|
96
97
|
const formMethods = useForm()
|
|
97
98
|
const [recaptchaConfig] = useRecaptcha(enableReCaptcha)
|
|
@@ -305,15 +306,9 @@ const LoginFormUI = (props) => {
|
|
|
305
306
|
|
|
306
307
|
useEffect(() => {
|
|
307
308
|
if (checkPhoneCodeState?.result?.error) {
|
|
308
|
-
|
|
309
|
-
open: true,
|
|
310
|
-
content: checkPhoneCodeState?.result?.result || [t('ERROR', 'Error')]
|
|
311
|
-
})
|
|
309
|
+
showToast(ToastType.Error, checkPhoneCodeState?.result?.result || [t('ERROR', 'Error')])
|
|
312
310
|
} else if (checkPhoneCodeState?.result?.result) {
|
|
313
|
-
|
|
314
|
-
open: true,
|
|
315
|
-
content: t('CODE_SENT', 'The code has been sent')
|
|
316
|
-
})
|
|
311
|
+
showToast(ToastType.Success, t('CODE_SENT', 'The code has been sent'))
|
|
317
312
|
resetOtpLeftTime()
|
|
318
313
|
}
|
|
319
314
|
}, [checkPhoneCodeState])
|
|
@@ -516,13 +511,12 @@ const LoginFormUI = (props) => {
|
|
|
516
511
|
numInputs={numOtpInputs}
|
|
517
512
|
containerStyle='otp-container'
|
|
518
513
|
inputStyle='otp-input'
|
|
519
|
-
placeholder={otpPlaceholder}
|
|
520
514
|
isInputNum
|
|
521
515
|
shouldAutoFocus
|
|
522
516
|
/>
|
|
523
517
|
</OtpWrapper>
|
|
524
518
|
<ResendCode disabled={otpLeftTime > 520} onClick={handleSendOtp}>
|
|
525
|
-
{t('
|
|
519
|
+
{t('LANG_SEND_AGAIN', 'Send again')}?
|
|
526
520
|
</ResendCode>
|
|
527
521
|
<Button
|
|
528
522
|
type='button'
|