@redneckz/wildless-cms-uni-blocks 0.13.6 → 0.13.7
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.13.6.js +33 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +75 -45
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
- package/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
- package/bundle/ui-kit/Badge/Badge.d.ts +6 -0
- package/bundle/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
- package/bundle/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
- package/bundle/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
- package/bundle/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
- package/bundle/ui-kit/TabsControl/TabItem.d.ts +5 -2
- package/dist/components/Blocks.mobile.js +6 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js +2 -3
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +2 -3
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +2 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +8 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
- package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/MortgageFiltration/MortgageFiltration.js +10 -15
- package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
- package/dist/ui-kit/Badge/Badge.d.ts +6 -0
- package/dist/ui-kit/Badge/Badge.js +18 -0
- package/dist/ui-kit/Badge/Badge.js.map +1 -0
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
- package/dist/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
- package/dist/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
- package/dist/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
- package/dist/ui-kit/BaseFiltration/getBadgeCount.js +6 -0
- package/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
- package/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
- package/{mobile/dist/components/MortgageFiltration/HotFilterRecord.js → dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
- package/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
- package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
- package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
- package/dist/ui-kit/BaseFiltration/useHotFilters.js +26 -0
- package/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
- package/dist/ui-kit/BaseTile/BaseTile.js +1 -5
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabItem.d.ts +5 -2
- package/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabItemInner.js +2 -2
- package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.mobile.js +6 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js +2 -3
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +2 -3
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +2 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.fixture.d.ts +1 -0
- package/lib/components/HorizontalLayout/HorizontalLayout.js +8 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/MortgageFiltration/MortgageFiltration.js +11 -16
- package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
- package/lib/ui-kit/Badge/Badge.d.ts +6 -0
- package/lib/ui-kit/Badge/Badge.fixture.d.ts +6 -0
- package/lib/ui-kit/Badge/Badge.js +16 -0
- package/lib/ui-kit/Badge/Badge.js.map +1 -0
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
- package/lib/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
- package/lib/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
- package/lib/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
- package/lib/ui-kit/BaseFiltration/getBadgeCount.js +3 -0
- package/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
- package/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
- package/lib/{components/MortgageFiltration/HotFilterRecord.js → ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
- package/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
- package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
- package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
- package/lib/ui-kit/BaseFiltration/useHotFilters.js +23 -0
- package/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
- package/lib/ui-kit/BaseTile/BaseTile.js +1 -5
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabItem.d.ts +5 -2
- package/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabItemInner.js +3 -3
- package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +60 -25
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
- package/mobile/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
- package/mobile/bundle/ui-kit/Badge/Badge.d.ts +6 -0
- package/mobile/bundle/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
- package/mobile/bundle/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
- package/mobile/bundle/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
- package/mobile/bundle/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
- package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +5 -2
- package/mobile/dist/components/Blocks.js +6 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +2 -3
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -3
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +2 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +10 -15
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
- package/mobile/dist/ui-kit/Badge/Badge.d.ts +6 -0
- package/mobile/dist/ui-kit/Badge/Badge.js +18 -0
- package/mobile/dist/ui-kit/Badge/Badge.js.map +1 -0
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
- package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
- package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
- package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
- package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js +6 -0
- package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
- package/mobile/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
- package/{dist/components/MortgageFiltration/HotFilterRecord.js → mobile/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
- package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
- package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js +26 -0
- package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -5
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +5 -2
- package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +2 -2
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +6 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +2 -3
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -3
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +2 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +11 -16
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
- package/mobile/lib/ui-kit/Badge/Badge.d.ts +6 -0
- package/mobile/lib/ui-kit/Badge/Badge.js +16 -0
- package/mobile/lib/ui-kit/Badge/Badge.js.map +1 -0
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
- package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
- package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
- package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
- package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js +3 -0
- package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
- package/mobile/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
- package/mobile/lib/{components/MortgageFiltration/HotFilterRecord.js → ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
- package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
- package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js +23 -0
- package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -5
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +5 -2
- package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +3 -3
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/src/components/Blocks.ts +6 -0
- package/mobile/src/components/Bonus/Bonus.tsx +7 -13
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +10 -12
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +2 -10
- package/mobile/src/components/Footer/TextInformation.tsx +3 -2
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +17 -37
- package/mobile/src/components/MortgageFiltration/MortgageFiltrationContent.ts +13 -9
- package/mobile/src/ui-kit/Badge/Badge.tsx +34 -0
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -20
- package/mobile/src/ui-kit/BaseFiltration/HotFilterBase.ts +7 -0
- package/mobile/src/ui-kit/BaseFiltration/getBadgeCount.ts +6 -0
- package/mobile/src/ui-kit/BaseFiltration/hotFilterRecordCmp.ts +3 -0
- package/mobile/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +1 -1
- package/mobile/src/ui-kit/BaseFiltration/useHotFilters.tsx +65 -0
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -12
- package/mobile/src/ui-kit/TabsControl/TabItem.tsx +5 -3
- package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +2 -1
- package/package.json +1 -1
- package/src/components/Blocks.mobile.ts +6 -0
- package/src/components/Bonus/Bonus.tsx +7 -13
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +10 -12
- package/src/components/ErrorBlock/ErrorBlock.tsx +2 -10
- package/src/components/Footer/TextInformation.tsx +3 -2
- package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +21 -0
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -0
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +5 -2
- package/src/components/MortgageFiltration/MortgageFiltration.tsx +17 -37
- package/src/components/MortgageFiltration/MortgageFiltrationContent.ts +13 -9
- package/src/ui-kit/Badge/Badge.fixture.tsx +24 -0
- package/src/ui-kit/Badge/Badge.tsx +34 -0
- package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -20
- package/src/ui-kit/BaseFiltration/HotFilterBase.ts +7 -0
- package/src/ui-kit/BaseFiltration/getBadgeCount.ts +6 -0
- package/src/ui-kit/BaseFiltration/hotFilterRecordCmp.ts +3 -0
- package/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +1 -1
- package/src/ui-kit/BaseFiltration/useHotFilters.tsx +65 -0
- package/src/ui-kit/BaseTile/BaseTile.tsx +3 -12
- package/src/ui-kit/TabsControl/TabItem.tsx +5 -3
- package/src/ui-kit/TabsControl/TabItemInner.tsx +2 -1
- package/bundle/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
- package/dist/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
- package/dist/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
- package/lib/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
- package/lib/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
- package/mobile/bundle/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
- package/mobile/dist/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
- package/mobile/dist/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
- package/mobile/lib/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
- package/mobile/lib/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
- package/mobile/src/components/MortgageFiltration/HotFilterRecord.ts +0 -14
- package/src/components/MortgageFiltration/HotFilterRecord.ts +0 -14
package/bundle/bundle.umd.js
CHANGED
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
});
|
|
1379
1379
|
|
|
1380
1380
|
const Bonus = JSX(({ className = '', title, description, bonusItems = [], ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isEmbedded: true, title: title, description: description, headlineVersion: "M" }), jsx("div", { className: "flex flex-wrap w-full", children: bonusItems.length > 0
|
|
1381
|
-
? bonusItems.map((_, i) => (jsxs("div", { className: "space-y-xs flex flex-col grow w-full sm:w-[49%] border border-gray p-m", children: [
|
|
1381
|
+
? bonusItems.map((_, i) => (jsxs("div", { className: "space-y-xs flex flex-col grow w-full sm:w-[49%] border border-gray p-m", children: [jsx("div", { className: "grow", children: jsx(Headline, { title: _?.title, description: _?.description, headlineVersion: "S", isEmbedded: true, align: "text-left" }) }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
|
|
1382
1382
|
? renderBonusItemContent(_.bonusItemContent)
|
|
1383
1383
|
: null] })] }, String(i))))
|
|
1384
1384
|
: null })] }) })));
|
|
@@ -2594,7 +2594,7 @@
|
|
|
2594
2594
|
});
|
|
2595
2595
|
|
|
2596
2596
|
const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
|
|
2597
|
-
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null,
|
|
2597
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx("div", { className: "p-s", children: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left" }) })] }) }));
|
|
2598
2598
|
});
|
|
2599
2599
|
|
|
2600
2600
|
const imageAlignmentMap = {
|
|
@@ -2603,11 +2603,7 @@
|
|
|
2603
2603
|
end: 'self-end',
|
|
2604
2604
|
};
|
|
2605
2605
|
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-wrap @xl:flex-nowrap justify-around @xl:justify-between items-stretch gap-3xl", children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, { className: '-order-1 @xl:order-1', imageAlign })] })] })));
|
|
2606
|
-
const renderImageContainer = (image, { className, imageAlign }) => {
|
|
2607
|
-
//TODO Спорное решение
|
|
2608
|
-
const fullWidth = image?.props?.image?.size?.width > 400;
|
|
2609
|
-
return image ? (jsx("div", { className: style('flex-shrink-0', fullWidth ? 'w-full @xl:w-auto' : '', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2610
|
-
};
|
|
2606
|
+
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2611
2607
|
|
|
2612
2608
|
const cardColumnsModeStyleMap = {
|
|
2613
2609
|
1: 'grid-cols-1',
|
|
@@ -2948,12 +2944,12 @@
|
|
|
2948
2944
|
const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
|
|
2949
2945
|
? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
|
|
2950
2946
|
: [blocksToRender, []];
|
|
2951
|
-
return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style(blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style(
|
|
2952
|
-
return (jsx(FoldableSection, { className: style(resultsGridStyle
|
|
2947
|
+
return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style('space-y-2xs', blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style(resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
|
|
2948
|
+
return (jsx(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
|
|
2953
2949
|
}, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
|
|
2954
2950
|
});
|
|
2955
2951
|
function renderNotFound({ title, description }) {
|
|
2956
|
-
return (
|
|
2952
|
+
return (jsx("div", { className: "bg-white py-20", children: jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true }) }));
|
|
2957
2953
|
}
|
|
2958
2954
|
|
|
2959
2955
|
const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
|
|
@@ -2972,7 +2968,7 @@
|
|
|
2972
2968
|
return items.map((item) => (jsx(SlideCheckbox, { text: item.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
|
|
2973
2969
|
});
|
|
2974
2970
|
|
|
2975
|
-
const renderFiltrationForm = ({ field, reset, filtrationSchema, resetButton, children, }) => (jsxs("form", { className: "flex justify-between bg-white p-4xl
|
|
2971
|
+
const renderFiltrationForm = ({ field, reset, filtrationSchema, resetButton, children, }) => (jsxs("form", { className: "flex justify-between bg-white p-4xl", children: [jsxs("div", { className: "flex gap-5xl", children: [children, Object.entries(filtrationSchema).map(renderFormItem(field))] }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-72 ml-s", onClick: reset, ...resetButton }) })) : null] }));
|
|
2976
2972
|
const renderFormItem = (field) => ([key, item]) => {
|
|
2977
2973
|
const type = item?.type;
|
|
2978
2974
|
switch (type) {
|
|
@@ -3021,7 +3017,7 @@
|
|
|
3021
3017
|
return null;
|
|
3022
3018
|
};
|
|
3023
3019
|
const getErrorBlockStyle = (text) => (text ? 'py-20' : 'mb-16 mt-24');
|
|
3024
|
-
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col gap-lg justify-center items-center', className), defaultPadding: style('py-xs', getErrorBlockStyle(button?.text)), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }),
|
|
3020
|
+
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col gap-lg justify-center items-center', className), defaultPadding: style('py-xs', getErrorBlockStyle(button?.text)), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: subtitle, headlineVersion: "XL", isEmbedded: true }), button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
|
|
3025
3021
|
|
|
3026
3022
|
var Currencies;
|
|
3027
3023
|
(function (Currencies) {
|
|
@@ -3470,7 +3466,7 @@
|
|
|
3470
3466
|
return (jsx("a", { className: `text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
|
|
3471
3467
|
});
|
|
3472
3468
|
|
|
3473
|
-
const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", 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 flex-col
|
|
3469
|
+
const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: style('@container', className), children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", 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 flex-col @lg:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
|
|
3474
3470
|
|
|
3475
3471
|
const LEFT_COL_WIDTH = 'w-52';
|
|
3476
3472
|
const Footer = JSX(({ className, ...rest }) => {
|
|
@@ -3776,7 +3772,14 @@
|
|
|
3776
3772
|
'': '',
|
|
3777
3773
|
};
|
|
3778
3774
|
|
|
3779
|
-
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren(
|
|
3775
|
+
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, isCardBorder, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
|
|
3776
|
+
...rest,
|
|
3777
|
+
extraProps: {
|
|
3778
|
+
className: isCardBorder
|
|
3779
|
+
? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
|
|
3780
|
+
: '',
|
|
3781
|
+
},
|
|
3782
|
+
}) })));
|
|
3780
3783
|
HorizontalLayout.childrenTypes = {
|
|
3781
3784
|
exclude: ['HorizontalLayout'],
|
|
3782
3785
|
};
|
|
@@ -3883,7 +3886,7 @@
|
|
|
3883
3886
|
const renderInvestmentColumn = (column, i, arr) => {
|
|
3884
3887
|
const isSecondColumn = i === 1;
|
|
3885
3888
|
const isLastColumn = i === arr.length - 1;
|
|
3886
|
-
return (jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: column.cells?.length ? (jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-2xs min-w-
|
|
3889
|
+
return (jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: column.cells?.length ? (jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-2xs min-w-72' : ''}`, children: column.cells.reverse().map(renderInvestmentCell) })) : null }, `column_${i}`));
|
|
3887
3890
|
};
|
|
3888
3891
|
const getColumnClasses = (isSecondColumn, isLastColumn, cells = []) => [
|
|
3889
3892
|
cells.length ? 'flex-1' : 'flex-0',
|
|
@@ -3957,6 +3960,51 @@
|
|
|
3957
3960
|
return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', AlignText[alignTitle]) })) : null, rightImage: image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null, buttons: buttonsConditionStyle(buttons), children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 flex-wrap gap-m items-center", children: [qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, renderList$1(items), image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
3958
3961
|
});
|
|
3959
3962
|
|
|
3963
|
+
const badgeBgStyleMap = {
|
|
3964
|
+
primary: 'bg-white/30',
|
|
3965
|
+
secondary: 'bg-main-divider',
|
|
3966
|
+
};
|
|
3967
|
+
const badgeTextColorStyleMap = {
|
|
3968
|
+
primary: 'text-white',
|
|
3969
|
+
secondary: 'text-secondary-text',
|
|
3970
|
+
};
|
|
3971
|
+
const Badge = JSX(({ count, version = 'secondary' }) => {
|
|
3972
|
+
return (jsx("div", { className: style('w-6 h-6 rounded-full flex items-center justify-center', badgeBgStyleMap[version]), children: jsx(Text, { size: "text-xs", color: badgeTextColorStyleMap[version], children: count }) }));
|
|
3973
|
+
});
|
|
3974
|
+
|
|
3975
|
+
const getBadgeCount = (blocks = [], filter = {}) => blocks.filter(({ content = {} }) => checkShouldRenderBlock(filter, content)).length;
|
|
3976
|
+
|
|
3977
|
+
const scalarCmp = (a, b) => a === b;
|
|
3978
|
+
const arrCmp = (cmp = scalarCmp) => (a, b) => a === b || Boolean(a && b && a.length === b.length && a.every((_, i) => cmp(_, b[i])));
|
|
3979
|
+
const objCmp = (cmp) => (a, b) => a === b ||
|
|
3980
|
+
Boolean(a &&
|
|
3981
|
+
b &&
|
|
3982
|
+
Object.keys(a).length === Object.keys(b).length &&
|
|
3983
|
+
Object.entries(a).every(([key, value]) => cmp(value, b[key])));
|
|
3984
|
+
function combineBoolCmps(...comparators) {
|
|
3985
|
+
return (a, b) => comparators.some((cmp) => cmp(a, b));
|
|
3986
|
+
}
|
|
3987
|
+
|
|
3988
|
+
const hotFilterRecordCmp = objCmp(combineBoolCmps(scalarCmp, arrCmp()));
|
|
3989
|
+
|
|
3990
|
+
const EMPTY_ARR = [];
|
|
3991
|
+
const EMPTY_OBJ = {};
|
|
3992
|
+
const useHotFilters = ({ hotFilters = EMPTY_ARR, filtrationState = EMPTY_OBJ, blocks = EMPTY_ARR, onFiltrationStateChange, }) => {
|
|
3993
|
+
const activeItemIndex = useMemo(() => Math.max(0, hotFilters.findIndex((_) => hotFilterRecordCmp(_.filter, filtrationState))), [hotFilters, filtrationState]);
|
|
3994
|
+
const items = useMemo(() => hotFilters.map((_) => ({
|
|
3995
|
+
text: _.text,
|
|
3996
|
+
appendRight: (jsx(Badge, { version: _ === hotFilters[activeItemIndex] ? 'primary' : 'secondary', count: getBadgeCount(blocks, _.filter) })),
|
|
3997
|
+
})), [hotFilters, blocks, activeItemIndex]);
|
|
3998
|
+
const handleChange = useCallback((_) => {
|
|
3999
|
+
onFiltrationStateChange(hotFilters[items.indexOf(_)].filter);
|
|
4000
|
+
}, [hotFilters, items]);
|
|
4001
|
+
return {
|
|
4002
|
+
value: items[activeItemIndex],
|
|
4003
|
+
items: items,
|
|
4004
|
+
onChange: handleChange,
|
|
4005
|
+
};
|
|
4006
|
+
};
|
|
4007
|
+
|
|
3960
4008
|
const tabPaddingStyleMap = {
|
|
3961
4009
|
default: 'px-xs',
|
|
3962
4010
|
underlined: 'px-m',
|
|
@@ -3980,8 +4028,8 @@
|
|
|
3980
4028
|
};
|
|
3981
4029
|
const TabItemInner = JSX(({ tag = 'div', item = {}, isActive, type = 'default', onClick }) => {
|
|
3982
4030
|
const Tag = tag;
|
|
3983
|
-
const { text, ...link } = item;
|
|
3984
|
-
return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tab", "aria-selected": isActive, onClick: onClick, ...link, children:
|
|
4031
|
+
const { text, appendRight, ...link } = item;
|
|
4032
|
+
return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tab", "aria-selected": isActive, onClick: onClick, ...link, children: jsxs("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), children: [jsx(Text, { size: "text-m", children: text }), appendRight ? jsx("div", { className: "ml-xs", children: appendRight }) : null] }) }));
|
|
3985
4033
|
});
|
|
3986
4034
|
|
|
3987
4035
|
const TabItem = JSX((props) => props?.item?.href ? jsx(LinkTabItem, { ...props }) : jsx(ButtonTabItem, { ...props }));
|
|
@@ -4005,40 +4053,22 @@
|
|
|
4005
4053
|
|
|
4006
4054
|
const TabsControl = JSX(({ className, tabsType = 'default', items = [], value, onChange }) => (jsx("div", { className: style('flex gap-x-2xs overflow-x-auto no-scrollbar', className), role: "tablist", children: items.map(renderTab(value, onChange, tabsType)) })));
|
|
4007
4055
|
|
|
4008
|
-
const scalarCmp = (a, b) => a === b;
|
|
4009
|
-
const arrCmp = (cmp = scalarCmp) => (a, b) => a === b || Boolean(a && b && a.length === b.length && a.every((_, i) => cmp(_, b[i])));
|
|
4010
|
-
const objCmp = (cmp) => (a, b) => a === b ||
|
|
4011
|
-
Boolean(a &&
|
|
4012
|
-
b &&
|
|
4013
|
-
Object.keys(a).length === Object.keys(b).length &&
|
|
4014
|
-
Object.entries(a).every(([key, value]) => cmp(value, b[key])));
|
|
4015
|
-
function combineBoolCmps(...comparators) {
|
|
4016
|
-
return (a, b) => comparators.some((cmp) => cmp(a, b));
|
|
4017
|
-
}
|
|
4018
|
-
|
|
4019
|
-
const hotFilterRecordCmp = objCmp(combineBoolCmps(scalarCmp, arrCmp()));
|
|
4020
|
-
|
|
4021
4056
|
const initialFiltrationState = {
|
|
4022
4057
|
categories: [],
|
|
4023
4058
|
extraOptions: [],
|
|
4024
4059
|
propertyType: [],
|
|
4025
4060
|
stage: [],
|
|
4026
4061
|
};
|
|
4027
|
-
const MortgageFiltration = JSX(({ className, hotFilters
|
|
4062
|
+
const MortgageFiltration = JSX(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
|
|
4028
4063
|
const [filtrationState, { field, reset, update: replaceFiltrationState }] = useForm(initialFiltrationState);
|
|
4029
|
-
const
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
useEffect(() => {
|
|
4038
|
-
const suggestedHotFilterIndex = hotFilters.findIndex((_) => hotFilterRecordCmp(_.filter, filtrationState));
|
|
4039
|
-
setHotFilterIndex(suggestedHotFilterIndex !== -1 ? suggestedHotFilterIndex : 0);
|
|
4040
|
-
}, [hotFilters, filtrationState]);
|
|
4041
|
-
return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { className: "mb-2xs", items: tabsControlItems, value: tabsControlItems[hotFilterIndex], onChange: handleHotFilterSelect }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
|
|
4064
|
+
const handleFiltrationStateChange = useCallback((_ = initialFiltrationState) => replaceFiltrationState(_), []);
|
|
4065
|
+
const tabsControlProps = useHotFilters({
|
|
4066
|
+
hotFilters,
|
|
4067
|
+
filtrationState,
|
|
4068
|
+
blocks: rest.block?.blocks,
|
|
4069
|
+
onFiltrationStateChange: handleFiltrationStateChange,
|
|
4070
|
+
});
|
|
4071
|
+
return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
|
|
4042
4072
|
});
|
|
4043
4073
|
MortgageFiltration.childrenTypes = ['ProductTile'];
|
|
4044
4074
|
MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
|
|
@@ -5234,7 +5264,7 @@
|
|
|
5234
5264
|
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" }) }));
|
|
5235
5265
|
}
|
|
5236
5266
|
|
|
5237
|
-
const packageVersion = "0.13.
|
|
5267
|
+
const packageVersion = "0.13.7";
|
|
5238
5268
|
|
|
5239
5269
|
exports.Blocks = Blocks;
|
|
5240
5270
|
exports.ContentPage = ContentPage;
|