@voyant-travel/finance-react 0.120.1 → 0.120.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices-page-skeleton.d.ts","sourceRoot":"","sources":["../../src/components/invoices-page-skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"invoices-page-skeleton.d.ts","sourceRoot":"","sources":["../../src/components/invoices-page-skeleton.tsx"],"names":[],"mappings":"AAaA,wBAAgB,qBAAqB,CAAC,EAAE,IAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAgCpE;AAED,wBAAgB,oBAAoB,4CAgBnC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Skeleton } from "@voyant-travel/ui/components/skeleton";
|
|
3
3
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@voyant-travel/ui/components/table";
|
|
4
|
-
import { useFinanceUiMessagesOrDefault } from "../i18n/index.js";
|
|
5
4
|
const INVOICE_WIDTHS = ["w-28", "w-16", "w-20", "w-20", "w-20", "w-24"];
|
|
5
|
+
const INVOICE_HEADER_WIDTHS = ["w-24", "w-14", "w-12", "w-10", "w-20", "w-16"];
|
|
6
6
|
export function InvoicesTableSkeleton({ rows = 8 }) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
return (_jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsx(TableRow, { children: INVOICE_HEADER_WIDTHS.map((width, columnIndex) => (_jsx(TableHead
|
|
8
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: stable placeholders -- owner: finance-react; existing suppression is intentional pending typed cleanup.
|
|
9
|
+
, { children: _jsx(Skeleton, { className: `h-3.5 ${width}` }) }, columnIndex))) }) }), _jsx(TableBody, { children: Array.from({ length: rows }).map((_, rowIndex) => (_jsx(TableRow, { children: Array.from({ length: 6 }).map((__, columnIndex) => (_jsx(TableCell, { children: _jsx(Skeleton, { className: `h-4 ${INVOICE_WIDTHS[columnIndex] ?? "w-1/2"}` }) }, columnIndex))) }, rowIndex))) })] }) }));
|
|
10
10
|
}
|
|
11
11
|
export function InvoicesPageSkeleton() {
|
|
12
12
|
return (_jsxs("div", { className: "flex flex-col gap-6 p-6", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Skeleton, { className: "h-7 w-32" }), _jsx(Skeleton, { className: "h-4 w-80" })] }), _jsx(Skeleton, { className: "h-9 w-36" })] }), _jsx(Skeleton, { className: "h-9 w-full max-w-sm" }), _jsx(InvoicesTableSkeleton, { rows: 8 })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments-page-skeleton.d.ts","sourceRoot":"","sources":["../../src/components/payments-page-skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payments-page-skeleton.d.ts","sourceRoot":"","sources":["../../src/components/payments-page-skeleton.tsx"],"names":[],"mappings":"AAaA,wBAAgB,qBAAqB,CAAC,EAAE,IAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAgCpE;AAED,wBAAgB,oBAAoB,4CAgBnC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Skeleton } from "@voyant-travel/ui/components/skeleton";
|
|
3
3
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@voyant-travel/ui/components/table";
|
|
4
|
-
import { useFinanceUiMessagesOrDefault } from "../i18n/index.js";
|
|
5
4
|
const PAYMENT_WIDTHS = ["w-20", "w-32", "w-32", "w-24", "w-20", "w-24", "w-24"];
|
|
5
|
+
const PAYMENT_HEADER_WIDTHS = ["w-12", "w-20", "w-12", "w-16", "w-14", "w-12", "w-16"];
|
|
6
6
|
export function PaymentsTableSkeleton({ rows = 8 }) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
return (_jsx("div", { className: "rounded-md border", children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsx(TableRow, { children: PAYMENT_HEADER_WIDTHS.map((width, columnIndex) => (_jsx(TableHead
|
|
8
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: stable placeholders -- owner: finance-react; existing suppression is intentional pending typed cleanup.
|
|
9
|
+
, { children: _jsx(Skeleton, { className: `h-3.5 ${width}` }) }, columnIndex))) }) }), _jsx(TableBody, { children: Array.from({ length: rows }).map((_, rowIndex) => (_jsx(TableRow, { children: Array.from({ length: 7 }).map((__, columnIndex) => (_jsx(TableCell, { children: _jsx(Skeleton, { className: `h-4 ${PAYMENT_WIDTHS[columnIndex] ?? "w-1/2"}` }) }, columnIndex))) }, rowIndex))) })] }) }));
|
|
10
10
|
}
|
|
11
11
|
export function PaymentsPageSkeleton() {
|
|
12
12
|
return (_jsxs("div", { className: "flex flex-col gap-6 p-6", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Skeleton, { className: "h-7 w-32" }), _jsx(Skeleton, { className: "h-4 w-80" })] }), _jsx(Skeleton, { className: "h-9 w-44" })] }), _jsx(Skeleton, { className: "h-9 w-full max-w-sm" }), _jsx(PaymentsTableSkeleton, { rows: 8 })] }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/finance-react",
|
|
3
|
-
"version": "0.120.
|
|
3
|
+
"version": "0.120.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
"recharts": "^3.0.0",
|
|
94
94
|
"sonner": "^2.0.7",
|
|
95
95
|
"zod": "^4.0.0",
|
|
96
|
-
"@voyant-travel/admin": "^0.111.
|
|
97
|
-
"@voyant-travel/bookings-react": "^0.120.
|
|
98
|
-
"@voyant-travel/finance": "^0.120.
|
|
99
|
-
"@voyant-travel/inventory-react": "^0.2.
|
|
100
|
-
"@voyant-travel/distribution-react": "^0.110.
|
|
96
|
+
"@voyant-travel/admin": "^0.111.3",
|
|
97
|
+
"@voyant-travel/bookings-react": "^0.120.3",
|
|
98
|
+
"@voyant-travel/finance": "^0.120.2",
|
|
99
|
+
"@voyant-travel/inventory-react": "^0.2.2",
|
|
100
|
+
"@voyant-travel/distribution-react": "^0.110.5",
|
|
101
101
|
"@voyant-travel/ui": "^0.106.2",
|
|
102
|
-
"@voyant-travel/operations-react": "^0.1.
|
|
102
|
+
"@voyant-travel/operations-react": "^0.1.2"
|
|
103
103
|
},
|
|
104
104
|
"peerDependenciesMeta": {
|
|
105
105
|
"@tanstack/react-table": {
|
|
@@ -151,16 +151,16 @@
|
|
|
151
151
|
"typescript": "^6.0.2",
|
|
152
152
|
"vitest": "^4.1.2",
|
|
153
153
|
"zod": "^4.3.6",
|
|
154
|
-
"@voyant-travel/admin": "^0.111.
|
|
155
|
-
"@voyant-travel/bookings-react": "^0.120.
|
|
156
|
-
"@voyant-travel/finance": "^0.120.
|
|
154
|
+
"@voyant-travel/admin": "^0.111.3",
|
|
155
|
+
"@voyant-travel/bookings-react": "^0.120.3",
|
|
156
|
+
"@voyant-travel/finance": "^0.120.2",
|
|
157
157
|
"@voyant-travel/i18n": "^0.106.1",
|
|
158
|
-
"@voyant-travel/inventory-react": "^0.2.
|
|
158
|
+
"@voyant-travel/inventory-react": "^0.2.2",
|
|
159
159
|
"@voyant-travel/react": "^0.104.1",
|
|
160
|
-
"@voyant-travel/distribution-react": "^0.110.
|
|
160
|
+
"@voyant-travel/distribution-react": "^0.110.5",
|
|
161
161
|
"@voyant-travel/ui": "^0.106.2",
|
|
162
162
|
"@voyant-travel/voyant-typescript-config": "^0.1.0",
|
|
163
|
-
"@voyant-travel/operations-react": "^0.1.
|
|
163
|
+
"@voyant-travel/operations-react": "^0.1.2"
|
|
164
164
|
},
|
|
165
165
|
"files": [
|
|
166
166
|
"dist",
|