@tesouro/embedded-components-react 0.4.12 → 0.4.14

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 (164) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/lib/monite-sdk.d.ts +204 -468
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +14 -14
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +37 -78
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +98 -7
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +81 -15
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +7 -26
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +16 -61
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +26 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +63 -65
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +2 -6
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +66 -5
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +6 -24
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -32
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +3 -41
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +28 -166
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +40 -44
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +173 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +45 -47
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +1 -7
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +45 -11
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +4 -8
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +13 -14
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +55 -22
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -66
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +7 -19
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +58 -126
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +15 -11
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +134 -4
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +14 -31
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +4 -5
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +39 -87
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +78 -67
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +78 -48
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +24 -57
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +47 -91
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +119 -33
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +33 -168
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +170 -75
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +75 -21
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +23 -210
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +199 -203
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +198 -89
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +105 -13
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +12 -47
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +23 -6
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +47 -31
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +27 -198
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +198 -30
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +30 -234
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +240 -19
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +19 -342
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +364 -4
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +4 -34
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -167
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +186 -3
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +56 -5
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +2 -44
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +46 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +1 -8
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +6 -9
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +9 -92
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +94 -3
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +3 -128
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +125 -8
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -7
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -69
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +8 -46
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +43 -18
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +20 -28
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +27 -82
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +83 -47
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -250
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +239 -101
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +107 -202
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +209 -3
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +4 -8
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -43
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +6 -113
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +115 -1
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +0 -24
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +25 -0
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +64 -89
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +40 -37
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +52 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -5
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +12 -62
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +12 -1
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -12
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -12
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -16
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +30 -2
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -4
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +28 -26
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +6 -5
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +161 -154
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +16 -21
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +47 -337
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +20 -13
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +327 -107
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +13 -9
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +113 -92
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -10
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +95 -55
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +9 -51
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +56 -10
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -160
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +54 -1
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +11 -2
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +178 -37
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +1 -1
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -5
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +37 -88
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +5 -2
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +88 -12
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -84
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +11 -282
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -13
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +87 -0
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +294 -6
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +9 -35
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +0 -1
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +5 -36
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +37 -10
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -201
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -3
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +3 -8
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +187 -333
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +3 -10
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +13 -4
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +335 -81
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -0
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +87 -121
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -89
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +127 -2
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +25 -4
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +85 -26
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +3 -3
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +26 -30
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +4 -9
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +30 -102
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +9 -14
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +85 -104
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +10 -11
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +123 -8
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -170
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +18 -2
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -11
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +158 -96
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +11 -7
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +100 -44
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +1 -1
  161. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  162. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  163. package/package.json +7 -7
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +0 -28
@@ -1,160 +1,2 @@
1
- import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a, DropdownMenu as o, DropdownMenuContent as s, DropdownMenuItem as c, DropdownMenuTrigger as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { InlineErrorAlert as u } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { BillDetailBody as d } from "./index26.js";
5
- import "./index27.js";
6
- import { BillFormFields as f } from "./index29.js";
7
- import "./index30.js";
8
- import { LineItemsSection as p } from "./index32.js";
9
- import "./index33.js";
10
- import { VendorSection as m } from "./index41.js";
11
- import "./index42.js";
12
- import { mergeBillCreateScreenLabels as h } from "./index43.js";
13
- import { useFocusFirstInvalidField as g } from "./index44.js";
14
- import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
15
- import { Minimize2 as b, MoreVertical as x, X as S } from "lucide-react";
16
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js
17
- function C({ open: C, onOpenChange: w, title: T, subtitle: E, notice: D, vendor: O, values: k, errors: A, onChange: j, lineItems: M, documentPanel: N, menuItems: P, readOnly: F, detail: I, isLineItemsLoading: L, isSaving: R, isSavingDraft: z, isFinalizing: B, showFinalize: V = !0, onCancel: H, onCollapse: U, onSaveDraft: W, onFinalize: G, scrollToErrorToken: K, testId: q, labels: J }) {
18
- let Y = h(J), X = !!(F && I), Z = g(K);
19
- return /* @__PURE__ */ v(t, {
20
- open: C,
21
- onOpenChange: w,
22
- children: /* @__PURE__ */ y(n, {
23
- showCloseButton: !1,
24
- className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
25
- "data-testid": q,
26
- children: [
27
- /* @__PURE__ */ y(i, {
28
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
29
- children: [/* @__PURE__ */ y("div", {
30
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
31
- children: [
32
- /* @__PURE__ */ v(a, {
33
- className: "ttw:text-xl ttw:font-semibold",
34
- children: T
35
- }),
36
- E ? /* @__PURE__ */ v("p", {
37
- className: "ttw:text-sm ttw:text-muted-foreground",
38
- children: E
39
- }) : null,
40
- /* @__PURE__ */ v(r, {
41
- className: "ttw:sr-only",
42
- children: Y.hiddenDescription
43
- })
44
- ]
45
- }), /* @__PURE__ */ y("div", {
46
- className: "ttw:flex ttw:items-center ttw:gap-1",
47
- children: [
48
- U ? /* @__PURE__ */ v(e, {
49
- type: "button",
50
- variant: "ghost",
51
- size: "icon",
52
- "aria-label": Y.collapseButton,
53
- disabled: R,
54
- onClick: U,
55
- children: /* @__PURE__ */ v(b, { className: "ttw:size-4" })
56
- }) : null,
57
- P && P.length > 0 ? /* @__PURE__ */ y(o, { children: [/* @__PURE__ */ v(l, {
58
- asChild: !0,
59
- children: /* @__PURE__ */ v(e, {
60
- type: "button",
61
- variant: "ghost",
62
- size: "icon",
63
- "aria-label": Y.menuTrigger,
64
- disabled: R,
65
- children: /* @__PURE__ */ v(x, { className: "ttw:size-4" })
66
- })
67
- }), /* @__PURE__ */ v(s, {
68
- align: "end",
69
- children: P.map((e) => /* @__PURE__ */ v(c, {
70
- variant: e.destructive ? "destructive" : void 0,
71
- disabled: e.disabled,
72
- onSelect: e.onSelect,
73
- children: e.label
74
- }, e.id))
75
- })] }) : null,
76
- /* @__PURE__ */ v(e, {
77
- type: "button",
78
- variant: "ghost",
79
- size: "icon",
80
- "aria-label": Y.closeButton,
81
- disabled: R,
82
- onClick: H,
83
- children: /* @__PURE__ */ v(S, { className: "ttw:size-4" })
84
- })
85
- ]
86
- })]
87
- }),
88
- /* @__PURE__ */ y("div", {
89
- className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
90
- children: [/* @__PURE__ */ y("div", {
91
- ref: Z,
92
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
93
- children: [
94
- A?.form ? /* @__PURE__ */ v("div", {
95
- "data-invalid": "true",
96
- children: /* @__PURE__ */ v(u, { children: A.form })
97
- }) : null,
98
- D ? /* @__PURE__ */ v("div", {
99
- className: "ttw:flex ttw:flex-col ttw:gap-3",
100
- children: D
101
- }) : null,
102
- X ? /* @__PURE__ */ v(d, {
103
- ...I,
104
- labels: Y.detailBody
105
- }) : /* @__PURE__ */ y(_, { children: [
106
- /* @__PURE__ */ v(m, {
107
- ...O,
108
- onEdit: F ? void 0 : O.onEdit,
109
- onClear: F ? void 0 : O.onClear,
110
- disabled: F,
111
- labels: Y.vendorSection
112
- }),
113
- /* @__PURE__ */ v(f, {
114
- values: k,
115
- errors: A,
116
- onChange: j,
117
- disabled: F,
118
- labels: Y.detailsFields
119
- }),
120
- /* @__PURE__ */ v(p, {
121
- ...M,
122
- disabled: M.disabled || L || F,
123
- labels: Y.lineItems
124
- })
125
- ] })
126
- ]
127
- }), /* @__PURE__ */ v("div", {
128
- className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
129
- children: N
130
- })]
131
- }),
132
- X ? null : /* @__PURE__ */ y("div", {
133
- className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
134
- children: [/* @__PURE__ */ v(e, {
135
- type: "button",
136
- variant: "ghost",
137
- disabled: R,
138
- onClick: H,
139
- children: F ? Y.closeButton : Y.cancelButton
140
- }), F ? null : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(e, {
141
- type: "button",
142
- variant: V ? "secondary" : "default",
143
- onClick: W,
144
- loading: z,
145
- disabled: R || B || L || O.mode === "creating",
146
- children: Y.saveDraftButton
147
- }), V ? /* @__PURE__ */ v(e, {
148
- type: "button",
149
- onClick: G,
150
- loading: B,
151
- disabled: R || z || L || O.mode === "creating",
152
- children: Y.finalizeButton
153
- }) : null] })]
154
- })
155
- ]
156
- })
157
- });
158
- }
159
- //#endregion
160
- export { C as BillCreateScreen, C as default };
1
+ import "./index43.js";
2
+ import "./index44.js";
@@ -1,2 +1,55 @@
1
- import "./index43.js";
1
+ import { BILL_DETAIL_BODY_LABELS_EN as e, mergeBillDetailBodyLabels as t } from "./index25.js";
2
+ import "./index27.js";
3
+ import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index28.js";
4
+ import "./index30.js";
5
+ import { LINE_ITEMS_SECTION_LABELS_EN as r } from "./index34.js";
6
+ import "./index36.js";
7
+ import { VENDOR_SECTION_LABELS_EN as i } from "./index43.js";
2
8
  import "./index45.js";
