@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.
Files changed (68) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +6 -6
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +0 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +43 -31
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +12 -46
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +46 -30
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +26 -149
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +159 -31
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +32 -98
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +102 -10
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +10 -212
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +221 -4
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -29
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +27 -80
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +75 -125
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +132 -3
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +3 -4
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +2 -43
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +45 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -8
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +6 -9
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +9 -92
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +94 -3
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +3 -53
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +107 -8
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +9 -16
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +37 -5
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +6 -78
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +83 -144
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +161 -4
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +5 -8
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -113
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +115 -1
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +0 -24
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +25 -0
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +16 -15
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +4 -0
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +12 -204
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +254 -8
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +6 -4
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +6 -91
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +93 -0
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -7
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +5 -28
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +30 -2
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +2 -7
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +5 -32
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +34 -2
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -12
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +10 -104
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +105 -1
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -18
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +14 -6
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +7 -167
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +170 -2
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +2 -14
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +11 -86
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +89 -2
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -0
  64. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  65. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  66. package/dist/packages/shared-ui-shadcn/dist/index.js +1274 -1266
  67. package/package.json +1 -1
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -2
@@ -1,89 +1,14 @@
1
- import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
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
- 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
- }
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 { c as SourceDocumentPanel, c as default };
14
+ export { t as SOURCE_DOCUMENT_PANEL_LABELS_EN };
@@ -1,2 +1,89 @@
1
- import "./index72.js";
2
- import "./index73.js";
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 };
@@ -0,0 +1,2 @@
1
+ import "./index73.js";
2
+ import "./index74.js";
@@ -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.332", n = "36a9a4c772b15a24b0e093aa4a6195e2e9671c80", r = Object.freeze({
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/index60.js";
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";