@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 CHANGED
@@ -1591,8 +1591,9 @@ interface OrganizationOnboardingDefaults {
1591
1591
  beneficial_owners?: BeneficialOwnerPayload[];
1592
1592
  }
1593
1593
  interface OrganizationOnboardingFormProps {
1594
- /** Makes the country of incorporation and the ownership confirmation, where it is shown —
1595
- * mandatory. Mirrors the server-side requirement the consumer is configured for. */
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 = requireSanctionsFields && needsOwnershipConfirmation && !ownershipConfirmed;
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
- requireSanctionsFields && /* @__PURE__ */ jsx83("span", { className: "text-text-danger", children: " *" })
5834
+ /* @__PURE__ */ jsx83("span", { className: "text-text-danger", children: " *" })
5835
5835
  ]
5836
5836
  }
5837
5837
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lessly/ui",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "Lessly design system — shared UI primitives, tokens, and theme",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.30.3",