@tesouro/embedded-components-react 0.5.271 → 0.5.272

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 (51) hide show
  1. package/dist/index.css +17 -0
  2. package/dist/index.d.ts +19 -0
  3. package/dist/index.js +4 -4
  4. package/dist/lib/BankAccountOnboardingWidget.d.ts +19 -0
  5. package/dist/lib/BankAccountOnboardingWidget.js +4 -4
  6. package/dist/lib/WidgetSuite.d.ts +19 -0
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +94 -73
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +7 -7
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +71 -57
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +61 -46
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +22 -24
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +28 -32
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldErrors.js +40 -0
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +26 -21
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +18 -18
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +6 -58
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +57 -31
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +31 -38
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +27 -26
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +34 -91
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +96 -12
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +14 -2
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +0 -2
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +4 -185
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +269 -25
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +28 -21
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +21 -68
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +59 -225
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +338 -26
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +29 -26
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -74
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +71 -82
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +85 -8
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +8 -57
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +57 -9
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +34 -261
  41. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +9 -62
  42. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +64 -0
  43. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +331 -2
  44. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +2 -48
  45. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +53 -139
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +146 -50
  47. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +50 -28
  48. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +35 -6
  49. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  50. package/dist/packages/shared-ui-shadcn/dist/index.js +14 -9
  51. package/package.json +1 -1
