@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.
Files changed (86) hide show
  1. package/bin/migration-scripts/0.14.317.js +13 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +9 -5
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/data/FooterData.d.ts +6 -3
  6. package/bundle/icons/IconName.d.ts +4 -2
  7. package/cosmos-static/icons/RustoreIcon.svg +1 -0
  8. package/cosmos-static/icons/sprites.svg +1 -0
  9. package/dist/components/Footer/Footer.js +2 -2
  10. package/dist/components/Footer/Footer.js.map +1 -1
  11. package/dist/components/Footer/Footer.mobile.js +4 -2
  12. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  13. package/dist/components/Footer/SocialMedia.js +1 -1
  14. package/dist/components/Footer/SocialMedia.js.map +1 -1
  15. package/dist/components/Footer/TextInformation.js +1 -1
  16. package/dist/components/Footer/TextInformation.js.map +1 -1
  17. package/dist/components/Footer/iconsMap.js +4 -0
  18. package/dist/components/Footer/iconsMap.js.map +1 -1
  19. package/dist/data/FooterData.d.ts +6 -3
  20. package/dist/icons/IconName.d.ts +4 -2
  21. package/dist/icons/IconName.js +2 -0
  22. package/dist/icons/IconName.js.map +1 -1
  23. package/lib/common.css +1 -1
  24. package/lib/components/Footer/Footer.fixture.d.ts +1 -0
  25. package/lib/components/Footer/Footer.fixture.mobile.d.ts +1 -0
  26. package/lib/components/Footer/Footer.js +2 -2
  27. package/lib/components/Footer/Footer.js.map +1 -1
  28. package/lib/components/Footer/Footer.mobile.js +4 -2
  29. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  30. package/lib/components/Footer/SocialMedia.js +1 -1
  31. package/lib/components/Footer/SocialMedia.js.map +1 -1
  32. package/lib/components/Footer/TextInformation.js +1 -1
  33. package/lib/components/Footer/TextInformation.js.map +1 -1
  34. package/lib/components/Footer/iconsMap.js +4 -0
  35. package/lib/components/Footer/iconsMap.js.map +1 -1
  36. package/lib/data/FooterData.d.ts +6 -3
  37. package/lib/icons/IconName.d.ts +4 -2
  38. package/lib/icons/IconName.js +2 -0
  39. package/lib/icons/IconName.js.map +1 -1
  40. package/mobile/bundle/bundle.umd.js +10 -5
  41. package/mobile/bundle/bundle.umd.min.js +1 -1
  42. package/mobile/bundle/data/FooterData.d.ts +6 -3
  43. package/mobile/bundle/icons/IconName.d.ts +4 -2
  44. package/mobile/dist/components/Footer/Footer.js +4 -2
  45. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  46. package/mobile/dist/components/Footer/SocialMedia.js +1 -1
  47. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  48. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  49. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  50. package/mobile/dist/components/Footer/iconsMap.js +4 -0
  51. package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
  52. package/mobile/dist/data/FooterData.d.ts +6 -3
  53. package/mobile/dist/icons/IconName.d.ts +4 -2
  54. package/mobile/dist/icons/IconName.js +2 -0
  55. package/mobile/dist/icons/IconName.js.map +1 -1
  56. package/mobile/lib/common.css +1 -1
  57. package/mobile/lib/components/Footer/Footer.js +4 -2
  58. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  59. package/mobile/lib/components/Footer/SocialMedia.js +1 -1
  60. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  61. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  62. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  63. package/mobile/lib/components/Footer/iconsMap.js +4 -0
  64. package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
  65. package/mobile/lib/data/FooterData.d.ts +6 -3
  66. package/mobile/lib/icons/IconName.d.ts +4 -2
  67. package/mobile/lib/icons/IconName.js +2 -0
  68. package/mobile/lib/icons/IconName.js.map +1 -1
  69. package/mobile/src/components/Footer/Footer.tsx +26 -32
  70. package/mobile/src/components/Footer/SocialMedia.tsx +1 -1
  71. package/mobile/src/components/Footer/TextInformation.tsx +9 -7
  72. package/mobile/src/components/Footer/iconsMap.ts +4 -0
  73. package/mobile/src/data/FooterData.ts +6 -3
  74. package/mobile/src/icons/IconName.ts +4 -4
  75. package/mobile/src/icons/RustoreIcon.svg +4 -0
  76. package/package.json +1 -1
  77. package/src/components/Footer/Footer.fixture.mobile.tsx +10 -0
  78. package/src/components/Footer/Footer.fixture.tsx +15 -6
  79. package/src/components/Footer/Footer.mobile.tsx +26 -32
  80. package/src/components/Footer/Footer.tsx +10 -10
  81. package/src/components/Footer/SocialMedia.tsx +1 -1
  82. package/src/components/Footer/TextInformation.tsx +9 -7
  83. package/src/components/Footer/iconsMap.ts +4 -0
  84. package/src/data/FooterData.ts +6 -3
  85. package/src/icons/IconName.ts +4 -1
  86. package/src/icons/RustoreIcon.svg +4 -0
@@ -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", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0${license}` }) }), links?.length ? (jsx("div", { className: "flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
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, socialMedia, mobileApps, feedbackButton, isOldVersionButton, license, otherLinks = [], } = footer ?? {};
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 pb-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 mt-xs", version: "primary", ...feedbackButton })) : null, jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, showButtonText: false, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), 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, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents, license: license })] }));
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.320";
6244
+ const packageVersion = "0.14.321";
6241
6245
 
6242
6246
  exports.Blocks = Blocks;
6243
6247
  exports.ContentPage = ContentPage;