@tesouro/embedded-components-react 0.4.21 → 0.4.23

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 (185) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +13 -13
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -32
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +136 -16
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -121
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +49 -35
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +113 -171
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +32 -74
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -21
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +70 -226
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -219
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +221 -109
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +220 -13
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +119 -46
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +13 -32
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +43 -198
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +29 -32
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +186 -222
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -19
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +230 -375
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +21 -4
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +424 -32
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -192
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -3
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +219 -2
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -46
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +44 -6
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -12
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -110
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +12 -3
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +109 -124
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -11
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +124 -7
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -45
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -21
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +45 -28
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -83
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +28 -47
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +76 -243
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +48 -113
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -196
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -4
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +207 -5
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +3 -114
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +8 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +106 -16
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -0
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
  175. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
  176. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +1 -1
  177. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
  178. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -0
  179. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  180. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js +11 -0
  181. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  182. package/package.json +33 -1
  183. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
  184. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
  185. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +0 -4
@@ -1,2 +1,259 @@
1
+ import { Badge as e, Button as t, Skeleton as n, Typography as r, cn as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ErrorState as a } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
3
+ import "../../../shared/ui/dist/index.js";
4
+ import { ApprovalPolicyCard as o } from "./index13.js";
5
+ import "./index14.js";
6
+ import { BillRejectionNotice as s } from "./index16.js";
7
+ import { BillStatusBadge as c } from "./index19.js";
8
+ import "./index20.js";
9
+ import { DueDateValue as l } from "./index22.js";
10
+ import "./index23.js";
11
+ import { PaymentHistoryList as u } from "./index24.js";
12
+ import "./index25.js";
13
+ import { VendorSummaryCard as d } from "./index28.js";
1
14
  import "./index29.js";
