@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,2 +1,31 @@
1
- import "./index23.js";
1
+ import { VENDOR_SUMMARY_CARD_LABELS_EN as e } from "./index10.js";
2
+ import "./index12.js";
3
+ import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t, mergeVendorSearchComboboxLabels as n } from "./index22.js";
2
4
  import "./index24.js";
5
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js
6
+ var r = {
7
+ heading: "Who are you paying?",
8
+ summaryCard: e,
9
+ search: t,
10
+ noVendorPlaceholder: "No vendor selected"
11
+ };
12
+ function i(e) {
13
+ return {
14
+ ...r,
15
+ ...e,
16
+ summaryCard: {
17
+ ...r.summaryCard,
18
+ ...e?.summaryCard,
19
+ ach: {
20
+ ...r.summaryCard.ach,
21
+ ...e?.summaryCard?.ach,
22
+ fieldMarkers: {
23
+ ...r.summaryCard.ach.fieldMarkers,
24
+ ...e?.summaryCard?.ach?.fieldMarkers
25
+ }
26
+ }
27
+ },
28
+ search: n(e?.search)
29
+ };
30
+ }
31
+ export { r as VENDOR_SECTION_LABELS_EN, i as mergeVendorSectionLabels };
@@ -1,31 +1,53 @@
1
- import { VENDOR_SUMMARY_CARD_LABELS_EN as e } from "./index11.js";
2
- import "./index13.js";
3
- import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t, mergeVendorSearchComboboxLabels as n } from "./index23.js";
4
- import "./index25.js";
1
+ import { Typography as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { VendorSummaryCard as t } from "./index11.js";
3
+ import "./index12.js";
4
+ import { VendorSearchCombobox as n } from "./index23.js";
5
+ import "./index24.js";
6
+ import { mergeVendorSectionLabels as r } from "./index25.js";
7
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
8
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js
6
- var r = {
7
- heading: "Who are you paying?",
8
- summaryCard: e,
9
- search: t,
10
- noVendorPlaceholder: "No vendor selected"
11
- };
12
- function i(e) {
13
- return {
14
- ...r,
15
- ...e,
16
- summaryCard: {
17
- ...r.summaryCard,
18
- ...e?.summaryCard,
19
- ach: {
20
- ...r.summaryCard.ach,
21
- ...e?.summaryCard?.ach,
22
- fieldMarkers: {
23
- ...r.summaryCard.ach.fieldMarkers,
24
- ...e?.summaryCard?.ach?.fieldMarkers
25
- }
26
- }
27
- },
28
- search: n(e?.search)
29
- };
9
+ function o(o) {
10
+ let { onEdit: s, error: c, testId: l, labels: u, disabled: d } = o, f = r(u);
11
+ return /* @__PURE__ */ a("section", {
12
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
13
+ "data-invalid": c ? !0 : void 0,
14
+ "data-testid": l,
15
+ children: [
16
+ /* @__PURE__ */ i(e, {
17
+ component: "h2",
18
+ variant: "h6",
19
+ className: "ttw:font-semibold",
20
+ children: f.heading
21
+ }),
22
+ o.mode === "resolved" ? /* @__PURE__ */ i(t, {
23
+ summary: o.summary,
24
+ onEdit: s,
25
+ paymentInstructions: d ? void 0 : o.paymentInstructions,
26
+ showPaymentInstructions: o.showPaymentInstructions,
27
+ detailsWarning: d ? void 0 : o.detailsWarning,
28
+ labels: f.summaryCard
29
+ }) : d ? /* @__PURE__ */ i(e, {
30
+ variant: "body2",
31
+ className: "ttw:text-muted-foreground",
32
+ children: f.noVendorPlaceholder
33
+ }) : o.mode === "selecting" ? /* @__PURE__ */ i(n, {
34
+ ...o.search,
35
+ labels: f.search
36
+ }) : o.summary ? /* @__PURE__ */ a("div", {
37
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
38
+ children: [o.newVendorForm, /* @__PURE__ */ i(t, {
39
+ summary: o.summary,
40
+ paymentInstructions: o.paymentInstructions,
41
+ showPaymentInstructions: o.showPaymentInstructions,
42
+ detailsWarning: o.detailsWarning,
43
+ labels: f.summaryCard
44
+ })]
45
+ }) : o.newVendorForm,
46
+ c ? /* @__PURE__ */ i("p", {
47
+ className: "ttw:text-sm ttw:text-destructive",
48
+ children: c
49
+ }) : null
50
+ ]
51
+ });
30
52
  }
31
- export { r as VENDOR_SECTION_LABELS_EN, i as mergeVendorSectionLabels };
53
+ export { o as VendorSection, o as default };
@@ -1,53 +1,2 @@
1
- import { Typography as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { VendorSummaryCard as t } from "./index12.js";
3
- import "./index13.js";
4
- import { VendorSearchCombobox as n } from "./index24.js";
5
1
  import "./index25.js";
6
- import { mergeVendorSectionLabels as r } from "./index26.js";
7
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
8
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js
9
- function o(o) {
10
- let { onEdit: s, error: c, testId: l, labels: u, disabled: d } = o, f = r(u);
11
- return /* @__PURE__ */ a("section", {
12
- className: "ttw:flex ttw:flex-col ttw:gap-3",
13
- "data-invalid": c ? !0 : void 0,
14
- "data-testid": l,
15
- children: [
16
- /* @__PURE__ */ i(e, {
17
- component: "h2",
18
- variant: "h6",
19
- className: "ttw:font-semibold",
20
- children: f.heading
21
- }),
22
- o.mode === "resolved" ? /* @__PURE__ */ i(t, {
23
- summary: o.summary,
24
- onEdit: s,
25
- paymentInstructions: d ? void 0 : o.paymentInstructions,
26
- showPaymentInstructions: o.showPaymentInstructions,
27
- detailsWarning: d ? void 0 : o.detailsWarning,
28
- labels: f.summaryCard
29
- }) : d ? /* @__PURE__ */ i(e, {
30
- variant: "body2",
31
- className: "ttw:text-muted-foreground",
32
- children: f.noVendorPlaceholder
33
- }) : o.mode === "selecting" ? /* @__PURE__ */ i(n, {
34
- ...o.search,
35
- labels: f.search
36
- }) : o.summary ? /* @__PURE__ */ a("div", {
37
- className: "ttw:flex ttw:flex-col ttw:gap-3",
38
- children: [o.newVendorForm, /* @__PURE__ */ i(t, {
39
- summary: o.summary,
40
- paymentInstructions: o.paymentInstructions,
41
- showPaymentInstructions: o.showPaymentInstructions,
42
- detailsWarning: o.detailsWarning,
43
- labels: f.summaryCard
44
- })]
45
- }) : o.newVendorForm,
46
- c ? /* @__PURE__ */ i("p", {
47
- className: "ttw:text-sm ttw:text-destructive",
48
- children: c
49
- }) : null
50
- ]
51
- });
52
- }
53
- export { o as VendorSection, o as default };
2
+ import "./index26.js";
@@ -1,2 +1,55 @@
1
- import "./index26.js";
1
+ import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_DETAIL_BODY_LABELS_EN as r, mergeBillDetailBodyLabels as i } from "./index13.js";
3
+ import "./index15.js";
4
+ import { BILL_FORM_FIELDS_LABELS_EN as a, mergeBillFormFieldsLabels as o } from "./index16.js";
5
+ import "./index18.js";
6
+ import { LINE_ITEMS_SECTION_LABELS_EN as s, mergeLineItemsSectionLabels as c } from "./index19.js";
7
+ import "./index21.js";
8
+ import { VENDOR_SECTION_LABELS_EN as l, mergeVendorSectionLabels as u } from "./index25.js";
2
9
  import "./index27.js";
10
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js
11
+ var d = {
12
+ closeButton: "Close",
13
+ collapseButton: "Collapse to side panel",
14
+ menuTrigger: "More actions",
15
+ cancelButton: "Cancel",
16
+ saveDraftButton: "Save and close",
17
+ submitButton: "Submit",
18
+ documentPaneRegion: "Attachment",
19
+ saveButton: "Save",
20
+ vendorSection: l,
21
+ detailsFields: a,
22
+ lineItems: s,
23
+ detailBody: r,
24
+ requiredFieldsLegend: t,
25
+ fieldMarkers: e
26
+ };
27
+ function f(e) {
28
+ let t = {
29
+ ...d.fieldMarkers,
30
+ ...e?.fieldMarkers
31
+ };
32
+ return {
33
+ ...d,
34
+ ...e,
35
+ fieldMarkers: t,
36
+ vendorSection: u({
37
+ ...e?.vendorSection,
38
+ search: {
39
+ fieldMarkers: t,
40
+ ...e?.vendorSection?.search
41
+ }
42
+ }),
43
+ detailsFields: o({
44
+ fieldMarkers: t,
45
+ ...e?.detailsFields
46
+ }),
47
+ lineItems: c({
48
+ fieldMarkers: t,
49
+ ...e?.lineItems
50
+ }),
51
+ detailBody: i(e?.detailBody),
52
+ requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
53
+ };
54
+ }
55
+ export { d as BILL_DIALOG_SCREEN_LABELS_EN, f as mergeBillDialogScreenLabels };
@@ -1,56 +1,12 @@
1
- import { LABEL_LABELS_EN as e, REQUIRED_FIELDS_LEGEND_LABELS_EN as t, mergeRequiredFieldsLegendLabels as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_DETAIL_BODY_LABELS_EN as r, mergeBillDetailBodyLabels as i } from "./index14.js";
3
- import "./index16.js";
4
- import { BILL_FORM_FIELDS_LABELS_EN as a, mergeBillFormFieldsLabels as o } from "./index17.js";
5
- import "./index19.js";
6
- import { LINE_ITEMS_SECTION_LABELS_EN as s, mergeLineItemsSectionLabels as c } from "./index20.js";
7
- import "./index22.js";
8
- import { VENDOR_SECTION_LABELS_EN as l, mergeVendorSectionLabels as u } from "./index26.js";
9
- import "./index28.js";
1
+ import { useEffect as e, useRef as t } from "react";
10
2
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js
11
- var d = {
12
- closeButton: "Close",
13
- collapseButton: "Exit full screen",
14
- menuTrigger: "More actions",
15
- cancelButton: "Cancel",
16
- saveDraftButton: "Save and close",
17
- submitButton: "Submit",
18
- documentPaneRegion: "Attachment",
19
- saveButton: "Save",
20
- hiddenDescription: "Enter the details of the bill you want to pay.",
21
- vendorSection: l,
22
- detailsFields: a,
23
- lineItems: s,
24
- detailBody: r,
25
- requiredFieldsLegend: t,
26
- fieldMarkers: e
27
- };
28
- function f(e) {
29
- let t = {
30
- ...d.fieldMarkers,
31
- ...e?.fieldMarkers
32
- };
33
- return {
34
- ...d,
35
- ...e,
36
- fieldMarkers: t,
37
- vendorSection: u({
38
- ...e?.vendorSection,
39
- search: {
40
- fieldMarkers: t,
41
- ...e?.vendorSection?.search
42
- }
43
- }),
44
- detailsFields: o({
45
- fieldMarkers: t,
46
- ...e?.detailsFields
47
- }),
48
- lineItems: c({
49
- fieldMarkers: t,
50
- ...e?.lineItems
51
- }),
52
- detailBody: i(e?.detailBody),
53
- requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
54
- };
3
+ function n(n) {
4
+ let r = t(null), i = t(n);
5
+ return e(() => {
6
+ if (n === i.current) return;
7
+ i.current = n;
8
+ let e = r.current?.querySelector("[aria-invalid=\"true\"], [data-invalid=\"true\"]");
9
+ e?.scrollIntoView({ block: "center" }), e?.focus({ preventScroll: !0 });
10
+ }, [n]), r;
55
11
  }
56
- export { d as BILL_DIALOG_SCREEN_LABELS_EN, f as mergeBillDialogScreenLabels };
12
+ export { n as useFocusFirstInvalidField };
@@ -1,61 +1,61 @@
1
- import { Alert as e, AlertDescription as t, Badge as n, Typography as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { mergeApprovalPolicyCardLabels as i } from "./index2.js";
3
- import { Fragment as a } from "react";
4
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
- import { CheckCircle2Icon as c, InfoIcon as l } from "lucide-react";
1
+ import { Alert as e, AlertDescription as t, Badge as n, Heading as r, Separator as i, Typography as a } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { mergeApprovalPolicyCardLabels as o } from "./index2.js";
3
+ import { Fragment as s } from "react";
4
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
+ import { CheckCircle2Icon as u, InfoIcon as d } from "lucide-react";
6
6
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js
7
- var u = "ttw:text-base ttw:font-semibold";
8
- function d({ view: d, labels: f }) {
9
- let p = i(f);
10
- return /* @__PURE__ */ s("section", {
7
+ function f({ view: f, labels: p }) {
8
+ let m = o(p);
9
+ return /* @__PURE__ */ l("section", {
11
10
  className: "ttw:flex ttw:flex-col ttw:gap-3",
12
- children: [/* @__PURE__ */ o("h3", {
13
- className: u,
14
- children: p.heading
15
- }), /* @__PURE__ */ s("div", {
11
+ children: [/* @__PURE__ */ c(r, {
12
+ variant: "section",
13
+ level: 3,
14
+ children: m.heading
15
+ }), /* @__PURE__ */ l("div", {
16
16
  className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-lg ttw:bg-muted ttw:p-4",
17
17
  children: [
18
- d.title || d.badge ? /* @__PURE__ */ s("div", {
18
+ f.title || f.badge ? /* @__PURE__ */ l("div", {
19
19
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
20
- children: [d.title ? /* @__PURE__ */ o(r, {
20
+ children: [f.title ? /* @__PURE__ */ c(a, {
21
21
  variant: "body1",
22
22
  className: "ttw:font-medium",
23
- children: d.title
24
- }) : null, d.badge ? /* @__PURE__ */ o(n, {
23
+ children: f.title
24
+ }) : null, f.badge ? /* @__PURE__ */ c(n, {
25
25
  tone: "neutral",
26
- children: d.badge
26
+ children: f.badge
27
27
  }) : null]
28
28
  }) : null,
29
- d.note ? /* @__PURE__ */ s(e, {
29
+ f.note ? /* @__PURE__ */ l(e, {
30
30
  variant: "info",
31
- children: [/* @__PURE__ */ o(l, { "aria-hidden": !0 }), /* @__PURE__ */ o(t, { children: d.note })]
31
+ children: [/* @__PURE__ */ c(d, { "aria-hidden": !0 }), /* @__PURE__ */ c(t, { children: f.note })]
32
32
  }) : null,
33
- d.sentence ? /* @__PURE__ */ o(r, {
33
+ f.sentence ? /* @__PURE__ */ c(a, {
34
34
  variant: "body2",
35
35
  color: "muted",
36
- children: d.sentence
36
+ children: f.sentence
37
37
  }) : null,
38
- d.steps.map((e, t) => /* @__PURE__ */ s(a, { children: [t > 0 ? /* @__PURE__ */ s("div", {
38
+ f.steps.map((e, t) => /* @__PURE__ */ l(s, { children: [t > 0 ? /* @__PURE__ */ l("div", {
39
39
  className: "ttw:flex ttw:items-center ttw:gap-2.5",
40
- children: [/* @__PURE__ */ o(r, {
40
+ children: [/* @__PURE__ */ c(a, {
41
41
  variant: "caption",
42
42
  color: "muted",
43
- children: p.stepConnector
44
- }), /* @__PURE__ */ o("div", { className: "ttw:h-px ttw:flex-1 ttw:bg-border" })]
45
- }) : null, /* @__PURE__ */ s("div", {
43
+ children: m.stepConnector
44
+ }), /* @__PURE__ */ c(i, { className: "ttw:flex-1" })]
45
+ }) : null, /* @__PURE__ */ l("div", {
46
46
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-1.5",
47
- children: [e.chips.map((e, t) => /* @__PURE__ */ s(a, { children: [t > 0 ? /* @__PURE__ */ o(r, {
47
+ children: [e.chips.map((e, t) => /* @__PURE__ */ l(s, { children: [t > 0 ? /* @__PURE__ */ c(a, {
48
48
  variant: "body2",
49
49
  color: "muted",
50
- children: p.chipConnector
51
- }) : null, /* @__PURE__ */ s(n, {
50
+ children: m.chipConnector
51
+ }) : null, /* @__PURE__ */ l(n, {
52
52
  variant: "outline",
53
53
  className: "ttw:flex ttw:items-center ttw:gap-1",
54
- children: [e.label, e.approved ? /* @__PURE__ */ o(c, {
55
- "aria-label": p.approvedIndicator,
56
- className: "ttw:size-3.5 ttw:text-emerald-600"
54
+ children: [e.label, e.approved ? /* @__PURE__ */ c(u, {
55
+ "aria-label": m.approvedIndicator,
56
+ className: "ttw:size-3.5 ttw:text-success-foreground"
57
57
  }) : null]
58
- })] }, e.id)), e.caption ? /* @__PURE__ */ o(r, {
58
+ })] }, e.id)), e.caption ? /* @__PURE__ */ c(a, {
59
59
  variant: "body2",
60
60
  color: "muted",
61
61
  children: e.caption
@@ -65,4 +65,4 @@ function d({ view: d, labels: f }) {
65
65
  })]
66
66
  });
67
67
  }
68
- export { d as ApprovalPolicyCard, d as default };
68
+ export { f as ApprovalPolicyCard, f as default };
@@ -1,12 +1,135 @@
1
- import { useEffect as e, useRef as t } from "react";
1
+ import { Button as e, FullPageModal as t, RequiredFieldsLegend as ee } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { TooltipIconButton as n } from "../../../../shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js";
3
+ import { InlineErrorAlert as r } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
4
+ import "../../../../shared/ui/dist/index.js";
5
+ import { BillActionButtons as i, NO_BILL_ACTIONS as a } from "../../../ui/dist/index2.js";
6
+ import { BillOverflowMenu as o } from "../../../ui/dist/index13.js";
7
+ import "../../../ui/dist/index.js";
8
+ import { BillDetailBody as s, isBillDetailReady as c } from "./index14.js";
9
+ import "./index15.js";
10
+ import { BillFormFields as te } from "./index17.js";
11
+ import "./index18.js";
12
+ import { LineItemsSection as l } from "./index20.js";
13
+ import "./index21.js";
14
+ import { VendorSection as u } from "./index26.js";
15
+ import "./index27.js";
16
+ import { mergeBillDialogScreenLabels as d } from "./index28.js";
17
+ import { useFocusFirstInvalidField as f } from "./index29.js";
18
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
19
+ import { Minimize2Icon as g } from "lucide-react";
2
20
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js
3
- function n(n) {
4
- let r = t(null), i = t(n);
5
- return e(() => {
6
- if (n === i.current) return;
7
- i.current = n;
8
- let e = r.current?.querySelector("[aria-invalid=\"true\"], [data-invalid=\"true\"]");
9
- e?.scrollIntoView({ block: "center" }), e?.focus({ preventScroll: !0 });
10
- }, [n]), r;
21
+ function _({ open: _, onOpenChange: y, title: b, subtitle: x, notice: S, vendor: C, values: w, errors: T, onChange: E, lineItems: D, documentPanel: O, menuItems: k, readOnly: A, detail: j, detailEdit: M, isLineItemsLoading: N, isSaving: P, isSavingDraft: F, isSubmitting: I, showSubmit: L = !0, onCancel: R, onCollapse: z, onSaveDraft: B, onFinalize: V, scrollToErrorToken: H, testId: U, labels: W }) {
22
+ let G = d(W), K = f(H), q = !!(A && j), { actions: J = a, ...Y } = j ?? {}, X = q && c(Y), Z = X && !M ? v(J.footer.secondary, J.footer.primary) : void 0, Q, $;
23
+ return q && M ? (Q = /* @__PURE__ */ m(e, {
24
+ type: "button",
25
+ variant: "ghost",
26
+ size: "lg",
27
+ disabled: M.isSaving,
28
+ onClick: M.onCancel,
29
+ children: G.cancelButton
30
+ }), $ = /* @__PURE__ */ m(e, {
31
+ type: "button",
32
+ size: "lg",
33
+ onClick: M.onSave,
34
+ loading: M.isSaving,
35
+ disabled: M.isSaving,
36
+ children: G.saveButton
37
+ })) : A || (Q = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(e, {
38
+ type: "button",
39
+ variant: "ghost",
40
+ size: "lg",
41
+ disabled: P,
42
+ onClick: R,
43
+ children: G.cancelButton
44
+ }), /* @__PURE__ */ m(e, {
45
+ type: "button",
46
+ variant: L ? "secondary" : "default",
47
+ size: "lg",
48
+ onClick: B,
49
+ loading: F,
50
+ disabled: P || I || N,
51
+ children: G.saveDraftButton
52
+ })] }), $ = L ? /* @__PURE__ */ m(e, {
53
+ type: "button",
54
+ size: "lg",
55
+ onClick: V,
56
+ loading: I,
57
+ disabled: P || F || N,
58
+ children: G.submitButton
59
+ }) : void 0), /* @__PURE__ */ m(t, {
60
+ open: _,
61
+ onOpenChange: y,
62
+ title: b,
63
+ description: x,
64
+ headerActions: /* @__PURE__ */ h(p, { children: [
65
+ X && !M ? /* @__PURE__ */ m(i, { actions: J.header }) : null,
66
+ z ? /* @__PURE__ */ m(n, {
67
+ label: G.collapseButton,
68
+ icon: g,
69
+ disabled: P,
70
+ onClick: z
71
+ }) : null,
72
+ k?.length ? /* @__PURE__ */ m(o, {
73
+ actions: k,
74
+ triggerLabel: G.menuTrigger,
75
+ disabled: P
76
+ }) : null
77
+ ] }),
78
+ preview: /* @__PURE__ */ m("div", {
79
+ role: "region",
80
+ "aria-label": G.documentPaneRegion,
81
+ tabIndex: 0,
82
+ className: "ttw:h-full",
83
+ children: O
84
+ }),
85
+ submitting: P,
86
+ secondaryAction: Q,
87
+ primaryAction: $,
88
+ labels: { close: G.closeButton },
89
+ testIds: { content: U },
90
+ children: /* @__PURE__ */ h("div", {
91
+ ref: K,
92
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
93
+ children: [
94
+ T?.form ? /* @__PURE__ */ m("div", {
95
+ "data-invalid": "true",
96
+ children: /* @__PURE__ */ m(r, { children: T.form })
97
+ }) : null,
98
+ S ? /* @__PURE__ */ m("div", {
99
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
100
+ children: S
101
+ }) : null,
102
+ q ? /* @__PURE__ */ m(s, {
103
+ ...Y,
104
+ workflowActions: Z,
105
+ labels: G.detailBody
106
+ }) : /* @__PURE__ */ h(p, { children: [
107
+ /* @__PURE__ */ m(ee, { labels: G.requiredFieldsLegend }),
108
+ /* @__PURE__ */ m(u, {
109
+ ...C,
110
+ onEdit: A ? void 0 : C.onEdit,
111
+ disabled: A,
112
+ labels: G.vendorSection
113
+ }),
114
+ /* @__PURE__ */ m(te, {
115
+ values: w,
116
+ errors: T,
117
+ onChange: E,
118
+ disabled: A,
119
+ labels: G.detailsFields
120
+ }),
121
+ /* @__PURE__ */ m(l, {
122
+ ...D,
123
+ disabled: D.disabled || N || A,
124
+ labels: G.lineItems
125
+ })
126
+ ] })
127
+ ]
128
+ })
129
+ });
11
130
  }
12
- export { n as useFocusFirstInvalidField };
131
+ function v(...e) {
132
+ let t = e.filter((e) => !!e);
133
+ return t.length ? /* @__PURE__ */ m(i, { actions: t }) : void 0;
134
+ }
135
+ export { _ as BillDialogScreen, _ as default };