@tesouro/embedded-components-react 0.2.317 → 0.2.319

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 (136) hide show
  1. package/README.md +5 -4
  2. package/dist/index.css +9 -0
  3. package/dist/index.d.ts +4 -1
  4. package/dist/index.js +1 -1
  5. package/dist/lib/BillPayWidget.d.ts +4 -1
  6. package/dist/lib/BillPayWidget.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +10 -7
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +170 -32
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +13 -32
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +30 -0
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +50 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +36 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +11 -8
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +33 -16
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +47 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +18 -63
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +40 -131
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +48 -11
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +30 -20
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +18 -16
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +29 -97
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +1 -9
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +13 -109
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +24 -4
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +30 -21
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +19 -46
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +49 -76
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +4 -45
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +73 -3
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +50 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +4 -50
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +7 -43
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +38 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +115 -31
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +56 -8
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +206 -16
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +195 -5
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +58 -64
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +46 -139
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +34 -5
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +155 -6
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +3 -60
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +36 -7
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +92 -73
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +9 -3
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +191 -6
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +4 -114
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +26 -1
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +78 -21
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +92 -0
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +3 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -206
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +45 -0
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -0
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +53 -0
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +11 -0
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +18 -0
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +8 -0
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +79 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +148 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +5 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +8 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +3 -197
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +9 -0
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +85 -0
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +3 -0
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -0
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +115 -0
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +1 -0
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +25 -0
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +30 -41
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +38 -30
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +20 -151
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +158 -31
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +29 -17
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -7
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +13 -47
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +24 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -22
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +31 -283
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +261 -1
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +2 -16
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +7 -118
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +49 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -10
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +20 -94
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +286 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +1 -12
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +14 -56
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +120 -2
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +8 -157
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +96 -2
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -7
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +11 -42
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +57 -1
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -14
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +50 -20
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +138 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +1 -54
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +5 -227
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +37 -188
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -10
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +55 -5
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +229 -84
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +195 -0
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +10 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +4 -3
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +88 -25
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -14
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +5 -87
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +30 -2
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -0
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +7 -0
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +34 -0
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -0
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +12 -0
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +106 -0
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -0
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +18 -0
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +10 -0
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +170 -0
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -0
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +14 -0
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +89 -0
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -0
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +21 -21
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +189 -156
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +157 -97
  131. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1834 -1819
  132. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +10 -10
  133. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  135. package/package.json +1 -1
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +0 -2
@@ -1,159 +1,10 @@
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 { BillFormFields as d } from "./index13.js";
5
- import "./index14.js";
6
- import { LineItemsSection as f } from "./index16.js";
7
- import "./index17.js";
8
- import { VendorSection as p } from "./index25.js";
9
- import "./index26.js";
10
- import { BILL_CREATE_SCREEN_LABELS_EN as m } from "./index27.js";
11
- import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
12
- import { MoreVertical as v, X as y } from "lucide-react";
13
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js
14
- function b({ open: b, onOpenChange: x, title: S, subtitle: C, notice: w, vendor: T, values: E, errors: D, onChange: O, lineItems: k, documentPanel: A, menuItems: j, readOnly: M, isLineItemsLoading: N, isSaving: P, isSavingDraft: F, isFinalizing: I, onCancel: L, onSaveDraft: R, onFinalize: z, testId: B, labels: V }) {
15
- let H = {
16
- ...m,
17
- ...V,
18
- vendorSection: {
19
- ...m.vendorSection,
20
- ...V?.vendorSection,
21
- summaryCard: {
22
- ...m.vendorSection.summaryCard,
23
- ...V?.vendorSection?.summaryCard,
24
- ach: {
25
- ...m.vendorSection.summaryCard.ach,
26
- ...V?.vendorSection?.summaryCard?.ach
27
- }
28
- },
29
- search: {
30
- ...m.vendorSection.search,
31
- ...V?.vendorSection?.search
32
- }
33
- },
34
- detailsFields: {
35
- ...m.detailsFields,
36
- ...V?.detailsFields
37
- },
38
- lineItems: {
39
- ...m.lineItems,
40
- ...V?.lineItems
41
- }
42
- };
43
- return /* @__PURE__ */ g(t, {
44
- open: b,
45
- onOpenChange: x,
46
- children: /* @__PURE__ */ _(n, {
47
- showCloseButton: !1,
48
- 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",
49
- "data-testid": B,
50
- children: [
51
- /* @__PURE__ */ _(i, {
52
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
53
- children: [/* @__PURE__ */ _("div", {
54
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
55
- children: [
56
- /* @__PURE__ */ g(a, {
57
- className: "ttw:text-xl ttw:font-semibold",
58
- children: S
59
- }),
60
- C ? /* @__PURE__ */ g("p", {
61
- className: "ttw:text-sm ttw:text-muted-foreground",
62
- children: C
63
- }) : null,
64
- /* @__PURE__ */ g(r, {
65
- className: "ttw:sr-only",
66
- children: H.hiddenDescription
67
- })
68
- ]
69
- }), /* @__PURE__ */ _("div", {
70
- className: "ttw:flex ttw:items-center ttw:gap-1",
71
- children: [j && j.length > 0 ? /* @__PURE__ */ _(o, { children: [/* @__PURE__ */ g(l, {
72
- asChild: !0,
73
- children: /* @__PURE__ */ g(e, {
74
- type: "button",
75
- variant: "ghost",
76
- size: "icon",
77
- "aria-label": H.menuTrigger,
78
- disabled: P,
79
- children: /* @__PURE__ */ g(v, { className: "ttw:size-4" })
80
- })
81
- }), /* @__PURE__ */ g(s, {
82
- align: "end",
83
- children: j.map((e) => /* @__PURE__ */ g(c, {
84
- variant: e.destructive ? "destructive" : void 0,
85
- onSelect: e.onSelect,
86
- children: e.label
87
- }, e.id))
88
- })] }) : null, /* @__PURE__ */ g(e, {
89
- type: "button",
90
- variant: "ghost",
91
- size: "icon",
92
- "aria-label": H.closeButton,
93
- disabled: P,
94
- onClick: L,
95
- children: /* @__PURE__ */ g(y, { className: "ttw:size-4" })
96
- })]
97
- })]
98
- }),
99
- /* @__PURE__ */ _("div", {
100
- className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
101
- children: [/* @__PURE__ */ _("div", {
102
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
103
- children: [
104
- D?.form ? /* @__PURE__ */ g(u, { children: D.form }) : null,
105
- w,
106
- /* @__PURE__ */ g(p, {
107
- ...T,
108
- onEdit: M ? void 0 : T.onEdit,
109
- onClear: M ? void 0 : T.onClear,
110
- disabled: M,
111
- labels: H.vendorSection
112
- }),
113
- /* @__PURE__ */ g(d, {
114
- values: E,
115
- errors: D,
116
- onChange: O,
117
- disabled: M,
118
- labels: H.detailsFields
119
- }),
120
- /* @__PURE__ */ g(f, {
121
- ...k,
122
- disabled: k.disabled || N || M,
123
- labels: H.lineItems
124
- })
125
- ]
126
- }), /* @__PURE__ */ g("div", {
127
- className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
128
- children: A
129
- })]
130
- }),
131
- /* @__PURE__ */ _("div", {
132
- className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
133
- children: [/* @__PURE__ */ g(e, {
134
- type: "button",
135
- variant: "ghost",
136
- disabled: P,
137
- onClick: L,
138
- children: M ? H.closeButton : H.cancelButton
139
- }), M ? null : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(e, {
140
- type: "button",
141
- variant: "secondary",
142
- onClick: R,
143
- loading: F,
144
- disabled: I || N || T.mode === "creating",
145
- children: H.saveDraftButton
146
- }), /* @__PURE__ */ g(e, {
147
- type: "button",
148
- onClick: z,
149
- loading: I,
150
- disabled: F || N || T.mode === "creating",
151
- children: H.finalizeButton
152
- })] })]
153
- })
154
- ]
155
- })
156
- });
157
- }
2
+ var e = {
3
+ fieldLabel: "Select or add vendor",
4
+ placeholder: "Search",
5
+ loading: "Searching vendors...",
6
+ emptyResults: "No vendors found",
7
+ addVendorAction: "Add vendor"
8
+ };
158
9
  //#endregion
