@tesouro/embedded-components-react 0.5.169 → 0.5.170

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.
Files changed (129) hide show
  1. package/dist/index.css +39 -17
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +11 -11
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +95 -80
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +37 -11
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -15
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +56 -67
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +4 -43
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +6 -115
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +202 -63
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +2 -4
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +84 -4
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -84
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +4 -5
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +32 -3
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +36 -30
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +167 -35
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +40 -164
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -49
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +50 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +11 -45
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -13
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +14 -8
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +59 -7
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -64
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +24 -8
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +150 -18
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +9 -152
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +25 -9
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +19 -21
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +32 -14
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +14 -39
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +8 -16
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +4 -8
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -4
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +68 -83
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -83
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +143 -3
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +44 -143
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +114 -45
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +189 -111
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +13 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +72 -186
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +31 -76
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +89 -32
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +406 -83
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -411
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +84 -12
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +67 -72
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +222 -73
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +37 -223
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +245 -37
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +5 -23
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +23 -252
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +626 -21
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -586
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +45 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +256 -41
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -263
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +4 -3
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +44 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -46
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +22 -57
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +11 -6
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +130 -11
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -132
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +6 -3
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +129 -3
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -124
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +7 -8
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +82 -8
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +19 -48
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -21
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +14 -6
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +28 -19
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +82 -27
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +47 -83
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +260 -47
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +24 -251
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +382 -25
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +294 -144
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +4 -223
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +7 -4
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +112 -5
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +37 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +1 -114
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +26 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -21
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +126 -10
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +1 -105
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +33 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +7 -28
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +126 -73
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +1 -1
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +11 -30
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +106 -8
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +2 -181
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +10 -2
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +50 -12
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +2 -108
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +6 -0
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +8 -4
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -1
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +154 -23
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +1 -0
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +343 -250
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +5 -123
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -26
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -94
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +7 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +32 -5
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +2 -30
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +12 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +104 -5
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +2 -34
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +31 -2
  121. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  122. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  123. package/dist/packages/shared-ui-shadcn/dist/index.js +2458 -2284
  124. package/package.json +2 -1
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +0 -27
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
@@ -1,14 +1,52 @@
1
- import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "./index2.js";
2
- import "./index5.js";
1
+ import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as s } from "./index109.js";
3
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { XIcon as u } from "lucide-react";
3
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js
4
- var t = {
5
- uploadHeading: "Attach an invoice (optional)",
6
- scannedAttachment: (e) => `Scanned attachment: ${e}`,
7
- scanning: "Scanning attachment…",
8
- scanningAttachment: (e) => `Scanning attachment: ${e}`,
9
- download: "Download the scanned attachment",
10
- delete: "Delete the scanned attachment",
11
- dropzone: e
12
- };
6
+ function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _, testId: v, saveDraftTestId: y, discardTestId: b, closeTestId: x }) {
7
+ let S = {
8
+ ...s,
9
+ ..._
10
+ };
11
+ return /* @__PURE__ */ c(e, {
12
+ open: d,
13
+ onOpenChange: (e) => {
14
+ !e && !h && m();
15
+ },
16
+ children: /* @__PURE__ */ l(t, {
17
+ "data-testid": v,
18
+ children: [
19
+ /* @__PURE__ */ l("button", {
20
+ type: "button",
21
+ onClick: m,
22
+ disabled: h,
23
+ "data-testid": x,
24
+ className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
25
+ children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
26
+ className: "ttw:sr-only",
27
+ children: S.closeButton
28
+ })]
29
+ }),
30
+ /* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: S.title }), /* @__PURE__ */ c(n, { children: S.description })] }),
31
+ /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
32
+ type: "button",
33
+ variant: "outline",
34
+ onClick: p,
35
+ disabled: h,
36
+ "data-testid": b,
37
+ children: S.discardButton
38
+ }), /* @__PURE__ */ c(o, {
39
+ type: "button",
40
+ variant: "default",
41
+ loading: h,
42
+ disabled: h || g,
43
+ onClick: f,
44
+ "data-testid": y,
45
+ children: S.saveDraftButton
46
+ })] })
47
+ ]
48
+ })
49
+ });
50
+ }
13
51
  //#endregion
