@tesouro/embedded-components-react 0.3.58 → 0.3.60

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 (79) 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/shared/feature/dist/lib/analytics/build-info.js +1 -1
  78. package/package.json +1 -1
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +0 -2
@@ -1,26 +1,121 @@
1
- import { BILL_STATUS_BADGE_LABELS_EN as e } from "./index18.js";
1
+ import { Button as e, Checkbox as t, Table as n, TableBody as r, TableCell as i, TableHead as a, TableHeader as o, TableRow as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BillStatusBadge as c } from "./index20.js";
2
3
  import "./index21.js";
4
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
5
+ import { Ban as d, ChevronRightIcon as f } from "lucide-react";
3
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js
4
- var t = {
5
- title: "Possible duplicate files",
6
- descriptionFirstLine: "The following bills may be duplicates of each other.",
7
- descriptionSecondLine: "You can keep or remove duplicates, or view them for more detail before making a decision.",
8
- columnAddedOn: "Added on",
9
- columnInvoiceDate: "Invoice date",
10
- columnStatus: "Status",
11
- columnInvoiceNumber: "Invoice number",
12
- columnAmount: "Amount",
13
- columnActions: "Actions",
14
- statusBadge: e,
15
- removalHelperBeforeDraft: "Removing duplicates deletes ",
16
- removalHelperDraft: "Draft",
17
- removalHelperBetween: " bills, and cancels ",
18
- removalHelperFinalized: "Finalized bills",
19
- removalHelperAfterFinalized: ". This action cannot be undone.",
20
- keepSelectedButton: "Keep selected files as their own file",
21
- removeDuplicatesButton: "Remove selected duplicates",
22
- emptyState: "No possible duplicates left to review.",
23
- errorState: "Couldn't load the possible duplicates. Try again shortly."
24
- };
7
+ var p = "ttw:border-b ttw:border-border", m = `${p} ttw:whitespace-nowrap`, h = "ttw:bg-white", g = "ttw:gap-4", _ = "ttw:gap-2.5";
8
+ function v({ group: v, isBusy: y, labels: b }) {
9
+ let x = v.isActionDisabled || y || v.isRemoveUnavailable, S = !!(v.onKeepSelected || v.onRemoveDuplicates);
10
+ return /* @__PURE__ */ u("div", {
11
+ className: `ttw:flex ttw:flex-col ${g}`,
12
+ children: [/* @__PURE__ */ u(n, { children: [/* @__PURE__ */ l(o, { children: /* @__PURE__ */ u(s, { children: [
13
+ S ? /* @__PURE__ */ l(a, {
14
+ className: "ttw:w-11",
15
+ children: /* @__PURE__ */ l(t, {
16
+ className: h,
17
+ "aria-label": v.selectAllLabel,
18
+ checked: v.selectAllChecked ?? !1,
19
+ disabled: y,
20
+ onCheckedChange: v.onToggleAllRows
21
+ })
22
+ }) : null,
23
+ /* @__PURE__ */ l(a, { children: b.columnAddedOn }),
24
+ /* @__PURE__ */ l(a, { children: b.columnInvoiceDate }),
25
+ /* @__PURE__ */ l(a, { children: b.columnStatus }),
26
+ /* @__PURE__ */ l(a, { children: b.columnInvoiceNumber }),
27
+ /* @__PURE__ */ l(a, { children: b.columnAmount }),
28
+ /* @__PURE__ */ l(a, {
29
+ className: "ttw:w-14",
30
+ children: /* @__PURE__ */ l("span", {
31
+ className: "ttw:sr-only",
32
+ children: b.columnActions
33
+ })
34
+ })
35
+ ] }) }), /* @__PURE__ */ l(r, { children: v.rows.map((n) => /* @__PURE__ */ u(s, { children: [
36
+ S ? /* @__PURE__ */ l(i, {
37
+ className: p,
38
+ children: /* @__PURE__ */ l(t, {
39
+ className: h,
40
+ "aria-label": n.selectLabel,
41
+ checked: n.isSelected ?? !1,
42
+ disabled: y,
43
+ onCheckedChange: n.onToggleSelected
44
+ })
45
+ }) : null,
46
+ /* @__PURE__ */ l(i, {
47
+ className: m,
48
+ children: n.addedOnLabel
49
+ }),
50
+ /* @__PURE__ */ l(i, {
51
+ className: m,
52
+ children: n.invoiceDateLabel
53
+ }),
54
+ /* @__PURE__ */ l(i, {
55
+ className: m,
56
+ children: n.status && n.statusTone ? /* @__PURE__ */ l(c, {
57
+ status: n.status,
58
+ tone: n.statusTone,
59
+ labels: b.statusBadge
60
+ }) : null
61
+ }),
62
+ /* @__PURE__ */ l(i, {
63
+ className: m,
64
+ children: n.invoiceNumberLabel
65
+ }),
66
+ /* @__PURE__ */ l(i, {
67
+ className: m,
68
+ children: n.amountLabel
69
+ }),
70
+ /* @__PURE__ */ l(i, {
71
+ className: p,
72
+ children: /* @__PURE__ */ l("div", {
73
+ className: "ttw:flex ttw:justify-end",
74
+ children: /* @__PURE__ */ l(e, {
75
+ variant: "ghost",
76
+ size: "icon",
77
+ "aria-label": n.openLabel,
78
+ disabled: y,
79
+ onClick: n.onOpen,
80
+ children: /* @__PURE__ */ l(f, { className: "ttw:size-4" })
81
+ })
82
+ })
83
+ })
84
+ ] }, n.id)) })] }), /* @__PURE__ */ u("div", {
85
+ className: "ttw:flex ttw:flex-col ttw:items-end ttw:gap-2",
86
+ children: [/* @__PURE__ */ u("p", {
87
+ className: "ttw:text-right ttw:text-sm ttw:text-muted-foreground",
88
+ children: [
89
+ b.removalHelperBeforeDraft,
90
+ /* @__PURE__ */ l("span", {
91
+ className: "ttw:font-semibold",
92
+ children: b.removalHelperDraft
93
+ }),
94
+ b.removalHelperBetween,
95
+ /* @__PURE__ */ l("span", {
96
+ className: "ttw:font-semibold",
97
+ children: b.removalHelperFinalized
98
+ }),
99
+ b.removalHelperAfterFinalized
100
+ ]
101
+ }), S ? /* @__PURE__ */ u("div", {
102
+ className: `ttw:flex ttw:flex-wrap ttw:justify-end ${_}`,
103
+ children: [v.onKeepSelected ? /* @__PURE__ */ l(e, {
104
+ variant: "outline",
105
+ disabled: v.isActionDisabled || y,
106
+ loading: v.pendingAction === "keep",
107
+ onClick: v.onKeepSelected,
108
+ children: b.keepSelectedButton
109
+ }) : null, v.onRemoveDuplicates ? /* @__PURE__ */ u(e, {
110
+ variant: "destructive",
111
+ disabled: x,
112
+ loading: v.pendingAction === "remove",
113
+ onClick: v.onRemoveDuplicates,
114
+ children: [v.pendingAction === "remove" ? null : /* @__PURE__ */ l(d, {}), b.removeDuplicatesButton]
115
+ }) : null]
116
+ }) : null]
117
+ })]
118
+ });
119
+ }
25
120
  //#endregion
