@redneckz/wildless-cms-uni-blocks 0.14.44 → 0.14.46

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 (150) hide show
  1. package/bin/migration-scripts/0.14.44.js +103 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +27 -36
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/dist/components/Blocks.js +0 -2
  6. package/dist/components/Blocks.js.map +1 -1
  7. package/dist/components/CardTransfer/CardTransfer.js +8 -4
  8. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  9. package/dist/components/CarouselLinks/CarouselLinkButton.js +3 -3
  10. package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  11. package/dist/components/Header/DropdownMenu.js +2 -1
  12. package/dist/components/Header/DropdownMenu.js.map +1 -1
  13. package/dist/components/LinkDocs/LinkDocItem.js +2 -2
  14. package/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
  15. package/dist/ui-kit/Button/LikeButton.js +5 -9
  16. package/dist/ui-kit/Button/LikeButton.js.map +1 -1
  17. package/dist/ui-kit/Img/ImgAsPicture.js +2 -2
  18. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  19. package/dist/ui-kit/SVG.js +4 -1
  20. package/dist/ui-kit/SVG.js.map +1 -1
  21. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  22. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  23. package/lib/common.css +1 -1
  24. package/lib/components/Blocks.js +0 -2
  25. package/lib/components/Blocks.js.map +1 -1
  26. package/lib/components/CardTransfer/CardTransfer.js +8 -4
  27. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  28. package/lib/components/CarouselLinks/CarouselLinkButton.js +3 -3
  29. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  30. package/lib/components/Header/DropdownMenu.js +2 -1
  31. package/lib/components/Header/DropdownMenu.js.map +1 -1
  32. package/lib/components/LinkDocs/LinkDocItem.js +2 -2
  33. package/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  34. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -0
  35. package/lib/ui-kit/Button/LikeButton.js +5 -9
  36. package/lib/ui-kit/Button/LikeButton.js.map +1 -1
  37. package/lib/ui-kit/Img/ImgAsPicture.js +2 -2
  38. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  39. package/lib/ui-kit/SVG.js +4 -1
  40. package/lib/ui-kit/SVG.js.map +1 -1
  41. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  42. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  43. package/mobile/bundle/bundle.umd.js +25 -23
  44. package/mobile/bundle/bundle.umd.min.js +1 -1
  45. package/mobile/dist/components/CardTransfer/CardTransfer.js +8 -4
  46. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  47. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +3 -3
  48. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  49. package/mobile/dist/components/Header/DropdownMenu.js +2 -1
  50. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  51. package/mobile/dist/components/LinkDocs/LinkDocItem.js +2 -2
  52. package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
  53. package/mobile/dist/ui-kit/Button/LikeButton.js +5 -9
  54. package/mobile/dist/ui-kit/Button/LikeButton.js.map +1 -1
  55. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +2 -2
  56. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  57. package/mobile/dist/ui-kit/SVG.js +4 -1
  58. package/mobile/dist/ui-kit/SVG.js.map +1 -1
  59. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  60. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  61. package/mobile/lib/common.css +1 -1
  62. package/mobile/lib/components/CardTransfer/CardTransfer.js +8 -4
  63. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  64. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +3 -3
  65. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  66. package/mobile/lib/components/Header/DropdownMenu.js +2 -1
  67. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  68. package/mobile/lib/components/LinkDocs/LinkDocItem.js +2 -2
  69. package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  70. package/mobile/lib/ui-kit/Button/LikeButton.js +5 -9
  71. package/mobile/lib/ui-kit/Button/LikeButton.js.map +1 -1
  72. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +2 -2
  73. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  74. package/mobile/lib/ui-kit/SVG.js +4 -1
  75. package/mobile/lib/ui-kit/SVG.js.map +1 -1
  76. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  77. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  78. package/mobile/src/components/CardTransfer/CardTransfer.tsx +10 -7
  79. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +5 -3
  80. package/mobile/src/components/Header/DropdownMenu.tsx +5 -2
  81. package/mobile/src/components/LinkDocs/LinkDocItem.tsx +4 -5
  82. package/mobile/src/ui-kit/Button/LikeButton.tsx +18 -17
  83. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -2
  84. package/mobile/src/ui-kit/SVG.tsx +16 -3
  85. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  86. package/package.json +1 -1
  87. package/src/components/Blocks.ts +0 -2
  88. package/src/components/CardTransfer/CardTransfer.tsx +10 -7
  89. package/src/components/CarouselLinks/CarouselLinkButton.tsx +5 -3
  90. package/src/components/Header/DropdownMenu.tsx +5 -2
  91. package/src/components/LinkDocs/LinkDocItem.tsx +4 -5
  92. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +62 -0
  93. package/src/ui-kit/Button/LikeButton.tsx +18 -17
  94. package/src/ui-kit/Img/ImgAsPicture.tsx +4 -2
  95. package/src/ui-kit/SVG.tsx +16 -3
  96. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  97. package/bundle/components/BusinessBlock/BusinessBlock.d.ts +0 -5
  98. package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
  99. package/bundle/components/BusinessBlock/BusinessCard.d.ts +0 -2
  100. package/dist/components/BusinessBlock/BusinessBlock.d.ts +0 -5
  101. package/dist/components/BusinessBlock/BusinessBlock.js +0 -9
  102. package/dist/components/BusinessBlock/BusinessBlock.js.map +0 -1
  103. package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
  104. package/dist/components/BusinessBlock/BusinessBlockContent.js +0 -2
  105. package/dist/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
  106. package/dist/components/BusinessBlock/BusinessCard.d.ts +0 -2
  107. package/dist/components/BusinessBlock/BusinessCard.js +0 -17
  108. package/dist/components/BusinessBlock/BusinessCard.js.map +0 -1
  109. package/lib/components/BusinessBlock/BusinessBlock.d.ts +0 -5
  110. package/lib/components/BusinessBlock/BusinessBlock.fixture.d.ts +0 -6
  111. package/lib/components/BusinessBlock/BusinessBlock.js +0 -7
  112. package/lib/components/BusinessBlock/BusinessBlock.js.map +0 -1
  113. package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
  114. package/lib/components/BusinessBlock/BusinessBlockContent.js +0 -2
  115. package/lib/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
  116. package/lib/components/BusinessBlock/BusinessCard.d.ts +0 -2
  117. package/lib/components/BusinessBlock/BusinessCard.js +0 -15
  118. package/lib/components/BusinessBlock/BusinessCard.js.map +0 -1
  119. package/mobile/bundle/components/BusinessBlock/BusinessBlock.d.ts +0 -5
  120. package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
  121. package/mobile/bundle/components/BusinessBlock/BusinessCard.d.ts +0 -2
  122. package/mobile/dist/components/BusinessBlock/BusinessBlock.d.ts +0 -5
  123. package/mobile/dist/components/BusinessBlock/BusinessBlock.js +0 -9
  124. package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +0 -1
  125. package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
  126. package/mobile/dist/components/BusinessBlock/BusinessBlockContent.js +0 -2
  127. package/mobile/dist/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
  128. package/mobile/dist/components/BusinessBlock/BusinessCard.d.ts +0 -2
  129. package/mobile/dist/components/BusinessBlock/BusinessCard.js +0 -17
  130. package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +0 -1
  131. package/mobile/lib/components/BusinessBlock/BusinessBlock.d.ts +0 -5
  132. package/mobile/lib/components/BusinessBlock/BusinessBlock.js +0 -7
  133. package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +0 -1
  134. package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +0 -25
  135. package/mobile/lib/components/BusinessBlock/BusinessBlockContent.js +0 -2
  136. package/mobile/lib/components/BusinessBlock/BusinessBlockContent.js.map +0 -1
  137. package/mobile/lib/components/BusinessBlock/BusinessCard.d.ts +0 -2
  138. package/mobile/lib/components/BusinessBlock/BusinessCard.js +0 -15
  139. package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +0 -1
  140. package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +0 -97
  141. package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +0 -17
  142. package/mobile/src/components/BusinessBlock/BusinessBlock.ui.json +0 -29
  143. package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +0 -30
  144. package/mobile/src/components/BusinessBlock/BusinessCard.tsx +0 -42
  145. package/src/components/BusinessBlock/BusinessBlock.example.json +0 -97
  146. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +0 -75
  147. package/src/components/BusinessBlock/BusinessBlock.tsx +0 -17
  148. package/src/components/BusinessBlock/BusinessBlock.ui.json +0 -29
  149. package/src/components/BusinessBlock/BusinessBlockContent.ts +0 -30
  150. package/src/components/BusinessBlock/BusinessCard.tsx +0 -42
