@redneckz/wildless-cms-uni-blocks 0.11.0 → 0.11.1

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 (124) hide show
  1. package/bundle/bundle.umd.js +71 -46
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
  4. package/bundle/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
  5. package/bundle/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
  6. package/bundle/components/Calculator/rangeHelpers.d.ts +2 -2
  7. package/dist/components/BaseTile/BaseTile.js +1 -1
  8. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  9. package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
  10. package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js +28 -0
  11. package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
  12. package/dist/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
  13. package/dist/components/Calculator/getCreditCalculatorLimitParams.js +10 -0
  14. package/dist/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
  15. package/dist/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
  16. package/dist/components/Calculator/getCreditCalculatorRateParams.js +14 -0
  17. package/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
  18. package/dist/components/Calculator/rangeHelpers.d.ts +2 -2
  19. package/dist/components/Calculator/rangeHelpers.js +2 -2
  20. package/dist/components/Calculator/rangeHelpers.js.map +1 -1
  21. package/dist/components/Calculator/useCreditCalculatorParams.js +26 -38
  22. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  23. package/dist/components/Footer/TextInformation.js +1 -1
  24. package/dist/components/Footer/TextInformation.js.map +1 -1
  25. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  26. package/dist/ui-kit/Img/ImgAsPicture.js +1 -1
  27. package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
  28. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  29. package/lib/common.css +1 -1
  30. package/lib/components/BaseTile/BaseTile.js +1 -1
  31. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  32. package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
  33. package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js +25 -0
  34. package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
  35. package/lib/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
  36. package/lib/components/Calculator/getCreditCalculatorLimitParams.js +7 -0
  37. package/lib/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
  38. package/lib/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
  39. package/lib/components/Calculator/getCreditCalculatorRateParams.js +11 -0
  40. package/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
  41. package/lib/components/Calculator/rangeHelpers.d.ts +2 -2
  42. package/lib/components/Calculator/rangeHelpers.js +4 -4
  43. package/lib/components/Calculator/rangeHelpers.js.map +1 -1
  44. package/lib/components/Calculator/useCreditCalculatorParams.js +27 -39
  45. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  46. package/lib/components/Footer/TextInformation.js +1 -1
  47. package/lib/components/Footer/TextInformation.js.map +1 -1
  48. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  49. package/lib/ui-kit/Img/ImgAsPicture.js +1 -1
  50. package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
  51. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  52. package/mobile/bundle/bundle.umd.js +5 -5
  53. package/mobile/bundle/bundle.umd.min.js +1 -1
  54. package/mobile/bundle/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
  55. package/mobile/bundle/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
  56. package/mobile/bundle/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
  57. package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +2 -2
  58. package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
  59. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  60. package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
  61. package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js +28 -0
  62. package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
  63. package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
  64. package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.js +10 -0
  65. package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
  66. package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
  67. package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js +14 -0
  68. package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
  69. package/mobile/dist/components/Calculator/rangeHelpers.d.ts +2 -2
  70. package/mobile/dist/components/Calculator/rangeHelpers.js +2 -2
  71. package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
  72. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -38
  73. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  74. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  75. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  76. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  77. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +1 -1
  78. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
  79. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  80. package/mobile/lib/common.css +1 -1
  81. package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
  82. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  83. package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
  84. package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js +25 -0
  85. package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
  86. package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
  87. package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.js +7 -0
  88. package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
  89. package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
  90. package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js +11 -0
  91. package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
  92. package/mobile/lib/components/Calculator/rangeHelpers.d.ts +2 -2
  93. package/mobile/lib/components/Calculator/rangeHelpers.js +4 -4
  94. package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
  95. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +27 -39
  96. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
  97. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  98. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  99. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  100. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +1 -1
  101. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
  102. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  103. package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
  104. package/mobile/src/components/Calculator/checkCreditSourceBookRowCommonParams.ts +47 -0
  105. package/mobile/src/components/Calculator/getCreditCalculatorLimitParams.ts +24 -0
  106. package/mobile/src/components/Calculator/getCreditCalculatorRateParams.ts +33 -0
  107. package/mobile/src/components/Calculator/rangeHelpers.ts +4 -4
  108. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +38 -73
  109. package/mobile/src/components/Footer/TextInformation.tsx +2 -2
  110. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  111. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
  112. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
  113. package/package.json +1 -1
  114. package/src/components/BaseTile/BaseTile.tsx +2 -2
  115. package/src/components/Calculator/checkCreditSourceBookRowCommonParams.ts +47 -0
  116. package/src/components/Calculator/getCreditCalculatorLimitParams.ts +24 -0
  117. package/src/components/Calculator/getCreditCalculatorRateParams.ts +33 -0
  118. package/src/components/Calculator/rangeHelpers.ts +4 -4
  119. package/src/components/Calculator/useCreditCalculatorParams.ts +38 -73
  120. package/src/components/Footer/TextInformation.tsx +2 -2
  121. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  122. package/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
  123. package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
  124. package/tailwind.config.cjs +0 -15
