@planetaexo/design-system 0.3.4 → 0.3.6

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,100 @@ 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
+ }
6501
+
6502
+ // src/lib/stripeAppearance.ts
6503
+ var stripeAppearance = {
6504
+ theme: "night",
6505
+ variables: {
6506
+ /** Cor primária — foco, checkbox, botão interno do Stripe */
6507
+ colorPrimary: "#22c55e",
6508
+ /** Border-radius dos campos do Stripe */
6509
+ borderRadius: "8px",
6510
+ /** Background dos campos internos */
6511
+ colorBackground: "#020617",
6512
+ /** Cor base do texto */
6513
+ colorText: "#e2e8f0",
6514
+ /** Cor do placeholder */
6515
+ colorTextPlaceholder: "#64748b",
6516
+ /** Cor da borda padrão */
6517
+ colorIconTab: "#94a3b8"
6518
+ }
6519
+ };
6426
6520
  function Input(_a) {
6427
6521
  var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
6428
6522
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -6787,6 +6881,7 @@ function LeadCapturePopup({
6787
6881
  }
6788
6882
 
6789
6883
  exports.ActivityCard = ActivityCard;
6884
+ exports.Alert = Alert;
6790
6885
  exports.BookingConfirmation = BookingConfirmation;
6791
6886
  exports.BookingConfirmationEmail = BookingConfirmationEmail;
6792
6887
  exports.BookingDetails = BookingDetails;
@@ -6808,6 +6903,7 @@ exports.Offer = Offer;
6808
6903
  exports.OfferAdventureCard = OfferAdventureCard;
6809
6904
  exports.PaymentAmountSelector = PaymentAmountSelector;
6810
6905
  exports.PaymentMethodSelector = PaymentMethodSelector;
6906
+ exports.PaymentModalShell = PaymentModalShell;
6811
6907
  exports.PhoneCountrySelect = PhoneCountrySelect;
6812
6908
  exports.PhotoGallery = PhotoGallery;
6813
6909
  exports.PricingTrip = PricingTrip;
@@ -6818,5 +6914,6 @@ exports.TripCard = TripCard;
6818
6914
  exports.TripHeader = TripHeader;
6819
6915
  exports.TripPage = TripPage;
6820
6916
  exports.cn = cn;
6917
+ exports.stripeAppearance = stripeAppearance;
6821
6918
  //# sourceMappingURL=index.cjs.map
6822
6919
  //# sourceMappingURL=index.cjs.map