@@ -1,53 +1,149 @@
1
- import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index4.js";
1
+ import { Alert as e, AlertDescription as t, Button as n, Table as r, TableBody as i, TableCell as a, TableHead as o, TableHeader as s, TableRow as c, cn as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ADDITIONAL_OWNERS_LABELS_EN as u } from "./index6.js";
3
+ import { AdditionalOwnerDeleteOverlay as d } from "./index2.js";
4
+ import { FieldError as f, fieldErrorAria as p } from "./index3.js";
5
+ import { AdditionalOwnerFormOverlay as m } from "./index4.js";
6
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
7
+ import { PencilIcon as _, PlusIcon as v, Trash2Icon as y } from "lucide-react";
2
8
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js
3
- function t(e, t) {
4
- return e.replaceAll("{bankName}", t);
9
+ function b({ ownerRows: b, primaryOwnerName: x, primaryOwnerShareDisplay: S, showPrimaryOwner: C = !0, totalOwnershipError: w, addOwnerDisabled: T, onAddOwner: E, onEditOwner: D, onDeleteOwnerRequest: O, deletingOwnerName: k, onDeleteOwnerConfirm: A, onDeleteOwnerCancel: j, editingOverlay: M, isSubmitting: N, labels: P, testIds: F }) {
10
+ let I = {
11
+ ...u,
12
+ ...P
13
+ }, L = M !== null || k !== null;
14
+ return /* @__PURE__ */ g("div", {
15
+ className: "ttw:relative ttw:flex ttw:flex-col ttw:gap-6",
16
+ children: [
17
+ /* @__PURE__ */ g("div", {
18
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
19
+ children: [/* @__PURE__ */ h("div", {
20
+ className: "ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-border",
21
+ children: /* @__PURE__ */ g(r, { children: [/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, {
22
+ className: "ttw:border-border ttw:bg-muted ttw:hover:bg-muted",
23
+ children: [
24
+ /* @__PURE__ */ h(o, {
25
+ className: "ttw:px-4 ttw:py-3",
26
+ children: I.ownerNameColumn
27
+ }),
28
+ /* @__PURE__ */ h(o, {
29
+ className: "ttw:px-4 ttw:py-3",
30
+ children: I.ownerShareColumn
31
+ }),
32
+ /* @__PURE__ */ h(o, {
33
+ className: "ttw:px-4 ttw:py-3 ttw:text-right",
34
+ children: I.ownerActionsColumn
35
+ })
36
+ ]
37
+ }) }), /* @__PURE__ */ g(i, { children: [
38
+ C ? /* @__PURE__ */ g(c, {
39
+ className: "ttw:hover:bg-transparent",
40
+ children: [
41
+ /* @__PURE__ */ h(a, {
42
+ className: "ttw:px-4",
43
+ children: x
44
+ }),
45
+ /* @__PURE__ */ h(a, {
46
+ className: "ttw:px-4",
47
+ children: S
48
+ }),
49
+ /* @__PURE__ */ h(a, { className: "ttw:px-4" })
50
+ ]
51
+ }) : null,
52
+ b.map((e, t) => {
53
+ let r = `additional-owner-${t}`;
54
+ return /* @__PURE__ */ g(c, {
55
+ className: l(e.error ? "ttw:bg-destructive/5 ttw:hover:bg-destructive/5" : "ttw:hover:bg-transparent"),
56
+ children: [
57
+ /* @__PURE__ */ g(a, {
58
+ className: "ttw:px-4 ttw:whitespace-normal",
59
+ children: [e.name, /* @__PURE__ */ h(f, {
60
+ fieldId: r,
61
+ error: e.error
62
+ })]
63
+ }),
64
+ /* @__PURE__ */ h(a, {
65
+ className: l("ttw:px-4", e.error && "ttw:text-destructive"),
66
+ children: e.shareDisplay
67
+ }),
68
+ /* @__PURE__ */ h(a, {
69
+ className: "ttw:px-4 ttw:text-right",
70
+ children: /* @__PURE__ */ g("div", {
71
+ className: "ttw:flex ttw:justify-end ttw:gap-2",
72
+ children: [/* @__PURE__ */ h(n, {
73
+ type: "button",
74
+ variant: "ghost",
75
+ size: "icon-sm",
76
+ "aria-label": I.edit,
77
+ "aria-describedby": p(r, e.error)["aria-describedby"],
78
+ onClick: () => D(t),
79
+ disabled: N || L,
80
+ children: /* @__PURE__ */ h(_, { className: "ttw:size-4" })
81
+ }), /* @__PURE__ */ h(n, {
82
+ type: "button",
83
+ variant: "ghost",
84
+ size: "icon-sm",
85
+ "aria-label": I.remove,
86
+ onClick: () => O(t),
87
+ disabled: N || L,
88
+ children: /* @__PURE__ */ h(y, { className: "ttw:size-4" })
89
+ })]
90
+ })
91
+ })
92
+ ]
93
+ }, t);
94
+ }),
95
+ !C && b.length === 0 ? /* @__PURE__ */ h(c, {
96
+ className: "ttw:hover:bg-transparent",
97
+ children: /* @__PURE__ */ h(a, {
98
+ colSpan: 3,
99
+ className: "ttw:px-4 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
100
+ children: I.emptyOwnersText
101
+ })
102
+ }) : null
103
+ ] })] })
104
+ }), L ? null : /* @__PURE__ */ g(n, {
105
+ type: "button",
106
+ variant: "ghost",
107
+ onClick: E,
108
+ disabled: T || N,
109
+ "data-testid": F?.addOwnerButton,
110
+ className: "ttw:h-auto ttw:w-fit ttw:justify-start ttw:gap-1.5 ttw:px-0 ttw:has-[>svg]:px-0 ttw:pl-4 ttw:font-normal ttw:text-primary ttw:hover:bg-transparent ttw:hover:text-primary/90",
111
+ children: [/* @__PURE__ */ h(v, { className: "ttw:size-4" }), I.addOwner]
112
+ })]
113
+ }),
114
+ w ? /* @__PURE__ */ h(e, {
115
+ variant: "destructive",
116
+ children: /* @__PURE__ */ h(t, { children: w })
117
+ }) : null,
118
+ M ? /* @__PURE__ */ h(m, {
119
+ fields: M.fields,
120
+ display: M.display,
121
+ isExisting: M.isExisting,
122
+ isValid: M.isValid,
123
+ isDisabled: N,
124
+ labels: I,
125
+ onCancel: M.onCancel,
126
+ onSubmit: M.onSubmit,
127
+ onClose: M.onCancel,
128
+ ssnRevealed: M.ssnRevealed,
129
+ ssnToggleAriaLabel: M.ssnToggleAriaLabel,
130
+ onToggleSsnVisibility: M.onToggleSsnVisibility,
131
+ testIds: { overlay: F?.overlay }
132
+ }) : null,
133
+ k ? /* @__PURE__ */ h(d, {
134
+ ownerName: k,
135
+ labels: I,
136
+ isDisabled: N,
137
+ onCancel: j,
138
+ onConfirm: A,
139
+ onClose: j,
140
+ testIds: {
141
+ ...F?.deleteOverlay,
142
+ overlay: F?.overlay
143
+ }
144
+ }) : null
145
+ ]
146
+ });
5
147
  }
