@tesouro/embedded-components-react 0.4.11 → 0.4.13

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 (105) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +127 -122
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +4 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +42 -41
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +12 -62
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +12 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -12
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -12
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -16
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +30 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -4
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +46 -26
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +296 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -50
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +7 -300
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +49 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +2 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +14 -45
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +50 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -23
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +21 -338
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +340 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -16
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +13 -117
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +120 -2
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -12
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +10 -97
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +99 -2
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +1 -12
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +11 -57
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +58 -1
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -54
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +52 -10
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +10 -157
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +181 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -4
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -39
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +41 -2
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -7
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +5 -90
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +92 -2
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -4
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -14
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +16 -2
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +1 -85
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +83 -284
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +283 -9
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +13 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -8
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +6 -37
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +39 -2
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -39
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +36 -9
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -199
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +201 -3
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +3 -17
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +15 -345
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +345 -8
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +6 -4
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -91
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +93 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -127
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +125 -26
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +26 -87
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +89 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -7
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +5 -28
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +30 -2
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -7
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -32
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +34 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -12
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +10 -104
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +105 -1
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -17
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +15 -123
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +125 -2
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +2 -18
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +14 -6
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +7 -167
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +170 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -14
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +11 -105
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +108 -2
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -10
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +8 -50
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +52 -2
  102. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +871 -862
  103. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  104. package/package.json +1 -1
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +0 -2
@@ -1,2 +1,182 @@
1
+ import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a, DropdownMenu as o, DropdownMenuContent as s, DropdownMenuGroup as c, DropdownMenuItem as l, DropdownMenuLabel as u, DropdownMenuSeparator as ee, DropdownMenuTrigger as d } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { InlineErrorAlert as f } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
3
+ import "../../../shared/ui/dist/index.js";
4
+ import { BillDetailBody as te } from "./index24.js";
5
+ import "./index25.js";
6
+ import { BillFormFields as p } from "./index27.js";
7
+ import "./index28.js";
8
+ import { groupBySectionHeading as m } from "./index29.js";
9
+ import "./index31.js";
10
+ import { LineItemsSection as h } from "./index33.js";
11
+ import "./index34.js";
12
+ import { VendorSection as g } from "./index42.js";
1
13
  import "./index43.js";
