@lessly/ui 0.24.0 → 0.25.0
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.
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1591,8 +1591,9 @@ interface OrganizationOnboardingDefaults {
|
|
|
1591
1591
|
beneficial_owners?: BeneficialOwnerPayload[];
|
|
1592
1592
|
}
|
|
1593
1593
|
interface OrganizationOnboardingFormProps {
|
|
1594
|
-
/** Makes the country of incorporation
|
|
1595
|
-
*
|
|
1594
|
+
/** Makes the country of incorporation mandatory. Mirrors the server-side requirement the
|
|
1595
|
+
* consumer is configured for. The ownership confirmation is required whenever it is shown,
|
|
1596
|
+
* independently of this flag. */
|
|
1596
1597
|
requireSanctionsFields: boolean;
|
|
1597
1598
|
onSubmit: (payload: OrganizationOnboardingPayload) => void;
|
|
1598
1599
|
defaultValues?: OrganizationOnboardingDefaults;
|
package/dist/index.js
CHANGED
|
@@ -5612,7 +5612,7 @@ function OrganizationOnboardingForm({
|
|
|
5612
5612
|
);
|
|
5613
5613
|
const needsOwnershipConfirmation = !hasController;
|
|
5614
5614
|
const missingCountry = requireSanctionsFields && countryOfIncorporation === "";
|
|
5615
|
-
const missingConfirmation =
|
|
5615
|
+
const missingConfirmation = needsOwnershipConfirmation && !ownershipConfirmed;
|
|
5616
5616
|
const canSubmit = trimmed !== "" && ownersValid && !missingCountry && !missingConfirmation && !submitting;
|
|
5617
5617
|
const addOwner = () => {
|
|
5618
5618
|
if (owners.length >= MAX_BENEFICIAL_OWNERS) return;
|
|
@@ -5831,7 +5831,7 @@ function OrganizationOnboardingForm({
|
|
|
5831
5831
|
className: "text-xs font-normal leading-snug",
|
|
5832
5832
|
children: [
|
|
5833
5833
|
"I confirm the ownership structure above is complete and correct",
|
|
5834
|
-
|
|
5834
|
+
/* @__PURE__ */ jsx83("span", { className: "text-text-danger", children: " *" })
|
|
5835
5835
|
]
|
|
5836
5836
|
}
|
|
5837
5837
|
)
|