@tesouro/embedded-components-react 0.11.250 → 0.11.254

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 (111) hide show
  1. package/dist/index.css +9 -344
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +35 -38
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +21 -14
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +3 -105
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +4 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +47 -47
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +87 -90
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +238 -248
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +15 -34
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +199 -202
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +16 -14
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +25 -25
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js +18 -32
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js +150 -19
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +2 -150
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +75 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +272 -70
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -279
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +20 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js +51 -16
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js +2 -55
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +34 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index20.js +369 -30
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index21.js +2 -373
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +22 -2
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +124 -20
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +2 -126
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +30 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js +51 -29
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js +1 -52
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +54 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +10 -54
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +35 -35
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js +133 -10
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -198
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js +30 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +52 -43
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -315
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js +15 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +158 -14
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -162
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js +3 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js +19 -2
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js +2 -35
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js +9 -2
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +31 -8
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +2 -33
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.js +6 -2
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.js +27 -5
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.js +2 -29
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js +13 -2
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +100 -11
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +2 -107
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +12 -16
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js +9 -2
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js +41 -8
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +2 -52
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +1 -22
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +31 -1
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +1 -31
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +34 -1
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +1 -3
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +2 -6
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -6
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +119 -104
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +2 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +2 -1
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +11 -11
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +9 -4
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +8 -8
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +76 -171
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +1 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js +33 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js +9 -0
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js +126 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index15.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +23 -29
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +32 -126
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +14 -2
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +3 -13
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +28 -104
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +72 -1
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +2 -33
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js +12 -7
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -9
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +6 -9
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +32 -31
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +4 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +15 -5
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +53 -84
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -18
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +12 -12
  97. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +4 -4
  98. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +9 -9
  99. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +13 -14
  100. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +1 -1
  102. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +20 -19
  103. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +30 -34
  104. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js +55 -0
  105. package/dist/packages/shared-ui-shadcn/dist/index.js +1322 -1312
  106. package/package.json +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index53.js +0 -2
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +0 -6
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -31
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +0 -5
@@ -1,13 +1,102 @@
1
- import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index18.js";
1
+ import { Skeleton as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { TooltipIconButton as t } from "../../../../shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js";
3
+ import { InlineErrorAlert as n } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
4
+ import "../../../../shared/ui/dist/index.js";
5
+ import { BillUploadDropzone as r } from "../../../ui/dist/index19.js";
2
6
  import "../../../ui/dist/index.js";
7
+ import { SOURCE_DOCUMENT_PANEL_LABELS_EN as i } from "./index47.js";
8
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
9
+ import { Download as s, Trash2 as c } from "lucide-react";
3
10
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.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
- };
13
- export { t as SOURCE_DOCUMENT_PANEL_LABELS_EN };
11
+ function l(l) {
12
+ let { mode: u, testId: d, labels: f } = l, p = {
13
+ ...i,
14
+ ...f,
15
+ dropzone: {
16
+ ...i.dropzone,
17
+ ...f?.dropzone
18
+ }
19
+ };
20
+ if (u === "loading") return /* @__PURE__ */ o("div", {
21
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
22
+ "data-testid": d,
23
+ children: [/* @__PURE__ */ a("div", {
24
+ className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
25
+ children: /* @__PURE__ */ a("span", {
26
+ "aria-live": "polite",
27
+ className: "ttw:text-sm ttw:text-muted-foreground",
28
+ children: l.fileName ? p.scanningAttachment(l.fileName) : p.scanning
29
+ })
30
+ }), /* @__PURE__ */ o("div", {
31
+ 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",
32
+ children: [
33
+ /* @__PURE__ */ a(e, { className: "ttw:h-6 ttw:w-2/5" }),
34
+ /* @__PURE__ */ a(e, { className: "ttw:h-4 ttw:w-3/5" }),
35
+ /* @__PURE__ */ a(e, { className: "ttw:mt-4 ttw:h-4 ttw:w-full" }),
36
+ /* @__PURE__ */ a(e, { className: "ttw:h-4 ttw:w-full" }),
37
+ /* @__PURE__ */ a(e, { className: "ttw:h-4 ttw:w-4/5" }),
38
+ /* @__PURE__ */ a(e, { className: "ttw:mt-auto ttw:h-24 ttw:w-full" })
39
+ ]
40
+ })]
41
+ });
42
+ if (u === "document") {
43
+ let { fileName: e, preview: r, onDownload: i, onDelete: u, isDeleting: f, deleteErrorMessage: m } = l;
44
+ return /* @__PURE__ */ o("div", {
45
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
46
+ "data-testid": d,
47
+ children: [
48
+ /* @__PURE__ */ o("div", {
49
+ className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
50
+ children: [
51
+ /* @__PURE__ */ a("span", {
52
+ className: "ttw:text-sm ttw:text-muted-foreground",
53
+ children: p.scannedAttachment(e ?? "")
54
+ }),
55
+ i ? /* @__PURE__ */ a(t, {
56
+ label: p.download,
57
+ icon: s,
58
+ onClick: i
59
+ }) : null,
60
+ u ? /* @__PURE__ */ a(t, {
61
+ label: p.delete,
62
+ icon: c,
63
+ disabled: f,
64
+ onClick: u
65
+ }) : null
66
+ ]
67
+ }),
68
+ m ? /* @__PURE__ */ a("div", {
69
+ "data-testid": d ? `${d}-delete-error` : void 0,
70
+ children: /* @__PURE__ */ a(n, { children: m })
71
+ }) : null,
72
+ /* @__PURE__ */ a("div", {
73
+ 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-card ttw:p-4",
74
+ children: r
75
+ })
76
+ ]
77
+ });
78
+ }
79
+ return /* @__PURE__ */ o("div", {
80
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
81
+ "data-testid": d,
82
+ children: [
83
+ /* @__PURE__ */ a("p", {
84
+ className: "ttw:mb-3 ttw:text-sm ttw:font-medium ttw:text-foreground",
85
+ children: p.uploadHeading
86
+ }),
87
+ l.noticeMessage ? /* @__PURE__ */ a("p", {
88
+ "aria-live": "polite",
89
+ className: "ttw:mb-3 ttw:text-sm ttw:text-muted-foreground",
90
+ "data-testid": d ? `${d}-notice` : void 0,
91
+ children: l.noticeMessage
92
+ }) : null,
93
+ /* @__PURE__ */ a(r, {
94
+ status: l.uploadStatus,
95
+ errorMessage: l.uploadErrorMessage,
96
+ onFilesSelected: l.onFilesSelected,
97
+ labels: p.dropzone
98
+ })
99
+ ]
100
+ });
101
+ }
102
+ export { l as SourceDocumentPanel, l as default };
@@ -1,107 +1,2 @@
1
- import { Button as e, Skeleton as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillUploadDropzone as n } from "../../../ui/dist/index19.js";
3
- import "../../../ui/dist/index.js";
4
- import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index48.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
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.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
- export { c as SourceDocumentPanel, c as default };
1
+ import "./index47.js";
2
+ import "./index48.js";
@@ -1,19 +1,15 @@
1
- import { Badge as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { HintDisclosure as t } from "../../../../shared/ui/dist/lib/HintDisclosure/HintDisclosure.js";
3
- import "../../../../shared/ui/dist/index.js";
4
- import { BILL_STATUS_TONE_CLASS_NAME as n } from "../../../../shared/document-status/ui/dist/index3.js";
5
- import "../../../../shared/document-status/ui/dist/index.js";
6
- import { jsx as r } from "react/jsx-runtime";
1
+ import { Alert as e, AlertDescription as t, AlertTitle as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
+ import { CircleAlertIcon as a } from "lucide-react";
7
4
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js
8
- function i({ summary: i, date: a }) {
9
- let o = /* @__PURE__ */ r(e, {
10
- variant: "outline",
11
- className: n.committed,
12
- children: i
5
+ function o({ actorLabel: o, message: s }) {
6
+ return /* @__PURE__ */ i(e, {
7
+ variant: "destructive",
8
+ children: [
9
+ /* @__PURE__ */ r(a, { "aria-hidden": !0 }),
10
+ /* @__PURE__ */ r(n, { children: o }),
11
+ s ? /* @__PURE__ */ r(t, { children: s }) : null
12
+ ]
13
13
  });
14
- return a ? /* @__PURE__ */ r(t, {
15
- hint: a,
16
- children: o
17
- }) : o;
18
14
  }
19
- export { i as ScheduledSummaryBadge };
15
+ export { o as BillRejectionNotice, o as default };
@@ -1,2 +1,9 @@
1
- import "./index48.js";
2
- import "./index49.js";
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js
2
+ var e = {
3
+ title: "Save this bill as a draft?",
4
+ description: "You have unsaved changes. Save the bill as a draft to finish it later, or discard it.",
5
+ saveDraftButton: "Save as draft",
6
+ discardButton: "Discard",
7
+ closeButton: "Close"
8
+ };
9
+ export { e as UNSAVED_BILL_DIALOG_LABELS_EN };
@@ -1,9 +1,42 @@
1
+ import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as s } from "./index50.js";
3
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
1
4
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js
2
- var e = {
3
- title: "Save this bill as a draft?",
4
- description: "This bill has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
5
- saveDraftButton: "Save as draft",
6
- discardButton: "Discard changes",
7
- closeButton: "Close"
8
- };
9
- export { e as UNSAVED_BILL_DIALOG_LABELS_EN };
5
+ function u({ open: u, onSaveDraft: d, onDiscard: f, onCancel: p, isSaving: m, isSaveDraftDisabled: h, labels: g, testId: _, saveDraftTestId: v, discardTestId: y, closeTestId: b }) {
6
+ let x = {
7
+ ...s,
8
+ ...g
9
+ };
10
+ return /* @__PURE__ */ c(t, {
11
+ open: u,
12
+ onOpenChange: (e) => {
13
+ !e && !m && p();
14
+ },
15
+ children: /* @__PURE__ */ l(n, {
16
+ size: "confirm",
17
+ role: "alertdialog",
18
+ className: "ttw:grid ttw:gap-4",
19
+ "data-testid": _,
20
+ closeButtonTestId: b,
21
+ closeDisabled: m,
22
+ labels: { close: x.closeButton },
23
+ children: [/* @__PURE__ */ l(a, { children: [/* @__PURE__ */ c(o, { children: x.title }), /* @__PURE__ */ c(r, { children: x.description })] }), /* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(e, {
24
+ type: "button",
25
+ variant: "secondary",
26
+ onClick: f,
27
+ disabled: m,
28
+ "data-testid": y,
29
+ children: x.discardButton
30
+ }), /* @__PURE__ */ c(e, {
31
+ type: "button",
32
+ variant: "default",
33
+ loading: m,
34
+ disabled: m || h,
35
+ onClick: d,
36
+ "data-testid": v,
37
+ children: x.saveDraftButton
38
+ })] })]
39
+ })
40
+ });
41
+ }
42
+ export { u as UnsavedBillDialog, u as default };
@@ -1,52 +1,2 @@
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 "./index51.js";
3
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
- import { XIcon as u } from "lucide-react";
5
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js
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
- showCloseButton: !1,
18
- "data-testid": v,
19
- children: [
20
- /* @__PURE__ */ l("button", {
21
- type: "button",
22
- onClick: m,
23
- disabled: h,
24
- "data-testid": x,
25
- 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",
26
- children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
27
- className: "ttw:sr-only",
28
- children: S.closeButton
29
- })]
30
- }),
31
- /* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: S.title }), /* @__PURE__ */ c(n, { children: S.description })] }),
32
- /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
33
- type: "button",
34
- variant: "outline",
35
- onClick: p,
36
- disabled: h,
37
- "data-testid": b,
38
- children: S.discardButton
39
- }), /* @__PURE__ */ c(o, {
40
- type: "button",
41
- variant: "default",
42
- loading: h,
43
- disabled: h || g,
44
- onClick: f,
45
- "data-testid": y,
46
- children: S.saveDraftButton
47
- })] })
48
- ]
49
- })
50
- });
51
- }
52
- export { d as UnsavedBillDialog, d as default };
1
+ import "./index50.js";
2
+ import "./index51.js";
@@ -1,22 +1 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { AlertTriangleIcon as n } from "lucide-react";
3
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js
4
- function r({ actorLabel: r, message: i }) {
5
- return /* @__PURE__ */ t("div", {
6
- className: "ttw:flex ttw:gap-2 ttw:rounded-md ttw:border ttw:border-destructive/20 ttw:bg-destructive/5 ttw:p-3",
7
- children: [/* @__PURE__ */ e(n, {
8
- "aria-hidden": !0,
9
- className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-destructive"
10
- }), /* @__PURE__ */ t("div", {
11
- className: "ttw:flex ttw:flex-col ttw:gap-1",
12
- children: [/* @__PURE__ */ e("p", {
13
- className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
14
- children: r
15
- }), i ? /* @__PURE__ */ e("p", {
16
- className: "ttw:text-sm ttw:text-foreground",
17
- children: i
18
- }) : null]
19
- })]
20
- });
21
- }
22
- export { r as BillRejectionNotice, r as default };
1
+ import "./index5.js";
@@ -1 +1,31 @@
1
- import "./index6.js";
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js
3
+ function n({ records: n }) {
4
+ return /* @__PURE__ */ e("div", {
5
+ className: "ttw:flex ttw:flex-col",
6
+ children: n.map((n) => /* @__PURE__ */ t("div", {
7
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
8
+ children: [
9
+ /* @__PURE__ */ e("span", {
10
+ className: "ttw:flex-1 ttw:text-sm",
11
+ children: n.dateLabel
12
+ }),
13
+ /* @__PURE__ */ e("span", {
14
+ className: "ttw:flex-1 ttw:text-sm",
15
+ children: n.statusLabel
16
+ }),
17
+ /* @__PURE__ */ t("span", {
18
+ className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:items-end ttw:text-right",
19
+ children: [/* @__PURE__ */ e("span", {
20
+ className: "ttw:text-sm ttw:font-medium",
21
+ children: n.amountLabel
22
+ }), n.overpaidLabel ? /* @__PURE__ */ e("span", {
23
+ className: "ttw:text-sm ttw:text-muted-foreground",
24
+ children: n.overpaidLabel
25
+ }) : null]
26
+ })
27
+ ]
28
+ }, n.id))
29
+ });
30
+ }
31
+ export { n as PaymentHistoryList, n as default };
@@ -1,31 +1 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js
3
- function n({ records: n }) {
4
- return /* @__PURE__ */ e("div", {
5
- className: "ttw:flex ttw:flex-col",
6
- children: n.map((n) => /* @__PURE__ */ t("div", {
7
- className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
8
- children: [
9
- /* @__PURE__ */ e("span", {
10
- className: "ttw:flex-1 ttw:text-sm",
11
- children: n.dateLabel
12
- }),
13
- /* @__PURE__ */ e("span", {
14
- className: "ttw:flex-1 ttw:text-sm",
15
- children: n.statusLabel
16
- }),
17
- /* @__PURE__ */ t("span", {
18
- className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:items-end ttw:text-right",
19
- children: [/* @__PURE__ */ e("span", {
20
- className: "ttw:text-sm ttw:font-medium",
21
- children: n.amountLabel
22
- }), n.overpaidLabel ? /* @__PURE__ */ e("span", {
23
- className: "ttw:text-sm ttw:text-muted-foreground",
24
- children: n.overpaidLabel
25
- }) : null]
26
- })
27
- ]
28
- }, n.id))
29
- });
30
- }
31
- export { n as PaymentHistoryList, n as default };
1
+ import "./index7.js";
@@ -1 +1,34 @@
1
- import "./index8.js";
1
+ import { Button as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { AchFieldGroup as t } from "../../../../shared/counterpart-management/ui/dist/index5.js";
3
+ import "../../../../shared/counterpart-management/ui/dist/index.js";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js
6
+ function i({ paymentInstructions: i, labels: a }) {
7
+ return /* @__PURE__ */ r("div", {
8
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
9
+ children: [/* @__PURE__ */ n(t, {
10
+ idPrefix: "vendor-summary-ach",
11
+ values: i.values,
12
+ errors: i.errors,
13
+ onChange: i.onChange,
14
+ labels: a.ach
15
+ }), /* @__PURE__ */ r("div", {
16
+ className: "ttw:flex ttw:justify-end ttw:gap-2",
17
+ children: [/* @__PURE__ */ n(e, {
18
+ type: "button",
19
+ variant: "ghost",
20
+ onClick: i.onCancel,
21
+ disabled: i.isSaving,
22
+ children: a.cancelAction
23
+ }), i.onSave ? /* @__PURE__ */ n(e, {
24
+ type: "button",
25
+ onClick: i.onSave,
26
+ "aria-label": a.saveAriaLabel,
27
+ loading: i.isSaving,
28
+ disabled: i.isSaving,
29
+ children: a.saveAction
30
+ }) : null]
31
+ })]
32
+ });
33
+ }
34
+ export { i as AchEditGroup };
@@ -6,10 +6,8 @@ function n(n, r) {
6
6
  description: n.description,
7
7
  confirmButton: n.confirmButton,
8
8
  presentation: {
9
- alignment: "center",
10
9
  icon: r === "delete" ? t : e,
11
- tone: r === "confirm" ? "default" : "destructive",
12
- actionWidth: "equal"
10
+ tone: r === "confirm" ? "default" : "destructive"
13
11
  }
14
12
  };
15
13
  }
