@tesouro/embedded-components-react 0.2.327 → 0.2.329

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 (133) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/index.d.ts +59 -59
  3. package/dist/index.js +1 -1
  4. package/dist/lib/BillPayWidget.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -10
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +119 -33
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +50 -21
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +39 -17
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +17 -12
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +10 -10
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +45 -17
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -21
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +9 -24
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +42 -9
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +25 -50
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +49 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +91 -63
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +20 -49
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +52 -7
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -35
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +67 -113
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +46 -53
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +80 -205
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +32 -192
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +117 -62
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +54 -45
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +205 -31
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +184 -143
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +63 -33
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +46 -100
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +32 -7
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +146 -182
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +38 -4
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +102 -24
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +10 -80
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +200 -78
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +2 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +27 -2
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +78 -41
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +132 -1
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +3 -53
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +2 -9
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +43 -16
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +1 -8
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +50 -77
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -145
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +18 -5
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +6 -6
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +78 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +138 -75
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +2 -0
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +6 -6
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -113
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -1
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +2 -24
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +8 -0
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +115 -0
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +25 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -25
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -12
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +58 -13
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -24
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +22 -2
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +23 -31
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +1 -262
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +15 -2
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +23 -6
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -49
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +41 -1
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +271 -20
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -286
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +9 -2
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +47 -14
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -120
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +22 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +284 -8
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +2 -96
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +16 -2
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +118 -11
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +1 -57
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +10 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +93 -51
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +1 -138
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +12 -1
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +56 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -44
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +53 -1
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +137 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -16
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +7 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +42 -59
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -238
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -202
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +61 -8
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -8
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -91
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +16 -0
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +1 -1
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +67 -4
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +248 -25
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +204 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +6 -3
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -32
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +93 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +1 -105
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +28 -16
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -10
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +4 -167
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +34 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +2 -14
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -87
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +105 -1
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -0
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +18 -0
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +10 -0
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +170 -0
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -0
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +14 -0
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +89 -0
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -0
  126. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +20 -20
  127. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/index.js +4 -4
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +21 -21
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +142 -102
  130. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  131. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  132. package/package.json +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +0 -12
@@ -7,12 +7,12 @@ import "./index8.js";
7
7
  import "./index9.js";
8
8
  import { AddBillDialog as e } from "./index10.js";
9
9
  import "./index11.js";
10
- import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index13.js";
10
+ import "./index12.js";
11
+ import "./index13.js";
11
12
  import "./index14.js";
12
- import "./index15.js";
13
13
  import "./index16.js";
14
14
  import "./index17.js";
15
- import "./index18.js";
15
+ import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index18.js";
16
16
  import "./index19.js";
17
17
  import "./index20.js";
18
18
  import "./index21.js";
@@ -22,37 +22,45 @@ import "./index24.js";
22
22
  import "./index25.js";
23
23
  import "./index26.js";
24
24
  import "./index27.js";
25
+ import "./index28.js";
26
+ import "./index29.js";
27
+ import "./index30.js";
25
28
  import "./index31.js";
26
29
  import "./index32.js";
27
- import "./index33.js";
28
- import "./index34.js";
29
- import { BillCreateScreen as n } from "./index35.js";
30
30
  import "./index36.js";
31
31
  import "./index37.js";
32
- import { BillPayWidgetUi as r } from "./index38.js";
32
+ import "./index38.js";
33
33
  import "./index39.js";
34
- import "./index40.js";
34
+ import { BillCreateScreen as n } from "./index40.js";
35
35
  import "./index41.js";
36
36
  import "./index42.js";
37
- import { BILL_DETAILS_SHEET_LABELS_EN as i } from "./index43.js";
38
- import { BillDetailsSheet as a } from "./index44.js";
39
- import { BillsScreen as o } from "./index45.js";
40
- import "./index46.js";
41
- import { BillUploadStatusTray as s } from "./index48.js";
37
+ import { BillPayWidgetUi as r } from "./index43.js";
38
+ import "./index44.js";
39
+ import "./index45.js";
40
+ import { BillDecisionDialog as i } from "./index46.js";
41
+ import "./index47.js";
42
+ import "./index48.js";
43
+ import "./index49.js";
42
44
  import "./index50.js";