26
- export { t as DUPLICATE_BILLS_DIALOG_LABELS_EN };
121
+ export { v as DuplicateBillsGroupPanel, v as default };
@@ -1,89 +1,26 @@
1
- import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r, Dialog as i, DialogContent as a, DialogDescription as o, DialogHeader as s, DialogTitle as c, Spinner as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { DUPLICATE_BILLS_DIALOG_LABELS_EN as u } from "./index74.js";
3
- import { DuplicateBillsGroupPanel as d } from "./index73.js";
4
- import { useMemo as f } from "react";
5
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
6
- import { CopyX as h } from "lucide-react";
1
+ import { BILL_STATUS_BADGE_LABELS_EN as e } from "./index18.js";
2
+ import "./index21.js";
7
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js
8
- function g({ open: g, onOpenChange: _, groups: v, isLoading: y, isError: b, expandedGroupId: x, onExpandedGroupChange: S, isBusy: C, labels: w }) {
9
- let T = f(() => ({
10
- ...u,
11
- ...w,
12
- statusBadge: {
13
- ...u.statusBadge,
14
- ...w?.statusBadge
15
- }
16
- }), [w]);
17
- return /* @__PURE__ */ p(i, {
18
- open: g,
19
- onOpenChange: (e) => {
20
- C && !e || _(e);
21
- },
22
- children: /* @__PURE__ */ m(a, {
23
- className: "ttw:flex ttw:flex-col ttw:gap-8 ttw:overflow-hidden ttw:max-h-[90vh] ttw:sm:max-w-240",
24
- showCloseButton: !C,
25
- children: [/* @__PURE__ */ m(s, {
26
- className: "ttw:items-center ttw:gap-3 ttw:text-center ttw:sm:text-center",
27
- children: [
28
- /* @__PURE__ */ p("div", {
29
- className: "ttw:flex ttw:items-center ttw:justify-center ttw:border ttw:rounded-full ttw:size-11 ttw:border-orange-300 ttw:bg-orange-200",
30
- children: /* @__PURE__ */ p(h, {
31
- className: "ttw:size-4 ttw:text-orange-950",
32
- "aria-hidden": !0
33
- })
34
- }),
35
- /* @__PURE__ */ p(c, { children: T.title }),
36
- /* @__PURE__ */ m(o, { children: [/* @__PURE__ */ p("span", {
37
- className: "ttw:block",
38
- children: T.descriptionFirstLine
39
- }), /* @__PURE__ */ p("span", {
40
- className: "ttw:block",
41
- children: T.descriptionSecondLine
42
- })] })
43
- ]
44
- }), /* @__PURE__ */ p("div", {
45
- className: "ttw:min-h-0 ttw:overflow-y-auto",
46
- children: y ? /* @__PURE__ */ p("div", {
47
- className: "ttw:flex ttw:justify-center ttw:py-8",
48
- children: /* @__PURE__ */ p(l, { className: "ttw:size-6 ttw:text-muted-foreground" })
49
- }) : b ? /* @__PURE__ */ p("p", {
50
- className: "ttw:py-8 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
51
- children: T.errorState
52
- }) : v.length === 0 ? /* @__PURE__ */ p("p", {
53
- className: "ttw:py-8 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
54
- children: T.emptyState
55
- }) : /* @__PURE__ */ p(e, {
56
- type: "single",
57
- value: x ?? "",
58
- onValueChange: S,
59
- className: "ttw:flex ttw:flex-col ttw:gap-2",
60
- children: v.map((e) => /* @__PURE__ */ m(n, {
61
- value: e.id,
62
- className: "ttw:rounded-md ttw:border-b-transparent ttw:bg-muted ttw:px-4",
63
- children: [/* @__PURE__ */ p(r, {
64
- "aria-label": e.accessibleLabel,
65
- disabled: C,
66
- className: "ttw:hover:no-underline!",
67
- children: /* @__PURE__ */ m("span", {
68
- className: "ttw:flex ttw:items-center ttw:gap-2",
69
- children: [/* @__PURE__ */ p("span", {
70
- className: "ttw:font-medium",
71
- children: e.titleLabel
72
- }), /* @__PURE__ */ p("span", {
73
- className: "ttw:inline-flex ttw:size-5 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-white ttw:text-xs ttw:font-medium",
74
- children: e.countLabel
75
- })]
76
- })
77
- }), /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(d, {
78
- group: e,
79
- isBusy: C,
80
- labels: T
81
- }) })]
82
- }, e.id))
83
- })
84
- })]
85
- })
86
- });
87
- }
4
+ var t = {
5
+ title: "Possible duplicate files",
6
+ descriptionFirstLine: "The following bills may be duplicates of each other.",
7
+ descriptionSecondLine: "You can keep or remove duplicates, or view them for more detail before making a decision.",
8
+ columnAddedOn: "Added on",
9
+ columnInvoiceDate: "Invoice date",
10
+ columnStatus: "Status",
11
+ columnInvoiceNumber: "Invoice number",
12
+ columnAmount: "Amount",
13
+ columnActions: "Actions",
14
+ statusBadge: e,
15
+ removalHelperBeforeDraft: "Removing duplicates deletes ",
16
+ removalHelperDraft: "Draft",
17
+ removalHelperBetween: " bills, and cancels ",
18
+ removalHelperFinalized: "Finalized bills",
19
+ removalHelperAfterFinalized: ". This action cannot be undone.",
20
+ keepSelectedButton: "Keep selected files as their own file",
21
+ removeDuplicatesButton: "Remove selected duplicates",
22
+ emptyState: "No possible duplicates left to review.",
23
+ errorState: "Couldn't load the possible duplicates. Try again shortly."
24
+ };
88
25
  //#endregion