@@ -1054,7 +1054,7 @@
1054
1054
  const renderImg = (image, imageClassName = '', isMobile = false) => {
1055
1055
  const style = {
1056
1056
  width: image.size?.width ? `${image.size?.width}px` : '100%',
1057
- height: image.size?.height ? `${image.size?.height}px` : '100%',
1057
+ height: image.size?.height ? `${image.size?.height}px` : 'auto',
1058
1058
  };
1059
1059
  const title = image.title || '';
1060
1060
  const alt = image.alt || image.title;
@@ -1506,6 +1506,7 @@
1506
1506
  };
1507
1507
 
1508
1508
  const minBy = (discriminator = defaultDiscriminator) => maxBy((_) => -discriminator(_));
1509
+ const min = minBy();
1509
1510
 
1510
1511
  const getLimitRangeByKeys = ([minKey, maxKey], limitParams, rateRows = []) => limitParams && limitParams[minKey] && limitParams[maxKey]
1511
1512
  ? {
@@ -1514,8 +1515,8 @@
1514
1515
  }
1515
1516
  : getRangeByKeys([minKey, maxKey], rateRows);
1516
1517
  const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
1517
- [minKey]: rows.length ? minBy()(rows.filter((row) => row[minKey]).map((row) => row[minKey])) : 0,
1518
- [maxKey]: rows.length ? maxBy()(rows.filter((row) => row[maxKey]).map((row) => row[maxKey])) : 0,
1518
+ [minKey]: rows.length ? min(rows.filter((row) => row[minKey]).map((row) => row[minKey])) : 0,
1519
+ [maxKey]: rows.length ? max(rows.filter((row) => row[maxKey]).map((row) => row[maxKey])) : 0,
1519
1520
  });
1520
1521
  const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
1521
1522
 
@@ -1612,6 +1613,45 @@
1612
1613
  ],
1613
1614
  });
1614
1615
 
