@planetaexo/design-system 0.3.1 → 0.3.2

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.cjs CHANGED
@@ -1863,14 +1863,16 @@ function Offer({
1863
1863
  onContinue,
1864
1864
  continueLabel = "Book now",
1865
1865
  externalBookingFlow,
1866
+ checkoutSlot,
1866
1867
  summaryNotesSlot,
1867
1868
  summaryDiscountLine,
1868
1869
  continueDisabled,
1869
1870
  className
1870
1871
  }) {
1871
1872
  const [showBooking, setShowBooking] = React18__namespace.useState(false);
1873
+ const isShowingCheckout = !!checkoutSlot || showBooking;
1872
1874
  const handleBook = () => {
1873
- if (!externalBookingFlow) setShowBooking(true);
1875
+ if (!checkoutSlot && !externalBookingFlow) setShowBooking(true);
1874
1876
  onContinue == null ? void 0 : onContinue();
1875
1877
  };
1876
1878
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("w-full max-w-5xl mx-auto flex flex-col gap-6 pb-20 lg:pb-0", className), children: [
@@ -1886,7 +1888,7 @@ function Offer({
1886
1888
  ] }),
1887
1889
  adventures.map((adventure) => /* @__PURE__ */ jsxRuntime.jsx(AdventureCard, { adventure }, adventure.id))
1888
1890
  ] }),
1889
- !showBooking && /* @__PURE__ */ jsxRuntime.jsx(
1891
+ !isShowingCheckout && /* @__PURE__ */ jsxRuntime.jsx(
1890
1892
  OfferSummarySection,
1891
1893
  {
1892
1894
  adventures,
@@ -1900,7 +1902,7 @@ function Offer({
1900
1902
  continueDisabled
1901
1903
  }
1902
1904
  ),
1903
- showBooking && !externalBookingFlow && /* @__PURE__ */ jsxRuntime.jsx(
1905
+ isShowingCheckout && (checkoutSlot != null ? checkoutSlot : /* @__PURE__ */ jsxRuntime.jsx(
1904
1906
  BookingWizard,
1905
1907
  {
1906
1908
  adventures,
@@ -1908,7 +1910,7 @@ function Offer({
1908
1910
  depositInfo,
1909
1911
  onCancel: () => setShowBooking(false)
1910
1912
  }
1911
- )
1913
+ ))
1912
1914
  ] }),
1913
1915
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:sticky lg:top-8", children: /* @__PURE__ */ jsxRuntime.jsx(
1914
1916
  OfferSidebar,
@@ -1921,7 +1923,7 @@ function Offer({
1921
1923
  }
1922
1924
  ) })
1923
1925
  ] }),
1924
- !showBooking && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed bottom-0 inset-x-0 z-40 border-t border-border bg-background/95 backdrop-blur-sm px-4 py-3 lg:hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4 max-w-5xl mx-auto", children: [
1926
+ !isShowingCheckout && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed bottom-0 inset-x-0 z-40 border-t border-border bg-background/95 backdrop-blur-sm px-4 py-3 lg:hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4 max-w-5xl mx-auto", children: [
1925
1927
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
1926
1928
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] uppercase tracking-widest text-muted-foreground font-heading", children: "Total" }),
1927
1929
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xl font-black text-primary font-heading leading-tight", children: total })