@redneckz/wildless-cms-uni-blocks 0.14.535 → 0.14.537
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 +13 -8
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
- package/bundle/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/getField.js +1 -1
- package/dist/components/ApplicationForm/getField.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +3 -3
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
- package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +7 -2
- package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
- package/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
- package/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/getField.js +1 -1
- package/lib/components/ApplicationForm/getField.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +3 -3
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
- package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +7 -2
- package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
- package/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
- package/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +10 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
- package/mobile/bundle/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/getField.js +1 -1
- package/mobile/dist/components/ApplicationForm/getField.js.map +1 -1
- package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
- package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +7 -2
- package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
- package/mobile/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
- package/mobile/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/getField.js +1 -1
- package/mobile/lib/components/ApplicationForm/getField.js.map +1 -1
- package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
- package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +7 -2
- package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
- package/mobile/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +1 -0
- package/mobile/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +5 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/mobile/src/components/ApplicationForm/getField.tsx +1 -0
- package/mobile/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +12 -4
- package/mobile/src/ui-kit/ResponseTypeDialog/useResponseTypeDialog.tsx +1 -0
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +5 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +5 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +5 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/src/components/ApplicationForm/getField.tsx +1 -0
- package/src/components/ProductGallery/ProductGallery.tsx +7 -3
- package/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +12 -4
- package/src/ui-kit/ResponseTypeDialog/useResponseTypeDialog.tsx +1 -0
|
@@ -1158,14 +1158,19 @@
|
|
|
1158
1158
|
return (jsxs("div", { onClick: onClick, className: style('relative min-h-full bg-white pt-0 p-lg', className), role: "dialog", children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
|
|
1159
1159
|
});
|
|
1160
1160
|
|
|
1161
|
-
const ResponseTypeDialog = JSX(function ({ responseType }) {
|
|
1161
|
+
const ResponseTypeDialog = JSX(function ({ responseType, typeForm, }) {
|
|
1162
1162
|
const responseOK = responseType === 'OK';
|
|
1163
1163
|
const statusIcon = responseOK ? 'ResponseOKIcon' : 'ResponseFailIcon';
|
|
1164
1164
|
const { close } = useDialogManager();
|
|
1165
1165
|
const handleClose = useCallback(() => {
|
|
1166
1166
|
close();
|
|
1167
1167
|
}, []);
|
|
1168
|
-
|
|
1168
|
+
const responseOKDescription = typeForm === 'ANTIFRAUD'
|
|
1169
|
+
? `Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы
|
|
1170
|
+
можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка
|
|
1171
|
+
не звонят с использованием мессенджеров.`
|
|
1172
|
+
: 'Совсем скоро мы с вами свяжемся';
|
|
1173
|
+
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto ", children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: statusIcon, iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', description: responseOK ? responseOKDescription : 'Пожалуйста, повторите позднее', headlineVersion: "XS", isEmbedded: true }), jsx(Button, { type: "button", onClick: handleClose, children: "\u0425\u043E\u0440\u043E\u0448\u043E" })] }) }));
|
|
1169
1174
|
});
|
|
1170
1175
|
|
|
1171
1176
|
const useResponseTypeDialog = (props) => {
|
|
@@ -1870,7 +1875,7 @@
|
|
|
1870
1875
|
name: (jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), validatorObj.name, required), ...rest })),
|
|
1871
1876
|
middleName: (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') })),
|
|
1872
1877
|
phone: (jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), validatorObj.phone, required) })),
|
|
1873
|
-
email: (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), validatorObj.email, required) })),
|
|
1878
|
+
email: (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), validatorObj.email, required), ...rest })),
|
|
1874
1879
|
fullName: (jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, required), ...rest })),
|
|
1875
1880
|
inn: (jsx(InputControl, { label: "\u0418\u041D\u041D", type: "number", ...getValidation(field('inn'), validatorObj.inn, required) })),
|
|
1876
1881
|
comment: jsx(CommentField, { field: field, input: input }),
|
|
@@ -2001,7 +2006,7 @@
|
|
|
2001
2006
|
const status = (await API.send(formatData, endpoint === 'lead')) ? 'OK' : 'Fail';
|
|
2002
2007
|
setResponseType(status);
|
|
2003
2008
|
if (status) {
|
|
2004
|
-
const responseTypeDialog = useResponseTypeDialog({ responseType: status });
|
|
2009
|
+
const responseTypeDialog = useResponseTypeDialog({ responseType: status, typeForm });
|
|
2005
2010
|
responseTypeDialog.open();
|
|
2006
2011
|
}
|
|
2007
2012
|
if (status === 'OK' && data) {
|
|
@@ -6127,7 +6132,7 @@
|
|
|
6127
6132
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6128
6133
|
});
|
|
6129
6134
|
|
|
6130
|
-
const packageVersion = "0.14.
|
|
6135
|
+
const packageVersion = "0.14.536";
|
|
6131
6136
|
|
|
6132
6137
|
exports.Blocks = Blocks;
|
|
6133
6138
|
exports.ContentPage = ContentPage;
|