@voyant-travel/bookings-react 0.120.1 → 0.120.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.
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-list-skeleton.d.ts","sourceRoot":"","sources":["../../src/admin/bookings-list-skeleton.tsx"],"names":[],"mappings":"AAaA;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,4CA2CnC"}
1
+ {"version":3,"file":"bookings-list-skeleton.d.ts","sourceRoot":"","sources":["../../src/admin/bookings-list-skeleton.tsx"],"names":[],"mappings":"AAcA;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,4CA4CnC"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useOperatorAdminMessages } from "@voyant-travel/admin";
4
3
  import { Skeleton } from "@voyant-travel/ui/components/skeleton";
5
4
  import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@voyant-travel/ui/components/table";
5
+ const HEADER_WIDTHS = ["w-20", "w-14", "w-20", "w-8", "w-20"];
6
6
  /**
7
7
  * Route-level placeholder for the bookings list. Mirrors `BookingsPage` +
8
8
  * `BookingList`:
@@ -12,8 +12,9 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "
12
12
  * - Pagination bar
13
13
  */
14
14
  export function BookingsListSkeleton() {
15
- const bookingMessages = useOperatorAdminMessages().bookings.list;
16
- return (_jsxs("div", { className: "flex flex-col gap-6 p-6", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Skeleton, { className: "h-7 w-28" }), _jsx(Skeleton, { className: "h-4 w-80" })] }), _jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [_jsx(Skeleton, { className: "h-9 w-full max-w-sm" }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Skeleton, { className: "h-9 w-32" }), _jsx(Skeleton, { className: "h-9 w-36" })] })] }), _jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { children: bookingMessages.tableBookingNumber }), _jsx(TableHead, { children: bookingMessages.tableStatus }), _jsx(TableHead, { children: bookingMessages.tableSellAmount }), _jsx(TableHead, { children: bookingMessages.tablePax }), _jsx(TableHead, { children: bookingMessages.tableStartDate })] }) }), _jsx(SkeletonRows, { rows: 8, widths: ["w-28", "w-20", "w-24", "w-6", "w-24"] })] }) }), _jsxs("div", { className: "flex items-center justify-between", children: [_jsx(Skeleton, { className: "h-4 w-40" }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Skeleton, { className: "h-8 w-20" }), _jsx(Skeleton, { className: "h-4 w-20" }), _jsx(Skeleton, { className: "h-8 w-16" })] })] })] }));
15
+ return (_jsxs("div", { className: "flex flex-col gap-6 p-6", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Skeleton, { className: "h-7 w-28" }), _jsx(Skeleton, { className: "h-4 w-80" })] }), _jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [_jsx(Skeleton, { className: "h-9 w-full max-w-sm" }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Skeleton, { className: "h-9 w-32" }), _jsx(Skeleton, { className: "h-9 w-36" })] })] }), _jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsx(TableRow, { children: HEADER_WIDTHS.map((width, column) => (_jsx(TableHead
16
+ // biome-ignore lint/suspicious/noArrayIndexKey: stable placeholders -- owner: bookings-react; existing suppression is intentional pending typed cleanup.
17
+ , { children: _jsx(Skeleton, { className: `h-3.5 ${width}` }) }, column))) }) }), _jsx(SkeletonRows, { rows: 8, widths: ["w-28", "w-20", "w-24", "w-6", "w-24"] })] }) }), _jsxs("div", { className: "flex items-center justify-between", children: [_jsx(Skeleton, { className: "h-4 w-40" }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Skeleton, { className: "h-8 w-20" }), _jsx(Skeleton, { className: "h-4 w-20" }), _jsx(Skeleton, { className: "h-8 w-16" })] })] })] }));
17
18
  }
18
19
  /** Placeholder `<TableBody>` with one skeleton line per cell. */
19
20
  function SkeletonRows({ rows, widths }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/bookings-react",
3
- "version": "0.120.1",
3
+ "version": "0.120.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -145,18 +145,18 @@
145
145
  "react-dom": "^19.0.0",
146
146
  "react-hook-form": "^7.60.0",
147
147
  "zod": "^4.0.0",
148
- "@voyant-travel/admin": "^0.111.2",
149
- "@voyant-travel/bookings": "^0.120.1",
148
+ "@voyant-travel/admin": "^0.111.3",
149
+ "@voyant-travel/bookings": "^0.120.3",
150
150
  "@voyant-travel/catalog-react": "^0.118.1",
151
- "@voyant-travel/distribution-react": "^0.110.4",
152
- "@voyant-travel/relationships-react": "^0.120.1",
153
- "@voyant-travel/finance-react": "^0.120.1",
151
+ "@voyant-travel/distribution-react": "^0.110.5",
152
+ "@voyant-travel/relationships-react": "^0.120.2",
153
+ "@voyant-travel/finance-react": "^0.120.2",
154
154
  "@voyant-travel/identity-react": "^0.120.1",
155
- "@voyant-travel/legal-react": "^0.120.1",
155
+ "@voyant-travel/legal-react": "^0.120.2",
156
156
  "@voyant-travel/commerce-react": "^0.2.1",
157
- "@voyant-travel/inventory-react": "^0.2.1",
157
+ "@voyant-travel/inventory-react": "^0.2.2",
158
158
  "@voyant-travel/ui": "^0.106.2",
159
- "@voyant-travel/operations-react": "^0.1.1"
159
+ "@voyant-travel/operations-react": "^0.1.2"
160
160
  },
161
161
  "peerDependenciesMeta": {
162
162
  "@tanstack/react-table": {
@@ -221,20 +221,20 @@
221
221
  "typescript": "^6.0.2",
222
222
  "vitest": "^4.1.2",
223
223
  "zod": "^4.3.6",
224
- "@voyant-travel/admin": "^0.111.2",
225
- "@voyant-travel/bookings": "^0.120.1",
224
+ "@voyant-travel/admin": "^0.111.3",
225
+ "@voyant-travel/bookings": "^0.120.3",
226
226
  "@voyant-travel/catalog-react": "^0.118.1",
227
- "@voyant-travel/distribution-react": "^0.110.4",
228
- "@voyant-travel/relationships-react": "^0.120.1",
229
- "@voyant-travel/finance-react": "^0.120.1",
227
+ "@voyant-travel/distribution-react": "^0.110.5",
228
+ "@voyant-travel/relationships-react": "^0.120.2",
229
+ "@voyant-travel/finance-react": "^0.120.2",
230
230
  "@voyant-travel/identity-react": "^0.120.1",
231
- "@voyant-travel/legal-react": "^0.120.1",
231
+ "@voyant-travel/legal-react": "^0.120.2",
232
232
  "@voyant-travel/commerce-react": "^0.2.1",
233
- "@voyant-travel/inventory-react": "^0.2.1",
233
+ "@voyant-travel/inventory-react": "^0.2.2",
234
234
  "@voyant-travel/react": "^0.104.1",
235
235
  "@voyant-travel/ui": "^0.106.2",
236
236
  "@voyant-travel/voyant-typescript-config": "^0.1.0",
237
- "@voyant-travel/operations-react": "^0.1.1"
237
+ "@voyant-travel/operations-react": "^0.1.2"
238
238
  },
239
239
  "files": [
240
240
  "dist",