@redneckz/wildless-cms-uni-blocks 0.14.885 → 0.14.886

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/bundle/bundle.umd.js +9 -3
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  4. package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  5. package/dist/components/ApplicationForm/ApplicationForm.js +6 -1
  6. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  7. package/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  8. package/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
  9. package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  10. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  11. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
  12. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
  13. package/lib/components/ApplicationForm/ApplicationForm.js +6 -1
  14. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  15. package/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  16. package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
  17. package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  18. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  19. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
  20. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
  21. package/mobile/bundle/bundle.umd.js +9 -3
  22. package/mobile/bundle/bundle.umd.min.js +1 -1
  23. package/mobile/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  24. package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  25. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -1
  26. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  27. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  28. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
  29. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  30. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  31. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
  32. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
  33. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -1
  34. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  35. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  36. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
  37. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  38. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  39. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
  40. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
  41. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
  42. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
  43. package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
  44. package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
  45. package/package.json +1 -1
  46. package/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
  47. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +1 -1
  48. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
  49. package/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
  50. package/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
  51. package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
@@ -2570,7 +2570,8 @@
2570
2570
  const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(Link, { ...link, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: link.text })) : null] })));
2571
2571
 
2572
2572
  const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
2573
- const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: agreementText, link: link })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
2573
+ const agreementTextPF = 'Нажимая на кнопку, вы подтверждаете, что клиент дал согласие на ';
2574
+ const renderAgreementSubmit = ({ consentDataProcessing, link, button, typeForm, }) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: typeForm === 'PF' ? agreementTextPF : agreementText, link: link })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
2574
2575
 
2575
2576
  const renderContacts = () => (jsxs("div", { className: "space-y-m", children: [jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), jsxs("div", { className: "flex sm:justify-center gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "\u0442\u0435\u043B\u0435\u0444\u043E\u043D 8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "\u043F\u043E\u0447\u0442\u0430 ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] })] }));
2576
2577
 
@@ -2595,7 +2596,12 @@
2595
2596
  onSubmit: handleSubmit,
2596
2597
  });
2597
2598
  const fieldName = getConsentDataProcessing(inputs)?.name;
2598
- return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), renderAgreementSubmit(fieldName ? field('consentDataProcessing') : undefined, link, button)] }), isContacts ? renderContacts() : null] }));
2599
+ return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), renderAgreementSubmit({
2600
+ consentDataProcessing: fieldName ? field('consentDataProcessing') : undefined,
2601
+ link,
2602
+ button,
2603
+ typeForm,
2604
+ })] }), isContacts ? renderContacts() : null] }));
2599
2605
  });
2600
2606
  const renderSections = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
2601
2607
 
@@ -11524,7 +11530,7 @@
11524
11530
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11525
11531
  });
11526
11532
 
11527
- const packageVersion = "0.14.884";
11533
+ const packageVersion = "0.14.885";
11528
11534
 
11529
11535
  exports.Blocks = Blocks;
11530
11536
  exports.ContentPage = ContentPage;