@@ -1181,7 +1181,10 @@
1181
1181
  });
1182
1182
 
1183
1183
  const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1184
- return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
1184
+ return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => {
1185
+ const resultOptions = { ...commonOptions, ...options };
1186
+ return (jsx("path", { d: d, fill: pathFill || 'currentColor', stroke: resultOptions.stroke, strokeLinecap: resultOptions.strokeLinecap, strokeLinejoin: resultOptions.strokeLinejoin, strokeWidth: resultOptions.strokeWidth, strokeMiterlimit: resultOptions.strokeMiterlimit }, i));
1187
+ }) }));
1185
1188
  });
1186
1189
 
1187
1190
  const CHECK_PATHS = [
@@ -1407,7 +1410,7 @@
1407
1410
  ? image.sources
1408
1411
  .filter((_) => _?.src)
1409
1412
  .sort(sourcesComparator)
1410
- .map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
1413
+ .map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', width: image.size?.width, height: image.size?.height }, `${index}_${src}`)))
1411
1414
  : null, image?.src
1412
1415
  ? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName)
1413
1416
  : null] }));
@@ -1415,7 +1418,7 @@
1415
1418
  const renderImg = (image, imageClassName = '') => (jsx("img", { src: image.src, className: style('object-contain', imageClassName), alt: image.alt || image.title, title: image.title || '', style: {
1416
1419
  width: image.size?.width ? `${image.size?.width}px` : '100%',
1417
1420
  height: image.size?.height ? `${image.size?.height}px` : 'auto',
1418
- }, ...image.size }));
1421
+ }, width: image.size?.width, height: image.size?.height }));
1419
1422
  const adjustSrc = (router, pathPrefix) => (src) => src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
