@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.
- package/bundle/bundle.umd.js +71 -46
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/bundle/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/bundle/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/bundle/components/Calculator/rangeHelpers.d.ts +2 -2
- package/dist/components/BaseTile/BaseTile.js +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js +28 -0
- package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/dist/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/dist/components/Calculator/getCreditCalculatorLimitParams.js +10 -0
- package/dist/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/dist/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/dist/components/Calculator/getCreditCalculatorRateParams.js +14 -0
- package/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/dist/components/Calculator/rangeHelpers.d.ts +2 -2
- package/dist/components/Calculator/rangeHelpers.js +2 -2
- package/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.js +26 -38
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BaseTile/BaseTile.js +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js +25 -0
- package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/lib/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/lib/components/Calculator/getCreditCalculatorLimitParams.js +7 -0
- package/lib/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/lib/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/lib/components/Calculator/getCreditCalculatorRateParams.js +11 -0
- package/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/lib/components/Calculator/rangeHelpers.d.ts +2 -2
- package/lib/components/Calculator/rangeHelpers.js +4 -4
- package/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.js +27 -39
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +5 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/bundle/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/mobile/bundle/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +2 -2
- package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js +28 -0
- package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.js +10 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js +14 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/mobile/dist/components/Calculator/rangeHelpers.d.ts +2 -2
- package/mobile/dist/components/Calculator/rangeHelpers.js +2 -2
- package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -38
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js +25 -0
- package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.js +7 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js +11 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/mobile/lib/components/Calculator/rangeHelpers.d.ts +2 -2
- package/mobile/lib/components/Calculator/rangeHelpers.js +4 -4
- package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +27 -39
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/components/Calculator/checkCreditSourceBookRowCommonParams.ts +47 -0
- package/mobile/src/components/Calculator/getCreditCalculatorLimitParams.ts +24 -0
- package/mobile/src/components/Calculator/getCreditCalculatorRateParams.ts +33 -0
- package/mobile/src/components/Calculator/rangeHelpers.ts +4 -4
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +38 -73
- package/mobile/src/components/Footer/TextInformation.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/package.json +1 -1
- package/src/components/BaseTile/BaseTile.tsx +2 -2
- package/src/components/Calculator/checkCreditSourceBookRowCommonParams.ts +47 -0
- package/src/components/Calculator/getCreditCalculatorLimitParams.ts +24 -0
- package/src/components/Calculator/getCreditCalculatorRateParams.ts +33 -0
- package/src/components/Calculator/rangeHelpers.ts +4 -4
- package/src/components/Calculator/useCreditCalculatorParams.ts +38 -73
- package/src/components/Footer/TextInformation.tsx +2 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/tailwind.config.cjs +0 -15
package/bundle/bundle.umd.js
CHANGED
|
@@ -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` : '
|
|
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 ?
|
|
1518
|
-
[maxKey]: rows.length ?
|
|
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
|
-
|
|
1674
|
+
let { moneyValue, monthsValue } = userInputParams;
|
|
1635
1675
|
const data = useCalculatorParams(sourceBookDir || CREDIT_CALC_DEFAULT_DIR);
|
|
1636
|
-
const
|
|
1637
|
-
|
|
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
|
|
1642
|
-
|
|
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
|
-
|
|
1647
|
-
|
|
1648
|
-
const { rate } =
|
|
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
|
-
...
|
|
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: "
|
|
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-
|
|
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-[
|
|
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 ? 'Скрыть' : 'Показать
|
|
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.
|
|
5097
|
+
const packageVersion = "0.11.1";
|
|
5073
5098
|
|
|
5074
5099
|
exports.Blocks = Blocks;
|
|
5075
5100
|
exports.ContentPage = ContentPage;
|