ordering-ui-external 1.6.3 → 1.6.5

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.
Files changed (40) hide show
  1. package/_bundles/{0.ordering-ui.9399c2752e3ad5f2250b.js → 0.ordering-ui.bc9da3762eb1b844224f.js} +0 -0
  2. package/_bundles/{1.ordering-ui.9399c2752e3ad5f2250b.js → 1.ordering-ui.bc9da3762eb1b844224f.js} +0 -0
  3. package/_bundles/{2.ordering-ui.9399c2752e3ad5f2250b.js → 2.ordering-ui.bc9da3762eb1b844224f.js} +0 -0
  4. package/_bundles/{4.ordering-ui.9399c2752e3ad5f2250b.js → 4.ordering-ui.bc9da3762eb1b844224f.js} +0 -0
  5. package/_bundles/{5.ordering-ui.9399c2752e3ad5f2250b.js → 5.ordering-ui.bc9da3762eb1b844224f.js} +0 -0
  6. package/_bundles/{6.ordering-ui.9399c2752e3ad5f2250b.js → 6.ordering-ui.bc9da3762eb1b844224f.js} +0 -0
  7. package/_bundles/{7.ordering-ui.9399c2752e3ad5f2250b.js → 7.ordering-ui.bc9da3762eb1b844224f.js} +1 -1
  8. package/_bundles/{7.ordering-ui.9399c2752e3ad5f2250b.js.LICENSE.txt → 7.ordering-ui.bc9da3762eb1b844224f.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.9399c2752e3ad5f2250b.js → 8.ordering-ui.bc9da3762eb1b844224f.js} +0 -0
  10. package/_bundles/{9.ordering-ui.9399c2752e3ad5f2250b.js → 9.ordering-ui.bc9da3762eb1b844224f.js} +0 -0
  11. package/_bundles/ordering-ui.bc9da3762eb1b844224f.js +2 -0
  12. package/_bundles/{ordering-ui.9399c2752e3ad5f2250b.js.LICENSE.txt → ordering-ui.bc9da3762eb1b844224f.js.LICENSE.txt} +0 -0
  13. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +31 -14
  14. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +43 -24
  15. package/_modules/themes/five/src/components/BusinessController/index.js +2 -2
  16. package/_modules/themes/five/src/components/BusinessController/styles.js +2 -2
  17. package/_modules/themes/five/src/components/Checkout/index.js +2 -1
  18. package/_modules/themes/five/src/components/Header/index.js +2 -2
  19. package/_modules/themes/five/src/components/Header/styles.js +13 -4
  20. package/_modules/themes/five/src/components/LoginForm/index.js +8 -17
  21. package/_modules/themes/five/src/components/LoginForm/styles.js +1 -1
  22. package/_modules/themes/five/src/components/SignUpForm/index.js +7 -13
  23. package/_modules/themes/five/src/components/SignUpForm/styles.js +33 -33
  24. package/_modules/themes/five/src/styles/Buttons/index.js +3 -1
  25. package/_modules/utils/index.js +27 -16
  26. package/package.json +2 -2
  27. package/src/themes/five/src/components/BusinessBasicInformation/index.js +95 -73
  28. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +45 -4
  29. package/src/themes/five/src/components/BusinessController/index.js +3 -3
  30. package/src/themes/five/src/components/BusinessController/styles.js +2 -2
  31. package/src/themes/five/src/components/Checkout/index.js +4 -1
  32. package/src/themes/five/src/components/Header/index.js +2 -2
  33. package/src/themes/five/src/components/Header/styles.js +40 -0
  34. package/src/themes/five/src/components/LoginForm/index.js +5 -11
  35. package/src/themes/five/src/components/LoginForm/styles.js +29 -8
  36. package/src/themes/five/src/components/SignUpForm/index.js +6 -12
  37. package/src/themes/five/src/components/SignUpForm/styles.js +3 -1
  38. package/src/themes/five/src/styles/Buttons/index.js +4 -0
  39. package/src/utils/index.js +32 -27
  40. 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 min-height: ", ";\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) {
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 ? '500px' : 'calc(100vh - 65px)';
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(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n"])));
19
- var FormSide = (0, _styledComponents.default)(Side)(_templateObject3 || (_templateObject3 = _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) {
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(_templateObject4 || (_templateObject4 = _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) {
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(_templateObject5 || (_templateObject5 = _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) {
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)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
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)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: calc(95% - 20px);\n\n @media (min-width: 481px) {\n width: ", ";\n }\n "])), function (_ref6) {
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)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: 16px;\n "])));
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(_templateObject9 || (_templateObject9 = _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) {
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(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-weight: 600;\n font-size: 24px;\n margin-top: 0;\n margin-bottom: 30px;\n color: ", ";\n"])), function (props) {
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(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n span{\n margin: 10px 0;\n border-radius: 30px;\n }\n"])));
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)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n width: ", ";\n span{\n margin-top: 0;\n }\n"])), function (_ref10) {
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(_templateObject13 || (_templateObject13 = _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"])));
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(_templateObject14 || (_templateObject14 = _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) {
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)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n transform: translate(150%, 24%);\n "])));
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(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin: 12px auto;\n"])));
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(_templateObject17 || (_templateObject17 = _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"])));
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(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n height: 1px;\n background: #E9ECEF;\n flex-grow: 1;\n"])));
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(_templateObject19 || (_templateObject19 = _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) {
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)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: 48%;\n "])));
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(_templateObject21 || (_templateObject21 = _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)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n padding-right: 40px !important;\n "]))) : (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n padding-left: 40px !important;\n "])));
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(_templateObject24 || (_templateObject24 = _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) {
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)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n right: 15px;\n left: initial;\n "])));
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(_templateObject26 || (_templateObject26 = _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) {
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)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n margin-right: 7px;\n "]))) : (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n margin-left: 7px;\n "])));
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)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n margin-left: 7px;\n "]))) : (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n margin-right: 7px;\n "])));
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)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral([""])));
117
+ var PromotionsWrapper = (0, _styledComponents.default)(TermsConditionWrapper)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral([""])));
118
118
  exports.PromotionsWrapper = PromotionsWrapper;
119
- var BussinessAndDriverSignUp = _styledComponents.default.div(_templateObject32 || (_templateObject32 = _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) {
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(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral([""])));
124
+ var CheckboxArea = _styledComponents.default.div(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral([""])));
125
125
  exports.CheckboxArea = CheckboxArea;
126
- var ValidationText = _styledComponents.default.span(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n color: ", ";\n"])), function (props) {
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) {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.verifyDecimals = exports.sortInputFields = exports.shape = exports.scrollTo = exports.reviewCommentList = exports.priceList = exports.getTraduction = exports.getIconCard = exports.getHourMin = exports.getGoogleMapImage = exports.getDistance = exports.formatUrlVideo = exports.formatSeconds = exports.flatArray = exports.fieldsToSort = exports.convertToRadian = exports.convertHoursToMinutes = exports.checkSiteUrl = exports.capitalize = exports.bytesConverter = exports.LightenDarkenColor = void 0;
6
+ exports.verifyDecimals = exports.sortInputFields = exports.shape = exports.scrollTo = exports.reviewCommentList = exports.priceList = exports.lightenDarkenColor = exports.getTraduction = exports.getIconCard = exports.getHourMin = exports.getGoogleMapImage = exports.getDistance = exports.formatUrlVideo = exports.formatSeconds = exports.flatArray = exports.fieldsToSort = exports.convertToRadian = exports.convertHoursToMinutes = exports.checkSiteUrl = exports.capitalize = exports.bytesConverter = void 0;
7
7
  var _orderingComponentsExternal = require("ordering-components-external");
8
8
  var _styledComponents = require("styled-components");
9
9
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -168,29 +168,40 @@ var bytesConverter = function bytesConverter(bytes) {
168
168
  };
169
169
 
170
170
  /**
171
- * Function to get colors darker/lighten.
171
+ * Function to get brightness of color.
172
172
  */
173
173
  exports.bytesConverter = bytesConverter;
174
- var LightenDarkenColor = function LightenDarkenColor(col, amt) {
175
- var usePound = false;
176
- if (col[0] == "#") {
177
- col = col.slice(1);
178
- usePound = true;
174
+ var lightenDarkenColor = function lightenDarkenColor(color) {
175
+ var r, g, b, hsp;
176
+ if (color.match(/^rgb/)) {
177
+ // If HEX --> store the red, green, blue values in separate variables
178
+ color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);
179
+ r = color[1];
180
+ g = color[2];
181
+ b = color[3];
182
+ } else {
183
+ // If RGB --> Convert it to HEX
184
+ color = +("0x" + color.slice(1).replace(color.length < 5 && /./g, '$&$&'));
185
+ r = color >> 16;
186
+ g = color >> 8 & 255;
187
+ b = color & 255;
188
+ }
189
+
190
+ // HSP (Highly Sensitive Poo) equation
191
+ hsp = Math.sqrt(0.299 * (r * r) + 0.587 * (g * g) + 0.114 * (b * b));
192
+
193
+ // Using the HSP value, determine whether the color is light or dark
194
+ if (hsp > 197) {
195
+ return true; //is light color
196
+ } else {
197
+ return false;
179
198
  }
180
- var num = parseInt(col, 16);
181
- var r = (num >> 16) + amt;
182
- if (r > 255) r = 255;else if (r < 0) r = 0;
183
- var b = (num >> 8 & 0x00FF) + amt;
184
- if (b > 255) b = 255;else if (b < 0) b = 0;
185
- var g = (num & 0x0000FF) + amt;
186
- if (g > 255) g = 255;else if (g < 0) g = 0;
187
- return (usePound ? "#" : "") + (g | b << 8 | r << 16).toString(16);
188
199
  };
189
200
 
190
201
  /**
191
202
  * Function to get time in 12 hours format.
192
203
  */
193
- exports.LightenDarkenColor = LightenDarkenColor;
204
+ exports.lightenDarkenColor = lightenDarkenColor;
194
205
  var getHourMin = function getHourMin(hour, min) {
195
206
  var _hour;
196
207
  if (hour < 12) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
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.2",
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
- <BusinessContainer bgimage={business?.header || theme?.images?.dummies?.businessHeader} isSkeleton={isSkeleton} id='container' isClosed={!business?.open}>
387
- {(!loading && !business?.open) && <h1>{t('CLOSED', 'Closed')}</h1>}
388
- {showLogo && (
389
- <BusinessContent>
390
- <WrapperBusinessLogo>
391
- {!loading ? (
392
- <BusinessLogo bgimage={optimizeImage(business?.logo || theme.images?.dummies?.businessLogo, 'h_200,c_limit')} />
393
- ) : (
394
- <Skeleton height={70} width={70} />
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
- </WrapperBusinessLogo>
397
- </BusinessContent>
398
- )}
399
- {isInfoShrunken && (
400
- <BusinessInfoComponent />
401
- )}
402
- {!loading && (
403
- <>
404
- {isInfoShrunken && (
405
- <SearchComponentContainer>
406
- <SearchComponent />
407
- </SearchComponentContainer>
408
- )}
409
- <BusinessMoreDetail>
410
- <BsInfoCircle onClick={() => setOpenBusinessInformation(true)} />
411
- </BusinessMoreDetail>
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
- </Modal>
457
- </BusinessContainer>
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
- top: 30px;
310
- right: 30px;
311
- position: absolute;
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;
@@ -453,3 +468,29 @@ export const BusinessInfoWrapper = styled.div`
453
468
  flex-direction: column;
454
469
  }
455
470
  `
471
+
472
+ export const WrapperFloatingSearch = styled.div`
473
+ position: absolute;
474
+ color: ${({ theme }) => theme.colors.white};
475
+ display: flex;
476
+ background: rgba(0,0,0,0.2);
477
+ top: 80px;
478
+ right: 10px;
479
+ width: 80%;
480
+ border-bottom: 1px solid #FFFFFF;
481
+ #select-input {
482
+ color: #FFFFFF !important;
483
+ background: transparent;
484
+ }
485
+ svg, span {
486
+ color: #FFFFFF !important;
487
+ }
488
+ @media (min-width: 681px){
489
+ top: 23px;
490
+ right: 60px;
491
+ width: 300px;
492
+ input {
493
+ width: 80%;
494
+ }
495
+ }
496
+ `
@@ -8,7 +8,7 @@ import { Modal } from '../Modal'
8
8
  import { LoginForm } from '../LoginForm'
9
9
  import { SignUpForm } from '../SignUpForm'
10
10
  import { ForgotPasswordForm } from '../ForgotPasswordForm'
11
- import { convertHoursToMinutes, LightenDarkenColor, shape } from '../../../../../utils'
11
+ import { convertHoursToMinutes, lightenDarkenColor, shape } from '../../../../../utils'
12
12
 
13
13
  import {
14
14
  ContainerCard,
@@ -153,8 +153,8 @@ const BusinessControllerUI = (props) => {
153
153
  {business?.ribbon?.enabled && (
154
154
  <RibbonBox
155
155
  bgColor={business?.ribbon?.color}
156
- colorText={LightenDarkenColor(business?.ribbon?.color, -200)}
157
- borderRibbon={LightenDarkenColor(business?.ribbon?.color, -200)}
156
+ colorText={lightenDarkenColor(business?.ribbon?.color, -200)}
157
+ borderRibbon={lightenDarkenColor(business?.ribbon?.color, -200)}
158
158
  isRoundRect={business?.ribbon?.shape === shape?.rectangleRound}
159
159
  isCapsule={business?.ribbon?.shape === shape?.capsuleShape}
160
160
  >
@@ -451,11 +451,11 @@ export const RibbonBox = styled.div`
451
451
  `}
452
452
 
453
453
  ${({ colorText }) => colorText && css`
454
- color: ${colorText};
454
+ color: ${colorText ? 'black' : 'white'};
455
455
  `}
456
456
 
457
457
  ${({ borderRibbon }) => borderRibbon && css`
458
- border: 1px solid ${borderRibbon};
458
+ border: 1px solid ${borderRibbon ? 'black' : 'white'};
459
459
  `}
460
460
  `
461
461
 
@@ -553,7 +553,10 @@ const CheckoutUI = (props) => {
553
553
  isCheckout
554
554
  isEdit
555
555
  isModal
556
- onClose={() => setIsOpen(false)}
556
+ onClose={() => {
557
+ setIsOpen(false)
558
+ handlePlaceOrder()
559
+ }}
557
560
  />
558
561
  </Modal>
559
562
  </Container>
@@ -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('WHAT_IS_YOUR_ADDRESS', 'What\'s your address?')}</span>
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={false}
515
+ closeOnBackdrop
516
516
  >
517
517
  {modalPageToShow === 'login' && (
518
518
  <LoginForm