@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -1150,14 +1150,19 @@
|
|
|
1150
1150
|
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 })] }));
|
|
1151
1151
|
});
|
|
1152
1152
|
|
|
1153
|
-
const ResponseTypeDialog = JSX(function ({ responseType }) {
|
|
1153
|
+
const ResponseTypeDialog = JSX(function ({ responseType, typeForm, }) {
|
|
1154
1154
|
const responseOK = responseType === 'OK';
|
|
1155
1155
|
const statusIcon = responseOK ? 'ResponseOKIcon' : 'ResponseFailIcon';
|
|
1156
1156
|
const { close } = useDialogManager();
|
|
1157
1157
|
const handleClose = useCallback(() => {
|
|
1158
1158
|
close();
|
|
1159
1159
|
}, []);
|
|
1160
|
-
|
|
1160
|
+
const responseOKDescription = typeForm === 'ANTIFRAUD'
|
|
1161
|
+
? `Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы
|
|
1162
|
+
можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка
|
|
1163
|
+
не звонят с использованием мессенджеров.`
|
|
1164
|
+
: 'Совсем скоро мы с вами свяжемся';
|
|
1165
|
+
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" })] }) }));
|
|
1161
1166
|
});
|
|
1162
1167
|
|
|
1163
1168
|
const useResponseTypeDialog = (props) => {
|
|
@@ -1862,7 +1867,7 @@
|
|
|
1862
1867
|
name: (jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), validatorObj.name, required), ...rest })),
|
|
1863
1868
|
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') })),
|
|
1864
1869
|
phone: (jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), validatorObj.phone, required) })),
|
|
1865
|
-
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) })),
|
|
1870
|
+
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 })),
|
|
1866
1871
|
fullName: (jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, required), ...rest })),
|
|
1867
1872
|
inn: (jsx(InputControl, { label: "\u0418\u041D\u041D", type: "number", ...getValidation(field('inn'), validatorObj.inn, required) })),
|
|
1868
1873
|
comment: jsx(CommentField, { field: field, input: input }),
|
|
@@ -1993,7 +1998,7 @@
|
|
|
1993
1998
|
const status = (await API.send(formatData, endpoint === 'lead')) ? 'OK' : 'Fail';
|
|
1994
1999
|
setResponseType(status);
|
|
1995
2000
|
if (status) {
|
|
1996
|
-
const responseTypeDialog = useResponseTypeDialog({ responseType: status });
|
|
2001
|
+
const responseTypeDialog = useResponseTypeDialog({ responseType: status, typeForm });
|
|
1997
2002
|
responseTypeDialog.open();
|
|
1998
2003
|
}
|
|
1999
2004
|
if (status === 'OK' && data) {
|
|
@@ -5726,15 +5731,15 @@
|
|
|
5726
5731
|
const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
|
|
5727
5732
|
const isActive = i === activeSlideIndex;
|
|
5728
5733
|
const btnClassName = isActive
|
|
5729
|
-
? 'min-w-[
|
|
5730
|
-
: 'min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:backdrop-blur';
|
|
5734
|
+
? 'min-w-[370px] mt-s h-28 bg-white shadow-dark-blue border-none p-6'
|
|
5735
|
+
: 'min-w-72 mt-lg h-24 ease-in duration-300 bg-white/10 px-xl py-lg hover:backdrop-blur';
|
|
5731
5736
|
const btnTitleClassName = isActive
|
|
5732
5737
|
? 'text-primary-text text-h6 py-xs'
|
|
5733
5738
|
: 'text-l pb-2xs text-secondary-text group-data-secondary:text-white';
|
|
5734
5739
|
const btnDescClassName = isActive
|
|
5735
5740
|
? 'text-secondary-text text-l font-light'
|
|
5736
5741
|
: 'text-secondary-text text-m font-light group-data-secondary:text-white/80';
|
|
5737
|
-
return (jsxs("button", { type: "button", onClick: () => onClick(i), "aria-label": nav?.title, className: style('
|
|
5742
|
+
return (jsxs("button", { type: "button", onClick: () => onClick(i), "aria-label": nav?.title, className: style('relative overflow-hidden grow', 'ml-xs px-xl', 'box-border basis-0 border', 'border-gray group-data-secondary:border-white/50', 'text-left whitespace-nowrap', btnClassName), children: [jsx("div", { className: btnTitleClassName, children: nav?.title }), jsx("div", { className: btnDescClassName, children: nav?.description })] }, String(i)));
|
|
5738
5743
|
};
|
|
5739
5744
|
|
|
5740
5745
|
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: jsx(Img, { image: icon }) })) : null, title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
|
|
@@ -6499,7 +6504,7 @@
|
|
|
6499
6504
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6500
6505
|
});
|
|
6501
6506
|
|
|
6502
|
-
const packageVersion = "0.14.
|
|
6507
|
+
const packageVersion = "0.14.536";
|
|
6503
6508
|
|
|
6504
6509
|
exports.Blocks = Blocks;
|
|
6505
6510
|
exports.ContentPage = ContentPage;
|