@redneckz/wildless-cms-uni-blocks 0.14.208 → 0.14.210

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 (143) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +18 -19
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/CarouselLinks/ArrowIconStyles.d.ts +2 -0
  5. package/bundle/components/CarouselLinks/ArrowIconStyles.mobile.d.ts +2 -0
  6. package/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +2 -2
  7. package/bundle/icons/IconName.d.ts +2 -2
  8. package/cosmos-static/icons/HuaweiIcon.svg +1 -1
  9. package/cosmos-static/icons/sprites.svg +1 -1
  10. package/dist/components/Carousel/CarouselScrollButtons.js +1 -1
  11. package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  12. package/dist/components/CarouselLinks/ArrowIconStyles.d.ts +2 -0
  13. package/dist/components/CarouselLinks/ArrowIconStyles.js +5 -0
  14. package/dist/components/CarouselLinks/ArrowIconStyles.js.map +1 -0
  15. package/dist/components/CarouselLinks/ArrowIconStyles.mobile.d.ts +2 -0
  16. package/dist/components/CarouselLinks/ArrowIconStyles.mobile.js +5 -0
  17. package/dist/components/CarouselLinks/ArrowIconStyles.mobile.js.map +1 -0
  18. package/dist/components/CarouselLinks/CarouselLinkButton.d.ts +2 -2
  19. package/dist/components/CarouselLinks/CarouselLinkButton.js +5 -4
  20. package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  21. package/dist/components/CarouselLinks/CarouselLinks.js +4 -7
  22. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  23. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  24. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  25. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  26. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  27. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  28. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  29. package/dist/icons/IconName.d.ts +2 -2
  30. package/dist/icons/IconName.js +2 -2
  31. package/dist/icons/IconName.js.map +1 -1
  32. package/dist/ui-kit/Select/Select.js +2 -2
  33. package/dist/ui-kit/Select/Select.js.map +1 -1
  34. package/lib/common.css +1 -1
  35. package/lib/components/Carousel/CarouselScrollButtons.js +1 -1
  36. package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  37. package/lib/components/CarouselLinks/ArrowIconStyles.d.ts +2 -0
  38. package/lib/components/CarouselLinks/ArrowIconStyles.js +3 -0
  39. package/lib/components/CarouselLinks/ArrowIconStyles.js.map +1 -0
  40. package/lib/components/CarouselLinks/ArrowIconStyles.mobile.d.ts +2 -0
  41. package/lib/components/CarouselLinks/ArrowIconStyles.mobile.js +3 -0
  42. package/lib/components/CarouselLinks/ArrowIconStyles.mobile.js.map +1 -0
  43. package/lib/components/CarouselLinks/CarouselLinkButton.d.ts +2 -2
  44. package/lib/components/CarouselLinks/CarouselLinkButton.js +5 -4
  45. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  46. package/lib/components/CarouselLinks/CarouselLinks.js +4 -7
  47. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  48. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  49. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  50. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  51. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  52. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  53. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  54. package/lib/icons/IconName.d.ts +2 -2
  55. package/lib/icons/IconName.js +2 -2
  56. package/lib/icons/IconName.js.map +1 -1
  57. package/lib/ui-kit/Select/Select.js +2 -2
  58. package/lib/ui-kit/Select/Select.js.map +1 -1
  59. package/mobile/bundle/bundle.umd.js +38 -34
  60. package/mobile/bundle/bundle.umd.min.js +1 -1
  61. package/mobile/bundle/components/CarouselLinks/ArrowIconStyles.d.ts +2 -0
  62. package/mobile/bundle/icons/IconName.d.ts +2 -2
  63. package/mobile/dist/components/Carousel/CarouselScrollButtons.js +1 -1
  64. package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  65. package/mobile/dist/components/CarouselLinks/ArrowIconStyles.d.ts +2 -0
  66. package/mobile/dist/components/CarouselLinks/ArrowIconStyles.js +5 -0
  67. package/mobile/dist/components/CarouselLinks/ArrowIconStyles.js.map +1 -0
  68. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +5 -2
  69. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  70. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +8 -11
  71. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  72. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  73. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  74. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  75. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  76. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  77. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  78. package/mobile/dist/icons/IconName.d.ts +2 -2
  79. package/mobile/dist/icons/IconName.js +2 -2
  80. package/mobile/dist/icons/IconName.js.map +1 -1
  81. package/mobile/dist/ui-kit/Select/Select.js +2 -2
  82. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  83. package/mobile/lib/common.css +1 -1
  84. package/mobile/lib/components/Carousel/CarouselScrollButtons.js +1 -1
  85. package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  86. package/mobile/lib/components/CarouselLinks/ArrowIconStyles.d.ts +2 -0
  87. package/mobile/lib/components/CarouselLinks/ArrowIconStyles.js +3 -0
  88. package/mobile/lib/components/CarouselLinks/ArrowIconStyles.js.map +1 -0
  89. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +5 -2
  90. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  91. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +8 -11
  92. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  93. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  94. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  95. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  96. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  97. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  98. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  99. package/mobile/lib/icons/IconName.d.ts +2 -2
  100. package/mobile/lib/icons/IconName.js +2 -2
  101. package/mobile/lib/icons/IconName.js.map +1 -1
  102. package/mobile/lib/ui-kit/Select/Select.js +2 -2
  103. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  104. package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +3 -3
  105. package/mobile/src/components/CarouselLinks/ArrowIconStyles.ts +2 -0
  106. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +47 -19
  107. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +45 -55
  108. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
  109. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -1
  110. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +3 -3
  111. package/mobile/src/icons/HuaweiIcon.svg +1 -3
  112. package/mobile/src/icons/IconName.ts +3 -3
  113. package/mobile/src/ui-kit/Select/Select.tsx +3 -5
  114. package/package.json +1 -1
  115. package/src/components/Carousel/CarouselScrollButtons.tsx +3 -3
  116. package/src/components/CarouselLinks/ArrowIconStyles.mobile.ts +2 -0
  117. package/src/components/CarouselLinks/ArrowIconStyles.ts +2 -0
  118. package/src/components/CarouselLinks/CarouselLinkButton.tsx +34 -18
  119. package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +2 -2
  120. package/src/components/CarouselLinks/CarouselLinks.tsx +11 -14
  121. package/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
  122. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -1
  123. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +3 -3
  124. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +3 -3
  125. package/src/icons/HuaweiIcon.svg +1 -3
  126. package/src/icons/IconName.ts +3 -2
  127. package/src/ui-kit/Select/Select.tsx +3 -5
  128. package/bundle/components/CarouselLinks/CarouselLinkButton.mobile.d.ts +0 -5
  129. package/bundle/components/CarouselLinks/CarouselLinks.mobile.d.ts +0 -5
  130. package/dist/components/CarouselLinks/CarouselLinkButton.mobile.d.ts +0 -5
  131. package/dist/components/CarouselLinks/CarouselLinkButton.mobile.js +0 -15
  132. package/dist/components/CarouselLinks/CarouselLinkButton.mobile.js.map +0 -1
  133. package/dist/components/CarouselLinks/CarouselLinks.mobile.d.ts +0 -5
  134. package/dist/components/CarouselLinks/CarouselLinks.mobile.js +0 -20
  135. package/dist/components/CarouselLinks/CarouselLinks.mobile.js.map +0 -1
  136. package/lib/components/CarouselLinks/CarouselLinkButton.mobile.d.ts +0 -5
  137. package/lib/components/CarouselLinks/CarouselLinkButton.mobile.js +0 -13
  138. package/lib/components/CarouselLinks/CarouselLinkButton.mobile.js.map +0 -1
  139. package/lib/components/CarouselLinks/CarouselLinks.mobile.d.ts +0 -5
  140. package/lib/components/CarouselLinks/CarouselLinks.mobile.js +0 -18
  141. package/lib/components/CarouselLinks/CarouselLinks.mobile.js.map +0 -1
  142. package/src/components/CarouselLinks/CarouselLinkButton.mobile.tsx +0 -40
  143. package/src/components/CarouselLinks/CarouselLinks.mobile.tsx +0 -75