43
- import "./index51.js";
44
- import { ExtractionNotice as c } from "./index52.js";
45
- import "./index53.js";
45
+ import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index51.js";
46
+ import { BillDetailsSheet as o } from "./index52.js";
47
+ import { BillsScreen as s } from "./index53.js";
46
48
  import "./index54.js";
47
- import "./index55.js";
48
- import "./index56.js";
49
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index57.js";
50
- import { ReviewTransactionDialog as u } from "./index58.js";
49
+ import { BillUploadStatusTray as c } from "./index56.js";
50
+ import "./index58.js";
51
51
  import "./index59.js";
52
- import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as d } from "./index60.js";
53
- import { SchedulePaymentDialog as f } from "./index62.js";
52
+ import { ExtractionNotice as l } from "./index60.js";
53
+ import "./index61.js";
54
+ import "./index62.js";
54
55
  import "./index63.js";
55
56
  import "./index64.js";
56
- import { SourceDocumentPanel as p } from "./index65.js";
57
- import "./index66.js";
58
- export { e as AddBillDialog, i as BILL_DETAILS_SHEET_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, n as BillCreateScreen, a as BillDetailsSheet, r as BillPayWidgetUi, s as BillUploadStatusTray, o as BillsScreen, c as ExtractionNotice, l as REVIEW_TRANSACTION_DIALOG_LABELS_EN, u as ReviewTransactionDialog, d as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, f as SchedulePaymentDialog, p as SourceDocumentPanel };
57
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as u } from "./index65.js";
58
+ import { ReviewTransactionDialog as d } from "./index66.js";
59
+ import "./index67.js";
60
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as f } from "./index68.js";
61
+ import { SchedulePaymentDialog as p } from "./index70.js";
62
+ import "./index71.js";
63
+ import "./index72.js";
64
+ import { SourceDocumentPanel as m } from "./index73.js";
65
+ import "./index74.js";
66
+ export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, r as BillPayWidgetUi, c as BillUploadStatusTray, s as BillsScreen, l as ExtractionNotice, u as REVIEW_TRANSACTION_DIALOG_LABELS_EN, d as ReviewTransactionDialog, f as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, p as SchedulePaymentDialog, m as SourceDocumentPanel };
@@ -1,15 +1,16 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { Fragment as t, jsx as n } from "react/jsx-runtime";
3
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js
4
- function r({ actions: r }) {
5
- return /* @__PURE__ */ n(t, { children: r.map((t) => /* @__PURE__ */ n(e, {
6
- type: "button",
7
- variant: t.variant,
8
- disabled: t.disabled,
9
- loading: t.loading,
10
- onClick: t.onSelect,
11
- children: t.label
12
- }, t.id)) });
2
+ var e = {
3
+ heading: "Approval policy",
4
+ stepConnector: "And",
5
+ chipConnector: "or",
6
+ approvedIndicator: "Approved",
7
+ footnote: "If the listed approvers are unavailable, a company admin can approve this bill on their behalf."
8
+ };
9
+ function t(t) {
10
+ return {
11
+ ...e,
12
+ ...t
13
+ };
13
14
  }
14
15
  //#endregion
15
- export { r as BillActionButtons, r as default };
16
+ export { e as APPROVAL_POLICY_CARD_LABELS_EN, t as mergeApprovalPolicyCardLabels };
@@ -1,15 +1,60 @@
1
+ import { Badge as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { mergeApprovalPolicyCardLabels as n } from "./index12.js";
3
+ import { Fragment as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import { CheckCircle2Icon as o } from "lucide-react";
1
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js
2
- var e = {
3
- draft: "Draft",
4
- pending_approval: "Pending approval",
5
- ready_to_pay: "Ready to pay",
6
- scheduled: "Scheduled",
7
- partially_paid: "Partially paid",
8
- paid: "Paid",
9
- overdue: "Overdue",
10
- canceled: "Canceled",
11
- rejected: "Rejected",
12
- unknown: "Unknown"
13
- };
7
+ var s = "ttw:text-base ttw:font-semibold";
8
+ function c({ view: c, labels: l }) {
9
+ let u = n(l);
10
+ return /* @__PURE__ */ a("section", {
11
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
12
+ children: [/* @__PURE__ */ i("h3", {
13
+ className: s,
14
+ children: u.heading
15
+ }), /* @__PURE__ */ a("div", {
16
+ className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-lg ttw:border ttw:border-border ttw:p-4",
17
+ children: [
18
+ /* @__PURE__ */ i(t, {
19
+ variant: "body1",
20
+ className: "ttw:font-medium",
21
+ children: c.title
22
+ }),
23
+ /* @__PURE__ */ i(t, {
24
+ variant: "body2",
25
+ color: "muted",
26
+ children: c.sentence
27
+ }),
28
+ c.steps.map((n, s) => /* @__PURE__ */ a(r, { children: [s > 0 ? /* @__PURE__ */ a("div", {
29
+ className: "ttw:flex ttw:items-center ttw:gap-2.5",
30
+ children: [/* @__PURE__ */ i(t, {
31
+ variant: "caption",
32
+ color: "muted",
33
+ children: u.stepConnector
34
+ }), /* @__PURE__ */ i("div", { className: "ttw:h-px ttw:flex-1 ttw:bg-border" })]
35
+ }) : null, /* @__PURE__ */ i("div", {
36
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-1.5",
37
+ children: n.chips.map((n, s) => /* @__PURE__ */ a(r, { children: [s > 0 ? /* @__PURE__ */ i(t, {
38
+ variant: "body2",
39
+ color: "muted",
40
+ children: u.chipConnector
41
+ }) : null, /* @__PURE__ */ a(e, {
42
+ variant: "outline",
43
+ className: "ttw:flex ttw:items-center ttw:gap-1",
44
+ children: [n.label, n.approved ? /* @__PURE__ */ i(o, {
45
+ "aria-label": u.approvedIndicator,
46
+ className: "ttw:size-3.5 ttw:text-emerald-600"
47
+ }) : null]
48
+ })] }, n.id))
49
+ })] }, n.id)),
50
+ /* @__PURE__ */ i(t, {
51
+ variant: "caption",
52
+ color: "muted",
53
+ children: u.footnote
54
+ })
55
+ ]
56
+ })]
57
+ });
58
+ }
14
59
  //#endregion
15
- export { e as BILL_STATUS_BADGE_LABELS_EN };
60
+ export { c as ApprovalPolicyCard, c as default };
@@ -1,24 +1,2 @@
1
- import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_STATUS_BADGE_LABELS_EN as n } from "./index13.js";
3
- import { jsxs as r } from "react/jsx-runtime";
4
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js
5
- var i = {
6
- danger: "ttw:border-destructive/20 ttw:bg-destructive/10 ttw:text-destructive ttw:hover:bg-destructive/10",
7
- info: "ttw:border-blue-200 ttw:bg-blue-50 ttw:text-blue-700 ttw:hover:bg-blue-50",
8
- neutral: "ttw:border-border ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
9
- success: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700 ttw:hover:bg-emerald-50",
10
- warning: "ttw:border-amber-200 ttw:bg-amber-50 ttw:text-amber-800 ttw:hover:bg-amber-50"
11
- };
12
- function a({ status: a, tone: o, labels: s, icon: c }) {
13
- let l = {
14
- ...n,
15
- ...s
16
- }, u = l[a] ?? l.unknown;
17
- return /* @__PURE__ */ r(e, {
18
- variant: "outline",
19
- className: t(c && "ttw:gap-1", i[o]),
20
- children: [c, u]
21
- });
22
- }
23
- //#endregion
24
- export { a as BillStatusBadge, a as default };
1
+ import "./index12.js";
2
+ import "./index13.js";
@@ -1,2 +1,22 @@
1
- import "./index13.js";
2
- import "./index14.js";
1
+ import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { Fragment as t, jsx as n } from "react/jsx-runtime";
3
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js
4
+ var r = {
5
+ row: [],
6
+ menu: []
7
+ };
8
+ function i(e) {
9
+ return e.row.length > 0 || e.menu.length > 0;
10
+ }
11
+ function a({ actions: r }) {
12
+ return /* @__PURE__ */ n(t, { children: r.map((t) => /* @__PURE__ */ n(e, {
13
+ type: "button",
14
+ variant: t.variant,
15
+ disabled: t.disabled,
16
+ loading: t.loading,
17
+ onClick: t.onSelect,
18
+ children: t.label
19
+ }, t.id)) });
20
+ }
21
+ //#endregion
22
+ export { a as BillActionButtons, a as default, r as NO_BILL_ACTIONS, i as hasBillActions };
@@ -1,34 +1,26 @@
1
- import { BILL_STATUS_BADGE_LABELS_EN as e } from "./index13.js";
2
- import "./index15.js";
1
+ import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
3
+ import { MoreVerticalIcon as s } from "lucide-react";
3
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js
4
- var t = {
5
- errorTitle: "Couldn't load this bill",
6
- errorDescription: "Something went wrong. Try again.",
7
- amountDueHeading: "Amount due",
8
- invoiceDateLabel: "Invoice date",
9
- dueDateLabel: "Due date",
10
- payToHeading: "Pay to",
11
- vendorRow: "Vendor",
12
- paymentInstructionsRow: "Payment instructions",
13
- addPaymentInstructions: "Add payment instructions",
14
- missingPaymentInstructionsBanner: "Missing payment instructions, which are required to send a payment",
15
- paymentInstructionsCancel: "Cancel",
16
- paymentInstructionsSave: "Save",
17
- descriptionAndGlCodeColumn: "Description and GL code",
18
- qtyPriceColumn: "Qty/Price",
19
- amountColumn: "Amount",
20
- historyHeading: "Audit history",
21
- statusBadge: e
22
- };
23
- function n(e) {
24
- return {
25
- ...t,
26
- ...e,
27
- statusBadge: {
28
- ...t.statusBadge,
29
- ...e?.statusBadge
30
- }
31
- };
5
+ function c({ actions: c, triggerLabel: l, testId: u }) {
6
+ return c.length ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ a(i, {
7
+ asChild: !0,
8
+ children: /* @__PURE__ */ a(e, {
9
+ type: "button",
10
+ variant: "outline",
11
+ size: "icon",
12
+ "aria-label": l,
13
+ "data-testid": u,
14
+ children: /* @__PURE__ */ a(s, { className: "ttw:size-4" })
15
+ })
16
+ }), /* @__PURE__ */ a(n, {
17
+ align: "end",
18
+ children: c.map((e) => /* @__PURE__ */ a(r, {
19
+ disabled: e.disabled,
20
+ onClick: e.onSelect,
21
+ children: e.label
22
+ }, e.id))
23
+ })] }) : null;
32
24
  }
