@tesouro/embedded-components-react 0.4.21 → 0.4.22

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 (179) 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 +12 -12
  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 +135 -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 +47 -119
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +119 -33
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +33 -177
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +186 -75
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +75 -21
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +22 -232
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +223 -210
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +202 -103
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +121 -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 +12 -47
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +47 -31
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -198
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +198 -30
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +30 -234
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +240 -19
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +19 -385
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +416 -4
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +4 -35
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +35 -189
  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 +214 -3
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -4
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +2 -44
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +46 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -8
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +6 -10
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +10 -110
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +112 -3
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -127
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +124 -8
  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 +8 -7
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -46
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +43 -18
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +20 -28
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +27 -82
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +83 -47
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +47 -250
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +239 -101
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +107 -202
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +209 -3
  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 +4 -8
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +6 -113
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +115 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +0 -24
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +25 -0
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
  175. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  176. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js +11 -0
  177. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  178. package/package.json +1 -1
  179. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
@@ -1,301 +1,89 @@
1
- import { Badge as e, Button as t, Collapsible as n, CollapsibleContent as r, CollapsibleTrigger as i, Sheet as a, SheetContent as o, SheetDescription as s, SheetHeader as c, SheetTitle as l, Skeleton as u, Typography as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ApprovalPolicyCard as f } from "./index13.js";
1
+ import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
3
+ import "./index8.js";
4
+ import { APPROVAL_POLICY_CARD_LABELS_EN as n } from "./index12.js";
3
5
  import "./index14.js";
