@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.
Files changed (98) hide show
  1. package/dist/index.css +82 -55
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +7 -7
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +14 -8
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index11.js +59 -7
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +10 -65
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +9 -10
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -8
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +9 -7
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +29 -11
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +24 -24
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +14 -22
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +155 -14
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +13 -157
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +18 -12
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +32 -15
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +99 -39
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +69 -85
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +3 -85
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +57 -4
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +114 -57
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +190 -111
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +75 -187
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +35 -15
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +67 -75
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +111 -69
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +461 -108
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +102 -452
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +12 -116
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +85 -12
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +67 -73
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +231 -73
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +38 -232
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +245 -38
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +169 -38
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +21 -252
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +534 -23
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +4 -542
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +43 -4
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +236 -39
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +3 -240
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +6 -3
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +63 -4
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +1 -65
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +82 -225
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +45 -83
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +4 -47
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +13 -4
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +8 -13
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +5 -5
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +138 -155
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +2 -2
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +48 -43
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +219 -207
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +13 -13
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +5 -4
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +6 -6
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -5
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +278 -322
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +1 -1
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -16
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +2 -41
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +4 -2
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +39 -9
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +2 -78
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +11 -0
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +78 -2
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -4
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +25 -26
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +4 -2
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +28 -5
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -34
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +7 -2
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +34 -0
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +31 -15
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +1 -54
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +18 -2
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +52 -2
  93. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  94. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +1 -1
  95. package/dist/packages/shared-ui-shadcn/dist/index.js +4696 -4681
  96. package/package.json +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +0 -1
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +0 -29
@@ -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/index13.js";
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/index10.js";
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/index48.js";
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";
@@ -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 see the pair 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."
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",
@@ -1,4 +1,4 @@
1
- import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/index20.js";
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 = {
@@ -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/index21.js";
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 { groupBySectionHeading as r } from "./index6.js";
6
- import { BillOverflowMenu as i } from "./index7.js";
7
- import "./index8.js";
8
- import "./index9.js";
9
- import { BillPayWidgetUi as a } from "./index10.js";
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 { BILL_UPLOAD_DROPZONE_LABELS_EN as o } from "./index12.js";
12
- import { BillUploadDropzone as s, getAcceptedBillUploadFiles as c } from "./index13.js";
13
- import "./index15.js";
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
- import "./index19.js";
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 };
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
- "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 "./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,2 +1,4 @@
1
- import "./index9.js";
2
- import "./index10.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js
2
+ var e = {};
3
+ //#endregion
4
+ export { e as DEFAULT_LABELS };
@@ -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
- 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
- };
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 { e as BILL_UPLOAD_DROPZONE_LABELS_EN };
41
+ export { s as BillPayWidgetUi };
@@ -1,78 +1,2 @@
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";
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 "./index12.js";
2
- import "./index13.js";
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,4 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js
2
- var e = { overdue: "Overdue" };
3
- //#endregion
4
- export { e as DUE_DATE_VALUE_LABELS_EN };
1
+ import "./index14.js";
2
+ import "./index15.js";
@@ -1,30 +1,29 @@
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";
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 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
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 { a as DueDateValue, a as default };
29
+ export { o as DateDisclosure };
@@ -1,2 +1,4 @@
1
- import "./index17.js";
2
- import "./index18.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js
2
+ var e = { overdue: "Overdue" };
3
+ //#endregion
4
+ export { e as DUE_DATE_VALUE_LABELS_EN };
@@ -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
- var e = {
3
- revealValue: "Show value",
4
- hideValue: "Hide value"
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 { e as REVEALABLE_FIELD_LABELS_EN };
30
+ export { a as DueDateValue, a as default };
@@ -1,34 +1,2 @@
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";
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
- import "./index20.js";
2
- import "./index21.js";
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 };
@@ -0,0 +1,2 @@
1
+ import "./index22.js";
2
+ import "./index23.js";
@@ -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 e(e) {
3
- let t = [];
4
- for (let n of e) {
5
- let e = t.at(-1);
6
- if (e && e.heading === n.sectionHeading) {
7
- e.items = [...e.items, n];
8
- continue;
9
- }
10
- t.push({
11
- heading: n.sectionHeading,
12
- items: [n]
13
- });
14
- }
15
- return t;
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 { e as groupBySectionHeading };
34
+ export { a as BillDuplicateWarning };