@tesouro/embedded-components-react 0.11.187 → 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 +3 -0
- 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/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -876,6 +876,9 @@
|
|
|
876
876
|
.ttw\:h-svh {
|
|
877
877
|
height: 100svh;
|
|
878
878
|
}
|
|
879
|
+
.ttw\:max-h-\(--radix-popover-content-available-height\) {
|
|
880
|
+
max-height: var(--radix-popover-content-available-height);
|
|
881
|
+
}
|
|
879
882
|
.ttw\:max-h-\(--radix-select-content-available-height\) {
|
|
880
883
|
max-height: var(--radix-select-content-available-height);
|
|
881
884
|
}
|
|
@@ -19,4 +19,5 @@ import { CardProgram as w } from "./lib/card/cardProgram.js";
|
|
|
19
19
|
import { CARD_STATUS_LABELS_EN as T, CARD_STATUS_TONE as E, CARD_TYPE_LABELS_EN as D } from "./lib/card/cardPresentation.js";
|
|
20
20
|
import { deniedNoticeExpiresAt as O, selectBankAccountApplication as k } from "./lib/application/bankAccountApplication.js";
|
|
21
21
|
import "./lib/analytics/index.js";
|
|
22
|
+
import "./lib/layout/useAnchoredOverlayLayout.js";
|
|
22
23
|
export { T as CARD_STATUS_LABELS_EN, E as CARD_STATUS_TONE, D as CARD_TYPE_LABELS_EN, w as CardProgram, p as RefreshingRootWidgetProvider, o as RootWidgetProvider, l as WidgetProvider, u as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, O as deniedNoticeExpiresAt, t as getGlobalWidgetConfig, i as getGlobalWidgetInitState, x as getNaicsOptions, k as selectBankAccountApplication, n as setGlobalWidgetConfig, a as subscribeToGlobalWidgetInitState, r as updateGlobalWidgetConfig, s as useAnalyticsCaptureException, c as useAnalyticsTrack, m as useDisclosuresAcceptanceSurface, C as useLocalCalendarDay, d as useOptionalWidgetToken, S as useOrganizationUserNames, h as useOwnWidgetConfig, g as useRefetchWidget, _ as useWidgetConfig, v as useWidgetError, y as useWidgetInitStaleForToken, b as useWidgetLoading, f as useWidgetToken };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.188", n = "af5b5fcbad8da2e73c0362a44fb0118cf4a98fb6", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -36,6 +36,10 @@ import { AttentionStrip as A } from "./lib/AttentionStrip/AttentionStrip.js";
|
|
|
36
36
|
import { AttentionViewBar as j } from "./lib/AttentionStrip/AttentionViewBar.js";
|
|
37
37
|
import { ConsentBlock as M, ConsentLink as N } from "./lib/ConsentBlock/ConsentBlock.js";
|
|
38
38
|
import { FileDropZone as P } from "./lib/FileDropZone/FileDropZone.js";
|
|
39
|
+
import "./lib/CopyButton/labels.js";
|
|
40
|
+
import "./lib/CopyButton/CopyButton.js";
|
|
39
41
|
import { CopyAddress as F } from "./lib/CopyAddress/CopyAddress.js";
|
|
40
42
|
import { UploadTray as I } from "./lib/UploadTray/UploadTray.js";
|
|
43
|
+
import "./lib/UploadEmailOption/UploadEmailOption.js";
|
|
44
|
+
import "./lib/UploadPopover/UploadPopover.js";
|
|
41
45
|
export { m as AddTile, b as AmountInput, A as AttentionStrip, j as AttentionViewBar, M as ConsentBlock, N as ConsentLink, F as CopyAddress, O as DateDisclosure, k as DueDateText, _ as ERROR_STATE_ID, t as EmbeddedToaster, g as EmptyState, v as ErrorState, P as FileDropZone, u as HostIsolationScope, C as InlineErrorAlert, d as Link, x as LoadingRegion, S as MaskedAccountNumber, y as NoAccessState, E as OnboardingShell, w as PAGINATION_FOOTER_LABELS_EN, T as PaginationFooter, D as SectionHeading, h as StatePanel, n as ToastNameMessage, r as UIFramework, a as UIProvider, I as UploadTray, p as WidgetContainer, f as WidgetFrame, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, e as toast, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
|
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 };
|