9
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js
10
+ var a = {
11
+ closeButton: "Close",
12
+ collapseButton: "Exit full screen",
13
+ menuTrigger: "More actions",
14
+ cancelButton: "Cancel",
15
+ saveDraftButton: "Save and close",
16
+ finalizeButton: "Finalize",
17
+ hiddenDescription: "Enter the details of the bill you want to pay.",
18
+ vendorSection: i,
19
+ detailsFields: n,
20
+ lineItems: r,
21
+ detailBody: e
22
+ };
23
+ function o(e) {
24
+ return {
25
+ ...a,
26
+ ...e,
27
+ vendorSection: {
28
+ ...a.vendorSection,
29
+ ...e?.vendorSection,
30
+ summaryCard: {
31
+ ...a.vendorSection.summaryCard,
32
+ ...e?.vendorSection?.summaryCard,
33
+ ach: {
34
+ ...a.vendorSection.summaryCard.ach,
35
+ ...e?.vendorSection?.summaryCard?.ach
36
+ }
37
+ },
38
+ search: {
39
+ ...a.vendorSection.search,
40
+ ...e?.vendorSection?.search
41
+ }
42
+ },
43
+ detailsFields: {
44
+ ...a.detailsFields,
45
+ ...e?.detailsFields
46
+ },
47
+ lineItems: {
48
+ ...a.lineItems,
49
+ ...e?.lineItems
50
+ },
51
+ detailBody: t(e?.detailBody)
52
+ };
53
+ }
54
+ //#endregion
55
+ export { a as BILL_CREATE_SCREEN_LABELS_EN, o as mergeBillCreateScreenLabels };
@@ -1,4 +1,13 @@
1
+ import { useEffect as e, useRef as t } from "react";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js
2
- var e = { description: "Review, approve, and pay your bills." };
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;
11
+ }
3
12
  //#endregion
