@redneckz/wildless-cms-uni-blocks 0.14.70 → 0.14.71

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 (70) hide show
  1. package/bin/migration-scripts/0.14.62.js +3 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +8 -10
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  6. package/bundle/ui-kit/List/ListContent.d.ts +2 -0
  7. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  8. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  9. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
  10. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  11. package/dist/components/StepsBlock/StepsBlock.js +2 -2
  12. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  13. package/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  14. package/dist/ui-kit/List/List.js +2 -2
  15. package/dist/ui-kit/List/List.js.map +1 -1
  16. package/dist/ui-kit/List/ListContent.d.ts +2 -0
  17. package/dist/ui-kit/List/ListItem.js +1 -1
  18. package/dist/ui-kit/List/ListItem.js.map +1 -1
  19. package/lib/common.css +1 -1
  20. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  21. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  22. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
  23. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  24. package/lib/components/StepsBlock/StepsBlock.js +2 -2
  25. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  26. package/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  27. package/lib/ui-kit/List/List.js +2 -2
  28. package/lib/ui-kit/List/List.js.map +1 -1
  29. package/lib/ui-kit/List/ListContent.d.ts +2 -0
  30. package/lib/ui-kit/List/ListItem.js +1 -1
  31. package/lib/ui-kit/List/ListItem.js.map +1 -1
  32. package/mobile/bundle/bundle.umd.js +6 -8
  33. package/mobile/bundle/bundle.umd.min.js +1 -1
  34. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  35. package/mobile/bundle/ui-kit/List/ListContent.d.ts +2 -0
  36. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  37. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  38. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
  39. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  40. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  41. package/mobile/dist/ui-kit/List/List.js +2 -2
  42. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  43. package/mobile/dist/ui-kit/List/ListContent.d.ts +2 -0
  44. package/mobile/dist/ui-kit/List/ListItem.js +1 -1
  45. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  46. package/mobile/lib/common.css +1 -1
  47. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  48. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  49. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -3
  50. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  51. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +2 -2
  52. package/mobile/lib/ui-kit/List/List.js +2 -2
  53. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  54. package/mobile/lib/ui-kit/List/ListContent.d.ts +2 -0
  55. package/mobile/lib/ui-kit/List/ListItem.js +1 -1
  56. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  57. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  58. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +37 -39
  59. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +3 -6
  60. package/mobile/src/ui-kit/List/List.tsx +6 -2
  61. package/mobile/src/ui-kit/List/ListContent.ts +2 -0
  62. package/mobile/src/ui-kit/List/ListItem.tsx +1 -1
  63. package/package.json +1 -1
  64. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  65. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +37 -39
  66. package/src/components/StepsBlock/StepsBlock.tsx +1 -2
  67. package/src/components/StepsBlock/StepsBlockContent.ts +3 -6
  68. package/src/ui-kit/List/List.tsx +6 -2
  69. package/src/ui-kit/List/ListContent.ts +2 -0
  70. package/src/ui-kit/List/ListItem.tsx +1 -1
@@ -745,7 +745,7 @@
745
745
  };
746
746
  const renderButtonIcon = (icon) => isIcon(icon) ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
747
747
 
