@planetaexo/design-system 0.12.6 → 0.12.7

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.d.cts CHANGED
@@ -315,6 +315,9 @@ interface BookingDepositInfo {
315
315
  dueDateLabel?: string;
316
316
  /** Quando true, troca cor do botão "Pay remaining balance" para variante destructive. */
317
317
  isOverdue?: boolean;
318
+ /** Total efectivamente pago (com juros embutidos quando houver). Quando undefined,
319
+ * a linha "Total paid" não é renderizada no OrderSummary. */
320
+ totalPaid?: string;
318
321
  }
319
322
  interface BookingDetailsProps {
320
323
  bookingId: string;
@@ -348,6 +351,9 @@ interface BookingDetailsProps {
348
351
  payBalanceLabel?: string;
349
352
  /** Label da linha "Balance due" no OrderSummary (default: "Balance due"). */
350
353
  balanceDueLabel?: string;
354
+ /** Label da linha "Total paid" no OrderSummary (default: "Total paid"). Apenas
355
+ * renderizada quando `depositInfo.totalPaid` está definido. */
356
+ totalPaidLabel?: string;
351
357
  /** Tooltip/title exibido nos botões de remove/unassign desabilitados
352
358
  * quando a aventura tem apenas 1 viajante. Default: "Cannot remove last traveller". */
353
359
  cannotRemoveLastTravellerLabel?: string;
@@ -397,7 +403,7 @@ interface BookingDetailsProps {
397
403
  signOutLabel?: string;
398
404
  className?: string;
399
405
  }
400
- declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onCopyFormLink, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
406
+ declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, totalPaidLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onCopyFormLink, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
401
407
 
402
408
  interface AgentContactCardProps {
403
409
  layout: "compact" | "wide";
package/dist/index.d.ts CHANGED
@@ -315,6 +315,9 @@ interface BookingDepositInfo {
315
315
  dueDateLabel?: string;
316
316
  /** Quando true, troca cor do botão "Pay remaining balance" para variante destructive. */
317
317
  isOverdue?: boolean;
318
+ /** Total efectivamente pago (com juros embutidos quando houver). Quando undefined,
319
+ * a linha "Total paid" não é renderizada no OrderSummary. */
320
+ totalPaid?: string;
318
321
  }
319
322
  interface BookingDetailsProps {
320
323
  bookingId: string;
@@ -348,6 +351,9 @@ interface BookingDetailsProps {
348
351
  payBalanceLabel?: string;
349
352
  /** Label da linha "Balance due" no OrderSummary (default: "Balance due"). */
350
353
  balanceDueLabel?: string;
354
+ /** Label da linha "Total paid" no OrderSummary (default: "Total paid"). Apenas
355
+ * renderizada quando `depositInfo.totalPaid` está definido. */
356
+ totalPaidLabel?: string;
351
357
  /** Tooltip/title exibido nos botões de remove/unassign desabilitados
352
358
  * quando a aventura tem apenas 1 viajante. Default: "Cannot remove last traveller". */
353
359
  cannotRemoveLastTravellerLabel?: string;
@@ -397,7 +403,7 @@ interface BookingDetailsProps {
397
403
  signOutLabel?: string;
398
404
  className?: string;
399
405
  }
400
- declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onCopyFormLink, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
406
+ declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, totalPaidLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onCopyFormLink, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
401
407
 
402
408
  interface AgentContactCardProps {
403
409
  layout: "compact" | "wide";
package/dist/index.js CHANGED
@@ -3130,7 +3130,8 @@ function OrderSummary({
3130
3130
  subtotal,
3131
3131
  total,
3132
3132
  depositInfo,
3133
- balanceDueLabel
3133
+ balanceDueLabel,
3134
+ totalPaidLabel
3134
3135
  }) {
3135
3136
  return /* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-border bg-card p-5 lg:p-6 flex flex-col gap-4", children: [
3136
3137
  /* @__PURE__ */ jsx("h3", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: "Order Summary" }),
@@ -3212,6 +3213,10 @@ function OrderSummary({
3212
3213
  /* @__PURE__ */ jsx("span", { className: "text-base font-bold text-foreground font-heading", children: "Total" }),
3213
3214
  /* @__PURE__ */ jsx("span", { className: "text-2xl font-black text-primary font-heading", children: total })
3214
3215
  ] }),
3216
+ (depositInfo == null ? void 0 : depositInfo.totalPaid) && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
3217
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground font-sans", children: totalPaidLabel != null ? totalPaidLabel : "Total paid" }),
3218
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground font-sans", children: depositInfo.totalPaid })
3219
+ ] }),
3215
3220
  depositInfo && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 rounded-lg bg-muted/50 border border-border p-4", children: [
3216
3221
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
3217
3222
  /* @__PURE__ */ jsxs("span", { className: "text-sm text-muted-foreground font-sans", children: [
@@ -3247,6 +3252,7 @@ function BookingDetails({
3247
3252
  contactSectionLabel,
3248
3253
  payBalanceLabel,
3249
3254
  balanceDueLabel,
3255
+ totalPaidLabel,
3250
3256
  cannotRemoveLastTravellerLabel,
3251
3257
  adventures,
3252
3258
  summaryLineItems,
@@ -3463,7 +3469,8 @@ function BookingDetails({
3463
3469
  subtotal,
3464
3470
  total,
3465
3471
  depositInfo,
3466
- balanceDueLabel
3472
+ balanceDueLabel,
3473
+ totalPaidLabel
3467
3474
  }
3468
3475
  ),
3469
3476
  /* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-border bg-card p-5 lg:p-6 flex flex-col gap-4", children: [