@tesouro/embedded-components-react 0.7.74 → 0.8.1

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.
Files changed (67) hide show
  1. package/README.md +14 -17
  2. package/dist/index.css +18 -17
  3. package/dist/index.d.ts +178 -49
  4. package/dist/index.js +51 -50
  5. package/dist/lib/BankAccountOnboardingWidget.d.ts +178 -49
  6. package/dist/lib/BankAccountOnboardingWidget.js +8 -7
  7. package/dist/lib/WidgetSuite.d.ts +177 -48
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +5 -4
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +131 -96
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +509 -496
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +47 -78
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +47 -49
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +103 -0
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +35 -0
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +49 -28
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +35 -42
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -3
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/buildOnboardingPrefill.js +4 -10
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +4 -2
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/formatPhoneNumberInput.js +6 -2
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +4 -1
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +22 -9
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +8 -5
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +59 -60
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +17 -9
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +19 -18
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +344 -6
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +59 -58
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +40 -33
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +7 -40
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +57 -37
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +30 -93
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +40 -12
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +36 -269
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +93 -25
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +10 -19
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +61 -78
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +270 -61
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +25 -338
  41. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +23 -29
  42. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +53 -26
  43. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +342 -66
  44. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -82
  45. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +27 -6
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +56 -54
  47. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +123 -9
  48. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +5 -62
  49. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +82 -0
  50. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +11 -0
  51. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +64 -0
  52. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +256 -311
  53. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +81 -2
  54. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +83 -53
  55. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +2 -147
  56. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +69 -46
  57. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +5 -35
  58. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index2.js +4 -4
  60. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +2 -2
  61. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +4 -4
  62. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +122 -165
  63. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +12 -27
  64. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +0 -1
  65. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +0 -1
  66. package/dist/packages/shared-ui-shadcn/dist/index.js +81 -23
  67. package/package.json +1 -1
@@ -1,59 +1,61 @@
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";
1
+ import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ABOUT_YOU_PANEL_LABELS_EN as n } from "./index26.js";
3
+ import { AboutYouEditForm as r } from "./index24.js";
4
+ import { AboutYouSummary as i } from "./index25.js";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
6
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js
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,
7
+ function s({ isEditing: s, onEditClick: c, summaryRows: l, editFields: u, labels: d, isDisabled: f, ssnRevealed: p, ssnToggleAriaLabel: m, onToggleSsnVisibility: h, showOwnershipPercentage: g, ssnMaskedDisplay: _, ssnFormattedDisplay: v, ssnRequired: y, ssnPlaceholder: b, ssnHelpText: x, testIds: S }) {
8
+ let C = {
9
+ ...n,
10
+ ...d
11
+ };
12
+ return s ? /* @__PURE__ */ a(r, {
13
+ fields: u,
14
+ labels: C,
15
+ isDisabled: f,
16
+ ssnRevealed: p,
17
+ ssnToggleAriaLabel: m,
18
+ onToggleSsnVisibility: h,
19
+ showOwnershipPercentage: g,
20
+ ssnMaskedDisplay: _,
21
+ ssnFormattedDisplay: v,
22
+ ssnRequired: y,
23
+ ssnPlaceholder: b,
24
+ ssnHelpText: x,
25
+ testIds: S?.editForm
26
+ }) : /* @__PURE__ */ o("section", {
27
+ "data-testid": S?.root,
28
+ className: "ttw:relative ttw:min-w-0",
29
+ children: [
30
+ /* @__PURE__ */ a(t, {
31
+ component: "h3",
32
+ variant: "h6",
33
+ className: "ttw:mb-3 ttw:font-semibold ttw:text-foreground",
34
+ children: C.panelTitle
35
+ }),
36
+ /* @__PURE__ */ a("div", {
37
+ className: "ttw:mb-3 ttw:border-b ttw:border-border",
38
+ "aria-hidden": !0
39
+ }),
40
+ /* @__PURE__ */ a(i, {
41
+ rows: l,
42
+ testIds: S?.summary
43
+ }),
44
+ /* @__PURE__ */ a("div", {
45
+ className: "ttw:mt-4 ttw:flex ttw:justify-start",
46
+ children: /* @__PURE__ */ a(e, {
25
47
  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
- })
48
+ variant: "secondary",
49
+ size: "sm",
50
+ onClick: c,
51
+ disabled: f,
52
+ "aria-label": C.editButtonAriaLabel,
53
+ "data-testid": S?.editButton,
54
+ children: C.editButton
55
+ })
56
+ })
57
+ ]
56
58
  });