33
25
  //#endregion
34
- export { t as BILL_DETAIL_BODY_LABELS_EN, n as mergeBillDetailBodyLabels };
26
+ export { c as BillOverflowMenu, c as default };
@@ -1,262 +1 @@
1
- import { Badge as e, Button as t, Skeleton as n, cn as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ErrorState as i } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { BillStatusBadge as a } from "./index14.js";
5
- import "./index15.js";
6
- import { mergeBillDetailBodyLabels as o } from "./index16.js";
7
- import { BillActionButtons as s } from "./index12.js";
8
- import { AchFieldGroup as c } from "../../../shared/counterpart-management/ui/dist/index5.js";
9
- import "../../../shared/counterpart-management/ui/dist/index.js";
10
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
11
- import { AlertTriangle as d, ChevronRight as f } from "lucide-react";
12
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js
13
- var p = "ttw:text-base ttw:font-semibold", m = "ttw:px-3 ttw:py-2", h = "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
14
- function g({ view: g, actions: _ = [], scheduledSummary: v, paymentInstructionsForm: y, isLoading: b, isError: x, labels: S }) {
15
- let C = o(S);
16
- if (x) return /* @__PURE__ */ l(i, {
17
- title: C.errorTitle,
18
- description: C.errorDescription
19
- });
20
- if (b || !g) return /* @__PURE__ */ u("div", {
21
- "aria-hidden": !0,
22
- className: "ttw:flex ttw:flex-col ttw:gap-6",
23
- children: [
24
- /* @__PURE__ */ l(n, { className: "ttw:h-40 ttw:w-full" }),
25
- /* @__PURE__ */ l(n, { className: "ttw:h-32 ttw:w-full" }),
26
- /* @__PURE__ */ l(n, { className: "ttw:h-24 ttw:w-full" })
27
- ]
28
- });
29
- let w = !g.payTo.paymentInstructionsLabel && y;
30
- return /* @__PURE__ */ u("div", {
31
- className: "ttw:flex ttw:flex-col ttw:gap-6",
32
- children: [
33
- w ? /* @__PURE__ */ u("div", {
34
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-md ttw:border ttw:border-amber-200 ttw:bg-amber-50 ttw:px-3 ttw:py-2.5",
35
- children: [
36
- /* @__PURE__ */ l(d, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
37
- /* @__PURE__ */ l("p", {
38
- className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
39
- children: C.missingPaymentInstructionsBanner
40
- }),
41
- /* @__PURE__ */ l(t, {
42
- type: "button",
43
- variant: "outline",
44
- size: "sm",
45
- onClick: y.onOpen,
46
- children: C.addPaymentInstructions
47
- })
48
- ]
49
- }) : null,
50
- /* @__PURE__ */ u("section", {
51
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
52
- children: [
53
- /* @__PURE__ */ u("div", {
54
- className: "ttw:flex ttw:flex-col ttw:gap-1",
55
- children: [/* @__PURE__ */ l("span", {
56
- className: "ttw:text-sm ttw:text-muted-foreground",
57
- children: C.amountDueHeading
58
- }), /* @__PURE__ */ l("span", {
59
- className: "ttw:text-3xl ttw:font-semibold",
60
- children: g.amountDue
61
- })]
62
- }),
63
- /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(a, {
64
- status: g.status,
65
- tone: g.statusTone,
66
- labels: C.statusBadge
67
- }) }),
68
- /* @__PURE__ */ u("div", {
69
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
70
- children: [/* @__PURE__ */ u("div", {
71
- className: "ttw:flex ttw:flex-col",
72
- children: [/* @__PURE__ */ l("span", {
73
- className: "ttw:text-xs ttw:text-muted-foreground",
74
- children: C.invoiceDateLabel
75
- }), /* @__PURE__ */ l("span", {
76
- className: "ttw:text-sm ttw:font-medium",
77
- children: g.invoiceDateLabel
78
- })]
79
- }), /* @__PURE__ */ u("div", {
80
- className: "ttw:flex ttw:flex-col",
81
- children: [/* @__PURE__ */ l("span", {
82
- className: "ttw:text-xs ttw:text-muted-foreground",
83
- children: C.dueDateLabel
84
- }), /* @__PURE__ */ l("span", {
85
- className: "ttw:text-sm ttw:font-medium",
86
- children: g.dueDateLabel
87
- })]
88
- })]
89
- }),
90
- v ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(e, {
91
- variant: "outline",
92
- className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
93
- children: v
94
- }) }) : _.length ? /* @__PURE__ */ l("div", {
95
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
96
- children: /* @__PURE__ */ l(s, { actions: _ })
97
- }) : null
98
- ]
99
- }),
100
- /* @__PURE__ */ u("section", {
101
- className: "ttw:flex ttw:flex-col ttw:gap-1",
102
- children: [
103
- /* @__PURE__ */ l("h3", {
104
- className: p,
105
- children: C.payToHeading
106
- }),
107
- /* @__PURE__ */ u("div", {
108
- className: h,
109
- children: [/* @__PURE__ */ l("span", {
110
- className: "ttw:text-sm ttw:text-muted-foreground",
111
- children: C.vendorRow
112
- }), /* @__PURE__ */ u("div", {
113
- className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-right",
114
- children: [/* @__PURE__ */ u("div", {
115
- className: "ttw:flex ttw:flex-col",
116
- children: [/* @__PURE__ */ l("span", {
117
- className: "ttw:text-sm ttw:font-medium ttw:text-primary",
118
- children: g.payTo.name
119
- }), g.payTo.email ? /* @__PURE__ */ l("span", {
120
- className: "ttw:text-xs ttw:text-muted-foreground",
121
- children: g.payTo.email
122
- }) : null]
123
- }), /* @__PURE__ */ l(f, {
124
- "aria-hidden": !0,
125
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
126
- })]
127
- })]
128
- }),
129
- /* @__PURE__ */ u("div", {
130
- className: h,
131
- children: [/* @__PURE__ */ l("span", {
132
- className: "ttw:text-sm ttw:text-muted-foreground",
133
- children: C.paymentInstructionsRow
134
- }), /* @__PURE__ */ u("div", {
135
- className: "ttw:flex ttw:items-center ttw:gap-2",
136
- children: [g.payTo.paymentInstructionsLabel ? /* @__PURE__ */ l("span", {
137
- className: "ttw:text-sm ttw:font-medium",
138
- children: g.payTo.paymentInstructionsLabel
139
- }) : y ? /* @__PURE__ */ l("button", {
140
- type: "button",
141
- onClick: y.onOpen,
142
- className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
143
- children: C.addPaymentInstructions
144
- }) : /* @__PURE__ */ l("span", {
145
- className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
146
- children: C.addPaymentInstructions
147
- }), /* @__PURE__ */ l(f, {
148
- "aria-hidden": !0,
149
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
150
- })]
151
- })]
152
- }),
153
- y?.isOpen ? /* @__PURE__ */ u("div", {
154
- className: "ttw:mt-2 ttw:rounded-lg ttw:border ttw:border-border ttw:p-4",
155
- children: [/* @__PURE__ */ l(c, {
156
- idPrefix: "bill-detail-payment-instructions",
157
- values: y.values,
158
- errors: y.errors,
159
- onChange: y.onChange
160
- }), /* @__PURE__ */ u("div", {
161
- className: "ttw:mt-4 ttw:flex ttw:justify-end ttw:gap-2",
162
- children: [/* @__PURE__ */ l(t, {
163
- type: "button",
164
- variant: "ghost",
165
- onClick: y.onCancel,
166
- children: C.paymentInstructionsCancel
167
- }), /* @__PURE__ */ l(t, {
168
- type: "button",
169
- loading: y.isSaving,
170
- onClick: y.onSave,
171
- children: C.paymentInstructionsSave
172
- })]
173
- })]
174
- }) : null
175
- ]
176
- }),
177
- /* @__PURE__ */ l("dl", {
178
- className: "ttw:flex ttw:flex-col",
179
- children: g.invoiceFields.map((e) => /* @__PURE__ */ u("div", {
180
- className: h,
181
- children: [/* @__PURE__ */ l("dt", {
182
- className: "ttw:text-sm ttw:text-muted-foreground",
183
- children: e.label
184
- }), /* @__PURE__ */ l("dd", {
185
- className: "ttw:text-right ttw:text-sm ttw:font-medium",
186
- children: e.value
187
- })]
188
- }, e.label))
189
- }),
190
- /* @__PURE__ */ l("section", { children: /* @__PURE__ */ u("table", {
191
- className: "ttw:w-full ttw:text-sm",
192
- children: [/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ u("tr", {
193
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
194
- children: [
195
- /* @__PURE__ */ l("th", {
196
- className: r(m, "ttw:text-left ttw:font-normal"),
197
- children: C.descriptionAndGlCodeColumn
198
- }),
199
- /* @__PURE__ */ l("th", {
200
- className: r(m, "ttw:text-right ttw:font-normal"),
201
- children: C.qtyPriceColumn
202
- }),
203
- /* @__PURE__ */ l("th", {
204
- className: r(m, "ttw:text-right ttw:font-normal"),
205
- children: C.amountColumn
206
- })
207
- ]
208
- }) }), /* @__PURE__ */ u("tbody", { children: [g.lineItems.map((e) => /* @__PURE__ */ u("tr", {
209
- className: "ttw:border-b ttw:border-border",
210
- children: [
211
- /* @__PURE__ */ l("td", {
212
- className: m,
213
- children: /* @__PURE__ */ u("div", {
214
- className: "ttw:flex ttw:flex-col",
215
- children: [/* @__PURE__ */ l("span", { children: e.description }), /* @__PURE__ */ l("span", {
216
- className: "ttw:text-xs ttw:text-muted-foreground",
217
- children: e.glCodeLabel
218
- })]
219
- })
220
- }),
221
- /* @__PURE__ */ l("td", {
222
- className: r(m, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
223
- children: e.qtyPriceLabel
224
- }),
225
- /* @__PURE__ */ l("td", {
226
- className: r(m, "ttw:text-right ttw:whitespace-nowrap"),
227
- children: e.amount
228
- })
229
- ]
230
- }, e.id)), g.amountRows.map((e) => /* @__PURE__ */ u("tr", {
231
- className: r(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
232
- children: [/* @__PURE__ */ l("td", {
233
- colSpan: 2,
234
- className: m,
235
- children: e.label
236
- }), /* @__PURE__ */ l("td", {
237
- className: r(m, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
238
- children: e.value
239
- })]
240
- }, e.label))] })]
241
- }) }),
242
- g.history.length ? /* @__PURE__ */ u("section", {
243
- className: "ttw:flex ttw:flex-col ttw:gap-3",
244
- children: [/* @__PURE__ */ l("h3", {
245
- className: p,
246
- children: C.historyHeading
247
- }), /* @__PURE__ */ l("ul", {
248
- className: "ttw:flex ttw:flex-col",
249
- children: g.history.map((e) => /* @__PURE__ */ u("li", {
250
- className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
251
- children: [/* @__PURE__ */ l("span", {
252
- className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
253
- children: e.dateLabel
254
- }), /* @__PURE__ */ l("span", { children: e.description })]
255
- }, e.id))
256
- })]
257
- }) : null
258
- ]
259
- });
260
- }
261
- //#endregion
262
- export { g as BillDetailBody, g as default };
1
+ import "./index16.js";
@@ -1,2 +1,15 @@
1
- import "./index16.js";
2
- import "./index17.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js
2
+ var e = {
3
+ draft: "Draft",
4
+ pending_approval: "Pending approval",
5
+ ready_to_pay: "Ready to pay",
6
+ scheduled: "Scheduled",
7
+ partially_paid: "Partially paid",
8
+ paid: "Paid",
9
+ overdue: "Overdue",
10
+ canceled: "Canceled",
11
+ rejected: "Rejected",
12
+ unknown: "Unknown"
13
+ };
14
+ //#endregion
15
+ export { e as BILL_STATUS_BADGE_LABELS_EN };
@@ -1,9 +1,26 @@
1
+ import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_STATUS_BADGE_LABELS_EN as n } from "./index18.js";
3
+ import { jsxs as r } from "react/jsx-runtime";
1
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js
2
- var e = {
3
- invoiceNumber: "Invoice number",
4
- invoiceDate: "Invoice date",
5
- dueDate: "Due date",
6
- poNumber: "PO number (optional)"
5
+ var i = {
6
+ accent: "ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700 ttw:hover:bg-violet-50",
7
+ danger: "ttw:border-destructive/20 ttw:bg-destructive/10 ttw:text-destructive ttw:hover:bg-destructive/10",
8
+ info: "ttw:border-blue-200 ttw:bg-blue-50 ttw:text-blue-700 ttw:hover:bg-blue-50",
9
+ muted: "ttw:border-border ttw:bg-transparent ttw:text-muted-foreground ttw:hover:bg-transparent",
10
+ neutral: "ttw:border-border ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
11
+ success: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700 ttw:hover:bg-emerald-50",
12
+ warning: "ttw:border-amber-200 ttw:bg-amber-50 ttw:text-amber-800 ttw:hover:bg-amber-50"
7
13
  };
14
+ function a({ status: a, tone: o, labels: s, icon: c }) {
15
+ let l = {
16
+ ...n,
17
+ ...s
18
+ }, u = l[a] ?? l.unknown;
19
+ return /* @__PURE__ */ r(e, {
20
+ variant: "outline",
21
+ className: t(c && "ttw:gap-1", i[o]),
22
+ children: [c, u]
23
+ });
24
+ }
8
25
  //#endregion
9
- export { e as BILL_FORM_FIELDS_LABELS_EN };
26
+ export { a as BillStatusBadge, a as default };