@tesouro/embedded-components-react 0.11.60 → 0.11.61
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/README.md +21 -21
- package/dist/index.css +37 -160
- package/dist/index.d.ts +50 -17
- package/dist/lib/BankAccountsWidget.d.ts +20 -7
- package/dist/lib/LinkedAccountsWidget.d.ts +30 -10
- package/dist/lib/WidgetSuite.d.ts +50 -17
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +21 -26
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +22 -35
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index6.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index7.js +20 -24
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index8.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +296 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index12.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index5.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +42 -281
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +180 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +16 -184
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +9 -93
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +136 -81
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +64 -101
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index6.js +54 -81
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +90 -65
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +108 -183
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +76 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +137 -120
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/labels.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +47 -60
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +71 -72
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js +22 -37
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/CreateAccountDialog.js +119 -133
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/labels.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/rows.js +46 -27
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useAdminEligibleUserIds.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +248 -224
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/labels.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js +22 -36
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +23 -70
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +91 -27
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +80 -63
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +145 -125
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index2.js +61 -9
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index3.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index4.js +180 -65
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +22 -178
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +6 -75
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js +48 -11
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js +45 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +8 -82
- 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/ui/dist/index.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AddTile/AddTile.js +17 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +3603 -3518
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index11.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +0 -67
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +0 -138
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js
CHANGED
|
@@ -1,84 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InlineErrorAlert as o } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
3
|
-
import "../../../shared/ui/dist/index.js";
|
|
4
|
-
import { linkedAccountsWidgetUiTestIds as s } from "./index8.js";
|
|
5
|
-
import { ConnectStepAccess as c } from "./index4.js";
|
|
6
|
-
import { ConnectStepDetails as l } from "./index5.js";
|
|
7
|
-
import { ConnectStepSummary as u } from "./index6.js";
|
|
8
|
-
import { DialogFeaturedIcon as d } from "./index7.js";
|
|
9
|
-
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
|
-
import { ArrowRightIcon as h, LinkIcon as g } from "lucide-react";
|
|
1
|
+
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
11
2
|
// ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
children: /* @__PURE__ */ p(n, {
|
|
19
|
-
showCloseButton: !0,
|
|
20
|
-
labels: { close: y.closeButton },
|
|
21
|
-
"data-testid": s.connectAccountDialog,
|
|
22
|
-
className: "ttw:flex ttw:max-h-[90dvh] ttw:flex-col ttw:gap-0 ttw:rounded-xl ttw:p-0",
|
|
23
|
-
children: z && w ? /* @__PURE__ */ p(u, {
|
|
24
|
-
labels: y,
|
|
25
|
-
summary: w,
|
|
26
|
-
onDone: () => P(!1)
|
|
27
|
-
}) : /* @__PURE__ */ m(f, { children: [
|
|
28
|
-
/* @__PURE__ */ m(i, {
|
|
29
|
-
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-3 ttw:px-6 ttw:pb-4 ttw:pt-6 ttw:text-left",
|
|
30
|
-
children: [/* @__PURE__ */ p(d, { children: /* @__PURE__ */ p(g, { className: "ttw:size-5" }) }), /* @__PURE__ */ p(a, {
|
|
31
|
-
className: "ttw:text-xl",
|
|
32
|
-
children: y.connectTitle
|
|
33
|
-
})]
|
|
34
|
-
}),
|
|
35
|
-
/* @__PURE__ */ m("div", {
|
|
36
|
-
className: "ttw:min-h-0 ttw:flex-1 ttw:space-y-4 ttw:overflow-y-auto ttw:border-y ttw:border-border ttw:p-6",
|
|
37
|
-
children: [
|
|
38
|
-
b === 1 && /* @__PURE__ */ p(l, {
|
|
39
|
-
labels: y,
|
|
40
|
-
connectForm: x,
|
|
41
|
-
disabled: R,
|
|
42
|
-
routingNumberError: M,
|
|
43
|
-
onConnectFormChange: F
|
|
44
|
-
}),
|
|
45
|
-
b === 2 && /* @__PURE__ */ p(c, {
|
|
46
|
-
labels: y,
|
|
47
|
-
rows: S,
|
|
48
|
-
grantedCount: C,
|
|
49
|
-
isLoading: T,
|
|
50
|
-
isError: E
|
|
51
|
-
}),
|
|
52
|
-
A && /* @__PURE__ */ p(o, { children: N ?? y.actionErrorTitle })
|
|
53
|
-
]
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ p(r, {
|
|
56
|
-
className: "ttw:px-6 ttw:pb-6 ttw:pt-4",
|
|
57
|
-
children: /* @__PURE__ */ m("div", {
|
|
58
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-3",
|
|
59
|
-
children: [/* @__PURE__ */ p("span", {
|
|
60
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
|
|
61
|
-
children: B
|
|
62
|
-
}), /* @__PURE__ */ m("div", {
|
|
63
|
-
className: "ttw:flex ttw:gap-2",
|
|
64
|
-
children: [/* @__PURE__ */ p(e, {
|
|
65
|
-
type: "button",
|
|
66
|
-
variant: "outline",
|
|
67
|
-
disabled: D,
|
|
68
|
-
onClick: b === 1 ? () => P(!1) : L,
|
|
69
|
-
children: b === 1 ? y.cancelButton : y.backButton
|
|
70
|
-
}), /* @__PURE__ */ m(e, {
|
|
71
|
-
type: "button",
|
|
72
|
-
loading: D,
|
|
73
|
-
disabled: R || j,
|
|
74
|
-
onClick: I,
|
|
75
|
-
children: [y.nextButton, /* @__PURE__ */ p(h, {})]
|
|
76
|
-
})]
|
|
77
|
-
})]
|
|
78
|
-
})
|
|
79
|
-
})
|
|
80
|
-
] })
|
|
81
|
-
})
|
|
82
|
-
});
|
|
3
|
+
function r({ template: r, accountNumber: i }) {
|
|
4
|
+
let [a, o] = r.split("{account}");
|
|
5
|
+
return /* @__PURE__ */ n(e, { children: [a, o === void 0 ? null : /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
|
|
6
|
+
className: "ttw:font-medium ttw:text-foreground",
|
|
7
|
+
children: i
|
|
8
|
+
}), o] })] });
|
|
83
9
|
}
|
|
84
|
-
export {
|
|
10
|
+
export { r as AccountTemplate };
|
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.61", n = "c75cc2da49269b97c713cc118b3ddf1dfda473c2", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -13,22 +13,23 @@ import { HostIsolationScope as u } from "./lib/HostIsolationScope/HostIsolationS
|
|
|
13
13
|
import { Link as d } from "./lib/Link/Link.js";
|
|
14
14
|
import { WidgetFrame as f } from "./lib/WidgetFrame/WidgetFrame.js";
|
|
15
15
|
import { WidgetContainer as p } from "./lib/WidgetContainer/WidgetContainer.js";
|
|
16
|
+
import { AddTile as m } from "./lib/AddTile/AddTile.js";
|
|
16
17
|
import "./lib/StatePanel/labels.js";
|
|
17
|
-
import { StatePanel as
|
|
18
|
-
import { EmptyState as
|
|
19
|
-
import { ERROR_STATE_ID as
|
|
20
|
-
import { NoAccessState as
|
|
21
|
-
import { AmountInput as
|
|
22
|
-
import { LoadingRegion as
|
|
18
|
+
import { StatePanel as h } from "./lib/StatePanel/StatePanel.js";
|
|
19
|
+
import { EmptyState as g } from "./lib/EmptyState/EmptyState.js";
|
|
20
|
+
import { ERROR_STATE_ID as _, ErrorState as v } from "./lib/ErrorState/ErrorState.js";
|
|
21
|
+
import { NoAccessState as y } from "./lib/StatePanel/NoAccessState.js";
|
|
22
|
+
import { AmountInput as b } from "./lib/AmountInput/AmountInput.js";
|
|
23
|
+
import { LoadingRegion as x } from "./lib/LoadingRegion/LoadingRegion.js";
|
|
23
24
|
import "./lib/MaskedAccountNumber/labels.js";
|
|
24
|
-
import { MaskedAccountNumber as
|
|
25
|
-
import { InlineErrorAlert as
|
|
26
|
-
import { PAGINATION_FOOTER_LABELS_EN as
|
|
27
|
-
import { PaginationFooter as
|
|
28
|
-
import { WidgetTitleWithIconAndChildren as
|
|
25
|
+
import { MaskedAccountNumber as S } from "./lib/MaskedAccountNumber/MaskedAccountNumber.js";
|
|
26
|
+
import { InlineErrorAlert as C } from "./lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
27
|
+
import { PAGINATION_FOOTER_LABELS_EN as w } from "./lib/PaginationFooter/labels.js";
|
|
28
|
+
import { PaginationFooter as T } from "./lib/PaginationFooter/PaginationFooter.js";
|
|
29
|
+
import { WidgetTitleWithIconAndChildren as E } from "./lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
|
|
29
30
|
import "./lib/OnboardingShell/labels.js";
|
|
30
31
|
import "./lib/OnboardingShell/OnboardingShellStepper.js";
|
|
31
32
|
import "./lib/OnboardingShell/OnboardingShellOverlayPortal.js";
|
|
32
|
-
import { OnboardingShell as
|
|
33
|
-
import { SectionHeading as
|
|
34
|
-
export {
|
|
33
|
+
import { OnboardingShell as D } from "./lib/OnboardingShell/OnboardingShell.js";
|
|
34
|
+
import { SectionHeading as O } from "./lib/SectionHeading/SectionHeading.js";
|
|
35
|
+
export { m as AddTile, b as AmountInput, _ as ERROR_STATE_ID, t as EmbeddedToaster, g as EmptyState, v as ErrorState, u as HostIsolationScope, C as InlineErrorAlert, d as Link, x as LoadingRegion, S as MaskedAccountNumber, y as NoAccessState, D as OnboardingShell, w as PAGINATION_FOOTER_LABELS_EN, T as PaginationFooter, O as SectionHeading, h as StatePanel, n as ToastNameMessage, r as UIFramework, a as UIProvider, p as WidgetContainer, f as WidgetFrame, E as WidgetTitleWithIconAndChildren, e as avatarSwatchFor, o as registerDesignSystemEnsurer, s as registerUIRenderers, i as resolveUIFramework, c as useDesignSystemEnsurer, l as useFrameworkRenderer };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Button as e, cn as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/AddTile/AddTile.js
|
|
4
|
+
function r({ label: r, onClick: i, disabled: a, className: o, testId: s }) {
|
|
5
|
+
return /* @__PURE__ */ n("div", {
|
|
6
|
+
className: t("ttw:flex ttw:items-center ttw:justify-center ttw:rounded-lg ttw:border ttw:border-dashed ttw:border-muted-foreground/40 ttw:p-4", o),
|
|
7
|
+
children: /* @__PURE__ */ n(e, {
|
|
8
|
+
type: "button",
|
|
9
|
+
variant: "outline",
|
|
10
|
+
disabled: a,
|
|
11
|
+
onClick: i,
|
|
12
|
+
"data-testid": s,
|
|
13
|
+
children: r
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export { r as AddTile };
|