@tesouro/embedded-components-react 0.9.22 → 0.9.25
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.css +82 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index11.js +59 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +10 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +155 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +13 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +99 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +69 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +3 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +57 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +114 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +190 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +75 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +35 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +461 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +102 -452
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +12 -116
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +231 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +38 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +245 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +169 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +21 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +534 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +4 -542
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +236 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +3 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +1 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +82 -225
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +45 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +8 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.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/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +138 -155
- 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/bill-detail/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +48 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +219 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -5
- 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/index20.js +278 -322
- 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/lib/BillPayWidget/BillPayWidget.js +1 -1
- 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/mocks/labels.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 +18 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +78 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +4696 -4681
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +0 -29
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button as e, Typography as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BillUploadDropzone as n } from "../../../ui/dist/
|
|
2
|
+
import { BillUploadDropzone as n } from "../../../ui/dist/index15.js";
|
|
3
3
|
import "../../../ui/dist/index.js";
|
|
4
4
|
import { ADD_BILL_PANEL_LABELS_EN as r } from "./index2.js";
|
|
5
5
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ import { WidgetProvider as a } from "../../../../../shared/feature/dist/lib/Widg
|
|
|
14
14
|
import { useWidgetConfig as o } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
15
15
|
import "../../../../../shared/feature/dist/index.js";
|
|
16
16
|
import { BillPayWidgetAnalyticsEvent as s, WIDGET_NAME as c } from "../analytics/events.js";
|
|
17
|
-
import { BillPayWidgetUi as l } from "../../../../ui/dist/
|
|
17
|
+
import { BillPayWidgetUi as l } from "../../../../ui/dist/index12.js";
|
|
18
18
|
import "../../../../ui/dist/index.js";
|
|
19
19
|
import { BillUploadWidget as u } from "../../../../bill-upload/feature/dist/index8.js";
|
|
20
20
|
import "../../../../bill-upload/feature/dist/index.js";
|
|
@@ -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 { BillDetailsWidget as i, BillDialogWidget as a } from "../../../../bill-detail/feature/dist/
|
|
11
|
+
import { BillDetailsWidget as i, BillDialogWidget as a } from "../../../../bill-detail/feature/dist/index47.js";
|
|
12
12
|
import "../../../../bill-detail/feature/dist/index.js";
|
|
13
13
|
import "../../../../bill-upload/feature/dist/index.js";
|
|
14
14
|
import { BillsListWidget as o } from "../../../../bills-list/feature/dist/index20.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js
CHANGED
|
@@ -10,7 +10,7 @@ var e = { scenarios: {
|
|
|
10
10
|
},
|
|
11
11
|
duplicates: {
|
|
12
12
|
label: "Possible duplicates",
|
|
13
|
-
blurb: "Two uploads of the same Northwind invoice are flagged, so a warning banner sits above the list. Press Review duplicates to
|
|
13
|
+
blurb: "Two uploads of the same Northwind invoice are flagged, so a warning banner sits above the list. Press Review duplicates to open the Duplicates tab, where the pair is grouped under one heading, then open either row’s menu, choose Not a duplicate and confirm: the match is dismissed on both bills and the banner goes away."
|
|
14
14
|
},
|
|
15
15
|
empty: {
|
|
16
16
|
label: "No bills yet",
|
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
|
//#region ../../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";
|
|
@@ -2,20 +2,22 @@ import { BillActionButtons as e, NO_BILL_ACTIONS as t } from "./index2.js";
|
|
|
2
2
|
import "./index3.js";
|
|
3
3
|
import { BillDecisionDialog as n } from "./index4.js";
|
|
4
4
|
import "./index5.js";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import "./index8.js";
|
|
8
|
-
import "./index9.js";
|
|
9
|
-
import
|
|
5
|
+
import { BillDuplicateWarning as r } from "./index6.js";
|
|
6
|
+
import "./index7.js";
|
|
7
|
+
import { groupBySectionHeading as i } from "./index8.js";
|
|
8
|
+
import { BillOverflowMenu as a } from "./index9.js";
|
|
9
|
+
import "./index10.js";
|
|
10
10
|
import "./index11.js";
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import "./
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import "./index19.js";
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import "./index22.js";
|
|
21
|
-
|
|
11
|
+
import { BillPayWidgetUi as o } from "./index12.js";
|
|
12
|
+
import "./index13.js";
|
|
13
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as s } from "./index14.js";
|
|
14
|
+
import { BillUploadDropzone as c, getAcceptedBillUploadFiles as l } from "./index15.js";
|
|
15
|
+
import "./index17.js";
|
|
16
|
+
import { DateDisclosure as u } from "./index18.js";
|
|
17
|
+
import { DUE_DATE_VALUE_LABELS_EN as d } from "./index19.js";
|
|
18
|
+
import { DueDateValue as f } from "./index20.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 { s as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, r as BillDuplicateWarning, a as BillOverflowMenu, o as BillPayWidgetUi, c as BillUploadDropzone, d as DUE_DATE_VALUE_LABELS_EN, u as DateDisclosure, f as DueDateValue, t as NO_BILL_ACTIONS, p as REVEALABLE_FIELD_LABELS_EN, m as RevealableField, l as getAcceptedBillUploadFiles, i as groupBySectionHeading };
|
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 "./index9.js";
|
|
7
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.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: "line",
|
|
28
|
-
children: c.map((e) => /* @__PURE__ */ a(r, {
|
|
29
|
-
value: e.id,
|
|
30
|
-
children: e.label
|
|
31
|
-
}, e.id))
|
|
32
|
-
}), c.map((e) => /* @__PURE__ */ a(t, {
|
|
33
|
-
value: e.id,
|
|
34
|
-
className: "ttw:mt-6",
|
|
35
|
-
children: e.content
|
|
36
|
-
}, e.id))]
|
|
37
|
-
})]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { s as BillPayWidgetUi };
|
|
1
|
+
import "./index8.js";
|
|
2
|
+
import "./index9.js";
|
|
@@ -1,11 +1,41 @@
|
|
|
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";
|
|
1
8
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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: "line",
|
|
28
|
+
children: c.map((e) => /* @__PURE__ */ a(r, {
|
|
29
|
+
value: e.id,
|
|
30
|
+
children: e.label
|
|
31
|
+
}, e.id))
|
|
32
|
+
}), c.map((e) => /* @__PURE__ */ a(t, {
|
|
33
|
+
value: e.id,
|
|
34
|
+
className: "ttw:mt-6",
|
|
35
|
+
children: e.content
|
|
36
|
+
}, e.id))]
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
10
40
|
//#endregion
|
|
11
|
-
export {
|
|
41
|
+
export { s as BillPayWidgetUi };
|
|
@@ -1,78 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import "../../../shared/ui/dist/index.js";
|
|
4
|
-
import { BILL_UPLOAD_DROPZONE_LABELS_EN as n } from "./index12.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
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.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
|
-
//#endregion
|
|
78
|
-
export { f as BillUploadDropzone, f as default, d as getAcceptedBillUploadFiles };
|
|
1
|
+
import "./index11.js";
|
|
2
|
+
import "./index12.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region ../../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
|
+
//#endregion
|
|
11
|
+
export { e as BILL_UPLOAD_DROPZONE_LABELS_EN };
|
|
@@ -1,2 +1,78 @@
|
|
|
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 "./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
|
+
//#region ../../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
|
+
//#endregion
|
|
78
|
+
export { f as BillUploadDropzone, f as default, d as getAcceptedBillUploadFiles };
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as
|
|
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
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js
|
|
6
|
-
function
|
|
7
|
-
let l =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
28
|
//#endregion
|
|
30
|
-
export {
|
|
29
|
+
export { o as DateDisclosure };
|
|
@@ -1,7 +1,30 @@
|
|
|
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
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
}
|
|
6
29
|
//#endregion
|
|
7
|
-
export {
|
|
30
|
+
export { a as DueDateValue, a as default };
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { useState as n } from "react";
|
|
4
|
-
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
import { Eye as a, EyeOff as o } from "lucide-react";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js
|
|
7
|
-
function s({ field: s, labels: c }) {
|
|
8
|
-
let l = {
|
|
9
|
-
...t,
|
|
10
|
-
...c
|
|
11
|
-
}, [u, d] = n(!1), f = s.maskedValue && !u ? s.maskedValue : s.value;
|
|
12
|
-
return /* @__PURE__ */ i("div", {
|
|
13
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
|
|
14
|
-
children: [/* @__PURE__ */ i("div", {
|
|
15
|
-
className: "ttw:min-w-0",
|
|
16
|
-
children: [/* @__PURE__ */ r("dt", {
|
|
17
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
18
|
-
children: s.label
|
|
19
|
-
}), /* @__PURE__ */ r("dd", {
|
|
20
|
-
className: "ttw:break-words ttw:text-sm ttw:font-medium",
|
|
21
|
-
children: f
|
|
22
|
-
})]
|
|
23
|
-
}), s.maskedValue ? /* @__PURE__ */ r(e, {
|
|
24
|
-
type: "button",
|
|
25
|
-
variant: "ghost",
|
|
26
|
-
size: "icon",
|
|
27
|
-
"aria-label": u ? l.hideValue : l.revealValue,
|
|
28
|
-
onClick: () => d((e) => !e),
|
|
29
|
-
children: r(u ? o : a, { className: "ttw:size-4" })
|
|
30
|
-
}) : null]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { s as RevealableField, s as default };
|
|
1
|
+
import "./index19.js";
|
|
2
|
+
import "./index20.js";
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../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
|
+
//#endregion
|
|
7
|
+
export { e as REVEALABLE_FIELD_LABELS_EN };
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
//#region ../../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
|
+
//#endregion
|
|
34
|
+
export { s as RevealableField, s as default };
|
|
@@ -1,18 +1,34 @@
|
|
|
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
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
]
|
|
31
|
+
});
|
|
16
32
|
}
|
|
17
33
|
//#endregion
|
|
18
|
-
export {
|
|
34
|
+
export { a as BillDuplicateWarning };
|