@tesouro/embedded-components-react 0.11.8 → 0.11.10

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 (61) hide show
  1. package/dist/core.d.ts +7 -0
  2. package/dist/index.css +12 -49
  3. package/dist/index.d.ts +7 -0
  4. package/dist/lib/WidgetProvider.d.ts +7 -0
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +8 -6
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +99 -94
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +3 -4
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +2 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +110 -100
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +45 -40
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +259 -210
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +190 -165
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +7 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +151 -143
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -17
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +13 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +52 -2
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -40
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +3 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +39 -9
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -77
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +10 -0
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +77 -2
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -3
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +25 -26
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +3 -2
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +28 -5
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -33
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +6 -2
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +33 -0
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +9 -30
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +29 -11
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +1 -53
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +2 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupCollapse.js +22 -0
  51. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +48 -45
  52. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +119 -116
  53. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useTokenRefreshRef.js +8 -0
  54. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  55. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/client.js +11 -8
  56. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/expectedApiNotFound.js +2 -1
  57. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/interceptor.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetTokenManager.js +65 -53
  59. package/dist/packages/shared-ui-shadcn/dist/index.js +1637 -1507
  60. package/package.json +1 -1
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -28
@@ -1,3 +1,53 @@
1
+ import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuGroup as r, DropdownMenuItem as i, DropdownMenuLabel as a, DropdownMenuSeparator as o, DropdownMenuTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { groupBySectionHeading as c } from "./index10.js";
3
+ import { Fragment as l, useId as u } from "react";
4
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
+ import { MoreHorizontalIcon as p, MoreVerticalIcon as m } from "lucide-react";
1
6
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js
2
- var e = {};
3
- export { e as DEFAULT_LABELS };
7
+ function h({ actions: h, triggerLabel: g, placement: _ = "row", testId: v }) {
8
+ let y = u();
9
+ if (!h.length) return null;
10
+ let b = _ === "header", x = _ === "header" || _ === "table", S = b ? p : m, C = c(h);
11
+ return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ d(s, {
12
+ asChild: !0,
13
+ children: /* @__PURE__ */ d(e, {
14
+ type: "button",
15
+ variant: x ? "ghost" : "outline",
16
+ size: "icon",
17
+ "aria-label": g,
18
+ "data-testid": v,
19
+ onPointerDown: (e) => e.stopPropagation(),
20
+ onClick: (e) => e.stopPropagation(),
21
+ children: /* @__PURE__ */ d(S, { className: "ttw:size-4" })
22
+ })
23
+ }), /* @__PURE__ */ d(n, {
24
+ align: "end",
25
+ onPointerDown: (e) => e.stopPropagation(),
26
+ onClick: (e) => e.stopPropagation(),
27
+ children: C.map((e, t) => {
28
+ let n = e.items.map((e) => {
29
+ let t = e.icon;
30
+ return /* @__PURE__ */ f(i, {
31
+ disabled: e.disabled,
32
+ onClick: e.onSelect,
33
+ children: [t ? /* @__PURE__ */ d(t, { className: "ttw:size-4" }) : null, e.label]
34
+ }, e.id);
35
+ });
36
+ if (!e.heading) return /* @__PURE__ */ d(l, { children: n }, e.items[0]?.id);
37
+ let s = `${y}-${t}`;
38
+ return /* @__PURE__ */ f(l, { children: [
39
+ t > 0 ? /* @__PURE__ */ d(o, {}) : null,
40
+ /* @__PURE__ */ d(a, {
41
+ id: s,
42
+ className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
43
+ children: e.heading
44
+ }),
45
+ /* @__PURE__ */ d(r, {
46
+ "aria-labelledby": s,
47
+ children: n
48
+ })
49
+ ] }, e.items[0]?.id);
50
+ })
51
+ })] });
52
+ }
53
+ export { h as BillOverflowMenu, h as default };
@@ -1,40 +1,2 @@
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 "./index11.js";
7
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.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: [d.description ? /* @__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
- }) : null, /* @__PURE__ */ o(e, {
23
- value: l,
24
- onValueChange: u,
25
- className: "ttw:w-full",
26
- children: [/* @__PURE__ */ a(n, {
27
- variant: "underline",
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
- export { s as BillPayWidgetUi };
1
+ import "./index10.js";
2
+ import "./index11.js";
@@ -1,2 +1,3 @@
1
- import "./index11.js";
2
- import "./index12.js";
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js
2
+ var e = {};
3
+ export { e as DEFAULT_LABELS };
@@ -1,10 +1,40 @@
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 "./index13.js";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
8
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js
2
- var e = {
3
- dropPrefix: "Drop your files here, or",
4
- browseAction: "browse to upload",
5
- fileTypesHint: "PDF, JPG, or PNG (max. 3MB)",
6
- fileCountHint: (e) => `up to ${e} files at a time`,
7
- uploadingText: "Uploading…",
8
- fileInput: "Choose a file to upload"
9
- };
10
- export { e as BILL_UPLOAD_DROPZONE_LABELS_EN };
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: [d.description ? /* @__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
+ }) : null, /* @__PURE__ */ o(e, {
23
+ value: l,
24
+ onValueChange: u,
25
+ className: "ttw:w-full",
26
+ children: [/* @__PURE__ */ a(n, {
27
+ variant: "underline",
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
+ export { s as BillPayWidgetUi };
@@ -1,77 +1,2 @@
1
- import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { InlineErrorAlert as t } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { BILL_UPLOAD_DROPZONE_LABELS_EN as n } from "./index14.js";
5
- import { useRef as r, useState as i } from "react";
6
- import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
- import { Loader2 as c, Upload as l } from "lucide-react";
8
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js
9
- function u(e, t) {
10
- let n = t.split(",").map((e) => e.trim()).filter(Boolean);
11
- return n.length === 0 || n.some((t) => t.startsWith(".") ? e.name.toLowerCase().endsWith(t.toLowerCase()) : t.endsWith("/*") ? e.type.startsWith(t.slice(0, -1)) : e.type === t);
12
- }
13
- function d(e, t, n = !0) {
14
- let r = e.filter((e) => u(e, t));
15
- return n ? r : r.slice(0, 1);
16
- }
17
- function f({ status: u = "idle", errorMessage: f, accept: p = ".pdf,.png,.jpg,.jpeg", multiple: m = !0, maxFiles: h, onFilesSelected: g, testId: _, labels: v }) {
18
- let y = {
19
- ...n,
20
- ...v
21
- }, b = r(null), [x, S] = i(!1), C = u === "uploading";
22
- return /* @__PURE__ */ s("div", {
23
- className: "ttw:flex ttw:flex-col ttw:gap-2",
24
- "data-testid": _,
25
- children: [
26
- /* @__PURE__ */ s("button", {
27
- type: "button",
28
- disabled: C,
29
- className: e("ttw:flex ttw:w-full ttw:items-center ttw:justify-center ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-dashed ttw:px-6 ttw:py-8", x ? "ttw:border-primary ttw:bg-primary/5" : "ttw:border-border ttw:bg-muted/40"),
30
- onClick: () => b.current?.click(),
31
- onDragOver: (e) => {
32
- e.preventDefault(), S(!0);
33
- },
34
- onDragLeave: (e) => {
35
- e.preventDefault(), S(!1);
36
- },
37
- onDrop: (e) => {
38
- if (e.preventDefault(), S(!1), C) return;
39
- let t = d(e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], p, m);
40
- t.length > 0 && g(t);
41
- },
42
- children: [C ? /* @__PURE__ */ o(c, { className: "ttw:size-5 ttw:animate-spin ttw:text-primary" }) : /* @__PURE__ */ o(l, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ s("span", {
43
- className: "ttw:flex ttw:flex-col ttw:items-start",
44
- children: [/* @__PURE__ */ o("span", {
45
- className: "ttw:text-sm ttw:text-primary",
46
- children: C ? y.uploadingText : /* @__PURE__ */ s(a, { children: [
47
- y.dropPrefix,
48
- " ",
49
- /* @__PURE__ */ o("span", {
50
- className: "ttw:underline",
51
- children: y.browseAction
52
- })
53
- ] })
54
- }), /* @__PURE__ */ o("span", {
55
- className: "ttw:text-xs ttw:text-muted-foreground",
56
- children: h === void 0 ? y.fileTypesHint : `${y.fileTypesHint} · ${y.fileCountHint(h)}`
57
- })]
58
- })]
59
- }),
60
- /* @__PURE__ */ o("input", {
61
- ref: b,
62
- type: "file",
63
- accept: p,
64
- multiple: m,
65
- disabled: C,
66
- "aria-label": y.fileInput,
67
- className: "ttw:hidden",
68
- onChange: (e) => {
69
- let t = d(e.target.files ? Array.from(e.target.files) : [], p, m);
70
- t.length > 0 && g(t), e.target.value = "";
71
- }
72
- }),
73
- u === "error" && f ? /* @__PURE__ */ o(t, { children: f }) : null
74
- ]
75
- });
76
- }
77
- export { f as BillUploadDropzone, f as default, d as getAcceptedBillUploadFiles };
1
+ import "./index13.js";
2
+ import "./index14.js";
@@ -0,0 +1,10 @@
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js
2
+ var e = {
3
+ dropPrefix: "Drop your files here, or",
4
+ browseAction: "browse to upload",
5
+ fileTypesHint: "PDF, JPG, or PNG (max. 3MB)",
6
+ fileCountHint: (e) => `up to ${e} files at a time`,
7
+ uploadingText: "Uploading…",
8
+ fileInput: "Choose a file to upload"
9
+ };
10
+ export { e as BILL_UPLOAD_DROPZONE_LABELS_EN };
@@ -1,2 +1,77 @@
1
- import "./index14.js";
2
- import "./index15.js";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { InlineErrorAlert as t } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
3
+ import "../../../shared/ui/dist/index.js";
4
+ import { BILL_UPLOAD_DROPZONE_LABELS_EN as n } from "./index16.js";
5
+ import { useRef as r, useState as i } from "react";
6
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import { Loader2 as c, Upload as l } from "lucide-react";
8
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js
9
+ function u(e, t) {
10
+ let n = t.split(",").map((e) => e.trim()).filter(Boolean);
11
+ return n.length === 0 || n.some((t) => t.startsWith(".") ? e.name.toLowerCase().endsWith(t.toLowerCase()) : t.endsWith("/*") ? e.type.startsWith(t.slice(0, -1)) : e.type === t);
12
+ }
13
+ function d(e, t, n = !0) {
14
+ let r = e.filter((e) => u(e, t));
15
+ return n ? r : r.slice(0, 1);
16
+ }
17
+ function f({ status: u = "idle", errorMessage: f, accept: p = ".pdf,.png,.jpg,.jpeg", multiple: m = !0, maxFiles: h, onFilesSelected: g, testId: _, labels: v }) {
18
+ let y = {
19
+ ...n,
20
+ ...v
21
+ }, b = r(null), [x, S] = i(!1), C = u === "uploading";
22
+ return /* @__PURE__ */ s("div", {
23
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
24
+ "data-testid": _,
25
+ children: [
26
+ /* @__PURE__ */ s("button", {
27
+ type: "button",
28
+ disabled: C,
29
+ className: e("ttw:flex ttw:w-full ttw:items-center ttw:justify-center ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-dashed ttw:px-6 ttw:py-8", x ? "ttw:border-primary ttw:bg-primary/5" : "ttw:border-border ttw:bg-muted/40"),
30
+ onClick: () => b.current?.click(),
31
+ onDragOver: (e) => {
32
+ e.preventDefault(), S(!0);
33
+ },
34
+ onDragLeave: (e) => {
35
+ e.preventDefault(), S(!1);
36
+ },
37
+ onDrop: (e) => {
38
+ if (e.preventDefault(), S(!1), C) return;
39
+ let t = d(e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], p, m);
40
+ t.length > 0 && g(t);
41
+ },
42
+ children: [C ? /* @__PURE__ */ o(c, { className: "ttw:size-5 ttw:animate-spin ttw:text-primary" }) : /* @__PURE__ */ o(l, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ s("span", {
43
+ className: "ttw:flex ttw:flex-col ttw:items-start",
44
+ children: [/* @__PURE__ */ o("span", {
45
+ className: "ttw:text-sm ttw:text-primary",
46
+ children: C ? y.uploadingText : /* @__PURE__ */ s(a, { children: [
47
+ y.dropPrefix,
48
+ " ",
49
+ /* @__PURE__ */ o("span", {
50
+ className: "ttw:underline",
51
+ children: y.browseAction
52
+ })
53
+ ] })
54
+ }), /* @__PURE__ */ o("span", {
55
+ className: "ttw:text-xs ttw:text-muted-foreground",
56
+ children: h === void 0 ? y.fileTypesHint : `${y.fileTypesHint} · ${y.fileCountHint(h)}`
57
+ })]
58
+ })]
59
+ }),
60
+ /* @__PURE__ */ o("input", {
61
+ ref: b,
62
+ type: "file",
63
+ accept: p,
64
+ multiple: m,
65
+ disabled: C,
66
+ "aria-label": y.fileInput,
67
+ className: "ttw:hidden",
68
+ onChange: (e) => {
69
+ let t = d(e.target.files ? Array.from(e.target.files) : [], p, m);
70
+ t.length > 0 && g(t), e.target.value = "";
71
+ }
72
+ }),
73
+ u === "error" && f ? /* @__PURE__ */ o(t, { children: f }) : null
74
+ ]
75
+ });
76
+ }
77
+ export { f as BillUploadDropzone, f as default, d as getAcceptedBillUploadFiles };
@@ -1,3 +1,2 @@
1
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js
2
- var e = { overdue: "Overdue" };
3
- export { e as DUE_DATE_VALUE_LABELS_EN };
1
+ import "./index16.js";
2
+ import "./index17.js";
@@ -1,29 +1,28 @@
1
- import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { DUE_DATE_VALUE_LABELS_EN as t } from "./index19.js";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- import { AlertTriangleIcon as i } from "lucide-react";
1
+ import { Popover as e, PopoverContent as t, PopoverTrigger as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { useState as r } from "react";
3
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
4
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js
6
- function a({ value: a, tone: o = "default", labels: s, className: c }) {
7
- let l = {
8
- ...t,
9
- ...s
10
- };
11
- return o === "danger" ? /* @__PURE__ */ r("span", {
12
- className: e("ttw:inline-flex ttw:items-center ttw:gap-1 ttw:whitespace-nowrap ttw:font-medium ttw:text-destructive", c),
13
- children: [
14
- /* @__PURE__ */ n(i, {
15
- "aria-hidden": !0,
16
- className: "ttw:size-3.5 ttw:shrink-0"
17
- }),
18
- a,
19
- /* @__PURE__ */ n("span", {
20
- className: "ttw:sr-only",
21
- children: l.overdue
22
- })
23
- ]
24
- }) : /* @__PURE__ */ n("span", {
25
- className: c,
26
- children: a
5
+ function o({ children: o, date: s }) {
6
+ let [c, l] = r(!1);
7
+ return /* @__PURE__ */ a(e, {
8
+ open: c,
9
+ onOpenChange: l,
10
+ children: [/* @__PURE__ */ i(n, {
11
+ type: "button",
12
+ className: "ttw:cursor-default",
13
+ onPointerEnter: (e) => {
14
+ e.pointerType === "mouse" && l(!0);
15
+ },
16
+ onPointerLeave: (e) => {
17
+ e.pointerType === "mouse" && l(!1);
18
+ },
19
+ onClick: (e) => e.stopPropagation(),
20
+ children: o
21
+ }), /* @__PURE__ */ i(t, {
22
+ onOpenAutoFocus: (e) => e.preventDefault(),
23
+ className: "ttw:w-auto ttw:px-3 ttw:py-1.5 ttw:text-xs",
24
+ children: s
25
+ })]
27
26
  });
28
27
  }
29
- export { a as DueDateValue, a as default };
28
+ export { o as DateDisclosure };
@@ -1,2 +1,3 @@
1
- import "./index19.js";
2
- import "./index20.js";
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js
2
+ var e = { overdue: "Overdue" };
3
+ export { e as DUE_DATE_VALUE_LABELS_EN };
@@ -1,6 +1,29 @@
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { DUE_DATE_VALUE_LABELS_EN as t } from "./index21.js";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { AlertTriangleIcon as i } from "lucide-react";
1
5
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js
2
- var e = {
3
- revealValue: "Show value",
4
- hideValue: "Hide value"
5
- };
6
- export { e as REVEALABLE_FIELD_LABELS_EN };
6
+ function a({ value: a, tone: o = "default", labels: s, className: c }) {
7
+ let l = {
8
+ ...t,
9
+ ...s
10
+ };
11
+ return o === "danger" ? /* @__PURE__ */ r("span", {
12
+ className: e("ttw:inline-flex ttw:items-center ttw:gap-1 ttw:whitespace-nowrap ttw:font-medium ttw:text-destructive", c),
13
+ children: [
14
+ /* @__PURE__ */ n(i, {
15
+ "aria-hidden": !0,
16
+ className: "ttw:size-3.5 ttw:shrink-0"
17
+ }),
18
+ a,
19
+ /* @__PURE__ */ n("span", {
20
+ className: "ttw:sr-only",
21
+ children: l.overdue
22
+ })
23
+ ]
24
+ }) : /* @__PURE__ */ n("span", {
25
+ className: c,
26
+ children: a
27
+ });
28
+ }
29
+ export { a as DueDateValue, a as default };
@@ -1,33 +1,2 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { REVEALABLE_FIELD_LABELS_EN as t } from "./index22.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
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.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
- export { s as RevealableField, s as default };
1
+ import "./index21.js";
2
+ import "./index22.js";
@@ -1,2 +1,6 @@
1
- import "./index22.js";
2
- import "./index23.js";
1
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js
2
+ var e = {
3
+ revealValue: "Show value",
4
+ hideValue: "Hide value"
5
+ };
6
+ export { e as REVEALABLE_FIELD_LABELS_EN };
@@ -0,0 +1,33 @@
1
+ import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { REVEALABLE_FIELD_LABELS_EN as t } from "./index24.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
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.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
+ export { s as RevealableField, s as default };
@@ -0,0 +1,2 @@
1
+ import "./index24.js";
2
+ import "./index25.js";
@@ -1,33 +1,12 @@
1
- import { Alert as e, AlertTitle as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
- import { TriangleAlertIcon as i } from "lucide-react";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { FileQuestionIcon as n } from "lucide-react";
4
4
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js
5
- function a({ message: a, details: o, children: s, testId: c }) {
6
- return /* @__PURE__ */ r(e, {
7
- variant: "warning",
8
- className: "ttw:flex! ttw:items-stretch! ttw:min-h-12 ttw:flex-col ttw:justify-center ttw:gap-3 ttw:py-2",
9
- "data-testid": c,
10
- children: [
11
- /* @__PURE__ */ r("div", {
12
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-3",
13
- children: [
14
- /* @__PURE__ */ n(i, {
15
- className: "ttw:size-4 ttw:shrink-0",
16
- "aria-hidden": !0
17
- }),
18
- /* @__PURE__ */ n(t, {
19
- className: "ttw:flex-1 ttw:line-clamp-none!",
20
- children: a
21
- }),
22
- o ? null : s
23
- ]
24
- }),
25
- o,
26
- o && s ? /* @__PURE__ */ n("div", {
27
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-end ttw:gap-2",
28
- children: s
29
- }) : null
30
- ]
5
+ function r({ className: r }) {
6
+ return /* @__PURE__ */ t(n, {
7
+ "aria-hidden": !0,
8
+ "data-slot": "bill-duplicate-icon",
9
+ className: e("ttw:size-4 ttw:shrink-0", r)
31
10
  });
32
11
  }
33
- export { a as BillDuplicateWarning };
12
+ export { r as BillDuplicateIcon };
@@ -1,13 +1,31 @@
1
+ import { Alert as e, AlertTitle as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BillDuplicateIcon as n } from "./index6.js";
3
+ import "./index7.js";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
1
5
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js
2
- function e(e) {
3
- let t = [];
4
- for (let n of e) {
5
- let e = t.at(-1);
6
- e && e.heading === n.sectionHeading ? e.items = [...e.items, n] : t.push({
7
- heading: n.sectionHeading,
8
- items: [n]
9
- });
10
- }
11
- return t;
6
+ function a({ message: a, details: o, children: s, testId: c }) {
7
+ return /* @__PURE__ */ i(e, {
8
+ variant: "warning",
9
+ className: "ttw:flex! ttw:items-stretch! ttw:min-h-12 ttw:flex-col ttw:justify-center ttw:gap-3 ttw:py-2",
10
+ "data-testid": c,
11
+ children: [
12
+ /* @__PURE__ */ i("div", {
13
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-3",
14
+ children: [
15
+ /* @__PURE__ */ r(n, {}),
16
+ /* @__PURE__ */ r(t, {
17
+ className: "ttw:flex-1 ttw:line-clamp-none!",
18
+ children: a
19
+ }),
20
+ o ? null : s
21
+ ]
22
+ }),
23
+ o,
24
+ o && s ? /* @__PURE__ */ r("div", {
25
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-end ttw:gap-2",
26
+ children: s
27
+ }) : null
28
+ ]
29
+ });
12
30
  }
13
- export { e as groupBySectionHeading };
31
+ export { a as BillDuplicateWarning };