14
- export { t as SOURCE_DOCUMENT_PANEL_LABELS_EN };
52
+ export { d as UnsavedBillDialog, d as default };
@@ -1,108 +1,2 @@
1
- import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillUploadDropzone as n } from "./index3.js";
3
- import "./index5.js";
4
- import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index110.js";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
- import { Download as o, Trash2 as s } from "lucide-react";
7
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js
8
- function c(c) {
9
- let { mode: l, testId: u, labels: d } = c, f = {
10
- ...r,
11
- ...d,
12
- dropzone: {
13
- ...r.dropzone,
14
- ...d?.dropzone
15
- }
16
- };
17
- if (l === "loading") return /* @__PURE__ */ a("div", {
18
- className: "ttw:flex ttw:flex-col ttw:gap-3",
19
- "data-testid": u,
20
- children: [/* @__PURE__ */ i("div", {
21
- className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
22
- children: /* @__PURE__ */ i("span", {
23
- "aria-live": "polite",
24
- className: "ttw:text-sm ttw:text-muted-foreground",
25
- children: c.fileName ? f.scanningAttachment(c.fileName) : f.scanning
26
- })
27
- }), /* @__PURE__ */ a("div", {
28
- className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
29
- children: [
30
- /* @__PURE__ */ i(t, { className: "ttw:h-6 ttw:w-2/5" }),
31
- /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-3/5" }),
32
- /* @__PURE__ */ i(t, { className: "ttw:mt-4 ttw:h-4 ttw:w-full" }),
33
- /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-full" }),
34
- /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4/5" }),
35
- /* @__PURE__ */ i(t, { className: "ttw:mt-auto ttw:h-24 ttw:w-full" })
36
- ]
37
- })]
38
- });
39
- if (l === "document") {
40
- let { fileName: t, preview: n, onDownload: r, onDelete: l, isDeleting: d, deleteErrorMessage: p } = c;
41
- return /* @__PURE__ */ a("div", {
42
- className: "ttw:flex ttw:flex-col ttw:gap-3",
43
- "data-testid": u,
44
- children: [
45
- /* @__PURE__ */ a("div", {
46
- className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
47
- children: [
48
- /* @__PURE__ */ i("span", {
49
- className: "ttw:text-sm ttw:text-muted-foreground",
50
- children: f.scannedAttachment(t ?? "")
51
- }),
52
- r ? /* @__PURE__ */ i(e, {
53
- type: "button",
54
- variant: "ghost",
55
- size: "icon",
56
- "aria-label": f.download,
57
- onClick: r,
58
- children: /* @__PURE__ */ i(o, { className: "ttw:size-4" })
59
- }) : null,
60
- l ? /* @__PURE__ */ i(e, {
61
- type: "button",
62
- variant: "ghost",
63
- size: "icon",
64
- "aria-label": f.delete,
65
- disabled: d,
66
- onClick: l,
67
- children: /* @__PURE__ */ i(s, { className: "ttw:size-4" })
68
- }) : null
69
- ]
70
- }),
71
- p ? /* @__PURE__ */ i("p", {
72
- role: "alert",
73
- className: "ttw:text-sm ttw:text-destructive",
74
- "data-testid": u ? `${u}-delete-error` : void 0,
75
- children: p
76
- }) : null,
77
- /* @__PURE__ */ i("div", {
78
- className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:items-start ttw:justify-center ttw:overflow-auto ttw:rounded-lg ttw:border ttw:border-border ttw:bg-white ttw:p-4",
79
- children: n
80
- })
81
- ]
82
- });
83
- }
84
- return /* @__PURE__ */ a("div", {
85
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
86
- "data-testid": u,
87
- children: [
88
- /* @__PURE__ */ i("p", {
89
- className: "ttw:mb-3 ttw:text-sm ttw:font-medium ttw:text-foreground",
90
- children: f.uploadHeading
91
- }),
92
- c.noticeMessage ? /* @__PURE__ */ i("p", {
93
- "aria-live": "polite",
94
- className: "ttw:mb-3 ttw:text-sm ttw:text-muted-foreground",
95
- "data-testid": u ? `${u}-notice` : void 0,
96
- children: c.noticeMessage
97
- }) : null,
98
- /* @__PURE__ */ i(n, {
99
- status: c.uploadStatus,
100
- errorMessage: c.uploadErrorMessage,
101
- onFilesSelected: c.onFilesSelected,
102
- labels: f.dropzone
103
- })
104
- ]
105
- });
106
- }
107
- //#endregion
108
- export { c as SourceDocumentPanel, c as default };
1
+ import "./index109.js";
2
+ import "./index110.js";
@@ -62,6 +62,7 @@ var c = {
62
62
  createButton: "Add bill",
63
63
  settingsButton: "Bill pay settings",
64
64
  columnVendor: "Vendor",
65
+ columnInvoiceNumber: "Invoice number",
65
66
  columnAttachment: "Attachment",
66
67
  columnIssueDate: "Issue date",
67
68
  columnDueDate: "Due date",
@@ -73,6 +74,7 @@ var c = {
73
74
  columnTotalAmount: "Total amount",
74
75
  columnStatus: "Status",
75
76
  columnAddedOn: "Added on",
77
+ columnActions: "Actions",
76
78
  openRow: (e) => `View bill — ${e}`,
77
79
  vendorResolving: "Loading vendor",
78
80
  vendorUnavailable: "Vendor unavailable",
@@ -80,6 +82,10 @@ var c = {
80
82
  searchPlaceholder: "Search by vendor name",
81
83
  searchLabel: "Search bills by vendor name",
82
84
  filterTabsLabel: "Filter bills by status",
85
+ duplicateReviewFilterLabel: "Possible duplicates",
86
+ duplicateReviewClearButton: "Show all bills",
87
+ duplicateGroupToggle: (e) => `Expand or collapse duplicate group ${e}`,
88
+ duplicateGroupBillCount: (e) => e === 1 ? "1 bill" : `${e} bills`,
83
89
  filteredEmptyTitle: "No bills match",
84
90
  filteredEmptyDescription: "Try a different search or status filter.",
85
91
  errorTitle: "Couldn't load bills",
@@ -7,20 +7,24 @@ import { MoreHorizontalIcon as p, MoreVerticalIcon as m } from "lucide-react";
7
7
  function h({ actions: h, triggerLabel: g, placement: _ = "row", testId: v }) {
8
8
  let y = u();
9
9
  if (!h.length) return null;
10
- let b = _ === "header", x = b ? p : m, S = c(h);
10
+ let b = _ === "header", x = _ === "header" || _ === "table", S = b ? p : m, C = c(h);
11
11
  return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ d(s, {
12
12
  asChild: !0,
13
13
  children: /* @__PURE__ */ d(e, {
14
14
  type: "button",
15
- variant: b ? "ghost" : "outline",
15
+ variant: x ? "ghost" : "outline",
16
16
  size: "icon",
17
17
  "aria-label": g,
18
18
  "data-testid": v,
19
- children: /* @__PURE__ */ d(x, { className: "ttw:size-4" })
19
+ onPointerDown: (e) => e.stopPropagation(),
20
+ onClick: (e) => e.stopPropagation(),
21
+ children: /* @__PURE__ */ d(S, { className: "ttw:size-4" })
20
22
  })
21
23
  }), /* @__PURE__ */ d(n, {
22
24
  align: "end",
23
- children: S.map((e, t) => {
25
+ onPointerDown: (e) => e.stopPropagation(),
26
+ onClick: (e) => e.stopPropagation(),
27
+ children: C.map((e, t) => {
24
28
  let n = e.items.map((e) => {
25
29
  let t = e.icon;
26
30
  return /* @__PURE__ */ f(i, {
@@ -1,6 +1,13 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js
2
2
  var e = {
3
- message: "This bill is a possible duplicate of another bill.",
3
+ message: "This bill is a possible duplicate.",
4
+ vendorColumn: "Vendor",
5
+ invoiceNumberColumn: "Invoice number",
6
+ amountColumn: "Amount",
7
+ addedOnColumn: "Added on",
8
+ dueDateColumn: "Due date",
9
+ statusColumn: "Status",
10
+ openFullScreenButton: "Review duplicate in full screen",
4
11
  notADuplicateButton: "Not a duplicate",
5
12
  removeBillButton: "Remove this bill"
6
13
  };
@@ -1,39 +1,170 @@
1
- import { Alert as e, AlertTitle as t, Button as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_DUPLICATE_NOTICE_LABELS_EN as r } from "./index73.js";
3
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
- import { CopyX as o } from "lucide-react";
1
+ import { Alert as e, AlertTitle as t, Badge as n, Button as r, cn as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BillStatusBadge as a } from "./index21.js";
3
+ import "./index22.js";
4
+ import { BillOverflowMenu as o } from "./index46.js";
5
+ import "./index47.js";
6
+ import { BILL_DUPLICATE_NOTICE_LABELS_EN as s } from "./index73.js";
7
+ import { useState as c } from "react";
8
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
+ import { FileQuestionIcon as d, MoveDiagonal2Icon as f } from "lucide-react";
5
10
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js
6
- function s({ onNotADuplicate: s, onRemoveBill: c, isActionDisabled: l, testId: u, labels: d }) {
7
- let f = {
8
- ...r,
9
- ...d
10
- };
11
- return /* @__PURE__ */ a(e, {
11
+ var p = {
12
+ success: "ttw:text-green-700",
13
+ warning: "ttw:text-amber-800"
14
+ }, m = "ttw:grid-cols-[minmax(220px,1.5fr)_minmax(110px,1fr)_minmax(88px,1fr)_minmax(96px,1fr)_minmax(96px,1fr)_minmax(112px,1fr)_48px]", h = "ttw:grid-cols-[minmax(220px,1.5fr)_minmax(110px,1fr)_minmax(88px,1fr)_minmax(96px,1fr)_minmax(96px,1fr)_minmax(112px,1fr)]";
15
+ function g({ onNotADuplicate: g, onRemoveBill: _, onOpenFullScreen: v, isActionDisabled: y, rows: b, collapsedRowCount: x, showMoreLabel: S, testId: C, labels: w }) {
16
+ let T = {
17
+ ...s,
18
+ ...w
19
+ }, E = !!b?.length, [D, O] = c(!1), k = x !== void 0 && !!S && (b?.length ?? 0) > x, A = k && !D ? b?.slice(0, x) : b;
20
+ return E ? /* @__PURE__ */ u("div", {
21
+ className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:rounded-lg ttw:border ttw:border-amber-500 ttw:bg-amber-50 ttw:p-2 ttw:text-amber-700",
22
+ "data-testid": C,
23
+ children: [/* @__PURE__ */ u("div", {
24
+ className: "ttw:flex ttw:items-center ttw:gap-2",
25
+ children: [/* @__PURE__ */ l(d, {
26
+ className: "ttw:size-4 ttw:shrink-0",
27
+ "aria-hidden": !0
28
+ }), /* @__PURE__ */ l("p", {
29
+ className: "ttw:text-sm ttw:leading-5",
30
+ children: T.message
31
+ })]
32
+ }), /* @__PURE__ */ u("div", {
33
+ className: "ttw:overflow-x-auto ttw:rounded-md ttw:border ttw:border-amber-200",
34
+ children: [
35
+ /* @__PURE__ */ u("div", {
36
+ className: i("ttw:grid ttw:min-w-240 ttw:border-b ttw:border-amber-200 ttw:text-xs ttw:font-semibold ttw:text-amber-700", m),
37
+ children: [
38
+ /* @__PURE__ */ l("div", {
39
+ className: "ttw:px-3 ttw:py-2",
40
+ children: T.vendorColumn
41
+ }),
42
+ /* @__PURE__ */ l("div", {
43
+ className: "ttw:px-3 ttw:py-2",
44
+ children: T.invoiceNumberColumn
45
+ }),
46
+ /* @__PURE__ */ l("div", {
47
+ className: "ttw:px-3 ttw:py-2 ttw:text-right",
48
+ children: T.amountColumn
49
+ }),
50
+ /* @__PURE__ */ l("div", {
51
+ className: "ttw:px-3 ttw:py-2",
52
+ children: T.addedOnColumn
53
+ }),
54
+ /* @__PURE__ */ l("div", {
55
+ className: "ttw:px-3 ttw:py-2",
56
+ children: T.dueDateColumn
57
+ }),
58
+ /* @__PURE__ */ l("div", {
59
+ className: "ttw:px-3 ttw:py-2",
60
+ children: T.statusColumn
61
+ }),
62
+ /* @__PURE__ */ l("div", { className: "ttw:px-3 ttw:py-2" })
63
+ ]
64
+ }),
65
+ A?.map((e) => /* @__PURE__ */ u("div", {
66
+ className: i("ttw:group ttw:grid ttw:min-h-13 ttw:min-w-240 ttw:items-center ttw:border-b ttw:border-amber-200 ttw:text-sm ttw:text-foreground", m),
67
+ children: [/* @__PURE__ */ u("button", {
68
+ type: "button",
69
+ className: i("ttw:col-span-6 ttw:grid ttw:items-center ttw:text-left ttw:transition-colors", h, e.onOpen ? "ttw:cursor-pointer ttw:hover:bg-amber-100 ttw:focus-visible:bg-amber-100" : "ttw:cursor-default"),
70
+ "aria-disabled": !e.onOpen,
71
+ tabIndex: e.onOpen ? 0 : -1,
72
+ onClick: e.onOpen,
73
+ children: [
74
+ /* @__PURE__ */ u("span", {
75
+ className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:items-start ttw:gap-1 ttw:px-3 ttw:py-2",
76
+ children: [/* @__PURE__ */ l("span", {
77
+ className: i("ttw:min-w-0 ttw:font-medium", e.roleTone && p[e.roleTone]),
78
+ children: e.roleLabel
79
+ }), e.badges?.length ? /* @__PURE__ */ l("span", {
80
+ className: "ttw:flex ttw:flex-wrap ttw:gap-1",
81
+ children: e.badges.map((e) => /* @__PURE__ */ l(n, {
82
+ variant: "secondary",
83
+ children: e
84
+ }, e))
85
+ }) : null]
86
+ }),
87
+ /* @__PURE__ */ l("span", {
88
+ className: "ttw:px-3 ttw:py-2",
89
+ children: e.invoiceNumberLabel
90
+ }),
91
+ /* @__PURE__ */ l("span", {
92
+ className: "ttw:px-3 ttw:py-2 ttw:text-right",
93
+ children: e.amountLabel
94
+ }),
95
+ /* @__PURE__ */ l("span", {
96
+ className: "ttw:px-3 ttw:py-2",
97
+ children: e.addedOnLabel
98
+ }),
99
+ /* @__PURE__ */ l("span", {
100
+ className: "ttw:px-3 ttw:py-2",
101
+ children: e.dueDateLabel
102
+ }),
103
+ /* @__PURE__ */ l("span", {
104
+ className: "ttw:px-3 ttw:py-2",
105
+ children: e.status ? /* @__PURE__ */ l(a, {
106
+ status: e.status,
107
+ tone: e.statusTone ?? "neutral"
108
+ }) : null
109
+ })
110
+ ]
111
+ }), /* @__PURE__ */ l("div", {
112
+ className: "ttw:flex ttw:justify-end ttw:px-1 ttw:py-2",
113
+ children: e.menu ? /* @__PURE__ */ l(o, {
114
+ actions: e.menu.items.map((e) => ({
115
+ ...e,
116
+ variant: "ghost"
117
+ })),
118
+ triggerLabel: e.menu.triggerLabel
119
+ }) : null
120
+ })]
121
+ }, e.id)),
122
+ k && !D ? /* @__PURE__ */ l("button", {
123
+ type: "button",
124
+ className: "ttw:w-full ttw:px-3 ttw:py-2 ttw:text-center ttw:text-sm ttw:font-medium ttw:text-amber-800 ttw:hover:bg-amber-100 ttw:focus-visible:bg-amber-100",
125
+ onClick: () => O(!0),
126
+ children: S
127
+ }) : null
128
+ ]
129
+ })]
130
+ }) : /* @__PURE__ */ u(e, {
12
131
  className: "ttw:[&>svg]:size-6 ttw:flex ttw:items-center ttw:bg-amber-50 ttw:text-amber-700 ttw:border-amber-300",
13
- "data-testid": u,
132
+ "data-testid": C,
14
133
  children: [
15
- /* @__PURE__ */ i(o, {}),
16
- /* @__PURE__ */ i(t, {
134
+ /* @__PURE__ */ l(d, {}),
135
+ /* @__PURE__ */ l(t, {
17
136
  className: "ttw:flex-1",
18
- children: f.message
137
+ children: T.message
19
138
  }),
20
- s ? /* @__PURE__ */ i(n, {
139
+ g ? /* @__PURE__ */ l(r, {
21
140
  type: "button",
22
141
  variant: "outline",
23
142
  className: "ttw:text-foreground",
24
- disabled: l,
25
- onClick: s,
26
- children: f.notADuplicateButton
143
+ disabled: y,
144
+ onClick: g,
145
+ children: T.notADuplicateButton
27
146
  }) : null,
28
- c ? /* @__PURE__ */ i(n, {
147
+ _ ? /* @__PURE__ */ l(r, {
29
148
  type: "button",
30
149
  variant: "destructive",
31
- disabled: l,
32
- onClick: c,
33
- children: f.removeBillButton
150
+ disabled: y,
151
+ onClick: _,
152
+ children: T.removeBillButton
153
+ }) : null,
154
+ v ? /* @__PURE__ */ l(r, {
155
+ type: "button",
156
+ variant: "ghost",
157
+ size: "icon",
158
+ className: "ttw:text-foreground",
159
+ "aria-label": T.openFullScreenButton,
160
+ onClick: v,
161
+ children: /* @__PURE__ */ l(f, {
162
+ className: "ttw:size-4",
163
+ "aria-hidden": !0
164
+ })
34
165
  }) : null
35
166
  ]
36
167
  });
37
168
  }
38
169
  //#endregion
39
- export { s as BillDuplicateNotice, s as default };
170
+ export { g as BillDuplicateNotice, g as default };
@@ -1,6 +1,7 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js
2
2
  var e = {
3
3
  Vendor: "vendor",
4
+ InvoiceNumber: "invoiceNumber",
4
5
  Attachment: "attachment",
5
6
  IssueDate: "issueDate",
6
7
  DueDate: "dueDate",