@tesouro/embedded-components-react 0.11.114 → 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 (52) hide show
  1. package/dist/index.css +81 -125
  2. package/dist/index.d.ts +11 -2
  3. package/dist/lib/AcceptDisclosuresWidget.d.ts +4 -0
  4. package/dist/lib/ReceivablesWidget.d.ts +7 -2
  5. package/dist/lib/WidgetSuite.d.ts +7 -2
  6. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +91 -88
  7. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +41 -59
  8. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js +2 -0
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +7 -5
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +163 -160
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +18 -18
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +25 -25
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +34 -31
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +3 -2
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +21 -18
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -0
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +382 -275
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +37 -42
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +56 -50
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +32 -69
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +3 -3
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +14 -25
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +36 -39
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +120 -116
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +14 -26
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +41 -44
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +96 -115
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +14 -14
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +35 -57
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +37 -60
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +28 -42
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +266 -259
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +51 -55
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +42 -48
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +69 -70
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +85 -50
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +7 -2
  43. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +3 -2
  45. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +51 -0
  46. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyState/EmptyState.js +5 -3
  47. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +84 -87
  49. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellScrollRegion.js +1 -1
  50. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +35 -21
  51. package/dist/packages/shared-ui-shadcn/dist/index.js +38 -101
  52. 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,