@planetaexo/design-system 0.13.1 → 0.13.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.d.cts CHANGED
@@ -311,6 +311,14 @@ interface BookingAdventure {
311
311
  /** Tooltip exibido quando chips de "Add to this adventure" estão desabilitados por capacidade.
312
312
  * Default: "Adventure full". */
313
313
  atCapacityLabel?: string;
314
+ /** Quando true, oculta a barra "X of N travellers registered" e o ícone de
315
+ * pendência. O sub-card passa a mostrar apenas o label
316
+ * `noRegistrationRequiredLabel`. Default: false (status quo). */
317
+ registrationNotRequired?: boolean;
318
+ /** Texto exibido quando `registrationNotRequired === true`.
319
+ * Default: "No registration required". O consumidor passa label
320
+ * localizado (i18n) — espelha o padrão de `addTravellerLabel`. */
321
+ noRegistrationRequiredLabel?: string;
314
322
  }
315
323
  interface BookingContact {
316
324
  name: string;
@@ -325,6 +333,9 @@ interface BookingDepositInfo {
325
333
  remainingAmount: string;
326
334
  balanceDueDate: string;
327
335
  isPaidInFull?: boolean;
336
+ /** Label da linha do depósito. Default: "Deposit". Use "Paid" em contextos
337
+ * pós-compra onde o valor reflete o que o cliente realmente pagou. */
338
+ depositLabel?: string;
328
339
  /** Valor numérico do saldo restante (em unidade monetária). Quando fornecido,
329
340
  * o botão "Pay remaining balance" só é renderizado se > 0.
330
341
  * Mantém backward compat: consumers que não passam o valor conservam o
package/dist/index.d.ts CHANGED
@@ -311,6 +311,14 @@ interface BookingAdventure {
311
311
  /** Tooltip exibido quando chips de "Add to this adventure" estão desabilitados por capacidade.
312
312
  * Default: "Adventure full". */
313
313
  atCapacityLabel?: string;
314
+ /** Quando true, oculta a barra "X of N travellers registered" e o ícone de
315
+ * pendência. O sub-card passa a mostrar apenas o label
316
+ * `noRegistrationRequiredLabel`. Default: false (status quo). */
317
+ registrationNotRequired?: boolean;
318
+ /** Texto exibido quando `registrationNotRequired === true`.
319
+ * Default: "No registration required". O consumidor passa label
320
+ * localizado (i18n) — espelha o padrão de `addTravellerLabel`. */
321
+ noRegistrationRequiredLabel?: string;
314
322
  }
315
323
  interface BookingContact {
316
324
  name: string;
@@ -325,6 +333,9 @@ interface BookingDepositInfo {
325
333
  remainingAmount: string;
326
334
  balanceDueDate: string;
327
335
  isPaidInFull?: boolean;
336
+ /** Label da linha do depósito. Default: "Deposit". Use "Paid" em contextos
337
+ * pós-compra onde o valor reflete o que o cliente realmente pagou. */
338
+ depositLabel?: string;
328
339
  /** Valor numérico do saldo restante (em unidade monetária). Quando fornecido,
329
340
  * o botão "Pay remaining balance" só é renderizado se > 0.
330
341
  * Mantém backward compat: consumers que não passam o valor conservam o
package/dist/index.js CHANGED
@@ -2505,7 +2505,7 @@ function AdventureSection({
2505
2505
  onRequestOpenDeleteModal,
2506
2506
  cannotRemoveLastTravellerLabel
2507
2507
  }) {
2508
- var _a, _b, _c, _d, _e, _f, _g, _h;
2508
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
2509
2509
  const [detailsOpen, setDetailsOpen] = React23.useState(false);
2510
2510
  const handleCopyUrl = (url) => {
2511
2511
  if (onCopyFormLink) {
@@ -2847,7 +2847,7 @@ function AdventureSection({
2847
2847
  )) })
2848
2848
  ] });
2849
2849
  })(),
2850
- adventure.travellers.length > 0 && totalSlots > 0 && (() => {
2850
+ adventure.registrationNotRequired ? /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 mt-1", children: /* @__PURE__ */ jsx("span", { className: "text-xs font-ui text-muted-foreground", children: (_i = adventure.noRegistrationRequiredLabel) != null ? _i : "No registration required" }) }) : adventure.travellers.length > 0 && totalSlots > 0 && (() => {
2851
2851
  const completed = adventure.travellers.filter((t) => t.status === "completed").length;
2852
2852
  const percent = Math.round(completed / totalSlots * 100);
2853
2853
  const isComplete = completed >= totalSlots;
@@ -3181,6 +3181,7 @@ function OrderSummary({
3181
3181
  balanceDueLabel,
3182
3182
  totalPaidLabel
3183
3183
  }) {
3184
+ var _a;
3184
3185
  return /* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-border bg-card p-5 lg:p-6 flex flex-col gap-4", children: [
3185
3186
  /* @__PURE__ */ jsx("h3", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: "Order Summary" }),
3186
3187
  /* @__PURE__ */ jsx(Separator, {}),
@@ -3268,7 +3269,8 @@ function OrderSummary({
3268
3269
  depositInfo && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 rounded-lg bg-muted/50 border border-border p-4", children: [
3269
3270
  !depositInfo.hideDepositLine && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
3270
3271
  /* @__PURE__ */ jsxs("span", { className: "text-sm text-muted-foreground font-sans", children: [
3271
- "Deposit (",
3272
+ (_a = depositInfo.depositLabel) != null ? _a : "Deposit",
3273
+ " (",
3272
3274
  depositInfo.depositPercent,
3273
3275
  "%)"
3274
3276
  ] }),