@redneckz/wildless-cms-uni-blocks 0.14.855 → 0.14.856
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 +4 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +3 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -11
- package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +3 -1
- package/package.json +1 -1
- package/src/components/Header/HeaderSecondaryMenu.tsx +8 -11
- package/src/icons/IconName.ts +4 -4
- package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +3 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -5123,6 +5123,7 @@
|
|
|
5123
5123
|
const [code, setCode] = useState('');
|
|
5124
5124
|
const [hasError, setHasError] = useState(false);
|
|
5125
5125
|
const [isLoading, { setTrue: startLoading, setFalse: endLoading }] = useBool(false);
|
|
5126
|
+
const { closeAll } = useDialogManager();
|
|
5126
5127
|
const handleCheckCaptcha = useCallback(async () => {
|
|
5127
5128
|
startLoading();
|
|
5128
5129
|
const isValidCode = await checkCaptcha({ captchaText: code });
|
|
@@ -5139,7 +5140,7 @@
|
|
|
5139
5140
|
(async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
|
|
5140
5141
|
}, []);
|
|
5141
5142
|
useEffect(handleCreateCaptcha, []);
|
|
5142
|
-
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center", children: [jsxs("div", { className: "flex", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-80", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-80 justify-between", children: [jsx(Button, { version: "secondary", onClick:
|
|
5143
|
+
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center", children: [jsxs("div", { className: "flex", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-80", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-80 justify-between", children: [jsx(Button, { version: "secondary", onClick: closeAll, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
5143
5144
|
});
|
|
5144
5145
|
|
|
5145
5146
|
const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
|
|
@@ -10012,7 +10013,7 @@
|
|
|
10012
10013
|
const locationDialog = useDialog(LocationDialog, rest);
|
|
10013
10014
|
const openSearchDialog = useCallback(() => searchDialog.open({}), [searchDialog]);
|
|
10014
10015
|
const openLocationDialog = useCallback(() => locationDialog.open({}), [locationDialog]);
|
|
10015
|
-
return (jsxs("div", { className: style('flex items-center ml-5 md:max-w-[300px] xl:max-w-full gap-lg', className), role: "navigation", children: [currentLocation?.name && rest?.branches?.visible ? (jsx(
|
|
10016
|
+
return (jsxs("div", { className: style('flex items-center ml-5 md:max-w-[300px] xl:max-w-full gap-lg', className), role: "navigation", children: [currentLocation?.name && rest?.branches?.visible ? (jsx(TopItem, { className: "whitespace-nowrap text-ellipsis overflow-hidden", flat: true, href: "#", text: currentLocation?.name, data: getAspectsWithInclude(rest?.branches?.dataClick, currentLocation?.name ?? ''), onClick: openLocationDialog })) : null, rest?.officesAtms?.href ? (jsx(TopItem, { className: "whitespace-nowrap", flat: true, ...rest.officesAtms })) : null, jsx(HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: rest?.search?.ariaLabel ?? 'Поиск', onClick: openSearchDialog, data: rest?.search?.data })] }));
|
|
10016
10017
|
});
|
|
10017
10018
|
|
|
10018
10019
|
const HeaderTopMenuItem = JSX(({ observerOptions, onVisibilityChange, children, className, ...rest }) => {
|
|
@@ -10938,7 +10939,7 @@
|
|
|
10938
10939
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10939
10940
|
});
|
|
10940
10941
|
|
|
10941
|
-
const packageVersion = "0.14.
|
|
10942
|
+
const packageVersion = "0.14.855";
|
|
10942
10943
|
|
|
10943
10944
|
exports.Blocks = Blocks;
|
|
10944
10945
|
exports.ContentPage = ContentPage;
|