1420
1423
  const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined;
1421
1424
 
@@ -1685,17 +1688,6 @@
1685
1688
  ? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
1686
1689
  : null] })));
1687
1690
 
1688
- const BusinessCard = JSX((props) => {
1689
- const { title, image, cardItems, button } = props;
1690
- return (jsxs("div", { className: "border-gray border p-4xl w-1/2 space-y-lg", children: [image ? (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? jsx(Img, { image: image }) : null] })) : null, title ? jsx(Heading, { headingType: "h4", title: title }) : null, cardItems?.length ? (jsx("ul", { className: "space-y-s", children: cardItems.map((_, i) => renderItem(_, String(i))) })) : null, renderButtonsSection([button])] }));
1691
- });
1692
- const renderItem = (item, key) => {
1693
- const { icon, text } = item;
1694
- return (jsxs("li", { className: "flex items-center gap-s", children: [icon?.icon ? (jsx(Img, { image: icon, className: "w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider" })) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx(Text, { size: "text-xl", font: "font-light", children: text })] }, key));
1695
- };
1696
-
1697
- const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), jsx("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
1698
-
1699
1691
  const AlignJustifyStyle = {
1700
1692
  start: 'justify-start',
1701
1693
  center: 'justify-center',
@@ -2532,16 +2524,19 @@
2532
2524
  };
2533
2525
  const INITIAL_FORM_STATE = {
2534
2526
  amount: 1500,
2535
- _amount: 1500,
2536
2527
  };
2537
2528
  const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, button, formType = 'private', ...rest }) => {
2538
- const [{ amount, _amount }, { field }] = useForm(INITIAL_FORM_STATE);
2539
- const isDisabled = amount <= 0;
2529
+ const [{ amount }, { field }] = useForm(INITIAL_FORM_STATE);
2530
+ const [isDisabled, setDisabled] = useState(false);
2531
+ useEffect(() => {
2532
+ setDisabled(amount <= 0);
2533
+ }, [amount]);
2540
2534
  const buttonStyle = isDisabled
2541
2535
  ? getDisabledButtonClasses({ version: button?.version })
2542
2536
  : getRegularButtonClasses({ className: 'text-white', version: button?.version });
2543
2537
  const link = useLink();
2544
- return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [jsx(CurrencyInput, { name: "_amount", valid: !isDisabled, placeholder: placeholder, label: label, ...field('_amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: _amount }), button?.text ? (jsx("button", { type: "submit", className: style('w-full p-m mt-lg', buttonStyle), disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
2538
+ const { onClick } = link(button || {});
2539
+ return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [jsx(CurrencyInput, { valid: !isDisabled, placeholder: placeholder, label: label, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx("button", { type: "submit", className: style('w-full p-m mt-lg', buttonStyle), disabled: isDisabled, onClick: onClick, children: button.text })) : null] })] }));
2545
2540
  });