57
59
  }
58
60
  //#endregion
59
- export { s as UNSAVED_APPLICATION_DIALOG_LABELS_EN, f as UnsavedApplicationDialog };
61
+ export { n as ABOUT_YOU_PANEL_LABELS_EN, s as AboutYouPanel };
@@ -1,11 +1,125 @@
1
+ import { Checkbox as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BUSINESS_DETAILS_LABELS_EN as n, interpolateBankName as r } from "./index11.js";
3
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
1
4
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js
2
- var e = {
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"
9
- };
5
+ var o = "ttw:cursor-pointer ttw:text-foreground ttw:underline ttw:underline-offset-2 ttw:hover:text-primary";
6
+ function s({ href: e, children: t }) {
7
+ return e ? /* @__PURE__ */ i("a", {
8
+ href: e,
9
+ target: "_blank",
10
+ rel: "noopener noreferrer",
11
+ className: o,
12
+ children: t
13
+ }) : /* @__PURE__ */ i("span", {
14
+ className: o,
15
+ children: t
16
+ });
17
+ }
18
+ function c({ value: o, onChange: c, isSubmitting: l, showErrors: u = !1, labels: d, bankName: f, termsHref: p, privacyHref: m, electronicCommunicationHref: h, patriotActHref: g, testIds: _ }) {
19
+ let v = {
20
+ ...n,
21
+ ...d,
22
+ companyStructureOptions: {
23
+ ...n.companyStructureOptions,
24
+ ...d?.companyStructureOptions ?? {}
25
+ }
26
+ }, y = (e, t) => c({
27
+ ...o,
28
+ [e]: t
29
+ }), b = u && o.isAuthorized !== !0, x = u && !o.isCheckboxChecked;
30
+ return /* @__PURE__ */ a("div", {
31
+ className: "ttw:flex ttw:flex-col ttw:gap-6",
32
+ children: [/* @__PURE__ */ a("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:border-b ttw:border-border ttw:pb-6",
34
+ children: [/* @__PURE__ */ i(t, {
35
+ component: "h3",
36
+ variant: "h6",
37
+ className: "ttw:font-semibold ttw:text-foreground",
38
+ children: v.disclosuresHeading
39
+ }), /* @__PURE__ */ i(t, {
40
+ variant: "body2",
41
+ className: "ttw:text-muted-foreground",
42
+ children: v.disclosuresSubheading
43
+ })]
44
+ }), /* @__PURE__ */ a("div", {
45
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
46
+ children: [/* @__PURE__ */ a("div", {
47
+ className: "ttw:flex ttw:items-start ttw:gap-2",
48
+ children: [/* @__PURE__ */ i(e, {
49
+ id: "isAuthorized",
50
+ "data-testid": _?.authorizationCheckbox,
51
+ checked: o.isAuthorized === !0,
52
+ onCheckedChange: (e) => y("isAuthorized", e === !0 || null),
53
+ disabled: l,
54
+ className: "ttw:mt-0.5",
55
+ "aria-labelledby": "bank-account-onboarding-authorization-text",
56
+ "aria-invalid": b || void 0,
57
+ "aria-describedby": b ? "bank-account-onboarding-authorization-error" : void 0
58
+ }), /* @__PURE__ */ a("div", {
59
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
60
+ children: [/* @__PURE__ */ i("p", {
61
+ id: "bank-account-onboarding-authorization-text",
62
+ className: "ttw:text-sm ttw:font-normal ttw:leading-relaxed ttw:text-foreground",
63
+ children: v.isAuthorizedQuestion
64
+ }), b ? /* @__PURE__ */ i("p", {
65
+ id: "bank-account-onboarding-authorization-error",
66
+ className: "ttw:text-sm ttw:text-destructive",
67
+ children: v.consentRequiredError
68
+ }) : null]
69
+ })]
70
+ }), /* @__PURE__ */ a("div", {
71
+ className: "ttw:flex ttw:items-start ttw:gap-2",
72
+ children: [/* @__PURE__ */ i(e, {
73
+ id: "isCheckboxChecked",
74
+ "data-testid": _?.disclosureCheckbox,
75
+ checked: o.isCheckboxChecked,
76
+ onCheckedChange: (e) => y("isCheckboxChecked", e === !0),
77
+ disabled: l,
78
+ className: "ttw:mt-0.5",
79
+ "aria-labelledby": "bank-account-onboarding-disclosure-text",
80
+ "aria-invalid": x || void 0,
81
+ "aria-describedby": x ? "bank-account-onboarding-disclosure-error" : void 0
82
+ }), /* @__PURE__ */ a("div", {
83
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
84
+ children: [/* @__PURE__ */ a("p", {
85
+ id: "bank-account-onboarding-disclosure-text",
86
+ className: "ttw:max-w-3xl ttw:text-sm ttw:font-normal ttw:leading-relaxed ttw:text-foreground",
87
+ children: [
88
+ /* @__PURE__ */ i("span", {
89
+ className: "ttw:font-semibold",
90
+ children: v.disclosureAgreementLead
91
+ }),
92
+ " ",
93
+ r(v.acceptDisclosuresPrefix, f),
94
+ /* @__PURE__ */ i(s, {
95
+ href: p,
96
+ children: v.termsOfUse
97
+ }),
98
+ v.acceptDisclosuresTermsPrivacyJoin,
99
+ /* @__PURE__ */ i(s, {
100
+ href: m,
101
+ children: v.privacyPolicy
102
+ }),
103
+ r(v.acceptDisclosuresAfterPrivacy, f),
104
+ /* @__PURE__ */ i(s, {
105
+ href: h,
106
+ children: v.electronicCommunication
107
+ }),
108
+ r(v.acceptDisclosuresAfterElectronic, f),
109
+ /* @__PURE__ */ i(s, {
110
+ href: g,
111
+ children: v.patriotAct
112
+ })
113
+ ]
114
+ }), x ? /* @__PURE__ */ i("p", {
115
+ id: "bank-account-onboarding-disclosure-error",
116
+ className: "ttw:text-sm ttw:text-destructive",
117
+ children: v.consentRequiredError
118
+ }) : null]
119
+ })]
120
+ })]
121
+ })]
122
+ });
123
+ }
10
124
  //#endregion
