@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.
- package/dist/index.css +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index6.js +31 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index7.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +143 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +33 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +15 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +76 -254
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +48 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +241 -438
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +29 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +460 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +327 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +3 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index10.js +2 -200
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +38 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index12.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index13.js +196 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index14.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +2 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index19.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +2 -460
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +54 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +463 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index24.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index8.js +5 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index9.js +28 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/queryKeys.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +1 -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/shared/feature/dist/lib/layout/useAnchoredOverlayLayout.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyAddress/CopyAddress.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyButton/CopyButton.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyButton/labels.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadEmailOption/UploadEmailOption.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadPopover/UploadPopover.js +8 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +3623 -3539
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyAddress/CopyAddress.js
CHANGED
|
@@ -2,54 +2,38 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useEffect as
|
|
8
|
-
import { jsx as
|
|
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
|
|
12
|
-
let [
|
|
13
|
-
|
|
14
|
-
if (!
|
|
15
|
-
let e = window.setTimeout(() =>
|
|
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
|
-
}, [
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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 {
|
|
39
|
+
export { o as CopyAddress };
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyButton/CopyButton.js
ADDED
|
@@ -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 };
|