@planetaexo/design-system 0.3.4 → 0.3.5

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
@@ -6423,6 +6423,81 @@ function ActivityCard({
6423
6423
  }
6424
6424
  );
6425
6425
  }
6426
+ var VARIANT_STYLES = {
6427
+ error: "text-destructive border-destructive/30 bg-destructive/5",
6428
+ warning: "text-amber-400 border-amber-500/30 bg-amber-500/10",
6429
+ success: "text-primary border-primary/30 bg-primary/10",
6430
+ info: "text-muted-foreground border-primary/25 bg-primary/5"
6431
+ };
6432
+ function Alert({ variant = "info", children, className }) {
6433
+ return /* @__PURE__ */ jsxRuntime.jsx(
6434
+ "div",
6435
+ {
6436
+ className: cn(
6437
+ "rounded-lg border px-3 py-2 text-sm font-sans leading-snug",
6438
+ VARIANT_STYLES[variant],
6439
+ className
6440
+ ),
6441
+ children
6442
+ }
6443
+ );
6444
+ }
6445
+ function PaymentModalShell({
6446
+ open,
6447
+ title,
6448
+ subtitle,
6449
+ bookingRef,
6450
+ busy,
6451
+ busyMessage,
6452
+ onClose,
6453
+ closeLabel = "Cancel",
6454
+ closeDisabled,
6455
+ children,
6456
+ className
6457
+ }) {
6458
+ if (!open) return null;
6459
+ return /* @__PURE__ */ jsxRuntime.jsx(
6460
+ "div",
6461
+ {
6462
+ className: "fixed inset-0 z-[100] flex items-center justify-center bg-black/70 p-4",
6463
+ role: "dialog",
6464
+ "aria-modal": "true",
6465
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
6466
+ "div",
6467
+ {
6468
+ className: cn(
6469
+ "relative w-full max-w-md rounded-2xl border border-border bg-card p-6 shadow-xl",
6470
+ "max-h-[90vh] overflow-y-auto",
6471
+ className
6472
+ ),
6473
+ children: [
6474
+ onClose && /* @__PURE__ */ jsxRuntime.jsx(
6475
+ "button",
6476
+ {
6477
+ type: "button",
6478
+ onClick: () => !closeDisabled && onClose(),
6479
+ disabled: closeDisabled,
6480
+ "aria-label": closeLabel,
6481
+ className: "absolute right-4 top-4 text-xl leading-none text-muted-foreground hover:text-foreground disabled:opacity-40 transition-colors",
6482
+ children: "\xD7"
6483
+ }
6484
+ ),
6485
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "pr-8 text-lg font-bold text-foreground font-heading", children: title }),
6486
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground font-sans", children: subtitle }),
6487
+ bookingRef != null && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "mt-1 text-xs text-muted-foreground font-sans", children: [
6488
+ "#",
6489
+ bookingRef
6490
+ ] }),
6491
+ busy ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 flex flex-col items-center gap-4 py-6", children: [
6492
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "h-10 w-10 animate-spin rounded-full border-2 border-primary/30 border-t-primary" }),
6493
+ busyMessage && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-sm text-muted-foreground font-sans", children: busyMessage })
6494
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6", children })
6495
+ ]
6496
+ }
6497
+ )
6498
+ }
6499
+ );
6500
+ }
6426
6501
  function Input(_a) {
6427
6502
  var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
6428
6503
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -6787,6 +6862,7 @@ function LeadCapturePopup({
6787
6862
  }
6788
6863
 
6789
6864
  exports.ActivityCard = ActivityCard;
6865
+ exports.Alert = Alert;
6790
6866
  exports.BookingConfirmation = BookingConfirmation;
6791
6867
  exports.BookingConfirmationEmail = BookingConfirmationEmail;
6792
6868
  exports.BookingDetails = BookingDetails;
@@ -6808,6 +6884,7 @@ exports.Offer = Offer;
6808
6884
  exports.OfferAdventureCard = OfferAdventureCard;
6809
6885
  exports.PaymentAmountSelector = PaymentAmountSelector;
6810
6886
  exports.PaymentMethodSelector = PaymentMethodSelector;
6887
+ exports.PaymentModalShell = PaymentModalShell;
6811
6888
  exports.PhoneCountrySelect = PhoneCountrySelect;
6812
6889
  exports.PhotoGallery = PhotoGallery;
6813
6890
  exports.PricingTrip = PricingTrip;