@redneckz/wildless-cms-uni-blocks 0.14.43 → 0.14.45

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 (138) hide show
  1. package/bundle/bundle.umd.js +29 -26
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/ApplicationForm/renderWedTextarea.js +1 -1
  4. package/dist/components/ApplicationForm/renderWedTextarea.js.map +1 -1
  5. package/dist/components/Blocks.mobile.js +3 -1
  6. package/dist/components/Blocks.mobile.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/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  16. package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  17. package/dist/components/ProductGallery/ProductGallery.mobile.js +1 -1
  18. package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
  19. package/dist/ui-kit/Button/LikeButton.js +5 -9
  20. package/dist/ui-kit/Button/LikeButton.js.map +1 -1
  21. package/dist/ui-kit/Img/ImgAsPicture.js +2 -2
  22. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  23. package/dist/ui-kit/SVG.js +4 -1
  24. package/dist/ui-kit/SVG.js.map +1 -1
  25. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  26. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  27. package/lib/components/ApplicationForm/renderWedTextarea.js +1 -1
  28. package/lib/components/ApplicationForm/renderWedTextarea.js.map +1 -1
  29. package/lib/components/Blocks.mobile.js +3 -1
  30. package/lib/components/Blocks.mobile.js.map +1 -1
  31. package/lib/components/CardTransfer/CardTransfer.js +8 -4
  32. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  33. package/lib/components/CarouselLinks/CarouselLinkButton.js +3 -3
  34. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  35. package/lib/components/Header/DropdownMenu.js +2 -1
  36. package/lib/components/Header/DropdownMenu.js.map +1 -1
  37. package/lib/components/LinkDocs/LinkDocItem.js +2 -2
  38. package/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  39. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.fixture.d.ts +1 -0
  40. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.fixture.mobile.d.ts +7 -0
  41. package/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +0 -1
  42. package/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +0 -1
  43. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +0 -1
  44. package/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +0 -1
  45. package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +0 -1
  46. package/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  47. package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  48. package/lib/components/ProductGallery/ProductGallery.mobile.js +1 -1
  49. package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
  50. package/lib/ui-kit/Button/LikeButton.js +5 -9
  51. package/lib/ui-kit/Button/LikeButton.js.map +1 -1
  52. package/lib/ui-kit/Img/ImgAsPicture.js +2 -2
  53. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  54. package/lib/ui-kit/SVG.js +4 -1
  55. package/lib/ui-kit/SVG.js.map +1 -1
  56. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  57. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  58. package/mobile/bundle/bundle.umd.js +383 -128
  59. package/mobile/bundle/bundle.umd.min.js +1 -1
  60. package/mobile/dist/components/ApplicationForm/renderWedTextarea.js +1 -1
  61. package/mobile/dist/components/ApplicationForm/renderWedTextarea.js.map +1 -1
  62. package/mobile/dist/components/Blocks.js +3 -1
  63. package/mobile/dist/components/Blocks.js.map +1 -1
  64. package/mobile/dist/components/CardTransfer/CardTransfer.js +8 -4
  65. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  66. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +3 -3
  67. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  68. package/mobile/dist/components/Header/DropdownMenu.js +2 -1
  69. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  70. package/mobile/dist/components/LinkDocs/LinkDocItem.js +2 -2
  71. package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
  72. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  73. package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  74. package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
  75. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  76. package/mobile/dist/ui-kit/Button/LikeButton.js +5 -9
  77. package/mobile/dist/ui-kit/Button/LikeButton.js.map +1 -1
  78. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +2 -2
  79. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  80. package/mobile/dist/ui-kit/SVG.js +4 -1
  81. package/mobile/dist/ui-kit/SVG.js.map +1 -1
  82. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  83. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  84. package/mobile/lib/components/ApplicationForm/renderWedTextarea.js +1 -1
  85. package/mobile/lib/components/ApplicationForm/renderWedTextarea.js.map +1 -1
  86. package/mobile/lib/components/Blocks.js +3 -1
  87. package/mobile/lib/components/Blocks.js.map +1 -1
  88. package/mobile/lib/components/CardTransfer/CardTransfer.js +8 -4
  89. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  90. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +3 -3
  91. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  92. package/mobile/lib/components/Header/DropdownMenu.js +2 -1
  93. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  94. package/mobile/lib/components/LinkDocs/LinkDocItem.js +2 -2
  95. package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  96. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +1 -1
  97. package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
  98. package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
  99. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  100. package/mobile/lib/ui-kit/Button/LikeButton.js +5 -9
  101. package/mobile/lib/ui-kit/Button/LikeButton.js.map +1 -1
  102. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +2 -2
  103. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  104. package/mobile/lib/ui-kit/SVG.js +4 -1
  105. package/mobile/lib/ui-kit/SVG.js.map +1 -1
  106. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  107. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  108. package/mobile/src/components/ApplicationForm/renderWedTextarea.tsx +2 -1
  109. package/mobile/src/components/BenefitsBlock/BenefitsBlock.example.json +1 -1
  110. package/mobile/src/components/Blocks.ts +3 -1
  111. package/mobile/src/components/CardTransfer/CardTransfer.tsx +10 -7
  112. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +5 -3
  113. package/mobile/src/components/Header/DropdownMenu.tsx +5 -2
  114. package/mobile/src/components/LinkDocs/LinkDocItem.tsx +4 -5
  115. package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +3 -1
  116. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -1
  117. package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
  118. package/mobile/src/ui-kit/Button/LikeButton.tsx +18 -17
  119. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +4 -2
  120. package/mobile/src/ui-kit/SVG.tsx +16 -3
  121. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  122. package/package.json +1 -1
  123. package/src/components/ApplicationForm/renderWedTextarea.tsx +2 -1
  124. package/src/components/BenefitsBlock/BenefitsBlock.example.json +1 -1
  125. package/src/components/Blocks.mobile.ts +3 -1
  126. package/src/components/CardTransfer/CardTransfer.tsx +10 -7
  127. package/src/components/CarouselLinks/CarouselLinkButton.tsx +5 -3
  128. package/src/components/Header/DropdownMenu.tsx +5 -2
  129. package/src/components/LinkDocs/LinkDocItem.tsx +4 -5
  130. package/src/components/OfficesAtmsMap/OfficesAtmsMap.fixture.mobile.tsx +43 -0
  131. package/src/components/OfficesAtmsMap/OfficesAtmsMap.fixture.tsx +2 -0
  132. package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +3 -1
  133. package/src/components/ProductBlock/ProductBlock.example.json +1 -1
  134. package/src/components/ProductGallery/ProductGallery.mobile.tsx +1 -1
  135. package/src/ui-kit/Button/LikeButton.tsx +18 -17
  136. package/src/ui-kit/Img/ImgAsPicture.tsx +4 -2
  137. package/src/ui-kit/SVG.tsx +16 -3
  138. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