2
- import "./index30.js";
15
+ import { mergeBillDetailBodyLabels as f } from "./index30.js";
16
+ import { BillActionButtons as p, NO_BILL_ACTIONS as m } from "./index15.js";
17
+ import { useMemo as h } from "react";
18
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
19
+ import { AlertTriangle as v } from "lucide-react";
20
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js
21
+ var y = "ttw:text-base ttw:font-semibold", b = "ttw:px-3 ttw:py-2", x = "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
22
+ function S({ view: S, actions: C = m, scheduledSummary: w, showApprovalOverrideNotice: T, paymentInstructionsForm: E, hideMissingPaymentInstructions: D, onEditPaymentInstructions: O, paymentHistoryError: k, paymentHistoryLoading: A, isLoading: j, isError: M, labels: N }) {
23
+ let P = h(() => f(N), [N]), F = h(() => ({
24
+ ...P.payToCard,
25
+ payToHeading: S?.paidOnLabel ? P.payToHeadingPaid : P.payToHeading
26
+ }), [P, S?.paidOnLabel]);
27
+ if (M) return /* @__PURE__ */ g(a, {
28
+ title: P.errorTitle,
29
+ description: P.errorDescription
30
+ });
31
+ if (j || !S) return /* @__PURE__ */ _("div", {
32
+ "aria-hidden": !0,
33
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
34
+ children: [
35
+ /* @__PURE__ */ g(n, { className: "ttw:h-40 ttw:w-full" }),
36
+ /* @__PURE__ */ g(n, { className: "ttw:h-32 ttw:w-full" }),
37
+ /* @__PURE__ */ g(n, { className: "ttw:h-24 ttw:w-full" })
38
+ ]
39
+ });
40
+ let I = D || S.payTo.fields.length > 0 ? void 0 : E;
41
+ return /* @__PURE__ */ _("div", {
42
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
43
+ children: [
44
+ I ? /* @__PURE__ */ _("div", {
45
+ className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-md ttw:border ttw:border-amber-200 ttw:bg-amber-50 ttw:px-3 ttw:py-2.5",
46
+ children: [
47
+ /* @__PURE__ */ g(v, { className: "ttw:size-4 ttw:shrink-0 ttw:text-amber-800" }),
48
+ /* @__PURE__ */ g("p", {
49
+ className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
50
+ children: P.missingPaymentInstructionsBanner
51
+ }),
52
+ /* @__PURE__ */ g(t, {
53
+ type: "button",
54
+ variant: "outline",
55
+ size: "sm",
56
+ onClick: I.onOpen,
57
+ children: P.addPaymentInstructions
58
+ })
59
+ ]
60
+ }) : null,
61
+ /* @__PURE__ */ _("section", {
62
+ className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
63
+ children: [
64
+ S.paidOnLabel ? /* @__PURE__ */ _("div", {
65
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
66
+ children: [/* @__PURE__ */ _("div", {
67
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
68
+ children: [/* @__PURE__ */ g("span", {
69
+ className: "ttw:text-sm ttw:text-muted-foreground",
70
+ children: P.amountDueHeading
71
+ }), /* @__PURE__ */ g("span", {
72
+ className: "ttw:text-3xl ttw:font-semibold",
73
+ children: S.amountDue
74
+ })]
75
+ }), /* @__PURE__ */ _("div", {
76
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
77
+ children: [/* @__PURE__ */ g("span", {
78
+ className: "ttw:text-sm ttw:text-muted-foreground",
79
+ children: P.amountPaidHeading
80
+ }), /* @__PURE__ */ g("span", {
81
+ className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
82
+ children: S.amountPaid
83
+ })]
84
+ })]
85
+ }) : /* @__PURE__ */ _("div", {
86
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
87
+ children: [/* @__PURE__ */ g("span", {
88
+ className: "ttw:text-sm ttw:text-muted-foreground",
89
+ children: P.amountDueHeading
90
+ }), /* @__PURE__ */ g("span", {
91
+ className: "ttw:text-3xl ttw:font-semibold",
92
+ children: S.amountDue
93
+ })]
94
+ }),
95
+ /* @__PURE__ */ g("div", { children: S.paidOnLabel ? /* @__PURE__ */ g(e, {
96
+ variant: "outline",
97
+ className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
98
+ children: S.paidOnLabel
99
+ }) : /* @__PURE__ */ g(c, {
100
+ status: S.status,
101
+ tone: S.statusTone,
102
+ labels: P.statusBadge
103
+ }) }),
104
+ /* @__PURE__ */ _("div", {
105
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
106
+ children: [/* @__PURE__ */ _("div", {
107
+ className: "ttw:flex ttw:flex-col",
108
+ children: [/* @__PURE__ */ g("span", {
109
+ className: "ttw:text-xs ttw:text-muted-foreground",
110
+ children: P.invoiceDateLabel
111
+ }), /* @__PURE__ */ g("span", {
112
+ className: "ttw:text-sm ttw:font-medium",
113
+ children: S.invoiceDateLabel
114
+ })]
115
+ }), /* @__PURE__ */ _("div", {
116
+ className: "ttw:flex ttw:flex-col",
117
+ children: [/* @__PURE__ */ g("span", {
118
+ className: "ttw:text-xs ttw:text-muted-foreground",
119
+ children: P.dueDateLabel
120
+ }), /* @__PURE__ */ g(l, {
121
+ className: "ttw:text-sm ttw:font-medium",
122
+ value: S.dueDateLabel,
123
+ tone: S.dueDateTone,
124
+ labels: P.dueDate
125
+ })]
126
+ })]
127
+ }),
128
+ S.rejection ? /* @__PURE__ */ g(s, { ...S.rejection }) : null,
129
+ T ? /* @__PURE__ */ g(r, {
130
+ variant: "caption",
131
+ color: "muted",
132
+ children: P.approvalOverrideNotice
133
+ }) : null,
134
+ w ? /* @__PURE__ */ g("div", { children: /* @__PURE__ */ g(e, {
135
+ variant: "outline",
136
+ className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
137
+ children: w
138
+ }) }) : C.row.length ? /* @__PURE__ */ g("div", {
139
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
140
+ children: /* @__PURE__ */ g(p, { actions: C.row })
141
+ }) : null
142
+ ]
143
+ }),
144
+ /* @__PURE__ */ g(d, {
145
+ summary: S.payTo,
146
+ onEdit: D ? void 0 : O,
147
+ instructionsCollapsed: !0,
148
+ paymentInstructions: E && !D ? {
149
+ isOpen: E.isOpen,
150
+ values: E.values,
151
+ errors: E.errors,
152
+ isSaving: E.isSaving,
153
+ onOpen: E.onOpen,
154
+ onChange: E.onChange,
155
+ onSave: E.onSave,
156
+ onCancel: E.onCancel
157
+ } : void 0,
158
+ labels: F
159
+ }),
160
+ S.paymentHistory.length || k || A ? /* @__PURE__ */ _("section", {
161
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
162
+ children: [/* @__PURE__ */ g("h3", {
163
+ className: y,
164
+ children: P.paymentHistoryHeading
165
+ }), k ? /* @__PURE__ */ g("p", {
166
+ className: "ttw:text-sm ttw:text-muted-foreground",
167
+ children: P.paymentHistoryErrorDescription
168
+ }) : A ? /* @__PURE__ */ g(n, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ g(u, { records: S.paymentHistory })]
169
+ }) : null,
170
+ /* @__PURE__ */ g("dl", {
171
+ className: "ttw:flex ttw:flex-col",
172
+ children: S.invoiceFields.map((e) => /* @__PURE__ */ _("div", {
173
+ className: x,
174
+ children: [/* @__PURE__ */ g("dt", {
175
+ className: "ttw:text-sm ttw:text-muted-foreground",
176
+ children: e.label
177
+ }), /* @__PURE__ */ g("dd", {
178
+ className: "ttw:text-right ttw:text-sm ttw:font-medium",
179
+ children: e.value
180
+ })]
181
+ }, e.label))
182
+ }),
183
+ /* @__PURE__ */ g("section", { children: /* @__PURE__ */ _("table", {
184
+ className: "ttw:w-full ttw:text-sm",
185
+ children: [/* @__PURE__ */ g("thead", { children: /* @__PURE__ */ _("tr", {
186
+ className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
187
+ children: [
188
+ /* @__PURE__ */ g("th", {
189
+ className: i(b, "ttw:text-left ttw:font-normal"),
190
+ children: P.descriptionAndGlCodeColumn
191
+ }),
192
+ /* @__PURE__ */ g("th", {
193
+ className: i(b, "ttw:text-right ttw:font-normal"),
194
+ children: P.qtyPriceColumn
195
+ }),
196
+ /* @__PURE__ */ g("th", {
197
+ className: i(b, "ttw:text-right ttw:font-normal"),
198
+ children: P.amountColumn
199
+ })
200
+ ]
201
+ }) }), /* @__PURE__ */ _("tbody", { children: [S.lineItems.map((e) => /* @__PURE__ */ _("tr", {
202
+ className: "ttw:border-b ttw:border-border",
203
+ children: [
204
+ /* @__PURE__ */ g("td", {
205
+ className: b,
206
+ children: /* @__PURE__ */ _("div", {
207
+ className: "ttw:flex ttw:flex-col",
208
+ children: [/* @__PURE__ */ g("span", { children: e.description }), /* @__PURE__ */ g("span", {
209
+ className: "ttw:text-xs ttw:text-muted-foreground",
210
+ children: e.glCodeLabel
211
+ })]
212
+ })
213
+ }),
214
+ /* @__PURE__ */ g("td", {
215
+ className: i(b, "ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground"),
216
+ children: e.qtyPriceLabel
217
+ }),
218
+ /* @__PURE__ */ g("td", {
219
+ className: i(b, "ttw:text-right ttw:whitespace-nowrap"),
220
+ children: e.amount
221
+ })
222
+ ]
223
+ }, e.id)), S.amountRows.map((e) => /* @__PURE__ */ _("tr", {
224
+ className: i(e.emphasis ? "ttw:font-semibold" : "ttw:text-muted-foreground"),
225
+ children: [/* @__PURE__ */ g("td", {
226
+ colSpan: 2,
227
+ className: b,
228
+ children: e.label
229
+ }), /* @__PURE__ */ g("td", {
230
+ className: i(b, "ttw:text-right ttw:whitespace-nowrap", e.emphasis && "ttw:text-foreground"),
231
+ children: e.value
232
+ })]
233
+ }, e.label))] })]
234
+ }) }),
235
+ S.approvalPolicy ? /* @__PURE__ */ g(o, {
236
+ view: S.approvalPolicy,
237
+ labels: P.approvalPolicy
238
+ }) : null,
239
+ S.history.length ? /* @__PURE__ */ _("section", {
240
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
241
+ children: [/* @__PURE__ */ g("h3", {
242
+ className: y,
243
+ children: P.historyHeading
244
+ }), /* @__PURE__ */ g("ul", {
245
+ className: "ttw:flex ttw:flex-col",
246
+ children: S.history.map((e) => /* @__PURE__ */ _("li", {
247
+ className: "ttw:flex ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
248
+ children: [/* @__PURE__ */ g("span", {
249
+ className: "ttw:w-28 ttw:shrink-0 ttw:text-muted-foreground",
250
+ children: e.dateLabel
251
+ }), /* @__PURE__ */ g("span", { children: e.description })]
252
+ }, e.id))
253
+ })]
254
+ }) : null
255
+ ]
256
+ });
257
+ }
258
+ //#endregion
259
+ export { S as BillDetailBody, S as default };
@@ -1,9 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js
2
- var e = {
3
- invoiceNumber: "Invoice number",
4
- invoiceDate: "Invoice date",
5
- dueDate: "Due date",
6
- poNumber: "PO number (optional)"
7
- };
8
- //#endregion
9
- export { e as BILL_FORM_FIELDS_LABELS_EN };
1
+ import "./index30.js";
2
+ import "./index31.js";
@@ -1,49 +1,9 @@
1
- import { Input as e, Label as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index32.js";
3
- import { useId as r } from "react";
4
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js
6
- function o({ values: o, errors: s, onChange: c, disabled: l, testId: u, labels: d }) {
7
- let f = {
8
- ...n,
9
- ...d
10
- }, p = r(), m = (n, r, u) => {
11
- let d = `${p}-${n}`, f = `${d}-error`, m = s?.[n];
12
- return /* @__PURE__ */ a("div", {
13
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
14
- children: [
15
- /* @__PURE__ */ i(t, {
16
- htmlFor: d,
17
- children: r
18
- }),
19
- /* @__PURE__ */ i(e, {
20
- id: d,
21
- type: u,
22
- value: o[n],
23
- disabled: l,
24
- "aria-invalid": m ? !0 : void 0,
25
- "aria-describedby": m ? f : void 0,
26
- onChange: (e) => c({ [n]: e.target.value })
27
- }),
28
- m ? /* @__PURE__ */ i("p", {
29
- id: f,
30
- className: "ttw:text-sm ttw:text-destructive",
31
- children: m
32
- }) : null
33
- ]
34
- });
35
- };
36
- return /* @__PURE__ */ a("div", {
37
- className: "ttw:flex ttw:flex-col ttw:gap-4",
38
- "data-testid": u,
39
- children: [/* @__PURE__ */ a("div", {
40
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
41
- children: [m("invoiceDate", f.invoiceDate, "date"), m("dueDate", f.dueDate, "date")]
42
- }), /* @__PURE__ */ a("div", {
43
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
44
- children: [m("invoiceNumber", f.invoiceNumber), m("poNumber", f.poNumber)]
45
- })]
46
- });
47
- }
2
+ var e = {
3
+ invoiceNumber: "Invoice number",
4
+ invoiceDate: "Invoice date",
5
+ dueDate: "Due date",
6
+ poNumber: "PO number (optional)"
7
+ };
48
8
  //#endregion
49
- export { o as BillFormFields, o as default };
9
+ export { e as BILL_FORM_FIELDS_LABELS_EN };
@@ -1,2 +1,49 @@
1
- import "./index32.js";
2
- import "./index33.js";
1
+ import { Input as e, Label as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index33.js";
3
+ import { useId as r } from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js
6
+ function o({ values: o, errors: s, onChange: c, disabled: l, testId: u, labels: d }) {
7
+ let f = {
8
+ ...n,
9
+ ...d
10
+ }, p = r(), m = (n, r, u) => {
11
+ let d = `${p}-${n}`, f = `${d}-error`, m = s?.[n];
12
+ return /* @__PURE__ */ a("div", {
13
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
14
+ children: [
15
+ /* @__PURE__ */ i(t, {
16
+ htmlFor: d,
17
+ children: r
18
+ }),
19
+ /* @__PURE__ */ i(e, {
20
+ id: d,
21
+ type: u,
22
+ value: o[n],
23
+ disabled: l,
24
+ "aria-invalid": m ? !0 : void 0,
25
+ "aria-describedby": m ? f : void 0,
26
+ onChange: (e) => c({ [n]: e.target.value })
27
+ }),
28
+ m ? /* @__PURE__ */ i("p", {
29
+ id: f,
30
+ className: "ttw:text-sm ttw:text-destructive",
31
+ children: m
32
+ }) : null
33
+ ]
34
+ });
35
+ };
36
+ return /* @__PURE__ */ a("div", {
37
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
38
+ "data-testid": u,
39
+ children: [/* @__PURE__ */ a("div", {
40
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
41
+ children: [m("invoiceDate", f.invoiceDate, "date"), m("dueDate", f.dueDate, "date")]
42
+ }), /* @__PURE__ */ a("div", {
43
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
44
+ children: [m("invoiceNumber", f.invoiceNumber), m("poNumber", f.poNumber)]
45
+ })]
46
+ });
47
+ }
48
+ //#endregion
49
+ export { o as BillFormFields, o as default };
@@ -1,18 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js
2
- function e(e) {
3
- let t = [];
4
- for (let n of e) {
5
- let e = t.at(-1);
6
- if (e && e.heading === n.sectionHeading) {
7
- e.items = [...e.items, n];
8
- continue;
9
- }
10
- t.push({
11
- heading: n.sectionHeading,
12
- items: [n]
13
- });
14
- }
15
- return t;
16
- }
17
- //#endregion
18
- export { e as groupBySectionHeading };
1
+ import "./index33.js";
2
+ import "./index34.js";
@@ -1,50 +1,18 @@
1
- import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuGroup as r, DropdownMenuItem as i, DropdownMenuLabel as a, DropdownMenuSeparator as o, DropdownMenuTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { groupBySectionHeading as c } from "./index35.js";
3
- import { Fragment as l, useId as u } from "react";
4
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
- import { MoreHorizontalIcon as p, MoreVerticalIcon as m } from "lucide-react";
6
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js
7
- function h({ actions: h, triggerLabel: g, placement: _ = "row", testId: v }) {
8
- let y = u();
9
- if (!h.length) return null;
10
- let b = _ === "header", x = b ? p : m, S = c(h);
11
- return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ d(s, {
12
- asChild: !0,
13
- children: /* @__PURE__ */ d(e, {
14
- type: "button",
15
- variant: b ? "ghost" : "outline",
16
- size: "icon",
17
- "aria-label": g,
18
- "data-testid": v,
19
- children: /* @__PURE__ */ d(x, { className: "ttw:size-4" })
20
- })
21
- }), /* @__PURE__ */ d(n, {
22
- align: "end",
23
- children: S.map((e, t) => {
24
- let n = e.items.map((e) => {
25
- let t = e.icon;
26
- return /* @__PURE__ */ f(i, {
27
- disabled: e.disabled,
28
- onClick: e.onSelect,
29
- children: [t ? /* @__PURE__ */ d(t, { className: "ttw:size-4" }) : null, e.label]
30
- }, e.id);
31
- });
32
- if (!e.heading) return /* @__PURE__ */ d(l, { children: n }, e.items[0]?.id);
33
- let s = `${y}-${t}`;
34
- return /* @__PURE__ */ f(l, { children: [
35
- t > 0 ? /* @__PURE__ */ d(o, {}) : null,
36
- /* @__PURE__ */ d(a, {
37
- id: s,
38
- className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
39
- children: e.heading
40
- }),
41
- /* @__PURE__ */ d(r, {
42
- "aria-labelledby": s,
43
- children: n
44
- })
45
- ] }, e.items[0]?.id);
46
- })
47
- })] });
2
+ function e(e) {
3
+ let t = [];
4
+ for (let n of e) {
5
+ let e = t.at(-1);
6
+ if (e && e.heading === n.sectionHeading) {
7
+ e.items = [...e.items, n];
8
+ continue;
9
+ }
10
+ t.push({
11
+ heading: n.sectionHeading,
12
+ items: [n]
13
+ });
14
+ }
15
+ return t;
48
16
  }
49
17
  //#endregion
50
- export { h as BillOverflowMenu, h as default };
18
+ export { e as groupBySectionHeading };
@@ -1,2 +1,50 @@
1
- import "./index35.js";
2
- import "./index36.js";
1
+ import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuGroup as r, DropdownMenuItem as i, DropdownMenuLabel as a, DropdownMenuSeparator as o, DropdownMenuTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { groupBySectionHeading as c } from "./index36.js";
3
+ import { Fragment as l, useId as u } from "react";
4
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
+ import { MoreHorizontalIcon as p, MoreVerticalIcon as m } from "lucide-react";
6
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js
7
+ function h({ actions: h, triggerLabel: g, placement: _ = "row", testId: v }) {
8
+ let y = u();
9
+ if (!h.length) return null;
10
+ let b = _ === "header", x = b ? p : m, S = c(h);
11
+ return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ d(s, {
12
+ asChild: !0,
13
+ children: /* @__PURE__ */ d(e, {
14
+ type: "button",
15
+ variant: b ? "ghost" : "outline",
16
+ size: "icon",
17
+ "aria-label": g,
18
+ "data-testid": v,
19
+ children: /* @__PURE__ */ d(x, { className: "ttw:size-4" })
20
+ })
21
+ }), /* @__PURE__ */ d(n, {
22
+ align: "end",
23
+ children: S.map((e, t) => {
24
+ let n = e.items.map((e) => {
25
+ let t = e.icon;
26
+ return /* @__PURE__ */ f(i, {
27
+ disabled: e.disabled,
28
+ onClick: e.onSelect,
29
+ children: [t ? /* @__PURE__ */ d(t, { className: "ttw:size-4" }) : null, e.label]
30
+ }, e.id);
31
+ });
32
+ if (!e.heading) return /* @__PURE__ */ d(l, { children: n }, e.items[0]?.id);
33
+ let s = `${y}-${t}`;
34
+ return /* @__PURE__ */ f(l, { children: [
35
+ t > 0 ? /* @__PURE__ */ d(o, {}) : null,
36
+ /* @__PURE__ */ d(a, {
37
+ id: s,
38
+ className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
39
+ children: e.heading
40
+ }),
41
+ /* @__PURE__ */ d(r, {
42
+ "aria-labelledby": s,
43
+ children: n
44
+ })
45
+ ] }, e.items[0]?.id);
46
+ })
47
+ })] });
48
+ }
49
+ //#endregion
50
+ export { h as BillOverflowMenu, h as default };
@@ -1,23 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js
2
- var e = {
3
- heading: "Line items",
4
- helpText: "Enter a single amount for this payment, or split it into line items to assign a GL code to each one.",
5
- description: "Description",
6
- descriptionPlaceholder: "e.g., Office supplies",
7
- glCode: "GL code (optional)",
8
- glCodePlaceholder: "Select",
9
- glCodeClear: "Clear GL code",
10
- quantity: "Quantity",
11
- price: "Price",
12
- amount: "Amount",
13
- currencySymbol: "$",
14
- discount: "Discounts",
15
- tax: "Tax",
16
- totalAmount: "Total amount",
17
- addLineItem: "+ Add line item",
18
- increaseQuantity: (e) => `Increase quantity — line item ${e}`,
19
- decreaseQuantity: (e) => `Decrease quantity — line item ${e}`,
20
- removeLineItem: (e) => `Remove line item ${e}`
21
- };
22
- //#endregion
23
- export { e as LINE_ITEMS_SECTION_LABELS_EN };
1
+ import "./index36.js";
2
+ import "./index37.js";