@voyant-travel/distribution-react 0.110.4 → 0.110.5
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":"suppliers-list-skeleton.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/suppliers-list-skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"suppliers-list-skeleton.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/suppliers-list-skeleton.tsx"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,wBAAgB,qBAAqB,4CAmDpC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Skeleton } from "@voyant-travel/ui/components/skeleton";
|
|
4
|
-
import { useSuppliersUiMessagesOrDefault } from "../i18n/index.js";
|
|
5
4
|
const COLUMNS = [
|
|
6
|
-
{ id: "name", width: "w-40" },
|
|
7
|
-
{ id: "type", width: "w-20" },
|
|
8
|
-
{ id: "status", width: "w-16" },
|
|
9
|
-
{ id: "country", width: "w-20" },
|
|
10
|
-
{ id: "currency", width: "w-12" },
|
|
5
|
+
{ id: "name", headerWidth: "w-16", width: "w-40" },
|
|
6
|
+
{ id: "type", headerWidth: "w-12", width: "w-20" },
|
|
7
|
+
{ id: "status", headerWidth: "w-16", width: "w-16" },
|
|
8
|
+
{ id: "country", headerWidth: "w-16", width: "w-20" },
|
|
9
|
+
{ id: "currency", headerWidth: "w-16", width: "w-12" },
|
|
11
10
|
];
|
|
12
11
|
/**
|
|
13
12
|
* Route-level placeholder for the suppliers list. Mirrors `SuppliersPage`:
|
|
@@ -17,8 +16,5 @@ const COLUMNS = [
|
|
|
17
16
|
* - Summary + pagination footer
|
|
18
17
|
*/
|
|
19
18
|
export function SuppliersListSkeleton() {
|
|
20
|
-
|
|
21
|
-
const columns = messages.suppliersPage.columns;
|
|
22
|
-
const titles = [columns.name, columns.type, columns.status, columns.country, columns.currency];
|
|
23
|
-
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 gap-2", children: [_jsx(Skeleton, { className: "h-9 min-w-[14rem] flex-1" }), _jsx(Skeleton, { className: "h-9 w-24" }), _jsx("div", { className: "ml-auto", children: _jsx(Skeleton, { className: "h-9 w-36" }) })] }), _jsx("div", { className: "overflow-hidden rounded-md border", children: _jsxs("table", { className: "w-full text-sm", children: [_jsx("thead", { className: "bg-muted/40 text-left text-muted-foreground", children: _jsx("tr", { children: titles.map((title) => (_jsx("th", { className: "px-4 py-3 font-medium", children: title }, title))) }) }), _jsx("tbody", { children: Array.from({ length: 8 }, (_, rowIndex) => `row-${rowIndex}`).map((rowKey) => (_jsx("tr", { className: "border-t", children: COLUMNS.map((column) => (_jsx("td", { className: "px-4 py-3", children: _jsx(Skeleton, { className: `h-4 ${column.width}` }) }, `${rowKey}-${column.id}`))) }, rowKey))) })] }) }), _jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [_jsx(Skeleton, { className: "h-4 w-44" }), _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" })] })] })] }));
|
|
19
|
+
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 gap-2", children: [_jsx(Skeleton, { className: "h-9 min-w-[14rem] flex-1" }), _jsx(Skeleton, { className: "h-9 w-24" }), _jsx("div", { className: "ml-auto", children: _jsx(Skeleton, { className: "h-9 w-36" }) })] }), _jsx("div", { className: "overflow-hidden rounded-md border", children: _jsxs("table", { className: "w-full text-sm", children: [_jsx("thead", { className: "bg-muted/40 text-left text-muted-foreground", children: _jsx("tr", { children: COLUMNS.map((column) => (_jsx("th", { className: "px-4 py-3 font-medium", children: _jsx(Skeleton, { className: `h-3.5 ${column.headerWidth}` }) }, column.id))) }) }), _jsx("tbody", { children: Array.from({ length: 8 }, (_, rowIndex) => `row-${rowIndex}`).map((rowKey) => (_jsx("tr", { className: "border-t", children: COLUMNS.map((column) => (_jsx("td", { className: "px-4 py-3", children: _jsx(Skeleton, { className: `h-4 ${column.width}` }) }, `${rowKey}-${column.id}`))) }, rowKey))) })] }) }), _jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [_jsx(Skeleton, { className: "h-4 w-44" }), _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" })] })] })] }));
|
|
24
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/distribution-react",
|
|
3
|
-
"version": "0.110.
|
|
3
|
+
"version": "0.110.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -187,12 +187,12 @@
|
|
|
187
187
|
"react-dom": "^19.0.0",
|
|
188
188
|
"zod": "^4.0.0",
|
|
189
189
|
"react-hook-form": "^7.60.0",
|
|
190
|
-
"@voyant-travel/admin": "^0.111.
|
|
191
|
-
"@voyant-travel/distribution": "^0.110.
|
|
190
|
+
"@voyant-travel/admin": "^0.111.3",
|
|
191
|
+
"@voyant-travel/distribution": "^0.110.5",
|
|
192
192
|
"@voyant-travel/ui": "^0.106.2",
|
|
193
|
-
"@voyant-travel/bookings-react": "^0.120.
|
|
194
|
-
"@voyant-travel/inventory-react": "^0.2.
|
|
195
|
-
"@voyant-travel/relationships-react": "^0.120.
|
|
193
|
+
"@voyant-travel/bookings-react": "^0.120.3",
|
|
194
|
+
"@voyant-travel/inventory-react": "^0.2.2",
|
|
195
|
+
"@voyant-travel/relationships-react": "^0.120.2"
|
|
196
196
|
},
|
|
197
197
|
"peerDependenciesMeta": {
|
|
198
198
|
"@tanstack/react-table": {
|
|
@@ -233,15 +233,15 @@
|
|
|
233
233
|
"vitest": "^4.1.2",
|
|
234
234
|
"zod": "^4.3.6",
|
|
235
235
|
"react-hook-form": "^7.60.0",
|
|
236
|
-
"@voyant-travel/admin": "^0.111.
|
|
237
|
-
"@voyant-travel/distribution": "^0.110.
|
|
236
|
+
"@voyant-travel/admin": "^0.111.3",
|
|
237
|
+
"@voyant-travel/distribution": "^0.110.5",
|
|
238
238
|
"@voyant-travel/i18n": "^0.106.1",
|
|
239
239
|
"@voyant-travel/react": "^0.104.1",
|
|
240
240
|
"@voyant-travel/ui": "^0.106.2",
|
|
241
241
|
"@voyant-travel/voyant-typescript-config": "^0.1.0",
|
|
242
|
-
"@voyant-travel/bookings-react": "^0.120.
|
|
243
|
-
"@voyant-travel/inventory-react": "^0.2.
|
|
244
|
-
"@voyant-travel/relationships-react": "^0.120.
|
|
242
|
+
"@voyant-travel/bookings-react": "^0.120.3",
|
|
243
|
+
"@voyant-travel/inventory-react": "^0.2.2",
|
|
244
|
+
"@voyant-travel/relationships-react": "^0.120.2"
|
|
245
245
|
},
|
|
246
246
|
"files": [
|
|
247
247
|
"dist",
|