@redneckz/wildless-cms-uni-blocks 0.14.13 → 0.14.14

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 (68) hide show
  1. package/bundle/bundle.umd.js +4 -4
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/ProductBlock/ProductBlock.js +2 -2
  4. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  5. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  6. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  7. package/dist/components/ProductTile/ProductTile.js +1 -1
  8. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  9. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  10. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  11. package/lib/common.css +1 -1
  12. package/lib/components/ProductBlock/ProductBlock.js +2 -2
  13. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  14. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  15. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  16. package/lib/components/ProductTile/ProductTile.js +1 -1
  17. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  18. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  19. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  20. package/mobile/bundle/bundle.umd.js +3 -3
  21. package/mobile/bundle/bundle.umd.min.js +1 -1
  22. package/mobile/dist/components/ProductBlock/ProductBlock.js +2 -2
  23. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  24. package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
  25. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  26. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  27. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  28. package/mobile/lib/common.css +1 -1
  29. package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -2
  30. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  31. package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
  32. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  33. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
  34. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  35. package/mobile/src/components/ProductBlock/ProductBlock.tsx +3 -3
  36. package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
  37. package/mobile/src/components/ProductTile/ProductTile.tsx +2 -0
  38. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  39. package/package.json +1 -1
  40. package/src/components/ProductBlock/ProductBlock.tsx +3 -3
  41. package/src/components/ProductGallery/ProductGallery.tsx +1 -0
  42. package/src/components/ProductTile/ProductTile.example.json +1 -0
  43. package/src/components/ProductTile/ProductTile.tsx +2 -0
  44. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  45. package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  46. package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
  47. package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  48. package/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
  49. package/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
  50. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
  51. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -4
  52. package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
  53. package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  54. package/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
  55. package/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
  56. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +0 -1
  57. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +0 -2
  58. package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +0 -1
  59. package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  60. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  61. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +0 -4
  62. package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
  63. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +0 -1
  64. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +0 -2
  65. package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +0 -1
  66. package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
  67. package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +0 -1
  68. package/src/components/BenefitsBlock/benefitImageStyles.tsx +0 -1
@@ -2751,7 +2751,7 @@
2751
2751
  const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
2752
2752
  const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
2753
2753
 
2754
- const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, children, }) => {
2754
+ const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, children, }) => {
2755
2755
  const img = image?.src ? jsx(Img, { image: image }) : null;
2756
2756
  const headline = renderHeadline({ title, description, headlineVersion, align });
2757
2757
  const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
@@ -4615,7 +4615,7 @@
4615
4615
 
4616
4616
  const ProductGallery = JSX(({ className = '', padding, slides = [], ...rest }) => {
4617
4617
  const [activeSlideIndex, setActiveSlideIndex] = useState(0);
4618
- return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-6xl", padding: padding, ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "XXL", ...productBlock, ...rest }) }, String(i)))) }), jsx("div", { className: "h-28 px-xs mt-m -mb-m flex gap-xs box-border", children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) })] }));
4618
+ return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-6xl", padding: padding, ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "XXL", isFullWidthTitle: false, ...productBlock, ...rest }) }, String(i)))) }), jsx("div", { className: "h-28 px-xs mt-m -mb-m flex gap-xs box-border", children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) })] }));
4619
4619
  });
4620
4620
  const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
4621
4621
  const isActive = i === activeSlideIndex;
@@ -4631,7 +4631,7 @@
4631
4631
  return (jsxs("button", { type: "button", onClick: () => onClick(i), "aria-label": nav?.title, className: style('relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50', btnClassName), children: [jsx("div", { className: btnTitleClassName, children: nav?.title }), jsx("div", { className: btnDescClassName, children: nav?.description })] }, String(i)));
4632
4632
  };
4633
4633
 
4634
- const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isImageSecondary: true, ...imageOptions }, ...rest, children: additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
4634
+ const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, isFullWidthTitle = true, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isImageSecondary: true, ...imageOptions }, isFullWidthTitle: isFullWidthTitle, ...rest, children: additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
4635
4635
 
4636
4636
  const PromoTile = JSX(({ className, title = 'Акции и спецпредложения', description, headlineVersion = 'S', date, buttons = [], ...rest }) => (jsx(BlockWrapper, { className: style('box-border', className), ...rest, children: jsxs(BaseTile, { className: "h-full", title: title ? (jsx(Headline, { title: title, headlineVersion: headlineVersion, align: "text-left", isEmbedded: true })) : null, buttons: renderButtonsSection(buttons), children: [date ? jsx("div", { className: "text-s mb-xs", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) })));
4637
4637
  function formatDate(date) {
@@ -5451,7 +5451,7 @@
5451
5451
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5452
5452
  }
5453
5453
 
5454
- const packageVersion = "0.14.13";
5454
+ const packageVersion = "0.14.14";
5455
5455
 
5456
5456
  exports.Blocks = Blocks;
5457
5457
  exports.ContentPage = ContentPage;