159
- export { b as BillCreateScreen, b as default };
10
+ export { e as VENDOR_SEARCH_COMBOBOX_LABELS_EN };
@@ -1,2 +1,96 @@
1
- import "./index27.js";
2
- import "./index28.js";
1
+ import { Command as e, CommandGroup as t, CommandInput as n, CommandItem as r, CommandList as i, CommandSeparator as a, Label as o, Popover as s, PopoverContent as c, PopoverTrigger as l, Skeleton as u, cn as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as f } from "./index28.js";
3
+ import { useId as p, useState as m } from "react";
4
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
5
+ import { Plus as _, Search as v } from "lucide-react";
6
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js
7
+ var y = 5, b = "ttw:min-h-44";
8
+ function x({ query: x, onQueryChange: S, results: C, isLoading: w, onAddVendor: T, testId: E, labels: D }) {
9
+ let O = {
10
+ ...f,
11
+ ...D
12
+ }, k = p(), [A, j] = m(!1);
13
+ return /* @__PURE__ */ g("div", {
14
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
15
+ "data-testid": E,
16
+ children: [/* @__PURE__ */ h(o, {
17
+ htmlFor: k,
18
+ children: O.fieldLabel
19
+ }), /* @__PURE__ */ g(s, {
20
+ open: A,
21
+ onOpenChange: j,
22
+ children: [/* @__PURE__ */ h(l, {
23
+ asChild: !0,
24
+ children: /* @__PURE__ */ g("button", {
25
+ type: "button",
26
+ id: k,
27
+ role: "combobox",
28
+ "aria-expanded": A,
29
+ className: "ttw:flex ttw:h-10 ttw:w-full ttw:items-center ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:bg-background ttw:px-3 ttw:text-left ttw:text-sm ttw:shadow-xs ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50",
30
+ children: [/* @__PURE__ */ h(v, {
31
+ "aria-hidden": !0,
32
+ className: "ttw:size-4 ttw:shrink-0 ttw:opacity-50"
33
+ }), /* @__PURE__ */ h("span", {
34
+ className: d("ttw:min-w-0 ttw:flex-1 ttw:truncate", !x && "ttw:text-muted-foreground"),
35
+ children: x || O.placeholder
36
+ })]
37
+ })
38
+ }), /* @__PURE__ */ h(c, {
39
+ align: "start",
40
+ className: "ttw:w-[var(--radix-popover-trigger-width)] ttw:p-0",
41
+ children: /* @__PURE__ */ g(e, {
42
+ shouldFilter: !1,
43
+ children: [/* @__PURE__ */ h(n, {
44
+ value: x,
45
+ onValueChange: S,
46
+ placeholder: O.placeholder,
47
+ "aria-label": O.placeholder
48
+ }), /* @__PURE__ */ g(i, {
49
+ className: d("ttw:max-h-72", b),
50
+ children: [
51
+ w ? /* @__PURE__ */ g("div", {
52
+ className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-2",
53
+ "aria-busy": "true",
54
+ children: [/* @__PURE__ */ h("span", {
55
+ className: "ttw:sr-only",
56
+ children: O.loading
57
+ }), Array.from({ length: y }).map((e, t) => /* @__PURE__ */ g("div", {
58
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:px-2 ttw:py-1.5",
59
+ children: [/* @__PURE__ */ h(u, {
60
+ height: 14,
61
+ width: "55%"
62
+ }), /* @__PURE__ */ h(u, {
63
+ height: 14,
64
+ width: "30%"
65
+ })]
66
+ }, t))]
67
+ }) : C.length === 0 && x ? /* @__PURE__ */ h("div", {
68
+ className: d("ttw:flex ttw:items-center ttw:justify-center ttw:py-6 ttw:text-center ttw:text-sm", b),
69
+ children: O.emptyResults
70
+ }) : C.length > 0 ? /* @__PURE__ */ h(t, { children: C.map((e, t) => /* @__PURE__ */ g(r, {
71
+ value: `${e.name} ${e.email} ${t}`,
72
+ onSelect: () => e.onSelect(),
73
+ children: [/* @__PURE__ */ h("span", {
74
+ className: "ttw:text-foreground",
75
+ children: e.name
76
+ }), /* @__PURE__ */ h("span", {
77
+ className: "ttw:ml-auto ttw:text-muted-foreground",
78
+ children: e.email
79
+ })]
80
+ }, `${e.name}:${e.email}:${t}`)) }) : null,
81
+ w || C.length > 0 || x ? /* @__PURE__ */ h(a, {}) : null,
82
+ /* @__PURE__ */ g(r, {
83
+ value: "__add_vendor__",
84
+ onSelect: T,
85
+ className: "ttw:sticky ttw:bottom-0 ttw:bg-popover ttw:text-primary",
86
+ children: [/* @__PURE__ */ h(_, { className: "ttw:size-4 ttw:text-primary" }), O.addVendorAction]
87
+ })
88
+ ]
89
+ })]
90
+ })
91
+ })]
92
+ })]
93
+ });
94
+ }
95
+ //#endregion
96
+ export { x as VendorSearchCombobox, x as default };
@@ -1,7 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js
2
- var e = {
3
- title: "Bill pay",
4
- description: "Review, approve, and pay your bills."
5
- };
6
- //#endregion
7
- export { e as DEFAULT_LABELS };
1
+ import "./index28.js";
2
+ import "./index29.js";
@@ -1,44 +1,13 @@
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 "./index30.js";
7
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { VENDOR_SUMMARY_CARD_LABELS_EN as e } from "./index25.js";
2
+ import "./index27.js";
3
+ import { VENDOR_SEARCH_COMBOBOX_LABELS_EN as t } from "./index28.js";
4
+ import "./index30.js";
8
5
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.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__ */ o("div", {
17
- className: "ttw:min-w-0",
18
- children: [/* @__PURE__ */ a("h2", {
19
- className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
20
- children: d.title
21
- }), /* @__PURE__ */ a("p", {
22
- className: "ttw:mt-1 ttw:text-sm ttw:text-muted-foreground",
23
- children: d.description
24
- })]
25
- }), /* @__PURE__ */ o(e, {
26
- value: l,
27
- onValueChange: u,
28
- className: "ttw:w-full",
29
- children: [/* @__PURE__ */ a(n, {
30
- variant: "line",
31
- children: c.map((e) => /* @__PURE__ */ a(r, {
32
- value: e.id,
33
- children: e.label
34
- }, e.id))
35
- }), c.map((e) => /* @__PURE__ */ a(t, {
36
- value: e.id,
37
- className: "ttw:mt-6",
38
- children: e.content
39
- }, e.id))]
40
- })]
41
- });
42
- }
6
+ var n = {
7
+ heading: "Who are you paying?",
8
+ summaryCard: e,
9
+ search: t,
10
+ noVendorPlaceholder: "No vendor selected"
11
+ };
43
12
  //#endregion