@@ -1103,9 +1103,9 @@
1103
1103
  onClose: handleClose,
1104
1104
  iconVersion,
1105
1105
  });
1106
- return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text relative z-10', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-8 flex items-center overflow-hidden text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
1106
+ return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-8 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : open, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
1107
1107
  });
1108
- const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
1108
+ const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3 flex self-center', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
1109
1109
  const getStyle = (isBorder, valid, disabled) => style(isBorder ? 'border rounded-md ' : '', isBorder && !disabled ? 'hover:border-primary-hover' : '', disabled ? 'bg-main-divider' : 'cursor-pointer ', valid ? 'border-gray' : 'border-error');
1110
1110
 
1111
1111
  const SelectControl = JSX(({ className = '', label, error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error, label: rest?.errors ? `${label}*` : label }), renderErrorText(error)] })));
@@ -3061,7 +3061,7 @@
3061
3061
  onScrollRight();
3062
3062
  }
3063
3063
  }, [scrollRight, onScrollRight, hasEdgeBlocks, canScrollLeft, activeIndex, itemCount]);
3064
- return (jsxs("div", { className: "hidden @lg:block", children: [renderBlur(scroll), canMoveLeft ? (jsx(ScrollLeftButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'left-1 @lg:left-8' : 'left-0'), onClick: handleScrollLeft })) : null, canMoveRight ? (jsx(ScrollRightButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'right-1 @lg:right-8' : 'right-0'), onClick: handleScrollRight })) : null] }));
3064
+ return (jsxs("div", { className: "m:hidden block", children: [renderBlur(scroll), canMoveLeft ? (jsx(ScrollLeftButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'left-1 m:left-8' : 'left-0'), onClick: handleScrollLeft })) : null, canMoveRight ? (jsx(ScrollRightButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'right-1 m:right-8' : 'right-0'), onClick: handleScrollRight })) : null] }));
3065
3065
  });