2
- import "./index45.js";
14
+ import { mergeBillCreateScreenLabels as _ } from "./index44.js";
15
+ import { useFocusFirstInvalidField as v } from "./index45.js";
16
+ import { Fragment as y, useId as b } from "react";
17
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
18
+ import { Minimize2 as w, MoreVertical as ne, X as T } from "lucide-react";
19
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js
20
+ function E({ open: E, onOpenChange: D, title: O, subtitle: k, notice: A, vendor: j, values: M, errors: N, onChange: P, lineItems: F, documentPanel: I, menuItems: L, readOnly: R, detail: z, isLineItemsLoading: B, isSaving: V, isSavingDraft: H, isFinalizing: U, showFinalize: W = !0, onCancel: G, onCollapse: K, onSaveDraft: q, onFinalize: J, scrollToErrorToken: Y, testId: X, labels: Z }) {
21
+ let re = b(), Q = _(Z), $ = !!(R && z), ie = L ? m(L) : [], ae = v(Y);
22
+ return /* @__PURE__ */ S(t, {
23
+ open: E,
24
+ onOpenChange: D,
25
+ children: /* @__PURE__ */ C(n, {
26
+ showCloseButton: !1,
27
+ className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
28
+ "data-testid": X,
29
+ children: [
30
+ /* @__PURE__ */ C(i, {
31
+ className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
32
+ children: [/* @__PURE__ */ C("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
34
+ children: [
35
+ /* @__PURE__ */ S(a, {
36
+ className: "ttw:text-xl ttw:font-semibold",
37
+ children: O
38
+ }),
39
+ k ? /* @__PURE__ */ S("p", {
40
+ className: "ttw:text-sm ttw:text-muted-foreground",
41
+ children: k
42
+ }) : null,
43
+ /* @__PURE__ */ S(r, {
44
+ className: "ttw:sr-only",
45
+ children: Q.hiddenDescription
46
+ })
47
+ ]
48
+ }), /* @__PURE__ */ C("div", {
49
+ className: "ttw:flex ttw:items-center ttw:gap-1",
50
+ children: [
51
+ K ? /* @__PURE__ */ S(e, {
52
+ type: "button",
53
+ variant: "ghost",
54
+ size: "icon",
55
+ "aria-label": Q.collapseButton,
56
+ disabled: V,
57
+ onClick: K,
58
+ children: /* @__PURE__ */ S(w, { className: "ttw:size-4" })
59
+ }) : null,
60
+ L && L.length > 0 ? /* @__PURE__ */ C(o, { children: [/* @__PURE__ */ S(d, {
61
+ asChild: !0,
62
+ children: /* @__PURE__ */ S(e, {
63
+ type: "button",
64
+ variant: "ghost",
65
+ size: "icon",
66
+ "aria-label": Q.menuTrigger,
67
+ disabled: V,
68
+ children: /* @__PURE__ */ S(ne, { className: "ttw:size-4" })
69
+ })
70
+ }), /* @__PURE__ */ S(s, {
71
+ align: "end",
72
+ children: ie.map((e, t) => {
73
+ let n = e.items.map((e) => {
74
+ let t = e.icon;
75
+ return /* @__PURE__ */ C(l, {
76
+ variant: e.destructive ? "destructive" : void 0,
77
+ disabled: e.disabled,
78
+ onSelect: e.onSelect,
79
+ children: [t ? /* @__PURE__ */ S(t, { className: "ttw:size-4" }) : null, e.label]
80
+ }, e.id);
81
+ });
82
+ if (!e.heading) return /* @__PURE__ */ S(y, { children: n }, e.items[0]?.id);
83
+ let r = `${re}-${t}`;
84
+ return /* @__PURE__ */ C(y, { children: [
85
+ t > 0 ? /* @__PURE__ */ S(ee, {}) : null,
86
+ /* @__PURE__ */ S(u, {
87
+ id: r,
88
+ className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
89
+ children: e.heading
90
+ }),
91
+ /* @__PURE__ */ S(c, {
92
+ "aria-labelledby": r,
93
+ children: n
94
+ })
95
+ ] }, e.items[0]?.id);
96
+ })
97
+ })] }) : null,
98
+ /* @__PURE__ */ S(e, {
99
+ type: "button",
100
+ variant: "ghost",
101
+ size: "icon",
102
+ "aria-label": Q.closeButton,
103
+ disabled: V,
104
+ onClick: G,
105
+ children: /* @__PURE__ */ S(T, { className: "ttw:size-4" })
106
+ })
107
+ ]
108
+ })]
109
+ }),
110
+ /* @__PURE__ */ C("div", {
111
+ className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:overflow-hidden",
112
+ children: [/* @__PURE__ */ C("div", {
113
+ ref: ae,
114
+ className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
115
+ children: [
116
+ N?.form ? /* @__PURE__ */ S("div", {
117
+ "data-invalid": "true",
118
+ children: /* @__PURE__ */ S(f, { children: N.form })
119
+ }) : null,
120
+ A ? /* @__PURE__ */ S("div", {
121
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
122
+ children: A
123
+ }) : null,
124
+ $ ? /* @__PURE__ */ S(te, {
125
+ ...z,
126
+ labels: Q.detailBody
127
+ }) : /* @__PURE__ */ C(x, { children: [
128
+ /* @__PURE__ */ S(g, {
129
+ ...j,
130
+ onEdit: R ? void 0 : j.onEdit,
131
+ onClear: R ? void 0 : j.onClear,
132
+ disabled: R,
133
+ labels: Q.vendorSection
134
+ }),
135
+ /* @__PURE__ */ S(p, {
136
+ values: M,
137
+ errors: N,
138
+ onChange: P,
139
+ disabled: R,
140
+ labels: Q.detailsFields
141
+ }),
142
+ /* @__PURE__ */ S(h, {
143
+ ...F,
144
+ disabled: F.disabled || B || R,
145
+ labels: Q.lineItems
146
+ })
147
+ ] })
148
+ ]
149
+ }), /* @__PURE__ */ S("div", {
150
+ className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
151
+ children: I
152
+ })]
153
+ }),
154
+ $ ? null : /* @__PURE__ */ C("div", {
155
+ className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
156
+ children: [/* @__PURE__ */ S(e, {
157
+ type: "button",
158
+ variant: "ghost",
159
+ disabled: V,
160
+ onClick: G,
161
+ children: R ? Q.closeButton : Q.cancelButton
162
+ }), R ? null : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(e, {
163
+ type: "button",
164
+ variant: W ? "secondary" : "default",
165
+ onClick: q,
166
+ loading: H,
167
+ disabled: V || U || B || j.mode === "creating",
168
+ children: Q.saveDraftButton
169
+ }), W ? /* @__PURE__ */ S(e, {
170
+ type: "button",
171
+ onClick: J,
172
+ loading: U,
173
+ disabled: V || H || B || j.mode === "creating",
174
+ children: Q.finalizeButton
175
+ }) : null] })]
176
+ })
177
+ ]
178
+ })
179
+ });
180
+ }
181
+ //#endregion
182
+ export { E as BillCreateScreen, E as default };
@@ -1,4 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js
2
- var e = { description: "Review, approve, and pay your bills." };
3
- //#endregion
4
- export { e as DEFAULT_LABELS };
1
+ import "./index44.js";
2
+ import "./index46.js";
@@ -1,41 +1,4 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { DEFAULT_LABELS as i } from "./index47.js";
7
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js
9
- function s({ labels: s, tabs: c, selectedTabId: l, onTabChange: u }) {
10
- let d = {
11
- ...i,
12
- ...s
13
- };
14
- return /* @__PURE__ */ o("section", {
15
- className: "ttw:w-full ttw:space-y-5",
16
- children: [/* @__PURE__ */ a("div", {
17
- className: "ttw:min-w-0",
18
- children: /* @__PURE__ */ a("p", {
19
- className: "ttw:text-sm ttw:text-muted-foreground",
20
- children: d.description
21
- })
22
- }), /* @__PURE__ */ o(e, {
23
- value: l,
24
- onValueChange: u,
25
- className: "ttw:w-full",
26
- children: [/* @__PURE__ */ a(n, {
27
- variant: "line",
28
- children: c.map((e) => /* @__PURE__ */ a(r, {
29
- value: e.id,
30
- children: e.label
31
- }, e.id))
32
- }), c.map((e) => /* @__PURE__ */ a(t, {
33
- value: e.id,
34
- className: "ttw:mt-6",
35
- children: e.content
36
- }, e.id))]
37
- })]
38
- });
39
- }
2
+ var e = { description: "Review, approve, and pay your bills." };
40
3
  //#endregion