@@ -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
 
@@ -1443,7 +1446,7 @@
1443
1446
  const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
1444
1447
  const renderWedTextarea = (field) => {
1445
1448
  const textField = field('text');
1446
- return (jsxs("label", { children: [jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: "\u041E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435" }) }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: style('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }));
1449
+ return (jsxs("label", { htmlFor: "textarea", children: [jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: "\u041E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435" }) }), jsx("textarea", { id: "textarea", placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: style('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }));
1447
1450
  };
1448
1451
 
1449
1452
  const initialFormState = {
@@ -2532,16 +2535,19 @@
2532
2535
  };
2533
2536
  const INITIAL_FORM_STATE = {
2534
2537
  amount: 1500,
2535
- _amount: 1500,
2536
2538
  };
2537
2539
  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;
2540
+ const [{ amount }, { field }] = useForm(INITIAL_FORM_STATE);
2541
+ const [isDisabled, setDisabled] = useState(false);
2542
+ useEffect(() => {
2543
+ setDisabled(amount <= 0);
2544
+ }, [amount]);
2540
2545
  const buttonStyle = isDisabled
2541
2546
  ? getDisabledButtonClasses({ version: button?.version })
2542
2547
  : getRegularButtonClasses({ className: 'text-white', version: button?.version });
2543
2548
  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] })] }));
2549
+ const { onClick } = link(button || {});
2550
+ 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
2551
  });
2546
2552
 
2547
2553
  const mapChildren = (mapper) => (children) => {
@@ -2626,7 +2632,7 @@
2626
2632
  });
2627
2633
  }
2628
2634
  };
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;
2635
+ 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
2636
  });
2631
2637
 
2632
2638
  const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
@@ -2898,10 +2904,10 @@
2898
2904
  const LINK_CLASS_NAME = `absolute border
2899
2905
  bg-white flex justify-between group-hover/link:text-primary-main`;
2900
2906
  const LINK_BORDER_CLASS_NAME = 'hidden xl:block absolute w-full h-full border border-white';
2901
- const CarouselLinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
2907
+ const CarouselLinkButton = JSX(({ className = '', ...linkProps }) => {
2902
2908
  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;
2909
+ const { text, href, target, onClick } = link(linkProps);
2910
+ 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
2911
  });
