@planetaexo/design-system 0.10.0 → 0.10.1
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 +15 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -319,6 +319,8 @@ interface BookingDepositInfo {
|
|
|
319
319
|
interface BookingDetailsProps {
|
|
320
320
|
bookingId: string;
|
|
321
321
|
status: BookingStatus;
|
|
322
|
+
/** Texto exibido no badge de status. Quando ausente, usa um default em inglês baseado no `status`. */
|
|
323
|
+
statusLabel?: string;
|
|
322
324
|
createdAt: string;
|
|
323
325
|
contact: BookingContact;
|
|
324
326
|
/** Dados completos do agente para renderizar o `AgentContactCard` (avatar + email + whatsapp).
|
|
@@ -395,7 +397,7 @@ interface BookingDetailsProps {
|
|
|
395
397
|
signOutLabel?: string;
|
|
396
398
|
className?: string;
|
|
397
399
|
}
|
|
398
|
-
declare function BookingDetails({ bookingId, status, 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;
|
|
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;
|
|
399
401
|
|
|
400
402
|
interface AgentContactCardProps {
|
|
401
403
|
layout: "compact" | "wide";
|
package/dist/index.d.ts
CHANGED
|
@@ -319,6 +319,8 @@ interface BookingDepositInfo {
|
|
|
319
319
|
interface BookingDetailsProps {
|
|
320
320
|
bookingId: string;
|
|
321
321
|
status: BookingStatus;
|
|
322
|
+
/** Texto exibido no badge de status. Quando ausente, usa um default em inglês baseado no `status`. */
|
|
323
|
+
statusLabel?: string;
|
|
322
324
|
createdAt: string;
|
|
323
325
|
contact: BookingContact;
|
|
324
326
|
/** Dados completos do agente para renderizar o `AgentContactCard` (avatar + email + whatsapp).
|
|
@@ -395,7 +397,7 @@ interface BookingDetailsProps {
|
|
|
395
397
|
signOutLabel?: string;
|
|
396
398
|
className?: string;
|
|
397
399
|
}
|
|
398
|
-
declare function BookingDetails({ bookingId, status, 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;
|
|
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;
|
|
399
401
|
|
|
400
402
|
interface AgentContactCardProps {
|
|
401
403
|
layout: "compact" | "wide";
|
package/dist/index.js
CHANGED
|
@@ -2383,7 +2383,18 @@ var STATUS_STYLES = {
|
|
|
2383
2383
|
pendingPaymentOverdue: "bg-destructive/15 text-destructive dark:bg-destructive/25 dark:text-destructive",
|
|
2384
2384
|
complete: "bg-success/15 text-success dark:bg-success/20 dark:text-success"
|
|
2385
2385
|
};
|
|
2386
|
-
|
|
2386
|
+
var STATUS_DEFAULT_LABELS = {
|
|
2387
|
+
pending: "Pending",
|
|
2388
|
+
confirmed: "Confirmed",
|
|
2389
|
+
cancelled: "Cancelled",
|
|
2390
|
+
completed: "Completed",
|
|
2391
|
+
pendingRegistration: "Pending registration",
|
|
2392
|
+
pendingPayment: "Pending payment",
|
|
2393
|
+
pendingPaymentOverdue: "Payment overdue",
|
|
2394
|
+
complete: "Complete"
|
|
2395
|
+
};
|
|
2396
|
+
function StatusBadge({ status, label }) {
|
|
2397
|
+
var _a;
|
|
2387
2398
|
return /* @__PURE__ */ jsx(
|
|
2388
2399
|
"span",
|
|
2389
2400
|
{
|
|
@@ -2391,7 +2402,7 @@ function StatusBadge({ status }) {
|
|
|
2391
2402
|
"inline-flex items-center rounded-full px-3 py-1 text-xs font-bold font-heading uppercase tracking-wider",
|
|
2392
2403
|
STATUS_STYLES[status]
|
|
2393
2404
|
),
|
|
2394
|
-
children: status
|
|
2405
|
+
children: (_a = label != null ? label : STATUS_DEFAULT_LABELS[status]) != null ? _a : status
|
|
2395
2406
|
}
|
|
2396
2407
|
);
|
|
2397
2408
|
}
|
|
@@ -3224,6 +3235,7 @@ function OrderSummary({
|
|
|
3224
3235
|
function BookingDetails({
|
|
3225
3236
|
bookingId,
|
|
3226
3237
|
status,
|
|
3238
|
+
statusLabel,
|
|
3227
3239
|
createdAt,
|
|
3228
3240
|
contact,
|
|
3229
3241
|
agent,
|
|
@@ -3379,7 +3391,7 @@ function BookingDetails({
|
|
|
3379
3391
|
createdAt
|
|
3380
3392
|
] })
|
|
3381
3393
|
] }),
|
|
3382
|
-
/* @__PURE__ */ jsx(StatusBadge, { status })
|
|
3394
|
+
/* @__PURE__ */ jsx(StatusBadge, { status, label: statusLabel })
|
|
3383
3395
|
] }),
|
|
3384
3396
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-3 gap-3", children: [
|
|
3385
3397
|
/* @__PURE__ */ jsxs(InfoCard, { label: "Contact", children: [
|