@redneckz/wildless-cms-uni-blocks 0.14.1018 → 0.14.1020

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.
@@ -13268,7 +13268,19 @@
13268
13268
  const { internetBankButton } = portal || {};
13269
13269
  const customProps = customLogo.image?.icon || customLogo.image?.src || customLogo?.title;
13270
13270
  const logoProps = customProps ? customLogo : logo;
13271
- return (jsx(BlockWrapper, { tag: "header", className: style('pt-m px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: jsxs("div", { className: "container", children: [jsx("div", { className: "whitespace-nowrap", children: jsx(HeaderTopMenu, { activeTopItem: activeTopItem, navigationItems: navigationItems?.filter(isVisibleItem(HEADER_AREA_KEYS)), version: version, headerData: { ...header, ...navigation }, search: common.search, bgColor: bgColor, logo: logoProps }) }), jsx("div", { className: style('mt-s h-px bg-main-divider', getVersionStyle(version)) }), activeTopItem?.items?.length && (jsx(HeaderSubMenu, { subItems: activeTopItem?.items?.filter(isVisibleItem(HEADER_AREA_KEYS)), version: version, internetBankButton: internetBankButton }))] }) }));
13271
+ const renderMenuDiviver = () => {
13272
+ if (!activeTopItem?.items?.length) {
13273
+ return null;
13274
+ }
13275
+ return jsx("div", { className: style('mt-s h-px bg-main-divider', getVersionStyle(version)) });
13276
+ };
13277
+ const renderSubMenu = () => {
13278
+ if (!activeTopItem?.items?.length) {
13279
+ return null;
13280
+ }
13281
+ return (jsx(HeaderSubMenu, { subItems: activeTopItem?.items?.filter(isVisibleItem(HEADER_AREA_KEYS)), version: version, internetBankButton: internetBankButton }));
13282
+ };
13283
+ return (jsx(BlockWrapper, { tag: "header", className: style('pt-m px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: jsxs("div", { className: "container", children: [jsx("div", { className: "whitespace-nowrap", children: jsx(HeaderTopMenu, { activeTopItem: activeTopItem, navigationItems: navigationItems?.filter(isVisibleItem(HEADER_AREA_KEYS)), version: version, headerData: { ...header, ...navigation }, search: common.search, bgColor: bgColor, logo: logoProps }) }), renderMenuDiviver(), renderSubMenu()] }) }));
13272
13284
  });
13273
13285
  const getVersionStyle = (version) => (version === 'transparent' ? 'opacity-30' : '');
13274
13286
  const getPageProperties = (page) => ({
@@ -14192,7 +14204,7 @@
14192
14204
  text,
14193
14205
  });
14194
14206
  };
14195
- return (jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx(Heading, { className: "text-center", headingType: "h5", title: TITLE }), jsx("div", { className: "flex justify-center", children: stars.map((StarItem, index) => (jsx(StarItem, { value: index + 1, rating: currentRating }, index))) }), jsx(RadioButtonGroup, { className: "w-full text-wrap", orientation: "vertical", items: reasons, value: currentReason?.id, onChange: handleReasonChange }), currentReason?.text === 'Другое' ? (jsx(Input, { className: "w-full", placeholder: "\u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u043E\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043E\u0442\u0432\u0435\u0442\u0430", isTextarea: true, value: comment, onChange: setComment, maxLength: 255 })) : null, currentReason ? (jsx(SubmitButton$1, { onClick: () => onSubmit(comment), isLoading: isSending, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })) : null] }));
14207
+ return (jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx(Heading, { className: "text-center", headingType: "h5", title: TITLE }), jsx("div", { className: "flex justify-center", children: stars.map((StarItem, index) => (jsx(StarItem, { value: index + 1, rating: currentRating }, index))) }), jsx(RadioButtonGroup, { className: "w-full text-wrap", orientation: "vertical", items: reasons, value: currentReason?.id, onChange: handleReasonChange }), currentReason?.text === 'Другое' ? (jsx(InputControl, { className: "w-full", placeholder: "\u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u043E\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043E\u0442\u0432\u0435\u0442\u0430", isTextarea: true, value: comment, onChange: setComment, maxLength: 255 })) : null, currentReason ? (jsx(SubmitButton$1, { onClick: () => onSubmit(comment), isLoading: isSending, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })) : null] }));
14196
14208
  });
14197
14209
 
14198
14210
  const STEPS = [FirstStep, SecondStep, FinalStep];
@@ -14302,7 +14314,7 @@
14302
14314
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
14303
14315
  });
14304
14316
 
14305
- const packageVersion = "0.14.1017";
14317
+ const packageVersion = "0.14.1019";
14306
14318
 
14307
14319
  exports.Blocks = Blocks;
14308
14320
  exports.ContentPage = ContentPage;