ordering-ui-external 14.1.35 → 14.1.37

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.
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.CategoriesContainer = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
10
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
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 CategoriesContainer = exports.CategoriesContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n overflow-x: auto;\n padding: 5px 0px 0px 0px;\n background: ", ";\n z-index: 1000;\n position: absolute;\n top: 0;\n border-bottom: 1px solid #D9D9D9;\n text-align: center;\n width: ", ";\n box-sizing: border-box;\n div.category {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding: 10px 0px;\n margin: 0 15px;\n &:nth-of-type(1) {\n margin-left: 0;\n ", "\n }\n }\n\n div.special {\n ", "\n }\n\n /* @media (min-width: 381px) {\n padding: 15px 0px 0px 0px;\n } */\n @media (min-width: 769px) {\n ", "\n }\n @media (min-width: 992px) {\n width: ", ";\n }\n"])), function (props) {
13
+ var CategoriesContainer = exports.CategoriesContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n overflow-x: auto;\n padding: 5px 0px 0px 0px;\n background: ", ";\n z-index: 1000;\n position: absolute;\n top: 0;\n border-bottom: 1px solid #D9D9D9;\n text-align: center;\n width: ", ";\n box-sizing: border-box;\n div.category {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding: 10px 0px;\n margin: 0 15px;\n &:nth-of-type(1) {\n margin-left: 0;\n ", "\n }\n }\n\n div.special {\n ", "\n }\n\n /* @media (min-width: 381px) {\n padding: 15px 0px 0px 0px;\n } */\n @media (min-width: 769px) {\n ", "\n }\n @media (min-width: 992px) {\n ", "\n }\n"])), function (props) {
14
14
  return props.theme.colors.backgroundPage;
15
15
  }, function (props) {
16
16
  return props.w || '100%';
@@ -22,6 +22,5 @@ var CategoriesContainer = exports.CategoriesContainer = _styledComponents.defaul
22
22
  var isProfessional = _ref.isProfessional;
23
23
  return isProfessional && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
24
24
  }, function (props) {
25
- var _props$w;
26
- return (_props$w = props.w) !== null && _props$w !== void 0 ? _props$w : 'auto';
25
+ return props.w && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: ", ";\n "])), props.w);
27
26
  });
@@ -611,6 +611,7 @@ var CheckoutUI = function CheckoutUI(props) {
611
611
  cart: cart,
612
612
  useOrderContext: true
613
613
  })), /*#__PURE__*/_react.default.createElement(_styles.DriverTipDivider, null)), !cartState.loading && placeSpotsEnabled && (cart === null || cart === void 0 ? void 0 : cart.business_id) && /*#__PURE__*/_react.default.createElement(_styles.SelectSpotContainer, null, /*#__PURE__*/_react.default.createElement(_PlaceSpot.PlaceSpot, {
614
+ isCustomerMode: isCustomerMode,
614
615
  isCheckout: true,
615
616
  isInputMode: true,
616
617
  isHomeStyle: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "14.1.35",
3
+ "version": "14.1.37",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -42,6 +42,8 @@ export const CategoriesContainer = styled.div`
42
42
  `}
43
43
  }
44
44
  @media (min-width: 992px) {
45
- width: ${props => props.w ?? 'auto'};
45
+ ${(props) => props.w && css`
46
+ width: ${props.w};
47
+ `}
46
48
  }
47
49
  `
@@ -616,6 +616,7 @@ const CheckoutUI = (props) => {
616
616
  {!cartState.loading && placeSpotsEnabled && cart?.business_id && (
617
617
  <SelectSpotContainer>
618
618
  <PlaceSpot
619
+ isCustomerMode={isCustomerMode}
619
620
  isCheckout
620
621
  isInputMode
621
622
  isHomeStyle