@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.cjs
CHANGED
|
@@ -2404,7 +2404,18 @@ var STATUS_STYLES = {
|
|
|
2404
2404
|
pendingPaymentOverdue: "bg-destructive/15 text-destructive dark:bg-destructive/25 dark:text-destructive",
|
|
2405
2405
|
complete: "bg-success/15 text-success dark:bg-success/20 dark:text-success"
|
|
2406
2406
|
};
|
|
2407
|
-
|
|
2407
|
+
var STATUS_DEFAULT_LABELS = {
|
|
2408
|
+
pending: "Pending",
|
|
2409
|
+
confirmed: "Confirmed",
|
|
2410
|
+
cancelled: "Cancelled",
|
|
2411
|
+
completed: "Completed",
|
|
2412
|
+
pendingRegistration: "Pending registration",
|
|
2413
|
+
pendingPayment: "Pending payment",
|
|
2414
|
+
pendingPaymentOverdue: "Payment overdue",
|
|
2415
|
+
complete: "Complete"
|
|
2416
|
+
};
|
|
2417
|
+
function StatusBadge({ status, label }) {
|
|
2418
|
+
var _a;
|
|
2408
2419
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2409
2420
|
"span",
|
|
2410
2421
|
{
|
|
@@ -2412,7 +2423,7 @@ function StatusBadge({ status }) {
|
|
|
2412
2423
|
"inline-flex items-center rounded-full px-3 py-1 text-xs font-bold font-heading uppercase tracking-wider",
|
|
2413
2424
|
STATUS_STYLES[status]
|
|
2414
2425
|
),
|
|
2415
|
-
children: status
|
|
2426
|
+
children: (_a = label != null ? label : STATUS_DEFAULT_LABELS[status]) != null ? _a : status
|
|
2416
2427
|
}
|
|
2417
2428
|
);
|
|
2418
2429
|
}
|
|
@@ -3245,6 +3256,7 @@ function OrderSummary({
|
|
|
3245
3256
|
function BookingDetails({
|
|
3246
3257
|
bookingId,
|
|
3247
3258
|
status,
|
|
3259
|
+
statusLabel,
|
|
3248
3260
|
createdAt,
|
|
3249
3261
|
contact,
|
|
3250
3262
|
agent,
|
|
@@ -3400,7 +3412,7 @@ function BookingDetails({
|
|
|
3400
3412
|
createdAt
|
|
3401
3413
|
] })
|
|
3402
3414
|
] }),
|
|
3403
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { status })
|
|
3415
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { status, label: statusLabel })
|
|
3404
3416
|
] }),
|
|
3405
3417
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-3 gap-3", children: [
|
|
3406
3418
|
/* @__PURE__ */ jsxRuntime.jsxs(InfoCard, { label: "Contact", children: [
|