41
- export { s as BillPayWidgetUi };
4
+ export { e as DEFAULT_LABELS };
@@ -1,2 +1,41 @@
1
- import "./index47.js";
2
- import "./index48.js";
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 "./index48.js";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js
9
+ function s({ labels: s, tabs: c, selectedTabId: l, onTabChange: u }) {
10
+ let d = {
11
+ ...i,
12
+ ...s
13
+ };
14
+ return /* @__PURE__ */ o("section", {
15
+ className: "ttw:w-full ttw:space-y-5",
16
+ children: [/* @__PURE__ */ a("div", {
17
+ className: "ttw:min-w-0",
18
+ children: /* @__PURE__ */ a("p", {
19
+ className: "ttw:text-sm ttw:text-muted-foreground",
20
+ children: d.description
21
+ })
22
+ }), /* @__PURE__ */ o(e, {
23
+ value: l,
24
+ onValueChange: u,
25
+ className: "ttw:w-full",
26
+ children: [/* @__PURE__ */ a(n, {
27
+ variant: "line",
28
+ children: c.map((e) => /* @__PURE__ */ a(r, {
29
+ value: e.id,
30
+ children: e.label
31
+ }, e.id))
32
+ }), c.map((e) => /* @__PURE__ */ a(t, {
33
+ value: e.id,
34
+ className: "ttw:mt-6",
35
+ children: e.content
36
+ }, e.id))]
37
+ })]
38
+ });
39
+ }
40
+ //#endregion
41
+ export { s as BillPayWidgetUi };
@@ -1,7 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js
2
- var e = {
3
- cancelButton: "Cancel",
4
- orConnector: "or"
5
- };
6
- //#endregion
7
- export { e as BILL_DECISION_DIALOG_LABELS_EN };
1
+ import "./index48.js";
2
+ import "./index49.js";
@@ -1,92 +1,7 @@
1
- import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, Label as s, Textarea as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_DECISION_DIALOG_LABELS_EN as l } from "./index50.js";
3
- import { Fragment as u, useEffect as d, useState as f } from "react";
4
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
5
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js
6
- function h({ open: h, copy: g, onConfirm: _, onCancel: v, isPending: y, confirmIcon: b, labels: x, testId: S, confirmTestId: C, reasonTestId: w, reasonFieldId: T = "bill-decision-reason" }) {
7
- let E = {
8
- ...l,
9
- ...x
10
- }, [D, O] = f("");
11
- if (d(() => {
12
- h || O("");
13
- }, [h]), !g) return null;
14
- let { alignment: k = "start", icon: A, tone: j = "default", actionWidth: M = "auto" } = g.presentation ?? {}, N = k === "center", P = M === "equal", F = g.pendingApprovers ?? [];
15
- return /* @__PURE__ */ p(e, {
16
- open: h,
17
- onOpenChange: (e) => {
18
- e || v();
19
- },
20
- children: /* @__PURE__ */ m(t, {
21
- "data-testid": S,
22
- children: [
23
- /* @__PURE__ */ m(i, {
24
- className: N ? "ttw:items-center ttw:sm:text-center" : void 0,
25
- children: [
26
- A ? /* @__PURE__ */ p("span", {
27
- className: j === "destructive" ? "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive" : "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
28
- children: /* @__PURE__ */ p(A, { className: j === "destructive" ? "ttw:size-4 ttw:text-white" : "ttw:size-4 ttw:text-foreground" })
29
- }) : null,
30
- /* @__PURE__ */ p(a, { children: g.title }),
31
- /* @__PURE__ */ p(n, { children: g.description })
32
- ]
33
- }),
34
- F.length > 0 ? /* @__PURE__ */ p("div", {
35
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
36
- children: /* @__PURE__ */ p("ul", {
37
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
38
- children: F.map((e) => /* @__PURE__ */ p("li", {
39
- className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
40
- children: e.names.map((e, t) => /* @__PURE__ */ m(u, { children: [t > 0 ? /* @__PURE__ */ p("span", {
41
- className: "ttw:text-muted-foreground",
42
- children: ` ${E.orConnector} `
43
- }) : null, /* @__PURE__ */ p("span", {
44
- className: "ttw:font-medium",
45
- children: e
46
- })] }, e))
47
- }, e.id))
48
- })
49
- }) : null,
50
- g.reason ? /* @__PURE__ */ m("div", {
51
- className: "ttw:flex ttw:flex-col ttw:gap-2",
52
- children: [/* @__PURE__ */ m(s, {
53
- htmlFor: T,
54
- children: [g.reason.label, /* @__PURE__ */ p("span", {
55
- className: "ttw:ml-1 ttw:text-muted-foreground",
56
- children: g.reason.optionalHint
57
- })]
58
- }), /* @__PURE__ */ p(c, {
59
- id: T,
60
- value: D,
61
- placeholder: g.reason.placeholder,
62
- onChange: (e) => O(e.target.value),
63
- disabled: y,
64
- "data-testid": w
65
- })]
66
- }) : null,
67
- /* @__PURE__ */ m(r, {
68
- className: N ? "ttw:sm:justify-center" : void 0,
69
- children: [/* @__PURE__ */ p(o, {
70
- type: "button",
71
- variant: "outline",
72
- onClick: v,
73
- disabled: y,
74
- className: P ? "ttw:flex-1" : void 0,
75
- children: E.cancelButton
76
- }), /* @__PURE__ */ m(o, {
77
- type: "button",
78
- variant: j === "destructive" ? "destructive" : "default",
79
- loading: y,
80
- disabled: y,
81
- onClick: () => _(g.reason ? D.trim() : void 0),
82
- className: P ? "ttw:flex-1" : void 0,
83
- "data-testid": C,
84
- children: [y ? null : b, g.confirmButton]
85
- })]
86
- })
87
- ]
88
- })
89
- });
90
- }
2
+ var e = {
3
+ cancelButton: "Cancel",
4
+ orConnector: "or"
5
+ };
91
6
  //#endregion
