@tesouro/embedded-components-react 0.3.58 → 0.3.61

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