@tesouro/embedded-components-react 0.7.45 → 0.7.47
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.d.ts +33 -39
- package/dist/lib/CounterpartsWidget.d.ts +33 -22
- package/dist/lib/CounterpartsWidgetPublic.d.ts +33 -22
- package/dist/lib/CustomersWidget.d.ts +31 -22
- package/dist/lib/ReceivablesWidget.d.ts +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +40 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +30 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +5 -4
- 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 +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +3 -2
- 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 +8 -7
- 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/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 +9 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +76 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +73 -77
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +197 -208
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +53 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +21 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +77 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +31 -69
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +26 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +35 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +14 -36
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +84 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +487 -80
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +2 -494
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +48 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +62 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +438 -61
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +207 -431
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +20 -222
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +265 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +2 -265
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +131 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +22 -125
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +235 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +3 -240
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +249 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +54 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +221 -51
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +38 -222
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +85 -84
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +238 -241
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index2.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index5.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index6.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index8.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget → shared/document-status}/util/dist/lib/derivePayableStatus.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +22 -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/index14.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +0 -45
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js
CHANGED
|
@@ -2,11 +2,12 @@ import { Alert as e, AlertTitle as t, Badge as n, Button as r, ContextMenuItem a
|
|
|
2
2
|
import { EmptyState as u } from "../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
3
|
import { ErrorState as ce } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
4
|
import "../../../../shared/ui/dist/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { BillStatusBadge as le } from "../../../../shared/document-status/ui/dist/index4.js";
|
|
6
|
+
import "../../../../shared/document-status/ui/dist/index.js";
|
|
7
|
+
import { BillOverflowMenu as ue } from "../../../ui/dist/index7.js";
|
|
8
|
+
import { getAcceptedBillUploadFiles as de } from "../../../ui/dist/index13.js";
|
|
9
|
+
import { DateDisclosure as fe } from "../../../ui/dist/index16.js";
|
|
10
|
+
import { DueDateValue as pe } from "../../../ui/dist/index18.js";
|
|
10
11
|
import "../../../ui/dist/index.js";
|
|
11
12
|
import { AddBillPanel as d } from "./index3.js";
|
|
12
13
|
import "./index4.js";
|
|
@@ -246,7 +247,7 @@ function C({ rows: C, isLoading: w, isError: T, sorting: Ae, onSortingChange: je
|
|
|
246
247
|
cell: ({ row: e }) => /* @__PURE__ */ y("div", {
|
|
247
248
|
className: "ttw:flex ttw:items-center ttw:gap-1",
|
|
248
249
|
"data-testid": N?.[g.Status],
|
|
249
|
-
children: /* @__PURE__ */ y(
|
|
250
|
+
children: /* @__PURE__ */ y(le, {
|
|
250
251
|
status: e.original.status,
|
|
251
252
|
tone: e.original.statusTone,
|
|
252
253
|
labels: Y.statusBadge
|
|
@@ -293,7 +294,7 @@ function C({ rows: C, isLoading: w, isError: T, sorting: Ae, onSortingChange: je
|
|
|
293
294
|
}),
|
|
294
295
|
cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ y("div", {
|
|
295
296
|
className: "ttw:flex ttw:justify-end",
|
|
296
|
-
children: /* @__PURE__ */ y(
|
|
297
|
+
children: /* @__PURE__ */ y(ue, {
|
|
297
298
|
actions: e.original.menu.items.map((e) => ({
|
|
298
299
|
...e,
|
|
299
300
|
variant: "ghost"
|
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/index13.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";
|
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/index20.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/index21.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";
|
|
@@ -8,18 +8,14 @@ import "./index8.js";
|
|
|
8
8
|
import "./index9.js";
|
|
9
9
|
import { BillPayWidgetUi as a } from "./index10.js";
|
|
10
10
|
import "./index11.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { BillStatusBadge as c } from "./index14.js";
|
|
11
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as o } from "./index12.js";
|
|
12
|
+
import { BillUploadDropzone as s, getAcceptedBillUploadFiles as c } from "./index13.js";
|
|
14
13
|
import "./index15.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { DateDisclosure as l } from "./index16.js";
|
|
15
|
+
import { DUE_DATE_VALUE_LABELS_EN as u } from "./index17.js";
|
|
16
|
+
import { DueDateValue as d } from "./index18.js";
|
|
17
17
|
import "./index19.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
import { REVEALABLE_FIELD_LABELS_EN as h } from "./index24.js";
|
|
23
|
-
import { RevealableField as g } from "./index25.js";
|
|
24
|
-
import "./index26.js";
|
|
25
|
-
export { s as BADGE_TONE_CLASS_NAME, o as BILL_STATUS_BADGE_LABELS_EN, l as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, i as BillOverflowMenu, a as BillPayWidgetUi, c as BillStatusBadge, u as BillUploadDropzone, p as DUE_DATE_VALUE_LABELS_EN, f as DateDisclosure, m as DueDateValue, t as NO_BILL_ACTIONS, h as REVEALABLE_FIELD_LABELS_EN, g as RevealableField, d as getAcceptedBillUploadFiles, r as groupBySectionHeading };
|
|
18
|
+
import { REVEALABLE_FIELD_LABELS_EN as f } from "./index20.js";
|
|
19
|
+
import { RevealableField as p } from "./index21.js";
|
|
20
|
+
import "./index22.js";
|
|
21
|
+
export { o as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, i as BillOverflowMenu, a as BillPayWidgetUi, s as BillUploadDropzone, u as DUE_DATE_VALUE_LABELS_EN, l as DateDisclosure, d as DueDateValue, t as NO_BILL_ACTIONS, f as REVEALABLE_FIELD_LABELS_EN, p as RevealableField, c as getAcceptedBillUploadFiles, r as groupBySectionHeading };
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js
|
|
2
2
|
var e = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
canceled: "Cancelled",
|
|
10
|
-
rejected: "Rejected",
|
|
11
|
-
unknown: "Unknown"
|
|
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"
|
|
12
9
|
};
|
|
13
10
|
//#endregion
|
|
14
|
-
export { e as
|
|
11
|
+
export { e as BILL_UPLOAD_DROPZONE_LABELS_EN };
|
|
@@ -1,13 +1,78 @@
|
|
|
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 "./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";
|
|
1
8
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
}
|
|
12
77
|
//#endregion
|
|
13
|
-
export {
|
|
78
|
+
export { f as BillUploadDropzone, f as default, d as getAcceptedBillUploadFiles };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "./index12.js";
|
|
2
|
-
import "./
|
|
2
|
+
import "./index13.js";
|
|
@@ -1,11 +1,29 @@
|
|
|
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";
|
|
1
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
})]
|
|
26
|
+
});
|
|
27
|
+
}
|
|
10
28
|
//#endregion
|
|
11
|
-
export {
|
|
29
|
+
export { o as DateDisclosure };
|
|
@@ -1,78 +1,4 @@
|
|
|
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
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js
|
|
9
|
-
|
|
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
|
-
}
|
|
2
|
+
var e = { overdue: "Overdue" };
|
|
77
3
|
//#endregion
|
|
78
|
-
export {
|
|
4
|
+
export { e as DUE_DATE_VALUE_LABELS_EN };
|
|
@@ -0,0 +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 "./index17.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { AlertTriangleIcon as i } from "lucide-react";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.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
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { a as DueDateValue, a as default };
|
|
@@ -1,29 +1,7 @@
|
|
|
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";
|
|
4
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
})]
|
|
26
|
-
});
|
|
27
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
revealValue: "Show value",
|
|
4
|
+
hideValue: "Hide value"
|
|
5
|
+
};
|
|
28
6
|
//#endregion
|
|
29
|
-
export {
|
|
7
|
+
export { e as REVEALABLE_FIELD_LABELS_EN };
|
|
@@ -1,4 +1,34 @@
|
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { REVEALABLE_FIELD_LABELS_EN as t } from "./index20.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";
|
|
1
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js
|
|
2
|
-
|
|
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
|
+
}
|
|
3
33
|
//#endregion
|
|
4
|
-
export {
|
|
34
|
+
export { s as RevealableField, s as default };
|
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
import { AlertTriangleIcon as i } from "lucide-react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.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
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { a as DueDateValue, a as default };
|
|
1
|
+
import "./index20.js";
|
|
2
|
+
import "./index21.js";
|