@@ -309,6 +309,7 @@ function Ne({ enabled: s = !0, canPay: u, canReadVendors: m = !0, isVendorFilter
309
309
  id: "cancel-duplicate",
310
310
  label: Y[h].action,
311
311
  icon: h === "delete" ? Ce : xe,
312
+ destructive: h !== "confirm",
312
313
  disabled: J.isPending,
313
314
  onSelect: () => at({
314
315
  payable: e,
@@ -471,12 +472,7 @@ function Ne({ enabled: s = !0, canPay: u, canReadVendors: m = !0, isVendorFilter
471
472
  copy: {
472
473
  title: C.notDuplicateConfirmTitle,
473
474
  description: C.notDuplicateConfirmDescription,
474
- confirmButton: C.notDuplicateConfirmButton,
475
- presentation: {
476
- alignment: "center",
477
- icon: Se,
478
- actionWidth: "equal"
479
- }
475
+ confirmButton: C.notDuplicateConfirmButton
480
476
  },
481
477
  onConfirm: () => void Ct(),
482
478
  onCancel: () => ot(void 0),
@@ -34,7 +34,7 @@ var i = ".pdf,.png,.jpg,.jpeg,.doc,.docx", a = {
34
34
  filteredEmptyDescription: "Try a different search or status filter.",
35
35
  errorTitle: "Couldn't load bills",
36
36
  errorDescription: "Something went wrong. Try again.",
37
- errorRetry: "Retry",
37
+ errorRetry: "Try again",
38
38
  tableDropzoneTitle: "Drop your files here",
39
39
  statusBadge: r,
40
40
  addBill: a,
@@ -229,12 +229,8 @@ function v({ rows: v, isLoading: y, isError: b, sorting: De, onSortingChange: Oe
229
229
  cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ h("div", {
230
230
  className: "ttw:flex ttw:justify-end",
231
231
  children: /* @__PURE__ */ h(ue, {
232
- actions: e.original.menu.items.map((e) => ({
233
- ...e,
234
- variant: "ghost"
235
- })),
236
- triggerLabel: e.original.menu.triggerLabel,
237
- placement: "table"
232
+ actions: e.original.menu.items,
233
+ triggerLabel: e.original.menu.triggerLabel
238
234
  })
239
235
  }) : null
240
236
  }] : []], [