@redneckz/wildless-cms-uni-blocks 0.14.583 → 0.14.584

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.
@@ -2425,7 +2425,7 @@
2425
2425
  };
2426
2426
  const hasValidationErrors = useMemo(() => inputs
2427
2427
  ?.filter((_) => _.required)
2428
- ?.some((_) => Boolean(getValidation(field(_?.name), validatorObj[_?.name], _?.required))), [inputs]);
2428
+ ?.some((_) => Boolean(withValidator(field(_?.name), validatorObj[_?.name]).error)), [inputs]);
2429
2429
  return (jsx("div", { className: "w-fit", children: jsx(Foldable, { isFoldButtonOnTop: true, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { isUnfolded: isUnfolded, className: "flex flex-col pl-2xl", children: inputs.map(getField(field, typeForm)) })), renderFoldButton: renderGeneralCheckbox(jsxs("div", { children: [jsx(Checkbox, { value: isChecked, onChange: handleGeneralToggle, text: CONSENT_ALL_DOCS_TEXT }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] })) }) }));
2430
2430
  });
2431
2431
  const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => (jsxs("div", { className: "flex items-start", children: [generalCheckBox, jsx("button", { onClick: foldableData.onToggle, className: "px-m py-2xs", children: jsx(Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
@@ -7185,7 +7185,7 @@
7185
7185
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
7186
7186
  });
7187
7187
 
7188
- const packageVersion = "0.14.582";
7188
+ const packageVersion = "0.14.583";
7189
7189
 
7190
7190
  exports.Blocks = Blocks;
7191
7191
  exports.ContentPage = ContentPage;