748
- const ListItem = JSX(({ className, isDotted, dotClassName, children }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', dotClassName) }) })) : null, jsx("span", { children: children })] })));
748
+ const ListItem = JSX(({ className, isDotted, dotClassName, children }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full group-data-secondary:bg-white', dotClassName) }) })) : null, jsx("span", { children: children })] })));
749
749
 
750
750
  const LIST_VERSION_STYLE = {
751
751
  S: {
@@ -764,9 +764,9 @@
764
764
  dotStyle: 'w-1.5 h-1.5 mr-m',
765
765
  },
766
766
  };
767
- const List = JSX(({ className, isDotted = true, items = [], listItemSize = 'M' }) => {
767
+ const List = JSX(({ className, isDotted = true, items = [], listItemSize = 'M', dotClassName = '' }) => {
768
768
  const versionStyle = LIST_VERSION_STYLE[listItemSize];
769
- return items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', versionStyle.textSize, className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, dotClassName: versionStyle.dotStyle, children: item }, String(i)))) })) : null;
769
+ return items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', versionStyle.textSize, className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, dotClassName: style(dotClassName || 'bg-primary-text', versionStyle.dotStyle), children: item }, String(i)))) })) : null;
770
770
  });
771
771
 
772
772
  const toLocalNumberFormat = (fractionDigits = 0) => (_ = 0) => new Intl.NumberFormat('ru-RU', {
@@ -1804,7 +1804,7 @@
1804
1804
  const defaultIconSize = 56;
1805
1805
 
1806
1806
  const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: AlignStyles, title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
1807
- const renderBenefit = ({ label, description, items, icon, iconBgVersion, isDotted = false }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: iconBgVersion || '', ...icon })) : null, icon?.src ? jsx(Img, { className: "shrink-0", image: icon }) : null, label ? (jsxs("div", { className: "@sm:h-full space-y-xs", children: [jsx(Heading, { headingType: "h6", children: label }), jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), jsx(List, { className: "text-secondary-text", listItemSize: "S", items: items, isDotted: isDotted })] })) : null] }, String(i)));
1807
+ const renderBenefit = ({ label, description, items, icon, iconBgVersion, isDotted = false }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: iconBgVersion || '', ...icon })) : null, icon?.src ? jsx(Img, { className: "shrink-0", image: icon }) : null, label ? (jsxs("div", { className: "@sm:h-full space-y-xs", children: [jsx(Heading, { headingType: "h6", children: label }), jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), jsx(List, { dotClassName: "bg-secondary-text", listItemSize: "S", items: items, isDotted: isDotted })] })) : null] }, String(i)));
1808
1808
 
1809
1809
  const Bonus = JSX(({ className = '', title, description, bonusItems = [], align = AlignStyles, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isEmbedded: true, title: title, description: description, headlineVersion: "M", align: align }), jsx("div", { className: "flex flex-wrap gap-3xl gap-x-m w-full", children: bonusItems.length > 0
1810
1810
  ? bonusItems.map((_, i) => (jsxs("div", { className: "w-full @xl:w-[48%] sm:space-y-xs flex flex-col grow p-xl sm:p-m border border-gray", children: [jsx("div", { className: "grow", children: jsx(Headline, { title: _?.title, description: _?.description, headlineVersion: "S", isEmbedded: true, align: "text-left" }) }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
@@ -3118,9 +3118,7 @@
3118
3118
  const ImageAlwaysOnRight = false;
3119
3119
 
3120
3120
  //TODO: replace SocialMedia with renderButtonSection
3121
- const CarouselRecommendationCard = JSX(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted, socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => {
3122
- 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, isDotted: isDotted, listItemSize: "S" }), renderAdditionalDescription(additionalDescription, align)] }) }) }));
3123
- });
3121
+ const CarouselRecommendationCard = JSX(({ className, padding, description, additionalDescription, href, icon, items = [], isDotted, socialMedia = [], target, title, align = 'text-left', benefits, imageOptions: { directionRight = true, isImageAlwaysOnRight = ImageAlwaysOnRight, isImageSecondary = false, } = {}, ...rest }) => (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, isDotted: isDotted, listItemSize: "S" }), renderAdditionalDescription(additionalDescription, align)] }) }) })));
3124
3122
  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;
3125
3123
 
3126
3124
  const renderCardInfo = (cell, i) => {
@@ -5460,7 +5458,7 @@
5460
5458
 
5461
5459
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
5462
5460
 
5463
- const packageVersion = "0.14.69";
5461
+ const packageVersion = "0.14.70";
5464
5462
 
5465
5463
  exports.Blocks = Blocks;
5466
5464
  exports.ContentPage = ContentPage;