11
- export { e as DELETE_APPLICATION_DIALOG_LABELS_EN };
125
+ export { c as BusinessDisclosuresSection };
@@ -1,64 +1,7 @@
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 { DELETE_APPLICATION_DIALOG_LABELS_EN as s } from "./index28.js";
3
- import { useRef as c } from "react";
4
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
5
- import { Trash2Icon as d } from "lucide-react";
6
1
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js
7
- function f({ open: f, onConfirm: p, onCancel: m, isDeleting: h = !1, labels: g, testIds: _ }) {
8
- let v = {
9
- ...s,
10
- ...g
11
- }, y = c(null);
12
- return /* @__PURE__ */ l(e, {
13
- open: f,
14
- onOpenChange: (e) => {
15
- !e && !h && m();
16
- },
17
- children: /* @__PURE__ */ u(t, {
18
- "data-testid": _?.root,
19
- onOpenAutoFocus: (e) => {
20
- e.preventDefault(), y.current?.focus();
21
- },
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,
44
- type: "button",
45
- variant: "outline",
46
- onClick: m,
47
- disabled: h,
48
- "data-testid": _?.cancel,
49
- children: v.keepEditingButton
50
- }), /* @__PURE__ */ l(o, {
51
- type: "button",
52
- variant: "destructive",
53
- loading: h,
54
- disabled: h,
55
- onClick: p,
56
- "data-testid": _?.confirm,
57
- children: v.deleteButton
58
- })]
59
- })]
60
- })
61
- });
62
- }
2
+ var e = {
3
+ editButton: "Edit",
4
+ emptySection: "None"
5
+ };
63
6
  //#endregion
