tf-checkout-react 1.6.2-beta.2 → 1.6.2-beta.3

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.
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
1
  import './style.css';
3
2
  import { ThemeOptions } from '@mui/material';
4
3
  import { CSSProperties } from '@mui/styles';
5
4
  import { AxiosError } from 'axios';
6
5
  import { FormikHelpers, FormikValues } from 'formik';
6
+ import { ReactNode } from 'react';
7
7
  import { IBillingInfoData } from '../../types';
8
8
  export interface IBillingInfoPage {
9
9
  data?: IBillingInfoData[];
@@ -53,6 +53,7 @@ export interface IBillingInfoPage {
53
53
  customFieldsOrderKeys?: string[];
54
54
  customFieldsTicketHolderKeys?: string[];
55
55
  onPendingVerification?: () => void;
56
+ CustomLogin?: ReactNode;
56
57
  }
57
58
  declare const WithCustomFieldsBillingInfoContainer: (props: any) => JSX.Element;
58
59
  export { WithCustomFieldsBillingInfoContainer as BillingInfoContainer };
@@ -3846,7 +3846,8 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
3846
3846
  _ref4$onGetCheckoutCo = _ref4.onGetCheckoutConfigsSuccess,
3847
3847
  onGetCheckoutConfigsSuccess = _ref4$onGetCheckoutCo === void 0 ? _identity : _ref4$onGetCheckoutCo,
3848
3848
  _ref4$onGetCheckoutCo2 = _ref4.onGetCheckoutConfigsError,
3849
- onGetCheckoutConfigsError = _ref4$onGetCheckoutCo2 === void 0 ? _identity : _ref4$onGetCheckoutCo2;
3849
+ onGetCheckoutConfigsError = _ref4$onGetCheckoutCo2 === void 0 ? _identity : _ref4$onGetCheckoutCo2,
3850
+ CustomLogin = _ref4.CustomLogin;
3850
3851
  var _useState = React.useState(null),
3851
3852
  extraData = _useState[0],
3852
3853
  setExtraData = _useState[1];
@@ -4645,7 +4646,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
4645
4646
  }, props.isSubmitting ? React__default.createElement(material.CircularProgress, {
4646
4647
  size: 26
4647
4648
  }) : buttonName))));
4648
- }), showModalLogin && React__default.createElement(LoginModal, {
4649
+ }), CustomLogin ? CustomLogin : null, showModalLogin && !CustomLogin ? React__default.createElement(LoginModal, {
4649
4650
  logo: logo,
4650
4651
  onClose: function onClose() {
4651
4652
  setShowModalLogin(false);
@@ -4673,7 +4674,7 @@ var BillingInfoContainer = /*#__PURE__*/React__default.memo(function (_ref4) {
4673
4674
  setShowModalSignup(true);
4674
4675
  },
4675
4676
  showPoweredByImage: showPoweredByImage
4676
- }), showModalSignup && React__default.createElement(SignupModal, {
4677
+ }) : null, showModalSignup && React__default.createElement(SignupModal, {
4677
4678
  onClose: function onClose() {
4678
4679
  setShowModalSignup(false);
4679
4680
  },