@tesouro/embedded-components-react 0.7.41 → 0.7.43
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 +110 -23
- package/dist/index.css +11 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/mocks/acceptDisclosures.js +33 -28
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/mocks/labels.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/mocks/bankAccountOnboarding.js +40 -22
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/mocks/labels.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +274 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +30 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +21 -272
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +65 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +341 -21
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +27 -65
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +26 -341
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +72 -27
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +85 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +8 -74
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +55 -83
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +42 -37
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/mocks/expenseManagement.js +163 -140
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/mocks/labels.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/labels.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +255 -88
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/scenarios/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +0 -64
|
@@ -1,87 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { UNSAVED_APPLICATION_DIALOG_LABELS_EN as s } from "./index26.js";
|
|
3
|
+
import { useRef as c } from "react";
|
|
4
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
+
import { XIcon as d } from "lucide-react";
|
|
4
6
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
children: t
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
disabled: c,
|
|
55
|
-
className: "ttw:mt-0.5",
|
|
56
|
-
"aria-labelledby": "bank-account-onboarding-disclosure-text"
|
|
57
|
-
}), /* @__PURE__ */ i("p", {
|
|
58
|
-
id: "bank-account-onboarding-disclosure-text",
|
|
59
|
-
className: "ttw:text-sm ttw:font-normal ttw:leading-snug",
|
|
60
|
-
children: [
|
|
61
|
-
n(g.acceptDisclosuresPrefix, u),
|
|
62
|
-
/* @__PURE__ */ r(o, {
|
|
63
|
-
href: d,
|
|
64
|
-
children: g.termsOfUse
|
|
65
|
-
}),
|
|
66
|
-
g.acceptDisclosuresTermsPrivacyJoin,
|
|
67
|
-
/* @__PURE__ */ r(o, {
|
|
68
|
-
href: f,
|
|
69
|
-
children: g.privacyPolicy
|
|
70
|
-
}),
|
|
71
|
-
n(g.acceptDisclosuresAfterPrivacy, u),
|
|
72
|
-
/* @__PURE__ */ r(o, {
|
|
73
|
-
href: p,
|
|
74
|
-
children: g.electronicCommunication
|
|
75
|
-
}),
|
|
76
|
-
n(g.acceptDisclosuresAfterElectronic, u),
|
|
77
|
-
/* @__PURE__ */ r(o, {
|
|
78
|
-
href: m,
|
|
79
|
-
children: g.patriotAct
|
|
80
|
-
})
|
|
81
|
-
]
|
|
82
|
-
})]
|
|
83
|
-
})]
|
|
7
|
+
function f({ open: f, onSaveDraft: p, onDiscard: m, onCancel: h, isSaving: g = !1, labels: _, testIds: v }) {
|
|
8
|
+
let y = {
|
|
9
|
+
...s,
|
|
10
|
+
..._
|
|
11
|
+
}, b = c(null);
|
|
12
|
+
return /* @__PURE__ */ l(e, {
|
|
13
|
+
open: f,
|
|
14
|
+
onOpenChange: (e) => {
|
|
15
|
+
!e && !g && h();
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */ u(t, {
|
|
18
|
+
"data-testid": v?.root,
|
|
19
|
+
onOpenAutoFocus: (e) => {
|
|
20
|
+
e.preventDefault(), b.current?.focus();
|
|
21
|
+
},
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ u("button", {
|
|
24
|
+
ref: b,
|
|
25
|
+
type: "button",
|
|
26
|
+
onClick: h,
|
|
27
|
+
disabled: g,
|
|
28
|
+
"data-testid": v?.close,
|
|
29
|
+
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",
|
|
30
|
+
children: [/* @__PURE__ */ l(d, {
|
|
31
|
+
className: "ttw:size-4",
|
|
32
|
+
"aria-hidden": !0
|
|
33
|
+
}), /* @__PURE__ */ l("span", {
|
|
34
|
+
className: "ttw:sr-only",
|
|
35
|
+
children: y.closeButton
|
|
36
|
+
})]
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ u(i, { children: [/* @__PURE__ */ l(a, { children: y.title }), /* @__PURE__ */ l(n, { children: y.description })] }),
|
|
39
|
+
/* @__PURE__ */ u(r, { children: [/* @__PURE__ */ l(o, {
|
|
40
|
+
type: "button",
|
|
41
|
+
variant: "outline",
|
|
42
|
+
onClick: m,
|
|
43
|
+
disabled: g,
|
|
44
|
+
"data-testid": v?.discard,
|
|
45
|
+
children: y.discardButton
|
|
46
|
+
}), /* @__PURE__ */ l(o, {
|
|
47
|
+
type: "button",
|
|
48
|
+
loading: g,
|
|
49
|
+
disabled: g,
|
|
50
|
+
onClick: p,
|
|
51
|
+
"data-testid": v?.saveDraft,
|
|
52
|
+
children: y.saveDraftButton
|
|
53
|
+
})] })
|
|
54
|
+
]
|
|
55
|
+
})
|
|
84
56
|
});
|
|
85
57
|
}
|
|
86
58
|
//#endregion
|
|
87
|
-
export { s as
|
|
59
|
+
export { s as UNSAVED_APPLICATION_DIALOG_LABELS_EN, f as UnsavedApplicationDialog };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js
|
|
2
2
|
var e = {
|
|
3
|
-
title: "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
title: "Delete this application?",
|
|
4
|
+
descriptionBeforeEmphasis: "Everything you've entered so far will be permanently removed. If you'd rather come back later, use ",
|
|
5
|
+
descriptionEmphasis: "Save and continue later",
|
|
6
|
+
descriptionAfterEmphasis: " instead.",
|
|
7
|
+
keepEditingButton: "Keep editing",
|
|
8
|
+
deleteButton: "Delete application"
|
|
8
9
|
};
|
|
9
10
|
//#endregion
|
|
10
|
-
export { e as
|
|
11
|
+
export { e as DELETE_APPLICATION_DIALOG_LABELS_EN };
|
|
@@ -1,59 +1,64 @@
|
|
|
1
1
|
import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { DELETE_APPLICATION_DIALOG_LABELS_EN as s } from "./index28.js";
|
|
3
3
|
import { useRef as c } from "react";
|
|
4
4
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
5
|
+
import { Trash2Icon as d } from "lucide-react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js
|
|
7
|
-
function f({ open: f,
|
|
8
|
-
let
|
|
7
|
+
function f({ open: f, onConfirm: p, onCancel: m, isDeleting: h = !1, labels: g, testIds: _ }) {
|
|
8
|
+
let v = {
|
|
9
9
|
...s,
|
|
10
|
-
...
|
|
11
|
-
},
|
|
10
|
+
...g
|
|
11
|
+
}, y = c(null);
|
|
12
12
|
return /* @__PURE__ */ l(e, {
|
|
13
13
|
open: f,
|
|
14
14
|
onOpenChange: (e) => {
|
|
15
|
-
!e && !
|
|
15
|
+
!e && !h && m();
|
|
16
16
|
},
|
|
17
17
|
children: /* @__PURE__ */ u(t, {
|
|
18
|
-
"data-testid":
|
|
18
|
+
"data-testid": _?.root,
|
|
19
19
|
onOpenAutoFocus: (e) => {
|
|
20
|
-
e.preventDefault(),
|
|
20
|
+
e.preventDefault(), y.current?.focus();
|
|
21
21
|
},
|
|
22
|
-
children: [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
22
|
+
children: [/* @__PURE__ */ u(i, {
|
|
23
|
+
className: "ttw:items-center ttw:text-center ttw:sm:items-center ttw:sm:text-center",
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ l("div", {
|
|
26
|
+
className: "ttw:flex ttw:size-14 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive/10",
|
|
27
|
+
"aria-hidden": !0,
|
|
28
|
+
children: /* @__PURE__ */ l(d, { className: "ttw:size-6 ttw:text-destructive" })
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ l(a, { children: v.title }),
|
|
31
|
+
/* @__PURE__ */ u(n, { children: [
|
|
32
|
+
v.descriptionBeforeEmphasis,
|
|
33
|
+
/* @__PURE__ */ l("strong", {
|
|
34
|
+
className: "ttw:font-semibold ttw:text-foreground",
|
|
35
|
+
children: v.descriptionEmphasis
|
|
36
|
+
}),
|
|
37
|
+
v.descriptionAfterEmphasis
|
|
38
|
+
] })
|
|
39
|
+
]
|
|
40
|
+
}), /* @__PURE__ */ u(r, {
|
|
41
|
+
className: "ttw:sm:justify-center",
|
|
42
|
+
children: [/* @__PURE__ */ l(o, {
|
|
43
|
+
ref: y,
|
|
40
44
|
type: "button",
|
|
41
45
|
variant: "outline",
|
|
42
46
|
onClick: m,
|
|
43
|
-
disabled:
|
|
44
|
-
"data-testid":
|
|
45
|
-
children:
|
|
47
|
+
disabled: h,
|
|
48
|
+
"data-testid": _?.cancel,
|
|
49
|
+
children: v.keepEditingButton
|
|
46
50
|
}), /* @__PURE__ */ l(o, {
|
|
47
51
|
type: "button",
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
variant: "destructive",
|
|
53
|
+
loading: h,
|
|
54
|
+
disabled: h,
|
|
50
55
|
onClick: p,
|
|
51
|
-
"data-testid":
|
|
52
|
-
children:
|
|
53
|
-
})]
|
|
54
|
-
]
|
|
56
|
+
"data-testid": _?.confirm,
|
|
57
|
+
children: v.deleteButton
|
|
58
|
+
})]
|
|
59
|
+
})]
|
|
55
60
|
})
|
|
56
61
|
});
|
|
57
62
|
}
|
|
58
63
|
//#endregion
|
|
59
|
-
export { s as
|
|
64
|
+
export { s as DELETE_APPLICATION_DIALOG_LABELS_EN, f as DeleteApplicationDialog };
|