ordering-ui-external 1.7.0 → 1.7.1

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.
@@ -10,7 +10,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
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 Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n\n @media (min-width: 768px) {\n display: block;\n }\n"])));
13
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
14
14
  exports.Container = Container;
15
15
  var FooterWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n width: 100%;\n flex-wrap: wrap;\n flex-direction: column;\n border-bottom: 1px solid #d9d9d9;\n\n @media (min-width: 768px) {\n flex-direction: row;\n justify-content: flex-start;\n }\n"])));
16
16
  exports.FooterWrapper = FooterWrapper;
@@ -129,7 +129,7 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
129
129
  };
130
130
  }, []);
131
131
  return /*#__PURE__*/_react.default.createElement(_styles.HeroContainer, {
132
- mb: !auth && '30vh',
132
+ mb: !auth && isShowLoginAccount && '30vh',
133
133
  bgimage: bgImg || (windowSize.width < 576 ? (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$general = _theme$images.general) === null || _theme$images$general === void 0 ? void 0 : _theme$images$general.homeHeroMobile : (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$genera = _theme$images2.general) === null || _theme$images2$genera === void 0 ? void 0 : _theme$images2$genera.homeHero),
134
134
  isFullScreen: isFullScreen
135
135
  }, /*#__PURE__*/_react.default.createElement(_styles.ContentWrapper, null, windowSize.width < 576 && /*#__PURE__*/_react.default.createElement(_styles.LogoWrapper, null, /*#__PURE__*/_react.default.createElement("img", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -1,11 +1,7 @@
1
1
  import styled, { css } from 'styled-components'
2
2
 
3
3
  export const Container = styled.div`
4
- display: none;
5
-
6
- @media (min-width: 768px) {
7
- display: block;
8
- }
4
+ position: relative;
9
5
  `
10
6
 
11
7
  export const FooterWrapper = styled.div`
@@ -93,7 +93,7 @@ export const OriginalHomeHero = (props) => {
93
93
 
94
94
  return (
95
95
  <HeroContainer
96
- mb={!auth && '30vh'}
96
+ mb={!auth && isShowLoginAccount && '30vh'}
97
97
  bgimage={bgImg || (windowSize.width < 576
98
98
  ? theme.images?.general?.homeHeroMobile
99
99
  : theme.images?.general?.homeHero)}