6
- var n = {
7
- heading: "Tell us about your business",
8
- subheading: "Provide your business details to get started.",
9
- companyLegalName: "Legal company name",
10
- companyDbaName: "Doing business as (optional)",
11
- businessAddress: "Business address",
12
- city: "City",
13
- state: "State",
14
- statePlaceholder: "Select state",
15
- zipCode: "Postal code",
16
- companyPhoneNumber: "Company phone number",
17
- companyPhoneNumberInvalid: "Phone must be 10 digits",
18
- companyStructure: "Company structure",
19
- companyStructurePlaceholder: "Select structure",
20
- website: "Website (optional)",
21
- websiteInvalid: "Enter a valid website URL (no spaces).",
22
- taxId: "Tax ID (EIN)",
23
- taxIdInvalid: "Tax ID must be 9 digits",
24
- taxIdOnFileTemplate: e,
25
- naicsCode: "Industry (NAICS code)",
26
- naicsCodePlaceholder: "Search by code or industry",
27
- isAuthorizedQuestion: "I am legally authorized to view and manage financial accounts for my company.",
28
- isAuthorizedYes: "Yes",
29
- isAuthorizedNo: "No",
30
- acceptDisclosuresPrefix: "I agree to {bankName}'s ",
31
- termsOfUse: "Terms of Use",
32
- privacyPolicy: "Privacy Policy",
33
- acceptDisclosuresTermsPrivacyJoin: " and ",
34
- acceptDisclosuresAfterPrivacy: ", and to receive electronic communication about my accounts and services per {bankName}'s ",
35
- electronicCommunication: "Electronic Communications Agreement",
36
- acceptDisclosuresAfterElectronic: ", and acknowledge receipt of {bankName}'s ",
37
- patriotAct: "USA PATRIOT Act disclosure.",
38
- companyStructureOptions: {
39
- CORPORATION_PUBLIC: "Public corporation",
40
- CORPORATION_PRIVATE: "Private corporation",
41
- CORPORATION_NOT_FOR_PROFIT: "Not-for-profit corporation",
42
- LLC: "Limited liability company (LLC)",
43
- LLP: "Limited liability partnership (LLP)",
44
- PARTNERSHIP: "Partnership",
45
- SOLE_PROPRIETORSHIP: "Sole proprietorship",
46
- GOVERNMENT: "Government",
47
- COOPERATIVE: "Cooperative",
48
- ASSOCIATION: "Association",
49
- OTHER: "Other"
50
- }
51
- };
52
148
  //#endregion
