@planetaexo/design-system 0.37.1 → 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,
@@ -3355,9 +3358,9 @@ function ResendInviteConfirmDialog({
3355
3358
  onOpenChange: (o) => {
3356
3359
  if (!o) onClose();
3357
3360
  },
3358
- children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "sm:max-w-sm text-foreground", children: [
3361
+ children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: "sm:max-w-sm text-muted-foreground [&>button]:text-muted-foreground/70 [&>button:hover]:text-foreground", children: [
3359
3362
  /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
3360
- /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-foreground font-heading text-base", children: (_a = labels == null ? void 0 : labels.title) != null ? _a : "Resend registration invite?" }),
3363
+ /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "font-heading text-base text-foreground/80", children: (_a = labels == null ? void 0 : labels.title) != null ? _a : "Resend registration invite?" }),
3361
3364
  /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { children: (_b = labels == null ? void 0 : labels.body) != null ? _b : "The traveller will receive the registration form link again. This action cannot be undone." })
3362
3365
  ] }),
3363
3366
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-2 rounded-lg bg-amber-500/10 border border-amber-500/30 px-3 py-2", children: [