@tesouro/embedded-components-react 0.11.116 → 0.11.119

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
@@ -1,82 +1,78 @@
1
- import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { AdditionalOwnerFieldsGrid as n } from "./index4.js";
3
- import { useId as r } from "react";
4
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
- import { CircleAlertIcon as o, Trash2Icon as s } from "lucide-react";
1
+ import { Button as e, Heading as t, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { InlineErrorAlert as r } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
3
+ import "../../../shared/ui/dist/index.js";
4
+ import { AdditionalOwnerFieldsGrid as i } from "./index4.js";
5
+ import { useEffect as a, useId as o, useRef as s, useState as c } from "react";
6
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
7
  // ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js
7
- function c({ heading: c, submitLabel: l, editor: u, isDisabled: d, labels: f, onDelete: p, testIds: m }) {
8
- let h = r();
9
- return /* @__PURE__ */ a("section", {
10
- "aria-labelledby": h,
11
- "data-testid": m?.root,
8
+ function d({ heading: d, submitLabel: f, editor: p, isDisabled: m, labels: h, onDelete: g, testIds: _ }) {
9
+ let v = o(), y = s(null), [b, x] = c(0);
10
+ return a(() => {
11
+ b > 0 && y.current?.querySelector("[aria-invalid=\"true\"]")?.focus();
12
+ }, [b]), /* @__PURE__ */ u("section", {
13
+ ref: y,
14
+ "aria-labelledby": v,
15
+ "data-testid": _?.root,
12
16
  className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-md ttw:border ttw:border-primary ttw:bg-background ttw:p-4",
13
17
  children: [
14
- /* @__PURE__ */ i(t, {
15
- component: "h4",
16
- variant: "h6",
17
- id: h,
18
+ /* @__PURE__ */ l(t, {
19
+ variant: "subsection",
20
+ level: 4,
21
+ id: v,
18
22
  tabIndex: -1,
19
23
  "data-owner-panel-heading": "",
20
24
  "data-needs-attention": "",
21
25
  className: "ttw:font-semibold ttw:text-foreground",
22
- children: c
26
+ children: d
23
27
  }),
24
- /* @__PURE__ */ i(t, {
28
+ /* @__PURE__ */ l(n, {
25
29
  variant: "body2",
26
30
  className: "ttw:text-muted-foreground",
27
- children: f.allFieldsRequiredNote
31
+ children: h.allFieldsRequiredNote
28
32
  }),
29
- u.showMissingFieldsAlert ? /* @__PURE__ */ a("div", {
30
- role: "alert",
31
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-xl ttw:border ttw:border-destructive/30 ttw:bg-destructive/15 ttw:px-6 ttw:py-4 ttw:text-sm ttw:text-destructive",
32
- children: [/* @__PURE__ */ i(o, {
33
- "aria-hidden": !0,
34
- className: "ttw:size-5 ttw:shrink-0"
35
- }), /* @__PURE__ */ i("span", { children: f.missingFieldsAlert })]
36
- }) : null,
37
- /* @__PURE__ */ i("div", {
33
+ p.showMissingFieldsAlert ? /* @__PURE__ */ l(r, { children: h.missingFieldsAlert }) : null,
34
+ /* @__PURE__ */ l("div", {
38
35
  className: "ttw:flex ttw:flex-col ttw:gap-3",
39
- children: /* @__PURE__ */ i(n, {
40
- fields: u.fields,
41
- display: u.display,
42
- isDisabled: d,
43
- labels: f,
44
- ssnRevealed: u.ssnRevealed,
45
- ssnToggleAriaLabel: u.ssnToggleAriaLabel,
46
- onToggleSsnVisibility: u.onToggleSsnVisibility
36
+ children: /* @__PURE__ */ l(i, {
37
+ fields: p.fields,
38
+ display: p.display,
39
+ isDisabled: m,
40
+ labels: h,
41
+ ssnRevealed: p.ssnRevealed,
42
+ ssnToggleAriaLabel: p.ssnToggleAriaLabel,
43
+ onToggleSsnVisibility: p.onToggleSsnVisibility
47
44
  })
48
45
  }),
49
- /* @__PURE__ */ a("div", {
46
+ /* @__PURE__ */ u("div", {
50
47
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
51
- children: [p ? /* @__PURE__ */ a(e, {
48
+ children: [g ? /* @__PURE__ */ l(e, {
52
49
  type: "button",
53
50
  variant: "ghost",
54
- onClick: p,
55
- disabled: d,
51
+ onClick: g,
52
+ disabled: m,
56
53
  "data-owner-delete-trigger": "",
57
- className: "ttw:gap-1.5 ttw:text-foreground ttw:hover:text-foreground",
58
- children: [/* @__PURE__ */ i(s, {
59
- className: "ttw:size-4",
60
- "aria-hidden": !0
61
- }), f.deleteOwner]
62
- }) : /* @__PURE__ */ i("span", {}), /* @__PURE__ */ a("div", {
54
+ className: "ttw:text-destructive ttw:hover:text-destructive",
55
+ children: h.deleteOwner
56
+ }) : /* @__PURE__ */ l("span", {}), /* @__PURE__ */ u("div", {
63
57
  className: "ttw:flex ttw:gap-3",
64
- children: [/* @__PURE__ */ i(e, {
58
+ children: [/* @__PURE__ */ l(e, {
65
59
  type: "button",
66
- variant: "outline",
67
- onClick: u.onCancel,
68
- disabled: d,
69
- children: f.cancel
70
- }), /* @__PURE__ */ i(e, {
60
+ variant: "ghost",
61
+ onClick: p.onCancel,
62
+ disabled: m,
63
+ children: h.cancel
64
+ }), /* @__PURE__ */ l(e, {
71
65
  type: "button",
72
- onClick: u.onSubmit,
73
- disabled: d || !u.isValid,
74
- "data-testid": m?.saveButton,
75
- children: l
66
+ onClick: () => {
67
+ p.onSubmit(), p.isValid || x((e) => e + 1);
68
+ },
69
+ disabled: m,
70
+ "data-testid": _?.saveButton,
71
+ children: f
76
72
  })]
77
73
  })]
78
74
  })
79
75
  ]
80
76
  });
81
77
  }
82
- export { c as AdditionalOwnerInlineEditor };
78
+ export { d as AdditionalOwnerInlineEditor };
@@ -1,84 +1,78 @@
1
- import { Button as e, Separator as t, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
- import { CircleUserRoundIcon as a, Trash2Icon as o } from "lucide-react";
1
+ import { Button as e, DescriptionList as t, Heading as n, Separator as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
3
+ import { CircleUserRoundIcon as s } from "lucide-react";
4
4
  // ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js
5
- function s({ ownerName: s, shareDisplay: c, review: l, isDisabled: u, labels: d, onDelete: f, testIds: p }) {
6
- return /* @__PURE__ */ i("section", {
5
+ function c({ ownerName: c, shareDisplay: l, review: u, isDisabled: d, labels: f, onDelete: p, testIds: m }) {
6
+ return /* @__PURE__ */ o("section", {
7
7
  "aria-labelledby": "additional-owner-review-title",
8
- "data-testid": p?.root,
8
+ "data-testid": m?.root,
9
9
  className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-md ttw:border ttw:border-primary ttw:bg-background ttw:p-4",
10
10
  children: [
11
- /* @__PURE__ */ i("div", {
11
+ /* @__PURE__ */ o("div", {
12
12
  className: "ttw:flex ttw:items-center ttw:gap-3",
13
- children: [/* @__PURE__ */ r(a, {
13
+ children: [/* @__PURE__ */ a(s, {
14
14
  className: "ttw:size-5 ttw:shrink-0 ttw:text-muted-foreground",
15
15
  "aria-hidden": !0
16
- }), /* @__PURE__ */ i("div", {
16
+ }), /* @__PURE__ */ o("div", {
17
17
  className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:gap-x-6",
18
- children: [/* @__PURE__ */ r(n, {
19
- component: "h4",
20
- variant: "h6",
18
+ children: [/* @__PURE__ */ a(n, {
19
+ variant: "subsection",
20
+ level: 4,
21
21
  id: "additional-owner-review-title",
22
22
  tabIndex: -1,
23
23
  "data-owner-panel-heading": "",
24
24
  "data-needs-attention": "",
25
25
  className: "ttw:font-semibold ttw:text-foreground",
26
- children: s
27
- }), /* @__PURE__ */ r(n, {
26
+ children: c
27
+ }), /* @__PURE__ */ a(i, {
28
28
  variant: "body1",
29
29
  className: "ttw:text-foreground",
30
- children: c
30
+ children: l
31
31
  })]
32
32
  })]
33
33
  }),
34
- /* @__PURE__ */ i("div", {
34
+ /* @__PURE__ */ o("div", {
35
35
  className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:pl-8",
36
- children: [/* @__PURE__ */ r(t, {}), /* @__PURE__ */ r("dl", {
37
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-3",
38
- children: l.rows.map((e) => /* @__PURE__ */ i("div", {
39
- className: "ttw:contents",
40
- children: [/* @__PURE__ */ r("dt", {
41
- className: "ttw:text-muted-foreground",
42
- children: e.label
43
- }), /* @__PURE__ */ r("dd", {
44
- className: "ttw:whitespace-pre-line ttw:text-foreground",
36
+ children: [/* @__PURE__ */ a(r, {}), /* @__PURE__ */ a(t, {
37
+ variant: "form-review",
38
+ items: u.rows.map((e) => ({
39
+ label: e.label,
40
+ value: /* @__PURE__ */ a("span", {
41
+ className: "ttw:whitespace-pre-line",
45
42
  children: e.value
46
- })]
47
- }, e.label))
43
+ })
44
+ }))
48
45
  })]
49
46
  }),
50
- /* @__PURE__ */ i("div", {
47
+ /* @__PURE__ */ o("div", {
51
48
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3 ttw:pl-8",
52
- children: [/* @__PURE__ */ i(e, {
49
+ children: [/* @__PURE__ */ a(e, {
53
50
  type: "button",
54
51
  variant: "ghost",
55
- onClick: f,
56
- disabled: u,
52
+ onClick: p,
53
+ disabled: d,
57
54
  "data-owner-delete-trigger": "",
58
- className: "ttw:gap-1.5 ttw:text-foreground ttw:hover:text-foreground",
59
- children: [/* @__PURE__ */ r(o, {
60
- className: "ttw:size-4",
61
- "aria-hidden": !0
62
- }), d.deleteOwner]
63
- }), /* @__PURE__ */ i("div", {
55
+ className: "ttw:text-destructive ttw:hover:text-destructive",
56
+ children: f.deleteOwner
57
+ }), /* @__PURE__ */ o("div", {
64
58
  className: "ttw:flex ttw:flex-wrap ttw:gap-3",
65
- children: [/* @__PURE__ */ r(e, {
59
+ children: [/* @__PURE__ */ a(e, {
66
60
  type: "button",
67
61
  variant: "secondary",
68
- onClick: l.onEdit,
69
- disabled: u,
70
- "data-testid": p?.editButton,
71
- children: d.editOwner
72
- }), /* @__PURE__ */ r(e, {
62
+ onClick: u.onEdit,
63
+ disabled: d,
64
+ "data-testid": m?.editButton,
65
+ children: f.editOwner
66
+ }), /* @__PURE__ */ a(e, {
73
67
  type: "button",
74
- onClick: l.onConfirm,
75
- disabled: u,
76
- "data-testid": p?.confirmButton,
77
- children: d.confirmDetails
68
+ onClick: u.onConfirm,
69
+ disabled: d,
70
+ "data-testid": m?.confirmButton,
71
+ children: f.confirmDetails
78
72
  })]
79
73
  })]
80
74
  })
81
75
  ]
82
76
  });
83
77
  }
84
- export { s as AdditionalOwnerReviewPanel };
78
+ export { c as AdditionalOwnerReviewPanel };
@@ -1,111 +1,110 @@
1
- import { Badge as e, Button as t, InputGroup as n, InputGroupAddon as r, InputGroupInput as i, Label as a, Typography as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { FieldError as s, fieldErrorAria as c } from "./index3.js";
3
- import { useId as l } from "react";
4
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
- import { PencilIcon as f } from "lucide-react";
1
+ import { Badge as e, Button as t, Heading as n, InputGroup as r, InputGroupAddon as i, InputGroupInput as a, Label as o, Typography as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { FieldError as c, fieldErrorAria as l } from "./index3.js";
3
+ import { useEffect as u, useId as d, useRef as f, useState as p } from "react";
4
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
6
5
  // ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js
7
- function p({ applicantName: p, editor: m, onEditPersonalDetails: h, isDisabled: g, labels: _, testIds: v }) {
8
- let y = l(), b = l();
9
- return /* @__PURE__ */ d("section", {
10
- "aria-labelledby": y,
11
- "data-testid": v?.root,
6
+ function g({ applicantName: g, editor: _, onEditPersonalDetails: v, isDisabled: y, labels: b, testIds: x }) {
7
+ let S = d(), C = f(null), [w, T] = p(0);
8
+ u(() => {
9
+ w > 0 && C.current?.querySelector("[aria-invalid=\"true\"]")?.focus();
10
+ }, [w]);
11
+ let E = d();
12
+ return /* @__PURE__ */ h("section", {
13
+ ref: C,
14
+ "aria-labelledby": S,
15
+ "data-testid": x?.root,
12
16
  className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-md ttw:border ttw:border-primary ttw:bg-background ttw:p-4",
13
17
  children: [
14
- /* @__PURE__ */ d("div", {
18
+ /* @__PURE__ */ h("div", {
15
19
  className: "ttw:flex ttw:items-center ttw:gap-2",
16
- children: [
17
- /* @__PURE__ */ u(f, {
18
- "aria-hidden": !0,
19
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground"
20
- }),
21
- /* @__PURE__ */ u(o, {
22
- component: "h4",
23
- variant: "h6",
24
- id: y,
25
- tabIndex: -1,
26
- "data-owner-panel-heading": "",
27
- "data-needs-attention": "",
28
- className: "ttw:font-semibold ttw:text-foreground",
29
- children: _.inlineEditHeadingTemplate(p)
30
- }),
31
- /* @__PURE__ */ u(e, {
32
- variant: "secondary",
33
- children: _.applicantBadge
34
- })
35
- ]
20
+ children: [/* @__PURE__ */ m(n, {
21
+ variant: "subsection",
22
+ level: 4,
23
+ id: S,
24
+ tabIndex: -1,
25
+ "data-owner-panel-heading": "",
26
+ "data-needs-attention": "",
27
+ className: "ttw:font-semibold ttw:text-foreground",
28
+ children: b.inlineEditHeadingTemplate(g)
29
+ }), /* @__PURE__ */ m(e, {
30
+ variant: "secondary",
31
+ children: b.applicantBadge
32
+ })]
36
33
  }),
37
- /* @__PURE__ */ d("div", { children: [
38
- /* @__PURE__ */ d(a, {
39
- htmlFor: b,
34
+ /* @__PURE__ */ h("div", { children: [
35
+ /* @__PURE__ */ h(o, {
36
+ htmlFor: E,
40
37
  className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
41
- children: [_.applicantOwnershipPercentage, _.requiredFieldMarker]
38
+ children: [b.applicantOwnershipPercentage, b.requiredFieldMarker]
42
39
  }),
43
- /* @__PURE__ */ d(n, {
40
+ /* @__PURE__ */ h(r, {
44
41
  className: "ttw:w-32",
45
- children: [/* @__PURE__ */ u(i, {
46
- id: b,
42
+ children: [/* @__PURE__ */ m(a, {
43
+ id: E,
47
44
  type: "number",
48
45
  min: 25,
49
46
  max: 100,
50
47
  "data-has-end-addon": "",
51
- placeholder: _.ownershipPercentagePlaceholder,
52
- value: m.share.value ?? "",
53
- onChange: (e) => m.share.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
54
- onBlur: m.share.onBlur,
55
- ...c(b, m.share.error),
56
- disabled: g,
48
+ placeholder: b.ownershipPercentagePlaceholder,
49
+ value: _.share.value ?? "",
50
+ onChange: (e) => _.share.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
51
+ onBlur: _.share.onBlur,
52
+ ...l(E, _.share.error),
53
+ disabled: y,
57
54
  required: !0
58
- }), /* @__PURE__ */ u(r, {
55
+ }), /* @__PURE__ */ m(i, {
59
56
  align: "inline-end",
60
57
  "aria-hidden": !0,
61
- children: _.percentSuffix
58
+ children: b.percentSuffix
62
59
  })]
63
60
  }),
64
- /* @__PURE__ */ u(s, {
65
- fieldId: b,
66
- error: m.share.error
61
+ /* @__PURE__ */ m(c, {
62
+ fieldId: E,
63
+ error: _.share.error
67
64
  })
68
65
  ] }),
69
- /* @__PURE__ */ d("div", {
66
+ /* @__PURE__ */ h("div", {
70
67
  className: "ttw:flex ttw:flex-col ttw:gap-1",
71
- children: [/* @__PURE__ */ u(o, {
68
+ children: [/* @__PURE__ */ m(s, {
72
69
  variant: "body2",
73
70
  className: "ttw:text-foreground",
74
- children: m.summary
75
- }), /* @__PURE__ */ d(o, {
71
+ children: _.summary
72
+ }), /* @__PURE__ */ h(s, {
76
73
  variant: "body2",
77
74
  className: "ttw:text-muted-foreground",
78
75
  children: [
79
- _.applicantDetailsSourceNote,
76
+ b.applicantDetailsSourceNote,
80
77
  " ",
81
- /* @__PURE__ */ u(t, {
78
+ /* @__PURE__ */ m(t, {
82
79
  type: "button",
83
80
  variant: "link",
84
- onClick: h,
85
- disabled: g,
81
+ onClick: v,
82
+ disabled: y,
86
83
  className: "ttw:h-auto ttw:p-0 ttw:align-baseline",
87
- children: _.editPersonalDetails
84
+ children: b.editPersonalDetails
88
85
  })
89
86
  ]
90
87
  })]
91
88
  }),
92
- /* @__PURE__ */ d("div", {
89
+ /* @__PURE__ */ h("div", {
93
90
  className: "ttw:flex ttw:justify-end ttw:gap-3",
94
- children: [/* @__PURE__ */ u(t, {
91
+ children: [/* @__PURE__ */ m(t, {
95
92
  type: "button",
96
- variant: "outline",
97
- onClick: m.onCancel,
98
- disabled: g,
99
- children: _.cancel
100
- }), /* @__PURE__ */ u(t, {
93
+ variant: "ghost",
94
+ onClick: _.onCancel,
95
+ disabled: y,
96
+ children: b.cancel
97
+ }), /* @__PURE__ */ m(t, {
101
98
  type: "button",
102
- onClick: m.onSave,
103
- disabled: g || !m.isValid,
104
- "data-testid": v?.saveButton,
105
- children: _.saveOwnerSubmit
99
+ onClick: () => {
100
+ _.onSave(), _.isValid || T((e) => e + 1);
101
+ },
102
+ disabled: y,
103
+ "data-testid": x?.saveButton,
104
+ children: b.saveOwnerSubmit
106
105
  })]
107
106
  })
108
107
  ]
109
108
  });
110
109
  }
111
- export { p as ApplicantOwnerInlineEditor };
110
+ export { g as ApplicantOwnerInlineEditor };
@@ -56,8 +56,8 @@ var t = {
56
56
  firstName: "First name",
57
57
  lastName: "Last name",
58
58
  dateOfBirth: "Date of birth",
59
- dateOfBirthPlaceholder: "MM/DD/YYYY",
60
- dateOfBirthHint: "For example, 04/23/1985",
59
+ dateOfBirthPlaceholder: "Select date",
60
+ dateOfBirthHint: "Select a date of birth.",
61
61
  dateOfBirthInvalidError: "Enter a valid date of birth",
62
62
  ssn: "SSN",
63
63
  ssnOnFileTemplate: e,
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.116", n = "40d2b4ab6611b58bdceed06101c83e902941346f", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.119", n = "536f3bad67c534abca0ad028b2c7c72f6e27b875", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -30,5 +30,6 @@ import "./lib/OnboardingShell/OnboardingShellStepper.js";
30
30
  import "./lib/OnboardingShell/OnboardingShellOverlayPortal.js";
31
31
  import { OnboardingShell as T } from "./lib/OnboardingShell/OnboardingShell.js";
32
32
  import { SectionHeading as E } from "./lib/SectionHeading/SectionHeading.js";
33
- import { FileDropZone as D } from "./lib/FileDropZone/FileDropZone.js";
34
- export { p as AddTile, y as AmountInput, g as ERROR_STATE_ID, e as EmbeddedToaster, h as EmptyState, _ as ErrorState, D as FileDropZone, l as HostIsolationScope, S as InlineErrorAlert, u as Link, b as LoadingRegion, x as MaskedAccountNumber, v as NoAccessState, T as OnboardingShell, C as PAGINATION_FOOTER_LABELS_EN, w as PaginationFooter, E as SectionHeading, m as StatePanel, t as ToastNameMessage, n as UIFramework, i as UIProvider, f as WidgetContainer, d as WidgetFrame, a as registerDesignSystemEnsurer, o as registerUIRenderers, r as resolveUIFramework, s as useDesignSystemEnsurer, c as useFrameworkRenderer };
33
+ import { ConsentBlock as D } from "./lib/ConsentBlock/ConsentBlock.js";
34
+ import { FileDropZone as O } from "./lib/FileDropZone/FileDropZone.js";
35
+ export { p as AddTile, y as AmountInput, D as ConsentBlock, g as ERROR_STATE_ID, e as EmbeddedToaster, h as EmptyState, _ as ErrorState, O as FileDropZone, l as HostIsolationScope, S as InlineErrorAlert, u as Link, b as LoadingRegion, x as MaskedAccountNumber, v as NoAccessState, T as OnboardingShell, C as PAGINATION_FOOTER_LABELS_EN, w as PaginationFooter, E as SectionHeading, m as StatePanel, t as ToastNameMessage, n as UIFramework, i as UIProvider, f as WidgetContainer, d as WidgetFrame, a as registerDesignSystemEnsurer, o as registerUIRenderers, r as resolveUIFramework, s as useDesignSystemEnsurer, c as useFrameworkRenderer };
@@ -0,0 +1,51 @@
1
+ import { Checkbox as e, FieldError as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { useId as n } from "react";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js
5
+ function a({ links: a, agreement: o, checked: s, onCheckedChange: c, disabled: l, error: u, checkboxAriaLabel: d, testIds: f }) {
6
+ let p = n(), m = `${p}-agreement`, h = `${p}-error`;
7
+ return /* @__PURE__ */ i("div", {
8
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
9
+ children: [a.length > 0 ? /* @__PURE__ */ r("ul", {
10
+ "data-testid": f?.links,
11
+ className: "ttw:list-disc ttw:space-y-2 ttw:pl-5",
12
+ children: a.map((e, t) => /* @__PURE__ */ r("li", { children: e.href ? /* @__PURE__ */ r("a", {
13
+ href: e.href,
14
+ target: "_blank",
15
+ rel: "noopener noreferrer",
16
+ className: "ttw:text-sm ttw:text-primary ttw:underline ttw:underline-offset-2",
17
+ children: e.label
18
+ }) : /* @__PURE__ */ r("span", {
19
+ className: "ttw:text-sm",
20
+ children: e.label
21
+ }) }, `${e.label}-${t}`))
22
+ }) : null, /* @__PURE__ */ i("div", {
23
+ className: "ttw:flex ttw:items-start ttw:gap-2",
24
+ children: [/* @__PURE__ */ r(e, {
25
+ id: p,
26
+ "data-testid": f?.checkbox,
27
+ checked: s,
28
+ disabled: l,
29
+ onCheckedChange: (e) => c(e === !0),
30
+ "aria-label": d,
31
+ "aria-labelledby": d ? void 0 : m,
32
+ "aria-describedby": [d ? m : void 0, u ? h : void 0].filter(Boolean).join(" ") || void 0,
33
+ "aria-invalid": u ? !0 : void 0,
34
+ className: "ttw:mt-1 ttw:shrink-0"
35
+ }), /* @__PURE__ */ i("div", {
36
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
37
+ children: [/* @__PURE__ */ r("label", {
38
+ htmlFor: p,
39
+ id: m,
40
+ "data-testid": f?.agreement,
41
+ className: "ttw:text-sm ttw:leading-relaxed ttw:text-foreground",
42
+ children: o
43
+ }), u ? /* @__PURE__ */ r(t, {
44
+ id: h,
45
+ children: u
46
+ }) : null]
47
+ })]
48
+ })]
49
+ });
50
+ }
51
+ export { a as ConsentBlock };
@@ -2,16 +2,18 @@ import { Button as e } from "../../../../../../../packages/shared-ui-shadcn/dist
2
2
  import { StatePanel as t } from "../StatePanel/StatePanel.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  // ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyState/EmptyState.js
5
- function i({ icon: i, title: a, description: o, actionLabel: s, actionIcon: c, onAction: l, className: u, testId: d }) {
5
+ function i({ icon: i, title: a, description: o, actionLabel: s, actionIcon: c, onAction: l, actionDisabled: u, actionTestId: d, className: f, testId: p }) {
6
6
  return /* @__PURE__ */ n(t, {
7
7
  kind: "empty",
8
8
  icon: i,
9
9
  title: a,
10
10
  description: o,
11
- className: u,
12
- testId: d,
11
+ className: f,
12
+ testId: p,
13
13
  action: s && l ? /* @__PURE__ */ r(e, {
14
14
  onClick: l,
15
+ disabled: u,
16
+ "data-testid": d,
15
17
  children: [c, s]
16
18
  }) : void 0
17
19
  });
@@ -3,7 +3,7 @@ import { jsx as e } from "react/jsx-runtime";
3
3
  function t({ children: t, className: n }) {
4
4
  return /* @__PURE__ */ e("div", {
5
5
  role: "alert",
6
- className: "ttw:rounded-md ttw:border ttw:border-destructive/30 ttw:p-3 ttw:text-sm ttw:text-destructive" + (n ? ` ${n}` : ""),
6
+ className: "ttw:rounded-md ttw:border ttw:border-destructive/30 ttw:bg-destructive-subtle ttw:p-3 ttw:text-sm ttw:text-destructive-subtle-foreground" + (n ? ` ${n}` : ""),
7
7
  children: t
8
8
  });
9
9
  }