@tesouro/embedded-components-react 0.11.185 → 0.11.188

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 (52) hide show
  1. package/dist/index.css +6 -0
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +3 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index6.js +31 -4
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index7.js +5 -0
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +4 -4
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +143 -12
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +33 -83
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +15 -48
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +76 -254
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +48 -34
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +241 -438
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +29 -298
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +460 -4
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +327 -4
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +3 -37
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +5 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +38 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js +1 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +30 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +7 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index10.js +2 -200
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +38 -3
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index12.js +10 -2
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index13.js +196 -11
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index14.js +1 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +9 -15
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +2 -54
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index19.js +20 -16
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +2 -460
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +54 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js +17 -0
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +463 -0
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index24.js +3 -0
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index8.js +5 -36
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index9.js +28 -10
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/queryKeys.js +8 -5
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +11 -9
  42. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +1 -0
  43. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/layout/useAnchoredOverlayLayout.js +5 -0
  45. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +4 -0
  46. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyAddress/CopyAddress.js +30 -46
  47. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyButton/CopyButton.js +36 -0
  48. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyButton/labels.js +3 -0
  49. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadEmailOption/UploadEmailOption.js +2 -0
  50. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadPopover/UploadPopover.js +8 -0
  51. package/dist/packages/shared-ui-shadcn/dist/index.js +3623 -3539
  52. package/package.json +1 -1
@@ -2,54 +2,38 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { Button as e, Tooltip as t, TooltipContent as n, TooltipProvider as r, TooltipTrigger as i } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { InlineErrorAlert as a } from "../InlineErrorAlert/InlineErrorAlert.js";
7
- import { useEffect as o, useState as s } from "react";
8
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
- import { Check as u, Copy as d } from "lucide-react";
5
+ import { InlineErrorAlert as e } from "../InlineErrorAlert/InlineErrorAlert.js";
6
+ import { CopyButton as t } from "../CopyButton/CopyButton.js";
7
+ import { useEffect as n, useState as r } from "react";
8
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
10
9
  // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyAddress/CopyAddress.js
11
- function f({ address: f, copyLabel: p, copiedLabel: m, failedLabel: h }) {
12
- let [g, _] = s(!1), [v, y] = s(!1);
13
- o(() => {
14
- if (!g) return;
15
- let e = window.setTimeout(() => _(!1), 2e3);
10
+ function o({ address: o, copyLabel: s, copiedLabel: c, failedLabel: l }) {
11
+ let [u, d] = r(!1), [f, p] = r(!1);
12
+ return n(() => {
13
+ if (!u) return;
14
+ let e = window.setTimeout(() => d(!1), 2e3);
16
15
  return () => window.clearTimeout(e);
17
- }, [g]);
18
- let b = async () => {
19
- try {
20
- await navigator.clipboard.writeText(f), y(!1), _(!0);
21
- } catch {
22
- _(!1), y(!0);
23
- }
24
- };
25
- return /* @__PURE__ */ l("div", {
16
+ }, [u]), /* @__PURE__ */ a("div", {
26
17
  className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-2",
27
- children: [
28
- /* @__PURE__ */ l("div", {
29
- className: "ttw:flex ttw:w-full ttw:items-center ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:p-3",
30
- children: [/* @__PURE__ */ c("span", {
31
- title: f,
32
- className: "ttw:min-w-0 ttw:flex-1 ttw:truncate ttw:text-sm",
33
- children: f
34
- }), /* @__PURE__ */ c(r, { children: /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ c(i, {
35
- asChild: !0,
36
- children: /* @__PURE__ */ c(e, {
37
- type: "button",
38
- variant: "ghost",
39
- size: "icon-sm",
40
- "aria-label": g ? m : p,
41
- onClick: () => void b(),
42
- children: c(g ? u : d, { className: "ttw:size-4" })
43
- })
44
- }), /* @__PURE__ */ c(n, { children: g ? m : p })] }) })]
45
- }),
46
- v && /* @__PURE__ */ c(a, { children: h }),
47
- /* @__PURE__ */ c("span", {
48
- role: "status",
49
- className: "ttw:sr-only",
50
- children: g ? m : ""
51
- })
52
- ]
18
+ children: [/* @__PURE__ */ a("div", {
19
+ className: "ttw:flex ttw:w-full ttw:items-center ttw:gap-2 ttw:rounded-md ttw:border ttw:border-border ttw:p-3",
20
+ children: [/* @__PURE__ */ i("span", {
21
+ title: o,
22
+ className: "ttw:min-w-0 ttw:flex-1 ttw:truncate ttw:text-sm",
23
+ children: o
24
+ }), /* @__PURE__ */ i(t, {
25
+ copied: u,
26
+ copyLabel: s,
27
+ labels: { copied: c },
28
+ onCopy: async () => {
29
+ try {
30
+ await navigator.clipboard.writeText(o), p(!1), d(!0);
31
+ } catch {
32
+ d(!1), p(!0);
33
+ }
34
+ }
35
+ })]
36
+ }), f && /* @__PURE__ */ i(e, { children: l })]
53
37
  });
54
38
  }
55
- export { f as CopyAddress };
39
+ export { o as CopyAddress };
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Button as e, Tooltip as t, TooltipContent as n, TooltipProvider as r, TooltipTrigger as i } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { COPY_BUTTON_LABELS_EN as a } from "./labels.js";
7
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ import { Check as l, Copy as u } from "lucide-react";
9
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyButton/CopyButton.js
10
+ function d({ copyLabel: d, onCopy: f, copied: p, disabled: m, labels: h }) {
11
+ let g = {
12
+ ...a,
13
+ ...h
14
+ }, _ = p ? g.copied : d;
15
+ return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(r, { children: /* @__PURE__ */ c(t, { children: [/* @__PURE__ */ s(i, {
16
+ asChild: !0,
17
+ children: /* @__PURE__ */ s(e, {
18
+ type: "button",
19
+ variant: "ghost",
20
+ size: "icon-sm",
21
+ className: "ttw:shrink-0",
22
+ disabled: m,
23
+ "aria-label": _,
24
+ onClick: () => f(),
25
+ children: s(p ? l : u, {
26
+ className: "ttw:size-4",
27
+ "aria-hidden": !0
28
+ })
29
+ })
30
+ }), /* @__PURE__ */ s(n, { children: _ })] }) }), /* @__PURE__ */ s("span", {
31
+ role: "status",
32
+ className: "ttw:sr-only",
33
+ children: p ? g.copied : ""
34
+ })] });
35
+ }
36
+ export { d as CopyButton };
@@ -0,0 +1,3 @@
1
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyButton/labels.js
2
+ var e = { copied: "Copied" };
3
+ export { e as COPY_BUTTON_LABELS_EN };
@@ -0,0 +1,2 @@
1
+ import "../CopyAddress/CopyAddress.js";
2
+ import "react/jsx-runtime";
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import "../FileDropZone/FileDropZone.js";
7
+ import "../UploadEmailOption/UploadEmailOption.js";
8
+ import "react/jsx-runtime";