@mercoa/react 0.0.10-rc7 → 0.0.10-rc8

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.es.js CHANGED
@@ -68437,7 +68437,7 @@ function Counterparties({ type: ee, admin: re }) {
68437
68437
  wr.email
68438
68438
  );
68439
68439
  }
68440
- return /* @__PURE__ */ jsxs("div", { className: "mercoa mercoa-overflow-hidden mercoa-shadow mercoa-ring-1 mercoa-ring-black mercoa-ring-opacity-5 md:mercoa-rounded-lg mercoa-p-5", children: [
68440
+ return /* @__PURE__ */ jsx("div", { className: "mercoa", children: /* @__PURE__ */ jsxs("div", { className: "mercoa-overflow-hidden mercoa-shadow mercoa-ring-1 mercoa-ring-black mercoa-ring-opacity-5 md:mercoa-rounded-lg mercoa-p-5", children: [
68441
68441
  /* @__PURE__ */ jsxs("div", { className: "mercoa-flex mercoa-mb-5 mercoa-space-x-5 mercoa-items-center", children: [
68442
68442
  /* @__PURE__ */ jsx("h2", { className: "mercoa-text-base mercoa-font-semibold mercoa-leading-7 mercoa-text-gray-900", children: ee === "payor" ? "Customers" : "Vendors" }),
68443
68443
  /* @__PURE__ */ jsx(
@@ -68528,7 +68528,7 @@ function Counterparties({ type: ee, admin: re }) {
68528
68528
  }
68529
68529
  ),
68530
68530
  /* @__PURE__ */ jsx(AddCounterpartyModal, { type: ee, show: or, setShow: ar })
68531
- ] });
68531
+ ] }) });
68532
68532
  }
68533
68533
  function AddCounterpartyModal({
68534
68534
  type: ee,
@@ -70731,9 +70731,16 @@ function InvoiceDetails({
70731
70731
  ] }),
70732
70732
  /* @__PURE__ */ jsx(InvoiceDocuments, { documents: new Array(ar), height: Mr })
70733
70733
  ] }) : /* @__PURE__ */ jsx(InvoiceDocumentsUpload, { onFileUpload: jr }) });
70734
- return nr ? /* @__PURE__ */ jsx(Fragment, { children: nr({ invoice: pr, documents: mr }) }) : !pr && ee ? /* @__PURE__ */ jsx(LoadingSpinner, {}) : /* @__PURE__ */ jsxs(X$2, { className: "mercoa", children: [
70734
+ return nr ? /* @__PURE__ */ jsx(Fragment, { children: nr({ invoice: pr, documents: mr }) }) : !pr && ee ? /* @__PURE__ */ jsx(LoadingSpinner, {}) : /* @__PURE__ */ jsx("div", { className: "mercoa", children: /* @__PURE__ */ jsxs(X$2, { children: [
70735
70735
  /* @__PURE__ */ jsx(_$2, { minSize: 0, children: Ir }),
70736
- /* @__PURE__ */ jsx(ne, { size: 5, className: "mercoa-bg-gray-200 mercoa-cursor-ew-resize mercoa-invisible min-[450px]:mercoa-visible", children: /* @__PURE__ */ jsx("div", { className: "mercoa-w-3 mercoa-h-10 mercoa-bg-gray-500 mercoa-absolute mercoa-top-1/2 mercoa-left-1/2 mercoa-transform -mercoa-translate-x-1/2 -mercoa-translate-y-1/2" }) }),
70736
+ /* @__PURE__ */ jsx(
70737
+ ne,
70738
+ {
70739
+ size: 5,
70740
+ className: "mercoa-bg-gray-200 mercoa-cursor-ew-resize mercoa-invisible min-[450px]:mercoa-visible",
70741
+ children: /* @__PURE__ */ jsx("div", { className: "mercoa-w-3 mercoa-h-10 mercoa-bg-gray-500 mercoa-absolute mercoa-top-1/2 mercoa-left-1/2 mercoa-transform -mercoa-translate-x-1/2 -mercoa-translate-y-1/2" })
70742
+ }
70743
+ ),
70737
70744
  /* @__PURE__ */ jsxs(_$2, { className: "mercoa-pl-5 mercoa-relative", minSize: 400, children: [
70738
70745
  /* @__PURE__ */ jsx("div", { className: "mercoa-flex mercoa-w-full mercoa-flex-row-reverse visible min-[450px]:mercoa-invisible mercoa-absolute mercoa-top-2", children: /* @__PURE__ */ jsxs(
70739
70746
  MercoaButton,
@@ -70765,7 +70772,7 @@ function InvoiceDetails({
70765
70772
  }
70766
70773
  )
70767
70774
  ] })
70768
- ] });
70775
+ ] }) });
70769
70776
  }
70770
70777
  function InvoiceDocumentsUpload({ onFileUpload: ee }) {
70771
70778
  const re = (ce) => new Promise((te, nr) => {
@@ -78193,12 +78200,12 @@ function EntityPortal({ token: ee }) {
78193
78200
  ] }) : $r = /* @__PURE__ */ jsxs(Fragment, { children: [
78194
78201
  /* @__PURE__ */ jsx("p", { className: "mercoa-font-gray-700 mercoa-my-2 mercoa-text-sm", children: "Before you can get started, please read and accept the terms of service" }),
78195
78202
  /* @__PURE__ */ jsx(AcceptToSButton, { title: "Terms of Service", buttonText: "View Terms of Service", entity: lr })
78196
- ] }), /* @__PURE__ */ jsxs("div", { className: "mercoa mercoa-container mercoa-mx-auto mercoa-mt-5 mercoa-text-center", children: [
78203
+ ] }), /* @__PURE__ */ jsx("div", { className: "mercoa", children: /* @__PURE__ */ jsxs("div", { className: "mercoa-container mercoa-mx-auto mercoa-mt-5 mercoa-text-center", children: [
78197
78204
  /* @__PURE__ */ jsx("h2", { className: "mercoa-font-gray-800 mercoa-text-lg", children: "Welcome to your Accounts Payable Dashboard" }),
78198
78205
  $r
78199
- ] });
78206
+ ] }) });
78200
78207
  }
78201
- return /* @__PURE__ */ jsxs("div", { className: "mercoa mercoa-container mercoa-mx-auto mercoa-px-4 sm:mercoa-px-6 lg:mercoa-px-8", children: [
78208
+ return /* @__PURE__ */ jsx("div", { className: "mercoa", children: /* @__PURE__ */ jsxs("div", { className: "mercoa-container mercoa-mx-auto mercoa-px-4 sm:mercoa-px-6 lg:mercoa-px-8", children: [
78202
78209
  /* @__PURE__ */ jsxs("div", { className: "mercoa-flex mercoa-items-center", children: [
78203
78210
  /* @__PURE__ */ jsx("div", { className: "mercoa-flex-auto mercoa-text-sm mercoa-text-gray-700 mercoa-my-4 sm:mercoa-mt-0", children: ar === "inbox" ? /* @__PURE__ */ jsx(Fragment, { children: ((_r = fr == null ? void 0 : fr.emailProvider) == null ? void 0 : _r.inboxDomain) && /* @__PURE__ */ jsxs(Fragment, { children: [
78204
78211
  "Forward invoices to: ",
@@ -78373,7 +78380,7 @@ function EntityPortal({ token: ee }) {
78373
78380
  }
78374
78381
  }
78375
78382
  )
78376
- ] });
78383
+ ] }) });
78377
78384
  }
78378
78385
  const notificationTypeToText = {
78379
78386
  [javascript.Mercoa.NotificationType.InvoiceEmailed]: "Invoice Email Received",