@tesouro/embedded-components-react 0.11.120 → 0.11.123
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/README.md +6 -3
- package/dist/index.css +32 -161
- package/dist/index.d.ts +40 -8
- package/dist/index.js +29 -28
- package/dist/lib/ExpenseManagementWidget.d.ts +11 -2
- package/dist/lib/ReceivablesWidget.d.ts +29 -6
- package/dist/lib/ReceivablesWidget.js +3 -1
- package/dist/lib/WidgetSuite.d.ts +38 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +343 -264
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/labels.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/permissions.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/useExpenseTabBadgeCounts.js +34 -19
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/useExpensesTransactions.js +100 -98
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsActionsFeature.js +27 -24
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/expenseStatus.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +43 -44
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index4.js +79 -40
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index3.js +47 -46
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index4.js +78 -84
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +165 -158
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index6.js +38 -100
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index7.js +77 -54
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +213 -229
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/ExpenseStatusBadge.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/ExpensesScreen.js +66 -73
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +123 -80
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +83 -74
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/DeleteReceiptDialog/DeleteReceiptDialog.js +22 -30
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js +176 -259
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/labels.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/BulkProgress.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js +112 -121
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +342 -295
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +30 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +121 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +39 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +2 -205
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +11 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +11 -210
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +27 -159
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +203 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +210 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +154 -111
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +21 -195
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +116 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +3 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +197 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +8 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +73 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +36 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -85
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +33 -490
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +82 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +475 -426
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -226
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +46 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +69 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +445 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +208 -246
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +5 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +247 -222
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +125 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +23 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +229 -209
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +3 -47
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +248 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +53 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +3 -40
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +41 -32
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/ui/dist/index3.js +43 -53
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyAddress/CopyAddress.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +84 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +126 -73
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index3.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index4.js +75 -128
- package/dist/packages/shared-ui-shadcn/dist/index.js +1399 -1302
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/badgeTones.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +0 -27
|
@@ -2,142 +2,133 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { Button as e, FieldError as t, FieldLabel as n, Input as r, cn as i } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { InlineErrorAlert as a } from "../../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
7
|
+
import "../../../../../shared/ui/dist/index.js";
|
|
8
|
+
import { TRANSACTION_DETAILS_ACTIONS_LABELS_EN as o } from "./labels.js";
|
|
9
|
+
import { BulkProgress as s } from "./BulkProgress.js";
|
|
10
|
+
import { useEffect as c, useRef as l } from "react";
|
|
11
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
12
|
// ../../libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js
|
|
11
|
-
function
|
|
12
|
-
let
|
|
13
|
-
...
|
|
14
|
-
...
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
function p({ actions: p, onClose: m, isLoading: h, isRejectMode: g, reasonValue: _, reasonError: v, onReasonChange: y, isSubmitDisabled: b, isConfirmRejectionDisabled: x, showNoReceiptField: S, showNoReceiptRequiredMarker: C, isBulkMode: w, currentItem: T, totalItems: E, percentComplete: D, hasActionError: O, labels: k }) {
|
|
14
|
+
let A = {
|
|
15
|
+
...o,
|
|
16
|
+
...k
|
|
17
|
+
}, j = l(null);
|
|
18
|
+
c(() => {
|
|
19
|
+
v && j.current?.focus();
|
|
20
|
+
}, [v]);
|
|
21
|
+
let M = "ttw:w-full ttw:sm:w-auto", N = w ? /* @__PURE__ */ d(s, {
|
|
22
|
+
progressLabel: A.bulkProgress(T, E),
|
|
23
|
+
ariaLabel: A.bulkProgressAriaLabel,
|
|
24
|
+
percentComplete: D
|
|
25
|
+
}) : null, P = /* @__PURE__ */ d(e, {
|
|
20
26
|
type: "button",
|
|
21
27
|
variant: "outline",
|
|
22
|
-
className: "ttw:w-
|
|
23
|
-
onClick:
|
|
24
|
-
children:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})]
|
|
35
|
-
}), /* @__PURE__ */ l(a, {
|
|
36
|
-
id: e,
|
|
37
|
-
name: e,
|
|
38
|
-
value: x,
|
|
39
|
-
onChange: S
|
|
40
|
-
})] }), R = (e, t) => /* @__PURE__ */ u("div", {
|
|
41
|
-
className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-2",
|
|
42
|
-
children: [T && L("submitReason", N.noReceiptReasonLabel, E), /* @__PURE__ */ u("div", {
|
|
43
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2",
|
|
44
|
-
children: [F, /* @__PURE__ */ u("div", {
|
|
45
|
-
className: o("ttw:flex ttw:items-center ttw:gap-2", D ? "ttw:w-fit" : "ttw:w-full"),
|
|
46
|
-
children: [/* @__PURE__ */ l(n, {
|
|
47
|
-
type: "button",
|
|
48
|
-
variant: "outline",
|
|
49
|
-
className: P,
|
|
50
|
-
onClick: v,
|
|
51
|
-
children: N.cancel
|
|
52
|
-
}), /* @__PURE__ */ u(n, {
|
|
53
|
-
type: "button",
|
|
54
|
-
className: P,
|
|
55
|
-
disabled: C,
|
|
56
|
-
onClick: t,
|
|
57
|
-
children: [e, y ? /* @__PURE__ */ l(m, {
|
|
58
|
-
className: "ttw:size-4 ttw:animate-spin",
|
|
59
|
-
"aria-hidden": !0
|
|
60
|
-
}) : /* @__PURE__ */ l(h, {
|
|
61
|
-
className: "ttw:size-4",
|
|
62
|
-
"aria-hidden": !0
|
|
63
|
-
})]
|
|
28
|
+
className: "ttw:w-auto ttw:self-end",
|
|
29
|
+
onClick: m,
|
|
30
|
+
children: A.returnToExpenses
|
|
31
|
+
}), F = (e, i, a, o) => /* @__PURE__ */ f("div", {
|
|
32
|
+
className: "ttw:grid ttw:w-full ttw:grid-cols-[minmax(0,28rem)_1fr] ttw:items-center ttw:gap-x-4 ttw:gap-y-1",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ f(n, {
|
|
35
|
+
htmlFor: e,
|
|
36
|
+
className: "ttw:gap-0",
|
|
37
|
+
children: [i, a && /* @__PURE__ */ d("span", {
|
|
38
|
+
className: "ttw:inline-block ttw:-translate-y-0.5 ttw:text-sm ttw:font-normal ttw:text-foreground",
|
|
39
|
+
children: A.requiredMarker
|
|
64
40
|
})]
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ d("span", { "aria-hidden": !0 }),
|
|
43
|
+
/* @__PURE__ */ d(r, {
|
|
44
|
+
ref: j,
|
|
45
|
+
id: e,
|
|
46
|
+
name: e,
|
|
47
|
+
value: _,
|
|
48
|
+
onChange: y,
|
|
49
|
+
"aria-invalid": v || void 0,
|
|
50
|
+
"aria-describedby": v ? `${e}-error` : void 0
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ f("div", {
|
|
53
|
+
className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-2",
|
|
54
|
+
children: [N, o]
|
|
55
|
+
}),
|
|
56
|
+
v && /* @__PURE__ */ d(t, {
|
|
57
|
+
id: `${e}-error`,
|
|
58
|
+
className: "ttw:col-start-1",
|
|
59
|
+
children: A.reasonRequired
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
}), I = (t, n) => {
|
|
63
|
+
let r = /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(e, {
|
|
64
|
+
type: "button",
|
|
65
|
+
variant: "ghost",
|
|
66
|
+
className: "ttw:w-auto",
|
|
67
|
+
onClick: m,
|
|
68
|
+
children: A.cancel
|
|
69
|
+
}), /* @__PURE__ */ d(e, {
|
|
70
|
+
type: "button",
|
|
71
|
+
className: "ttw:w-auto",
|
|
72
|
+
disabled: b,
|
|
73
|
+
loading: h,
|
|
74
|
+
onClick: n,
|
|
75
|
+
children: t
|
|
76
|
+
})] });
|
|
77
|
+
return S ? F("submitReason", A.noReceiptReasonLabel, C, r) : /* @__PURE__ */ f("div", {
|
|
78
|
+
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2",
|
|
79
|
+
children: [N, /* @__PURE__ */ d("div", {
|
|
80
|
+
className: "ttw:flex ttw:flex-1 ttw:items-center ttw:justify-end ttw:gap-2",
|
|
81
|
+
children: r
|
|
65
82
|
})]
|
|
66
|
-
})
|
|
67
|
-
}
|
|
68
|
-
return /* @__PURE__ */
|
|
69
|
-
className:
|
|
70
|
-
children: [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
children: /* @__PURE__ */ l(t, { children: N.actionFailed })
|
|
74
|
-
}), (() => {
|
|
75
|
-
switch (_.kind) {
|
|
76
|
-
case "submit": return R(_.submitLabel, _.onSubmit);
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
return /* @__PURE__ */ f("div", {
|
|
86
|
+
className: i("ttw:flex ttw:w-full ttw:flex-col ttw:items-stretch ttw:gap-2"),
|
|
87
|
+
children: [O && /* @__PURE__ */ d(a, { children: A.actionFailed }), (() => {
|
|
88
|
+
switch (p.kind) {
|
|
89
|
+
case "submit": return I(p.submitLabel, p.onSubmit);
|
|
77
90
|
case "review": {
|
|
78
|
-
let { approveLabel:
|
|
79
|
-
return
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
className: P,
|
|
96
|
-
disabled: w,
|
|
97
|
-
onClick: i,
|
|
98
|
-
children: [t, y ? /* @__PURE__ */ l(m, {
|
|
99
|
-
className: "ttw:size-4 ttw:animate-spin",
|
|
100
|
-
"aria-hidden": !0
|
|
101
|
-
}) : /* @__PURE__ */ l(f, {
|
|
102
|
-
className: "ttw:size-4",
|
|
103
|
-
"aria-hidden": !0
|
|
104
|
-
})]
|
|
105
|
-
})]
|
|
106
|
-
})]
|
|
107
|
-
})]
|
|
108
|
-
}) : /* @__PURE__ */ u("div", {
|
|
91
|
+
let { approveLabel: t, confirmRejectionLabel: n, onApprove: r, onReject: a, onToggleRejectMode: o } = p;
|
|
92
|
+
return g ? F("rejectionReason", A.rejectionReasonLabel, !0, /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(e, {
|
|
93
|
+
type: "button",
|
|
94
|
+
variant: "ghost",
|
|
95
|
+
className: "ttw:w-auto",
|
|
96
|
+
disabled: h,
|
|
97
|
+
onClick: o,
|
|
98
|
+
children: A.cancel
|
|
99
|
+
}), /* @__PURE__ */ d(e, {
|
|
100
|
+
type: "button",
|
|
101
|
+
variant: "destructive",
|
|
102
|
+
className: "ttw:w-auto",
|
|
103
|
+
disabled: x,
|
|
104
|
+
loading: h,
|
|
105
|
+
onClick: a,
|
|
106
|
+
children: n
|
|
107
|
+
})] })) : /* @__PURE__ */ f("div", {
|
|
109
108
|
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2",
|
|
110
|
-
children: [
|
|
111
|
-
className:
|
|
112
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [N, /* @__PURE__ */ f("div", {
|
|
110
|
+
className: i("ttw:flex ttw:flex-col-reverse ttw:items-stretch ttw:gap-2 ttw:sm:flex-row ttw:sm:items-center ttw:sm:justify-end ttw:w-full"),
|
|
111
|
+
children: [/* @__PURE__ */ d(e, {
|
|
113
112
|
type: "button",
|
|
114
|
-
variant: "
|
|
115
|
-
className:
|
|
116
|
-
disabled:
|
|
117
|
-
onClick:
|
|
118
|
-
children:
|
|
119
|
-
|
|
120
|
-
"aria-hidden": !0
|
|
121
|
-
}), N.reject]
|
|
122
|
-
}), /* @__PURE__ */ u(n, {
|
|
113
|
+
variant: "secondary",
|
|
114
|
+
className: M,
|
|
115
|
+
disabled: h,
|
|
116
|
+
onClick: o,
|
|
117
|
+
children: A.reject
|
|
118
|
+
}), /* @__PURE__ */ d(e, {
|
|
123
119
|
type: "button",
|
|
124
|
-
className:
|
|
125
|
-
disabled:
|
|
120
|
+
className: M,
|
|
121
|
+
disabled: h,
|
|
122
|
+
loading: h,
|
|
126
123
|
onClick: r,
|
|
127
|
-
children:
|
|
128
|
-
className: "ttw:size-4 ttw:animate-spin",
|
|
129
|
-
"aria-hidden": !0
|
|
130
|
-
}) : /* @__PURE__ */ l(p, {
|
|
131
|
-
className: "ttw:size-4",
|
|
132
|
-
"aria-hidden": !0
|
|
133
|
-
}), e]
|
|
124
|
+
children: t
|
|
134
125
|
})]
|
|
135
126
|
})]
|
|
136
127
|
});
|
|
137
128
|
}
|
|
138
|
-
default: return
|
|
129
|
+
default: return P;
|
|
139
130
|
}
|
|
140
131
|
})()]
|
|
141
132
|
});
|
|
142
133
|
}
|
|
143
|
-
export {
|
|
134
|
+
export { p as TransactionDetailsActions, p as default };
|
|
@@ -12,6 +12,7 @@ var e = {
|
|
|
12
12
|
rejectionReasonLabel: "Reason for rejection",
|
|
13
13
|
noReceiptReasonLabel: "Reason for submitting without a receipt",
|
|
14
14
|
requiredMarker: "*",
|
|
15
|
+
reasonRequired: "Enter a reason.",
|
|
15
16
|
bulkProgress: (e, t) => `Review ${e}/${t}`,
|
|
16
17
|
bulkProgressAriaLabel: "Review progress",
|
|
17
18
|
actionFailed: "That action could not be completed. Please try again."
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { InvoicingTab as e } from "./lib/ReceivablesWidget/tabs.js";
|
|
2
|
+
import { ReceivablesWidget as t } from "./lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
3
|
+
export { e as InvoicingTab, t as ReceivablesWidget };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { ReceivableAttachmentsSection as e } from "../../../../ui/dist/
|
|
5
|
+
import { ReceivableAttachmentsSection as e } from "../../../../ui/dist/index21.js";
|
|
6
6
|
import "../../../../ui/dist/index.js";
|
|
7
7
|
import { useRef as t, useState as n } from "react";
|
|
8
8
|
import { jsx as r } from "react/jsx-runtime";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { ReceivableCustomerSection as e } from "../../../../ui/dist/
|
|
5
|
+
import { ReceivableCustomerSection as e } from "../../../../ui/dist/index27.js";
|
|
6
6
|
import "../../../../ui/dist/index.js";
|
|
7
7
|
import { useReceivableCustomerPicker as t } from "./useReceivableCustomerPicker.js";
|
|
8
8
|
import { jsx as n } from "react/jsx-runtime";
|