@redneckz/wildless-cms-uni-blocks 0.14.321 → 0.14.322
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 +9 -5
- 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/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/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 +10 -5
- 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/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/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/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/data/FooterData.ts +6 -3
- package/src/icons/IconName.ts +4 -1
- package/src/icons/RustoreIcon.svg +4 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -3438,6 +3438,10 @@
|
|
|
3438
3438
|
origins: ['dzen.ru'],
|
|
3439
3439
|
iconMapped: { icon: 'DzenIcon' },
|
|
3440
3440
|
},
|
|
3441
|
+
{
|
|
3442
|
+
origins: ['rustore.ru'],
|
|
3443
|
+
iconMapped: { icon: 'RustoreIcon' },
|
|
3444
|
+
},
|
|
3441
3445
|
];
|
|
3442
3446
|
|
|
3443
3447
|
const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
|
|
@@ -3463,7 +3467,7 @@
|
|
|
3463
3467
|
};
|
|
3464
3468
|
});
|
|
3465
3469
|
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));
|
|
3466
|
-
return (jsxs("div", { className: style('flex flex-col gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
|
|
3470
|
+
return (jsxs("div", { className: style('flex flex-col gap-m xl:gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
|
|
3467
3471
|
className: style(stretched || hasText ? 'basis-full' : ''),
|
|
3468
3472
|
buttonClassName,
|
|
3469
3473
|
}) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
|
|
@@ -4214,20 +4218,20 @@
|
|
|
4214
4218
|
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}` }));
|
|
4215
4219
|
});
|
|
4216
4220
|
|
|
4217
|
-
const TextInformation = JSX(({ className = '', links, license }) => (jsxs("div", { className: style('@container', className), children: [jsx("div", {
|
|
4221
|
+
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] })));
|
|
4218
4222
|
|
|
4219
4223
|
const LEFT_COL_WIDTH = 'w-52';
|
|
4220
4224
|
const Footer = UniBlock(({ className, footer, ...rest }) => {
|
|
4221
4225
|
const sitemap = rest.options?.page?.sitemap ?? {};
|
|
4222
4226
|
const { logo } = sitemap;
|
|
4223
4227
|
const { dataFooter, ...logoProps } = logo ?? {};
|
|
4224
|
-
const { documents, relatedEnterprises, contacts,
|
|
4228
|
+
const { documents, relatedEnterprises, contacts, mediaLinks = [], feedbackButton, isOldVersionButton, license, otherLinks = [], } = footer ?? {};
|
|
4225
4229
|
const handleOnClick = useCallback(() => {
|
|
4226
4230
|
const [name, oldValue, newValue] = COOKIE_REPLACE;
|
|
4227
4231
|
mapCookie(name, (value) => value?.replace(oldValue, newValue));
|
|
4228
4232
|
}, []);
|
|
4229
4233
|
const linkStyle = '!text-left text-s font-light';
|
|
4230
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl
|
|
4234
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: style('space-y-xl', className), ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logoProps, data: dataFooter }), jsx(SearchBar$1, { className: "grow", ...sitemap })] }), jsxs("div", { className: "flex items-center @lg:items-stretch gap-6xl flex-col @lg:flex-row", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], showButtonText: false, children: _?.title }, String(i)))), isOldVersionButton ? (jsx(LinkButton, { version: "link", href: "https://old.rshb.ru", className: linkStyle, onClick: handleOnClick, children: "\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" })) : null, otherLinks.map((_, i) => (jsx(LinkButton, { className: linkStyle, version: "link", ..._, children: _?.text }, String(i))))] }), jsx(Sitemap, { className: "flex-grow flex-wrap", ...sitemap })] }), jsx(HorizontalNavigation, { links: relatedEnterprises }), jsx(TextInformation, { links: documents, license: license })] }));
|
|
4231
4235
|
});
|
|
4232
4236
|
|
|
4233
4237
|
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
|
|
@@ -6237,7 +6241,7 @@
|
|
|
6237
6241
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6238
6242
|
});
|
|
6239
6243
|
|
|
6240
|
-
const packageVersion = "0.14.
|
|
6244
|
+
const packageVersion = "0.14.321";
|
|
6241
6245
|
|
|
6242
6246
|
exports.Blocks = Blocks;
|
|
6243
6247
|
exports.ContentPage = ContentPage;
|