@redneckz/wildless-cms-uni-blocks 0.13.5 → 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 +133 -84
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- package/bundle/components/Header/HeaderSubMenu.d.ts +1 -1
- package/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -5
- package/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
- package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/model/HeadlineType.d.ts +1 -1
- 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/DialogManager/useDialogsList.d.ts +7 -0
- package/bundle/ui-kit/TabsControl/TabItem.d.ts +5 -2
- package/cosmos-static/icons/CourtHouseIcon.svg +1 -0
- 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/ButtonsBlock/ButtonsBlock.js +9 -1
- package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js +2 -3
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- 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/Header/HeaderSubMenu.d.ts +1 -1
- package/dist/components/Header/HeaderSubMenu.js +4 -4
- package/dist/components/Header/HeaderSubMenu.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/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/HeadlineType.d.ts +1 -1
- 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/DialogManager/DialogManager.js +9 -29
- package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/dist/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
- package/dist/ui-kit/DialogManager/useDialogsList.js +37 -0
- package/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -0
- 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/ButtonsBlock/ButtonsBlock.js +9 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js +2 -3
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- 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/Header/HeaderSubMenu.d.ts +1 -1
- package/lib/components/Header/HeaderSubMenu.js +4 -4
- package/lib/components/Header/HeaderSubMenu.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/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/HeadlineType.d.ts +1 -1
- 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/DialogManager/DialogManager.js +9 -29
- package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/lib/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
- package/lib/ui-kit/DialogManager/useDialogsList.js +34 -0
- package/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -0
- 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 +87 -33
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +1 -1
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -5
- package/mobile/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
- package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/model/HeadlineType.d.ts +1 -1
- 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/DialogManager/useDialogsList.d.ts +7 -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/ButtonsBlock/ButtonsBlock.js +9 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +2 -3
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- 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/Header/HeaderSubMenu.d.ts +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +4 -4
- package/mobile/dist/components/Header/HeaderSubMenu.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/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/HeadlineType.d.ts +1 -1
- 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/DialogManager/DialogManager.js +9 -29
- package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
- package/mobile/dist/ui-kit/DialogManager/useDialogsList.js +37 -0
- package/mobile/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -0
- 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/ButtonsBlock/ButtonsBlock.js +9 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +2 -3
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- 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/Header/HeaderSubMenu.d.ts +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +4 -4
- package/mobile/lib/components/Header/HeaderSubMenu.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/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/HeadlineType.d.ts +1 -1
- 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/DialogManager/DialogManager.js +9 -29
- package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
- package/mobile/lib/ui-kit/DialogManager/useDialogsList.js +34 -0
- package/mobile/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -0
- 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/ButtonsBlock/ButtonsBlock.tsx +22 -5
- package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +10 -12
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -4
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +2 -10
- package/mobile/src/components/Footer/TextInformation.tsx +3 -2
- package/mobile/src/components/Header/HeaderSubMenu.tsx +17 -15
- package/mobile/src/components/Headline/Headline.example.json +1 -1
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -0
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -5
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +17 -37
- package/mobile/src/components/MortgageFiltration/MortgageFiltrationContent.ts +13 -9
- package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -8
- package/mobile/src/icons/CourtHouseIcon.svg +1 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/model/HeadlineType.ts +1 -1
- 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/DialogManager/DialogManager.tsx +9 -34
- package/mobile/src/ui-kit/DialogManager/useDialogsList.ts +50 -0
- 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/ButtonsBlock/ButtonsBlock.tsx +22 -5
- package/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -0
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +10 -12
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -4
- package/src/components/ErrorBlock/ErrorBlock.tsx +2 -10
- package/src/components/Footer/TextInformation.tsx +3 -2
- package/src/components/Header/HeaderSubMenu.tsx +17 -15
- package/src/components/Headline/Headline.example.json +1 -1
- 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/LinkDocs/LinkDocsContent.ts +3 -5
- 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/components/ParagraphBlock/ParagraphBlockContent.ts +9 -8
- package/src/icons/CourtHouseIcon.svg +1 -0
- package/src/icons/IconName.ts +4 -1
- package/src/model/HeadlineType.ts +1 -1
- 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/DialogManager/DialogManager.tsx +9 -34
- package/src/ui-kit/DialogManager/useDialogsList.ts +50 -0
- 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 })] }) })));
|
|
@@ -1434,7 +1434,15 @@
|
|
|
1434
1434
|
|
|
1435
1435
|
const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), jsx("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
1436
1436
|
|
|
1437
|
-
const
|
|
1437
|
+
const alignStyleMap = {
|
|
1438
|
+
start: 'justify-start',
|
|
1439
|
+
center: 'justify-center',
|
|
1440
|
+
end: 'justify-end',
|
|
1441
|
+
};
|
|
1442
|
+
const ButtonsBlock = JSX(({ buttons, className = '', align, ...rest }) => {
|
|
1443
|
+
const alignStyle = align ? style('flex', alignStyleMap[align]) : '';
|
|
1444
|
+
return (jsx(BlockWrapper, { className: style('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) }));
|
|
1445
|
+
});
|
|
1438
1446
|
|
|
1439
1447
|
const useCarouselControls = (props, initialIndex = 0) => {
|
|
1440
1448
|
const { itemCount, visibleItemCount } = props;
|
|
@@ -2586,7 +2594,7 @@
|
|
|
2586
2594
|
});
|
|
2587
2595
|
|
|
2588
2596
|
const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
|
|
2589
|
-
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" }) })] }) }));
|
|
2590
2598
|
});
|
|
2591
2599
|
|
|
2592
2600
|
const imageAlignmentMap = {
|
|
@@ -2595,11 +2603,7 @@
|
|
|
2595
2603
|
end: 'self-end',
|
|
2596
2604
|
};
|
|
2597
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 })] })] })));
|
|
2598
|
-
const renderImageContainer = (image, { className, imageAlign }) => {
|
|
2599
|
-
//TODO Спорное решение
|
|
2600
|
-
const fullWidth = image?.props?.image?.size?.width > 400;
|
|
2601
|
-
return image ? (jsx("div", { className: style('flex-shrink-0', fullWidth ? 'w-full @xl:w-auto' : '', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2602
|
-
};
|
|
2606
|
+
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2603
2607
|
|
|
2604
2608
|
const cardColumnsModeStyleMap = {
|
|
2605
2609
|
1: 'grid-cols-1',
|
|
@@ -2940,12 +2944,12 @@
|
|
|
2940
2944
|
const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
|
|
2941
2945
|
? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
|
|
2942
2946
|
: [blocksToRender, []];
|
|
2943
|
-
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(
|
|
2944
|
-
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 }) }));
|
|
2945
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 })) })] })] }));
|
|
2946
2950
|
});
|
|
2947
2951
|
function renderNotFound({ title, description }) {
|
|
2948
|
-
return (
|
|
2952
|
+
return (jsx("div", { className: "bg-white py-20", children: jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true }) }));
|
|
2949
2953
|
}
|
|
2950
2954
|
|
|
2951
2955
|
const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
|
|
@@ -2964,7 +2968,7 @@
|
|
|
2964
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)));
|
|
2965
2969
|
});
|
|
2966
2970
|
|
|
2967
|
-
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] }));
|
|
2968
2972
|
const renderFormItem = (field) => ([key, item]) => {
|
|
2969
2973
|
const type = item?.type;
|
|
2970
2974
|
switch (type) {
|
|
@@ -3013,7 +3017,7 @@
|
|
|
3013
3017
|
return null;
|
|
3014
3018
|
};
|
|
3015
3019
|
const getErrorBlockStyle = (text) => (text ? 'py-20' : 'mb-16 mt-24');
|
|
3016
|
-
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] })));
|
|
3017
3021
|
|
|
3018
3022
|
var Currencies;
|
|
3019
3023
|
(function (Currencies) {
|
|
@@ -3462,7 +3466,7 @@
|
|
|
3462
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}` }));
|
|
3463
3467
|
});
|
|
3464
3468
|
|
|
3465
|
-
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] })));
|
|
3466
3470
|
|
|
3467
3471
|
const LEFT_COL_WIDTH = 'w-52';
|
|
3468
3472
|
const Footer = JSX(({ className, ...rest }) => {
|
|
@@ -3623,15 +3627,6 @@
|
|
|
3623
3627
|
return (jsxs("div", { className: style('flex items-center gap-lg', className), children: [jsx(TopItem, { flat: true, href: "#", text: currentLocation?.name, onClick: openLocationDialog }), officesLink ? jsx(TopItem, { flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" }) : null, jsx(HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: "\u041F\u043E\u0438\u0441\u043A", onClick: openSearchDialog })] }));
|
|
3624
3628
|
});
|
|
3625
3629
|
|
|
3626
|
-
const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
3627
|
-
|
|
3628
|
-
const findActiveSubItem = (router) => (items = []) => {
|
|
3629
|
-
const possibleActiveSubItems = items?.filter(isHrefActive(router));
|
|
3630
|
-
return possibleActiveSubItems?.length
|
|
3631
|
-
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
3632
|
-
: undefined;
|
|
3633
|
-
};
|
|
3634
|
-
|
|
3635
3630
|
const DropdownMenu = JSX(({ className = '', items, activeItem }) => {
|
|
3636
3631
|
const link = useLink();
|
|
3637
3632
|
const [visible, setVisible] = useState(false);
|
|
@@ -3646,26 +3641,6 @@
|
|
|
3646
3641
|
}) })] }));
|
|
3647
3642
|
});
|
|
3648
3643
|
|
|
3649
|
-
const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
|
|
3650
|
-
const link = useLink();
|
|
3651
|
-
const { href, target, text, onClick } = link(rest);
|
|
3652
|
-
return (jsxs("a", { className: style('relative inline-block bg-transparent text-center no-underline', className), href: href, target: target, "data-item-name": dataItemName, onClick: onClick, children: [jsx("span", { className: getTextStyle(active), children: text || children }), active ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
|
|
3653
|
-
});
|
|
3654
|
-
const getTextStyle = (active = false) => style('font-sans text-l font-light', active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main', 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
3655
|
-
|
|
3656
|
-
const HeaderSubMenuItem = JSX(({ observerOptions, onVisibilityChange, children, className, ...rest }) => {
|
|
3657
|
-
const observerCallback = useCallback((entries) => {
|
|
3658
|
-
if (!entries.length || !onVisibilityChange) {
|
|
3659
|
-
return;
|
|
3660
|
-
}
|
|
3661
|
-
// Assumption about entries order (by time)
|
|
3662
|
-
const entry = entries[entries.length - 1];
|
|
3663
|
-
onVisibilityChange(entry.isIntersecting);
|
|
3664
|
-
}, [onVisibilityChange]);
|
|
3665
|
-
const ref = useIntersectionObserver(observerCallback, observerOptions);
|
|
3666
|
-
return (jsx("span", { ref: ref, className: className, children: jsx(HeaderItem, { ...rest, children: children }) }));
|
|
3667
|
-
});
|
|
3668
|
-
|
|
3669
3644
|
const getNS = (_) => globalThis[_];
|
|
3670
3645
|
function useExternalNS(namespaceName, url) {
|
|
3671
3646
|
const [externalNS, setExternalNS] = useState();
|
|
@@ -3721,12 +3696,41 @@
|
|
|
3721
3696
|
});
|
|
3722
3697
|
const renderChatBotButton = ({ className, iconVersion, onClick }) => (jsx(HeaderSecondaryMenuButton, { className: style(CHAT_BUTTON_EXTERNAL_NAME, className), image: { icon: 'HeadphonesIcon', iconVersion }, ariaLabel: "\u0427\u0430\u0442", onClick: onClick, buttonSize: "large", isGrayBg: true }));
|
|
3723
3698
|
|
|
3699
|
+
const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
|
|
3700
|
+
const link = useLink();
|
|
3701
|
+
const { href, target, text, onClick } = link(rest);
|
|
3702
|
+
return (jsxs("a", { className: style('relative inline-block bg-transparent text-center no-underline', className), href: href, target: target, "data-item-name": dataItemName, onClick: onClick, children: [jsx("span", { className: getTextStyle(active), children: text || children }), active ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
|
|
3703
|
+
});
|
|
3704
|
+
const getTextStyle = (active = false) => style('font-sans text-l font-light', active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main', 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
3705
|
+
|
|
3706
|
+
const HeaderSubMenuItem = JSX(({ observerOptions, onVisibilityChange, children, className, ...rest }) => {
|
|
3707
|
+
const observerCallback = useCallback((entries) => {
|
|
3708
|
+
if (!entries.length || !onVisibilityChange) {
|
|
3709
|
+
return;
|
|
3710
|
+
}
|
|
3711
|
+
// Assumption about entries order (by time)
|
|
3712
|
+
const entry = entries[entries.length - 1];
|
|
3713
|
+
onVisibilityChange(entry.isIntersecting);
|
|
3714
|
+
}, [onVisibilityChange]);
|
|
3715
|
+
const ref = useIntersectionObserver(observerCallback, observerOptions);
|
|
3716
|
+
return (jsx("span", { ref: ref, className: className, children: jsx(HeaderItem, { ...rest, children: children }) }));
|
|
3717
|
+
});
|
|
3718
|
+
|
|
3724
3719
|
const BUTTON_STYLE = {
|
|
3725
3720
|
default: 'px-lg bg-main-divider rounded hover:text-primary-main',
|
|
3726
3721
|
transparent: 'text-white hover:text-primary-hover',
|
|
3727
3722
|
};
|
|
3728
3723
|
const InternetBankButton = JSX(({ version, internetBankUrl }) => internetBankUrl ? (jsx(Button, { href: internetBankUrl, ariaLabel: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A", target: "_blank", className: style('py-s ml-s text-l font-light whitespace-nowrap hover:text-primary-main', BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default']), children: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A" })) : null);
|
|
3729
3724
|
|
|
3725
|
+
const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
3726
|
+
|
|
3727
|
+
const findActiveSubItem = (router) => (items = []) => {
|
|
3728
|
+
const possibleActiveSubItems = items?.filter(isHrefActive(router));
|
|
3729
|
+
return possibleActiveSubItems?.length
|
|
3730
|
+
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
3731
|
+
: undefined;
|
|
3732
|
+
};
|
|
3733
|
+
|
|
3730
3734
|
const HeaderSubMenu = JSX(({ subItems = [], version, internetBankUrl }) => {
|
|
3731
3735
|
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
3732
3736
|
const router = useRouter();
|
|
@@ -3740,7 +3744,7 @@
|
|
|
3740
3744
|
? handleIntersectionActivation(index)
|
|
3741
3745
|
: handleIntersectionDeactivation(index));
|
|
3742
3746
|
}), [subItems]);
|
|
3743
|
-
return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem })) : null, projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-4xl", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, jsx(InternetBankButton, { version: version, internetBankUrl: internetBankUrl })] }));
|
|
3747
|
+
return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem })) : null, jsxs("div", { className: "flex", children: [projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-4xl", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, jsx(InternetBankButton, { version: version, internetBankUrl: internetBankUrl })] })] }));
|
|
3744
3748
|
});
|
|
3745
3749
|
const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
|
|
3746
3750
|
const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
|
|
@@ -3768,7 +3772,14 @@
|
|
|
3768
3772
|
'': '',
|
|
3769
3773
|
};
|
|
3770
3774
|
|
|
3771
|
-
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
|
+
}) })));
|
|
3772
3783
|
HorizontalLayout.childrenTypes = {
|
|
3773
3784
|
exclude: ['HorizontalLayout'],
|
|
3774
3785
|
};
|
|
@@ -3875,7 +3886,7 @@
|
|
|
3875
3886
|
const renderInvestmentColumn = (column, i, arr) => {
|
|
3876
3887
|
const isSecondColumn = i === 1;
|
|
3877
3888
|
const isLastColumn = i === arr.length - 1;
|
|
3878
|
-
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}`));
|
|
3879
3890
|
};
|
|
3880
3891
|
const getColumnClasses = (isSecondColumn, isLastColumn, cells = []) => [
|
|
3881
3892
|
cells.length ? 'flex-1' : 'flex-0',
|
|
@@ -3949,6 +3960,51 @@
|
|
|
3949
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] })] }) }));
|
|
3950
3961
|
});
|
|
3951
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
|
+
|
|
3952
4008
|
const tabPaddingStyleMap = {
|
|
3953
4009
|
default: 'px-xs',
|
|
3954
4010
|
underlined: 'px-m',
|
|
@@ -3972,8 +4028,8 @@
|
|
|
3972
4028
|
};
|
|
3973
4029
|
const TabItemInner = JSX(({ tag = 'div', item = {}, isActive, type = 'default', onClick }) => {
|
|
3974
4030
|
const Tag = tag;
|
|
3975
|
-
const { text, ...link } = item;
|
|
3976
|
-
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] }) }));
|
|
3977
4033
|
});
|
|
3978
4034
|
|
|
3979
4035
|
const TabItem = JSX((props) => props?.item?.href ? jsx(LinkTabItem, { ...props }) : jsx(ButtonTabItem, { ...props }));
|
|
@@ -3997,40 +4053,22 @@
|
|
|
3997
4053
|
|
|
3998
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)) })));
|
|
3999
4055
|
|
|
4000
|
-
const scalarCmp = (a, b) => a === b;
|
|
4001
|
-
const arrCmp = (cmp = scalarCmp) => (a, b) => a === b || Boolean(a && b && a.length === b.length && a.every((_, i) => cmp(_, b[i])));
|
|
4002
|
-
const objCmp = (cmp) => (a, b) => a === b ||
|
|
4003
|
-
Boolean(a &&
|
|
4004
|
-
b &&
|
|
4005
|
-
Object.keys(a).length === Object.keys(b).length &&
|
|
4006
|
-
Object.entries(a).every(([key, value]) => cmp(value, b[key])));
|
|
4007
|
-
function combineBoolCmps(...comparators) {
|
|
4008
|
-
return (a, b) => comparators.some((cmp) => cmp(a, b));
|
|
4009
|
-
}
|
|
4010
|
-
|
|
4011
|
-
const hotFilterRecordCmp = objCmp(combineBoolCmps(scalarCmp, arrCmp()));
|
|
4012
|
-
|
|
4013
4056
|
const initialFiltrationState = {
|
|
4014
4057
|
categories: [],
|
|
4015
4058
|
extraOptions: [],
|
|
4016
4059
|
propertyType: [],
|
|
4017
4060
|
stage: [],
|
|
4018
4061
|
};
|
|
4019
|
-
const MortgageFiltration = JSX(({ className, hotFilters
|
|
4062
|
+
const MortgageFiltration = JSX(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
|
|
4020
4063
|
const [filtrationState, { field, reset, update: replaceFiltrationState }] = useForm(initialFiltrationState);
|
|
4021
|
-
const
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
useEffect(() => {
|
|
4030
|
-
const suggestedHotFilterIndex = hotFilters.findIndex((_) => hotFilterRecordCmp(_.filter, filtrationState));
|
|
4031
|
-
setHotFilterIndex(suggestedHotFilterIndex !== -1 ? suggestedHotFilterIndex : 0);
|
|
4032
|
-
}, [hotFilters, filtrationState]);
|
|
4033
|
-
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 })] }));
|
|
4034
4072
|
});
|
|
4035
4073
|
MortgageFiltration.childrenTypes = ['ProductTile'];
|
|
4036
4074
|
MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
|
|
@@ -5104,19 +5142,16 @@
|
|
|
5104
5142
|
throw new Error(x);
|
|
5105
5143
|
}
|
|
5106
5144
|
|
|
5107
|
-
const
|
|
5145
|
+
const useDialogsList = ({ onCloseAll, onClose, } = {}) => {
|
|
5108
5146
|
const [dialogs, { push, pop, clear }] = useList();
|
|
5109
5147
|
const closeAll = useCallback(() => {
|
|
5110
|
-
|
|
5111
|
-
_.onClose && _.onClose();
|
|
5112
|
-
}
|
|
5148
|
+
onCloseAll && onCloseAll(dialogs);
|
|
5113
5149
|
clear();
|
|
5114
|
-
}, [dialogs]);
|
|
5150
|
+
}, [dialogs, onCloseAll]);
|
|
5115
5151
|
const close = useCallback(() => {
|
|
5116
|
-
|
|
5117
|
-
_?.onClose && _.onClose();
|
|
5152
|
+
onClose && onClose(dialogs[dialogs.length - 1]);
|
|
5118
5153
|
pop();
|
|
5119
|
-
}, [dialogs]);
|
|
5154
|
+
}, [dialogs, onClose]);
|
|
5120
5155
|
useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
|
|
5121
5156
|
switch (action.type) {
|
|
5122
5157
|
case 'open':
|
|
@@ -5134,6 +5169,20 @@
|
|
|
5134
5169
|
assertUnreachable(action);
|
|
5135
5170
|
}
|
|
5136
5171
|
}), [closeAll, close]);
|
|
5172
|
+
return dialogs;
|
|
5173
|
+
};
|
|
5174
|
+
|
|
5175
|
+
const DialogManager = JSX(() => {
|
|
5176
|
+
const handleCloseAll = useCallback((dialogs) => {
|
|
5177
|
+
for (const _ of dialogs) {
|
|
5178
|
+
_?.onClose && _.onClose();
|
|
5179
|
+
}
|
|
5180
|
+
}, []);
|
|
5181
|
+
const handleClose = useCallback((_) => {
|
|
5182
|
+
_?.onClose && _.onClose();
|
|
5183
|
+
}, []);
|
|
5184
|
+
const dialogs = useDialogsList({ onCloseAll: handleCloseAll, onClose: handleClose });
|
|
5185
|
+
const { close } = useDialogManager();
|
|
5137
5186
|
useEffect(() => {
|
|
5138
5187
|
const handleEscape = ({ key }) => {
|
|
5139
5188
|
if (key === 'Escape') {
|
|
@@ -5215,7 +5264,7 @@
|
|
|
5215
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" }) }));
|
|
5216
5265
|
}
|
|
5217
5266
|
|
|
5218
|
-
const packageVersion = "0.13.
|
|
5267
|
+
const packageVersion = "0.13.7";
|
|
5219
5268
|
|
|
5220
5269
|
exports.Blocks = Blocks;
|
|
5221
5270
|
exports.ContentPage = ContentPage;
|