@planetaexo/design-system 0.37.2 → 0.37.3

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
@@ -2279,13 +2279,16 @@ function Offer({
2279
2279
  labels,
2280
2280
  confirmedState,
2281
2281
  interactionsDisabled,
2282
+ internalDemoCheckout = false,
2282
2283
  className
2283
2284
  }) {
2284
2285
  var _a, _b, _c;
2285
2286
  const [showBooking, setShowBooking] = React8__namespace.useState(false);
2286
- const isShowingCheckout = !confirmedState && (!!checkoutSlot || showBooking);
2287
+ const isShowingCheckout = !confirmedState && (!!checkoutSlot || internalDemoCheckout && showBooking);
2287
2288
  const handleBook = () => {
2288
- if (!checkoutSlot && !externalBookingFlow) setShowBooking(true);
2289
+ if (!checkoutSlot && !externalBookingFlow && internalDemoCheckout) {
2290
+ setShowBooking(true);
2291
+ }
2289
2292
  onContinue == null ? void 0 : onContinue();
2290
2293
  };
2291
2294
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("w-full max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 flex flex-col gap-6 pb-20 lg:pb-12", className), children: [
@@ -2330,7 +2333,7 @@ function Offer({
2330
2333
  labels
2331
2334
  }
2332
2335
  ),
2333
- isShowingCheckout && (checkoutSlot != null ? checkoutSlot : /* @__PURE__ */ jsxRuntime.jsx(
2336
+ isShowingCheckout && (checkoutSlot != null ? checkoutSlot : internalDemoCheckout ? /* @__PURE__ */ jsxRuntime.jsx(
2334
2337
  BookingWizard,
2335
2338
  {
2336
2339
  adventures,
@@ -2339,7 +2342,7 @@ function Offer({
2339
2342
  onCancel: () => setShowBooking(false),
2340
2343
  labels
2341
2344
  }
2342
- ))
2345
+ ) : null)
2343
2346
  ] }) }),
2344
2347
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:sticky lg:top-8", children: /* @__PURE__ */ jsxRuntime.jsx(
2345
2348
  OfferSidebar,