@redneckz/wildless-cms-uni-blocks 0.14.582 → 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.
Files changed (42) hide show
  1. package/bundle/bundle.umd.js +5 -3
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  4. package/dist/components/ApplicationLeadForm/GroupedConsents.js +2 -2
  5. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  6. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  7. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  8. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  9. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  10. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  11. package/lib/components/ApplicationLeadForm/GroupedConsents.js +2 -2
  12. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  13. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  14. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  15. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  16. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  17. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  18. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  19. package/mobile/bundle/bundle.umd.js +5 -3
  20. package/mobile/bundle/bundle.umd.min.js +1 -1
  21. package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  22. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +2 -2
  23. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  24. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  25. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  26. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  27. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  28. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  29. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +2 -2
  30. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  31. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -0
  32. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  33. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +1 -0
  34. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  35. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  36. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +2 -2
  37. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +1 -0
  38. package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +3 -0
  39. package/package.json +1 -1
  40. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +2 -2
  41. package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +1 -0
  42. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +3 -0
@@ -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" }) })] }));
@@ -2593,7 +2593,7 @@
2593
2593
  return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-medium", children: text }) }));
2594
2594
  });
2595
2595
 
2596
- const VerifyPhoneDialog = JSX(({ title, phone, description, __html, code = true, codeLength = 4, textButton = '', onClose, }) => {
2596
+ const VerifyPhoneDialog = JSX(({ title, phone, description, __html, code = true, codeLength = 4, textButton = '', onClose, href = '', }) => {
2597
2597
  const { close } = useDialogManager();
2598
2598
  const [values, setValues] = useState(Array(codeLength).fill(''));
2599
2599
  const [hasError, setHasError] = useState(false);
@@ -2613,6 +2613,7 @@
2613
2613
  smsText: values.join(''),
2614
2614
  smsCodesSetName: { key: 'AUTHENTICATION' },
2615
2615
  });
2616
+ globalThis.location.href = href;
2616
2617
  close();
2617
2618
  onClose && onClose();
2618
2619
  }
@@ -2687,6 +2688,7 @@
2687
2688
  </li><li>согласие на обработку персональных данных,
2688
2689
  </li><li>предоставление и подписание прочих согласий Банка,
2689
2690
  </li><li>согласие на запрос в ПФР</li></ul>`,
2691
+ href: '/credit-lead',
2690
2692
  });
2691
2693
 
2692
2694
  const useInitApplicationLead = () => {
@@ -7183,7 +7185,7 @@
7183
7185
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
7184
7186
  });
7185
7187
 
7186
- const packageVersion = "0.14.581";
7188
+ const packageVersion = "0.14.583";
7187
7189
 
7188
7190
  exports.Blocks = Blocks;
7189
7191
  exports.ContentPage = ContentPage;