4
- export { e as DEFAULT_LABELS };
13
+ export { n as useFocusFirstInvalidField };
@@ -1,41 +1,182 @@
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 "./index47.js";
7
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a, DropdownMenu as o, DropdownMenuContent as s, DropdownMenuGroup as c, DropdownMenuItem as l, DropdownMenuLabel as u, DropdownMenuSeparator as ee, DropdownMenuTrigger as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { InlineErrorAlert as f } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
3
+ import "../../../shared/ui/dist/index.js";
4
+ import { BillDetailBody as te } from "./index26.js";
5
+ import "./index27.js";
6
+ import { BillFormFields as p } from "./index29.js";
7
+ import "./index30.js";
8
+ import { groupBySectionHeading as m } from "./index31.js";
9
+ import "./index33.js";
10
+ import { LineItemsSection as h } from "./index35.js";
11
+ import "./index36.js";
12
+ import { VendorSection as g } from "./index44.js";
13
+ import "./index45.js";
14
+ import { mergeBillCreateScreenLabels as _ } from "./index46.js";
15
+ import { useFocusFirstInvalidField as v } from "./index47.js";
16
+ import { Fragment as y, useId as b } from "react";
17
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
18
+ import { Minimize2 as w, MoreVertical as ne, X as T } from "lucide-react";
8
19
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js
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__ */ a("div", {
17
- className: "ttw:min-w-0",
18
- children: /* @__PURE__ */ a("p", {
19
- className: "ttw:text-sm ttw:text-muted-foreground",
20
- children: d.description
21
- })
22
- }), /* @__PURE__ */ o(e, {
23
- value: l,
24
- onValueChange: u,
25
- className: "ttw:w-full",
26
- children: [/* @__PURE__ */ a(n, {
27
- variant: "line",
28
- children: c.map((e) => /* @__PURE__ */ a(r, {
29
- value: e.id,
30
- children: e.label
31
- }, e.id))
32
- }), c.map((e) => /* @__PURE__ */ a(t, {
33
- value: e.id,
34
- className: "ttw:mt-6",
35
- children: e.content
36
- }, e.id))]
37
- })]
20
+ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor: j, values: M, errors: N, onChange: P, lineItems: F, documentPanel: I, menuItems: L, readOnly: R, detail: z, isLineItemsLoading: B, isSaving: V, isSavingDraft: H, isFinalizing: U, showFinalize: W = !0, onCancel: G, onCollapse: K, onSaveDraft: q, onFinalize: J, scrollToErrorToken: Y, testId: X, labels: Z }) {
21
+ let re = b(), Q = _(Z), $ = !!(R && z), ie = L ? m(L) : [], ae = v(Y);
22
+ return /* @__PURE__ */ S(t, {
23
+ open: E,
24
+ onOpenChange: D,
25
+ children: /* @__PURE__ */ C(n, {
26
+ showCloseButton: !1,
27
+ className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
28
+ "data-testid": X,
29
+ children: [
30
+ /* @__PURE__ */ C(i, {
31
+ className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
32
+ children: [/* @__PURE__ */ C("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
34
+ children: [
35
+ /* @__PURE__ */ S(a, {
36
+ className: "ttw:text-xl ttw:font-semibold",
37
+ children: O
38
+ }),
39
+ k ? /* @__PURE__ */ S("p", {
40
+ className: "ttw:text-sm ttw:text-muted-foreground",
41
+ children: k
42
+ }) : null,
43
+ /* @__PURE__ */ S(r, {
44
+ className: "ttw:sr-only",
45
+ children: Q.hiddenDescription
46
+ })
47
+ ]
48
+ }), /* @__PURE__ */ C("div", {
49
+ className: "ttw:flex ttw:items-center ttw:gap-1",
50
+ children: [
51
+ K ? /* @__PURE__ */ S(e, {
52
+ type: "button",
53
+ variant: "ghost",
54
+ size: "icon",
55
+ "aria-label": Q.collapseButton,
56
+ disabled: V,
57
+ onClick: K,
58
+ children: /* @__PURE__ */ S(w, { className: "ttw:size-4" })
59
+ }) : null,
60
+ L && L.length > 0 ? /* @__PURE__ */ C(o, { children: [/* @__PURE__ */ S(d, {
61
+ asChild: !0,
62
+ children: /* @__PURE__ */ S(e, {
63
+ type: "button",
64
+ variant: "ghost",
65
+ size: "icon",
66
+ "aria-label": Q.menuTrigger,
67
+ disabled: V,
68
+ children: /* @__PURE__ */ S(ne, { className: "ttw:size-4" })
69
+ })
70
+ }), /* @__PURE__ */ S(s, {
71
+ align: "end",
72
+ children: ie.map((e, t) => {
73
+ let n = e.items.map((e) => {
74
+ let t = e.icon;
75
+ return /* @__PURE__ */ C(l, {
76
+ variant: e.destructive ? "destructive" : void 0,
77
+ disabled: e.disabled,
78
+ onSelect: e.onSelect,
79
+ children: [t ? /* @__PURE__ */ S(t, { className: "ttw:size-4" }) : null, e.label]
80
+ }, e.id);
81
+ });
82
+ if (!e.heading) return /* @__PURE__ */ S(y, { children: n }, e.items[0]?.id);
83
+ let r = `${re}-${t}`;
84
+ return /* @__PURE__ */ C(y, { children: [
85
+ t > 0 ? /* @__PURE__ */ S(ee, {}) : null,
86
+ /* @__PURE__ */ S(u, {
87
+ id: r,
88
+ className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
89
+ children: e.heading
90
+ }),
91
+ /* @__PURE__ */ S(c, {
92
+ "aria-labelledby": r,
93
+ children: n
94
+ })
95
+ ] }, e.items[0]?.id);
96
+ })
97
+ })] }) : null,
98
+ /* @__PURE__ */ S(e, {
99
+ type: "button",
100
+ variant: "ghost",
101
+ size: "icon",
102
+ "aria-label": Q.closeButton,
103
+ disabled: V,
104
+ onClick: G,
105
+ children: /* @__PURE__ */ S(T, { className: "ttw:size-4" })
106
+ })
107
+ ]
108
+ })]
109
+ }),
110
+ /* @__PURE__ */ C("div", {
111
+ className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
112
+ children: [/* @__PURE__ */ C("div", {
113
+ ref: ae,
114
+ className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
115
+ children: [
116
+ N?.form ? /* @__PURE__ */ S("div", {
117
+ "data-invalid": "true",
118
+ children: /* @__PURE__ */ S(f, { children: N.form })
119
+ }) : null,
120
+ A ? /* @__PURE__ */ S("div", {
121
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
122
+ children: A
123
+ }) : null,
124
+ $ ? /* @__PURE__ */ S(te, {
125
+ ...z,
126
+ labels: Q.detailBody
127
+ }) : /* @__PURE__ */ C(x, { children: [
128
+ /* @__PURE__ */ S(g, {
129
+ ...j,
130
+ onEdit: R ? void 0 : j.onEdit,
131
+ onClear: R ? void 0 : j.onClear,
132
+ disabled: R,
133
+ labels: Q.vendorSection
134
+ }),
135
+ /* @__PURE__ */ S(p, {
136
+ values: M,
137
+ errors: N,
138
+ onChange: P,
139
+ disabled: R,
140
+ labels: Q.detailsFields
141
+ }),
142
+ /* @__PURE__ */ S(h, {
143
+ ...F,
144
+ disabled: F.disabled || B || R,
145
+ labels: Q.lineItems
146
+ })
147
+ ] })
148
+ ]
149
+ }), /* @__PURE__ */ S("div", {
150
+ className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
151
+ children: I
152
+ })]
153
+ }),
154
+ $ ? null : /* @__PURE__ */ C("div", {
155
+ className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
156
+ children: [/* @__PURE__ */ S(e, {
157
+ type: "button",
158
+ variant: "ghost",
159
+ disabled: V,
160
+ onClick: G,
161
+ children: R ? Q.closeButton : Q.cancelButton
162
+ }), R ? null : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(e, {
163
+ type: "button",
164
+ variant: W ? "secondary" : "default",
165
+ onClick: q,
166
+ loading: H,
167
+ disabled: V || U || B || j.mode === "creating",
168
+ children: Q.saveDraftButton
169
+ }), W ? /* @__PURE__ */ S(e, {
170
+ type: "button",
171
+ onClick: J,
172
+ loading: U,
173
+ disabled: V || H || B || j.mode === "creating",
174
+ children: Q.finalizeButton
175
+ }) : null] })]
176
+ })
177
+ ]
178
+ })
38
179
  });