92
- export { h as BillDecisionDialog, h as default };
7
+ export { e as BILL_DECISION_DIALOG_LABELS_EN };
@@ -1,2 +1,92 @@
1
- import "./index50.js";
2
- import "./index51.js";
1
+ import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o, Label as s, Textarea as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_DECISION_DIALOG_LABELS_EN as l } from "./index51.js";
3
+ import { Fragment as u, useEffect as d, useState as f } from "react";
4
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
5
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js
6
+ function h({ open: h, copy: g, onConfirm: _, onCancel: v, isPending: y, confirmIcon: b, labels: x, testId: S, confirmTestId: C, reasonTestId: w, reasonFieldId: T = "bill-decision-reason" }) {
7
+ let E = {
8
+ ...l,
9
+ ...x
10
+ }, [D, O] = f("");
11
+ if (d(() => {
12
+ h || O("");
13
+ }, [h]), !g) return null;
14
+ let { alignment: k = "start", icon: A, tone: j = "default", actionWidth: M = "auto" } = g.presentation ?? {}, N = k === "center", P = M === "equal", F = g.pendingApprovers ?? [];
15
+ return /* @__PURE__ */ p(e, {
16
+ open: h,
17
+ onOpenChange: (e) => {
18
+ e || v();
19
+ },
20
+ children: /* @__PURE__ */ m(t, {
21
+ "data-testid": S,
22
+ children: [
23
+ /* @__PURE__ */ m(i, {
24
+ className: N ? "ttw:items-center ttw:sm:text-center" : void 0,
25
+ children: [
26
+ A ? /* @__PURE__ */ p("span", {
27
+ className: j === "destructive" ? "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive" : "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
28
+ children: /* @__PURE__ */ p(A, { className: j === "destructive" ? "ttw:size-4 ttw:text-white" : "ttw:size-4 ttw:text-foreground" })
29
+ }) : null,
30
+ /* @__PURE__ */ p(a, { children: g.title }),
31
+ /* @__PURE__ */ p(n, { children: g.description })
32
+ ]
33
+ }),
34
+ F.length > 0 ? /* @__PURE__ */ p("div", {
35
+ className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1 ttw:rounded-md ttw:bg-muted ttw:px-3 ttw:py-3",
36
+ children: /* @__PURE__ */ p("ul", {
37
+ className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
38
+ children: F.map((e) => /* @__PURE__ */ p("li", {
39
+ className: "ttw:list-disc ttw:text-sm ttw:text-foreground",
40
+ children: e.names.map((e, t) => /* @__PURE__ */ m(u, { children: [t > 0 ? /* @__PURE__ */ p("span", {
41
+ className: "ttw:text-muted-foreground",
42
+ children: ` ${E.orConnector} `
43
+ }) : null, /* @__PURE__ */ p("span", {
44
+ className: "ttw:font-medium",
45
+ children: e
46
+ })] }, e))
47
+ }, e.id))
48
+ })
49
+ }) : null,
50
+ g.reason ? /* @__PURE__ */ m("div", {
51
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
52
+ children: [/* @__PURE__ */ m(s, {
53
+ htmlFor: T,
54
+ children: [g.reason.label, /* @__PURE__ */ p("span", {
55
+ className: "ttw:ml-1 ttw:text-muted-foreground",
56
+ children: g.reason.optionalHint
57
+ })]
58
+ }), /* @__PURE__ */ p(c, {
59
+ id: T,
60
+ value: D,
61
+ placeholder: g.reason.placeholder,
62
+ onChange: (e) => O(e.target.value),
63
+ disabled: y,
64
+ "data-testid": w
65
+ })]
66
+ }) : null,
67
+ /* @__PURE__ */ m(r, {
68
+ className: N ? "ttw:sm:justify-center" : void 0,
69
+ children: [/* @__PURE__ */ p(o, {
70
+ type: "button",
71
+ variant: "outline",
72
+ onClick: v,
73
+ disabled: y,
74
+ className: P ? "ttw:flex-1" : void 0,
75
+ children: E.cancelButton
76
+ }), /* @__PURE__ */ m(o, {
77
+ type: "button",
78
+ variant: j === "destructive" ? "destructive" : "default",
79
+ loading: y,
80
+ disabled: y,
81
+ onClick: () => _(g.reason ? D.trim() : void 0),
82
+ className: P ? "ttw:flex-1" : void 0,
83
+ "data-testid": C,
84
+ children: [y ? null : b, g.confirmButton]
85
+ })]
86
+ })
87
+ ]
88
+ })
89
+ });
90
+ }
91
+ //#endregion
92
+ export { h as BillDecisionDialog, h as default };
@@ -1,4 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js
2
- var e = { missing: "Missing" };
3
- //#endregion
4
- export { e as MISSING_VALUE_LABELS_EN };
1
+ import "./index51.js";
2
+ import "./index52.js";
@@ -1,16 +1,4 @@
1
- import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { MISSING_VALUE_LABELS_EN as t } from "./index53.js";
3
- import { jsx as n } from "react/jsx-runtime";
4
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js
5
- function r({ labels: r, className: i }) {
6
- let a = {
7
- ...t,
8
- ...r
9
- };
10
- return /* @__PURE__ */ n("span", {
11
- className: e("ttw:text-amber-700", i),
12
- children: a.missing
13
- });
14
- }
2
+ var e = { missing: "Missing" };
15
3
  //#endregion
