@tesouro/embedded-components-react 0.7.16 → 0.7.17
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 -12
- package/dist/index.d.ts +20 -12
- package/dist/lib/LinkedAccountsWidget.d.ts +20 -12
- package/dist/lib/WidgetSuite.d.ts +20 -12
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/forms.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/labels.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/summary.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +182 -162
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/linkedAccounts.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js +36 -86
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +17 -23
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +3 -6
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +168 -35
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +70 -83
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js +11 -112
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +82 -7
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js
CHANGED
|
@@ -1,116 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FeaturedIcon as i } from "./index2.js";
|
|
3
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
-
import { CheckIcon as s, ClockIcon as c, LinkIcon as l } from "lucide-react";
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
5
2
|
//#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
className: "ttw:shrink-0 ttw:hover:bg-neutral ttw:hover:text-neutral-foreground",
|
|
16
|
-
children: [/* @__PURE__ */ a(c, {}), e]
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function f({ title: e, description: t, badge: n, children: r }) {
|
|
20
|
-
return /* @__PURE__ */ o("div", {
|
|
21
|
-
className: "ttw:space-y-2",
|
|
22
|
-
children: [/* @__PURE__ */ o("div", {
|
|
23
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-3",
|
|
24
|
-
children: [/* @__PURE__ */ o("div", {
|
|
25
|
-
className: "ttw:space-y-1",
|
|
26
|
-
children: [/* @__PURE__ */ a("p", {
|
|
27
|
-
className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
|
|
28
|
-
children: e
|
|
29
|
-
}), /* @__PURE__ */ a("p", {
|
|
30
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
31
|
-
children: t
|
|
32
|
-
})]
|
|
33
|
-
}), n]
|
|
34
|
-
}), r]
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function p({ labels: n, summary: s }) {
|
|
38
|
-
return /* @__PURE__ */ o("div", {
|
|
39
|
-
className: "ttw:space-y-6",
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ o("div", {
|
|
42
|
-
className: "ttw:space-y-4",
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ a("h3", {
|
|
45
|
-
className: "ttw:text-base ttw:font-semibold ttw:text-primary",
|
|
46
|
-
children: n.summaryCompletedHeading
|
|
47
|
-
}),
|
|
48
|
-
/* @__PURE__ */ a(f, {
|
|
49
|
-
title: n.summaryStep1Title,
|
|
50
|
-
description: n.summaryStep1Description,
|
|
51
|
-
badge: /* @__PURE__ */ a(u, { label: n.statusComplete }),
|
|
52
|
-
children: /* @__PURE__ */ o("div", {
|
|
53
|
-
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-xl ttw:border ttw:border-border ttw:p-3",
|
|
54
|
-
children: [/* @__PURE__ */ a(i, { children: /* @__PURE__ */ a(l, { className: "ttw:size-5 ttw:text-foreground" }) }), /* @__PURE__ */ o("div", {
|
|
55
|
-
className: "ttw:min-w-0",
|
|
56
|
-
children: [/* @__PURE__ */ a("p", {
|
|
57
|
-
className: "ttw:truncate ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
58
|
-
children: s.nickname
|
|
59
|
-
}), /* @__PURE__ */ a("p", {
|
|
60
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
61
|
-
children: `${n.summaryAccountPrefix} (${s.maskedAccountNumber})`
|
|
62
|
-
})]
|
|
63
|
-
})]
|
|
64
|
-
})
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ a(f, {
|
|
67
|
-
title: n.summaryStep2Title,
|
|
68
|
-
description: n.summaryStep2Description,
|
|
69
|
-
badge: /* @__PURE__ */ a(u, { label: n.statusComplete }),
|
|
70
|
-
children: /* @__PURE__ */ a("ul", {
|
|
71
|
-
className: "ttw:divide-y ttw:divide-border ttw:rounded-xl ttw:border ttw:border-border",
|
|
72
|
-
children: s.users.map((n) => /* @__PURE__ */ o("li", {
|
|
73
|
-
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:p-3",
|
|
74
|
-
children: [/* @__PURE__ */ a(e, {
|
|
75
|
-
size: "sm",
|
|
76
|
-
children: /* @__PURE__ */ a(t, { children: n.initials })
|
|
77
|
-
}), /* @__PURE__ */ o("div", {
|
|
78
|
-
className: "ttw:min-w-0",
|
|
79
|
-
children: [/* @__PURE__ */ a("p", {
|
|
80
|
-
className: "ttw:truncate ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
81
|
-
children: n.name
|
|
82
|
-
}), /* @__PURE__ */ a("p", {
|
|
83
|
-
className: "ttw:truncate ttw:text-sm ttw:text-muted-foreground",
|
|
84
|
-
children: n.role
|
|
85
|
-
})]
|
|
86
|
-
})]
|
|
87
|
-
}, n.key))
|
|
88
|
-
})
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ a(r, {}),
|
|
93
|
-
/* @__PURE__ */ o("div", {
|
|
94
|
-
className: "ttw:space-y-4",
|
|
95
|
-
children: [
|
|
96
|
-
/* @__PURE__ */ a("h3", {
|
|
97
|
-
className: "ttw:text-base ttw:font-semibold ttw:text-primary",
|
|
98
|
-
children: n.summaryNextStepsHeading
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ a(f, {
|
|
101
|
-
title: n.summaryStep3Title,
|
|
102
|
-
description: n.summaryStep3Description,
|
|
103
|
-
badge: /* @__PURE__ */ a(d, { label: n.statusTodo })
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ a(f, {
|
|
106
|
-
title: n.summaryStep4Title,
|
|
107
|
-
description: n.summaryStep4Description,
|
|
108
|
-
badge: /* @__PURE__ */ a(d, { label: n.statusTodo })
|
|
109
|
-
})
|
|
110
|
-
]
|
|
111
|
-
})
|
|
112
|
-
]
|
|
3
|
+
var t = {
|
|
4
|
+
default: "ttw:bg-primary ttw:text-primary-foreground ttw:ring-primary/20",
|
|
5
|
+
destructive: "ttw:bg-destructive ttw:text-destructive-foreground ttw:ring-destructive/20",
|
|
6
|
+
success: "ttw:bg-emerald-100 ttw:text-emerald-600 ttw:ring-emerald-500/20"
|
|
7
|
+
};
|
|
8
|
+
function n({ children: n, variant: r = "default" }) {
|
|
9
|
+
return /* @__PURE__ */ e("span", {
|
|
10
|
+
className: `ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:ring-8 ${t[r]}`,
|
|
11
|
+
children: n
|
|
113
12
|
});
|
|
114
13
|
}
|
|
115
14
|
//#endregion
|
|
116
|
-
export {
|
|
15
|
+
export { n as DialogFeaturedIcon };
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var e = {
|
|
3
|
+
connectAccountButton: "linked-accounts-widget-connect-account-button",
|
|
4
|
+
emptyState: "linked-accounts-widget-empty-state",
|
|
5
|
+
connectAccountDialog: "linked-accounts-widget-connect-account-dialog",
|
|
6
|
+
verifySuccessTitle: "linked-accounts-widget-verify-success-title"
|
|
7
7
|
};
|
|
8
|
-
function n({ children: n, variant: r = "default" }) {
|
|
9
|
-
return /* @__PURE__ */ e("span", {
|
|
10
|
-
className: `ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:ring-8 ${t[r]}`,
|
|
11
|
-
children: n
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
8
|
//#endregion
|
|
15
|
-
export {
|
|
9
|
+
export { e as linkedAccountsWidgetUiTestIds };
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js
CHANGED
|
@@ -1,9 +1,84 @@
|
|
|
1
|
+
import { Button as e, Dialog as t, DialogContent as n, DialogFooter as r, DialogHeader as i, DialogTitle as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
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
11
|
//#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
12
|
+
var _ = 2;
|
|
13
|
+
function v({ open: v, labels: y, connectStep: b, connectForm: x, accessRows: S, accessGrantedCount: C, connectSummary: w, isTeamMembersLoading: T, isTeamMembersError: E, isSubmitting: D, isActionDisabled: O, canConnect: k, isConnectError: A, isConnectNextDisabled: j, isConnectRoutingNumberInvalid: M, connectErrorMessage: N, onOpenChange: P, onConnectFormChange: F, onConnectNext: I, onConnectBack: L }) {
|
|
14
|
+
let R = O || !k, z = b === 3, B = y.stepIndicator.replace("{current}", String(b)).replace("{total}", String(_));
|
|
15
|
+
return /* @__PURE__ */ p(t, {
|
|
16
|
+
open: v,
|
|
17
|
+
onOpenChange: P,
|
|
18
|
+
children: /* @__PURE__ */ p(n, {
|
|
19
|
+
showCloseButton: !0,
|
|
20
|
+
"data-testid": s.connectAccountDialog,
|
|
21
|
+
className: "ttw:flex ttw:max-h-[90dvh] ttw:flex-col ttw:gap-0 ttw:rounded-xl ttw:p-0",
|
|
22
|
+
children: z && w ? /* @__PURE__ */ p(u, {
|
|
23
|
+
labels: y,
|
|
24
|
+
summary: w,
|
|
25
|
+
onDone: () => P(!1)
|
|
26
|
+
}) : /* @__PURE__ */ m(f, { children: [
|
|
27
|
+
/* @__PURE__ */ m(i, {
|
|
28
|
+
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-3 ttw:px-6 ttw:pb-4 ttw:pt-6 ttw:text-left",
|
|
29
|
+
children: [/* @__PURE__ */ p(d, { children: /* @__PURE__ */ p(g, { className: "ttw:size-5" }) }), /* @__PURE__ */ p(a, {
|
|
30
|
+
className: "ttw:text-xl",
|
|
31
|
+
children: y.connectTitle
|
|
32
|
+
})]
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ m("div", {
|
|
35
|
+
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",
|
|
36
|
+
children: [
|
|
37
|
+
b === 1 && /* @__PURE__ */ p(l, {
|
|
38
|
+
labels: y,
|
|
39
|
+
connectForm: x,
|
|
40
|
+
disabled: R,
|
|
41
|
+
routingNumberError: M,
|
|
42
|
+
onConnectFormChange: F
|
|
43
|
+
}),
|
|
44
|
+
b === 2 && /* @__PURE__ */ p(c, {
|
|
45
|
+
labels: y,
|
|
46
|
+
rows: S,
|
|
47
|
+
grantedCount: C,
|
|
48
|
+
isLoading: T,
|
|
49
|
+
isError: E
|
|
50
|
+
}),
|
|
51
|
+
A && /* @__PURE__ */ p(o, { children: N ?? y.actionErrorTitle })
|
|
52
|
+
]
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ p(r, {
|
|
55
|
+
className: "ttw:px-6 ttw:pb-6 ttw:pt-4",
|
|
56
|
+
children: /* @__PURE__ */ m("div", {
|
|
57
|
+
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-3",
|
|
58
|
+
children: [/* @__PURE__ */ p("span", {
|
|
59
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
|
|
60
|
+
children: B
|
|
61
|
+
}), /* @__PURE__ */ m("div", {
|
|
62
|
+
className: "ttw:flex ttw:gap-2",
|
|
63
|
+
children: [/* @__PURE__ */ p(e, {
|
|
64
|
+
type: "button",
|
|
65
|
+
variant: "outline",
|
|
66
|
+
disabled: D,
|
|
67
|
+
onClick: b === 1 ? () => P(!1) : L,
|
|
68
|
+
children: b === 1 ? y.cancelButton : y.backButton
|
|
69
|
+
}), /* @__PURE__ */ m(e, {
|
|
70
|
+
type: "button",
|
|
71
|
+
loading: D,
|
|
72
|
+
disabled: R || j,
|
|
73
|
+
onClick: I,
|
|
74
|
+
children: [y.nextButton, /* @__PURE__ */ p(h, {})]
|
|
75
|
+
})]
|
|
76
|
+
})]
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
] })
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
}
|
|
8
83
|
//#endregion
|
|
9
|
-
export {
|
|
84
|
+
export { v as ConnectAccountDialog };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.7.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.7.17", n = "99580c8c91e4a997d5e07f8ee7a32e837233cd77", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|