@planetaexo/design-system 0.13.0 → 0.13.2
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -325,6 +325,9 @@ interface BookingDepositInfo {
|
|
|
325
325
|
remainingAmount: string;
|
|
326
326
|
balanceDueDate: string;
|
|
327
327
|
isPaidInFull?: boolean;
|
|
328
|
+
/** Label da linha do depósito. Default: "Deposit". Use "Paid" em contextos
|
|
329
|
+
* pós-compra onde o valor reflete o que o cliente realmente pagou. */
|
|
330
|
+
depositLabel?: string;
|
|
328
331
|
/** Valor numérico do saldo restante (em unidade monetária). Quando fornecido,
|
|
329
332
|
* o botão "Pay remaining balance" só é renderizado se > 0.
|
|
330
333
|
* Mantém backward compat: consumers que não passam o valor conservam o
|
|
@@ -338,6 +341,10 @@ interface BookingDepositInfo {
|
|
|
338
341
|
/** Total efectivamente pago (com juros embutidos quando houver). Quando undefined,
|
|
339
342
|
* a linha "Total paid" não é renderizada no OrderSummary. */
|
|
340
343
|
totalPaid?: string;
|
|
344
|
+
/** Quando true, esconde a linha "Deposit (X%)" do bloco. Útil quando o deposit
|
|
345
|
+
* cobre o total inteiro (deposit=100%) e a linha duplicaria visualmente
|
|
346
|
+
* o "Remaining balance". `Remaining balance` e `Balance due` continuam visíveis. */
|
|
347
|
+
hideDepositLine?: boolean;
|
|
341
348
|
}
|
|
342
349
|
interface BookingDetailsProps {
|
|
343
350
|
bookingId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -325,6 +325,9 @@ interface BookingDepositInfo {
|
|
|
325
325
|
remainingAmount: string;
|
|
326
326
|
balanceDueDate: string;
|
|
327
327
|
isPaidInFull?: boolean;
|
|
328
|
+
/** Label da linha do depósito. Default: "Deposit". Use "Paid" em contextos
|
|
329
|
+
* pós-compra onde o valor reflete o que o cliente realmente pagou. */
|
|
330
|
+
depositLabel?: string;
|
|
328
331
|
/** Valor numérico do saldo restante (em unidade monetária). Quando fornecido,
|
|
329
332
|
* o botão "Pay remaining balance" só é renderizado se > 0.
|
|
330
333
|
* Mantém backward compat: consumers que não passam o valor conservam o
|
|
@@ -338,6 +341,10 @@ interface BookingDepositInfo {
|
|
|
338
341
|
/** Total efectivamente pago (com juros embutidos quando houver). Quando undefined,
|
|
339
342
|
* a linha "Total paid" não é renderizada no OrderSummary. */
|
|
340
343
|
totalPaid?: string;
|
|
344
|
+
/** Quando true, esconde a linha "Deposit (X%)" do bloco. Útil quando o deposit
|
|
345
|
+
* cobre o total inteiro (deposit=100%) e a linha duplicaria visualmente
|
|
346
|
+
* o "Remaining balance". `Remaining balance` e `Balance due` continuam visíveis. */
|
|
347
|
+
hideDepositLine?: boolean;
|
|
341
348
|
}
|
|
342
349
|
interface BookingDetailsProps {
|
|
343
350
|
bookingId: string;
|
package/dist/index.js
CHANGED
|
@@ -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, {}),
|
|
@@ -3266,9 +3267,10 @@ function OrderSummary({
|
|
|
3266
3267
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground font-sans", children: depositInfo.totalPaid })
|
|
3267
3268
|
] }),
|
|
3268
3269
|
depositInfo && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 rounded-lg bg-muted/50 border border-border p-4", children: [
|
|
3269
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
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
|
] }),
|