89
- export { g as DuplicateBillsDialog, g as default };
26
+ export { t as DUPLICATE_BILLS_DIALOG_LABELS_EN };
@@ -1,2 +1,89 @@
1
- import "./index74.js";
2
- import "./index75.js";
1
+ import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r, Dialog as i, DialogContent as a, DialogDescription as o, DialogHeader as s, DialogTitle as c, Spinner as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { DUPLICATE_BILLS_DIALOG_LABELS_EN as u } from "./index75.js";
3
+ import { DuplicateBillsGroupPanel as d } from "./index74.js";
4
+ import { useMemo as f } from "react";
5
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
6
+ import { CopyX as h } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js
8
+ function g({ open: g, onOpenChange: _, groups: v, isLoading: y, isError: b, expandedGroupId: x, onExpandedGroupChange: S, isBusy: C, labels: w }) {
9
+ let T = f(() => ({
10
+ ...u,
11
+ ...w,
12
+ statusBadge: {
13
+ ...u.statusBadge,
14
+ ...w?.statusBadge
15
+ }
16
+ }), [w]);
17
+ return /* @__PURE__ */ p(i, {
18
+ open: g,
19
+ onOpenChange: (e) => {
20
+ C && !e || _(e);
21
+ },
22
+ children: /* @__PURE__ */ m(a, {
23
+ className: "ttw:flex ttw:flex-col ttw:gap-8 ttw:overflow-hidden ttw:max-h-[90vh] ttw:sm:max-w-240",
24
+ showCloseButton: !C,
25
+ children: [/* @__PURE__ */ m(s, {
26
+ className: "ttw:items-center ttw:gap-3 ttw:text-center ttw:sm:text-center",
27
+ children: [
28
+ /* @__PURE__ */ p("div", {
29
+ className: "ttw:flex ttw:items-center ttw:justify-center ttw:border ttw:rounded-full ttw:size-11 ttw:border-orange-300 ttw:bg-orange-200",
30
+ children: /* @__PURE__ */ p(h, {
31
+ className: "ttw:size-4 ttw:text-orange-950",
32
+ "aria-hidden": !0
33
+ })
34
+ }),
35
+ /* @__PURE__ */ p(c, { children: T.title }),
36
+ /* @__PURE__ */ m(o, { children: [/* @__PURE__ */ p("span", {
37
+ className: "ttw:block",
38
+ children: T.descriptionFirstLine
39
+ }), /* @__PURE__ */ p("span", {
40
+ className: "ttw:block",
41
+ children: T.descriptionSecondLine
42
+ })] })
43
+ ]
44
+ }), /* @__PURE__ */ p("div", {
45
+ className: "ttw:min-h-0 ttw:overflow-y-auto",
46
+ children: y ? /* @__PURE__ */ p("div", {
47
+ className: "ttw:flex ttw:justify-center ttw:py-8",
48
+ children: /* @__PURE__ */ p(l, { className: "ttw:size-6 ttw:text-muted-foreground" })
49
+ }) : b ? /* @__PURE__ */ p("p", {
50
+ className: "ttw:py-8 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
51
+ children: T.errorState
52
+ }) : v.length === 0 ? /* @__PURE__ */ p("p", {
53
+ className: "ttw:py-8 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
54
+ children: T.emptyState
55
+ }) : /* @__PURE__ */ p(e, {
56
+ type: "single",
57
+ value: x ?? "",
58
+ onValueChange: S,
59
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
60
+ children: v.map((e) => /* @__PURE__ */ m(n, {
61
+ value: e.id,
62
+ className: "ttw:rounded-md ttw:border-b-transparent ttw:bg-muted ttw:px-4",
63
+ children: [/* @__PURE__ */ p(r, {
64
+ "aria-label": e.accessibleLabel,
65
+ disabled: C,
66
+ className: "ttw:hover:no-underline!",
67
+ children: /* @__PURE__ */ m("span", {
68
+ className: "ttw:flex ttw:items-center ttw:gap-2",
69
+ children: [/* @__PURE__ */ p("span", {
70
+ className: "ttw:font-medium",
71
+ children: e.titleLabel
72
+ }), /* @__PURE__ */ p("span", {
73
+ className: "ttw:inline-flex ttw:size-5 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-white ttw:text-xs ttw:font-medium",
74
+ children: e.countLabel
75
+ })]
76
+ })
77
+ }), /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(d, {
78
+ group: e,
79
+ isBusy: C,
80
+ labels: T
81
+ }) })]
82
+ }, e.id))
83
+ })
84
+ })]
85
+ })
86
+ });
87
+ }
88
+ //#endregion
89
+ export { g as DuplicateBillsDialog, g as default };
@@ -1,7 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js
2
- var e = {
3
- message: "Data extracted automatically — please review all details to make sure they match",
4
- dismiss: "Dismiss this notice"
5
- };
6
- //#endregion
7
- export { e as EXTRACTION_NOTICE_LABELS_EN };
1
+ import "./index75.js";
2
+ import "./index76.js";
@@ -1,30 +1,7 @@
1
- import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index77.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { Info as r, X as i } from "lucide-react";
4
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js
5
- function a({ onDismiss: a, testId: o, labels: s }) {
6
- let c = {
7
- ...e,
8
- ...s
9
- };
10
- return /* @__PURE__ */ n("div", {
11
- className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:border-primary/30 ttw:bg-primary/5 ttw:px-3 ttw:py-2.5",
12
- "data-testid": o,
13
- children: [
14
- /* @__PURE__ */ t(r, { className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-primary" }),
15
- /* @__PURE__ */ t("p", {
16
- className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
17
- children: c.message
18
- }),
19
- /* @__PURE__ */ t("button", {
20
- type: "button",
21
- onClick: a,
22
- "aria-label": c.dismiss,
23
- className: "ttw:shrink-0 ttw:text-muted-foreground ttw:hover:text-foreground",
24
- children: /* @__PURE__ */ t(i, { className: "ttw:size-4" })
25
- })
26
- ]
27
- });
28
- }
2
+ var e = {
3
+ message: "Data extracted automatically — please review all details to make sure they match",
4
+ dismiss: "Dismiss this notice"
5
+ };
29
6
  //#endregion
30
- export { a as ExtractionNotice, a as default };
7
+ export { e as EXTRACTION_NOTICE_LABELS_EN };
@@ -1,2 +1,30 @@
1
- import "./index77.js";
2
- import "./index78.js";
1
+ import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index78.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { Info as r, X as i } from "lucide-react";
4
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js
5
+ function a({ onDismiss: a, testId: o, labels: s }) {
6
+ let c = {
7
+ ...e,
8
+ ...s
9
+ };
10
+ return /* @__PURE__ */ n("div", {
11
+ className: "ttw:flex ttw:items-start ttw:gap-3 ttw:rounded-md ttw:border ttw:border-primary/30 ttw:bg-primary/5 ttw:px-3 ttw:py-2.5",
12
+ "data-testid": o,
13
+ children: [
14
+ /* @__PURE__ */ t(r, { className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-primary" }),
15
+ /* @__PURE__ */ t("p", {
16
+ className: "ttw:flex-1 ttw:text-sm ttw:text-foreground",
17
+ children: c.message
18
+ }),
19
+ /* @__PURE__ */ t("button", {
20
+ type: "button",
21
+ onClick: a,
22
+ "aria-label": c.dismiss,
23
+ className: "ttw:shrink-0 ttw:text-muted-foreground ttw:hover:text-foreground",
24
+ children: /* @__PURE__ */ t(i, { className: "ttw:size-4" })
25
+ })
26
+ ]
27
+ });
28
+ }
29
+ //#endregion
30
+ export { a as ExtractionNotice, a as default };
@@ -1,7 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js
2
- var e = {
3
- revealValue: "Show value",
4
- hideValue: "Hide value"
5
- };
6
- //#endregion
7
- export { e as REVEALABLE_FIELD_LABELS_EN };
1
+ import "./index78.js";
2
+ import "./index79.js";
@@ -1,34 +1,7 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { REVEALABLE_FIELD_LABELS_EN as t } from "./index80.js";
3
- import { useState as n } from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { Eye as a, EyeOff as o } from "lucide-react";
6
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js
7
- function s({ field: s, labels: c }) {
8
- let l = {
9
- ...t,
10
- ...c
11
- }, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
12
- return /* @__PURE__ */ i("div", {
13
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
14
- children: [/* @__PURE__ */ i("div", {
15
- className: "ttw:min-w-0",
16
- children: [/* @__PURE__ */ r("dt", {
17
- className: "ttw:text-xs ttw:text-muted-foreground",
18
- children: s.label
19
- }), /* @__PURE__ */ r("dd", {
20
- className: "ttw:break-words ttw:text-sm ttw:font-medium",
21
- children: f
22
- })]
23
- }), s.maskedValue ? /* @__PURE__ */ r(e, {
24
- type: "button",
25
- variant: "ghost",
26
- size: "icon",
27
- "aria-label": u ? l.hideValue : l.revealValue,
28
- onClick: () => d((e) => !e),
29
- children: r(u ? o : a, { className: "ttw:size-4" })
30
- }) : null]
31
- });
32
- }
2
+ var e = {
3
+ revealValue: "Show value",
4
+ hideValue: "Hide value"
5
+ };
33
6
  //#endregion
34
- export { s as RevealableField, s as default };
7
+ export { e as REVEALABLE_FIELD_LABELS_EN };
@@ -1,2 +1,34 @@
1
- import "./index80.js";
2
- import "./index81.js";
1
+ import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { REVEALABLE_FIELD_LABELS_EN as t } from "./index81.js";
3
+ import { useState as n } from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { Eye as a, EyeOff as o } from "lucide-react";
6
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js
7
+ function s({ field: s, labels: c }) {
8
+ let l = {
9
+ ...t,
10
+ ...c
11
+ }, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
12
+ return /* @__PURE__ */ i("div", {
13
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
14
+ children: [/* @__PURE__ */ i("div", {
15
+ className: "ttw:min-w-0",
16
+ children: [/* @__PURE__ */ r("dt", {
17
+ className: "ttw:text-xs ttw:text-muted-foreground",
18
+ children: s.label
19
+ }), /* @__PURE__ */ r("dd", {
20
+ className: "ttw:break-words ttw:text-sm ttw:font-medium",
21
+ children: f
22
+ })]
23
+ }), s.maskedValue ? /* @__PURE__ */ r(e, {
24
+ type: "button",
25
+ variant: "ghost",
26
+ size: "icon",
27
+ "aria-label": u ? l.hideValue : l.revealValue,
28
+ onClick: () => d((e) => !e),
29
+ children: r(u ? o : a, { className: "ttw:size-4" })
30
+ }) : null]
31
+ });
32
+ }
33
+ //#endregion
34
+ export { s as RevealableField, s as default };
@@ -1,12 +1,2 @@
1
- import { REVEALABLE_FIELD_LABELS_EN as e } from "./index80.js";
2
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js
3
- var t = {
4
- title: "Review transaction",
5
- hiddenDescription: "Review the payment before submitting it.",
6
- payToHeading: "Pay to",
7
- backButton: "Back",
8
- submitButton: "Submit",
9
- ...e
10
- };
11
- //#endregion
12
- export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };
1
+ import "./index81.js";
2
+ import "./index82.js";
@@ -1,106 +1,12 @@
1
- import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, cn as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RevealableField as c } from "./index81.js";
3
- import "./index82.js";
4
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index83.js";
5
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
1
+ import { REVEALABLE_FIELD_LABELS_EN as e } from "./index81.js";
6
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js
7
- function f({ open: f, onOpenChange: p, amountLabel: m, amount: h, rows: g, payTo: _, isSubmitting: v, onBack: y, onCancel: b, onSubmit: x, testId: S, labels: C }) {
8
- let w = {
9
- ...l,
10
- ...C
11
- };
12
- return /* @__PURE__ */ u(t, {
13
- open: f,
14
- onOpenChange: (e) => e ? p(e) : b(),
15
- children: /* @__PURE__ */ d(n, {
16
- "data-testid": S,
17
- className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-6",
18
- children: [
19
- /* @__PURE__ */ d(a, {
20
- className: "ttw:border-b ttw:border-border ttw:pb-7",
21
- children: [/* @__PURE__ */ u(o, {
22
- className: "ttw:text-3xl ttw:tracking-tight",
23
- children: w.title
24
- }), /* @__PURE__ */ u(r, {
25
- className: "ttw:sr-only",
26
- children: w.hiddenDescription
27
- })]
28
- }),
29
- /* @__PURE__ */ d("div", {
30
- className: "ttw:flex ttw:flex-col ttw:gap-6",
31
- children: [
32
- /* @__PURE__ */ d("div", {
33
- className: "ttw:flex ttw:flex-col ttw:gap-1",
34
- children: [/* @__PURE__ */ u("p", {
35
- className: "ttw:text-sm ttw:text-muted-foreground",
36
- children: m
37
- }), /* @__PURE__ */ u("p", {
38
- className: "ttw:text-4xl ttw:font-semibold",
39
- children: h
40
- })]
41
- }),
42
- /* @__PURE__ */ u("dl", {
43
- className: "ttw:flex ttw:flex-col",
44
- children: g.map((e, t) => /* @__PURE__ */ d("div", {
45
- className: s("ttw:flex ttw:items-center ttw:gap-4 ttw:py-2.5", t < g.length - 1 && "ttw:border-b ttw:border-border"),
46
- children: [/* @__PURE__ */ u("dt", {
47
- className: "ttw:w-32 ttw:shrink-0 ttw:text-sm ttw:text-muted-foreground",
48
- children: e.label
49
- }), /* @__PURE__ */ u("dd", {
50
- className: "ttw:text-sm ttw:font-medium",
51
- children: e.value
52
- })]
53
- }, e.label))
54
- }),
55
- /* @__PURE__ */ d("section", {
56
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted/30 ttw:p-4",
57
- children: [
58
- /* @__PURE__ */ u("p", {
59
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
60
- children: w.payToHeading
61
- }),
62
- /* @__PURE__ */ u("p", {
63
- className: "ttw:mt-1 ttw:text-xl ttw:font-semibold",
64
- children: _.name
65
- }),
66
- _.email ? /* @__PURE__ */ u("p", {
67
- className: "ttw:text-sm ttw:text-muted-foreground",
68
- children: _.email
69
- }) : null,
70
- _.methodLabel || _.fields.length > 0 ? /* @__PURE__ */ d("div", {
71
- className: "ttw:mt-4 ttw:border-t ttw:border-border ttw:pt-4",
72
- children: [_.methodLabel ? /* @__PURE__ */ u("p", {
73
- className: "ttw:text-xs ttw:font-semibold ttw:text-muted-foreground",
74
- children: _.methodLabel
75
- }) : null, /* @__PURE__ */ u("dl", {
76
- className: "ttw:mt-3 ttw:grid ttw:gap-3",
77
- children: _.fields.map((e) => /* @__PURE__ */ u(c, {
78
- field: e,
79
- labels: w
80
- }, e.label))
81
- })]
82
- }) : null
83
- ]
84
- })
85
- ]
86
- }),
87
- /* @__PURE__ */ d(i, {
88
- className: "ttw:pt-4 ttw:sm:gap-3",
89
- children: [/* @__PURE__ */ u(e, {
90
- type: "button",
91
- variant: "outline",
92
- onClick: y,
93
- children: w.backButton
94
- }), /* @__PURE__ */ u(e, {
95
- type: "button",
96
- loading: v,
97
- onClick: x,
98
- children: w.submitButton
99
- })]
100
- })
101
- ]
102
- })
103
- });
104
- }
3
+ var t = {
4
+ title: "Review transaction",
5
+ hiddenDescription: "Review the payment before submitting it.",
6
+ payToHeading: "Pay to",
7
+ backButton: "Back",
8
+ submitButton: "Submit",
9
+ ...e
10
+ };
105
11
  //#endregion
106
- export { f as ReviewTransactionDialog, f as default };
12
+ export { t as REVIEW_TRANSACTION_DIALOG_LABELS_EN };