@tesouro/embedded-components-react 0.2.332 → 0.2.336
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 +3 -0
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +43 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +26 -149
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +159 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +102 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +10 -212
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +27 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +75 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +132 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +3 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +107 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +37 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +6 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +83 -144
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +161 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +12 -204
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +254 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +6 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +10 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +7 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +11 -86
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1274 -1266
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -2
|
@@ -1,89 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BillUploadDropzone as n } from "./index3.js";
|
|
1
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "./index2.js";
|
|
3
2
|
import "./index5.js";
|
|
4
|
-
import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index72.js";
|
|
5
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
import { Download as o, Trash2 as s } from "lucide-react";
|
|
7
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (l === "loading") return /* @__PURE__ */ a("div", {
|
|
18
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
19
|
-
"data-testid": u,
|
|
20
|
-
children: [/* @__PURE__ */ i("div", {
|
|
21
|
-
className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
|
|
22
|
-
children: /* @__PURE__ */ i("span", {
|
|
23
|
-
"aria-live": "polite",
|
|
24
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
25
|
-
children: c.fileName ? f.scanningAttachment(c.fileName) : f.scanning
|
|
26
|
-
})
|
|
27
|
-
}), /* @__PURE__ */ a("div", {
|
|
28
|
-
className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ i(t, { className: "ttw:h-6 ttw:w-2/5" }),
|
|
31
|
-
/* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-3/5" }),
|
|
32
|
-
/* @__PURE__ */ i(t, { className: "ttw:mt-4 ttw:h-4 ttw:w-full" }),
|
|
33
|
-
/* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-full" }),
|
|
34
|
-
/* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4/5" }),
|
|
35
|
-
/* @__PURE__ */ i(t, { className: "ttw:mt-auto ttw:h-24 ttw:w-full" })
|
|
36
|
-
]
|
|
37
|
-
})]
|
|
38
|
-
});
|
|
39
|
-
if (l === "document") {
|
|
40
|
-
let { fileName: t, preview: n, onDownload: r, onDelete: l } = c;
|
|
41
|
-
return /* @__PURE__ */ a("div", {
|
|
42
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
43
|
-
"data-testid": u,
|
|
44
|
-
children: [/* @__PURE__ */ a("div", {
|
|
45
|
-
className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
|
|
46
|
-
children: [
|
|
47
|
-
/* @__PURE__ */ i("span", {
|
|
48
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
49
|
-
children: f.scannedAttachment(t ?? "")
|
|
50
|
-
}),
|
|
51
|
-
r ? /* @__PURE__ */ i(e, {
|
|
52
|
-
type: "button",
|
|
53
|
-
variant: "ghost",
|
|
54
|
-
size: "icon",
|
|
55
|
-
"aria-label": f.download,
|
|
56
|
-
onClick: r,
|
|
57
|
-
children: /* @__PURE__ */ i(o, { className: "ttw:size-4" })
|
|
58
|
-
}) : null,
|
|
59
|
-
l ? /* @__PURE__ */ i(e, {
|
|
60
|
-
type: "button",
|
|
61
|
-
variant: "ghost",
|
|
62
|
-
size: "icon",
|
|
63
|
-
"aria-label": f.delete,
|
|
64
|
-
onClick: l,
|
|
65
|
-
children: /* @__PURE__ */ i(s, { className: "ttw:size-4" })
|
|
66
|
-
}) : null
|
|
67
|
-
]
|
|
68
|
-
}), /* @__PURE__ */ i("div", {
|
|
69
|
-
className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:items-start ttw:justify-center ttw:overflow-auto ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
70
|
-
children: n
|
|
71
|
-
})]
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
return /* @__PURE__ */ a("div", {
|
|
75
|
-
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
76
|
-
"data-testid": u,
|
|
77
|
-
children: [/* @__PURE__ */ i("p", {
|
|
78
|
-
className: "ttw:mb-3 ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
79
|
-
children: f.uploadHeading
|
|
80
|
-
}), /* @__PURE__ */ i(n, {
|
|
81
|
-
status: c.uploadStatus,
|
|
82
|
-
errorMessage: c.uploadErrorMessage,
|
|
83
|
-
onFilesSelected: c.onFilesSelected,
|
|
84
|
-
labels: f.dropzone
|
|
85
|
-
})]
|
|
86
|
-
});
|
|
87
|
-
}
|
|
4
|
+
var t = {
|
|
5
|
+
uploadHeading: "Attach an invoice (optional)",
|
|
6
|
+
scannedAttachment: (e) => `Scanned attachment: ${e}`,
|
|
7
|
+
scanning: "Scanning attachment…",
|
|
8
|
+
scanningAttachment: (e) => `Scanning attachment: ${e}`,
|
|
9
|
+
download: "Download the scanned attachment",
|
|
10
|
+
delete: "Delete the scanned attachment",
|
|
11
|
+
dropzone: e
|
|
12
|
+
};
|
|
88
13
|
//#endregion
|
|
89
|
-
export {
|
|
14
|
+
export { t as SOURCE_DOCUMENT_PANEL_LABELS_EN };
|
|
@@ -1,2 +1,89 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./
|
|
1
|
+
import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BillUploadDropzone as n } from "./index3.js";
|
|
3
|
+
import "./index5.js";
|
|
4
|
+
import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index73.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Download as o, Trash2 as s } from "lucide-react";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js
|
|
8
|
+
function c(c) {
|
|
9
|
+
let { mode: l, testId: u, labels: d } = c, f = {
|
|
10
|
+
...r,
|
|
11
|
+
...d,
|
|
12
|
+
dropzone: {
|
|
13
|
+
...r.dropzone,
|
|
14
|
+
...d?.dropzone
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
if (l === "loading") return /* @__PURE__ */ a("div", {
|
|
18
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
19
|
+
"data-testid": u,
|
|
20
|
+
children: [/* @__PURE__ */ i("div", {
|
|
21
|
+
className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
|
|
22
|
+
children: /* @__PURE__ */ i("span", {
|
|
23
|
+
"aria-live": "polite",
|
|
24
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
25
|
+
children: c.fileName ? f.scanningAttachment(c.fileName) : f.scanning
|
|
26
|
+
})
|
|
27
|
+
}), /* @__PURE__ */ a("div", {
|
|
28
|
+
className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ i(t, { className: "ttw:h-6 ttw:w-2/5" }),
|
|
31
|
+
/* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-3/5" }),
|
|
32
|
+
/* @__PURE__ */ i(t, { className: "ttw:mt-4 ttw:h-4 ttw:w-full" }),
|
|
33
|
+
/* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-full" }),
|
|
34
|
+
/* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4/5" }),
|
|
35
|
+
/* @__PURE__ */ i(t, { className: "ttw:mt-auto ttw:h-24 ttw:w-full" })
|
|
36
|
+
]
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
if (l === "document") {
|
|
40
|
+
let { fileName: t, preview: n, onDownload: r, onDelete: l } = c;
|
|
41
|
+
return /* @__PURE__ */ a("div", {
|
|
42
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
43
|
+
"data-testid": u,
|
|
44
|
+
children: [/* @__PURE__ */ a("div", {
|
|
45
|
+
className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ i("span", {
|
|
48
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
49
|
+
children: f.scannedAttachment(t ?? "")
|
|
50
|
+
}),
|
|
51
|
+
r ? /* @__PURE__ */ i(e, {
|
|
52
|
+
type: "button",
|
|
53
|
+
variant: "ghost",
|
|
54
|
+
size: "icon",
|
|
55
|
+
"aria-label": f.download,
|
|
56
|
+
onClick: r,
|
|
57
|
+
children: /* @__PURE__ */ i(o, { className: "ttw:size-4" })
|
|
58
|
+
}) : null,
|
|
59
|
+
l ? /* @__PURE__ */ i(e, {
|
|
60
|
+
type: "button",
|
|
61
|
+
variant: "ghost",
|
|
62
|
+
size: "icon",
|
|
63
|
+
"aria-label": f.delete,
|
|
64
|
+
onClick: l,
|
|
65
|
+
children: /* @__PURE__ */ i(s, { className: "ttw:size-4" })
|
|
66
|
+
}) : null
|
|
67
|
+
]
|
|
68
|
+
}), /* @__PURE__ */ i("div", {
|
|
69
|
+
className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:items-start ttw:justify-center ttw:overflow-auto ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
70
|
+
children: n
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return /* @__PURE__ */ a("div", {
|
|
75
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
76
|
+
"data-testid": u,
|
|
77
|
+
children: [/* @__PURE__ */ i("p", {
|
|
78
|
+
className: "ttw:mb-3 ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
79
|
+
children: f.uploadHeading
|
|
80
|
+
}), /* @__PURE__ */ i(n, {
|
|
81
|
+
status: c.uploadStatus,
|
|
82
|
+
errorMessage: c.uploadErrorMessage,
|
|
83
|
+
onFilesSelected: c.onFilesSelected,
|
|
84
|
+
labels: f.dropzone
|
|
85
|
+
})]
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { c as SourceDocumentPanel, 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
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.2.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.2.336", n = "b339a6da1637305cf4138018098d46f29e199096", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -9,7 +9,7 @@ import { CardProgram as n } from "../../../shared/feature/dist/lib/card/cardProg
|
|
|
9
9
|
import "../../../shared/feature/dist/index.js";
|
|
10
10
|
import { BankAccountsWidget as r } from "../../../bank-accounts-widget/feature/dist/index8.js";
|
|
11
11
|
import "../../../bank-accounts-widget/feature/dist/index.js";
|
|
12
|
-
import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/
|
|
12
|
+
import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/index61.js";
|
|
13
13
|
import "../../../bill-pay-widget/feature/dist/index.js";
|
|
14
14
|
import { CardsWidget as a } from "../../../cards-widget/feature/dist/index8.js";
|
|
15
15
|
import "../../../cards-widget/feature/dist/index.js";
|