@redneckz/wildless-cms-uni-blocks 0.14.55 → 0.14.56

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 (45) hide show
  1. package/bundle/bundle.umd.js +8 -7
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  4. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  5. package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  6. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  7. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  8. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  9. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +4 -3
  10. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  11. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  12. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  13. package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  14. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  15. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  16. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  17. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +4 -3
  18. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  19. package/mobile/bundle/bundle.umd.js +8 -7
  20. package/mobile/bundle/bundle.umd.min.js +1 -1
  21. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  22. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  23. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
  24. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  25. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  26. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  27. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +4 -3
  28. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  29. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  30. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  31. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
  32. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  33. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  34. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  35. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +4 -3
  36. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  37. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +7 -9
  38. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +6 -8
  39. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +7 -9
  40. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +10 -21
  41. package/package.json +1 -1
  42. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +7 -9
  43. package/src/components/CarouselLinks/CarouselLinks.tsx +6 -8
  44. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +7 -9
  45. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +10 -21
@@ -2907,7 +2907,7 @@
2907
2907
  black: 'bg-black',
2908
2908
  white: 'bg-white',
2909
2909
  };
2910
- const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: title || description ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
2910
+ const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
2911
2911
  const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2912
2912
 
2913
2913
  const cardColumnsModeStyleMap = {
@@ -2928,7 +2928,7 @@
2928
2928
 
2929
2929
  const MAX_LINKS_COUNT = 10;
2930
2930
 
2931
- const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden', className), ...rest, children: jsxs("div", { className: "flex flex-col @6xl:flex-row gap-m", children: [jsxs("div", { children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })) : null] }), links?.length ? renderLinks(links, '@6xl:min-w-[672px] p-0 justify-self-end') : null] }) })));
2931
+ const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden', className), ...rest, children: jsxs("div", { className: "flex flex-col @6xl:flex-row gap-m", children: [jsxs("div", { children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left" }), jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })] }), links?.length ? renderLinks(links, '@6xl:min-w-[672px] p-0 justify-self-end') : null] }) })));
2932
2932
  const renderLinks = (links, className = '') => {
2933
2933
  const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
2934
2934
  return (jsx(Carousel, { className: className, version: "secondary", itemCount: itemCount, arrowsPadded: false, padding: "p-0", children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: style('flex flex-wrap gap-2xs self-start xl:justify-center @5xl:grid @5xl:grid-cols-2'), children: links
@@ -2983,15 +2983,16 @@
2983
2983
  const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
2984
2984
  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)));
2985
2985
 
2986
- const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, priceList = [], listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, backwardButton, children, ...rest }) => {
2986
+ const BaseProductTile = JSX(
2987
+ // eslint-disable-next-line max-lines-per-function
2988
+ ({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle, items, isDotted = true, priceList = [], listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'center', directionRight = true, isImageAlwaysOnRight, isImageSecondary = false, } = {}, backwardButton, children, ...rest }) => {
2987
2989
  const img = image?.src ? jsx(Img, { image: image }) : null;
2988
- const headline = renderHeadline({ title, description, headlineVersion, align });
2990
+ const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
2989
2991
  const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
2990
2992
  return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), backwardButton: backwardButton, ...rest, children: jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, priceList?.length ? jsx(PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
2991
2993
  });
2992
2994
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
2993
2995
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
2994
- const renderHeadline = ({ title, description, headlineVersion, align }) => title || description ? (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true })) : null;
2995
2996
 
2996
2997
  const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2997
2998
  const link = useLink({ isRemote });
@@ -3065,7 +3066,7 @@
3065
3066
 
3066
3067
  //TODO: replace SocialMedia with renderButtonSection
3067
3068
  const CarouselRecommendationCard = JSX(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted, listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
3068
- return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, ...leftOrRightImage(isIcon(icon) ? jsx(Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, imageAlign: "center", children: [jsx(BenefitsList, { benefits: benefits }), jsx(List, { items: items, listItemSize: listItemSize, isDotted: isDotted }), renderAdditionalDescription(additionalDescription, align)] }) }) }));
3069
+ return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-2xl", padding: padding, insetTitle: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), ...leftOrRightImage(isIcon(icon) ? jsx(Img, { image: icon }) : null, directionRight), buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest?.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, isImageSecondary: isImageSecondary, imageAlign: "center", children: [jsx(BenefitsList, { benefits: benefits }), jsx(List, { items: items, listItemSize: listItemSize, isDotted: isDotted }), renderAdditionalDescription(additionalDescription, align)] }) }) }));
3069
3070
  });
3070
3071
  const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
3071
3072
 
@@ -5807,7 +5808,7 @@
5807
5808
  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" }) }));
5808
5809
  }
5809
5810
 
5810
- const packageVersion = "0.14.54";
5811
+ const packageVersion = "0.14.55";
5811
5812
 
5812
5813
  exports.Blocks = Blocks;
5813
5814
  exports.ContentPage = ContentPage;