@tesouro/embedded-components-react 0.11.253 → 0.11.254

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 (111) hide show
  1. package/dist/index.css +9 -344
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +35 -38
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +21 -14
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +3 -105
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +4 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +47 -47
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +87 -90
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +238 -248
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +15 -34
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +199 -202
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +16 -14
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +25 -25
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js +18 -32
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js +150 -19
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +2 -150
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +75 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +272 -70
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -279
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +20 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js +51 -16
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js +2 -55
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +34 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index20.js +369 -30
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index21.js +2 -373
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +22 -2
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +124 -20
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +2 -126
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +30 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js +51 -29
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js +1 -52
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +54 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +10 -54
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +35 -35
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js +133 -10
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -198
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js +30 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +52 -43
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -315
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js +15 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +158 -14
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -162
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js +3 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js +19 -2
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js +2 -35
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js +9 -2
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +31 -8
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +2 -33
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.js +6 -2
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.js +27 -5
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.js +2 -29
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js +13 -2
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +100 -11
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +2 -107
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +12 -16
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js +9 -2
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js +41 -8
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +2 -52
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +1 -22
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +31 -1
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +1 -31
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +34 -1
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +1 -3
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +2 -6
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -6
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +119 -104
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +2 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +2 -1
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +11 -11
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +9 -4
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +8 -8
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +76 -171
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +1 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js +33 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js +9 -0
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js +126 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index15.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +23 -29
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +32 -126
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +14 -2
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +3 -13
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +28 -104
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +72 -1
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +2 -33
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js +12 -7
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -9
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +6 -9
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +32 -31
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +4 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +15 -5
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +53 -84
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -18
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +12 -12
  97. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +4 -4
  98. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +9 -9
  99. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +13 -14
  100. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +1 -1
  102. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +20 -19
  103. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +30 -34
  104. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js +55 -0
  105. package/dist/packages/shared-ui-shadcn/dist/index.js +1322 -1312
  106. package/package.json +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index53.js +0 -2
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +0 -6
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -31
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +0 -5
@@ -1,15 +1,159 @@
1
+ import { Badge as e, Button as t, Skeleton as n, Table as r, TableBody as i, TableCard as a, TableCardCollapseToggle as o, TableCardFooter as s, TableCardHeader as c, TableCell as l, TableHead as u, TableHeader as d, TableRow as f, cn as p } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { TooltipIconButton as m } from "../../../../shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js";
3
+ import "../../../../shared/ui/dist/index.js";
4
+ import { BillDuplicateIcon as h } from "../../../ui/dist/index6.js";
5
+ import { BillDuplicateWarning as g } from "../../../ui/dist/index8.js";
6
+ import "../../../ui/dist/index.js";
7
+ import { BillStatusBadge as _ } from "../../../../shared/document-status/ui/dist/index4.js";
8
+ import "../../../../shared/document-status/ui/dist/index.js";
9
+ import { BILL_DUPLICATE_NOTICE_LABELS_EN as v } from "./index35.js";
10
+ import { useId as y, useState as b } from "react";
11
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
12
+ import { Maximize2Icon as w } from "lucide-react";
1
13
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js
2
- var e = {
3
- message: "This bill is a possible duplicate.",
4
- titleAnnouncement: "Possible duplicate.",
5
- createdOnColumn: "Created",
6
- dueDateColumn: "Due date",
7
- amountColumn: "Amount",
8
- statusColumn: "Status",
9
- loadingRows: "Loading possible duplicates",
10
- question: "Is this bill a duplicate?",
11
- openFullScreenButton: "Review duplicate in full screen",
12
- notADuplicateButton: "Not a duplicate",
13
- removeBillButton: "Cancel this bill"
14
- };
15
- export { e as BILL_DUPLICATE_NOTICE_LABELS_EN };
14
+ var T = [
15
+ "ttw:w-24",
16
+ "ttw:w-20",
17
+ "ttw:ml-auto ttw:w-16",
18
+ "ttw:w-20"
19
+ ], E = 2;
20
+ function D({ message: D, title: O, meta: k, onNotADuplicate: A, onRemoveBill: j, onOpenFullScreen: M, isActionDisabled: N, rows: P, isLoading: F, loadingRowCount: I = E, collapse: L, testId: R, labels: z }) {
21
+ let B = {
22
+ ...v,
23
+ ...z
24
+ }, V = y(), H = !!P?.length, U = !H && F === !0, [W, G] = b(!1), K = L && !W ? P?.slice(0, L.visibleCount) : P, q = A || j ? /* @__PURE__ */ C(x, { children: [A ? /* @__PURE__ */ S(t, {
25
+ type: "button",
26
+ variant: "outline",
27
+ size: "sm",
28
+ className: "ttw:text-foreground",
29
+ disabled: N,
30
+ onClick: A,
31
+ children: B.notADuplicateButton
32
+ }) : null, j ? /* @__PURE__ */ S(t, {
33
+ type: "button",
34
+ variant: "outline",
35
+ size: "sm",
36
+ className: "ttw:text-foreground",
37
+ disabled: N,
38
+ onClick: j,
39
+ children: B.removeBillButton
40
+ }) : null] }) : null;
41
+ return H || U ? /* @__PURE__ */ C(a, {
42
+ tone: "warning",
43
+ role: "group",
44
+ "aria-labelledby": V,
45
+ "data-testid": R,
46
+ children: [
47
+ /* @__PURE__ */ S(c, {
48
+ id: V,
49
+ icon: /* @__PURE__ */ S(h, {}),
50
+ title: O ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("span", {
51
+ className: "ttw:sr-only",
52
+ children: [B.titleAnnouncement, " "]
53
+ }), O] }) : D || B.message,
54
+ meta: k
55
+ }),
56
+ /* @__PURE__ */ C("div", {
57
+ "aria-busy": U || void 0,
58
+ children: [/* @__PURE__ */ C(r, {
59
+ className: "ttw:min-w-100",
60
+ children: [/* @__PURE__ */ S(d, { children: /* @__PURE__ */ C(f, {
61
+ className: "ttw:hover:bg-transparent",
62
+ children: [
63
+ /* @__PURE__ */ S(u, {
64
+ scope: "col",
65
+ className: "ttw:h-9 ttw:text-xs",
66
+ children: B.createdOnColumn
67
+ }),
68
+ /* @__PURE__ */ S(u, {
69
+ scope: "col",
70
+ className: "ttw:h-9 ttw:text-xs",
71
+ children: B.dueDateColumn
72
+ }),
73
+ /* @__PURE__ */ S(u, {
74
+ scope: "col",
75
+ className: "ttw:h-9 ttw:text-right ttw:text-xs",
76
+ children: B.amountColumn
77
+ }),
78
+ /* @__PURE__ */ S(u, {
79
+ scope: "col",
80
+ className: "ttw:h-9 ttw:text-xs",
81
+ children: B.statusColumn
82
+ })
83
+ ]
84
+ }) }), /* @__PURE__ */ C(i, { children: [U ? Array.from({ length: I }, (e, t) => /* @__PURE__ */ S(f, {
85
+ "aria-hidden": !0,
86
+ className: "ttw:hover:bg-transparent",
87
+ children: T.map((e, t) => /* @__PURE__ */ S(l, {
88
+ className: "ttw:py-2.5",
89
+ children: /* @__PURE__ */ S(n, { className: p("ttw:h-4", e) })
90
+ }, t))
91
+ }, t)) : null, K?.map((t) => {
92
+ let n = t.isCurrent ? void 0 : t.onOpen;
93
+ return /* @__PURE__ */ C(f, {
94
+ "aria-current": t.isCurrent || void 0,
95
+ "data-state": t.isCurrent ? "selected" : void 0,
96
+ className: p(t.isCurrent && "ttw:hover:bg-muted", n && "ttw:cursor-pointer ttw:hover:bg-muted/50 ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring"),
97
+ tabIndex: n ? 0 : void 0,
98
+ "aria-label": n ? t.openLabel : void 0,
99
+ onClick: n,
100
+ onKeyDown: (e) => {
101
+ n && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n());
102
+ },
103
+ children: [
104
+ /* @__PURE__ */ S(l, {
105
+ className: "ttw:py-2.5",
106
+ children: /* @__PURE__ */ C("span", {
107
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-2 ttw:gap-y-1",
108
+ children: [/* @__PURE__ */ S("span", { children: t.createdOnLabel }), t.badges?.map((t) => /* @__PURE__ */ S(e, {
109
+ tone: "neutral",
110
+ children: t
111
+ }, t))]
112
+ })
113
+ }),
114
+ /* @__PURE__ */ S(l, {
115
+ className: "ttw:py-2.5",
116
+ children: t.dueDateLabel
117
+ }),
118
+ /* @__PURE__ */ S(l, {
119
+ className: "ttw:py-2.5 ttw:text-right",
120
+ children: t.amountLabel
121
+ }),
122
+ /* @__PURE__ */ S(l, {
123
+ className: "ttw:py-2.5",
124
+ children: t.status ? /* @__PURE__ */ S(_, {
125
+ status: t.status,
126
+ tone: t.statusTone ?? "neutral"
127
+ }) : null
128
+ })
129
+ ]
130
+ }, t.id);
131
+ })] })]
132
+ }), U ? /* @__PURE__ */ S("span", {
133
+ className: "ttw:sr-only",
134
+ children: B.loadingRows
135
+ }) : null]
136
+ }),
137
+ L && !U ? /* @__PURE__ */ S(o, {
138
+ collapse: L,
139
+ isExpanded: W,
140
+ onToggle: () => G((e) => !e)
141
+ }) : null,
142
+ q && !U ? /* @__PURE__ */ C(s, { children: [/* @__PURE__ */ S("span", {
143
+ className: "ttw:font-medium",
144
+ children: B.question
145
+ }), q] }) : null
146
+ ]
147
+ }) : /* @__PURE__ */ C(g, {
148
+ message: D ?? B.message,
149
+ testId: R,
150
+ children: [q, M ? /* @__PURE__ */ S(m, {
151
+ label: B.openFullScreenButton,
152
+ icon: w,
153
+ size: "icon-sm",
154
+ className: "ttw:text-foreground",
155
+ onClick: M
156
+ }) : null]
157
+ });
158
+ }
159
+ export { D as BillDuplicateNotice, D as default };
@@ -1,162 +1,2 @@
1
- import { Badge as e, Button as t, Skeleton as n, Table as r, TableBody as i, TableCard as a, TableCardCollapseToggle as o, TableCardFooter as s, TableCardHeader as c, TableCell as l, TableHead as u, TableHeader as d, TableRow as f, cn as p } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillDuplicateIcon as m } from "../../../ui/dist/index6.js";
3
- import { BillDuplicateWarning as h } from "../../../ui/dist/index8.js";
4
- import "../../../ui/dist/index.js";
5
- import { BillStatusBadge as g } from "../../../../shared/document-status/ui/dist/index4.js";
6
- import "../../../../shared/document-status/ui/dist/index.js";
7
- import { BILL_DUPLICATE_NOTICE_LABELS_EN as _ } from "./index36.js";
8
- import { useId as v, useState as y } from "react";
9
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
10
- import { MoveDiagonal2Icon as C } from "lucide-react";
11
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js
12
- var w = [
13
- "ttw:w-24",
14
- "ttw:w-20",
15
- "ttw:ml-auto ttw:w-16",
16
- "ttw:w-20"
17
- ], T = 2;
18
- function E({ message: E, title: D, meta: O, onNotADuplicate: k, onRemoveBill: A, onOpenFullScreen: j, isActionDisabled: M, rows: N, isLoading: P, loadingRowCount: F = T, collapse: I, testId: L, labels: R }) {
19
- let z = {
20
- ..._,
21
- ...R
22
- }, B = v(), V = !!N?.length, H = !V && P === !0, [U, W] = y(!1), G = I && !U ? N?.slice(0, I.visibleCount) : N, K = k || A ? /* @__PURE__ */ S(b, { children: [k ? /* @__PURE__ */ x(t, {
23
- type: "button",
24
- variant: "outline",
25
- size: "sm",
26
- className: "ttw:text-foreground",
27
- disabled: M,
28
- onClick: k,
29
- children: z.notADuplicateButton
30
- }) : null, A ? /* @__PURE__ */ x(t, {
31
- type: "button",
32
- variant: "outline",
33
- size: "sm",
34
- className: "ttw:text-foreground",
35
- disabled: M,
36
- onClick: A,
37
- children: z.removeBillButton
38
- }) : null] }) : null;
39
- return V || H ? /* @__PURE__ */ S(a, {
40
- tone: "warning",
41
- role: "group",
42
- "aria-labelledby": B,
43
- "data-testid": L,
44
- children: [
45
- /* @__PURE__ */ x(c, {
46
- id: B,
47
- icon: /* @__PURE__ */ x(m, {}),
48
- title: D ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S("span", {
49
- className: "ttw:sr-only",
50
- children: [z.titleAnnouncement, " "]
51
- }), D] }) : E || z.message,
52
- meta: O
53
- }),
54
- /* @__PURE__ */ S("div", {
55
- "aria-busy": H || void 0,
56
- children: [/* @__PURE__ */ S(r, {
57
- className: "ttw:min-w-100",
58
- children: [/* @__PURE__ */ x(d, { children: /* @__PURE__ */ S(f, {
59
- className: "ttw:hover:bg-transparent",
60
- children: [
61
- /* @__PURE__ */ x(u, {
62
- scope: "col",
63
- className: "ttw:h-9 ttw:text-xs",
64
- children: z.createdOnColumn
65
- }),
66
- /* @__PURE__ */ x(u, {
67
- scope: "col",
68
- className: "ttw:h-9 ttw:text-xs",
69
- children: z.dueDateColumn
70
- }),
71
- /* @__PURE__ */ x(u, {
72
- scope: "col",
73
- className: "ttw:h-9 ttw:text-right ttw:text-xs",
74
- children: z.amountColumn
75
- }),
76
- /* @__PURE__ */ x(u, {
77
- scope: "col",
78
- className: "ttw:h-9 ttw:text-xs",
79
- children: z.statusColumn
80
- })
81
- ]
82
- }) }), /* @__PURE__ */ S(i, { children: [H ? Array.from({ length: F }, (e, t) => /* @__PURE__ */ x(f, {
83
- "aria-hidden": !0,
84
- className: "ttw:hover:bg-transparent",
85
- children: w.map((e, t) => /* @__PURE__ */ x(l, {
86
- className: "ttw:py-2.5",
87
- children: /* @__PURE__ */ x(n, { className: p("ttw:h-4", e) })
88
- }, t))
89
- }, t)) : null, G?.map((t) => {
90
- let n = t.isCurrent ? void 0 : t.onOpen;
91
- return /* @__PURE__ */ S(f, {
92
- "aria-current": t.isCurrent || void 0,
93
- "data-state": t.isCurrent ? "selected" : void 0,
94
- className: p(t.isCurrent && "ttw:hover:bg-muted", n && "ttw:cursor-pointer ttw:hover:bg-muted/50 ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring"),
95
- tabIndex: n ? 0 : void 0,
96
- "aria-label": n ? t.openLabel : void 0,
97
- onClick: n,
98
- onKeyDown: (e) => {
99
- n && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n());
100
- },
101
- children: [
102
- /* @__PURE__ */ x(l, {
103
- className: "ttw:py-2.5",
104
- children: /* @__PURE__ */ S("span", {
105
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-2 ttw:gap-y-1",
106
- children: [/* @__PURE__ */ x("span", { children: t.createdOnLabel }), t.badges?.map((t) => /* @__PURE__ */ x(e, {
107
- variant: "secondary",
108
- children: t
109
- }, t))]
110
- })
111
- }),
112
- /* @__PURE__ */ x(l, {
113
- className: "ttw:py-2.5",
114
- children: t.dueDateLabel
115
- }),
116
- /* @__PURE__ */ x(l, {
117
- className: "ttw:py-2.5 ttw:text-right",
118
- children: t.amountLabel
119
- }),
120
- /* @__PURE__ */ x(l, {
121
- className: "ttw:py-2.5",
122
- children: t.status ? /* @__PURE__ */ x(g, {
123
- status: t.status,
124
- tone: t.statusTone ?? "neutral"
125
- }) : null
126
- })
127
- ]
128
- }, t.id);
129
- })] })]
130
- }), H ? /* @__PURE__ */ x("span", {
131
- className: "ttw:sr-only",
132
- children: z.loadingRows
133
- }) : null]
134
- }),
135
- I && !H ? /* @__PURE__ */ x(o, {
136
- collapse: I,
137
- isExpanded: U,
138
- onToggle: () => W((e) => !e)
139
- }) : null,
140
- K && !H ? /* @__PURE__ */ S(s, { children: [/* @__PURE__ */ x("span", {
141
- className: "ttw:font-medium",
142
- children: z.question
143
- }), K] }) : null
144
- ]
145
- }) : /* @__PURE__ */ S(h, {
146
- message: E ?? z.message,
147
- testId: L,
148
- children: [K, j ? /* @__PURE__ */ x(t, {
149
- type: "button",
150
- variant: "ghost",
151
- size: "icon-sm",
152
- className: "ttw:text-foreground",
153
- "aria-label": z.openFullScreenButton,
154
- onClick: j,
155
- children: /* @__PURE__ */ x(C, {
156
- className: "ttw:size-4",
157
- "aria-hidden": !0
158
- })
159
- }) : null]
160
- });
161
- }
162
- export { E as BillDuplicateNotice, E as default };
1
+ import "./index35.js";
2
+ import "./index36.js";
@@ -1,2 +1,3 @@
1
- import "./index36.js";
2
- import "./index37.js";
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js
2
+ var e = { title: "Bill rejected and returned to you for rework." };
3
+ export { e as BILL_REJECTED_BANNER_LABELS_EN };
@@ -1,3 +1,20 @@
1
+ import { Alert as e, AlertDescription as t, AlertTitle as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_REJECTED_BANNER_LABELS_EN as r } from "./index38.js";
3
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
+ import { CircleAlertIcon as o } from "lucide-react";
1
5
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js
2
- var e = { title: "Bill rejected and returned to you for rework." };
3
- export { e as BILL_REJECTED_BANNER_LABELS_EN };
6
+ function s({ actorLabel: s, message: c, labels: l }) {
7
+ let u = {
8
+ ...r,
9
+ ...l
10
+ };
11
+ return /* @__PURE__ */ a(e, {
12
+ variant: "destructive",
13
+ children: [
14
+ /* @__PURE__ */ i(o, { "aria-hidden": !0 }),
15
+ /* @__PURE__ */ i(n, { children: u.title }),
16
+ /* @__PURE__ */ a(t, { children: [c ? /* @__PURE__ */ i("p", { children: c }) : null, /* @__PURE__ */ i("p", { children: s })] })
17
+ ]
18
+ });
19
+ }
20
+ export { s as BillRejectedBanner, s as default };
@@ -1,35 +1,2 @@
1
- import { BILL_REJECTED_BANNER_LABELS_EN as e } from "./index39.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { AlertTriangleIcon as r } from "lucide-react";
4
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js
5
- function i({ actorLabel: i, message: a, labels: o }) {
6
- let s = {
7
- ...e,
8
- ...o
9
- };
10
- return /* @__PURE__ */ n("div", {
11
- role: "alert",
12
- className: "ttw:flex ttw:gap-2 ttw:rounded-md ttw:border ttw:border-destructive/20 ttw:bg-destructive/5 ttw:p-3",
13
- children: [/* @__PURE__ */ t(r, {
14
- "aria-hidden": !0,
15
- className: "ttw:mt-0.5 ttw:size-4 ttw:shrink-0 ttw:text-destructive"
16
- }), /* @__PURE__ */ n("div", {
17
- className: "ttw:flex ttw:flex-col ttw:gap-1",
18
- children: [
19
- /* @__PURE__ */ t("p", {
20
- className: "ttw:text-sm ttw:font-medium ttw:text-destructive",
21
- children: s.title
22
- }),
23
- a ? /* @__PURE__ */ t("p", {
24
- className: "ttw:text-sm ttw:text-foreground",
25
- children: a
26
- }) : null,
27
- /* @__PURE__ */ t("p", {
28
- className: "ttw:text-sm ttw:text-muted-foreground",
29
- children: i
30
- })
31
- ]
32
- })]
33
- });
34
- }
35
- export { i as BillRejectedBanner, i as default };
1
+ import "./index38.js";
2
+ import "./index39.js";
@@ -1,2 +1,9 @@
1
- import "./index39.js";
2
- import "./index40.js";
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js
2
+ var e = {
3
+ title: "Discard unsaved changes?",
4
+ description: "You have unsaved changes. Keep editing to finish them, or discard them.",
5
+ keepEditingButton: "Keep editing",
6
+ discardButton: "Discard",
7
+ close: "Close"
8
+ };
9
+ export { e as DISCARD_CHANGES_DIALOG_LABELS_EN };
@@ -1,9 +1,32 @@
1
+ import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { DISCARD_CHANGES_DIALOG_LABELS_EN as s } from "./index41.js";
3
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
1
4
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js
2
- var e = {
3
- title: "Discard unsaved changes?",
4
- description: "Your changes will be lost if you stop editing now.",
5
- keepEditingButton: "Keep editing",
6
- discardButton: "Discard changes",
7
- close: "Close"
8
- };
9
- export { e as DISCARD_CHANGES_DIALOG_LABELS_EN };
5
+ function u({ open: u, onDiscard: d, onKeepEditing: f, labels: p, testId: m, discardTestId: h }) {
6
+ let g = {
7
+ ...s,
8
+ ...p
9
+ };
10
+ return /* @__PURE__ */ c(e, {
11
+ open: u,
12
+ onOpenChange: (e) => {
13
+ e || f();
14
+ },
15
+ children: /* @__PURE__ */ l(t, {
16
+ "data-testid": m,
17
+ labels: { close: g.close },
18
+ children: [/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: g.title }), /* @__PURE__ */ c(n, { children: g.description })] }), /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
19
+ type: "button",
20
+ variant: "secondary",
21
+ onClick: d,
22
+ "data-testid": h,
23
+ children: g.discardButton
24
+ }), /* @__PURE__ */ c(o, {
25
+ type: "button",
26
+ onClick: f,
27
+ children: g.keepEditingButton
28
+ })] })]
29
+ })
30
+ });
31
+ }
32
+ export { u as DiscardChangesDialog, u as default };
@@ -1,33 +1,2 @@
1
- import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { DISCARD_CHANGES_DIALOG_LABELS_EN as s } from "./index42.js";
3
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js
5
- function u({ open: u, onDiscard: d, onKeepEditing: f, labels: p, testId: m, discardTestId: h }) {
6
- let g = {
7
- ...s,
8
- ...p
9
- };
10
- return /* @__PURE__ */ c(e, {
11
- open: u,
12
- onOpenChange: (e) => {
13
- e || f();
14
- },
15
- children: /* @__PURE__ */ l(t, {
16
- "data-testid": m,
17
- labels: { close: g.close },
18
- children: [/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: g.title }), /* @__PURE__ */ c(n, { children: g.description })] }), /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
19
- type: "button",
20
- variant: "outline",
21
- onClick: f,
22
- children: g.keepEditingButton
23
- }), /* @__PURE__ */ c(o, {
24
- type: "button",
25
- variant: "destructive",
26
- onClick: d,
27
- "data-testid": h,
28
- children: g.discardButton
29
- })] })]
30
- })
31
- });
32
- }
33
- export { u as DiscardChangesDialog, u as default };
1
+ import "./index41.js";
2
+ import "./index42.js";
@@ -1,2 +1,6 @@
1
- import "./index42.js";
2
- import "./index43.js";
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.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
+ export { e as EXTRACTION_NOTICE_LABELS_EN };
@@ -1,6 +1,28 @@
1
+ import { Alert as e, AlertDescription as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { TooltipIconButton as n } from "../../../../shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js";
3
+ import "../../../../shared/ui/dist/index.js";
4
+ import { EXTRACTION_NOTICE_LABELS_EN as r } from "./index44.js";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { Info as o, X as s } from "lucide-react";
1
7
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.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
- export { e as EXTRACTION_NOTICE_LABELS_EN };
8
+ function c({ onDismiss: c, testId: l, labels: u }) {
9
+ let d = {
10
+ ...r,
11
+ ...u
12
+ };
13
+ return /* @__PURE__ */ a(e, {
14
+ variant: "info",
15
+ "data-testid": l,
16
+ children: [/* @__PURE__ */ i(o, { "aria-hidden": !0 }), /* @__PURE__ */ a(t, {
17
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
18
+ children: [/* @__PURE__ */ i("span", { children: d.message }), /* @__PURE__ */ i(n, {
19
+ label: d.dismiss,
20
+ icon: s,
21
+ size: "icon-sm",
22
+ className: "ttw:-my-1.5 ttw:shrink-0",
23
+ onClick: c
24
+ })]
25
+ })]
26
+ });
27
+ }
28
+ export { c as ExtractionNotice, c as default };
@@ -1,29 +1,2 @@
1
- import { EXTRACTION_NOTICE_LABELS_EN as e } from "./index45.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
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.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
- export { a as ExtractionNotice, a as default };
1
+ import "./index44.js";
2
+ import "./index45.js";
@@ -1,2 +1,13 @@
1
- import "./index45.js";
2
- import "./index46.js";
1
+ import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index18.js";
2
+ import "../../../ui/dist/index.js";
3
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js
4
+ var t = {
5
+ uploadHeading: "Attach an invoice (optional)",
6
+ scannedAttachment: (e) => `Scanned attachment: ${e}`,
7
+ scanning: "Scanning attachment…",
8
+ scanningAttachment: (e) => `Scanning attachment: ${e}`,
9
+ download: "Download the scanned attachment",
10
+ delete: "Delete the scanned attachment",
11
+ dropzone: e
12
+ };
13
+ export { t as SOURCE_DOCUMENT_PANEL_LABELS_EN };