@tesouro/embedded-components-react 0.5.182 → 0.5.183
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/index.d.ts +30 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +30 -1
- package/dist/lib/WidgetSuite.d.ts +30 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +24 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +44 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +13 -36
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +339 -301
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +34 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +188 -181
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +162 -154
- 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/lib/OnboardingShell/OnboardingShell.js +67 -55
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +1 -0
- package/package.json +1 -1
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.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.183", n = "9fb07b1082882df49077ff74f82900a73ef96881", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -1,52 +1,60 @@
|
|
|
1
|
-
import { Button as e, Dialog as t, DialogClose as n, DialogContent as r, DialogDescription as i, DialogTitle as a, Separator as o } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { InlineErrorAlert as
|
|
3
|
-
import { ONBOARDING_SHELL_LABELS_EN as
|
|
4
|
-
import { OnboardingShellStepper as
|
|
5
|
-
import { OnboardingShellOverlayContainerContext as
|
|
6
|
-
import { FdicLogo as
|
|
1
|
+
import { Button as e, Dialog as t, DialogClose as n, DialogContent as r, DialogDescription as i, DialogTitle as a, Separator as o, cn as s } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { InlineErrorAlert as c } from "../InlineErrorAlert/InlineErrorAlert.js";
|
|
3
|
+
import { ONBOARDING_SHELL_LABELS_EN as l } from "./labels.js";
|
|
4
|
+
import { OnboardingShellStepper as u } from "./OnboardingShellStepper.js";
|
|
5
|
+
import { OnboardingShellOverlayContainerContext as d } from "./OnboardingShellOverlayPortal.js";
|
|
6
|
+
import { FdicLogo as ee } from "./FdicLogo.js";
|
|
7
7
|
import { OnboardingShellScrollRegion as f } from "./OnboardingShellScrollRegion.js";
|
|
8
8
|
import * as p from "react";
|
|
9
9
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
10
10
|
import { useControllableState as g } from "@radix-ui/react-use-controllable-state";
|
|
11
|
-
import { Check as _,
|
|
11
|
+
import { Check as _, Trash2 as v, X as y } from "lucide-react";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js
|
|
13
|
-
function
|
|
13
|
+
function b({ isFullScreenInline: e, className: t, children: n }) {
|
|
14
14
|
return m(e ? "h2" : a, {
|
|
15
15
|
className: t,
|
|
16
16
|
children: n
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function x({ isFullScreenInline: e, className: t, children: n }) {
|
|
20
20
|
return m(e ? "p" : i, {
|
|
21
21
|
className: t,
|
|
22
22
|
children: n
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function S({ open: i, defaultOpen: a = !0, onOpenChange: S, isFullScreenInline: C = !1, title: w, subtitle: T, stepLabels: E, activeStep: D, disclaimerText: te, onBack: ne, onNext: re, onCancel: O, onSaveAndClose: k, isSaveAndCloseDisabled: A = !1, isSaveAndCloseLoading: j = !1, onDelete: M, isBackDisabled: N = !1, showDismissButton: P = !0, isNextDisabled: F = !1, isNextLoading: I = !1, nextLabel: L, nextIcon: R, errorMessage: z, children: B, labels: V, testIds: H }) {
|
|
26
26
|
let U = {
|
|
27
|
-
...
|
|
27
|
+
...l,
|
|
28
28
|
...V
|
|
29
29
|
}, [W, G] = g({
|
|
30
30
|
prop: i,
|
|
31
31
|
defaultProp: a,
|
|
32
|
-
onChange:
|
|
32
|
+
onChange: S
|
|
33
33
|
}), [K, q] = p.useState(null), J = p.useCallback((e) => {
|
|
34
34
|
q(e);
|
|
35
35
|
}, []), Y = p.useMemo(() => ({
|
|
36
36
|
container: K,
|
|
37
|
-
isFullScreenInline:
|
|
38
|
-
}), [K,
|
|
37
|
+
isFullScreenInline: C
|
|
38
|
+
}), [K, C]), X = I || j, ie = !I && (R === void 0 ? /* @__PURE__ */ m(_, {
|
|
39
39
|
className: "ttw:size-5",
|
|
40
40
|
"aria-hidden": !0
|
|
41
|
-
}) : R),
|
|
41
|
+
}) : R), Z = P && !C, Q = /* @__PURE__ */ m(e, {
|
|
42
|
+
type: "button",
|
|
43
|
+
variant: "outline",
|
|
44
|
+
disabled: N || X,
|
|
45
|
+
onClick: ne,
|
|
46
|
+
className: "ttw:h-auto ttw:rounded-2xl ttw:border-border ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted ttw:hover:text-foreground",
|
|
47
|
+
"data-testid": H?.back,
|
|
48
|
+
children: U.backButton
|
|
49
|
+
}), $ = /* @__PURE__ */ h("div", {
|
|
42
50
|
ref: J,
|
|
43
|
-
className:
|
|
44
|
-
"data-testid":
|
|
51
|
+
className: C ? "ttw:relative ttw:grid ttw:h-full ttw:w-full ttw:min-h-0 ttw:grid-rows-[auto_1fr_auto] ttw:gap-0 ttw:overflow-hidden ttw:bg-background" : "ttw:relative ttw:grid ttw:max-h-[95vh] ttw:min-h-0 ttw:grid-rows-[auto_1fr_auto] ttw:gap-0",
|
|
52
|
+
"data-testid": C ? H?.root : void 0,
|
|
45
53
|
children: [
|
|
46
|
-
|
|
54
|
+
Z ? /* @__PURE__ */ h(n, {
|
|
47
55
|
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none ttw:data-[state=open]:bg-accent ttw:data-[state=open]:text-muted-foreground",
|
|
48
56
|
"data-testid": H?.dismiss,
|
|
49
|
-
children: [/* @__PURE__ */ m(
|
|
57
|
+
children: [/* @__PURE__ */ m(y, {
|
|
50
58
|
className: "ttw:size-4",
|
|
51
59
|
"aria-hidden": !0
|
|
52
60
|
}), /* @__PURE__ */ m("span", {
|
|
@@ -55,27 +63,27 @@ function x({ open: i, defaultOpen: a = !0, onOpenChange: x, isFullScreenInline:
|
|
|
55
63
|
})]
|
|
56
64
|
}) : null,
|
|
57
65
|
/* @__PURE__ */ h("header", {
|
|
58
|
-
className:
|
|
66
|
+
className: Z ? "ttw:px-8 ttw:pt-8 ttw:pr-14" : "ttw:px-8 ttw:pt-8",
|
|
59
67
|
children: [
|
|
60
|
-
/* @__PURE__ */ m(
|
|
61
|
-
isFullScreenInline:
|
|
68
|
+
/* @__PURE__ */ m(b, {
|
|
69
|
+
isFullScreenInline: C,
|
|
62
70
|
className: "ttw:text-2xl ttw:font-bold ttw:leading-tight ttw:text-foreground",
|
|
63
|
-
children:
|
|
71
|
+
children: w
|
|
64
72
|
}),
|
|
65
|
-
/* @__PURE__ */ m(
|
|
66
|
-
isFullScreenInline:
|
|
73
|
+
/* @__PURE__ */ m(x, {
|
|
74
|
+
isFullScreenInline: C,
|
|
67
75
|
className: "ttw:mt-1 ttw:mb-4 ttw:text-sm ttw:text-muted-foreground",
|
|
68
|
-
children:
|
|
76
|
+
children: T
|
|
69
77
|
}),
|
|
70
|
-
/* @__PURE__ */ m(
|
|
71
|
-
stepLabels:
|
|
72
|
-
activeStep:
|
|
78
|
+
/* @__PURE__ */ m(u, {
|
|
79
|
+
stepLabels: E,
|
|
80
|
+
activeStep: D,
|
|
73
81
|
labels: V
|
|
74
82
|
})
|
|
75
83
|
]
|
|
76
84
|
}),
|
|
77
85
|
/* @__PURE__ */ m(f, {
|
|
78
|
-
activeStep:
|
|
86
|
+
activeStep: D,
|
|
79
87
|
scrollForMoreLabel: U.scrollForMore,
|
|
80
88
|
testIds: H?.scrollRegion,
|
|
81
89
|
children: B
|
|
@@ -88,41 +96,45 @@ function x({ open: i, defaultOpen: a = !0, onOpenChange: x, isFullScreenInline:
|
|
|
88
96
|
className: "ttw:mb-4 ttw:flex ttw:items-center ttw:gap-1",
|
|
89
97
|
children: [/* @__PURE__ */ m("p", {
|
|
90
98
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
91
|
-
children:
|
|
92
|
-
}), /* @__PURE__ */ m(
|
|
99
|
+
children: te
|
|
100
|
+
}), /* @__PURE__ */ m(ee, {})]
|
|
93
101
|
}),
|
|
94
|
-
z ? /* @__PURE__ */ m(
|
|
102
|
+
z ? /* @__PURE__ */ m(c, {
|
|
95
103
|
className: "ttw:mb-3",
|
|
96
104
|
children: z
|
|
97
105
|
}) : null,
|
|
98
106
|
/* @__PURE__ */ h("div", {
|
|
99
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3",
|
|
100
|
-
children: [/* @__PURE__ */
|
|
107
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
108
|
+
children: [M ? /* @__PURE__ */ h(e, {
|
|
101
109
|
type: "button",
|
|
102
|
-
variant: "
|
|
103
|
-
disabled:
|
|
104
|
-
onClick:
|
|
105
|
-
className: "ttw:h-auto ttw:
|
|
106
|
-
"data-testid": H?.
|
|
107
|
-
children:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
variant: "ghost",
|
|
111
|
+
disabled: X,
|
|
112
|
+
onClick: M,
|
|
113
|
+
className: "ttw:h-auto ttw:max-w-full ttw:whitespace-normal ttw:rounded-2xl ttw:px-3 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-destructive ttw:hover:bg-destructive/10 ttw:hover:text-destructive",
|
|
114
|
+
"data-testid": H?.delete,
|
|
115
|
+
children: [/* @__PURE__ */ m(v, {
|
|
116
|
+
className: "ttw:size-4",
|
|
117
|
+
"aria-hidden": !0
|
|
118
|
+
}), U.deleteButton]
|
|
119
|
+
}) : Q, /* @__PURE__ */ h("div", {
|
|
120
|
+
className: "ttw:ml-auto ttw:flex ttw:min-w-0 ttw:max-w-full ttw:flex-wrap ttw:items-center ttw:justify-end ttw:gap-3",
|
|
110
121
|
children: [
|
|
111
|
-
|
|
122
|
+
M ? Q : null,
|
|
123
|
+
O ? /* @__PURE__ */ m(e, {
|
|
112
124
|
type: "button",
|
|
113
125
|
variant: "outline",
|
|
114
126
|
disabled: X,
|
|
115
|
-
onClick:
|
|
127
|
+
onClick: O,
|
|
116
128
|
className: "ttw:h-auto ttw:rounded-2xl ttw:border-border ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted ttw:hover:text-foreground",
|
|
117
129
|
"data-testid": H?.cancel,
|
|
118
130
|
children: U.cancelButton
|
|
119
131
|
}) : null,
|
|
120
|
-
|
|
132
|
+
k ? /* @__PURE__ */ m(e, {
|
|
121
133
|
type: "button",
|
|
122
134
|
variant: "secondary",
|
|
123
|
-
disabled:
|
|
124
|
-
loading:
|
|
125
|
-
onClick:
|
|
135
|
+
disabled: A || X,
|
|
136
|
+
loading: j,
|
|
137
|
+
onClick: k,
|
|
126
138
|
className: "ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium",
|
|
127
139
|
"data-testid": H?.saveAndClose,
|
|
128
140
|
children: U.saveAndCloseButton
|
|
@@ -131,10 +143,10 @@ function x({ open: i, defaultOpen: a = !0, onOpenChange: x, isFullScreenInline:
|
|
|
131
143
|
type: "button",
|
|
132
144
|
disabled: F || X,
|
|
133
145
|
loading: I,
|
|
134
|
-
onClick:
|
|
146
|
+
onClick: re,
|
|
135
147
|
className: "ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium",
|
|
136
148
|
"data-testid": H?.next,
|
|
137
|
-
children: [L,
|
|
149
|
+
children: [L, ie]
|
|
138
150
|
})
|
|
139
151
|
]
|
|
140
152
|
})]
|
|
@@ -143,16 +155,16 @@ function x({ open: i, defaultOpen: a = !0, onOpenChange: x, isFullScreenInline:
|
|
|
143
155
|
})
|
|
144
156
|
]
|
|
145
157
|
});
|
|
146
|
-
return
|
|
158
|
+
return C ? /* @__PURE__ */ m(d.Provider, {
|
|
147
159
|
value: Y,
|
|
148
160
|
children: $
|
|
149
161
|
}) : /* @__PURE__ */ m(t, {
|
|
150
162
|
open: W,
|
|
151
163
|
onOpenChange: G,
|
|
152
|
-
children: /* @__PURE__ */ m(
|
|
164
|
+
children: /* @__PURE__ */ m(d.Provider, {
|
|
153
165
|
value: Y,
|
|
154
166
|
children: /* @__PURE__ */ m(r, {
|
|
155
|
-
className: "ttw:max-h-[95vh] ttw:
|
|
167
|
+
className: s("ttw:max-h-[95vh] ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-2xl ttw:p-0", M ? "ttw:w-[840px]" : "ttw:w-[720px]"),
|
|
156
168
|
"data-testid": H?.root,
|
|
157
169
|
children: $
|
|
158
170
|
})
|
|
@@ -160,4 +172,4 @@ function x({ open: i, defaultOpen: a = !0, onOpenChange: x, isFullScreenInline:
|
|
|
160
172
|
});
|
|
161
173
|
}
|
|
162
174
|
//#endregion
|
|
163
|
-
export {
|
|
175
|
+
export { l as ONBOARDING_SHELL_LABELS_EN, S as OnboardingShell, u as OnboardingShellStepper };
|