53
- export { n as BUSINESS_DETAILS_LABELS_EN, t as interpolateBankName };
149
+ export { b as AdditionalOwnersForm };
@@ -1,34 +1,56 @@
1
- import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index4.js";
1
+ import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index5.js";
2
2
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js
3
- var t = {
4
- heading: "Tell us about yourself",
5
- subheading: "We need this information to verify your identity.",
6
- firstName: "First name",
7
- lastName: "Last name",
8
- dateOfBirth: "Date of birth",
9
- dateOfBirthPlaceholder: "Pick a date",
10
- dateOfBirthMinAgeError: "Must be at least 18 years old",
11
- ssn: "SSN",
12
- ssnOnFileTemplate: e,
13
- ssnInvalid: "SSN must be 9 digits",
14
- ssnShow: "Show",
15
- ssnHide: "Hide",
16
- homeAddress: "Home address",
3
+ function t(e, t) {
4
+ return e.replaceAll("{bankName}", t);
5
+ }
6
+ var n = {
7
+ heading: "Tell us about your business",
8
+ subheading: "Provide your business details to get started.",
9
+ companyLegalName: "Legal company name",
10
+ companyDbaName: "Doing business as (optional)",
11
+ businessAddress: "Business address",
17
12
  city: "City",
18
13
  state: "State",
19
14
  statePlaceholder: "Select state",
20
- zipCode: "ZIP code",
21
- mobilePhoneNumber: "Mobile phone number",
22
- mobilePhoneNumberInvalid: "Phone must be 10 digits",
23
- workEmail: "Work email",
24
- ownsOver25Question: "Do you own 25% or more of the business?",
25
- ownsOver25SummaryLabel: "Owns 25% or more of the business",
26
- ownsOver25Yes: "Yes",
27
- ownsOver25No: "No",
28
- ownershipPercentage: "Ownership share (minimum 25%)",
29
- ownershipPercentagePlaceholder: "e.g., 25",
30
- ownershipPercentageRangeError: "Ownership share must be between 25 and 100 when you own 25% or more",
31
- percentSuffix: "%"
15
+ zipCode: "Postal code",
16
+ zipCodeInvalid: "Postal code must be 5 digits",
17
+ companyPhoneNumber: "Company phone number",
18
+ companyPhoneNumberInvalid: "Phone must be 10 digits",
19
+ requiredFieldError: "This field is required",
20
+ invalidFieldError: "Enter a valid value",
21
+ companyStructure: "Company structure",
22
+ companyStructurePlaceholder: "Select structure",
23
+ website: "Website (optional)",
24
+ websiteInvalid: "Enter a valid website URL (no spaces).",
25
+ taxId: "Tax ID (EIN)",
26
+ taxIdInvalid: "Tax ID must be 9 digits",
27
+ taxIdOnFileTemplate: e,
28
+ naicsCode: "Industry (NAICS code)",
29
+ naicsCodePlaceholder: "Search by code or industry",
30
+ isAuthorizedQuestion: "I am legally authorized to view and manage financial accounts for my company.",
31
+ isAuthorizedYes: "Yes",
32
+ isAuthorizedNo: "No",
33
+ acceptDisclosuresPrefix: "I agree to {bankName}'s ",
34
+ termsOfUse: "Terms of Use",
35
+ privacyPolicy: "Privacy Policy",
36
+ acceptDisclosuresTermsPrivacyJoin: " and ",
37
+ acceptDisclosuresAfterPrivacy: ", and to receive electronic communication about my accounts and services per {bankName}'s ",
38
+ electronicCommunication: "Electronic Communications Agreement",
39
+ acceptDisclosuresAfterElectronic: ", and acknowledge receipt of {bankName}'s ",
40
+ patriotAct: "USA PATRIOT Act disclosure.",
41
+ companyStructureOptions: {
42
+ CORPORATION_PUBLIC: "Public corporation",
43
+ CORPORATION_PRIVATE: "Private corporation",
44
+ CORPORATION_NOT_FOR_PROFIT: "Not-for-profit corporation",
45
+ LLC: "Limited liability company (LLC)",
46
+ LLP: "Limited liability partnership (LLP)",
47
+ PARTNERSHIP: "Partnership",
48
+ SOLE_PROPRIETORSHIP: "Sole proprietorship",
49
+ GOVERNMENT: "Government",
50
+ COOPERATIVE: "Cooperative",
51
+ ASSOCIATION: "Association",
52
+ OTHER: "Other"
53
+ }
32
54
  };
33
55
  //#endregion
34
- export { t as PERSONAL_DETAILS_LABELS_EN };
56
+ export { n as BUSINESS_DETAILS_LABELS_EN, t as interpolateBankName };
@@ -1,9 +1,38 @@
1
+ import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index5.js";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js
2
- var e = {
3
- title: "Business bank account application",
4
- bankDisclosure: "",
5
- chipLabel: "Application status",
6
- body: []
3
+ var t = {
4
+ heading: "Tell us about yourself",
5
+ subheading: "We need this information to verify your identity.",
6
+ firstName: "First name",
7
+ lastName: "Last name",
8
+ dateOfBirth: "Date of birth",
9
+ dateOfBirthPlaceholder: "Pick a date",
10
+ dateOfBirthMinAgeError: "Must be at least 18 years old",
11
+ ssn: "SSN",
12
+ ssnOnFileTemplate: e,
13
+ ssnInvalid: "SSN must be 9 digits",
14
+ ssnShow: "Show",
15
+ ssnHide: "Hide",
16
+ homeAddress: "Home address",
17
+ city: "City",
18
+ state: "State",
19
+ statePlaceholder: "Select state",
20
+ zipCode: "ZIP code",
21
+ zipCodeInvalid: "ZIP code must be 5 digits",
22
+ mobilePhoneNumber: "Mobile phone number",
23
+ mobilePhoneNumberInvalid: "Phone must be 10 digits",
24
+ workEmail: "Work email",
25
+ workEmailInvalid: "Enter a valid email address",
26
+ requiredFieldError: "This field is required",
27
+ invalidFieldError: "Enter a valid value",
28
+ ownsOver25Question: "Do you own 25% or more of the business?",
29
+ ownsOver25SummaryLabel: "Owns 25% or more of the business",
30
+ ownsOver25Yes: "Yes",
31
+ ownsOver25No: "No",
32
+ ownershipPercentage: "Ownership share (minimum 25%)",
33
+ ownershipPercentagePlaceholder: "e.g., 25",
34
+ ownershipPercentageRangeError: "Ownership share must be between 25 and 100 when you own 25% or more",
35
+ percentSuffix: "%"
7
36
  };
8
37
  //#endregion
9
- export { e as APPLICATION_STATUS_CARD_LABELS_EN };
38
+ export { t as PERSONAL_DETAILS_LABELS_EN };
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.271", n = "8dab6570778b10180c6641788625a690f8f812c8", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.272", n = "c1e69b814a382984a9965cc7e9e41c4981ddc19b", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -8857,7 +8857,7 @@ function fy({ items: t, value: n, onValueChange: r, inputId: i, required: a, inv
8857
8857
  className: J("ttw:relative ttw:w-full", y),
8858
8858
  ...b,
8859
8859
  children: [/* @__PURE__ */ v("div", {
8860
- className: J("ttw:flex ttw:min-h-9 ttw:w-full ttw:flex-wrap ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-2.5 ttw:py-1.5 ttw:text-sm ttw:shadow-xs", l ? "ttw:cursor-not-allowed ttw:opacity-60" : "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50"),
8860
+ className: J("ttw:flex ttw:min-h-9 ttw:w-full ttw:flex-wrap ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-2.5 ttw:py-1.5 ttw:text-sm ttw:shadow-xs", l ? "ttw:cursor-not-allowed ttw:opacity-60" : "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50", o && "ttw:border-destructive ttw:focus-within:border-destructive ttw:focus-within:ring-destructive/20"),
8861
8861
  onClick: () => {
8862
8862
  l || (T || A(""), E(!0), C.current?.focus());
8863
8863
  },
@@ -9643,7 +9643,7 @@ function yb({ className: e, ...t }) {
9643
9643
  function bb({ className: e, ...t }) {
9644
9644
  return /* @__PURE__ */ _("input", {
9645
9645
  "data-slot": "input-group-input",
9646
- className: J("ttw:peer/input ttw:data-[has-start-addon]:ps-9 ttw:data-[has-end-addon]:pe-9", "ttw:placeholder:text-muted-foreground ttw:flex ttw:h-9 ttw:w-full ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-3 ttw:py-1 ttw:text-base ttw:shadow-xs", "ttw:transition-[color,box-shadow] ttw:outline-none", "ttw:disabled:pointer-events-none ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", "ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50", "ttw:md:text-sm", e),
9646
+ className: J("ttw:peer/input ttw:data-[has-start-addon]:ps-9 ttw:data-[has-end-addon]:pe-9", "ttw:placeholder:text-muted-foreground ttw:flex ttw:h-9 ttw:w-full ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-3 ttw:py-1 ttw:text-base ttw:shadow-xs", "ttw:transition-[color,box-shadow] ttw:outline-none", "ttw:disabled:pointer-events-none ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", "ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50", "ttw:aria-invalid:border-destructive ttw:aria-invalid:ring-destructive/20", "ttw:md:text-sm", e),
9647
9647
  ...t
9648
9648
  });
9649
9649
  }
@@ -16621,8 +16621,10 @@ function Nj(e) {
16621
16621
  function Pj(e) {
16622
16622
  return e == null ? [] : Array.isArray(e) ? e : [e];
16623
16623
  }
16624
- function Fj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i, minDate: a, maxDate: o, defaultMonth: s, disabledDates: c, className: l, id: u, "aria-invalid": d, "aria-describedby": f, container: p }) {
16625
- let [m, h] = e.useState(!1), g = e.useMemo(() => {
16624
+ function Fj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i, minDate: a, maxDate: o, defaultMonth: s, disabledDates: c, className: l, id: u, "aria-invalid": d, "aria-describedby": f, onBlur: p, container: m }) {
16625
+ let [h, g] = e.useState(!1), y = (e) => {
16626
+ g(e), e || p?.();
16627
+ }, b = e.useMemo(() => {
16626
16628
  let e = [
16627
16629
  ...a ? [{ before: a }] : [],
16628
16630
  ...o ? [{ after: o }] : [],
@@ -16635,8 +16637,8 @@ function Fj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i
16635
16637
  c
16636
16638
  ]);
16637
16639
  return /* @__PURE__ */ v(ZC, {
16638
- open: m,
16639
- onOpenChange: h,
16640
+ open: h,
16641
+ onOpenChange: y,
16640
16642
  children: [/* @__PURE__ */ _(QC, {
16641
16643
  asChild: !0,
16642
16644
  children: /* @__PURE__ */ v(Tv, {
@@ -16646,21 +16648,24 @@ function Fj({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i
16646
16648
  disabled: i,
16647
16649
  "aria-invalid": d,
16648
16650
  "aria-describedby": f,
16651
+ onBlur: () => {
16652
+ h || p?.();
16653
+ },
16649
16654
  className: J("ttw:w-full ttw:justify-start ttw:text-left ttw:font-normal", !t && "ttw:text-muted-foreground", l),
16650
16655
  children: [/* @__PURE__ */ _(I, { className: "ttw:mr-2 ttw:size-4" }), t ? Nj(t) : r]
16651
16656
  })
16652
16657
  }), /* @__PURE__ */ _($C, {
16653
16658
  className: "ttw:w-auto ttw:p-0",
16654
16659
  align: "start",
16655
- container: p,
16660
+ container: m,
16656
16661
  children: /* @__PURE__ */ _(hO, {
16657
16662
  mode: "single",
16658
16663
  selected: t,
16659
16664
  onSelect: (e) => {
16660
- n(e), h(!1);
16665
+ n(e), y(!1);
16661
16666
  },
16662
16667
  captionLayout: "dropdown",
16663
- disabled: g,
16668
+ disabled: b,
16664
16669
  startMonth: a,
16665
16670
  endMonth: o,
16666
16671
  defaultMonth: t ?? s ?? o ?? a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.271",
3
+ "version": "0.5.272",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {