@redneckz/wildless-cms-uni-blocks 0.14.239 → 0.14.240
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 +5 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/validators.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/ApplicationForm/validators.d.ts +1 -1
- package/dist/components/ApplicationForm/validators.js +2 -2
- package/dist/components/ApplicationForm/validators.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js +2 -2
- package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/ApplicationForm/validators.d.ts +1 -1
- package/lib/components/ApplicationForm/validators.js +1 -1
- package/lib/components/ApplicationForm/validators.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js +2 -2
- package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +5 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/validators.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/validators.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/validators.js +2 -2
- package/mobile/dist/components/ApplicationForm/validators.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +2 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -2
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/validators.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/validators.js +1 -1
- package/mobile/lib/components/ApplicationForm/validators.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +2 -2
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +2 -2
- package/mobile/src/components/ApplicationForm/validators.ts +3 -1
- package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +2 -2
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +2 -2
- package/src/components/ApplicationForm/renderAgreementSubmit.tsx +2 -2
- package/src/components/ApplicationForm/validators.ts +3 -1
- package/src/components/ApplicationFormCustom/getObjectValidator.tsx +2 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -1337,7 +1337,7 @@
|
|
|
1337
1337
|
const nameValidator = validator((_) => typeof _ === 'string' && _.length > 1)(ERROR_MESSAGE);
|
|
1338
1338
|
const innValidator = validator((_) => typeof _ === 'string' && (_.length === 10 || _.length === 12))(ERROR_MESSAGE);
|
|
1339
1339
|
const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
|
|
1340
|
-
const
|
|
1340
|
+
const agreementValidator = validator((_) => typeof _ === 'boolean' && _)('Согласие обязательно');
|
|
1341
1341
|
|
|
1342
1342
|
const getNamesFromInput = (inputs) => Object.values(inputs.filter((_) => _))?.map((_) => _.name);
|
|
1343
1343
|
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
comment: defaultValidator,
|
|
1358
1358
|
acquiringType: defaultSelectValidator,
|
|
1359
1359
|
serviceType: defaultSelectValidator,
|
|
1360
|
-
consentDataProcessing:
|
|
1360
|
+
consentDataProcessing: agreementValidator,
|
|
1361
1361
|
annualRevenue: defaultValidator,
|
|
1362
1362
|
};
|
|
1363
1363
|
const getObjectValidator = (inputs) => {
|
|
@@ -1483,7 +1483,7 @@
|
|
|
1483
1483
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
1484
1484
|
|
|
1485
1485
|
const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
|
|
1486
|
-
const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing,
|
|
1486
|
+
const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: agreementText, link: link })), renderSubmitButton(button)] }));
|
|
1487
1487
|
|
|
1488
1488
|
const initialFormState$1 = {
|
|
1489
1489
|
surname: '',
|
|
@@ -1507,7 +1507,7 @@
|
|
|
1507
1507
|
phone: phoneValidator,
|
|
1508
1508
|
email: defaultValidator,
|
|
1509
1509
|
comment: defaultValidator,
|
|
1510
|
-
consentDataProcessing:
|
|
1510
|
+
consentDataProcessing: agreementValidator,
|
|
1511
1511
|
};
|
|
1512
1512
|
const ApplicationFormFeedback = JSX(({ button, link, onSubmit }) => {
|
|
1513
1513
|
const handleSubmit = useCallback((feedbackFormState) => {
|
|
@@ -6035,7 +6035,7 @@
|
|
|
6035
6035
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6036
6036
|
});
|
|
6037
6037
|
|
|
6038
|
-
const packageVersion = "0.14.
|
|
6038
|
+
const packageVersion = "0.14.239";
|
|
6039
6039
|
|
|
6040
6040
|
exports.Blocks = Blocks;
|
|
6041
6041
|
exports.ContentPage = ContentPage;
|