@redneckz/wildless-cms-uni-blocks 0.9.1 → 0.9.3

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 (75) hide show
  1. package/bin/migration-scripts/0.5.14.js +6 -0
  2. package/bin/migration-scripts/0.8.17.js +6 -0
  3. package/bin/migration-scripts/0.8.24.js +8 -2
  4. package/bin/migration-scripts/0.8.8.js +6 -0
  5. package/bin/migration-scripts/{0.8.31.js → 0.9.3.js} +14 -12
  6. package/bundle/blocks.schema.json +1 -1
  7. package/bundle/bundle.umd.js +12 -4
  8. package/bundle/bundle.umd.min.js +1 -1
  9. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  10. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  11. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  12. package/bundle/components/Footer/FooterContent.d.ts +2 -2
  13. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  14. package/dist/components/CarouselEventCard/CarouselEventCard.js +9 -3
  15. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  16. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  17. package/dist/components/CarouselProductCard/CarouselProductCard.js +9 -5
  18. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  19. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  20. package/dist/components/Footer/FooterContent.d.ts +2 -2
  21. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  22. package/lib/components/CarouselEventCard/CarouselEventCard.js +9 -3
  23. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  24. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  25. package/lib/components/CarouselProductCard/CarouselProductCard.js +9 -5
  26. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  27. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  28. package/lib/components/Footer/FooterContent.d.ts +2 -2
  29. package/mobile/bundle/bundle.umd.js +1 -1
  30. package/mobile/bundle/bundle.umd.min.js +1 -1
  31. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  32. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  33. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  34. package/mobile/bundle/components/Footer/FooterContent.d.ts +2 -2
  35. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  36. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +9 -3
  37. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  38. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  39. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +9 -5
  40. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  41. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  42. package/mobile/dist/components/Footer/FooterContent.d.ts +2 -2
  43. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +1 -1
  44. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +9 -3
  45. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  46. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
  47. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +9 -5
  48. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  49. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -1
  50. package/mobile/lib/components/Footer/FooterContent.d.ts +2 -2
  51. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +0 -1
  52. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +1 -3
  53. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +19 -9
  54. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -1
  55. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +21 -12
  56. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +3 -1
  57. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +0 -2
  58. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +0 -1
  59. package/mobile/src/components/Footer/Footer.ui.json +1 -11
  60. package/mobile/src/components/Footer/FooterContent.ts +2 -3
  61. package/package.json +1 -1
  62. package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +0 -1
  63. package/src/components/CarouselEventCard/CarouselEventCard.example.json +1 -3
  64. package/src/components/CarouselEventCard/CarouselEventCard.tsx +19 -9
  65. package/src/components/CarouselProductCard/CarouselProductCard.example.json +0 -1
  66. package/src/components/CarouselProductCard/CarouselProductCard.tsx +21 -12
  67. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +3 -1
  68. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +0 -2
  69. package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +0 -1
  70. package/src/components/Footer/Footer.ui.json +1 -11
  71. package/src/components/Footer/FooterContent.ts +2 -3
  72. package/bin/migration-scripts/0.4.5.js +0 -109
  73. package/bin/migration-scripts/0.5.10.js +0 -36
  74. package/bin/migration-scripts/0.6.16.js +0 -90
  75. package/bin/migration-scripts/0.6.34.js +0 -53
@@ -2088,7 +2088,12 @@
2088
2088
  iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
2089
2089
  });
2090
2090
 
2091
- const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col w-[365px]', className), ...rest, children: jsxs("a", { href: href, target: target, role: "link", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }) })));
2091
+ const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
2092
+ const link = useLink();
2093
+ const adjustedProps = link({ href, target });
2094
+ const tagName = href ? 'a' : 'section';
2095
+ return (jsxs(BlockWrapper, { className: style('flex flex-col w-[365px]', className), extraProps: adjustedProps, tag: tagName, ...rest, children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }));
2096
+ });
2092
2097
 
2093
2098
  const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
2094
2099
 
@@ -2152,8 +2157,11 @@
2152
2157
  };
2153
2158
  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);
2154
2159
 
2155
- const CarouselProductCard = JSX(({ className = '', title, headlineSmallVersion = 'H6', description, additionalDescription, icon, items = [], button = {}, version = 'primary', isDotted = true, align = 'text-center', ...rest }) => {
2156
- return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], { buttonClassName: 'mt-6 w-full' })] }));
2160
+ const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, items = [], target, title, version = 'primary', ...rest }) => {
2161
+ const link = useLink();
2162
+ const adjustedProps = link({ href, target });
2163
+ const tagName = href ? 'a' : 'section';
2164
+ return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6', 'box-border border-solid border border-gray', align, className), extraProps: adjustedProps, tag: tagName, version: version, ...rest, children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], { buttonClassName: 'mt-6 w-full' })] }));
2157
2165
  });
2158
2166
  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] }));
2159
2167
  const renderCardTitle = (headlineSmallVersion, title) => title ? jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
@@ -4812,7 +4820,7 @@
4812
4820
  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" }) }));
4813
4821
  }
4814
4822
 
4815
- const packageVersion = "0.9.1";
4823
+ const packageVersion = "0.9.3";
4816
4824
 
4817
4825
  exports.Blocks = Blocks;
4818
4826
  exports.ContentPage = ContentPage;