@tesouro/embedded-components-react 0.11.226 → 0.11.230
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.
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index8.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index9.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +19 -185
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +186 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +35 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +15 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +76 -294
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +51 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +277 -456
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +29 -326
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +524 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +359 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +4 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index23.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +221 -200
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +1 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +73 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +77 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +0 -6
|
@@ -8,7 +8,7 @@ import "../../../../../shared/data-access/dist/index.js";
|
|
|
8
8
|
import { useWidgetConfig as n } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
9
|
import "../../../../../shared/feature/dist/index.js";
|
|
10
10
|
import { billsTabTestIds as r } from "./testIds.js";
|
|
11
|
-
import { BillsListWidget as i } from "../../../../bills-list/feature/dist/
|
|
11
|
+
import { BillsListWidget as i } from "../../../../bills-list/feature/dist/index23.js";
|
|
12
12
|
import "../../../../bills-list/feature/dist/index.js";
|
|
13
13
|
import { BillDetailsWidget as a, BillDialogWidget as o } from "../../../../bill-detail/feature/dist/index51.js";
|
|
14
14
|
import "../../../../bill-detail/feature/dist/index.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/
|
|
1
|
+
import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/index22.js";
|
|
2
2
|
import "../../../ui/dist/index.js";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js
|
|
4
4
|
var t = {
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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 "../../../ui/dist/
|
|
2
|
+
import { RevealableField as c } from "../../../ui/dist/index23.js";
|
|
3
3
|
import "../../../ui/dist/index.js";
|
|
4
4
|
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index5.js";
|
|
5
5
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
@@ -6,16 +6,18 @@ import { BillDuplicateIcon as r } from "./index6.js";
|
|
|
6
6
|
import "./index7.js";
|
|
7
7
|
import { BillDuplicateWarning as i } from "./index8.js";
|
|
8
8
|
import "./index9.js";
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import "./index12.js";
|
|
12
|
-
import "./index13.js";
|
|
13
|
-
import
|
|
9
|
+
import { BillFailedPaymentIcon as a } from "./index10.js";
|
|
10
|
+
import "./index11.js";
|
|
11
|
+
import { groupBySectionHeading as o } from "./index12.js";
|
|
12
|
+
import { BillOverflowMenu as s } from "./index13.js";
|
|
13
|
+
import "./index14.js";
|
|
14
14
|
import "./index15.js";
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import "./
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import "./index22.js";
|
|
21
|
-
|
|
15
|
+
import { BillPayWidgetHeaderUi as c, BillPayWidgetUi as l } from "./index16.js";
|
|
16
|
+
import "./index17.js";
|
|
17
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as u } from "./index18.js";
|
|
18
|
+
import { BillUploadDropzone as d, getAcceptedBillUploadFiles as f } from "./index19.js";
|
|
19
|
+
import "./index21.js";
|
|
20
|
+
import { REVEALABLE_FIELD_LABELS_EN as p } from "./index22.js";
|
|
21
|
+
import { RevealableField as m } from "./index23.js";
|
|
22
|
+
import "./index24.js";
|
|
23
|
+
export { u as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, r as BillDuplicateIcon, i as BillDuplicateWarning, a as BillFailedPaymentIcon, s as BillOverflowMenu, c as BillPayWidgetHeaderUi, l as BillPayWidgetUi, d as BillUploadDropzone, t as NO_BILL_ACTIONS, p as REVEALABLE_FIELD_LABELS_EN, m as RevealableField, f as getAcceptedBillUploadFiles, o as groupBySectionHeading };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { CircleAlertIcon as n } from "lucide-react";
|
|
1
4
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
items: [n]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
5
|
+
function r({ className: r }) {
|
|
6
|
+
return /* @__PURE__ */ t(n, {
|
|
7
|
+
"aria-hidden": !0,
|
|
8
|
+
"data-slot": "bill-failed-payment-icon",
|
|
9
|
+
className: e("ttw:size-4 ttw:shrink-0", r)
|
|
10
|
+
});
|
|
12
11
|
}
|
|
13
|
-
export {
|
|
12
|
+
export { r as BillFailedPaymentIcon };
|
|
@@ -1,53 +1 @@
|
|
|
1
|
-
import
|
|
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";
|
|
6
|
-
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js
|
|
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
|
+
import "./index10.js";
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.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;
|
|
12
|
+
}
|
|
13
|
+
export { e as groupBySectionHeading };
|
|
@@ -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 "./index12.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/index13.js
|
|
2
|
-
|
|
3
|
-
|
|
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,74 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { Button as e, Tabs as t, TabsContent as n, TabsList as r, TabsTrigger as i, Tooltip as a, TooltipContent as o, TooltipProvider as s, TooltipTrigger as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { DEFAULT_LABELS as l } from "./index13.js";
|
|
7
|
-
import { createPortal as u } from "react-dom";
|
|
8
|
-
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
-
import { SettingsIcon as p } from "lucide-react";
|
|
10
|
-
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js
|
|
11
|
-
function m({ labels: e, headerStart: t, settingsContainerRef: n }) {
|
|
12
|
-
let r = {
|
|
13
|
-
...l,
|
|
14
|
-
...e
|
|
15
|
-
};
|
|
16
|
-
return /* @__PURE__ */ f("div", {
|
|
17
|
-
className: "ttw:mb-5 ttw:hidden ttw:items-start ttw:justify-between ttw:gap-4 ttw:has-[>:not(:empty)]:flex",
|
|
18
|
-
children: [/* @__PURE__ */ f("div", {
|
|
19
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-2",
|
|
20
|
-
children: [t, r.description ? /* @__PURE__ */ d("p", {
|
|
21
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
22
|
-
children: r.description
|
|
23
|
-
}) : null]
|
|
24
|
-
}), /* @__PURE__ */ d("div", {
|
|
25
|
-
ref: n,
|
|
26
|
-
className: "ttw:flex ttw:items-center"
|
|
27
|
-
})]
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function h({ labels: m, tabs: h, selectedTabId: g, onTabChange: _, onSettingsClick: v, settingsContainer: y, actionContainerRef: b }) {
|
|
31
|
-
let x = {
|
|
32
|
-
...l,
|
|
33
|
-
...m
|
|
34
|
-
};
|
|
35
|
-
return /* @__PURE__ */ f("section", {
|
|
36
|
-
className: "ttw:w-full",
|
|
37
|
-
children: [v && y ? u(/* @__PURE__ */ d(s, { children: /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(c, {
|
|
38
|
-
asChild: !0,
|
|
39
|
-
children: /* @__PURE__ */ d(e, {
|
|
40
|
-
type: "button",
|
|
41
|
-
variant: "ghost",
|
|
42
|
-
size: "icon",
|
|
43
|
-
"aria-label": x.settingsButton,
|
|
44
|
-
onClick: v,
|
|
45
|
-
children: /* @__PURE__ */ d(p, {
|
|
46
|
-
className: "ttw:size-5",
|
|
47
|
-
"aria-hidden": !0
|
|
48
|
-
})
|
|
49
|
-
})
|
|
50
|
-
}), /* @__PURE__ */ d(o, { children: x.settingsButton })] }) }), y) : null, /* @__PURE__ */ f(t, {
|
|
51
|
-
value: g,
|
|
52
|
-
onValueChange: _,
|
|
53
|
-
className: "ttw:w-full",
|
|
54
|
-
children: [/* @__PURE__ */ f("div", {
|
|
55
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
56
|
-
children: [/* @__PURE__ */ d(r, {
|
|
57
|
-
variant: "underline",
|
|
58
|
-
children: h.map((e) => /* @__PURE__ */ d(i, {
|
|
59
|
-
value: e.id,
|
|
60
|
-
children: e.label
|
|
61
|
-
}, e.id))
|
|
62
|
-
}), /* @__PURE__ */ d("div", {
|
|
63
|
-
ref: b,
|
|
64
|
-
className: "ttw:flex ttw:items-center ttw:gap-2"
|
|
65
|
-
})]
|
|
66
|
-
}), h.map((e) => /* @__PURE__ */ d(n, {
|
|
67
|
-
value: e.id,
|
|
68
|
-
className: "ttw:mt-6",
|
|
69
|
-
children: e.content
|
|
70
|
-
}, e.id))]
|
|
71
|
-
})]
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
export { m as BillPayWidgetHeaderUi, h as BillPayWidgetUi };
|
|
1
|
+
import "./index12.js";
|
|
2
|
+
import "./index13.js";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js
|
|
2
|
+
var e = { settingsButton: "Bill pay settings" };
|
|
3
|
+
export { e as DEFAULT_LABELS };
|
|
@@ -1,10 +1,74 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Button as e, Tabs as t, TabsContent as n, TabsList as r, TabsTrigger as i, Tooltip as a, TooltipContent as o, TooltipProvider as s, TooltipTrigger as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { DEFAULT_LABELS as l } from "./index15.js";
|
|
7
|
+
import { createPortal as u } from "react-dom";
|
|
8
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
+
import { SettingsIcon as p } from "lucide-react";
|
|
1
10
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
function m({ labels: e, headerStart: t, settingsContainerRef: n }) {
|
|
12
|
+
let r = {
|
|
13
|
+
...l,
|
|
14
|
+
...e
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ f("div", {
|
|
17
|
+
className: "ttw:mb-5 ttw:hidden ttw:items-start ttw:justify-between ttw:gap-4 ttw:has-[>:not(:empty)]:flex",
|
|
18
|
+
children: [/* @__PURE__ */ f("div", {
|
|
19
|
+
className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-2",
|
|
20
|
+
children: [t, r.description ? /* @__PURE__ */ d("p", {
|
|
21
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
22
|
+
children: r.description
|
|
23
|
+
}) : null]
|
|
24
|
+
}), /* @__PURE__ */ d("div", {
|
|
25
|
+
ref: n,
|
|
26
|
+
className: "ttw:flex ttw:items-center"
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function h({ labels: m, tabs: h, selectedTabId: g, onTabChange: _, onSettingsClick: v, settingsContainer: y, actionContainerRef: b }) {
|
|
31
|
+
let x = {
|
|
32
|
+
...l,
|
|
33
|
+
...m
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ f("section", {
|
|
36
|
+
className: "ttw:w-full",
|
|
37
|
+
children: [v && y ? u(/* @__PURE__ */ d(s, { children: /* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(c, {
|
|
38
|
+
asChild: !0,
|
|
39
|
+
children: /* @__PURE__ */ d(e, {
|
|
40
|
+
type: "button",
|
|
41
|
+
variant: "ghost",
|
|
42
|
+
size: "icon",
|
|
43
|
+
"aria-label": x.settingsButton,
|
|
44
|
+
onClick: v,
|
|
45
|
+
children: /* @__PURE__ */ d(p, {
|
|
46
|
+
className: "ttw:size-5",
|
|
47
|
+
"aria-hidden": !0
|
|
48
|
+
})
|
|
49
|
+
})
|
|
50
|
+
}), /* @__PURE__ */ d(o, { children: x.settingsButton })] }) }), y) : null, /* @__PURE__ */ f(t, {
|
|
51
|
+
value: g,
|
|
52
|
+
onValueChange: _,
|
|
53
|
+
className: "ttw:w-full",
|
|
54
|
+
children: [/* @__PURE__ */ f("div", {
|
|
55
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
56
|
+
children: [/* @__PURE__ */ d(r, {
|
|
57
|
+
variant: "underline",
|
|
58
|
+
children: h.map((e) => /* @__PURE__ */ d(i, {
|
|
59
|
+
value: e.id,
|
|
60
|
+
children: e.label
|
|
61
|
+
}, e.id))
|
|
62
|
+
}), /* @__PURE__ */ d("div", {
|
|
63
|
+
ref: b,
|
|
64
|
+
className: "ttw:flex ttw:items-center ttw:gap-2"
|
|
65
|
+
})]
|
|
66
|
+
}), h.map((e) => /* @__PURE__ */ d(n, {
|
|
67
|
+
value: e.id,
|
|
68
|
+
className: "ttw:mt-6",
|
|
69
|
+
children: e.content
|
|
70
|
+
}, e.id))]
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export { m as BillPayWidgetHeaderUi, h as BillPayWidgetUi };
|
|
@@ -1,77 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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
|
+
import "./index15.js";
|
|
2
|
+
import "./index16.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.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 "
|
|
2
|
-
import "
|
|
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 "./index18.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/index19.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,31 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { useState as r } from "react";
|
|
4
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
import { Eye as o, EyeOff as s } from "lucide-react";
|
|
6
|
-
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js
|
|
7
|
-
function c({ field: c, labels: l }) {
|
|
8
|
-
let u = {
|
|
9
|
-
...n,
|
|
10
|
-
...l
|
|
11
|
-
}, [d, f] = r(!1), p = c.maskedValue && !d ? c.maskedValue : c.value;
|
|
12
|
-
return /* @__PURE__ */ a("div", {
|
|
13
|
-
className: t("ttw:relative ttw:min-w-0", c.maskedValue && "ttw:min-h-9 ttw:pr-12"),
|
|
14
|
-
children: [/* @__PURE__ */ i("dt", {
|
|
15
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
16
|
-
children: c.label
|
|
17
|
-
}), /* @__PURE__ */ a("dd", {
|
|
18
|
-
className: "ttw:break-words ttw:text-sm ttw:font-medium",
|
|
19
|
-
children: [p, c.maskedValue ? /* @__PURE__ */ i(e, {
|
|
20
|
-
type: "button",
|
|
21
|
-
variant: "ghost",
|
|
22
|
-
size: "icon",
|
|
23
|
-
className: "ttw:absolute ttw:top-0 ttw:right-0",
|
|
24
|
-
"aria-label": d ? u.hideValue : u.revealValue,
|
|
25
|
-
onClick: () => f((e) => !e),
|
|
26
|
-
children: i(d ? s : o, { className: "ttw:size-4" })
|
|
27
|
-
}) : null]
|
|
28
|
-
})]
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
export { c as RevealableField, c as default };
|
|
1
|
+
import "./index18.js";
|
|
2
|
+
import "./index19.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Button as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { REVEALABLE_FIELD_LABELS_EN as n } from "./index22.js";
|
|
3
|
+
import { useState as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { Eye as o, EyeOff as s } from "lucide-react";
|
|
6
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js
|
|
7
|
+
function c({ field: c, labels: l }) {
|
|
8
|
+
let u = {
|
|
9
|
+
...n,
|
|
10
|
+
...l
|
|
11
|
+
}, [d, f] = r(!1), p = c.maskedValue && !d ? c.maskedValue : c.value;
|
|
12
|
+
return /* @__PURE__ */ a("div", {
|
|
13
|
+
className: t("ttw:relative ttw:min-w-0", c.maskedValue && "ttw:min-h-9 ttw:pr-12"),
|
|
14
|
+
children: [/* @__PURE__ */ i("dt", {
|
|
15
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
16
|
+
children: c.label
|
|
17
|
+
}), /* @__PURE__ */ a("dd", {
|
|
18
|
+
className: "ttw:break-words ttw:text-sm ttw:font-medium",
|
|
19
|
+
children: [p, c.maskedValue ? /* @__PURE__ */ i(e, {
|
|
20
|
+
type: "button",
|
|
21
|
+
variant: "ghost",
|
|
22
|
+
size: "icon",
|
|
23
|
+
className: "ttw:absolute ttw:top-0 ttw:right-0",
|
|
24
|
+
"aria-label": d ? u.hideValue : u.revealValue,
|
|
25
|
+
onClick: () => f((e) => !e),
|
|
26
|
+
children: i(d ? s : o, { className: "ttw:size-4" })
|
|
27
|
+
}) : null]
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export { c as RevealableField, c as default };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.230", n = "19af0857508a32a8dc1e97e4c37af4760cd2eddc", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|