@redneckz/wildless-cms-uni-blocks 0.14.673 → 0.14.674
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 +11 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.js +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -2
- package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.js +1 -1
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js +2 -2
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/ui-kit/FormField/validators.js +4 -2
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.js +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -2
- package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.js +1 -1
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js +2 -2
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/ui-kit/FormField/validators.js +4 -2
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +11 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -2
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -2
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.js +4 -2
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -2
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -2
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.js +4 -2
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +4 -5
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +1 -1
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -11
- package/mobile/src/components/CreditForm/CreditForm.tsx +1 -1
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +4 -12
- package/mobile/src/ui-kit/FormField/validators.ts +10 -5
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +4 -5
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +1 -1
- package/src/components/CreditCardForm/CreditCardForm.tsx +1 -1
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +3 -11
- package/src/components/CreditForm/CreditForm.tsx +1 -1
- package/src/components/CreditForm/StepsNavigationButtons.tsx +4 -12
- package/src/ui-kit/FormField/validators.ts +10 -5
package/bundle/bundle.umd.js
CHANGED
|
@@ -1429,7 +1429,7 @@
|
|
|
1429
1429
|
const defaultValidator = (errorMsg) => required(errorMsg ?? ERROR_MESSAGE);
|
|
1430
1430
|
const defaultSelectValidator = (errorMsg) => validator((_) => _?.key && _?.key !== '')(errorMsg ?? ERROR_MESSAGE);
|
|
1431
1431
|
const jobNumberValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length > 0 && _.length <= 2)(errorMsg ?? ERROR_MESSAGE);
|
|
1432
|
-
const nameValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length > 1)(errorMsg ?? ERROR_MESSAGE);
|
|
1432
|
+
const nameValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length > 1 && isCyrillic(_))(errorMsg ?? ERROR_MESSAGE);
|
|
1433
1433
|
const lengthStringValidator = (inputLength, errorMsg) => validator((_) => typeof _ === 'string' && _.length >= 1 && _.length <= inputLength)(errorMsg ?? ERROR_MESSAGE);
|
|
1434
1434
|
const serieValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length === 4)(errorMsg);
|
|
1435
1435
|
const numberValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length === 6)(errorMsg);
|
|
@@ -1459,7 +1459,9 @@
|
|
|
1459
1459
|
const addressDaDataValidate = (address) => Boolean(address.region && address.city && address.house);
|
|
1460
1460
|
const addressDaDataValidator = () => validator(addressDaDataValidate)('Укажите регион, город/населенный пункт, улицу, дом, квартиру');
|
|
1461
1461
|
const addressOrganizationValidator = () => validator((address) => Boolean(address.fiasCode && address.city && address.house))('Укажите регион, город/населенный пункт, улицу, дом');
|
|
1462
|
-
const codeWordValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length >= 3 && _.length <= 21 &&
|
|
1462
|
+
const codeWordValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length >= 3 && _.length <= 21 && isCyrillic(_))(errorMsg ?? ERROR_MESSAGE);
|
|
1463
|
+
const cyrillicPattern = /^[\u0400-\u04FF\d]+$/u;
|
|
1464
|
+
const isCyrillic = (_ = '') => cyrillicPattern.test(_);
|
|
1463
1465
|
|
|
1464
1466
|
const validatorObj = {
|
|
1465
1467
|
typeForm: defaultValidator(),
|
|
@@ -6368,7 +6370,8 @@
|
|
|
6368
6370
|
|
|
6369
6371
|
const StepsNavigationButtons$1 = JSX(({ step, onPrevStep }) => {
|
|
6370
6372
|
const isFirstStep = step === 0;
|
|
6371
|
-
|
|
6373
|
+
const isFinalStep = step === 6;
|
|
6374
|
+
return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
6372
6375
|
});
|
|
6373
6376
|
|
|
6374
6377
|
const getFifthStepData$1 = (formData) => {
|
|
@@ -6939,7 +6942,7 @@
|
|
|
6939
6942
|
'Параметры карты',
|
|
6940
6943
|
'Персональные данные',
|
|
6941
6944
|
'Данные о трудоустройстве',
|
|
6942
|
-
'
|
|
6945
|
+
'Семейное положение и доход',
|
|
6943
6946
|
'Дополнительные сведения',
|
|
6944
6947
|
'Выбор способа получения',
|
|
6945
6948
|
];
|
|
@@ -7236,7 +7239,8 @@
|
|
|
7236
7239
|
|
|
7237
7240
|
const StepsNavigationButtons = JSX(({ step, onPrevStep }) => {
|
|
7238
7241
|
const isFirstStep = step === 0;
|
|
7239
|
-
|
|
7242
|
+
const isFinalStep = step === 5;
|
|
7243
|
+
return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
7240
7244
|
});
|
|
7241
7245
|
|
|
7242
7246
|
const getFifthStepData = (formData) => {
|
|
@@ -7724,7 +7728,7 @@
|
|
|
7724
7728
|
'',
|
|
7725
7729
|
'Персональные данные',
|
|
7726
7730
|
'Данные о трудоустройстве',
|
|
7727
|
-
'
|
|
7731
|
+
'Семейное положение и доход',
|
|
7728
7732
|
'Дополнительные сведения',
|
|
7729
7733
|
'Отделение Банка',
|
|
7730
7734
|
];
|
|
@@ -10021,7 +10025,7 @@
|
|
|
10021
10025
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10022
10026
|
});
|
|
10023
10027
|
|
|
10024
|
-
const packageVersion = "0.14.
|
|
10028
|
+
const packageVersion = "0.14.673";
|
|
10025
10029
|
|
|
10026
10030
|
exports.Blocks = Blocks;
|
|
10027
10031
|
exports.ContentPage = ContentPage;
|