@tesouro/embedded-components-react 0.2.327 → 0.2.328

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
@@ -1,30 +1,253 @@
1
- import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index51.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { Info as r, X as i } from "lucide-react";
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 { ApprovalPolicyCard as d } from "./index13.js";
3
+ import "./index14.js";
4
+ import { BillOverflowMenu as f } from "./index16.js";
5
+ import "./index17.js";
6
+ import { BillStatusBadge as p } from "./index19.js";
7
+ import "./index20.js";
8
+ import { BillActionButtons as m, NO_BILL_ACTIONS as h, hasBillActions as g } from "./index15.js";
9
+ import { BILL_DETAILS_SHEET_LABELS_EN as _ } from "./index51.js";
10
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
11
+ import { ChevronDownIcon as x, MoveDiagonal2Icon as S, XIcon as C } from "lucide-react";
4
12
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js
5
- function a({ onDismiss: a, testId: o, labels: s }) {
6
- let c = {
7
- ...e,
8
- ...s
13
+ function w({ items: e }) {
14
+ return /* @__PURE__ */ y("dl", {
15
+ className: "ttw:flex ttw:flex-col",
16
+ children: e.map((e) => /* @__PURE__ */ b("div", {
17
+ 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",
18
+ children: [/* @__PURE__ */ y("dt", {
19
+ className: "ttw:text-sm ttw:text-muted-foreground",
20
+ children: e.label
21
+ }), /* @__PURE__ */ b("dd", {
22
+ className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
23
+ children: [/* @__PURE__ */ y("span", {
24
+ className: "ttw:text-sm ttw:font-medium",
25
+ children: e.value
26
+ }), e.secondaryValue ? /* @__PURE__ */ y("span", {
27
+ className: "ttw:text-sm ttw:text-muted-foreground",
28
+ children: e.secondaryValue
29
+ }) : null]
30
+ })]
31
+ }, e.label))
32
+ });
33
+ }
34
+ function T({ heading: e, children: i }) {
35
+ return /* @__PURE__ */ b(t, {
36
+ defaultOpen: !0,
37
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
38
+ children: [/* @__PURE__ */ b(r, {
39
+ 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",
40
+ children: [/* @__PURE__ */ y(u, {
41
+ variant: "body1",
42
+ className: "ttw:font-semibold",
43
+ children: e
44
+ }), /* @__PURE__ */ y(x, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
45
+ }), /* @__PURE__ */ y(n, { children: i })]
46
+ });
47
+ }
48
+ function E({ open: t, onOpenChange: n, details: r, actions: u = h, approvalPolicy: x, isLoading: E, isError: D, notice: O, onClose: k, onExpand: A, testId: j, labels: M }) {
49
+ let N = {
50
+ ..._,
51
+ ...M,
52
+ statusBadge: {
53
+ ..._.statusBadge,
54
+ ...M?.statusBadge
55
+ },
56
+ approvalPolicy: {
57
+ ..._.approvalPolicy,
58
+ ...M?.approvalPolicy
59
+ }
9
60
  };
10
- return /* @__PURE__ */ n("div", {
11
- className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:border-primary/30 ttw:bg-primary/5 ttw:px-3 ttw:py-2.5",
12
- "data-testid": o,
13
- children: [
14
- /* @__PURE__ */ t(r, { className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-primary" }),
15
- /* @__PURE__ */ t("p", {
16
- className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
17
- children: c.message
18
- }),
19
- /* @__PURE__ */ t("button", {
20
- type: "button",
21
- onClick: a,
22
- "aria-label": c.dismiss,
23
- className: "ttw:shrink-0 ttw:text-muted-foreground ttw:hover:text-foreground",
24
- children: /* @__PURE__ */ t(i, { className: "ttw:size-4" })
25
- })
26
- ]
61
+ return /* @__PURE__ */ y(i, {
62
+ open: t,
63
+ onOpenChange: (e) => e ? n(e) : k(),
64
+ children: /* @__PURE__ */ b(a, {
65
+ showCloseButton: !1,
66
+ className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
67
+ "data-testid": j,
68
+ children: [/* @__PURE__ */ b(s, {
69
+ className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
70
+ children: [/* @__PURE__ */ b("div", {
71
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
72
+ children: [
73
+ /* @__PURE__ */ y(c, {
74
+ className: E ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
75
+ children: D ? N.errorTitle : E ? N.loadingTitle : r?.title
76
+ }),
77
+ E ? /* @__PURE__ */ b("div", {
78
+ "aria-hidden": !0,
79
+ className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
80
+ children: [/* @__PURE__ */ y(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-28" })]
81
+ }) : null,
82
+ r && !E && !D ? /* @__PURE__ */ y("p", {
83
+ className: "ttw:text-sm ttw:text-muted-foreground",
84
+ children: r.subtitle
85
+ }) : null,
86
+ /* @__PURE__ */ y(o, {
87
+ className: "ttw:sr-only",
88
+ children: N.hiddenDescription
89
+ })
90
+ ]
91
+ }), /* @__PURE__ */ b("div", {
92
+ className: "ttw:flex ttw:items-center ttw:gap-1",
93
+ children: [A ? /* @__PURE__ */ y(e, {
94
+ type: "button",
95
+ variant: "ghost",
96
+ size: "icon",
97
+ "aria-label": N.expandButton,
98
+ onClick: A,
99
+ children: /* @__PURE__ */ y(S, { className: "ttw:size-4" })
100
+ }) : null, /* @__PURE__ */ y(e, {
101
+ type: "button",
102
+ variant: "ghost",
103
+ size: "icon",
104
+ "aria-label": N.closeButton,
105
+ onClick: k,
106
+ children: /* @__PURE__ */ y(C, { className: "ttw:size-4" })
107
+ })]
108
+ })]
109
+ }), /* @__PURE__ */ y("div", {
110
+ className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
111
+ children: D ? /* @__PURE__ */ y("p", {
112
+ className: "ttw:text-sm ttw:text-muted-foreground",
113
+ children: N.errorDescription
114
+ }) : E ? /* @__PURE__ */ b("div", {
115
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
116
+ children: [/* @__PURE__ */ y(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ b("div", {
117
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
118
+ children: [
119
+ /* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-40" }),
120
+ /* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" }),
121
+ /* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" })
122
+ ]
123
+ })]
124
+ }) : r ? /* @__PURE__ */ b(v, { children: [
125
+ O,
126
+ /* @__PURE__ */ b("section", {
127
+ className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
128
+ children: [
129
+ /* @__PURE__ */ b("div", {
130
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
131
+ children: [
132
+ /* @__PURE__ */ y("span", {
133
+ className: "ttw:text-sm ttw:text-muted-foreground",
134
+ children: N.amountDueHeading
135
+ }),
136
+ /* @__PURE__ */ y("span", {
137
+ className: "ttw:text-3xl ttw:font-semibold",
138
+ children: r.amountDueLabel
139
+ }),
140
+ /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(p, {
141
+ status: r.status,
142
+ tone: r.statusTone,
143
+ labels: N.statusBadge
144
+ }) })
145
+ ]
146
+ }),
147
+ /* @__PURE__ */ b("div", {
148
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
149
+ children: [/* @__PURE__ */ b("div", {
150
+ className: "ttw:flex ttw:flex-col",
151
+ children: [/* @__PURE__ */ y("span", {
152
+ className: "ttw:text-xs ttw:text-muted-foreground",
153
+ children: N.invoiceDateLabel
154
+ }), /* @__PURE__ */ y("span", {
155
+ className: "ttw:text-sm ttw:font-medium",
156
+ children: r.invoiceDateLabel
157
+ })]
158
+ }), /* @__PURE__ */ b("div", {
159
+ className: "ttw:flex ttw:flex-col",
160
+ children: [/* @__PURE__ */ y("span", {
161
+ className: "ttw:text-xs ttw:text-muted-foreground",
162
+ children: N.dueDateLabel
163
+ }), /* @__PURE__ */ y("span", {
164
+ className: "ttw:text-sm ttw:font-medium",
165
+ children: r.dueDateLabel
166
+ })]
167
+ })]
168
+ }),
169
+ g(u) ? /* @__PURE__ */ b("div", {
170
+ className: "ttw:flex ttw:items-center ttw:gap-2",
171
+ children: [/* @__PURE__ */ y(m, { actions: u.row }), /* @__PURE__ */ y(f, {
172
+ actions: u.menu,
173
+ triggerLabel: N.overflowMenuTrigger
174
+ })]
175
+ }) : null
176
+ ]
177
+ }),
178
+ /* @__PURE__ */ y(T, {
179
+ heading: N.payToHeading,
180
+ children: /* @__PURE__ */ y(w, { items: r.payToItems })
181
+ }),
182
+ /* @__PURE__ */ y(T, {
183
+ heading: N.invoiceDetailsHeading,
184
+ children: /* @__PURE__ */ b("div", {
185
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
186
+ children: [
187
+ /* @__PURE__ */ y(w, { items: r.invoiceItems }),
188
+ r.lineItems.length ? /* @__PURE__ */ b("table", {
189
+ className: "ttw:w-full ttw:text-sm",
190
+ children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", {
191
+ className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
192
+ children: [
193
+ /* @__PURE__ */ y("th", {
194
+ className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
195
+ children: N.lineItemsHeading
196
+ }),
197
+ /* @__PURE__ */ y("th", {
198
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
199
+ children: N.lineItemsQuantityHeading
200
+ }),
201
+ /* @__PURE__ */ y("th", {
202
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
203
+ children: N.lineItemsAmountHeading
204
+ })
205
+ ]
206
+ }) }), /* @__PURE__ */ y("tbody", { children: r.lineItems.map((e) => /* @__PURE__ */ b("tr", {
207
+ className: "ttw:border-b ttw:border-border",
208
+ children: [
209
+ /* @__PURE__ */ b("td", {
210
+ className: "ttw:px-3 ttw:py-2",
211
+ children: [/* @__PURE__ */ y("span", {
212
+ className: "ttw:block",
213
+ children: e.description
214
+ }), /* @__PURE__ */ y("span", {
215
+ className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
216
+ children: e.glCodeLabel
217
+ })]
218
+ }),
219
+ /* @__PURE__ */ y("td", {
220
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
221
+ children: e.quantityLabel
222
+ }),
223
+ /* @__PURE__ */ y("td", {
224
+ className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
225
+ children: e.amountLabel
226
+ })
227
+ ]
228
+ }, e.id)) })]
229
+ }) : null,
230
+ /* @__PURE__ */ y("dl", {
231
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
232
+ children: r.totals.map((e) => /* @__PURE__ */ b("div", {
233
+ 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",
234
+ children: [/* @__PURE__ */ y("dt", {
235
+ className: e.emphasis ? "" : "ttw:text-muted-foreground",
236
+ children: e.label
237
+ }), /* @__PURE__ */ y("dd", { children: e.value })]
238
+ }, e.label))
239
+ })
240
+ ]
241
+ })
242
+ }),
243
+ x ? /* @__PURE__ */ y(d, {
244
+ view: x,
245
+ labels: N.approvalPolicy
246
+ }) : null
247
+ ] }) : null
248
+ })]
249
+ })
27
250
  });
28
251
  }
29
252
  //#endregion
30
- export { a as ExtractionNotice, a as default };
253
+ export { E as BillDetailsSheet, E as default };
@@ -1,2 +1,204 @@
1
- import "./index51.js";
2
- import "./index52.js";
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 "./index19.js";
8
+ import "./index20.js";
9
+ import { MissingValue as f } from "./index49.js";
10
+ import "./index50.js";
11
+ import { BILLS_SCREEN_LABELS_EN as p, BILLS_SCREEN_UPLOAD_ACCEPT as m } from "./index51.js";
12
+ import { useMemo as h } from "react";
13
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
14
+ import { ChevronRightIcon as v, PlusIcon as y, SearchIcon as b } from "lucide-react";
15
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js
16
+ var x = [
17
+ 10,
18
+ 25,
19
+ 50,
20
+ 100
21
+ ];
22
+ function S({ rows: S, isLoading: C, isError: w, sorting: T, onSortingChange: E, pageSize: D, onPageSizeChange: O, pageSizeOptions: k = x, pageInfo: A, hasNextPage: j, hasPrevPage: M, onNextPage: N, onPrevPage: P, filterTabs: F, selectedFilterTabId: I, onFilterTabChange: L, searchValue: R, onSearchChange: z, isFiltering: B, onCreateClick: V, onRetry: H, onFilesSelected: U, onEnterManually: W, uploadStatus: G, uploadErrorMessage: K, emailAddress: q, onCopyEmail: J, labels: Y }) {
23
+ let X = h(() => ({
24
+ ...p,
25
+ ...Y,
26
+ statusBadge: {
27
+ ...p.statusBadge,
28
+ ...Y?.statusBadge
29
+ },
30
+ addBill: {
31
+ ...p.addBill,
32
+ ...Y?.addBill,
33
+ dropzone: {
34
+ ...p.addBill.dropzone,
35
+ ...Y?.addBill?.dropzone
36
+ }
37
+ },
38
+ sortableHeader: {
39
+ ...p.sortableHeader,
40
+ ...Y?.sortableHeader
41
+ },
42
+ missingValue: {
43
+ ...p.missingValue,
44
+ ...Y?.missingValue
45
+ }
46
+ }), [Y]), Z = h(() => [
47
+ {
48
+ accessorKey: "vendorLabel",
49
+ enableSorting: !0,
50
+ header: ({ column: e }) => /* @__PURE__ */ g(n, {
51
+ column: e,
52
+ title: X.columnVendor,
53
+ labels: X.sortableHeader
54
+ }),
55
+ cell: ({ row: e }) => e.original.vendorLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
56
+ },
57
+ {
58
+ accessorKey: "dueDateLabel",
59
+ enableSorting: !0,
60
+ header: ({ column: e }) => /* @__PURE__ */ g(n, {
61
+ column: e,
62
+ title: X.columnDueDate,
63
+ labels: X.sortableHeader
64
+ }),
65
+ cell: ({ row: e }) => e.original.dueDateLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
66
+ },
67
+ {
68
+ accessorKey: "status",
69
+ enableSorting: !1,
70
+ header: X.columnStatus,
71
+ cell: ({ row: e }) => /* @__PURE__ */ g(d, {
72
+ status: e.original.status,
73
+ tone: e.original.statusTone,
74
+ labels: X.statusBadge
75
+ })
76
+ },
77
+ {
78
+ accessorKey: "amountDueLabel",
79
+ enableSorting: !1,
80
+ header: () => /* @__PURE__ */ g("div", {
81
+ className: "ttw:text-right",
82
+ children: X.columnAmountDue
83
+ }),
84
+ cell: ({ row: e }) => /* @__PURE__ */ g("div", {
85
+ className: "ttw:text-right",
86
+ children: e.original.amountDueLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
87
+ })
88
+ },
89
+ {
90
+ accessorKey: "addedOnLabel",
91
+ enableSorting: !0,
92
+ header: ({ column: e }) => /* @__PURE__ */ g(n, {
93
+ column: e,
94
+ title: X.columnAddedOn,
95
+ labels: X.sortableHeader
96
+ }),
97
+ cell: ({ row: e }) => e.original.addedOnLabel || /* @__PURE__ */ g(f, { labels: X.missingValue })
98
+ },
99
+ {
100
+ id: "actions",
101
+ enableSorting: !1,
102
+ header: () => /* @__PURE__ */ g("span", {
103
+ className: "ttw:sr-only",
104
+ children: X.columnActions
105
+ }),
106
+ cell: ({ row: t }) => /* @__PURE__ */ g("div", {
107
+ className: "ttw:flex ttw:justify-end",
108
+ children: /* @__PURE__ */ g(e, {
109
+ variant: "ghost",
110
+ size: "icon",
111
+ "aria-label": X.openRow(t.original.vendorLabel || X.missingValue.missing),
112
+ onClick: (e) => {
113
+ e.stopPropagation(), t.original.onOpen();
114
+ },
115
+ children: /* @__PURE__ */ g(v, { className: "ttw:size-4" })
116
+ })
117
+ })
118
+ }
119
+ ], [X]), Q = !!(V && U) && !C && !w && !B && S.length === 0, $ = /* @__PURE__ */ g("div", {
120
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
121
+ children: /* @__PURE__ */ _("div", {
122
+ className: "ttw:relative ttw:w-80",
123
+ children: [/* @__PURE__ */ g(b, { 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__ */ g(r, {
124
+ className: "ttw:pl-9",
125
+ type: "search",
126
+ "aria-label": X.searchLabel,
127
+ placeholder: X.searchPlaceholder,
128
+ value: R,
129
+ onChange: (e) => z(e.target.value)
130
+ })]
131
+ })
132
+ });
133
+ return /* @__PURE__ */ _(i, {
134
+ value: I,
135
+ onValueChange: L,
136
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
137
+ children: [/* @__PURE__ */ _("div", {
138
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
139
+ children: [/* @__PURE__ */ g(o, {
140
+ "aria-label": X.filterTabsLabel,
141
+ children: F.map((e) => /* @__PURE__ */ _(s, {
142
+ value: e.id,
143
+ className: "ttw:min-w-28",
144
+ children: [e.icon, e.label]
145
+ }, e.id))
146
+ }), V && !Q ? /* @__PURE__ */ _(e, {
147
+ onClick: V,
148
+ children: [/* @__PURE__ */ g(y, { className: "ttw:size-4" }), X.createButton]
149
+ }) : null]
150
+ }), (() => {
151
+ let e = w ? /* @__PURE__ */ g(l, {
152
+ title: X.errorTitle,
153
+ description: X.errorDescription,
154
+ retryLabel: H ? X.errorRetry : void 0,
155
+ onRetry: H
156
+ }) : Q && V && U ? /* @__PURE__ */ g("div", {
157
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
158
+ children: q && J ? /* @__PURE__ */ g(u, {
159
+ emailAddress: q,
160
+ onCopyEmail: J,
161
+ onFilesSelected: U,
162
+ accept: m,
163
+ uploadStatus: G,
164
+ uploadErrorMessage: K,
165
+ onEnterManually: W ?? V,
166
+ labels: X.addBill
167
+ }) : /* @__PURE__ */ g(u, {
168
+ onFilesSelected: U,
169
+ accept: m,
170
+ uploadStatus: G,
171
+ uploadErrorMessage: K,
172
+ onEnterManually: W ?? V,
173
+ labels: X.addBill
174
+ })
175
+ }) : /* @__PURE__ */ g(t, {
176
+ columns: Z,
177
+ data: S,
178
+ isLoading: C,
179
+ sorting: T,
180
+ onSortingChange: E,
181
+ pageSize: D,
182
+ onPageSizeChange: O,
183
+ pageSizeOptions: k,
184
+ pageInfo: A,
185
+ hasNextPage: j,
186
+ hasPrevPage: M,
187
+ onNextPage: N,
188
+ onPrevPage: P,
189
+ onRowClick: (e) => e.onOpen(),
190
+ filterComponent: $,
191
+ children: B ? /* @__PURE__ */ g(c, {
192
+ title: X.filteredEmptyTitle,
193
+ description: X.filteredEmptyDescription
194
+ }) : void 0
195
+ });
196
+ return F.map((t) => /* @__PURE__ */ g(a, {
197
+ value: t.id,
198
+ children: t.id === I ? e : null
199
+ }, t.id));
200
+ })()]
201
+ });
202
+ }
203
+ //#endregion
204
+ export { S as BillsScreen, S as default };
@@ -1,7 +1,10 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js
2
2
  var e = {
3
- revealValue: "Show value",
4
- hideValue: "Hide value"
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}`
5
8
  };
6
9
  //#endregion
7
- export { e as REVEALABLE_FIELD_LABELS_EN };
10
+ export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
@@ -1,34 +1,8 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { REVEALABLE_FIELD_LABELS_EN as t } from "./index54.js";
3
- import { useState as n } from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { Eye as a, EyeOff as o } from "lucide-react";
6
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js
7
- function s({ field: s, labels: c }) {
8
- let l = {
9
- ...t,
10
- ...c
11
- }, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
12
- return /* @__PURE__ */ i("div", {
13
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
14
- children: [/* @__PURE__ */ i("div", {
15
- className: "ttw:min-w-0",
16
- children: [/* @__PURE__ */ r("dt", {
17
- className: "ttw:text-xs ttw:text-muted-foreground",
18
- children: s.label
19
- }), /* @__PURE__ */ r("dd", {
20
- className: "ttw:break-words ttw:text-sm ttw:font-medium",
21
- children: f
22
- })]
23
- }), s.maskedValue ? /* @__PURE__ */ r(e, {
24
- type: "button",
25
- variant: "ghost",
26
- size: "icon",
27
- "aria-label": u ? l.hideValue : l.revealValue,
28
- onClick: () => d((e) => !e),
29
- children: r(u ? o : a, { className: "ttw:size-4" })
30
- }) : null]
31
- });
32
- }
2
+ var e = {
3
+ uploading: "ttw:text-muted-foreground",
4
+ ready: "ttw:text-emerald-600",
5
+ failed: "ttw:text-destructive"
6
+ };
33
7
  //#endregion
34
- export { s as RevealableField, s as default };
8
+ export { e as UPLOAD_ITEM_ICON_TONE };
@@ -1,2 +1,93 @@
1
- import "./index54.js";
2
- import "./index55.js";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index54.js";
3
+ import { UPLOAD_ITEM_ICON_TONE as n } from "./index55.js";
4
+ import { useId as r } from "react";
5
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, Loader2 as d, X as f, XCircle as p } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js
8
+ function m({ status: t }) {
9
+ let r = e("ttw:size-4", n[t]);
10
+ return t === "uploading" ? /* @__PURE__ */ a(d, {
11
+ "aria-hidden": !0,
12
+ className: e(r, "ttw:animate-spin")
13
+ }) : a(t === "ready" ? s : p, {
14
+ "aria-hidden": !0,
15
+ className: r
16
+ });
17
+ }
18
+ function h({ item: t, labels: n }) {
19
+ let s = r(), c = /* @__PURE__ */ o(i, { children: [
20
+ /* @__PURE__ */ a(m, { status: t.status }),
21
+ /* @__PURE__ */ a("span", {
22
+ id: s,
23
+ className: "ttw:sr-only",
24
+ children: n.statusLabel(t.status)
25
+ }),
26
+ /* @__PURE__ */ a("span", {
27
+ className: "ttw:flex-1 ttw:truncate ttw:text-left ttw:text-sm ttw:text-foreground",
28
+ children: t.fileName
29
+ }),
30
+ t.onOpen ? /* @__PURE__ */ a(l, {
31
+ "aria-hidden": !0,
32
+ className: "ttw:size-4"
33
+ }) : null
34
+ ] }), u = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
35
+ return t.onOpen ? /* @__PURE__ */ a("button", {
36
+ type: "button",
37
+ onClick: t.onOpen,
38
+ "aria-describedby": s,
39
+ "aria-label": n.openItem(t.fileName),
40
+ className: e(u, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
41
+ children: c
42
+ }) : /* @__PURE__ */ a("div", {
43
+ "aria-describedby": s,
44
+ className: u,
45
+ children: c
46
+ });
47
+ }
48
+ function g({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
49
+ let p = {
50
+ ...t,
51
+ ...d
52
+ };
53
+ return /* @__PURE__ */ o("div", {
54
+ className: "ttw:fixed ttw:right-4 ttw:bottom-4 ttw:z-50 ttw:w-96 ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
55
+ "data-testid": l,
56
+ children: [/* @__PURE__ */ o("div", {
57
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:bg-muted/40 ttw:px-4 ttw:py-3",
58
+ children: [
59
+ /* @__PURE__ */ a("span", {
60
+ "aria-live": "polite",
61
+ className: "ttw:flex-1 ttw:text-base ttw:font-semibold ttw:text-foreground",
62
+ children: n
63
+ }),
64
+ /* @__PURE__ */ a("button", {
65
+ type: "button",
66
+ onClick: i,
67
+ "aria-label": r ? p.expand : p.collapse,
68
+ "aria-expanded": !r,
69
+ className: "ttw:text-muted-foreground ttw:hover:text-foreground",
70
+ children: a(r ? u : c, { className: "ttw:size-4" })
71
+ }),
72
+ /* @__PURE__ */ a("button", {
73
+ type: "button",
74
+ onClick: s,
75
+ "aria-label": p.close,
76
+ className: "ttw:text-muted-foreground ttw:hover:text-foreground",
77
+ children: /* @__PURE__ */ a(f, { className: "ttw:size-4" })
78
+ })
79
+ ]
80
+ }), r ? null : /* @__PURE__ */ a("div", {
81
+ className: "ttw:max-h-96 ttw:overflow-y-auto",
82
+ children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
83
+ className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
84
+ children: e.caption
85
+ }) : null, e.items.map((e) => /* @__PURE__ */ a(h, {
86
+ item: e,
87
+ labels: p
88
+ }, e.id))] }, e.id))
89
+ })]
90
+ });
91
+ }
92
+ //#endregion
93
+ export { g as BillUploadStatusTray, g as default };