@fractalpay/fractalpay-next-dev 0.0.236 → 0.0.237

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.
package/dist/index.d.ts CHANGED
@@ -156,8 +156,8 @@ type Props = {
156
156
  partialRef?: string;
157
157
  onSubmit?: (submitFn: () => void) => void;
158
158
  onLoad: boolean;
159
- customeCSS?: string;
159
+ customCSS?: string;
160
160
  };
161
- declare const EmbeddedCheckout: ({ amount, bankAmount, submitBtnText, session_token, customerId, callback, merchantName, isPreAuth, surcharge, submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount, require3ds, autoTrigger, isPartial, bankSurcharge, partialRef, onSubmit, onLoad, customeCSS }: Props) => React.JSX.Element;
161
+ declare const EmbeddedCheckout: ({ amount, bankAmount, submitBtnText, session_token, customerId, callback, merchantName, isPreAuth, surcharge, submitBtnClass, submitBtnIcon, isRequest, pass_fee, pass_fee_amount, require3ds, autoTrigger, isPartial, bankSurcharge, partialRef, onSubmit, onLoad, customCSS }: Props) => React.JSX.Element;
162
162
 
163
163
  export { AddCardEasyPay as AddCard, CardOnFile, EmbeddedCheckout, GetPaymentPage, PartialPayment, PaymentWidget, PreAuthPayment, RequestPayment, RequestPreAuthPayment };
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ var require_package = __commonJS({
39
39
  "package.json"(exports, module) {
40
40
  module.exports = {
41
41
  name: "@fractalpay/fractalpay-next-dev",
42
- version: "0.0.236",
42
+ version: "0.0.237",
43
43
  private: false,
44
44
  type: "module",
45
45
  scripts: {
@@ -3239,7 +3239,7 @@ var FractalFields = ({ fractalStyles, tokenizerRef, isAddCard = false, isSky = f
3239
3239
  {
3240
3240
  id: "card_number",
3241
3241
  className: "form-control card-number-new",
3242
- style: { height: `${isSky ? "36px" : "46px"}`, display: "inline-block" }
3242
+ style: { height: `${isSky ? "36px" : "46px"}` }
3243
3243
  }
3244
3244
  ),
3245
3245
  /* @__PURE__ */ jsx17("div", { className: "card-crdi card-expiry-new", children: /* @__PURE__ */ jsxs10("div", { className: "exp-date-year-container", children: [
@@ -9383,7 +9383,20 @@ margin:0px !important;
9383
9383
  padding:0px !important;
9384
9384
  }
9385
9385
 
9386
-
9386
+
9387
+ .toggle-num-wrapper-new div#card_number {
9388
+ padding: 0px 10px;
9389
+ display: block !important;
9390
+ }
9391
+ .toggle-num-wrapper-new .card-crdi.card-expiry-new {
9392
+ padding: 0px 10px;
9393
+ }
9394
+ .toggle-num-wrapper-new .input-main-wrap-frac {
9395
+ height: 36px;
9396
+ }
9397
+ .toggle-num-wrapper-new:focus {
9398
+ border: 1px solid #004eab !important;
9399
+ }
9387
9400
 
9388
9401
  ` });
9389
9402
  }
@@ -10889,8 +10902,8 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10889
10902
  /* @__PURE__ */ jsx34(CardList, { headingClass: "card-ach-heading-frac", listHeading: "Card", ListItems: cardList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Card", otherButtonAction: () => {
10890
10903
  setActiveinCard("form");
10891
10904
  } }),
10892
- /* @__PURE__ */ jsx34("div", { className: "form-group-frac", style: { padding: "0" }, children: /* @__PURE__ */ jsx34("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: partialAmount ? formatUSD((_e = Number(partialAmount)) == null ? void 0 : _e.toFixed(2)) : formatUSD((_f = Number(amount)) == null ? void 0 : _f.toFixed(2)) }) })
10893
- ] }) : paymentGateway == 32 ? /* @__PURE__ */ jsxs20("form", { id: "paymentForm", style: { textAlign: "start" }, onSubmit: submitFunc, onKeyDown: (e) => {
10905
+ /* @__PURE__ */ jsx34("div", { className: "form-group-frac", style: { padding: "0", display: onSubmit ? "none" : "block" }, children: /* @__PURE__ */ jsx34("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: partialAmount ? formatUSD((_e = Number(partialAmount)) == null ? void 0 : _e.toFixed(2)) : formatUSD((_f = Number(amount)) == null ? void 0 : _f.toFixed(2)) }) })
10906
+ ] }) : paymentGateway == 32 ? /* @__PURE__ */ jsxs20("form", { id: "paymentForm", style: { textAlign: "start" }, ref: cardFormRef, onSubmit: submitFunc, onKeyDown: (e) => {
10894
10907
  if (e.key === "Enter" && loading) {
10895
10908
  e.preventDefault();
10896
10909
  e.stopPropagation();
@@ -10909,7 +10922,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10909
10922
  ] }),
10910
10923
  /* @__PURE__ */ jsxs20("div", { className: "form-group-frac", children: [
10911
10924
  /* @__PURE__ */ jsx34("label", { htmlFor: "cardNumber", children: "CARD NUMBER" }),
10912
- /* @__PURE__ */ jsx34("div", { className: "toggle-num-wrapper", children: (show || autoTrigger) && paymentGateway === 32 && /* @__PURE__ */ jsx34(
10925
+ /* @__PURE__ */ jsx34("div", { className: "toggle-num-wrapper toggle-num-wrapper-new", children: (show || autoTrigger) && paymentGateway === 32 && /* @__PURE__ */ jsx34(
10913
10926
  FractalFields_default,
10914
10927
  {
10915
10928
  fractalStyles,
@@ -10966,7 +10979,7 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
10966
10979
  ] }) })
10967
10980
  ] }),
10968
10981
  /* @__PURE__ */ jsx34("div", { className: "form-group-frac", style: { marginTop: "20px", padding: "0" }, children: /* @__PURE__ */ jsx34("button", { type: "submit", style: { margin: 0, display: onSubmit ? "none" : "block" }, className: "pay-button", children: partialAmount ? formatUSD((_h = Number(partialAmount)) == null ? void 0 : _h.toFixed(2)) : formatUSD((_i = Number(amount)) == null ? void 0 : _i.toFixed(2)) }) })
10969
- ] }) : /* @__PURE__ */ jsxs20("form", { id: "PaymentForm", style: { textAlign: "start" }, onSubmit: submitFunc, onKeyDown: (e) => {
10982
+ ] }) : /* @__PURE__ */ jsxs20("form", { id: "PaymentForm", style: { textAlign: "start" }, ref: cardFormRef, onSubmit: submitFunc, onKeyDown: (e) => {
10970
10983
  if (e.key === "Enter" && loading) {
10971
10984
  e.preventDefault();
10972
10985
  e.stopPropagation();
@@ -11054,8 +11067,8 @@ var ModelContentSky = ({ amount, bankAmount, submitBtnText = "Pay", session_toke
11054
11067
  /* @__PURE__ */ jsx34(CardList, { headingClass: "card-ach-heading-frac", listHeading: "Banks", ListItems: bankList, selectedCard, setSelectedCard, handleDeleteCard, otherButtonLabel: "Pay With Other Bank", otherButtonAction: () => {
11055
11068
  setActiveinBank("form");
11056
11069
  } }),
11057
- /* @__PURE__ */ jsx34("div", { className: "form-group-frac", style: { padding: "0" }, children: /* @__PURE__ */ jsx34("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: formatUSD((_m = Number(bankAmount)) == null ? void 0 : _m.toFixed(2)) }) })
11058
- ] }) : /* @__PURE__ */ jsxs20("form", { id: "ACHPaymentForm", style: { textAlign: "start" }, onSubmit: submitFunc, autoComplete: "off", onKeyDown: (e) => {
11070
+ /* @__PURE__ */ jsx34("div", { className: "form-group-frac", style: { padding: "0", display: onSubmit ? "none" : "block" }, children: /* @__PURE__ */ jsx34("button", { className: "pay-button", style: { margin: "0px" }, type: "submit", onClick: handlechargeCustomer, children: formatUSD((_m = Number(bankAmount)) == null ? void 0 : _m.toFixed(2)) }) })
11071
+ ] }) : /* @__PURE__ */ jsxs20("form", { id: "ACHPaymentForm", style: { textAlign: "start" }, ref: bankFormRef, onSubmit: submitFunc, autoComplete: "off", onKeyDown: (e) => {
11059
11072
  if (e.key === "Enter" && loading) {
11060
11073
  e.preventDefault();
11061
11074
  e.stopPropagation();
@@ -11654,6 +11667,8 @@ padding:0px !important;
11654
11667
  border-radius: 15px;
11655
11668
  min-width: 300px;
11656
11669
  }
11670
+
11671
+
11657
11672
  ${extraCustomCSS}
11658
11673
 
11659
11674
  ` });
@@ -11683,7 +11698,7 @@ var EmbeddedCheckout = ({
11683
11698
  partialRef,
11684
11699
  onSubmit,
11685
11700
  onLoad,
11686
- customeCSS
11701
+ customCSS: customCSS2
11687
11702
  }) => {
11688
11703
  const [show, setShow] = useState12(false);
11689
11704
  const [loading, setLoading] = useState12(false);
@@ -11783,7 +11798,7 @@ var EmbeddedCheckout = ({
11783
11798
  /* @__PURE__ */ jsx37(CardBankRadioStyles, {}),
11784
11799
  /* @__PURE__ */ jsx37(CustomModal2styles_default, {}),
11785
11800
  /* @__PURE__ */ jsx37(DataCapScriptLoader, {}),
11786
- /* @__PURE__ */ jsx37(EmbeddedCheckoutStyles, { extraCustomCSS: customeCSS }),
11801
+ /* @__PURE__ */ jsx37(EmbeddedCheckoutStyles, { extraCustomCSS: customCSS2 }),
11787
11802
  !autoTrigger && /* @__PURE__ */ jsxs22("button", { className: submitBtnClass || "paymentBtn", onClick: () => setShow(true), children: [
11788
11803
  submitBtnText,
11789
11804
  submitBtnIcon