39
180
  }
40
181
  //#endregion
41
- export { s as BillPayWidgetUi };
182
+ export { E as BillCreateScreen, E as default };
@@ -1,2 +1,2 @@
1
- import "./index47.js";
1
+ import "./index46.js";
2
2
  import "./index48.js";
@@ -1,7 +1,4 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js
2
- var e = {
3
- cancelButton: "Cancel",
4
- orConnector: "or"
5
- };
2
+ var e = { description: "Review, approve, and pay your bills." };
6
3
  //#endregion
7
- export { e as BILL_DECISION_DIALOG_LABELS_EN };
4
+ export { e as DEFAULT_LABELS };
@@ -1,92 +1,41 @@
1
- import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, Label as s, Textarea as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_DECISION_DIALOG_LABELS_EN as l } from "./index50.js";
3
- import { Fragment as u, useEffect as d, useState as f } from "react";
4
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
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 "./index50.js";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
8
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js
6
- function h({ open: h, copy: g, onConfirm: _, onCancel: v, isPending: y, confirmIcon: b, labels: x, testId: S, confirmTestId: C, reasonTestId: w, reasonFieldId: T = "bill-decision-reason" }) {
7
- let E = {
8
- ...l,
9
- ...x
10
- }, [D, O] = f("");
11
- if (d(() => {
12
- h || O("");
13
- }, [h]), !g) return null;
14
- let { alignment: k = "start", icon: A, tone: j = "default", actionWidth: M = "auto" } = g.presentation ?? {}, N = k === "center", P = M === "equal", F = g.pendingApprovers ?? [];
15
- return /* @__PURE__ */ p(e, {
16
- open: h,
17
- onOpenChange: (e) => {
18
- e || v();
19
- },
20
- children: /* @__PURE__ */ m(t, {
21
- "data-testid": S,
22
- children: [
23
- /* @__PURE__ */ m(i, {
24
- className: N ? "ttw:items-center ttw:sm:text-center" : void 0,
25
- children: [
26
- A ? /* @__PURE__ */ p("span", {
27
- className: j === "destructive" ? "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive" : "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
28
- children: /* @__PURE__ */ p(A, { className: j === "destructive" ? "ttw:size-4 ttw:text-white" : "ttw:size-4 ttw:text-foreground" })
29
- }) : null,
30
- /* @__PURE__ */ p(a, { children: g.title }),
31
- /* @__PURE__ */ p(n, { children: g.description })
32
- ]
33
- }),
34
- F.length > 0 ? /* @__PURE__ */ p("div", {
35
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
36
- children: /* @__PURE__ */ p("ul", {
37
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
38
- children: F.map((e) => /* @__PURE__ */ p("li", {
39
- className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
40
- children: e.names.map((e, t) => /* @__PURE__ */ m(u, { children: [t > 0 ? /* @__PURE__ */ p("span", {
41
- className: "ttw:text-muted-foreground",
42
- children: ` ${E.orConnector} `
43
- }) : null, /* @__PURE__ */ p("span", {
44
- className: "ttw:font-medium",
45
- children: e
46
- })] }, e))
47
- }, e.id))
48
- })
49
- }) : null,
50
- g.reason ? /* @__PURE__ */ m("div", {
51
- className: "ttw:flex ttw:flex-col ttw:gap-2",
52
- children: [/* @__PURE__ */ m(s, {
53
- htmlFor: T,
54
- children: [g.reason.label, /* @__PURE__ */ p("span", {
55
- className: "ttw:ml-1 ttw:text-muted-foreground",
56
- children: g.reason.optionalHint
57
- })]
58
- }), /* @__PURE__ */ p(c, {
59
- id: T,
60
- value: D,
61
- placeholder: g.reason.placeholder,
62
- onChange: (e) => O(e.target.value),
63
- disabled: y,
64
- "data-testid": w
65
- })]
66
- }) : null,
67
- /* @__PURE__ */ m(r, {
68
- className: N ? "ttw:sm:justify-center" : void 0,
69
- children: [/* @__PURE__ */ p(o, {
70
- type: "button",
71
- variant: "outline",
72
- onClick: v,
73
- disabled: y,
74
- className: P ? "ttw:flex-1" : void 0,
75
- children: E.cancelButton
76
- }), /* @__PURE__ */ m(o, {
77
- type: "button",
78
- variant: j === "destructive" ? "destructive" : "default",
79
- loading: y,
80
- disabled: y,
81
- onClick: () => _(g.reason ? D.trim() : void 0),
82
- className: P ? "ttw:flex-1" : void 0,
83
- "data-testid": C,
84
- children: [y ? null : b, g.confirmButton]
85
- })]
86
- })
87
- ]
88
- })
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__ */ a("div", {
17
+ className: "ttw:min-w-0",
18
+ children: /* @__PURE__ */ a("p", {
19
+ className: "ttw:text-sm ttw:text-muted-foreground",
20
+ children: d.description
21
+ })
22
+ }), /* @__PURE__ */ o(e, {
23
+ value: l,
24
+ onValueChange: u,
25
+ className: "ttw:w-full",
26
+ children: [/* @__PURE__ */ a(n, {
27
+ variant: "line",
28
+ children: c.map((e) => /* @__PURE__ */ a(r, {
29
+ value: e.id,
30
+ children: e.label
31
+ }, e.id))
32
+ }), c.map((e) => /* @__PURE__ */ a(t, {
33
+ value: e.id,
34
+ className: "ttw:mt-6",
35
+ children: e.content
36
+ }, e.id))]
37
+ })]
89
38
  });
90
39
  }
91
40
  //#endregion
92
- export { h as BillDecisionDialog, h as default };
41
+ export { s as BillPayWidgetUi };
@@ -1,4 +1,7 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js
2
- var e = { missing: "Missing" };
2
+ var e = {
3
+ cancelButton: "Cancel",
4
+ orConnector: "or"
5
+ };
3
6
  //#endregion
4
- export { e as MISSING_VALUE_LABELS_EN };
7
+ export { e as BILL_DECISION_DIALOG_LABELS_EN };