@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.
- package/bundle/bundle.umd.js +9 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +6 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +6 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +9 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
- package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
- package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
- package/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
- package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
package/bundle/bundle.umd.js
CHANGED
|
@@ -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
|
|
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(
|
|
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.
|
|
11533
|
+
const packageVersion = "0.14.885";
|
|
11528
11534
|
|
|
11529
11535
|
exports.Blocks = Blocks;
|
|
11530
11536
|
exports.ContentPage = ContentPage;
|