subos-frontend 1.0.47 → 1.0.48

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.js CHANGED
@@ -1563,11 +1563,11 @@ var LogoInline = ({ src, alt = "Logo", viewBox = "0 0 1024 1024", ...props }) =>
1563
1563
  }
1564
1564
  );
1565
1565
  };
1566
- var Layout = ({ children }) => {
1566
+ var Layout = ({ children, hideHeader = false, hideFooter = false }) => {
1567
1567
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col min-h-screen w-full", children: [
1568
- /* @__PURE__ */ jsxRuntime.jsx("header", { className: "bg-white/80 backdrop-blur border-b border-gray-200", children: /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "w-full flex items-center justify-between px-4 py-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow", children: /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Link, { to: "/", className: "no-underline text-inherit", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(LogoInline, { className: "h-8 w-auto", alt: "SubOS" }) }) }) }) }) }),
1568
+ !hideHeader && /* @__PURE__ */ jsxRuntime.jsx("header", { className: "bg-white/80 backdrop-blur border-b border-gray-200", children: /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "w-full flex items-center justify-between px-4 py-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-grow", children: /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Link, { to: "/", className: "no-underline text-inherit", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(LogoInline, { className: "h-8 w-auto", alt: "SubOS" }) }) }) }) }) }),
1569
1569
  /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 w-full", children }),
1570
- /* @__PURE__ */ jsxRuntime.jsx("footer", { className: "bg-gray-100 py-6 w-full mt-auto", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-7xl mx-auto px-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-gray-600 text-center", children: [
1570
+ !hideFooter && /* @__PURE__ */ jsxRuntime.jsx("footer", { className: "bg-gray-100 py-6 w-full mt-auto", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-7xl mx-auto px-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-gray-600 text-center", children: [
1571
1571
  "\xA9 ",
1572
1572
  (/* @__PURE__ */ new Date()).getFullYear(),
1573
1573
  " SubOS. All rights reserved."
@@ -1615,13 +1615,13 @@ var PaymentSuccessPage = ({
1615
1615
  return top.invoice_pdf || void 0;
1616
1616
  }, [transactions, propInvoiceDownloadUrl]);
1617
1617
  if (transactionsLoading) {
1618
- return /* @__PURE__ */ jsxRuntime.jsx(Layout, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto p-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-md mx-auto bg-white rounded-lg shadow-md p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
1618
+ return /* @__PURE__ */ jsxRuntime.jsx(Layout, { hideHeader: true, hideFooter: true, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto p-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-md mx-auto bg-white rounded-lg shadow-md p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
1619
1619
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-spin rounded-full h-12 w-12 border-b-2 border-green-600 mx-auto" }),
1620
1620
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-4 text-gray-600", children: "Processing your payment..." })
1621
1621
  ] }) }) }) });
1622
1622
  }
1623
1623
  if (transactionsError) {
1624
- return /* @__PURE__ */ jsxRuntime.jsx(Layout, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto p-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-md mx-auto bg-white rounded-lg shadow-md p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
1624
+ return /* @__PURE__ */ jsxRuntime.jsx(Layout, { hideHeader: true, hideFooter: true, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto p-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-md mx-auto bg-white rounded-lg shadow-md p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
1625
1625
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-red-600 text-4xl mb-4", children: "\u26A0\uFE0F" }),
1626
1626
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-semibold text-gray-900 mb-2", children: "Payment Processing Error" }),
1627
1627
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-red-600 mb-4", children: transactionsError }),
@@ -1645,7 +1645,7 @@ var PaymentSuccessPage = ({
1645
1645
  ] })
1646
1646
  ] }) }) }) });
1647
1647
  }
1648
- return /* @__PURE__ */ jsxRuntime.jsx(Layout, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto p-4", children: /* @__PURE__ */ jsxRuntime.jsx(
1648
+ return /* @__PURE__ */ jsxRuntime.jsx(Layout, { hideHeader: true, hideFooter: true, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto p-4", children: /* @__PURE__ */ jsxRuntime.jsx(
1649
1649
  PaymentSuccessView_default,
1650
1650
  {
1651
1651
  details: paymentDetails,