@redneckz/wildless-cms-uni-blocks 0.14.20 → 0.14.22
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/bin/migration-scripts/0.14.20.js +30 -0
- package/bin/migration-scripts/0.14.21.js +33 -0
- package/bin/migration-scripts/0.14.7.js +1 -4
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +18 -20
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
- package/bundle/components/Footer/SocialMedia.d.ts +3 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/bundle/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/bundle/content-page-repository/transformContentPage.d.ts +3 -2
- package/bundle/ui-kit/List/ListContent.d.ts +0 -1
- package/dist/api/CorporateLeadAPI.js +3 -0
- package/dist/api/CorporateLeadAPI.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +3 -1
- package/dist/components/Footer/SocialMedia.js +4 -3
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +5 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/dist/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/dist/content-page-repository/transformAttachmentLink.js +33 -0
- package/dist/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/dist/content-page-repository/transformContentPage.d.ts +3 -2
- package/dist/content-page-repository/transformContentPage.js +7 -1
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformDocument.js +1 -1
- package/dist/content-page-repository/transformDocument.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +1 -1
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/ui-kit/List/ListContent.d.ts +0 -1
- package/lib/api/CorporateLeadAPI.js +3 -0
- package/lib/api/CorporateLeadAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +2 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +3 -1
- package/lib/components/Footer/SocialMedia.js +4 -3
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +5 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/lib/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/lib/content-page-repository/transformAttachmentLink.js +27 -0
- package/lib/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/lib/content-page-repository/transformContentPage.d.ts +3 -2
- package/lib/content-page-repository/transformContentPage.js +6 -0
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformDocument.js +1 -1
- package/lib/content-page-repository/transformDocument.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +1 -1
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/bundle/bundle.umd.js +19 -12
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +3 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/bundle/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/mobile/bundle/content-page-repository/transformContentPage.d.ts +3 -2
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/dist/api/CorporateLeadAPI.js +3 -0
- package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +3 -1
- package/mobile/dist/components/Footer/SocialMedia.js +4 -3
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +5 -2
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/dist/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/mobile/dist/content-page-repository/transformAttachmentLink.js +33 -0
- package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +3 -2
- package/mobile/dist/content-page-repository/transformContentPage.js +7 -1
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +1 -1
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/lib/api/CorporateLeadAPI.js +3 -0
- package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +2 -2
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +2 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +1 -2
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +2 -2
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +3 -1
- package/mobile/lib/components/Footer/SocialMedia.js +4 -3
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +5 -2
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/lib/content-page-repository/transformAttachmentLink.d.ts +3 -0
- package/mobile/lib/content-page-repository/transformAttachmentLink.js +27 -0
- package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +3 -2
- package/mobile/lib/content-page-repository/transformContentPage.js +6 -0
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +1 -1
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListContent.d.ts +0 -1
- package/mobile/src/api/CorporateLeadAPI.ts +4 -0
- package/mobile/src/components/Bonus/Bonus.ui.json +3 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +2 -2
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +26 -23
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +3 -8
- package/mobile/src/components/BusinessBlock/BusinessBlock.ui.json +3 -0
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.ui.json +3 -0
- package/mobile/src/components/Calculator/Calculator.ui.json +3 -0
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +3 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +3 -0
- package/mobile/src/components/Footer/SocialMedia.tsx +8 -5
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +9 -2
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/mobile/src/components/ProductGallery/ProductGallery.ui.json +3 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +3 -0
- package/mobile/src/components/StepsBlock/StepsBlock.ui.json +6 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +0 -1
- package/mobile/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/mobile/src/content-page-repository/transformAttachmentLink.ts +38 -0
- package/mobile/src/content-page-repository/transformContentPage.ts +13 -4
- package/mobile/src/content-page-repository/transformDocument.ts +1 -1
- package/mobile/src/content-page-repository/transformImg.ts +1 -1
- package/mobile/src/ui-kit/List/ListContent.ts +0 -1
- package/mobile/tailwind.config.cjs +127 -0
- package/package.json +2 -1
- package/src/api/CorporateLeadAPI.ts +4 -0
- package/src/components/Bonus/Bonus.ui.json +3 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +2 -2
- package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +26 -23
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +3 -8
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +4 -5
- package/src/components/BusinessBlock/BusinessBlock.ui.json +3 -0
- package/src/components/ButtonsBlock/ButtonsBlock.ui.json +3 -0
- package/src/components/Calculator/Calculator.ui.json +3 -0
- package/src/components/CarouselProductCard/CarouselProductCard.ui.json +3 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +3 -0
- package/src/components/Footer/Footer.tsx +3 -1
- package/src/components/Footer/SocialMedia.tsx +8 -5
- package/src/components/ProductBlock/ProductBlock.tsx +9 -2
- package/src/components/ProductBlock/ProductBlockContent.ts +2 -0
- package/src/components/ProductGallery/ProductGallery.ui.json +3 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +3 -0
- package/src/components/StepsBlock/StepsBlock.ui.json +6 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +0 -1
- package/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/src/content-page-repository/transformAttachmentLink.ts +38 -0
- package/src/content-page-repository/transformContentPage.ts +13 -4
- package/src/content-page-repository/transformDocument.ts +1 -1
- package/src/content-page-repository/transformImg.ts +1 -1
- package/src/ui-kit/List/ListContent.ts +0 -1
- package/bundle/model/AlignText.d.ts +0 -6
- package/bundle/model/AlignType.d.ts +0 -21
- package/dist/model/AlignText.d.ts +0 -6
- package/dist/model/AlignText.js +0 -11
- package/dist/model/AlignText.js.map +0 -1
- package/dist/model/AlignType.d.ts +0 -21
- package/dist/model/AlignType.js +0 -2
- package/dist/model/AlignType.js.map +0 -1
- package/lib/model/AlignText.d.ts +0 -6
- package/lib/model/AlignText.js +0 -9
- package/lib/model/AlignText.js.map +0 -1
- package/lib/model/AlignType.d.ts +0 -21
- package/lib/model/AlignType.js +0 -2
- package/lib/model/AlignType.js.map +0 -1
- package/mobile/bundle/model/AlignText.d.ts +0 -6
- package/mobile/bundle/model/AlignType.d.ts +0 -21
- package/mobile/dist/model/AlignText.d.ts +0 -6
- package/mobile/dist/model/AlignText.js +0 -11
- package/mobile/dist/model/AlignText.js.map +0 -1
- package/mobile/dist/model/AlignType.d.ts +0 -21
- package/mobile/dist/model/AlignType.js +0 -2
- package/mobile/dist/model/AlignType.js.map +0 -1
- package/mobile/lib/model/AlignText.d.ts +0 -6
- package/mobile/lib/model/AlignText.js +0 -9
- package/mobile/lib/model/AlignText.js.map +0 -1
- package/mobile/lib/model/AlignType.d.ts +0 -21
- package/mobile/lib/model/AlignType.js +0 -2
- package/mobile/lib/model/AlignType.js.map +0 -1
- package/mobile/src/model/AlignText.ts +0 -11
- package/mobile/src/model/AlignType.ts +0 -22
- package/src/model/AlignText.ts +0 -11
- package/src/model/AlignType.ts +0 -22
package/bundle/bundle.umd.js
CHANGED
|
@@ -252,6 +252,9 @@
|
|
|
252
252
|
mode: 'cors',
|
|
253
253
|
body: JSON.stringify(body),
|
|
254
254
|
});
|
|
255
|
+
if (!response?.ok) {
|
|
256
|
+
return null;
|
|
257
|
+
}
|
|
255
258
|
const data = await response.json();
|
|
256
259
|
return data;
|
|
257
260
|
}
|
|
@@ -1402,20 +1405,11 @@
|
|
|
1402
1405
|
jsx("div", { className: "shrink-0 -mb-10", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: _.bonusCount }) })) : null, _.bonusName ? (jsx("div", { className: "shrink-0 gradient-color-text", children: jsx(Text, { size: "text-h2", children: _.bonusName }) })) : null] }));
|
|
1403
1406
|
const renderBonusImage = (_) => _.image ? jsx(Img, { className: "min-w-12 p-xs rounded-icon shrink-0", image: _.image }) : null;
|
|
1404
1407
|
|
|
1405
|
-
/**
|
|
1406
|
-
* @deprecated
|
|
1407
|
-
*/
|
|
1408
|
-
const AlignText = {
|
|
1409
|
-
left: 'text-left',
|
|
1410
|
-
center: 'text-center',
|
|
1411
|
-
right: 'text-right',
|
|
1412
|
-
};
|
|
1413
|
-
|
|
1414
1408
|
const bonusBenefitStyles = 'items-center';
|
|
1415
1409
|
|
|
1416
|
-
const renderBonusBenefit = ({ icon, title, description }, i) => (jsxs("div", { className: style('flex flex-col', bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? (jsx(Text, { size: "text-h6", font: "font-normal", align:
|
|
1410
|
+
const renderBonusBenefit = (cardTextAlign) => ({ icon, title, description }, i) => (jsxs("div", { className: style('flex flex-col gap-1', bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? (jsx(Text, { size: "text-h6", font: "font-normal", align: cardTextAlign, children: title })) : null, icon ? jsx(Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? (jsx(Text, { size: "text-h6", font: "font-normal", align: cardTextAlign, children: description })) : null] }, String(i)));
|
|
1417
1411
|
|
|
1418
|
-
const renderBonusBenefits = (bonusBenefits, columnsCount, cardTextAlign) => (jsx("div", { className: `grid gap-2xs ${
|
|
1412
|
+
const renderBonusBenefits = (bonusBenefits, columnsCount, cardTextAlign) => (jsx("div", { className: `grid gap-2xs ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit(cardTextAlign)) }));
|
|
1419
1413
|
const getElementsColsValue = (colValue) => {
|
|
1420
1414
|
switch (colValue) {
|
|
1421
1415
|
case '3':
|
|
@@ -1429,7 +1423,7 @@
|
|
|
1429
1423
|
}
|
|
1430
1424
|
};
|
|
1431
1425
|
|
|
1432
|
-
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
|
|
1426
|
+
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'text-center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
|
|
1433
1427
|
? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
|
|
1434
1428
|
: null] })));
|
|
1435
1429
|
|
|
@@ -2810,20 +2804,21 @@
|
|
|
2810
2804
|
|
|
2811
2805
|
const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
|
|
2812
2806
|
|
|
2813
|
-
const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, children }) => {
|
|
2807
|
+
const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, version = 'white', children }) => {
|
|
2814
2808
|
const [hasText, setHasText] = useState();
|
|
2815
2809
|
const buttons = media?.map((_) => {
|
|
2816
2810
|
const { href, icon, text } = _;
|
|
2817
2811
|
const { iconMapped } = findIconByHref(href);
|
|
2818
2812
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
2819
|
-
const buttonText = showButtonText ? { text } : {};
|
|
2813
|
+
const buttonText = showButtonText ? { text } : { text: '' };
|
|
2820
2814
|
if (!hasText && text) {
|
|
2821
2815
|
setHasText(true);
|
|
2822
2816
|
}
|
|
2823
2817
|
return {
|
|
2818
|
+
..._,
|
|
2824
2819
|
...buttonText,
|
|
2825
2820
|
icon: { ...iconCustom, iconVersion: 'color' },
|
|
2826
|
-
version
|
|
2821
|
+
version,
|
|
2827
2822
|
};
|
|
2828
2823
|
});
|
|
2829
2824
|
const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : ' basis-auto', stretched ? 'flex-1 justify-center' : '');
|
|
@@ -2838,7 +2833,7 @@
|
|
|
2838
2833
|
|
|
2839
2834
|
//TODO: replace SocialMedia with renderButtonSection
|
|
2840
2835
|
const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', isImageAlwaysOnRight = ImageAlwaysOnRight, ...rest }) => {
|
|
2841
|
-
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia, showButtonText: true }) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
|
|
2836
|
+
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, insetTitle: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, rightImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? (jsx(SocialMedia, { media: socialMedia, showButtonText: true, version: rest.version })) : null, isImageAlwaysOnRight: isImageAlwaysOnRight, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
|
|
2842
2837
|
});
|
|
2843
2838
|
|
|
2844
2839
|
const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
|
|
@@ -3836,7 +3831,7 @@
|
|
|
3836
3831
|
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } = useSWRResource(projectSettings.FOOTER || 'footer', {
|
|
3837
3832
|
fallback: rest.options?.page?.fallback,
|
|
3838
3833
|
});
|
|
3839
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3834
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, showButtonText: false, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3840
3835
|
});
|
|
3841
3836
|
|
|
3842
3837
|
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
|
|
@@ -4814,13 +4809,16 @@
|
|
|
4814
4809
|
} }) }), jsx(Button, { version: "link", text: text, ariaLabel: text, onClick: handleClick })] }));
|
|
4815
4810
|
}
|
|
4816
4811
|
|
|
4817
|
-
const ProductBlock = JSX(({ className, padding, backwardButton, ...rest }) => {
|
|
4812
|
+
const ProductBlock = JSX(({ className, padding, backwardButton, showBorder, ...rest }) => {
|
|
4818
4813
|
const router = useRouter();
|
|
4819
4814
|
const handleClick = useCallback((ev) => {
|
|
4820
4815
|
ev?.preventDefault();
|
|
4821
4816
|
router.back();
|
|
4822
4817
|
}, []);
|
|
4823
|
-
|
|
4818
|
+
const borderStyle = showBorder
|
|
4819
|
+
? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
|
|
4820
|
+
: '';
|
|
4821
|
+
return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', borderStyle, className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
|
|
4824
4822
|
? renderBackwardButton(!rest.version || rest.version === 'primary' ? 'primary' : 'white', handleClick)
|
|
4825
4823
|
: null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
|
|
4826
4824
|
});
|
|
@@ -5663,7 +5661,7 @@
|
|
|
5663
5661
|
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" }) }));
|
|
5664
5662
|
}
|
|
5665
5663
|
|
|
5666
|
-
const packageVersion = "0.14.
|
|
5664
|
+
const packageVersion = "0.14.22";
|
|
5667
5665
|
|
|
5668
5666
|
exports.Blocks = Blocks;
|
|
5669
5667
|
exports.ContentPage = ContentPage;
|