2546
2541
 
2547
2542
  const mapChildren = (mapper) => (children) => {
@@ -2626,7 +2621,7 @@
2626
2621
  });
2627
2622
  }
2628
2623
  };
2629
- return dotCount ? (jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
2624
+ return dotCount ? (jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className), "data-ver": version, children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
2630
2625
  });
2631
2626
 
2632
2627
  const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
@@ -2898,10 +2893,10 @@
2898
2893
  const LINK_CLASS_NAME = `absolute border
2899
2894
  bg-white flex justify-between group-hover/link:text-primary-main`;
2900
2895
  const LINK_BORDER_CLASS_NAME = 'hidden xl:block absolute w-full h-full border border-white';
2901
- const CarouselLinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
2896
+ const CarouselLinkButton = JSX(({ className = '', ...linkProps }) => {
2902
2897
  const link = useLink();
2903
- const adjustedProps = link({ href, target });
2904
- return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s min-w-[16rem] xl:min-w-[20rem]', className), children: jsxs("div", { className: "relative min-h-16 w-full", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap z-10'), role: "link", ...adjustedProps, children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }), jsx(Img, { className: "group-hover/link:brightness-100 hidden xl:block ml-2xs", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main hidden xl:block", width: "24", height: "24" })] }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-1.5 -left-1.5') }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-3 -left-3') })] }) })) : null;
2898
+ const { text, href, target, onClick } = link(linkProps);
2899
+ return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s min-w-[16rem] xl:min-w-[20rem]', className), children: jsxs("div", { className: "relative min-h-16 w-full", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap z-10'), role: "link", href: href, target: target, onClick: onClick, children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }), jsx(Img, { className: "group-hover/link:brightness-100 hidden xl:block ml-2xs", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main hidden xl:block", width: "24", height: "24" })] }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-1.5 -left-1.5') }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-3 -left-3') })] }) })) : null;
2905
2900
  });
2906
2901
 
2907
2902
  const MAX_LINKS_COUNT = 10;
@@ -4107,7 +4102,8 @@
4107
4102
  .fill(null)