4
- import { BillStatusBadge as p } from "./index18.js";
5
- import "./index19.js";
6
- import { DueDateValue as m } from "./index21.js";
7
- import "./index22.js";
8
- import { PaymentHistoryList as h } from "./index23.js";
9
- import "./index24.js";
10
- import { BillActionButtons as g, NO_BILL_ACTIONS as _ } from "./index15.js";
11
- import { BillOverflowMenu as v } from "./index36.js";
12
- import "./index37.js";
13
- import { BILL_DETAILS_SHEET_LABELS_EN as y } from "./index60.js";
14
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
15
- import { ChevronDownIcon as C, MoveDiagonal2Icon as w, XIcon as T } from "lucide-react";
6
+ import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index17.js";
7
+ import "./index20.js";
8
+ import { DUE_DATE_VALUE_LABELS_EN as i } from "./index21.js";
9
+ import "./index23.js";
10
+ import { MISSING_VALUE_LABELS_EN as a } from "./index58.js";
11
+ import "./index60.js";
16
12
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js
17
- function E({ items: e }) {
18
- return /* @__PURE__ */ x("dl", {
19
- className: "ttw:flex ttw:flex-col",
20
- children: e.map((e) => /* @__PURE__ */ S("div", {
21
- 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",
22
- children: [/* @__PURE__ */ x("dt", {
23
- className: "ttw:text-sm ttw:text-muted-foreground",
24
- children: e.label
25
- }), /* @__PURE__ */ S("dd", {
26
- className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
27
- children: [/* @__PURE__ */ x("span", {
28
- className: "ttw:text-sm ttw:font-medium",
29
- children: e.value
30
- }), e.secondaryValue ? /* @__PURE__ */ x("span", {
31
- className: "ttw:text-sm ttw:text-muted-foreground",
32
- children: e.secondaryValue
33
- }) : null]
34
- })]
35
- }, e.label))
36
- });
37
- }
38
- function D({ heading: e, children: t }) {
39
- return /* @__PURE__ */ S(n, {
40
- defaultOpen: !0,
41
- className: "ttw:flex ttw:flex-col ttw:gap-3",
42
- children: [/* @__PURE__ */ S(i, {
43
- 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",
44
- children: [/* @__PURE__ */ x(d, {
45
- variant: "body1",
46
- className: "ttw:font-semibold",
47
- children: e
48
- }), /* @__PURE__ */ x(C, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
49
- }), /* @__PURE__ */ x(r, { children: t })]
50
- });
51
- }
52
- function O({ open: n, onOpenChange: r, details: i, actions: C = _, approvalPolicy: O, showApprovalOverrideNotice: k, paymentHistory: A, paymentHistoryError: j, paymentHistoryLoading: M, isLoading: N, isError: P, notice: F, onClose: I, onExpand: L, testId: R, labels: z }) {
53
- let B = {
54
- ...y,
55
- ...z,
56
- statusBadge: {
57
- ...y.statusBadge,
58
- ...z?.statusBadge
59
- },
60
- approvalPolicy: {
61
- ...y.approvalPolicy,
62
- ...z?.approvalPolicy
63
- },
64
- dueDate: {
65
- ...y.dueDate,
66
- ...z?.dueDate
67
- }
68
- };
69
- return /* @__PURE__ */ x(a, {
70
- open: n,
71
- onOpenChange: (e) => e ? r(e) : I(),
72
- children: /* @__PURE__ */ S(o, {
73
- showCloseButton: !1,
74
- className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
75
- "data-testid": R,
76
- children: [/* @__PURE__ */ S(c, {
77
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
78
- children: [/* @__PURE__ */ S("div", {
79
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
80
- children: [
81
- /* @__PURE__ */ x(l, {
82
- className: N ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
83
- children: P ? B.errorTitle : N ? B.loadingTitle : i?.title
84
- }),
85
- N ? /* @__PURE__ */ S("div", {
86
- "aria-hidden": !0,
87
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
88
- children: [/* @__PURE__ */ x(u, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ x(u, { className: "ttw:h-4 ttw:w-28" })]
89
- }) : null,
90
- i && !N && !P ? /* @__PURE__ */ x("p", {
91
- className: "ttw:text-sm ttw:text-muted-foreground",
92
- children: i.subtitle
93
- }) : null,
94
- /* @__PURE__ */ x(s, {
95
- className: "ttw:sr-only",
96
- children: B.hiddenDescription
97
- })
98
- ]
99
- }), /* @__PURE__ */ S("div", {
100
- className: "ttw:flex ttw:items-center ttw:gap-1",
101
- children: [
102
- L ? /* @__PURE__ */ x(t, {
103
- type: "button",
104
- variant: "ghost",
105
- size: "icon",
106
- "aria-label": B.expandButton,
107
- onClick: L,
108
- children: /* @__PURE__ */ x(w, { className: "ttw:size-4" })
109
- }) : null,
110
- i && !N && !P ? /* @__PURE__ */ x(v, {
111
- actions: C.menu,
112
- triggerLabel: B.overflowMenuTrigger,
113
- placement: "header"
114
- }) : null,
115
- /* @__PURE__ */ x(t, {
116
- type: "button",
117
- variant: "ghost",
118
- size: "icon",
119
- "aria-label": B.closeButton,
120
- onClick: I,
121
- children: /* @__PURE__ */ x(T, { className: "ttw:size-4" })
122
- })
123
- ]
124
- })]
125
- }), /* @__PURE__ */ x("div", {
126
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
127
- children: P ? /* @__PURE__ */ x("p", {
128
- className: "ttw:text-sm ttw:text-muted-foreground",
129
- children: B.errorDescription
130
- }) : N ? /* @__PURE__ */ S("div", {
131
- className: "ttw:flex ttw:flex-col ttw:gap-6",
132
- children: [/* @__PURE__ */ x(u, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ S("div", {
133
- className: "ttw:flex ttw:flex-col ttw:gap-2",
134
- children: [
135
- /* @__PURE__ */ x(u, { className: "ttw:h-4 ttw:w-40" }),
136
- /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" }),
137
- /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" })
138
- ]
139
- })]
140
- }) : i ? /* @__PURE__ */ S(b, { children: [
141
- F,
142
- /* @__PURE__ */ S("section", {
143
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
144
- children: [
145
- /* @__PURE__ */ S("div", {
146
- className: "ttw:flex ttw:flex-col ttw:gap-2",
147
- children: [i.paidOnLabel ? /* @__PURE__ */ S("div", {
148
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6",
149
- children: [/* @__PURE__ */ S("div", {
150
- className: "ttw:flex ttw:flex-col",
151
- children: [/* @__PURE__ */ x("span", {
152
- className: "ttw:text-sm ttw:text-muted-foreground",
153
- children: B.amountDueHeading
154
- }), /* @__PURE__ */ x("span", {
155
- className: "ttw:text-3xl ttw:font-semibold",
156
- children: i.amountDueLabel
157
- })]
158
- }), /* @__PURE__ */ S("div", {
159
- className: "ttw:flex ttw:flex-col",
160
- children: [/* @__PURE__ */ x("span", {
161
- className: "ttw:text-sm ttw:text-muted-foreground",
162
- children: B.amountPaidHeading
163
- }), /* @__PURE__ */ x("span", {
164
- className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
165
- children: i.amountPaidLabel
166
- })]
167
- })]
168
- }) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("span", {
169
- className: "ttw:text-sm ttw:text-muted-foreground",
170
- children: B.amountDueHeading
171
- }), /* @__PURE__ */ x("span", {
172
- className: "ttw:text-3xl ttw:font-semibold",
173
- children: i.amountDueLabel
174
- })] }), /* @__PURE__ */ x("div", { children: i.paidOnLabel ? /* @__PURE__ */ x(e, {
175
- variant: "outline",
176
- className: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700",
177
- children: i.paidOnLabel
178
- }) : /* @__PURE__ */ x(p, {
179
- status: i.status,
180
- tone: i.statusTone,
181
- labels: B.statusBadge
182
- }) })]
183
- }),
184
- /* @__PURE__ */ S("div", {
185
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
186
- children: [/* @__PURE__ */ S("div", {
187
- className: "ttw:flex ttw:flex-col",
188
- children: [/* @__PURE__ */ x("span", {
189
- className: "ttw:text-xs ttw:text-muted-foreground",
190
- children: B.invoiceDateLabel
191
- }), /* @__PURE__ */ x("span", {
192
- className: "ttw:text-sm ttw:font-medium",
193
- children: i.invoiceDateLabel
194
- })]
195
- }), /* @__PURE__ */ S("div", {
196
- className: "ttw:flex ttw:flex-col",
197
- children: [/* @__PURE__ */ x("span", {
198
- className: "ttw:text-xs ttw:text-muted-foreground",
199
- children: B.dueDateLabel
200
- }), /* @__PURE__ */ x(m, {
201
- className: "ttw:text-sm ttw:font-medium",
202
- value: i.dueDateLabel,
203
- tone: i.dueDateTone,
204
- labels: B.dueDate
205
- })]
206
- })]
207
- }),
208
- k ? /* @__PURE__ */ x(d, {
209
- variant: "caption",
210
- color: "muted",
211
- children: B.approvalOverrideNotice
212
- }) : null,
213
- C.row.length ? /* @__PURE__ */ x("div", {
214
- className: "ttw:flex ttw:items-center ttw:gap-2",
215
- children: /* @__PURE__ */ x(g, { actions: C.row })
216
- }) : null
217
- ]
218
- }),
219
- /* @__PURE__ */ x(D, {
220
- heading: i.paidOnLabel ? B.payToHeadingPaid : B.payToHeading,
221
- children: /* @__PURE__ */ x(E, { items: i.payToItems })
222
- }),
223
- A?.length || j || M ? /* @__PURE__ */ x(D, {
224
- heading: B.paymentHistoryHeading,
225
- children: j ? /* @__PURE__ */ x("p", {
226
- className: "ttw:text-sm ttw:text-muted-foreground",
227
- children: B.paymentHistoryErrorDescription
228
- }) : M ? /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ x(h, { records: A ?? [] })
229
- }) : null,
230
- /* @__PURE__ */ x(D, {
231
- heading: B.invoiceDetailsHeading,
232
- children: /* @__PURE__ */ S("div", {
233
- className: "ttw:flex ttw:flex-col ttw:gap-4",
234
- children: [
235
- /* @__PURE__ */ x(E, { items: i.invoiceItems }),
236
- i.lineItems.length ? /* @__PURE__ */ S("table", {
237
- className: "ttw:w-full ttw:text-sm",
238
- children: [/* @__PURE__ */ x("thead", { children: /* @__PURE__ */ S("tr", {
239
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
240
- children: [
241
- /* @__PURE__ */ x("th", {
242
- className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
243
- children: B.lineItemsHeading
244
- }),
245
- /* @__PURE__ */ x("th", {
246
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
247
- children: B.lineItemsQuantityHeading
248
- }),
249
- /* @__PURE__ */ x("th", {
250
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
251
- children: B.lineItemsAmountHeading
252
- })
253
- ]
254
- }) }), /* @__PURE__ */ x("tbody", { children: i.lineItems.map((e) => /* @__PURE__ */ S("tr", {
255
- className: "ttw:border-b ttw:border-border",
256
- children: [
257
- /* @__PURE__ */ S("td", {
258
- className: "ttw:px-3 ttw:py-2",
259
- children: [/* @__PURE__ */ x("span", {
260
- className: "ttw:block",
261
- children: e.description
262
- }), /* @__PURE__ */ x("span", {
263
- className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
264
- children: e.glCodeLabel
265
- })]
266
- }),
267
- /* @__PURE__ */ x("td", {
268
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
269
- children: e.quantityLabel
270
- }),
271
- /* @__PURE__ */ x("td", {
272
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
273
- children: e.amountLabel
274
- })
275
- ]
276
- }, e.id)) })]
277
- }) : null,
278
- /* @__PURE__ */ x("dl", {
279
- className: "ttw:flex ttw:flex-col ttw:gap-1",
280
- children: i.totals.map((e) => /* @__PURE__ */ S("div", {
281
- 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",
282
- children: [/* @__PURE__ */ x("dt", {
283
- className: e.emphasis ? "" : "ttw:text-muted-foreground",
284
- children: e.label
285
- }), /* @__PURE__ */ x("dd", { children: e.value })]
286
- }, e.label))
287
- })
288
- ]
289
- })
290
- }),
291
- O ? /* @__PURE__ */ x(f, {
292
- view: O,
293
- labels: B.approvalPolicy
294
- }) : null
295
- ] }) : null
296
- })]
297
- })
298
- });
299
- }
13
+ var o = {
14
+ loadingTitle: "Loading bill…",
15
+ hiddenDescription: "Bill details",
16
+ errorTitle: "Couldn't load this bill",
17
+ errorDescription: "Something went wrong. Try again.",
18
+ amountDueHeading: "Amount due",
19
+ amountPaidHeading: "Amount paid",
20
+ invoiceDateLabel: "Invoice date",
21
+ dueDateLabel: "Due date",
22
+ approvalOverrideNotice: "If approvers are unavailable, you can override the approval policy from the overflow menu.",
23
+ payToHeading: "Pay to",
24
+ payToHeadingPaid: "Paid to",
25
+ paymentHistoryHeading: "Payment history",
26
+ paymentHistoryErrorDescription: "Couldn't load payment history.",
27
+ invoiceDetailsHeading: "Invoice details",
28
+ lineItemsHeading: "Line items",
29
+ lineItemsQuantityHeading: "Qty/Price",
30
+ lineItemsAmountHeading: "Amount",
31
+ payButton: "Pay",
32
+ markAsPaidButton: "Mark as paid",
33
+ rejectButton: "Reject",
34
+ approveButton: "Approve",
35
+ cancelButton: "Cancel bill",
36
+ cancelScheduledPaymentButton: "Cancel scheduled payment",
37
+ reopenButton: "Reopen bill",
38
+ forceApproveButton: "Approve",
39
+ forceRejectButton: "Reject",
40
+ policyOverridesGroup: "Policy overrides",
41
+ overflowMenuTrigger: "Bill actions",
42
+ expandButton: "Open full screen",
43
+ closeButton: "Close",
44
+ statusBadge: r,
45
+ approvalPolicy: n,
46
+ dueDate: i
47
+ }, s = ".pdf,.png,.jpg,.jpeg,.doc,.docx", c = {
48
+ ...t,
49
+ dropzone: {
50
+ ...t.dropzone,
51
+ fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
52
+ }
53
+ }, l = {
54
+ createButton: "Add bill",
55
+ columnVendor: "Vendor",
56
+ columnAttachment: "Attachment",
57
+ columnIssueDate: "Issue date",
58
+ columnDueDate: "Due date",
59
+ columnScheduledDate: "Scheduled date",
60
+ columnPaidDate: "Paid date",
61
+ columnAmountDue: "Amount due",
62
+ columnAmountScheduled: "Amount scheduled",
63
+ columnAmountPaid: "Amount paid",
64
+ columnTotalAmount: "Total amount",
65
+ columnStatus: "Status",
66
+ columnAddedOn: "Added on",
67
+ columnActions: "Actions",
68
+ openRow: (e) => `View bill — ${e}`,
69
+ duplicateBillsReviewButton: "Review duplicates",
70
+ searchPlaceholder: "Search by vendor name",
71
+ searchLabel: "Search bills by vendor name",
72
+ filterTabsLabel: "Filter bills by status",
73
+ filteredEmptyTitle: "No bills match",
74
+ filteredEmptyDescription: "Try a different search or status filter.",
75
+ errorTitle: "Couldn't load bills",
76
+ errorDescription: "Something went wrong. Try again.",
77
+ errorRetry: "Retry",
78
+ statusBadge: r,
79
+ addBill: c,
80
+ sortableHeader: {
81
+ sortedAscending: e.sortedAscending,
82
+ sortedDescending: e.sortedDescending,
83
+ notSorted: e.notSorted
84
+ },
85
+ missingValue: a,
86
+ dueDate: i
87
+ };
300
88
  //#endregion
301
- export { O as BillDetailsSheet, O as default };
89
+ export { l as BILLS_SCREEN_LABELS_EN, s as BILLS_SCREEN_UPLOAD_ACCEPT, o as BILL_DETAILS_SHEET_LABELS_EN };