@tesouro/embedded-components-react 0.2.318 → 0.2.320

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 (135) hide show
  1. package/README.md +5 -4
  2. package/dist/index.css +9 -0
  3. package/dist/index.d.ts +4 -1
  4. package/dist/index.js +1 -1
  5. package/dist/lib/BillPayWidget.d.ts +4 -1
  6. package/dist/lib/BillPayWidget.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -7
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +170 -32
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +13 -32
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +30 -0
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +50 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +36 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +11 -8
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +33 -16
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +47 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +18 -63
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +40 -131
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +48 -11
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -20
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +18 -16
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +29 -97
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +1 -9
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +13 -109
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +24 -4
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +30 -21
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +19 -46
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +49 -76
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +4 -45
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +73 -3
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +50 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +4 -50
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +7 -43
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +38 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +115 -31
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +56 -8
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +206 -16
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +195 -5
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +58 -64
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +46 -139
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +34 -5
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +155 -6
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +3 -60
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +36 -7
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +92 -73
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +9 -3
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +191 -6
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +4 -114
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +26 -1
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +78 -21
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +92 -0
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +3 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -206
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +45 -0
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -0
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +53 -0
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +11 -0
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +18 -0
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +8 -0
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +79 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +148 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +5 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +8 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +3 -197
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +9 -0
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +85 -0
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +3 -0
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -0
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +115 -0
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +1 -0
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +25 -0
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +30 -41
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +38 -30
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +20 -151
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +158 -31
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +29 -17
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -7
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +13 -47
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +24 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -22
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +31 -283
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +261 -1
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +2 -16
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +7 -118
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +49 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -10
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +20 -94
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +286 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +1 -12
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +14 -56
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +120 -2
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +8 -157
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +96 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -7
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +11 -42
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +57 -1
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -14
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +50 -20
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +138 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +1 -54
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +5 -227
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +37 -188
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -10
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +55 -5
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +229 -84
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +195 -0
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +10 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +4 -3
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +88 -25
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -14
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +5 -87
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +30 -2
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -0
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +7 -0
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +34 -0
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -0
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +12 -0
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +106 -0
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -0
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +18 -0
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +10 -0
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +170 -0
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -0
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +14 -0
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +89 -0
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -0
  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/@tanstack/react-query.gen.js +189 -156
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +157 -97
  131. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +10 -10
  132. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  134. package/package.json +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +0 -2
@@ -1,55 +1,2 @@
1
- import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
3
- import "./index8.js";
4
- import { BILL_STATUS_BADGE_LABELS_EN as n } from "./index33.js";
1
+ import "./index34.js";
5
2
  import "./index35.js";
