@lideralia/alife-uikit 1.2.53 → 1.2.55

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.
@@ -70,6 +70,7 @@ var CardPayInfo = function CardPayInfo(_ref) {
70
70
  var _useState3 = (0, _react.useState)({
71
71
  payment_method_id: "",
72
72
  invoice_requested: false,
73
+ alias: "",
73
74
  dni: "",
74
75
  email: "",
75
76
  address: "",
@@ -273,7 +274,16 @@ CardPayInfo.Body = function (props) {
273
274
  onClick: function onClick() {
274
275
  setIsNeedInvoice(!isNeedInvoice);
275
276
  setInfoState(_objectSpread(_objectSpread({}, infoState), {}, {
276
- invoice_requested: !isNeedInvoice
277
+ invoice_requested: !isNeedInvoice,
278
+ alias: isNeedInvoice ? "" : infoState.alias,
279
+ dni: isNeedInvoice ? "" : infoState.dni,
280
+ email: isNeedInvoice ? "" : infoState.email,
281
+ address: isNeedInvoice ? "" : infoState.address,
282
+ location: isNeedInvoice ? "" : infoState.location,
283
+ cp: isNeedInvoice ? "" : infoState.cp,
284
+ province: isNeedInvoice ? "" : infoState.province,
285
+ country: isNeedInvoice ? "" : infoState.country,
286
+ country_iso: isNeedInvoice ? "" : infoState.country_iso
277
287
  }));
278
288
  }
279
289
  })), isNeedInvoice && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_Field.Field, {
@@ -33,13 +33,15 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
33
33
 
34
34
  var CardPaymentMethod = function CardPaymentMethod(_ref) {
35
35
  var stripeKey = _ref.stripeKey,
36
- stripeAccount = _ref.stripeAccount,
36
+ _ref$stripeAccount = _ref.stripeAccount,
37
+ stripeAccount = _ref$stripeAccount === void 0 ? undefined : _ref$stripeAccount,
37
38
  getPaymentMethod = _ref.getPaymentMethod,
38
39
  _ref$locale = _ref.locale,
39
40
  locale = _ref$locale === void 0 ? 'es' : _ref$locale,
40
41
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
41
42
  (0, _react.useEffect)(function () {}, []);
42
43
  var stripePromise = (0, _stripeJs.loadStripe)(stripeKey, {
44
+ stripeAccount: stripeAccount,
43
45
  locale: locale
44
46
  });
45
47
  return _react.default.createElement(_reactStripeJs.Elements, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lideralia/alife-uikit",
3
- "version": "1.2.53",
3
+ "version": "1.2.55",
4
4
  "description": "Librería y documentación de componentes, basada en el Design System de Alife.",
5
5
  "homepage": "https://github.com/lideralia/alife-frontend-components#readme",
6
6
  "bugs": {