44
- export { s as BillPayWidgetUi };
13
+ export { n as VENDOR_SECTION_LABELS_EN };
@@ -1,2 +1,58 @@
1
+ import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { VendorSummaryCard as t } from "./index26.js";
3
+ import "./index27.js";
4
+ import { VendorSearchCombobox as n } from "./index29.js";
1
5
  import "./index30.js";
2
- import "./index31.js";
6
+ import { VENDOR_SECTION_LABELS_EN as r } from "./index31.js";
7
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
8
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js
9
+ function o(o) {
10
+ let { onEdit: s, onClear: c, error: l, testId: u, labels: d, disabled: f } = o, p = {
11
+ ...r,
12
+ ...d,
13
+ summaryCard: {
14
+ ...r.summaryCard,
15
+ ...d?.summaryCard,
16
+ ach: {
17
+ ...r.summaryCard.ach,
18
+ ...d?.summaryCard?.ach
19
+ }
20
+ },
21
+ search: {
22
+ ...r.search,
23
+ ...d?.search
24
+ }
25
+ };
26
+ return /* @__PURE__ */ a("section", {
27
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
28
+ "data-testid": u,
29
+ children: [
30
+ /* @__PURE__ */ i(e, {
31
+ component: "h2",
32
+ variant: "h6",
33
+ className: "ttw:font-semibold",
34
+ children: p.heading
35
+ }),
36
+ o.mode === "resolved" ? /* @__PURE__ */ i(t, {
37
+ summary: o.summary,
38
+ onEdit: s,
39
+ onClear: c,
40
+ paymentInstructions: f ? void 0 : o.paymentInstructions,
41
+ labels: p.summaryCard
42
+ }) : f ? /* @__PURE__ */ i(e, {
43
+ variant: "body2",
44
+ className: "ttw:text-muted-foreground",
45
+ children: p.noVendorPlaceholder
46
+ }) : o.mode === "selecting" ? /* @__PURE__ */ i(n, {
47
+ ...o.search,
48
+ labels: p.search
49
+ }) : o.newVendorForm,
50
+ l ? /* @__PURE__ */ i("p", {
51
+ className: "ttw:text-sm ttw:text-destructive",
52
+ children: l
53
+ }) : null
54
+ ]
55
+ });
56
+ }
57
+ //#endregion
58
+ export { o as VendorSection, o as default };
@@ -1,14 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js
2
- var e = {
3
- draft: "Draft",
4
- pending_approval: "Pending approval",
5
- ready_to_pay: "Ready to pay",
6
- partially_paid: "Partially paid",
7
- paid: "Paid",
8
- overdue: "Overdue",
9
- canceled: "Canceled",
10
- rejected: "Rejected",
11
- unknown: "Unknown"
12
- };
13
- //#endregion
14
- export { e as BILL_STATUS_BADGE_LABELS_EN };
1
+ import "./index31.js";
2
+ import "./index32.js";
@@ -1,24 +1,54 @@
1
- import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_STATUS_BADGE_LABELS_EN as n } from "./index33.js";
3
- import { jsxs as r } from "react/jsx-runtime";
1
+ import { BILL_DETAIL_BODY_LABELS_EN as e, mergeBillDetailBodyLabels as t } from "./index16.js";
2
+ import "./index18.js";
3
+ import { BILL_FORM_FIELDS_LABELS_EN as n } from "./index19.js";
4
+ import "./index21.js";
5
+ import { LINE_ITEMS_SECTION_LABELS_EN as r } from "./index22.js";
6
+ import "./index24.js";
7
+ import { VENDOR_SECTION_LABELS_EN as i } from "./index31.js";
8
+ import "./index33.js";
4
9
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js
5
- var i = {
6
- danger: "ttw:border-destructive/20 ttw:bg-destructive/10 ttw:text-destructive ttw:hover:bg-destructive/10",
7
- info: "ttw:border-blue-200 ttw:bg-blue-50 ttw:text-blue-700 ttw:hover:bg-blue-50",
8
- neutral: "ttw:border-border ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
9
- success: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700 ttw:hover:bg-emerald-50",
10
- warning: "ttw:border-amber-200 ttw:bg-amber-50 ttw:text-amber-800 ttw:hover:bg-amber-50"
10
+ var a = {
11
+ closeButton: "Close",
12
+ menuTrigger: "More actions",
13
+ cancelButton: "Cancel",
14
+ saveDraftButton: "Save and close",
15
+ finalizeButton: "Finalize",
16
+ hiddenDescription: "Enter the details of the bill you want to pay.",
17
+ vendorSection: i,
18
+ detailsFields: n,
19
+ lineItems: r,
20
+ detailBody: e
11
21
  };
12
- function a({ status: a, tone: o, labels: s, icon: c }) {
13
- let l = {
14
- ...n,
15
- ...s
16
- }, u = l[a] ?? l.unknown;
17
- return /* @__PURE__ */ r(e, {
18
- variant: "outline",
19
- className: t(c && "ttw:gap-1", i[o]),
20
- children: [c, u]
21
- });
22
+ function o(e) {
23
+ return {
24
+ ...a,
25
+ ...e,
26
+ vendorSection: {
27
+ ...a.vendorSection,
28
+ ...e?.vendorSection,
29
+ summaryCard: {
30
+ ...a.vendorSection.summaryCard,
31
+ ...e?.vendorSection?.summaryCard,
32
+ ach: {
33
+ ...a.vendorSection.summaryCard.ach,
34
+ ...e?.vendorSection?.summaryCard?.ach
35
+ }
36
+ },
37
+ search: {
38
+ ...a.vendorSection.search,
39
+ ...e?.vendorSection?.search
40
+ }
41
+ },
42
+ detailsFields: {
43
+ ...a.detailsFields,
44
+ ...e?.detailsFields
45
+ },
46
+ lineItems: {
47
+ ...a.lineItems,
48
+ ...e?.lineItems
49
+ },
50
+ detailBody: t(e?.detailBody)
51
+ };
22
52
  }
23
53
  //#endregion
24
- export { a as BillStatusBadge, a as default };
54
+ export { a as BILL_CREATE_SCREEN_LABELS_EN, o as mergeBillCreateScreenLabels };
@@ -1,2 +1,139 @@
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 "./index17.js";
5
+ import "./index18.js";
6
+ import { BillFormFields as f } from "./index20.js";
7
+ import "./index21.js";
8
+ import { LineItemsSection as p } from "./index23.js";
9
+ import "./index24.js";
10
+ import { VendorSection as m } from "./index32.js";
1
11
  import "./index33.js";
2
- import "./index34.js";
12
+ import { mergeBillCreateScreenLabels as h } from "./index34.js";
13
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
14
+ import { MoreVertical as y, X as b } from "lucide-react";
15
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js
16
+ function x({ open: x, onOpenChange: S, title: C, subtitle: w, notice: T, vendor: E, values: D, errors: O, onChange: k, lineItems: A, documentPanel: j, menuItems: M, readOnly: N, detail: P, isLineItemsLoading: F, isSaving: I, isSavingDraft: L, isFinalizing: R, onCancel: z, onSaveDraft: B, onFinalize: V, testId: H, labels: U }) {
17
+ let W = h(U), G = !!(N && P);
18
+ return /* @__PURE__ */ _(t, {
19
+ open: x,
20
+ onOpenChange: S,
21
+ children: /* @__PURE__ */ v(n, {
22
+ showCloseButton: !1,
23
+ 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",
24
+ "data-testid": H,
25
+ children: [
26
+ /* @__PURE__ */ v(i, {
27
+ className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
28
+ children: [/* @__PURE__ */ v("div", {
29
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
30
+ children: [
31
+ /* @__PURE__ */ _(a, {
32
+ className: "ttw:text-xl ttw:font-semibold",
33
+ children: C
34
+ }),
35
+ w ? /* @__PURE__ */ _("p", {
36
+ className: "ttw:text-sm ttw:text-muted-foreground",
37
+ children: w
38
+ }) : null,
39
+ /* @__PURE__ */ _(r, {
40
+ className: "ttw:sr-only",
41
+ children: W.hiddenDescription
42
+ })
43
+ ]
44
+ }), /* @__PURE__ */ v("div", {
45
+ className: "ttw:flex ttw:items-center ttw:gap-1",
46
+ children: [M && M.length > 0 ? /* @__PURE__ */ v(o, { children: [/* @__PURE__ */ _(l, {
47
+ asChild: !0,
48
+ children: /* @__PURE__ */ _(e, {
49
+ type: "button",
50
+ variant: "ghost",
51
+ size: "icon",
52
+ "aria-label": W.menuTrigger,
53
+ disabled: I,
54
+ children: /* @__PURE__ */ _(y, { className: "ttw:size-4" })
55
+ })
56
+ }), /* @__PURE__ */ _(s, {
57
+ align: "end",
58
+ children: M.map((e) => /* @__PURE__ */ _(c, {
59
+ variant: e.destructive ? "destructive" : void 0,
60
+ onSelect: e.onSelect,
61
+ children: e.label
62
+ }, e.id))
63
+ })] }) : null, /* @__PURE__ */ _(e, {
64
+ type: "button",
65
+ variant: "ghost",
66
+ size: "icon",
67
+ "aria-label": W.closeButton,
68
+ disabled: I,
69
+ onClick: z,
70
+ children: /* @__PURE__ */ _(b, { className: "ttw:size-4" })
71
+ })]
72
+ })]
73
+ }),
74
+ /* @__PURE__ */ v("div", {
75
+ className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
76
+ children: [/* @__PURE__ */ v("div", {
77
+ className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
78
+ children: [
79
+ O?.form ? /* @__PURE__ */ _(u, { children: O.form }) : null,
80
+ T,
81
+ G ? /* @__PURE__ */ _(d, {
82
+ ...P,
83
+ labels: W.detailBody
84
+ }) : /* @__PURE__ */ v(g, { children: [
85
+ /* @__PURE__ */ _(m, {
86
+ ...E,
87
+ onEdit: N ? void 0 : E.onEdit,
88
+ onClear: N ? void 0 : E.onClear,
89
+ disabled: N,
90
+ labels: W.vendorSection
91
+ }),
92
+ /* @__PURE__ */ _(f, {
93
+ values: D,
94
+ errors: O,
95
+ onChange: k,
96
+ disabled: N,
97
+ labels: W.detailsFields
98
+ }),
99
+ /* @__PURE__ */ _(p, {
100
+ ...A,
101
+ disabled: A.disabled || F || N,
102
+ labels: W.lineItems
103
+ })
104
+ ] })
105
+ ]
106
+ }), /* @__PURE__ */ _("div", {
107
+ className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
108
+ children: j
109
+ })]
110
+ }),
111
+ G ? null : /* @__PURE__ */ v("div", {
112
+ className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
113
+ children: [/* @__PURE__ */ _(e, {
114
+ type: "button",
115
+ variant: "ghost",
116
+ disabled: I,
117
+ onClick: z,
118
+ children: N ? W.closeButton : W.cancelButton
119
+ }), N ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(e, {
120
+ type: "button",
121
+ variant: "secondary",
122
+ onClick: B,
123
+ loading: L,
124
+ disabled: R || F || E.mode === "creating",
125
+ children: W.saveDraftButton
126
+ }), /* @__PURE__ */ _(e, {
127
+ type: "button",
128
+ onClick: V,
129
+ loading: R,
130
+ disabled: L || F || E.mode === "creating",
131
+ children: W.finalizeButton
132
+ })] })]
133
+ })
134
+ ]
135
+ })
136
+ });
137
+ }
138
+ //#endregion
139
+ export { x as BillCreateScreen, x as default };