64
- export { s as DELETE_APPLICATION_DIALOG_LABELS_EN, f as DeleteApplicationDialog };
7
+ export { e as APPLICATION_REVIEW_LABELS_EN };
@@ -0,0 +1,82 @@
1
+ import { Button as e, Typography as t, cn as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { APPLICATION_REVIEW_LABELS_EN as r } from "./index29.js";
3
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
4
+ import { Pen as s } from "lucide-react";
5
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js
6
+ function c({ sections: n, isDisabled: c, labels: u, testIds: d }) {
7
+ let f = {
8
+ ...r,
9
+ ...u
10
+ };
11
+ return /* @__PURE__ */ a("div", {
12
+ className: "ttw:flex ttw:flex-col ttw:gap-8",
13
+ "data-testid": d?.root,
14
+ children: n.map((n) => {
15
+ let { rows: r } = n, u = d?.sections?.[n.id];
16
+ return /* @__PURE__ */ o("section", {
17
+ "data-testid": u?.root,
18
+ className: "ttw:min-w-0",
19
+ children: [
20
+ /* @__PURE__ */ o("div", {
21
+ className: "ttw:mb-3 ttw:flex ttw:items-center ttw:justify-between ttw:gap-3",
22
+ children: [/* @__PURE__ */ a(t, {
23
+ component: "h3",
24
+ variant: "h6",
25
+ className: "ttw:font-semibold ttw:text-foreground",
26
+ children: n.title
27
+ }), /* @__PURE__ */ o(e, {
28
+ type: "button",
29
+ variant: "outline",
30
+ size: "sm",
31
+ onClick: n.onEdit,
32
+ disabled: c,
33
+ "aria-label": n.editAriaLabel,
34
+ "data-testid": u?.editButton,
35
+ children: [/* @__PURE__ */ a(s, {
36
+ className: "ttw:size-4",
37
+ "aria-hidden": !0
38
+ }), f.editButton]
39
+ })]
40
+ }),
41
+ /* @__PURE__ */ a("div", {
42
+ className: "ttw:mb-3 ttw:border-b ttw:border-border",
43
+ "aria-hidden": !0
44
+ }),
45
+ r.length === 0 ? /* @__PURE__ */ a(t, {
46
+ variant: "body2",
47
+ className: "ttw:text-muted-foreground",
48
+ children: f.emptySection
49
+ }) : /* @__PURE__ */ o("div", {
50
+ className: "ttw:grid ttw:grid-cols-[max-content_1fr] ttw:gap-x-4 ttw:gap-y-2",
51
+ children: [n.columnHeaders ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(t, {
52
+ component: "span",
53
+ variant: "body2",
54
+ className: "ttw:font-semibold ttw:text-foreground",
55
+ children: n.columnHeaders.label
56
+ }), /* @__PURE__ */ a(t, {
57
+ component: "span",
58
+ variant: "body2",
59
+ className: "ttw:font-semibold ttw:text-foreground",
60
+ children: n.columnHeaders.value
61
+ })] }) : null, r.map((e, t) => /* @__PURE__ */ a(l, { row: e }, `${t}-${e.label}`))]
62
+ })
63
+ ]
64
+ }, n.id);
65
+ })
66
+ });
67
+ }
68
+ function l({ row: e }) {
69
+ return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(t, {
70
+ component: "span",
71
+ variant: "body2",
72
+ className: "ttw:text-muted-foreground",
73
+ children: e.label
74
+ }), /* @__PURE__ */ a(t, {
75
+ component: "span",
76
+ variant: "body2",
77
+ className: n("ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground", e.valueMonospace && "ttw:font-mono"),
78
+ children: e.value
79
+ })] });
80
+ }
81
+ //#endregion
82
+ export { r as APPLICATION_REVIEW_LABELS_EN, c as ApplicationReview };
@@ -0,0 +1,11 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js
2
+ var e = {
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"
9
+ };
10
+ //#endregion
11
+ export { e as DELETE_APPLICATION_DIALOG_LABELS_EN };
@@ -0,0 +1,64 @@
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 { DELETE_APPLICATION_DIALOG_LABELS_EN as s } from "./index31.js";
3
+ import { useRef as c } from "react";
4
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
5
+ import { Trash2Icon as d } from "lucide-react";
6
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js
7
+ function f({ open: f, onConfirm: p, onCancel: m, isDeleting: h = !1, labels: g, testIds: _ }) {
8
+ let v = {
9
+ ...s,
10
+ ...g
11
+ }, y = c(null);
12
+ return /* @__PURE__ */ l(e, {
13
+ open: f,
14
+ onOpenChange: (e) => {
15
+ !e && !h && m();
16
+ },
17
+ children: /* @__PURE__ */ u(t, {
18
+ "data-testid": _?.root,
19
+ onOpenAutoFocus: (e) => {
20
+ e.preventDefault(), y.current?.focus();
21
+ },
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,
44
+ type: "button",
45
+ variant: "outline",
46
+ onClick: m,
47
+ disabled: h,
48
+ "data-testid": _?.cancel,
49
+ children: v.keepEditingButton
50
+ }), /* @__PURE__ */ l(o, {
51
+ type: "button",
52
+ variant: "destructive",
53
+ loading: h,
54
+ disabled: h,
55
+ onClick: p,
56
+ "data-testid": _?.confirm,
57
+ children: v.deleteButton
58
+ })]
59
+ })]
60
+ })
61
+ });
62
+ }
63
+ //#endregion
64
+ export { s as DELETE_APPLICATION_DIALOG_LABELS_EN, f as DeleteApplicationDialog };