2906
2912
 
2907
2913
  const MAX_LINKS_COUNT = 10;
@@ -4107,7 +4113,8 @@
4107
4113
  .fill(null)
4108
4114
  .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
4115
  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)));
4116
+ const { href, target, onClick } = link(linkProps);
4117
+ 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
4118
  }) })] }));
4112
4119
  });
4113
4120
 
@@ -4378,11 +4385,11 @@
4378
4385
  return `${parseFloat((bytes / Math.pow(KILO, i)).toFixed(decimals))} ${KILO_SIZES[i]}`;
4379
4386
  };
4380
4387
 
4381
- const LinkDocItem = JSX(({ icon, text, fileFormat, fileSize, ...linkProps }) => {
4388
+ const LinkDocItem = JSX(({ icon, text, href, target, fileFormat, fileSize }) => {
4382
4389
  const prefix = fileFormat || fileSize ? ',' : '';
4383
4390
  const size = fileSize ?? '';
4384
4391
  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] }));
4392
+ 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
4393
  });
4387
4394
 
4388
4395
  const linkIconStyle = 'min-w-6 min-h-6';
@@ -4889,7 +4896,7 @@
4889
4896
  const labelSchedule = workSchedule?.businessScheduleVisibleTag
4890
4897
  ? 'Для физических лиц'
4891
4898
  : 'Для физических и юридических лиц';
4892
- return (jsxs("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [jsxs("div", { className: "flex justify-between", children: [jsx(Text, { size: "text-h4", children: name }), renderCurrentDaySchedule(workScheduleWeek)] }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null, jsxs(CardRow, { className: "flex-wrap", children: [jsx(CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), jsx(CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), jsx(CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), jsx(CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), jsx(CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), jsx(CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workSchedule.isMatchesPattern ? (jsx(CardRow, { children: jsx(CardCell, { label: labelSchedule, labelSize: "text-l", className: "w-full max-w-none", children: jsx("div", { className: "flex justify-between pt-xs", children: workScheduleWeek?.map(renderDay) }) }) })) : (jsxs(CardRow, { children: [jsx(CardCell, { label: labelSchedule, labelSize: "text-l", children: jsx("div", { className: "flex gap-1", children: workScheduleWeek?.map(renderAlternativeDay) }) }), getScheduleDescription(workScheduleWeek)] })), workSchedule?.businessScheduleVisibleTag
4899
+ return (jsxs("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [jsxs("div", { className: "flex justify-between", children: [jsx(Text, { size: "text-h4", children: name }), renderCurrentDaySchedule(workScheduleWeek)] }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null, jsxs(CardRow, { className: "flex-wrap", children: [jsx(CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), jsx(CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), jsx(CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), jsx(CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), jsx(CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), jsx(CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workSchedule.isMatchesPattern ? (jsx(CardRow, { children: jsx(CardCell, { label: labelSchedule, labelSize: "text-l", className: "w-full max-w-none", children: jsx("div", { className: "flex flex-wrap gap-xs sm:justify-between pt-xs", children: workScheduleWeek?.map(renderDay) }) }) })) : (jsxs(CardRow, { children: [jsx(CardCell, { label: labelSchedule, labelSize: "text-l", children: jsx("div", { className: "flex gap-1", children: workScheduleWeek?.map(renderAlternativeDay) }) }), getScheduleDescription(workScheduleWeek)] })), workSchedule?.businessScheduleVisibleTag
4893
4900
  ? renderBusinessSchedule(workSchedule?.businessScheduleDescription)
4894
4901
  : null, exchangeRate?.currencies?.length ? (jsx(CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(renderCurrency) })) : null] }, String(index)));
4895
4902
  };
@@ -5783,16 +5790,12 @@
5783
5790
 
5784
5791
  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
5792
  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" })] }));
5793
+ 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' +
5794
+ ' 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';
5795
+ 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';
5796
+ return (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [renderLinkIconPath(handPath), renderLinkIconPath(cuffPath)] }));
5795
5797
  };
5798
+ const renderLinkIconPath = (d) => (jsx("path", { stroke: "#292D32", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", strokeMiterlimit: "10", d: d }));
5796
5799
 
5797
5800
  const LikeControl = JSX(({ className = '' }) => {
5798
5801
  const router = useRouter();
@@ -5818,7 +5821,7 @@
5818
5821
  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
5822
  }
5820
5823
 
5821
- const packageVersion = "0.14.42";
5824
+ const packageVersion = "0.14.44";
5822
5825
 
5823
5826
  exports.Blocks = Blocks;
5824
5827
  exports.ContentPage = ContentPage;