ordering-ui-external 10.6.0 → 10.6.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.
@@ -12,7 +12,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
13
  var DriverTipContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n flex-wrap: wrap;\n margin-top: 20px;\n padding-bottom: 20px;\n width: 100%;\n"])));
14
14
  exports.DriverTipContainer = DriverTipContainer;
15
- var TipCard = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n border: 1px solid #E9ECEF;\n width: 62px;\n height: 62px;\n min-width: 62px;\n cursor: pointer;\n text-transform: capitalize;\n font-size: 14px;\n color: #B1BCCC;\n transition: all 0.3s;\n\n &.active {\n background-color: ", ";\n color: ", ";\n }\n"])), function (props) {
15
+ var TipCard = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 8px;\n border: 1px solid #E9ECEF;\n width: 62px;\n height: 62px;\n min-width: 62px;\n cursor: pointer;\n text-transform: capitalize;\n font-size: 14px;\n color: #B1BCCC;\n transition: all 0.3s;\n text-align: center;\n &.active {\n background-color: ", ";\n color: ", ";\n }\n"])), function (props) {
16
16
  return props.theme.colors.primary;
17
17
  }, function (props) {
18
18
  return props.theme.colors.primaryContrast;
@@ -175,7 +175,7 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
175
175
  onClick: function onClick() {
176
176
  return onDeleteProduct(product);
177
177
  }
178
- }))))))), product.valid ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ((product === null || product === void 0 ? void 0 : product.valid) || !isCartProduct) && windowSize.width > 410 && /*#__PURE__*/_react.default.createElement(_styles.ProductPriceSection, null, /*#__PURE__*/_react.default.createElement(_styles.ProductPrice, {
178
+ }))))))), product.valid && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ((product === null || product === void 0 ? void 0 : product.valid) || !isCartProduct) && windowSize.width > 410 && /*#__PURE__*/_react.default.createElement(_styles.ProductPriceSection, null, /*#__PURE__*/_react.default.createElement(_styles.ProductPrice, {
179
179
  className: "prod-price"
180
180
  }, /*#__PURE__*/_react.default.createElement("span", null, parsePrice(product.total || product.price)), (productInfo().ingredients.length > 0 || productInfo().options.length > 0 || product.comment) && /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_IosArrowDown.default, {
181
181
  className: "".concat(setRotate)
@@ -195,15 +195,7 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
195
195
  disabled: orderState.loading
196
196
  }, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Trash, {
197
197
  color: "#B1BCCC"
198
- }))))) : /*#__PURE__*/_react.default.createElement(_styles.ProductActions, null, onDeleteProduct && /*#__PURE__*/_react.default.createElement(_styles.ProductActionsDelete, {
199
- ref: productActionsDelete,
200
- onClick: function onClick() {
201
- return onDeleteProduct(product);
202
- },
203
- disabled: orderState.loading
204
- }, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Trash, {
205
- color: "#B1BCCC"
206
- }))), isCartProduct && !isCartPending && (product === null || product === void 0 ? void 0 : product.valid_menu) && !(product !== null && product !== void 0 && product.valid_quantity) && /*#__PURE__*/_react.default.createElement(_styles.ProductError, null, /*#__PURE__*/_react.default.createElement(_styles.ProductActions, null, !isDisabledEdit && /*#__PURE__*/_react.default.createElement(_styles.ProductActionsEdit, {
198
+ }))))), isCartProduct && !isCartPending && (product === null || product === void 0 ? void 0 : product.valid_menu) && !(product !== null && product !== void 0 && product.valid_quantity) && /*#__PURE__*/_react.default.createElement(_styles.ProductError, null, /*#__PURE__*/_react.default.createElement(_styles.ProductActions, null, !isDisabledEdit && /*#__PURE__*/_react.default.createElement(_styles.ProductActionsEdit, {
207
199
  ref: productActionsEdit,
208
200
  onClick: function onClick() {
209
201
  return onEditProduct(product);
@@ -12,7 +12,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
13
  var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral([""])));
14
14
  exports.Container = Container;
15
- var Header = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 5px;\n\n h1 {\n font-weight: 500;\n font-size: 20px;\n color: ", "; \n margin: 0px 10px 0px 0px;\n ", "\n }\n\n svg {\n font-size: 24px;\n }\n\n svg.cancel {\n color: #D81212;\n cursor: pointer;\n }\n\n span {\n font-size: 13px;\n color: ", ";\n cursor: pointer;\n user-select: none;\n &:hover {\n text-decoration: underline;\n }\n }\n"])), function (props) {
15
+ var Header = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 5px;\n\n h1 {\n font-weight: 500;\n font-size: 20px;\n color: ", ";\n margin: 0px 10px 0px 0px;\n ", "\n }\n\n svg {\n font-size: 24px;\n }\n\n svg.cancel {\n color: #D81212;\n cursor: pointer;\n }\n\n span {\n font-size: 13px;\n color: ", ";\n cursor: pointer;\n user-select: none;\n &:hover {\n text-decoration: underline;\n }\n }\n"])), function (props) {
16
16
  return props.theme.colors.darkTextColor;
17
17
  }, function (props) {
18
18
  var _props$theme;
@@ -37,10 +37,10 @@ var ModalIcon = _styledComponents.default.span(_templateObject8 || (_templateObj
37
37
  exports.ModalIcon = ModalIcon;
38
38
  var TitleContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-top: 0;\n h1 {\n margin: auto;\n font-size: 24px;\n }\n ", "\n"])), function (_ref) {
39
39
  var isAddressFormOpen = _ref.isAddressFormOpen;
40
- return isAddressFormOpen && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n h1{ \n width: 75%;\n }\n "])));
40
+ return isAddressFormOpen && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n h1{\n width: 75%;\n }\n "])));
41
41
  });
42
42
  exports.TitleContainer = TitleContainer;
43
43
  var CountryFlag = _styledComponents.default.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-right: 5px;\n .PhoneInputCountryIcon {\n width: 25px;\n }\n .PhoneInputInput {\n display: none;\n }\n .PhoneInputCountrySelect {\n display: none;\n }\n"])));
44
44
  exports.CountryFlag = CountryFlag;
45
- var PhoneContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: 30px;\n p {\n margin-bottom: 0;\n }\n"])));
45
+ var PhoneContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n height: 30px;\n"])));
46
46
  exports.PhoneContainer = PhoneContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -15,7 +15,7 @@ export const TipCard = styled.div`
15
15
  display: flex;
16
16
  justify-content: center;
17
17
  align-items: center;
18
- border-radius: 50%;
18
+ border-radius: 8px;
19
19
  border: 1px solid #E9ECEF;
20
20
  width: 62px;
21
21
  height: 62px;
@@ -25,7 +25,7 @@ export const TipCard = styled.div`
25
25
  font-size: 14px;
26
26
  color: #B1BCCC;
27
27
  transition: all 0.3s;
28
-
28
+ text-align: center;
29
29
  &.active {
30
30
  background-color: ${props => props.theme.colors.primary};
31
31
  color: ${props => props.theme.colors.primaryContrast};
@@ -206,7 +206,7 @@ export const ProductItemAccordion = (props) => {
206
206
  )}
207
207
  </ProductInfo>
208
208
 
209
- {product.valid ? (
209
+ {product.valid && (
210
210
  <>
211
211
  {(product?.valid || !isCartProduct) && windowSize.width > 410 && (
212
212
  <ProductPriceSection>
@@ -245,18 +245,6 @@ export const ProductItemAccordion = (props) => {
245
245
  </ProductPriceSection>
246
246
  )}
247
247
  </>
248
- ) : (
249
- <ProductActions>
250
- {onDeleteProduct && (
251
- <ProductActionsDelete
252
- ref={productActionsDelete}
253
- onClick={() => onDeleteProduct(product)}
254
- disabled={orderState.loading}
255
- >
256
- <Trash color='#B1BCCC' />
257
- </ProductActionsDelete>
258
- )}
259
- </ProductActions>
260
248
  )}
261
249
 
262
250
  {isCartProduct && !isCartPending && product?.valid_menu && !product?.valid_quantity && (
@@ -11,7 +11,7 @@ export const Header = styled.div`
11
11
  h1 {
12
12
  font-weight: 500;
13
13
  font-size: 20px;
14
- color: ${props => props.theme.colors.darkTextColor};
14
+ color: ${props => props.theme.colors.darkTextColor};
15
15
  margin: 0px 10px 0px 0px;
16
16
  ${props => props.theme?.rtl && css`
17
17
  margin: 0px 0px 0px 10px;
@@ -91,7 +91,7 @@ export const TitleContainer = styled.div`
91
91
  font-size: 24px;
92
92
  }
93
93
  ${({ isAddressFormOpen }) => isAddressFormOpen && css`
94
- h1{
94
+ h1{
95
95
  width: 75%;
96
96
  }
97
97
  `}
@@ -114,7 +114,4 @@ export const PhoneContainer = styled.div`
114
114
  display: flex;
115
115
  align-items: center;
116
116
  height: 30px;
117
- p {
118
- margin-bottom: 0;
119
- }
120
117
  `