1616
+ const checkCreditSourceBookRowCommonParams = (props) => checkRowParam({
1617
+ ...props,
1618
+ fieldKey: 'isSalaryClient',
1619
+ viewSettingFieldKey: 'isShowSalaryClient',
1620
+ }) &&
1621
+ checkRowParam({
1622
+ ...props,
1623
+ fieldKey: 'isStateEmployee',
1624
+ viewSettingFieldKey: 'isShowStateEmployee',
1625
+ }) &&
1626
+ checkRowParam({
1627
+ ...props,
1628
+ fieldKey: 'isPensionClient',
1629
+ viewSettingFieldKey: 'isShowPensionClient',
1630
+ }) &&
1631
+ checkRowParam({
1632
+ ...props,
1633
+ fieldKey: 'isInsurance',
1634
+ viewSettingFieldKey: 'isShowInsurance',
1635
+ });
1636
+ const checkRowParam = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
1637
+ const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
1638
+ return isExclude || userInputParams[fieldKey] === row[fieldKey];
1639
+ };
1640
+
1641
+ const getCreditCalculatorLimitParams = ({ limitRows, userInputParams, paramsViewSettings, }) => limitRows?.find((row) => checkCreditSourceBookRowCommonParams({
1642
+ row,
1643
+ userInputParams,
1644
+ paramsViewSettings,
1645
+ }));
1646
+
1647
+ const getCreditCalculatorRateParams = ({ rateRows = [], userInputParams, paramsViewSettings, moneyValue, monthsValue, }) => rateRows?.find((row) => checkCreditSourceBookRowCommonParams({
1648
+ row,
1649
+ userInputParams,
1650
+ paramsViewSettings,
1651
+ }) &&
1652
+ checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
1653
+ checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
1654
+
1615
1655
  /**
1616
1656
  * Формулы расчёта аннуитетных и дифференцированных платежей:
1617
1657
  * https://finuslugi.ru/potrebitelskie_kredity/stat_annuitetnye_i_differentsirovannye_platezhi
@@ -1631,55 +1671,40 @@
1631
1671
  };
1632
1672
 
1633
1673
  const useCreditCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
1634
- const { moneyValue, monthsValue } = userInputParams;
1674
+ let { moneyValue, monthsValue } = userInputParams;
1635
1675
  const data = useCalculatorParams(sourceBookDir || CREDIT_CALC_DEFAULT_DIR);
1636
- const creditCalculatorSourceBookLimitParams = data?.limitRows?.find((row) => checkRowCommonParams({
1637
- row,
1676
+ const rateRows = data?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
1677
+ const limitRows = data?.limitRows || [];
1678
+ const creditCalculatorSourceBookLimitParams = getCreditCalculatorLimitParams({
1679
+ limitRows,
1638
1680
  userInputParams,
1639
1681
  paramsViewSettings,
1640
- }));
1641
- const creditCalculatorSourceBookRateParams = data?.rateRows?.find((row) => checkRowCommonParams({
1642
- row,
1682
+ });
1683
+ const { minSum, maxSum } = getLimitRangeByKeys(['minSum', 'maxSum'], creditCalculatorSourceBookLimitParams, rateRows);
1684
+ const { minMonths, maxMonths } = getLimitRangeByKeys(['minMonths', 'maxMonths'], creditCalculatorSourceBookLimitParams, rateRows);
1685
+ moneyValue = clamp(moneyValue, minSum, maxSum);
1686
+ monthsValue = clamp(monthsValue, minMonths, maxMonths);
1687
+ const creditCalculatorRateParams = getCreditCalculatorRateParams({
1688
+ rateRows,
1643
1689
  userInputParams,
1644
1690
  paramsViewSettings,
1645
- }) &&
1646
- checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
1647
- checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
1648
- const { rate } = creditCalculatorSourceBookRateParams;
1691
+ moneyValue,
1692
+ monthsValue,
1693
+ });
1694
+ const { rate } = creditCalculatorRateParams;
1649
1695
  const monthlyPayment = getMonthlyPayment(rate, userInputParams);
1650
- const rateRows = data?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
1651
1696
  return useMemo(() => ({
1652
- ...creditCalculatorSourceBookRateParams,
1653
- ...getLimitRangeByKeys(['minSum', 'maxSum'], creditCalculatorSourceBookLimitParams, rateRows),
1654
- ...getLimitRangeByKeys(['minMonths', 'maxMonths'], creditCalculatorSourceBookLimitParams, rateRows),
1697
+ ...creditCalculatorRateParams,
1655
1698
  ...userInputParams,
1699
+ minSum,
1700
+ maxSum,
1701
+ minMonths,
1702
+ maxMonths,
1703
+ moneyValue,
1704
+ monthsValue,
1656
1705
  monthlyPayment,
1657
1706
  }), [userInputParams, data]);
1658
1707
  };
1659
- const checkRowCommonParams = (props) => checkRowParam({
1660
- ...props,
1661
- fieldKey: 'isSalaryClient',
1662
- viewSettingFieldKey: 'isShowSalaryClient',
1663
- }) &&
1664
- checkRowParam({
1665
- ...props,
1666
- fieldKey: 'isStateEmployee',
1667
- viewSettingFieldKey: 'isShowStateEmployee',
1668
- }) &&
1669
- checkRowParam({
1670
- ...props,
1671
- fieldKey: 'isPensionClient',
1672
- viewSettingFieldKey: 'isShowPensionClient',
1673
- }) &&
1674
- checkRowParam({
1675
- ...props,
1676
- fieldKey: 'isInsurance',
1677
- viewSettingFieldKey: 'isShowInsurance',
1678
- });
1679
- const checkRowParam = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
1680
- const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
1681
- return isExclude || userInputParams[fieldKey] === row[fieldKey];
1682
- };
1683
1708
 
1684
1709
  const CreditCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
1685
1710
  const [userInputParams, { field }] = useForm({
@@ -2232,7 +2257,7 @@
2232
2257
  return (jsx(BlockWrapper, { className: style('w-[365px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(ImgInner, { image: icon }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left pt-3 mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-m", color: "text-secondary-text", children: description }) })) : null] }) }));
2233
2258
  });
2234
2259
 
2235
- const BaseTile = JSX(({ className, title = '', insetTitle = '', buttons, leftImage, rightImage, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col font-sans', className), children: [backImage ? jsx("div", { className: "absolute bottom-0 right-0 z-0", children: backImage }) : null, title, jsxs("div", { className: "grow relative flex flex-wrap justify-between items-stretch gap-8", children: [leftImage, jsxs("div", { className: style('flex flex-col gap-8', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), buttons] }), rightImage ? jsx("div", { className: "sm:-order-1 md:-order-1", children: rightImage }) : null] })] })));
2260
+ const BaseTile = JSX(({ className, title = '', insetTitle = '', buttons, leftImage, rightImage, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col font-sans', className), children: [backImage ? jsx("div", { className: "absolute bottom-0 right-0 z-0", children: backImage }) : null, title, jsxs("div", { className: "grow relative flex flex-wrap md:flex-nowrap justify-between items-stretch gap-8", children: [leftImage, jsxs("div", { className: style('flex flex-col gap-8', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), buttons] }), rightImage ? jsx("div", { className: "-order-1 lg:order-1", children: rightImage }) : null] })] })));
2236
2261
 
2237
2262
  const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
2238
2263
  const cardColumnsModeStyleMap = {
@@ -3185,7 +3210,7 @@
3185
3210
 
3186
3211
  const textInformationTextSize = 'text-xs-light';
3187
3212
 
3188
- const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-5 sm:py-4", children: jsx(Text, { size: textInformationTextSize, color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-2.5", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3213
+ const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-4 xl:pt-5", children: jsx(Text, { size: textInformationTextSize, color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-4", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3189
3214
 
3190
3215
  const LEFT_COL_WIDTH_FULL_HD = 'w-[204px]';
3191
3216
  const Footer = JSX(({ className = '', ...rest }) => {
@@ -4116,7 +4141,7 @@
4116
4141
  const ProductBlockInner = JSX(({ className, version = 'primary', headlineVersion = 'L', title, description, benefits, benefitsVersion, items, isDotted = true, __html, buttons, image, directionRight = true, }) => {
4117
4142
  const benefitsWithLabel = benefits?.filter((_) => _.label);
4118
4143
  const img = image?.src ? jsx(ImgInner, { className: "mt-[-50px]", image: image }) : null;
4119
- return (jsxs(BaseTile, { className: className, insetTitle: jsx(Headline, { className: "max-w-[600px] xl:max-w-[800px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left", isPadding: false }), ...(directionRight ? { rightImage: img } : { leftImage: img }), buttons: renderButtonsSection(buttons), children: [benefitsWithLabel?.length ? (jsx("div", { className: "flex flex-wrap gap-6", children: benefitsWithLabel.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? jsx(List, { className: "mt-5", items: items, isDotted: isDotted }) : null] }));
4144
+ return (jsxs(BaseTile, { className: className, insetTitle: jsx(Headline, { className: "max-w-[600px] xl:max-w-[728px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left", isPadding: false }), ...(directionRight ? { rightImage: img } : { leftImage: img }), buttons: renderButtonsSection(buttons), children: [benefitsWithLabel?.length ? (jsx("div", { className: "flex flex-wrap gap-6", children: benefitsWithLabel.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? jsx(List, { className: "mt-5", items: items, isDotted: isDotted }) : null] }));
4120
4145
  });
4121
4146
 
4122
4147
  function renderBackwardButton({ text, href, target, icon }, version) {
@@ -4650,7 +4675,7 @@
4650
4675
  const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
4651
4676
 
4652
4677
  const TableInnerButton = JSX(({ isOpen, onClick }) => {
4653
- return (jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать ставки по вкладу' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-3", iconVersion: "white", width: "20", height: "20" })] }));
4678
+ return (jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-3", iconVersion: "white", width: "20", height: "20" })] }));
4654
4679
  });
4655
4680
 
4656
4681
  const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons);
@@ -5069,7 +5094,7 @@
5069
5094
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
5070
5095
  }
5071
5096
 
5072
- const packageVersion = "0.11.0";
5097
+ const packageVersion = "0.11.1";
5073
5098
 
5074
5099
  exports.Blocks = Blocks;
5075
5100
  exports.ContentPage = ContentPage;