@tesouro/embedded-components-react 0.11.116 → 0.11.118

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 (48) hide show
  1. package/dist/index.css +81 -120
  2. package/dist/index.d.ts +4 -0
  3. package/dist/lib/AcceptDisclosuresWidget.d.ts +4 -0
  4. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +91 -88
  5. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +41 -59
  6. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js +2 -0
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +7 -5
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +163 -160
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +18 -18
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +25 -25
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +34 -31
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +3 -2
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +21 -18
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -0
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +382 -275
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +37 -42
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +56 -50
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +32 -69
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +3 -3
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +14 -25
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +36 -39
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +120 -116
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +14 -26
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +2 -2
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +41 -44
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +96 -115
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +14 -14
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +35 -57
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +37 -60
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +28 -42
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +266 -259
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +51 -55
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +42 -48
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +69 -70
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +2 -2
  39. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +3 -2
  41. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +51 -0
  42. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyState/EmptyState.js +5 -3
  43. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +84 -87
  45. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellScrollRegion.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +35 -21
  47. package/dist/packages/shared-ui-shadcn/dist/index.js +29 -85
  48. package/package.json +1 -1
@@ -43,7 +43,7 @@ var n = {
43
43
  electronicCommunication: "Electronic Communications Agreement",
44
44
  acceptDisclosuresAfterElectronic: ", and acknowledge receipt of {bankName}'s ",
45
45
  patriotAct: "USA PATRIOT Act disclosure.",
46
- consentRequiredError: "Tick this box to continue.",
46
+ consentRequiredError: "Check this box to continue.",
47
47
  companyStructureOptions: {
48
48
  CORPORATION_PUBLIC: "Public corporation",
49
49
  CORPORATION_PRIVATE: "Private corporation",
@@ -8,8 +8,8 @@ var t = {
8
8
  firstName: "First name",
9
9
  lastName: "Last name",
10
10
  dateOfBirth: "Date of birth",
11
- dateOfBirthPlaceholder: "MM/DD/YYYY",
12
- dateOfBirthHint: "For example, 04/23/1985",
11
+ dateOfBirthPlaceholder: "Select date",
12
+ dateOfBirthHint: "Select a date of birth.",
13
13
  dateOfBirthInvalidError: "Enter a valid date of birth",
14
14
  dateOfBirthMinAgeError: "Must be at least 18 years old",
15
15
  ssn: "SSN",
@@ -1,65 +1,60 @@
1
- import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { APPLICATION_STATUS_CARD_LABELS_EN as n } from "./index14.js";
3
- import { useEffect as r, useRef as i } from "react";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { Badge as e, Heading as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { WidgetFrame as n } from "../../../shared/ui/dist/lib/WidgetFrame/WidgetFrame.js";
3
+ import "../../../shared/ui/dist/index.js";
4
+ import { APPLICATION_STATUS_CARD_LABELS_EN as r } from "./index14.js";
5
+ import { useEffect as i, useRef as a } from "react";
6
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
7
  // ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js
6
- var s = {
7
- Brand: "brand",
8
+ var c = {
9
+ Brand: "info",
8
10
  Warning: "warning",
9
- Danger: "danger"
10
- }, c = {
11
- [s.Brand]: "ttw:border-transparent ttw:bg-primary/10 ttw:text-primary",
12
- [s.Warning]: "ttw:border-amber-100 ttw:bg-amber-100 ttw:text-amber-700",
13
- [s.Danger]: "ttw:border-destructive/20 ttw:bg-destructive/20 ttw:text-destructive"
11
+ Danger: "destructive",
12
+ Neutral: "neutral"
14
13
  };
15
- function l({ chipTone: s, labels: l, action: u, focusTitleOnMount: d = !1, className: f, testIds: p }) {
14
+ function l({ chipTone: c, labels: l, action: u, focusTitleOnMount: d = !1, className: f, testIds: p }) {
16
15
  let { title: m, bankDisclosure: h, chipLabel: g, heading: _, body: v } = {
17
- ...n,
16
+ ...r,
18
17
  ...l
19
- }, y = i(null), b = i(d);
20
- return r(() => {
21
- b.current && y.current?.focus();
22
- }, []), /* @__PURE__ */ o("section", {
18
+ }, y = a(null), b = a(d);
19
+ return i(() => {
20
+ if (b.current) {
21
+ let e = y.current?.querySelector("h2");
22
+ e?.setAttribute("tabindex", "-1"), e?.focus();
23
+ }
24
+ }, []), /* @__PURE__ */ s(n, {
25
+ ref: y,
23
26
  "data-testid": p?.root,
27
+ role: "region",
24
28
  "aria-label": m,
25
- className: t("ttw:flex ttw:w-full ttw:flex-col ttw:items-start ttw:gap-3 ttw:rounded-2xl ttw:border ttw:border-border ttw:bg-card ttw:p-6 ttw:text-card-foreground", f),
29
+ title: m,
30
+ className: f,
31
+ bodyClassName: "ttw:items-start ttw:gap-3",
26
32
  children: [
27
- /* @__PURE__ */ o("header", {
28
- className: "ttw:flex ttw:w-full ttw:flex-wrap ttw:items-baseline ttw:justify-between ttw:gap-x-4 ttw:gap-y-1",
29
- children: [/* @__PURE__ */ a("p", {
30
- ref: y,
31
- tabIndex: -1,
32
- className: "ttw:text-lg ttw:font-semibold ttw:outline-none",
33
- children: m
34
- }), h ? /* @__PURE__ */ a("p", {
35
- className: "ttw:text-xs ttw:text-muted-foreground",
36
- children: h
37
- }) : null]
38
- }),
33
+ h ? /* @__PURE__ */ o("p", {
34
+ className: "ttw:text-xs ttw:text-muted-foreground",
35
+ children: h
36
+ }) : null,
39
37
  /* @__PURE__ */ o(e, {
40
38
  "data-testid": p?.chip,
41
- variant: "outline",
42
- className: t("ttw:gap-2 ttw:rounded-full ttw:px-3 ttw:py-1 ttw:text-sm", c[s]),
43
- children: [/* @__PURE__ */ a("span", {
44
- "aria-hidden": "true",
45
- className: "ttw:size-2 ttw:rounded-full ttw:bg-current"
46
- }), g]
39
+ tone: c,
40
+ children: g
47
41
  }),
48
- /* @__PURE__ */ o("div", {
42
+ /* @__PURE__ */ s("div", {
49
43
  className: "ttw:flex ttw:flex-col ttw:gap-2",
50
- children: [_ ? /* @__PURE__ */ a("p", {
51
- className: "ttw:text-xl ttw:font-semibold ttw:text-primary",
44
+ children: [_ ? /* @__PURE__ */ o(t, {
45
+ variant: "section",
46
+ level: 3,
52
47
  children: _
53
- }) : null, v.map((e) => /* @__PURE__ */ a("p", {
48
+ }) : null, v.map((e) => /* @__PURE__ */ o("p", {
54
49
  className: "ttw:text-sm ttw:text-muted-foreground",
55
50
  children: e
56
51
  }, e))]
57
52
  }),
58
- u ? /* @__PURE__ */ a("div", {
53
+ u ? /* @__PURE__ */ o("div", {
59
54
  className: "ttw:pt-2",
60
55
  children: u
61
56
  }) : null
62
57
  ]
63
58
  });
64
59
  }
65
- export { n as APPLICATION_STATUS_CARD_LABELS_EN, l as ApplicationStatusCard, s as ApplicationStatusTone };
60
+ export { r as APPLICATION_STATUS_CARD_LABELS_EN, l as ApplicationStatusCard, c as ApplicationStatusTone };
@@ -1,95 +1,101 @@
1
- import { Button as e, Spinner as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ResultStepConfetti as n } from "./index16.js";
3
- import { ResultStepFdicLogo as r } from "./index17.js";
4
- import { ResultStepMailIcon as i } from "./index18.js";
5
- import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
6
- import { ArrowUpRightIcon as c } from "lucide-react";
1
+ import { Button as e, Heading as t, Spinner as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ResultStepConfetti as r } from "./index16.js";
3
+ import { ResultStepFdicLogo as i } from "./index17.js";
4
+ import { ResultStepMailIcon as a } from "./index18.js";
5
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
7
6
  // ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js
8
7
  function l({ lead: e, email: t }) {
9
- return /* @__PURE__ */ s("div", {
8
+ return /* @__PURE__ */ c("div", {
10
9
  className: "ttw:mb-2 ttw:w-[90%] ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:px-8 ttw:py-6 ttw:text-center",
11
- children: [/* @__PURE__ */ o("p", {
10
+ children: [/* @__PURE__ */ s("p", {
12
11
  className: "ttw:text-base ttw:font-medium ttw:leading-none",
13
12
  children: e
14
- }), /* @__PURE__ */ o("p", {
13
+ }), /* @__PURE__ */ s("p", {
15
14
  className: "ttw:break-all ttw:text-lg ttw:font-semibold ttw:text-primary",
16
15
  children: t
17
16
  })]
18
17
  });
19
18
  }
20
- function u({ line1: e, line2: t }) {
21
- return /* @__PURE__ */ s("h2", {
22
- className: "ttw:mb-1 ttw:text-center ttw:text-3xl ttw:font-bold ttw:leading-tight ttw:tracking-tight",
19
+ function u({ line1: e, line2: n }) {
20
+ return /* @__PURE__ */ c(t, {
21
+ level: 2,
22
+ variant: "page",
23
+ className: "ttw:mb-1 ttw:text-center",
23
24
  children: [
24
25
  e,
25
- /* @__PURE__ */ o("br", {}),
26
- t
26
+ /* @__PURE__ */ s("br", {}),
27
+ n
27
28
  ]
28
29
  });
29
30
  }
30
- function d({ status: d, isLoading: f, loadingMessage: p, headingLine1: m, headingLine2: h, body: g, followUpEmail: _, emailBoxLead: v, navigateToDashboardLabel: y, bankLogoSrc: b, bankLogoAlt: x, fdicDisclaimer: S, onNavigateToDashboard: C, testIds: w }) {
31
- return f ? /* @__PURE__ */ s("div", {
31
+ function d({ status: t, isLoading: d, loadingMessage: f, headingLine1: p, headingLine2: m, body: h, followUpEmail: g, emailBoxLead: _, navigateToDashboardLabel: v, bankLogoSrc: y, bankLogoAlt: b, fdicDisclaimer: x, onNavigateToDashboard: S, testIds: C }) {
32
+ return d ? /* @__PURE__ */ c("div", {
33
+ role: "status",
34
+ "aria-busy": "true",
32
35
  className: "ttw:flex ttw:min-h-[300px] ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-6 ttw:text-center",
33
- "data-testid": w?.processing,
34
- children: [/* @__PURE__ */ o(t, { className: "ttw:size-[65px] ttw:text-primary" }), /* @__PURE__ */ o("p", {
36
+ "data-testid": C?.processing,
37
+ children: [/* @__PURE__ */ s(n, {
38
+ "aria-hidden": "true",
39
+ className: "ttw:size-[65px] ttw:text-primary"
40
+ }), /* @__PURE__ */ s("p", {
35
41
  className: "ttw:text-xl ttw:font-normal",
36
- children: p
42
+ children: f
37
43
  })]
38
- }) : /* @__PURE__ */ s("div", {
44
+ }) : /* @__PURE__ */ c("div", {
39
45
  className: "ttw:mb-2 ttw:flex ttw:flex-col ttw:items-center ttw:p-8 ttw:text-center",
40
- "data-testid": d === "success" ? "bank-account-onboarding-result-success" : "bank-account-onboarding-result-pending",
46
+ "data-testid": t === "success" ? C?.success ?? "bank-account-onboarding-result-success" : C?.pending ?? "bank-account-onboarding-result-pending",
41
47
  children: [
42
- d === "pending" ? /* @__PURE__ */ o("div", {
48
+ t === "pending" ? /* @__PURE__ */ s("div", {
43
49
  className: "ttw:mb-2",
44
- children: /* @__PURE__ */ o(i, {})
50
+ children: /* @__PURE__ */ s(a, {})
45
51
  }) : null,
46
- b ? /* @__PURE__ */ o("div", {
52
+ y ? /* @__PURE__ */ s("div", {
47
53
  className: "ttw:mb-2 ttw:flex ttw:justify-center",
48
- children: /* @__PURE__ */ o("img", {
49
- src: b,
50
- alt: x,
54
+ children: /* @__PURE__ */ s("img", {
55
+ src: y,
56
+ alt: b,
51
57
  className: "ttw:h-[50px] ttw:w-auto ttw:object-contain"
52
58
  })
53
59
  }) : null,
54
- d === "success" ? /* @__PURE__ */ s(a, { children: [
55
- /* @__PURE__ */ o(n, {}),
56
- /* @__PURE__ */ o(u, {
57
- line1: m,
58
- line2: h
60
+ t === "success" ? /* @__PURE__ */ c(o, { children: [
61
+ /* @__PURE__ */ s(r, {}),
62
+ /* @__PURE__ */ s(u, {
63
+ line1: p,
64
+ line2: m
59
65
  }),
60
- /* @__PURE__ */ o("p", {
66
+ /* @__PURE__ */ s("p", {
61
67
  className: "ttw:mb-2 ttw:text-center ttw:text-base",
62
- children: g
68
+ children: h
63
69
  }),
64
70
  /* @__PURE__ */ s(e, {
65
71
  type: "button",
66
72
  size: "lg",
67
73
  className: "ttw:mb-1 ttw:w-fit ttw:px-4 ttw:py-2",
68
- "data-testid": w?.dashboardButton,
69
- onClick: C,
70
- children: [y, /* @__PURE__ */ o(c, { className: "ttw:size-4" })]
74
+ "data-testid": C?.dashboardButton,
75
+ onClick: S,
76
+ children: v
71
77
  })
72
78
  ] }) : null,
73
- d === "pending" ? /* @__PURE__ */ s(a, { children: [
74
- /* @__PURE__ */ o(u, {
75
- line1: m,
76
- line2: h
79
+ t === "pending" ? /* @__PURE__ */ c(o, { children: [
80
+ /* @__PURE__ */ s(u, {
81
+ line1: p,
82
+ line2: m
77
83
  }),
78
- /* @__PURE__ */ o("p", {
84
+ /* @__PURE__ */ s("p", {
79
85
  className: "ttw:mb-1 ttw:text-center ttw:text-base",
80
- children: g
86
+ children: h
81
87
  }),
82
- /* @__PURE__ */ o(l, {
83
- lead: v,
84
- email: _
88
+ /* @__PURE__ */ s(l, {
89
+ lead: _,
90
+ email: g
85
91
  })
86
92
  ] }) : null,
87
- /* @__PURE__ */ s("div", {
93
+ /* @__PURE__ */ c("div", {
88
94
  className: "ttw:mt-1 ttw:flex ttw:items-center ttw:gap-1",
89
- children: [/* @__PURE__ */ o("p", {
95
+ children: [/* @__PURE__ */ s("p", {
90
96
  className: "ttw:text-sm ttw:text-muted-foreground",
91
- children: S
92
- }), /* @__PURE__ */ o(r, {})]
97
+ children: x
98
+ }), /* @__PURE__ */ s(i, {})]
93
99
  })
94
100
  ]
95
101
  });
@@ -1,72 +1,35 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { useEffect as t, useRef as n } from "react";
3
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
- import { Trash2Icon as a } from "lucide-react";
1
+ import { ConfirmDialog as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { Trash2Icon as i } from "lucide-react";
5
4
  // ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js
6
- function o({ ownerName: o, labels: s, isDisabled: c, onCancel: l, onConfirm: u, testIds: d }) {
7
- let f = n(null);
8
- return t(() => {
9
- f.current?.focus();
10
- }, []), /* @__PURE__ */ i("div", {
11
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:rounded-md ttw:border ttw:border-primary ttw:bg-background ttw:p-6",
12
- role: "alertdialog",
13
- "aria-labelledby": "additional-owner-delete-title",
14
- "aria-describedby": "additional-owner-delete-description",
15
- "data-testid": d?.root,
16
- children: [/* @__PURE__ */ i("div", {
17
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:px-4 ttw:text-center",
18
- "data-testid": d?.content,
19
- children: [
20
- /* @__PURE__ */ i("div", {
21
- className: "ttw:relative ttw:mb-4 ttw:flex ttw:items-center ttw:justify-center",
22
- children: [/* @__PURE__ */ r("div", {
23
- className: "ttw:absolute ttw:size-14 ttw:rounded-full ttw:bg-destructive/20 ttw:blur-md",
24
- "aria-hidden": !0
25
- }), /* @__PURE__ */ r("div", {
26
- className: "ttw:relative ttw:flex ttw:size-12 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive/10",
27
- "aria-hidden": !0,
28
- children: /* @__PURE__ */ r(a, { className: "ttw:size-5 ttw:text-destructive" })
29
- })]
30
- }),
31
- /* @__PURE__ */ r("h2", {
32
- id: "additional-owner-delete-title",
33
- className: "ttw:mb-2 ttw:text-xl ttw:font-semibold ttw:tracking-tight",
34
- children: s.deleteOwnerHeading
35
- }),
36
- /* @__PURE__ */ i("p", {
37
- id: "additional-owner-delete-description",
38
- className: "ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground",
39
- children: [
40
- s.deleteOwnerPromptBeforeName,
41
- " ",
42
- /* @__PURE__ */ r("span", {
43
- className: "ttw:font-semibold ttw:text-foreground",
44
- children: o
45
- }),
46
- " ",
47
- s.deleteOwnerPromptAfterName
48
- ]
49
- })
50
- ]
51
- }), /* @__PURE__ */ i("div", {
52
- className: "ttw:flex ttw:justify-center ttw:gap-3",
53
- children: [/* @__PURE__ */ r(e, {
54
- ref: f,
55
- type: "button",
56
- variant: "outline",
57
- onClick: l,
58
- disabled: c,
59
- 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",
60
- children: s.cancel
61
- }), /* @__PURE__ */ r(e, {
62
- type: "button",
63
- variant: "destructive",
64
- onClick: u,
65
- disabled: c,
66
- className: "ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium",
67
- children: s.deleteOwnerConfirm
68
- })]
69
- })]
5
+ function a({ ownerName: a, labels: o, isDisabled: s, onCancel: c, onConfirm: l, testIds: u }) {
6
+ return /* @__PURE__ */ n("div", {
7
+ "data-testid": u?.root,
8
+ children: /* @__PURE__ */ n(e, {
9
+ open: !0,
10
+ onOpenChange: (e) => {
11
+ !e && !s && c();
12
+ },
13
+ title: o.deleteOwnerHeading,
14
+ description: /* @__PURE__ */ r(t, { children: [
15
+ o.deleteOwnerPromptBeforeName,
16
+ " ",
17
+ /* @__PURE__ */ n("strong", { children: a }),
18
+ " ",
19
+ o.deleteOwnerPromptAfterName
20
+ ] }),
21
+ icon: /* @__PURE__ */ n(i, {}),
22
+ destructive: !0,
23
+ loading: s,
24
+ confirmDisabled: s,
25
+ onConfirm: l,
26
+ labels: {
27
+ cancel: o.cancel,
28
+ confirm: o.deleteOwnerConfirm,
29
+ close: o.close
30
+ },
31
+ testIds: { content: u?.content }
32
+ })
70
33
  });
71
34
  }
72
- export { o as AdditionalOwnerDeleteConfirmation };
35
+ export { a as AdditionalOwnerDeleteConfirmation };
@@ -13,13 +13,13 @@ var h = "ttw:w-full";
13
13
  function g({ fields: n, testIds: g, labels: _, isDisabled: v, taxIdRequired: y, taxIdPlaceholder: b, taxIdHelpText: x }) {
14
14
  let S = d(n.state.onBlur), C = d(n.companyStructure.onBlur);
15
15
  return /* @__PURE__ */ p("section", {
16
- className: "ttw:flex ttw:flex-col ttw:gap-3",
16
+ className: "ttw:@container/form ttw:flex ttw:max-w-[720px] ttw:flex-col ttw:gap-3",
17
17
  "data-testid": g?.root,
18
18
  children: [/* @__PURE__ */ f("p", {
19
19
  className: "ttw:text-sm ttw:text-muted-foreground",
20
20
  children: _.requiredFieldsNote
21
21
  }), /* @__PURE__ */ p("div", {
22
- className: "ttw:grid ttw:grid-cols-1 ttw:gap-x-4 ttw:gap-y-3 ttw:sm:grid-cols-2",
22
+ className: "ttw:grid ttw:grid-cols-1 ttw:gap-x-4 ttw:gap-y-3 ttw:@md/form:grid-cols-2",
23
23
  children: [
24
24
  /* @__PURE__ */ p("div", {
25
25
  className: "ttw:min-w-0",
@@ -124,7 +124,7 @@ function g({ fields: n, testIds: g, labels: _, isDisabled: v, taxIdRequired: y,
124
124
  ]
125
125
  }),
126
126
  /* @__PURE__ */ p("div", {
127
- className: "ttw:sm:col-span-2",
127
+ className: "ttw:@md/form:col-span-2",
128
128
  children: [
129
129
  /* @__PURE__ */ p(m, {
130
130
  htmlFor: "businessAddress",
@@ -1,29 +1,18 @@
1
- import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
1
+ import { DescriptionList as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
3
  // ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js
4
- function i({ label: i, value: a, testId: o }) {
5
- return a ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
6
- component: "span",
7
- variant: "body2",
8
- className: "ttw:text-muted-foreground",
9
- children: i
10
- }), /* @__PURE__ */ n(e, {
11
- component: "span",
12
- variant: "body2",
13
- "data-testid": o,
14
- className: "ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground",
15
- children: a
16
- })] }) : null;
17
- }
18
- function a({ rows: e, testIds: t }) {
19
- return /* @__PURE__ */ n("div", {
20
- className: "ttw:grid ttw:grid-cols-[max-content_1fr] ttw:gap-x-4 ttw:gap-y-2",
21
- "data-testid": t?.root,
22
- children: e.map((e) => /* @__PURE__ */ n(i, {
4
+ function n({ rows: n, testIds: r }) {
5
+ return /* @__PURE__ */ t(e, {
6
+ variant: "form-review",
7
+ "data-testid": r?.root,
8
+ items: n.filter((e) => e.value).map((e) => ({
23
9
  label: e.label,
24
- value: e.value,
25
- testId: e.testId
26
- }, e.testId ?? e.label))
10
+ value: /* @__PURE__ */ t("span", {
11
+ "data-testid": e.testId,
12
+ className: "ttw:whitespace-pre-line",
13
+ children: e.value
14
+ })
15
+ }))
27
16
  });
28
17
  }
29
- export { a as BusinessDetailsSummary };
18
+ export { n as BusinessDetailsSummary };
@@ -1,54 +1,51 @@
1
- import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BUSINESS_DETAILS_PANEL_LABELS_EN as n } from "./index23.js";
3
- import { BusinessDetailsEditForm as r } from "./index21.js";
4
- import { BusinessDetailsSummary as i } from "./index22.js";
5
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { Button as e, Heading as t, Separator as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BUSINESS_DETAILS_PANEL_LABELS_EN as r } from "./index23.js";
3
+ import { BusinessDetailsEditForm as i } from "./index21.js";
4
+ import { BusinessDetailsSummary as a } from "./index22.js";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
6
  // ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js
7
- function s({ isEditing: s, onEditClick: c, summaryRows: l, editFields: u, labels: d, isDisabled: f, taxIdRequired: p, taxIdPlaceholder: m, taxIdHelpText: h, testIds: g }) {
8
- let _ = {
9
- ...n,
10
- ...d
7
+ function c({ isEditing: c, onEditClick: l, summaryRows: u, editFields: d, labels: f, isDisabled: p, taxIdRequired: m, taxIdPlaceholder: h, taxIdHelpText: g, testIds: _ }) {
8
+ let v = {
9
+ ...r,
10
+ ...f
11
11
  };
12
- return s ? /* @__PURE__ */ a(r, {
13
- fields: u,
14
- labels: _,
15
- isDisabled: f,
16
- taxIdRequired: p,
17
- taxIdPlaceholder: m,
18
- taxIdHelpText: h,
19
- testIds: g?.editForm
20
- }) : /* @__PURE__ */ o("section", {
21
- "data-testid": g?.root,
12
+ return c ? /* @__PURE__ */ o(i, {
13
+ fields: d,
14
+ labels: v,
15
+ isDisabled: p,
16
+ taxIdRequired: m,
17
+ taxIdPlaceholder: h,
18
+ taxIdHelpText: g,
19
+ testIds: _?.editForm
20
+ }) : /* @__PURE__ */ s("section", {
21
+ "data-testid": _?.root,
22
22
  className: "ttw:relative ttw:min-w-0",
23
23
  children: [
24
- /* @__PURE__ */ a(t, {
25
- component: "h3",
26
- variant: "h6",
27
- className: "ttw:mb-3 ttw:font-semibold ttw:text-foreground",
28
- children: _.panelTitle
24
+ /* @__PURE__ */ o(t, {
25
+ variant: "section",
26
+ level: 3,
27
+ className: "ttw:mb-3",
28
+ children: v.panelTitle
29
29
  }),
30
- /* @__PURE__ */ a("div", {
31
- className: "ttw:mb-3 ttw:border-b ttw:border-border",
32
- "aria-hidden": !0
30
+ /* @__PURE__ */ o(n, { className: "ttw:mb-3" }),
31
+ /* @__PURE__ */ o(a, {
32
+ rows: u,
33
+ testIds: _?.summary
33
34
  }),
34
- /* @__PURE__ */ a(i, {
35
- rows: l,
36
- testIds: g?.summary
37
- }),
38
- /* @__PURE__ */ a("div", {
35
+ /* @__PURE__ */ o("div", {
39
36
  className: "ttw:mt-4 ttw:flex ttw:justify-start",
40
- children: /* @__PURE__ */ a(e, {
37
+ children: /* @__PURE__ */ o(e, {
41
38
  type: "button",
42
39
  variant: "secondary",
43
40
  size: "sm",
44
- onClick: c,
45
- disabled: f,
46
- "aria-label": _.editButtonAriaLabel,
47
- "data-testid": g?.editButton,
48
- children: _.editButton
41
+ onClick: l,
42
+ disabled: p,
43
+ "aria-label": v.editButtonAriaLabel,
44
+ "data-testid": _?.editButton,
45
+ children: v.editButton
49
46
  })
50
47
  })
51
48
  ]
52
49
  });
53
50
  }
54
- export { n as BUSINESS_DETAILS_PANEL_LABELS_EN, s as BusinessDetailsPanel };
51
+ export { r as BUSINESS_DETAILS_PANEL_LABELS_EN, c as BusinessDetailsPanel };