@redneckz/wildless-cms-uni-blocks 0.9.7 → 0.9.8

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 (51) hide show
  1. package/bundle/bundle.umd.js +6 -6
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  4. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  5. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  6. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.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/LinkWrapper/LinkWrapper.js +2 -1
  10. package/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
  11. package/lib/common.css +1 -1
  12. package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  13. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  14. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  15. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  16. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  17. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  18. package/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
  19. package/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
  20. package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
  21. package/mobile/bundle/bundle.umd.js +1 -1
  22. package/mobile/bundle/bundle.umd.min.js +1 -1
  23. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  24. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  25. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  26. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  27. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  28. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  29. package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
  30. package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
  31. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  32. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  33. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
  34. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  35. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  36. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  37. package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -1
  38. package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
  39. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -1
  40. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
  41. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +3 -3
  42. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -8
  43. package/mobile/src/ui-kit/LinkWrapper/LinkWrapper.tsx +2 -1
  44. package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -1
  45. package/package.json +1 -1
  46. package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
  47. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -2
  48. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +3 -3
  49. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +13 -8
  50. package/src/ui-kit/LinkWrapper/LinkWrapper.tsx +2 -1
  51. package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +1 -1
@@ -2130,7 +2130,7 @@
2130
2130
  const link = useLink();
2131
2131
  const linkProps = link({ href, target });
2132
2132
  const Tag = href ? 'a' : 'div';
2133
- return (jsx(Tag, { className: className, ...(href ? linkProps : {}), children: children }));
2133
+ return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
2134
2134
  });
2135
2135
 
2136
2136
  const getIconWithVersion = (icon, version = 'primary') => ({
@@ -2205,7 +2205,7 @@
2205
2205
  const List = JSX(({ className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: `text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${TEXT_SIZE_MAP[listItemSize]} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''} ${className}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
2206
2206
 
2207
2207
  const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
2208
- return (jsxs(BlockWrapper, { className: style('justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], { className: 'p-6 pt-0', isVertical: true })] }));
2208
+ return (jsxs(BlockWrapper, { className: style('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], { className: 'p-6 pt-0', isVertical: true })] }));
2209
2209
  });
2210
2210
  const renderImage$3 = (image) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? (jsx(ImgInner, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image, asSVG: true })) : null] }));
2211
2211
  const renderCardTitle = (headlineSmallVersion, title) => title ? (jsx("div", { children: jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) })) : null;
@@ -2214,9 +2214,9 @@
2214
2214
  const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
2215
2215
 
2216
2216
  const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], href, target, ...rest }) => {
2217
- return (jsx(BlockWrapper, { className: style('border border-gray min-w-[536px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? (jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$1) })) : null] })] }) }));
2217
+ return (jsx(BlockWrapper, { className: style('border border-gray', className), ...rest, children: jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: "mb-3.5", headingType: "h5", title: title }) : null, list.length ? (jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$1) })) : null] })] }) }));
2218
2218
  });
2219
- const renderList$1 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: `text-h6`, children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
2219
+ const renderList$1 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: "text-h6", children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
2220
2220
 
2221
2221
  const ICONS_MAP = [
2222
2222
  {
@@ -2272,7 +2272,7 @@
2272
2272
  const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
2273
2273
  const setAdditionalIconStyles = (items) => items.length ? 'w-1/2 flex-1 justify-center' : 'w-full justify-end';
2274
2274
  const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, version = 'primary', ...rest }) => {
2275
- return (jsx(BlockWrapper, { className: style('relative p-12 min-w-[524px] h-full flex flex-col box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [jsx("div", { className: "self-center", children: title ? jsx(Heading, { headingType: "h3", as: "h3", className: "mb-8", title: title }) : null }), jsx("div", { className: "mb-5", children: description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "group-data-gray:text-secondary-text", children: description })) : null }), jsxs("div", { className: "flex align-center w-full", children: [jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? (jsx(List, { className: "text-xl-light flex flex-col gap-2 pb-16 mb-3", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pb-0", media: socialMedia }) : null] }), renderIconBlock$1(icon, items)] })] }) }));
2275
+ return (jsx(BlockWrapper, { className: style('relative p-12 min-w-[524px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [title ? (jsx(Heading, { headingType: "h3", as: "h3", className: "text-center mb-8", title: title })) : null, jsx("div", { className: "mb-5", children: description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "group-data-gray:text-secondary-text", children: description })) : null }), jsxs("div", { className: "flex", children: [jsxs("div", { className: style('flex flex-col w-1/2', items?.length ? 'justify-between' : 'justify-end'), children: [items.length ? (jsx(List, { className: "text-xl-light flex flex-col gap-2 mt-14", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pb-0", media: socialMedia }) : null] }), renderIconBlock$1(icon, items)] })] }) }));
2276
2276
  });
2277
2277
  const renderIconBlock$1 = (icon, items) => (jsxs("div", { className: style('flex', setAdditionalIconStyles(items)), children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
2278
2278
 
@@ -4906,7 +4906,7 @@
4906
4906
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
4907
4907
  }
4908
4908
 
4909
- const packageVersion = "0.9.7";
4909
+ const packageVersion = "0.9.8";
4910
4910
 
4911
4911
  exports.Blocks = Blocks;
4912
4912
  exports.ContentPage = ContentPage;