@mercoa/react 0.0.10-rc8 → 0.0.10

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__ */ 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: [
68440
+ return /* @__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,16 +70731,9 @@ 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__ */ jsx("div", { className: "mercoa", children: /* @__PURE__ */ jsxs(X$2, { children: [
70734
+ return nr ? /* @__PURE__ */ jsx(Fragment, { children: nr({ invoice: pr, documents: mr }) }) : !pr && ee ? /* @__PURE__ */ jsx(LoadingSpinner, {}) : /* @__PURE__ */ jsxs(X$2, { children: [
70735
70735
  /* @__PURE__ */ jsx(_$2, { minSize: 0, children: Ir }),
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
- ),
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" }) }),
70744
70737
  /* @__PURE__ */ jsxs(_$2, { className: "mercoa-pl-5 mercoa-relative", minSize: 400, children: [
70745
70738
  /* @__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(
70746
70739
  MercoaButton,
@@ -70772,7 +70765,7 @@ function InvoiceDetails({
70772
70765
  }
70773
70766
  )
70774
70767
  ] })
70775
- ] }) });
70768
+ ] });
70776
70769
  }
70777
70770
  function InvoiceDocumentsUpload({ onFileUpload: ee }) {
70778
70771
  const re = (ce) => new Promise((te, nr) => {
@@ -73238,7 +73231,7 @@ function ApprovalPolicies() {
73238
73231
  type: "error"
73239
73232
  });
73240
73233
  }
73241
- return /* @__PURE__ */ jsxs("form", { onSubmit: fr(br), className: "mercoa", children: [
73234
+ return /* @__PURE__ */ jsxs("form", { onSubmit: fr(br), children: [
73242
73235
  /* @__PURE__ */ jsx(
73243
73236
  Level,
73244
73237
  {
@@ -78200,12 +78193,12 @@ function EntityPortal({ token: ee }) {
78200
78193
  ] }) : $r = /* @__PURE__ */ jsxs(Fragment, { children: [
78201
78194
  /* @__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" }),
78202
78195
  /* @__PURE__ */ jsx(AcceptToSButton, { title: "Terms of Service", buttonText: "View Terms of Service", entity: lr })
78203
- ] }), /* @__PURE__ */ jsx("div", { className: "mercoa", children: /* @__PURE__ */ jsxs("div", { className: "mercoa-container mercoa-mx-auto mercoa-mt-5 mercoa-text-center", children: [
78196
+ ] }), /* @__PURE__ */ jsxs("div", { className: " mercoa-container mercoa-mx-auto mercoa-mt-5 mercoa-text-center", children: [
78204
78197
  /* @__PURE__ */ jsx("h2", { className: "mercoa-font-gray-800 mercoa-text-lg", children: "Welcome to your Accounts Payable Dashboard" }),
78205
78198
  $r
78206
- ] }) });
78199
+ ] });
78207
78200
  }
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: [
78201
+ return /* @__PURE__ */ jsxs("div", { className: " mercoa-container mercoa-mx-auto mercoa-px-4 sm:mercoa-px-6 lg:mercoa-px-8", children: [
78209
78202
  /* @__PURE__ */ jsxs("div", { className: "mercoa-flex mercoa-items-center", children: [
78210
78203
  /* @__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: [
78211
78204
  "Forward invoices to: ",
@@ -78380,7 +78373,7 @@ function EntityPortal({ token: ee }) {
78380
78373
  }
78381
78374
  }
78382
78375
  )
78383
- ] }) });
78376
+ ] });
78384
78377
  }
78385
78378
  const notificationTypeToText = {
78386
78379
  [javascript.Mercoa.NotificationType.InvoiceEmailed]: "Invoice Email Received",