@redneckz/wildless-cms-uni-blocks 0.14.321 → 0.14.323
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/bin/migration-scripts/0.14.317.js +13 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +11 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/data/FooterData.d.ts +6 -3
- package/bundle/icons/IconName.d.ts +4 -2
- package/cosmos-static/icons/RustoreIcon.svg +1 -0
- package/cosmos-static/icons/sprites.svg +1 -0
- package/dist/components/Footer/Footer.js +2 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +4 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/iconsMap.js +4 -0
- package/dist/components/Footer/iconsMap.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/dist/data/FooterData.d.ts +6 -3
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Footer/Footer.fixture.d.ts +1 -0
- package/lib/components/Footer/Footer.fixture.mobile.d.ts +1 -0
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +4 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/iconsMap.js +4 -0
- package/lib/components/Footer/iconsMap.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/lib/data/FooterData.d.ts +6 -3
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +12 -7
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/data/FooterData.d.ts +6 -3
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/dist/components/Footer/Footer.js +4 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Footer/iconsMap.js +4 -0
- package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/dist/data/FooterData.d.ts +6 -3
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Footer/Footer.js +4 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Footer/iconsMap.js +4 -0
- package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +2 -2
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/lib/data/FooterData.d.ts +6 -3
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/src/components/Footer/Footer.tsx +26 -32
- package/mobile/src/components/Footer/SocialMedia.tsx +1 -1
- package/mobile/src/components/Footer/TextInformation.tsx +9 -7
- package/mobile/src/components/Footer/iconsMap.ts +4 -0
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +7 -6
- package/mobile/src/data/FooterData.ts +6 -3
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/RustoreIcon.svg +4 -0
- package/package.json +1 -1
- package/src/components/Footer/Footer.fixture.mobile.tsx +10 -0
- package/src/components/Footer/Footer.fixture.tsx +15 -6
- package/src/components/Footer/Footer.mobile.tsx +26 -32
- package/src/components/Footer/Footer.tsx +10 -10
- package/src/components/Footer/SocialMedia.tsx +1 -1
- package/src/components/Footer/TextInformation.tsx +9 -7
- package/src/components/Footer/iconsMap.ts +4 -0
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +7 -6
- package/src/data/FooterData.ts +6 -3
- package/src/icons/IconName.ts +4 -1
- package/src/icons/RustoreIcon.svg +4 -0
|
@@ -3401,6 +3401,10 @@
|
|
|
3401
3401
|
origins: ['dzen.ru'],
|
|
3402
3402
|
iconMapped: { icon: 'DzenIcon' },
|
|
3403
3403
|
},
|
|
3404
|
+
{
|
|
3405
|
+
origins: ['rustore.ru'],
|
|
3406
|
+
iconMapped: { icon: 'RustoreIcon' },
|
|
3407
|
+
},
|
|
3404
3408
|
];
|
|
3405
3409
|
|
|
3406
3410
|
const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
|
|
@@ -3426,7 +3430,7 @@
|
|
|
3426
3430
|
};
|
|
3427
3431
|
});
|
|
3428
3432
|
const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : 'basis-auto', getStretchedStyle(stretched));
|
|
3429
|
-
return (jsxs("div", { className: style('flex flex-col gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
|
|
3433
|
+
return (jsxs("div", { className: style('flex flex-col gap-m xl:gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
|
|
3430
3434
|
className: style(stretched || hasText ? 'basis-full' : ''),
|
|
3431
3435
|
buttonClassName,
|
|
3432
3436
|
}) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
|
|
@@ -3838,16 +3842,17 @@
|
|
|
3838
3842
|
return (jsx("a", { className: `text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
|
|
3839
3843
|
});
|
|
3840
3844
|
|
|
3841
|
-
const TextInformation = JSX(({ className = '', links, license }) => (jsxs("div", { className: style('@container', className), children: [jsx("div", {
|
|
3845
|
+
const TextInformation = JSX(({ className = '', links, license }) => (jsxs("div", { className: style('@container space-y-lg', className), children: [license ? (jsx("div", { children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0${license}` }) })) : null, links?.length ? (jsx("div", { className: "flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
|
|
3842
3846
|
|
|
3847
|
+
const borderStyle = 'border-t border-main-divider';
|
|
3843
3848
|
const Footer = UniBlock(({ className, footer, ...rest }) => {
|
|
3844
3849
|
const { topItems } = rest.options?.page?.sitemap ?? {};
|
|
3845
|
-
const { relatedEnterprises, contacts,
|
|
3850
|
+
const { relatedEnterprises, contacts, mediaLinks = [], horizontalNavigationTitle, documents, feedbackButton, license, } = footer || {};
|
|
3846
3851
|
const handleOnClick = useCallback(() => {
|
|
3847
3852
|
const [name, oldValue, newValue] = COOKIE_REPLACE;
|
|
3848
3853
|
mapCookie(name, (value) => value?.replace(oldValue, newValue));
|
|
3849
3854
|
}, []);
|
|
3850
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", {
|
|
3855
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: style('space-y-lg', className), defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", { role: "menu", children: renderTopItems(topItems) }), jsx("div", { className: borderStyle }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], stretched: true, showButtonText: false, children: _?.title }, String(i)))), jsx("div", { className: borderStyle }), jsx(HorizontalNavigationLink, { text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0436\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0441\u0430\u0439\u0442\u0430", className: "flex text-l font-light max-w-[292px]", href: "https://old.rshb.ru", onClick: handleOnClick }), jsx("div", { className: borderStyle }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx("div", { className: borderStyle }), jsx(TextInformation, { links: documents, license: license })] }));
|
|
3851
3856
|
});
|
|
3852
3857
|
const renderTopItems = (topItems) => topItems
|
|
3853
3858
|
?.filter((_) => _.icon?.icon)
|
|
@@ -4387,7 +4392,7 @@
|
|
|
4387
4392
|
return [_filteredItems, _points, _filteredItems.length];
|
|
4388
4393
|
}, [data, filtrationState]);
|
|
4389
4394
|
const [activeButton, setActiveButton] = useState('all');
|
|
4390
|
-
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-6xl pb-0", children: [
|
|
4395
|
+
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-6xl pb-0", children: [jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: jsxs(Heading, { headingType: "h2", children: [title, lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: ` (${lengthItems})` })) : null] }) }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-2xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
4391
4396
|
});
|
|
4392
4397
|
const renderButtonsGroup = (data, activeButton, setActiveButton) => {
|
|
4393
4398
|
const allButtonVersion = activeButton === 'all' ? 'primary' : 'secondary';
|
|
@@ -4401,7 +4406,7 @@
|
|
|
4401
4406
|
setActiveButton(key);
|
|
4402
4407
|
return branches;
|
|
4403
4408
|
};
|
|
4404
|
-
return (jsxs("div", { className: "flex pb-lg", children: [jsx(Button, {
|
|
4409
|
+
return (jsxs("div", { className: "flex gap-lg flex-col sm:flex-row pb-lg", children: [jsx(Button, { "data-id": "all", onClick: (e) => handleOnClick(e, 'all', data), version: allButtonVersion, children: "\u0414\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" }), jsx(Button, { "data-id": "business", onClick: (e) => handleOnClick(e, 'business', data), version: businessButtonVersion, children: "\u0414\u043B\u044F \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" })] }));
|
|
4405
4410
|
};
|
|
4406
4411
|
const renderDescriptionBlock$1 = ({ __html, list }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
4407
4412
|
|
|
@@ -5752,7 +5757,7 @@
|
|
|
5752
5757
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
5753
5758
|
});
|
|
5754
5759
|
|
|
5755
|
-
const packageVersion = "0.14.
|
|
5760
|
+
const packageVersion = "0.14.322";
|
|
5756
5761
|
|
|
5757
5762
|
exports.Blocks = Blocks;
|
|
5758
5763
|
exports.ContentPage = ContentPage;
|