16
- export { r as MissingValue, r as default };
4
+ export { e as MISSING_VALUE_LABELS_EN };
@@ -1,2 +1,16 @@
1
- import "./index53.js";
2
- import "./index54.js";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { MISSING_VALUE_LABELS_EN as t } from "./index54.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js
5
+ function r({ labels: r, className: i }) {
6
+ let a = {
7
+ ...t,
8
+ ...r
9
+ };
10
+ return /* @__PURE__ */ n("span", {
11
+ className: e("ttw:text-amber-700", i),
12
+ children: a.missing
13
+ });
14
+ }
15
+ //#endregion
16
+ export { r as MissingValue, r as default };
@@ -1,86 +1,2 @@
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";
5
- import "./index14.js";
6
- import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index18.js";
7
- import "./index21.js";
8
- import { DUE_DATE_VALUE_LABELS_EN as i } from "./index22.js";
9
- import "./index24.js";
10
- import { MISSING_VALUE_LABELS_EN as a } from "./index53.js";
1
+ import "./index54.js";
11
2
  import "./index55.js";
12
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js
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
- payToHeading: "Pay to",
23
- payToHeadingPaid: "Paid to",
24
- invoiceDetailsHeading: "Invoice details",
25
- lineItemsHeading: "Line items",
26
- lineItemsQuantityHeading: "Qty/Price",
27
- lineItemsAmountHeading: "Amount",
28
- payButton: "Pay",
29
- markAsPaidButton: "Mark as paid",
30
- rejectButton: "Reject",
31
- approveButton: "Approve",
32
- cancelButton: "Cancel bill",
33
- cancelScheduledPaymentButton: "Cancel scheduled payment",
34
- reopenButton: "Reopen bill",
35
- forceApproveButton: "Approve",
36
- forceRejectButton: "Reject",
37
- policyOverridesGroup: "Policy overrides",
38
- overflowMenuTrigger: "Bill actions",
39
- expandButton: "Open full screen",
40
- closeButton: "Close",
41
- statusBadge: r,
42
- approvalPolicy: n,
43
- dueDate: i
44
- }, s = ".pdf,.png,.jpg,.jpeg,.doc,.docx", c = {
45
- ...t,
46
- dropzone: {
47
- ...t.dropzone,
48
- fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
49
- }
50
- }, l = {
51
- createButton: "Add bill",
52
- columnVendor: "Vendor",
53
- columnAttachment: "Attachment",
54
- columnIssueDate: "Issue date",
55
- columnDueDate: "Due date",
56
- columnScheduledDate: "Scheduled date",
57
- columnPaidDate: "Paid date",
58
- columnAmountDue: "Amount due",
59
- columnAmountScheduled: "Amount scheduled",
60
- columnAmountPaid: "Amount paid",
61
- columnTotalAmount: "Total amount",
62
- columnStatus: "Status",
63
- columnAddedOn: "Added on",
64
- columnActions: "Actions",
65
- openRow: (e) => `View bill — ${e}`,
66
- duplicateBillsReviewButton: "Review duplicates",
67
- searchPlaceholder: "Search by vendor name",
68
- searchLabel: "Search bills by vendor name",
69
- filterTabsLabel: "Filter bills by status",
70
- filteredEmptyTitle: "No bills match",
71
- filteredEmptyDescription: "Try a different search or status filter.",
72
- errorTitle: "Couldn't load bills",
73
- errorDescription: "Something went wrong. Try again.",
74
- errorRetry: "Retry",
75
- statusBadge: r,
76
- addBill: c,
77
- sortableHeader: {
78
- sortedAscending: e.sortedAscending,
79
- sortedDescending: e.sortedDescending,
80
- notSorted: e.notSorted
81
- },
82
- missingValue: a,
83
- dueDate: i
84
- };
85
- //#endregion
86
- export { l as BILLS_SCREEN_LABELS_EN, s as BILLS_SCREEN_UPLOAD_ACCEPT, o as BILL_DETAILS_SHEET_LABELS_EN };