6
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js
7
- var r = {
8
- loadingTitle: "Loading bill…",
9
- hiddenDescription: "Bill details",
10
- errorTitle: "Couldn't load this bill",
11
- errorDescription: "Something went wrong. Try again.",
12
- amountDueHeading: "Amount due",
13
- invoiceDateLabel: "Invoice date",
14
- dueDateLabel: "Due date",
15
- payToHeading: "Pay to",
16
- invoiceDetailsHeading: "Invoice details",
17
- lineItemsHeading: "Line items",
18
- lineItemsQuantityHeading: "Qty/Price",
19
- lineItemsAmountHeading: "Amount",
20
- expandButton: "Open full screen",
21
- closeButton: "Close",
22
- statusBadge: n
23
- }, i = ".pdf,.png,.jpg,.jpeg,.doc,.docx", a = {
24
- ...t,
25
- dropzone: {
26
- ...t.dropzone,
27
- fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
28
- }
29
- }, o = {
30
- createButton: "Add bill",
31
- columnVendor: "Vendor",
32
- columnDueDate: "Due date",
33
- columnAmountDue: "Amount due",
34
- columnStatus: "Status",
35
- columnAddedOn: "Added on",
36
- columnActions: "Actions",
37
- openRow: (e) => `View bill — ${e}`,
38
- searchPlaceholder: "Search by vendor name",
39
- searchLabel: "Search bills by vendor name",
40
- filterTabsLabel: "Filter bills by status",
41
- filteredEmptyTitle: "No bills match",
42
- filteredEmptyDescription: "Try a different search or status filter.",
43
- errorTitle: "Couldn't load bills",
44
- errorDescription: "Something went wrong. Try again.",
45
- errorRetry: "Retry",
46
- statusBadge: n,
47
- addBill: a,
48
- sortableHeader: {
49
- sortedAscending: e.sortedAscending,
50
- sortedDescending: e.sortedDescending,
51
- notSorted: e.notSorted
52
- }
53
- };
54
- //#endregion
55
- export { o as BILLS_SCREEN_LABELS_EN, i as BILLS_SCREEN_UPLOAD_ACCEPT, r as BILL_DETAILS_SHEET_LABELS_EN };
@@ -1,229 +1,7 @@
1
- import { Button as e, Collapsible as t, CollapsibleContent as n, CollapsibleTrigger as r, Sheet as i, SheetContent as a, SheetDescription as o, SheetHeader as s, SheetTitle as c, Skeleton as l, Typography as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillStatusBadge as d } from "./index34.js";
3
- import "./index35.js";
4
- import { BILL_DETAILS_SHEET_LABELS_EN as f } from "./index36.js";
5
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
6
- import { ChevronDownIcon as g, MoveDiagonal2Icon as _, XIcon as v } from "lucide-react";
7
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js
8
- function y({ items: e }) {
9
- return /* @__PURE__ */ m("dl", {
10
- className: "ttw:flex ttw:flex-col",
11
- children: e.map((e) => /* @__PURE__ */ h("div", {
12
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
13
- children: [/* @__PURE__ */ m("dt", {
14
- className: "ttw:text-sm ttw:text-muted-foreground",
15
- children: e.label
16
- }), /* @__PURE__ */ h("dd", {
17
- className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
18
- children: [/* @__PURE__ */ m("span", {
19
- className: "ttw:text-sm ttw:font-medium",
20
- children: e.value
21
- }), e.secondaryValue ? /* @__PURE__ */ m("span", {
22
- className: "ttw:text-sm ttw:text-muted-foreground",
23
- children: e.secondaryValue
24
- }) : null]
25
- })]
26
- }, e.label))
27
- });
28
- }
29
- function b({ heading: e, children: i }) {
30
- return /* @__PURE__ */ h(t, {
31
- defaultOpen: !0,
32
- className: "ttw:flex ttw:flex-col ttw:gap-3",
33
- children: [/* @__PURE__ */ h(r, {
34
- className: "ttw:group ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:rounded-xs ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
35
- children: [/* @__PURE__ */ m(u, {
36
- variant: "body1",
37
- className: "ttw:font-semibold",
38
- children: e
39
- }), /* @__PURE__ */ m(g, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
40
- }), /* @__PURE__ */ m(n, { children: i })]
41
- });
42
- }
43
- function x({ open: t, onOpenChange: n, details: r, isLoading: u, isError: g, onClose: x, onExpand: S, testId: C, labels: w }) {
44
- let T = {
45
- ...f,
46
- ...w,
47
- statusBadge: {
48
- ...f.statusBadge,
49
- ...w?.statusBadge
50
- }
51
- };
52
- return /* @__PURE__ */ m(i, {
53
- open: t,
54
- onOpenChange: (e) => e ? n(e) : x(),
55
- children: /* @__PURE__ */ h(a, {
56
- showCloseButton: !1,
57
- className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
58
- "data-testid": C,
59
- children: [/* @__PURE__ */ h(s, {
60
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
61
- children: [/* @__PURE__ */ h("div", {
62
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
63
- children: [
64
- /* @__PURE__ */ m(c, {
65
- className: u ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
66
- children: g ? T.errorTitle : u ? T.loadingTitle : r?.title
67
- }),
68
- u ? /* @__PURE__ */ h("div", {
69
- "aria-hidden": !0,
70
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
71
- children: [/* @__PURE__ */ m(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ m(l, { className: "ttw:h-4 ttw:w-28" })]
72
- }) : null,
73
- r && !u && !g ? /* @__PURE__ */ m("p", {
74
- className: "ttw:text-sm ttw:text-muted-foreground",
75
- children: r.subtitle
76
- }) : null,
77
- /* @__PURE__ */ m(o, {
78
- className: "ttw:sr-only",
79
- children: T.hiddenDescription
80
- })
81
- ]
82
- }), /* @__PURE__ */ h("div", {
83
- className: "ttw:flex ttw:items-center ttw:gap-1",
84
- children: [S ? /* @__PURE__ */ m(e, {
85
- type: "button",
86
- variant: "ghost",
87
- size: "icon",
88
- "aria-label": T.expandButton,
89
- onClick: S,
90
- children: /* @__PURE__ */ m(_, { className: "ttw:size-4" })
91
- }) : null, /* @__PURE__ */ m(e, {
92
- type: "button",
93
- variant: "ghost",
94
- size: "icon",
95
- "aria-label": T.closeButton,
96
- onClick: x,
97
- children: /* @__PURE__ */ m(v, { className: "ttw:size-4" })
98
- })]
99
- })]
100
- }), /* @__PURE__ */ m("div", {
101
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
102
- children: g ? /* @__PURE__ */ m("p", {
103
- className: "ttw:text-sm ttw:text-muted-foreground",
104
- children: T.errorDescription
105
- }) : u ? /* @__PURE__ */ h("div", {
106
- className: "ttw:flex ttw:flex-col ttw:gap-6",
107
- children: [/* @__PURE__ */ m(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ h("div", {
108
- className: "ttw:flex ttw:flex-col ttw:gap-2",
109
- children: [
110
- /* @__PURE__ */ m(l, { className: "ttw:h-4 ttw:w-40" }),
111
- /* @__PURE__ */ m(l, { className: "ttw:h-9 ttw:w-full" }),
112
- /* @__PURE__ */ m(l, { className: "ttw:h-9 ttw:w-full" })
113
- ]
114
- })]
115
- }) : r ? /* @__PURE__ */ h(p, { children: [
116
- /* @__PURE__ */ h("section", {
117
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
118
- children: [/* @__PURE__ */ h("div", {
119
- className: "ttw:flex ttw:flex-col ttw:gap-2",
120
- children: [
121
- /* @__PURE__ */ m("span", {
122
- className: "ttw:text-sm ttw:text-muted-foreground",
123
- children: T.amountDueHeading
124
- }),
125
- /* @__PURE__ */ m("span", {
126
- className: "ttw:text-3xl ttw:font-semibold",
127
- children: r.amountDueLabel
128
- }),
129
- /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(d, {
130
- status: r.status,
131
- tone: r.statusTone,
132
- labels: T.statusBadge
133
- }) })
134
- ]
135
- }), /* @__PURE__ */ h("div", {
136
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
137
- children: [/* @__PURE__ */ h("div", {
138
- className: "ttw:flex ttw:flex-col",
139
- children: [/* @__PURE__ */ m("span", {
140
- className: "ttw:text-xs ttw:text-muted-foreground",
141
- children: T.invoiceDateLabel
142
- }), /* @__PURE__ */ m("span", {
143
- className: "ttw:text-sm ttw:font-medium",
144
- children: r.invoiceDateLabel
145
- })]
146
- }), /* @__PURE__ */ h("div", {
147
- className: "ttw:flex ttw:flex-col",
148
- children: [/* @__PURE__ */ m("span", {
149
- className: "ttw:text-xs ttw:text-muted-foreground",
150
- children: T.dueDateLabel
151
- }), /* @__PURE__ */ m("span", {
152
- className: "ttw:text-sm ttw:font-medium",
153
- children: r.dueDateLabel
154
- })]
155
- })]
156
- })]
157
- }),
158
- /* @__PURE__ */ m(b, {
159
- heading: T.payToHeading,
160
- children: /* @__PURE__ */ m(y, { items: r.payToItems })
161
- }),
162
- /* @__PURE__ */ m(b, {
163
- heading: T.invoiceDetailsHeading,
164
- children: /* @__PURE__ */ h("div", {
165
- className: "ttw:flex ttw:flex-col ttw:gap-4",
166
- children: [
167
- /* @__PURE__ */ m(y, { items: r.invoiceItems }),
168
- r.lineItems.length ? /* @__PURE__ */ h("table", {
169
- className: "ttw:w-full ttw:text-sm",
170
- children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", {
171
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
172
- children: [
173
- /* @__PURE__ */ m("th", {
174
- className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
175
- children: T.lineItemsHeading
176
- }),
177
- /* @__PURE__ */ m("th", {
178
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
179
- children: T.lineItemsQuantityHeading
180
- }),
181
- /* @__PURE__ */ m("th", {
182
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
183
- children: T.lineItemsAmountHeading
184
- })
185
- ]
186
- }) }), /* @__PURE__ */ m("tbody", { children: r.lineItems.map((e) => /* @__PURE__ */ h("tr", {
187
- className: "ttw:border-b ttw:border-border",
188
- children: [
189
- /* @__PURE__ */ h("td", {
190
- className: "ttw:px-3 ttw:py-2",
191
- children: [/* @__PURE__ */ m("span", {
192
- className: "ttw:block",
193
- children: e.description
194
- }), /* @__PURE__ */ m("span", {
195
- className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
196
- children: e.glCodeLabel
197
- })]
198
- }),
199
- /* @__PURE__ */ m("td", {
200
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
201
- children: e.quantityLabel
202
- }),
203
- /* @__PURE__ */ m("td", {
204
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
205
- children: e.amountLabel
206
- })
207
- ]
208
- }, e.id)) })]
209
- }) : null,
210
- /* @__PURE__ */ m("dl", {
211
- className: "ttw:flex ttw:flex-col ttw:gap-1",
212
- children: r.totals.map((e) => /* @__PURE__ */ h("div", {
213
- className: e.emphasis ? "ttw:flex ttw:justify-between ttw:gap-6 ttw:border-t ttw:border-border ttw:pt-2 ttw:text-base ttw:font-semibold" : "ttw:flex ttw:justify-between ttw:gap-6 ttw:text-sm",
214
- children: [/* @__PURE__ */ m("dt", {
215
- className: e.emphasis ? "" : "ttw:text-muted-foreground",
216
- children: e.label
217
- }), /* @__PURE__ */ m("dd", { children: e.value })]
218
- }, e.label))
219
- })
220
- ]
221
- })
222
- })
223
- ] }) : null
224
- })]
225
- })
226
- });
227
- }
2
+ var e = {
3
+ title: "Bill pay",
4
+ description: "Review, approve, and pay your bills."
5
+ };
228
6
  //#endregion