4108
4103
  .map((_, i) => (jsx("div", { className: "w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), jsx("div", { className: style('absolute flex flex-col rounded-md bg-white p-xl pb-xs', visible ? '' : 'hidden'), "aria-hidden": !visible, children: items?.map((item, i) => {
4109
4104
  const { text, ...linkProps } = item;
4110
- return (jsx("a", { className: style('text-l font-light pb-m hover:text-primary-main', item === activeItem ? 'text-primary-main' : ''), ...link(linkProps), children: text }, item.href || String(i)));
4105
+ const { href, target, onClick } = link(linkProps);
4106
+ return (jsx("a", { className: style('text-l font-light pb-m hover:text-primary-main', item === activeItem ? 'text-primary-main' : ''), href: href, target: target, onClick: onClick, children: text }, href || String(i)));
4111
4107
  }) })] }));
4112
4108
  });
4113
4109
 
@@ -4378,11 +4374,11 @@
4378
4374
  return `${parseFloat((bytes / Math.pow(KILO, i)).toFixed(decimals))} ${KILO_SIZES[i]}`;
4379
4375
  };
4380
4376
 
4381
- const LinkDocItem = JSX(({ icon, text, fileFormat, fileSize, ...linkProps }) => {
4377
+ const LinkDocItem = JSX(({ icon, text, href, target, fileFormat, fileSize }) => {
4382
4378
  const prefix = fileFormat || fileSize ? ',' : '';
4383
4379
  const size = fileSize ?? '';
4384
4380
  const format = fileFormat ? String(fileFormat) : '';
4385
- return (jsxs("a", { className: "flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", ...linkProps, children: [icon, text ? (jsxs(Text, { size: "text-l", font: "font-light", children: [text, jsx(Text, { color: "text-secondary-text", children: linkProps?.href && `${size} ${prefix} ${format}` })] })) : null] }));
4381
+ return (jsxs("a", { className: "flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", href: href, target: target, children: [icon, text ? (jsxs(Text, { size: "text-l", font: "font-light", children: [text, jsx(Text, { color: "text-secondary-text", children: href && `${size} ${prefix} ${format}` })] })) : null] }));
4386
4382
  });
4387
4383
 
4388
4384
  const linkIconStyle = 'min-w-6 min-h-6';
@@ -5533,7 +5529,6 @@
5533
5529
  BenefitsBlock,
5534
5530
  Bonus,
5535
5531
  BonusBenefitsBlock,
5536
- BusinessBlock,
5537
5532
  ButtonsBlock,
5538
5533
  Calculator,
5539
5534
  CardTransfer,
@@ -5783,16 +5778,12 @@
5783
5778
 
5784
5779
  const LikeButton = JSX(({ className, onClick, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 w-9 bg-inherit cursor-pointer ${className || ''}`, onClick: onClick, "aria-label": ariaLabel, children: renderLikeIcon() })));
5785
5780
  const renderLikeIcon = () => {
5786
- const params = {
5787
- stroke: '#292D32',
5788
- strokeLinecap: 'round',
5789
- strokeLinejoin: 'round',
5790
- strokeWidth: '1.5',
5791
- };
5792
- return (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [jsx("path", { ...params, strokeMiterlimit: "10",
5793
- /* eslint-disable max-len */
5794
- d: "M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77" }), jsx("path", { ...params, d: "M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z" })] }));
5781
+ const handPath = 'M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1' +
5782
+ ' 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77';
5783
+ const cuffPath = 'M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z';
5784
+ return (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [renderLinkIconPath(handPath), renderLinkIconPath(cuffPath)] }));
5795
5785
  };
5786
+ const renderLinkIconPath = (d) => (jsx("path", { stroke: "#292D32", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", strokeMiterlimit: "10", d: d }));
5796
5787
 
5797
5788
  const LikeControl = JSX(({ className = '' }) => {
5798
5789
  const router = useRouter();
@@ -5818,7 +5809,7 @@
5818
5809
  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" }) }));
5819
5810
  }
5820
5811
 
5821
- const packageVersion = "0.14.43";
5812
+ const packageVersion = "0.14.45";
5822
5813
 
5823
5814
  exports.Blocks = Blocks;
5824
5815
  exports.ContentPage = ContentPage;