3066
3066
  const renderBlur = (scroll) => (jsxs("div", { children: [scroll.canScrollLeft ? (jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white group-data-secondary:bg-none') })) : null, scroll.canScrollRight ? (jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white group-data-secondary:bg-none') })) : null] }));
3067
3067
 
@@ -3158,25 +3158,24 @@
3158
3158
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
3159
3159
  const renderColorOption = (color, i) => (jsx("figure", { className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
3160
3160
 
3161
+ const IconSize = '24';
3162
+ const IconVersion = 'black';
3163
+
3161
3164
  const LINK_CLASS_NAME = `absolute border
3162
- bg-white flex justify-between group-hover/link:text-primary-main`;
3163
- const LINK_BORDER_CLASS_NAME = 'hidden xl:block absolute w-full h-full border border-white';
3164
- const CarouselLinkButton = JSX(({ className = '', ...linkProps }) => {
3165
+ bg-white flex items-center justify-between group-hover/link:text-primary-main`;
3166
+ const LINK_BORDER_CLASS_NAME = 'absolute w-full h-full border border-white';
3167
+ const CarouselLinkButton = JSX(({ className = '', icon, ...linkProps }) => {
3165
3168
  const link = useLink();
3166
3169
  const { text, href, target, onClick } = link(linkProps);
3167
- return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s min-w-64 xl:min-w-72', className), children: jsxs("div", { className: "relative min-h-16 w-full", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'rounded-md lg:rounded-none w-full p-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;
3170
+ return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s sm:pr-2xs min-w-64 sm:min-w-72', className), children: jsxs("div", { className: "relative min-h-16 w-full pb-lg sm:pb-0", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'flex rounded-md lg:rounded-none w-full w-full p-lg whitespace-nowrap z-10'), role: "link", href: href, target: target, onClick: onClick, children: [jsxs("div", { className: "flex items-center space-x-lg", children: [icon ? (jsx(Img, { imageClassName: "text-green-dark", image: icon, width: IconSize, height: IconSize })) : null, jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })] }), jsx(Img, { className: "group-hover/link:brightness-100 sm:ml-2xs", image: { icon: 'ArrowRightIcon', iconVersion: IconVersion }, imageClassName: "group-hover/link:text-primary-main", width: IconSize, height: IconSize })] }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-1 -left-1') }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-2 -left-2') })] }) })) : null;
3168
3171
  });
3169
3172
 
3170
- const MAX_LINKS_COUNT = 10;
3171
-
3172
- const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden', className), ...rest, children: jsxs("div", { className: "flex flex-col @6xl:flex-row gap-m", children: [jsxs("div", { children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left" }), jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })] }), links?.length ? renderLinks(links, '@6xl:min-w-[672px] p-0 justify-self-end') : null] }) })));
3173
+ const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsx(BlockWrapper, { defaultPadding: "p-5xl", className: style('overflow-hidden', className), ...rest, children: jsxs("div", { className: "flex flex-col m:flex-row gap-s justify-between", children: [jsxs("div", { className: "w-full m:w-1/3", children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left" }), jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })] }), links?.length ? renderLinks(links, 'm:justify-self-end m:pt-s w-full m:w-2/3') : null] }) })));
3173
3174
  const renderLinks = (links, className = '') => {
3174
- const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
3175
- return (jsx(Carousel, { className: className, version: "secondary", itemCount: itemCount, arrowsPadded: false, padding: "p-0", children: Array.from({ length: itemCount })
3175
+ const itemCount = Math.ceil(links.length / 3);
3176
+ return (jsx(Carousel, { className: className, version: "secondary", itemCount: itemCount, arrowsPadded: false, padding: "p-0", visibleItemCount: 0, children: Array.from({ length: itemCount })
3176
3177
  .fill(null)
3177
- .map((_, groupIndex) => (jsx("div", { className: style('flex flex-wrap gap-2xs self-start xl:justify-center @5xl:grid @5xl:grid-cols-2'), children: links
3178
- .slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
3179
- .map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
3178
+ .map((_, groupIndex) => (jsx("div", { className: style('flex flex-wrap gap-2xs m:justify-center'), children: links.slice(groupIndex * 3, (groupIndex + 1) * 3).map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
3180
3179
  };
3181
3180
 
3182
3181
  const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
@@ -3737,7 +3736,7 @@
3737
3736
  };
3738
3737
 
3739
3738
  const icon = { icon: 'GpsIcon' };
3740
- const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: `flex gap-s ${className}`, children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary" }), jsxs("div", { className: "space-y-2xs", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
3739
+ const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: `flex gap-s ${className}`, children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary", className: "shrink-0" }), jsxs("div", { className: "space-y-2xs whitespace-pre-wrap", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
3741
3740
 
3742
3741
  const roundTo = (value, precision = 2) => {
3743
3742
  const factor = 10 ** precision;
@@ -3789,7 +3788,7 @@
3789
3788
  selectBuy: currencyRatesSell?.[0]?.currency?.currency || Currency.USD,
3790
3789
  });
3791
3790
  const handleSetCalcState = useCallback((newState) => setCalcState((oldState) => ({ ...oldState, ...newState })), []);
3792
- return (jsxs("div", { className: `grid gap-m pt-2xl ${className}`, children: [renderInput({
3791
+ return (jsxs("div", { className: `flex flex-col gap-m pt-2xl ${className}`, children: [renderInput({
3793
3792
  placeholder: 'Хочу продать',
3794
3793
  rates: currencyRatesSell,
3795
3794
  selected: calcState.selectSell,
@@ -3859,7 +3858,7 @@
3859
3858
  currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
3860
3859
  const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
3861
3860
  currencyRatesSell.push({ currency: { currency: Currency.RUB } });
3862
- return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex gap-6xl flex-wrap", children: [jsxs("div", { children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-xl", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation, { address: exchangeRates?.address })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })) : null] }) }) }));
3861
+ return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex w-full gap-6xl flex-wrap sm:flex-nowrap", children: [jsxs("div", { className: "max-w-1/2", children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-xl", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation, { address: exchangeRates?.address })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow w-1/2", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })) : null] }) }) }));
3863
3862
  });
3864
3863
  const getCurrencyRates = (currencies) => {
3865
3864
  return currencies?.filter((_) => [1, 2, 3].includes(_?.currency?.id)) || [];
@@ -6055,7 +6054,7 @@
6055
6054
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6056
6055
  });
6057
6056
 
6058
- const packageVersion = "0.14.207";
6057
+ const packageVersion = "0.14.209";
6059
6058
 
6060
6059
  exports.Blocks = Blocks;
6061
6060
  exports.ContentPage = ContentPage;