229
- export { x as BillDetailsSheet, x as default };
7
+ export { e as DEFAULT_LABELS };
@@ -1,195 +1,44 @@
1
- import { Button as e, DataTable as t, DataTableSortableHeader as n, Input as r, Tabs as i, TabsContent as a, TabsList as o, TabsTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { EmptyState as c } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
- import { ErrorState as l } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
- import "../../../shared/ui/dist/index.js";
5
- import { AddBillPanel as u } from "./index7.js";
6
- import "./index8.js";
7
- import { BillStatusBadge as d } from "./index34.js";
8
- import "./index35.js";
9
- import { BILLS_SCREEN_LABELS_EN as f, BILLS_SCREEN_UPLOAD_ACCEPT as p } from "./index36.js";
10
- import { useMemo as m } from "react";
11
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
12
- import { ChevronRightIcon as _, PlusIcon as v, SearchIcon as y } from "lucide-react";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { DEFAULT_LABELS as i } from "./index37.js";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
13
8
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js
14
- var b = [
15
- 10,
16
- 25,
17
- 50,
18
- 100
19
- ];
20
- function x({ rows: x, isLoading: S, isError: C, sorting: w, onSortingChange: T, pageSize: E, onPageSizeChange: D, pageSizeOptions: O = b, pageInfo: k, hasNextPage: A, hasPrevPage: j, onNextPage: M, onPrevPage: N, filterTabs: P, selectedFilterTabId: F, onFilterTabChange: I, searchValue: L, onSearchChange: R, isFiltering: z, onCreateClick: B, onRetry: V, onFilesSelected: H, onEnterManually: U, uploadStatus: W, uploadErrorMessage: G, emailAddress: K, onCopyEmail: q, labels: J }) {
21
- let Y = m(() => ({
22
- ...f,
23
- ...J,
24
- statusBadge: {
25
- ...f.statusBadge,
26
- ...J?.statusBadge
27
- },
28
- addBill: {
29
- ...f.addBill,
30
- ...J?.addBill,
31
- dropzone: {
32
- ...f.addBill.dropzone,
33
- ...J?.addBill?.dropzone
34
- }
35
- },
36
- sortableHeader: {
37
- ...f.sortableHeader,
38
- ...J?.sortableHeader
39
- }
40
- }), [J]), X = m(() => [
41
- {
42
- accessorKey: "vendorLabel",
43
- enableSorting: !0,
44
- header: ({ column: e }) => /* @__PURE__ */ h(n, {
45
- column: e,
46
- title: Y.columnVendor,
47
- labels: Y.sortableHeader
48
- })
49
- },
50
- {
51
- accessorKey: "dueDateLabel",
52
- enableSorting: !0,
53
- header: ({ column: e }) => /* @__PURE__ */ h(n, {
54
- column: e,
55
- title: Y.columnDueDate,
56
- labels: Y.sortableHeader
57
- })
58
- },
59
- {
60
- accessorKey: "status",
61
- enableSorting: !1,
62
- header: Y.columnStatus,
63
- cell: ({ row: e }) => /* @__PURE__ */ h(d, {
64
- status: e.original.status,
65
- tone: e.original.statusTone,
66
- labels: Y.statusBadge
67
- })
68
- },
69
- {
70
- accessorKey: "amountDueLabel",
71
- enableSorting: !1,
72
- header: () => /* @__PURE__ */ h("div", {
73
- className: "ttw:text-right",
74
- children: Y.columnAmountDue
75
- }),
76
- cell: ({ row: e }) => /* @__PURE__ */ h("div", {
77
- className: "ttw:text-right",
78
- children: e.original.amountDueLabel
79
- })
80
- },
81
- {
82
- accessorKey: "addedOnLabel",
83
- enableSorting: !0,
84
- header: ({ column: e }) => /* @__PURE__ */ h(n, {
85
- column: e,
86
- title: Y.columnAddedOn,
87
- labels: Y.sortableHeader
88
- })
89
- },
90
- {
91
- id: "actions",
92
- enableSorting: !1,
93
- header: () => /* @__PURE__ */ h("span", {
94
- className: "ttw:sr-only",
95
- children: Y.columnActions
96
- }),
97
- cell: ({ row: t }) => /* @__PURE__ */ h("div", {
98
- className: "ttw:flex ttw:justify-end",
99
- children: /* @__PURE__ */ h(e, {
100
- variant: "ghost",
101
- size: "icon",
102
- "aria-label": Y.openRow(t.original.vendorLabel),
103
- onClick: (e) => {
104
- e.stopPropagation(), t.original.onOpen();
105
- },
106
- children: /* @__PURE__ */ h(_, { className: "ttw:size-4" })
107
- })
108
- })
109
- }
110
- ], [Y]), Z = !!(B && H) && !S && !C && !z && x.length === 0, Q = /* @__PURE__ */ h("div", {
111
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
112
- children: /* @__PURE__ */ g("div", {
113
- className: "ttw:relative ttw:w-80",
114
- children: [/* @__PURE__ */ h(y, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ h(r, {
115
- className: "ttw:pl-9",
116
- type: "search",
117
- "aria-label": Y.searchLabel,
118
- placeholder: Y.searchPlaceholder,
119
- value: L,
120
- onChange: (e) => R(e.target.value)
9
+ function s({ labels: s, tabs: c, selectedTabId: l, onTabChange: u }) {
10
+ let d = {
11
+ ...i,
12
+ ...s
13
+ };
14
+ return /* @__PURE__ */ o("section", {
15
+ className: "ttw:w-full ttw:space-y-5",
16
+ children: [/* @__PURE__ */ o("div", {
17
+ className: "ttw:min-w-0",
18
+ children: [/* @__PURE__ */ a("h2", {
19
+ className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
20
+ children: d.title
21
+ }), /* @__PURE__ */ a("p", {
22
+ className: "ttw:mt-1 ttw:text-sm ttw:text-muted-foreground",
23
+ children: d.description
121
24
  })]
122
- })
123
- });
124
- return /* @__PURE__ */ g(i, {
125
- value: F,
126
- onValueChange: I,
127
- className: "ttw:flex ttw:flex-col ttw:gap-4",
128
- children: [/* @__PURE__ */ g("div", {
129
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
130
- children: [/* @__PURE__ */ h(o, {
131
- "aria-label": Y.filterTabsLabel,
132
- children: P.map((e) => /* @__PURE__ */ g(s, {
25
+ }), /* @__PURE__ */ o(e, {
26
+ value: l,
27
+ onValueChange: u,
28
+ className: "ttw:w-full",
29
+ children: [/* @__PURE__ */ a(n, {
30
+ variant: "line",
31
+ children: c.map((e) => /* @__PURE__ */ a(r, {
133
32
  value: e.id,
134
- className: "ttw:min-w-28",
135
- children: [e.icon, e.label]
33
+ children: e.label
136
34
  }, e.id))
137
- }), B && !Z ? /* @__PURE__ */ g(e, {
138
- onClick: B,
139
- children: [/* @__PURE__ */ h(v, { className: "ttw:size-4" }), Y.createButton]
140
- }) : null]
141
- }), (() => {
142
- let e = C ? /* @__PURE__ */ h(l, {
143
- title: Y.errorTitle,
144
- description: Y.errorDescription,
145
- retryLabel: V ? Y.errorRetry : void 0,
146
- onRetry: V
147
- }) : Z && B && H ? /* @__PURE__ */ h("div", {
148
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
149
- children: K && q ? /* @__PURE__ */ h(u, {
150
- emailAddress: K,
151
- onCopyEmail: q,
152
- onFilesSelected: H,
153
- accept: p,
154
- uploadStatus: W,
155
- uploadErrorMessage: G,
156
- onEnterManually: U ?? B,
157
- labels: Y.addBill
158
- }) : /* @__PURE__ */ h(u, {
159
- onFilesSelected: H,
160
- accept: p,
161
- uploadStatus: W,
162
- uploadErrorMessage: G,
163
- onEnterManually: U ?? B,
164
- labels: Y.addBill
165
- })
166
- }) : /* @__PURE__ */ h(t, {
167
- columns: X,
168
- data: x,
169
- isLoading: S,
170
- sorting: w,
171
- onSortingChange: T,
172
- pageSize: E,
173
- onPageSizeChange: D,
174
- pageSizeOptions: O,
175
- pageInfo: k,
176
- hasNextPage: A,
177
- hasPrevPage: j,
178
- onNextPage: M,
179
- onPrevPage: N,
180
- onRowClick: (e) => e.onOpen(),
181
- filterComponent: Q,
182
- children: z ? /* @__PURE__ */ h(c, {
183
- title: Y.filteredEmptyTitle,
184
- description: Y.filteredEmptyDescription
185
- }) : void 0
186
- });
187
- return P.map((t) => /* @__PURE__ */ h(a, {
188
- value: t.id,
189
- children: t.id === F ? e : null
190
- }, t.id));
191
- })()]
35
+ }), c.map((e) => /* @__PURE__ */ a(t, {
36
+ value: e.id,
37
+ className: "ttw:mt-6",
38
+ children: e.content
39
+ }, e.id))]
40
+ })]
192
41
  });
193
42
  }
194
43
  //#endregion
195
- export { x as BillsScreen, x as default };
44
+ export { s as BillPayWidgetUi };
@@ -1,10 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js
2
- var e = {
3
- collapse: "Collapse upload status",
4
- expand: "Expand upload status",
5
- close: "Close upload status",
6
- statusLabel: (e) => e === "uploading" ? "Uploading" : e === "ready" ? "Ready" : "Failed",
7
- openItem: (e) => `Open ${e}`
8
- };
9
- //#endregion
10
- export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
1
+ import "./index37.js";
2
+ import "./index38.js";
@@ -1,8 +1,58 @@
1
+ import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
3
+ import "./index8.js";
4
+ import { BILL_STATUS_BADGE_LABELS_EN as n } from "./index13.js";
5
+ import "./index15.js";
1
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js
2
- var e = {
3
- uploading: "ttw:text-muted-foreground",
4
- ready: "ttw:text-emerald-600",
5
- failed: "ttw:text-destructive"
7
+ var r = {
8
+ loadingTitle: "Loading bill…",
9
+ hiddenDescription: "Bill details",
10
+ errorTitle: "Couldn't load this bill",
11
+ errorDescription: "Something went wrong. Try again.",
12
+ amountDueHeading: "Amount due",
13
+ invoiceDateLabel: "Invoice date",
14
+ dueDateLabel: "Due date",
15
+ payToHeading: "Pay to",
16
+ invoiceDetailsHeading: "Invoice details",
17
+ lineItemsHeading: "Line items",
18
+ lineItemsQuantityHeading: "Qty/Price",
19
+ lineItemsAmountHeading: "Amount",
20
+ payButton: "Pay",
21
+ markAsPaidButton: "Mark as paid",
22
+ rejectButton: "Reject",
23
+ expandButton: "Open full screen",
24
+ closeButton: "Close",
25
+ statusBadge: n
26
+ }, i = ".pdf,.png,.jpg,.jpeg,.doc,.docx", a = {
27
+ ...t,
28
+ dropzone: {
29
+ ...t.dropzone,
30
+ fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
31
+ }
32
+ }, o = {
33
+ createButton: "Add bill",
34
+ columnVendor: "Vendor",
35
+ columnDueDate: "Due date",
36
+ columnAmountDue: "Amount due",
37
+ columnStatus: "Status",
38
+ columnAddedOn: "Added on",
39
+ columnActions: "Actions",
40
+ openRow: (e) => `View bill — ${e}`,
41
+ searchPlaceholder: "Search by vendor name",
42
+ searchLabel: "Search bills by vendor name",
43
+ filterTabsLabel: "Filter bills by status",
44
+ filteredEmptyTitle: "No bills match",
45
+ filteredEmptyDescription: "Try a different search or status filter.",
46
+ errorTitle: "Couldn't load bills",
47
+ errorDescription: "Something went wrong. Try again.",
48
+ errorRetry: "Retry",
49
+ statusBadge: n,
50
+ addBill: a,
51
+ sortableHeader: {
52
+ sortedAscending: e.sortedAscending,
53
+ sortedDescending: e.sortedDescending,
54
+ notSorted: e.notSorted
55
+ }
6
56
  };
7
57
  //#endregion
8
- export { e as UPLOAD_ITEM_ICON_TONE };
58
+ export { o as BILLS_SCREEN_LABELS_EN, i as BILLS_SCREEN_UPLOAD_ACCEPT, r as BILL_DETAILS_SHEET_LABELS_EN };