@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
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { BulletsProps } from '../../model/Bullets';
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
AdditionalDescriptionProps,
|
|
4
|
+
AlignProps,
|
|
5
|
+
HeadlineSmallProps,
|
|
6
|
+
} from '../../model/HeadlineType';
|
|
3
7
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
4
8
|
import type { IconProps } from '../../model/Picture';
|
|
5
9
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
6
|
-
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
7
10
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
8
11
|
|
|
9
12
|
/**
|
|
@@ -22,10 +25,10 @@ export type CarouselProductCardContent = UniBlockContent &
|
|
|
22
25
|
AdditionalDescriptionProps &
|
|
23
26
|
IconProps &
|
|
24
27
|
BulletsProps &
|
|
25
|
-
LinkCommonProps &
|
|
28
|
+
LinkCommonProps &
|
|
29
|
+
AlignProps & {
|
|
26
30
|
/** @title Список */
|
|
27
31
|
items?: ListProps[];
|
|
28
|
-
align?: TextAlign;
|
|
29
32
|
/** @title Изображение на всю ширину */
|
|
30
33
|
isImageFullWidth?: boolean;
|
|
31
34
|
/** @title Картинка сверху над текстом */
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
1
|
+
import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { IconProps } from '../../model/Picture';
|
|
5
5
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
|
-
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
7
6
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
8
7
|
|
|
9
8
|
export type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonContent;
|
|
@@ -15,8 +14,8 @@ export type CarouselRecommendationCardContent = UniBlockContent &
|
|
|
15
14
|
HeadlineCommonProps &
|
|
16
15
|
ListContent &
|
|
17
16
|
IconProps &
|
|
18
|
-
LinkCommonProps &
|
|
17
|
+
LinkCommonProps &
|
|
18
|
+
AlignProps & {
|
|
19
19
|
/** @title Соц сети */
|
|
20
20
|
socialMedia?: RecommendationSocialMedia[];
|
|
21
|
-
align?: TextAlign;
|
|
22
21
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
4
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
4
|
import { Button } from '../../ui-kit/Button/Button';
|
|
6
|
-
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
7
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
8
6
|
import { style } from '../../utils/style';
|
|
9
7
|
import type { ErrorBlockContent } from './ErrorBlockContent';
|
|
8
|
+
import { Headline } from '../Headline/Headline';
|
|
10
9
|
|
|
11
10
|
export interface ErrorBlockProps extends ErrorBlockContent, UniBlockProps {}
|
|
12
11
|
|
|
@@ -33,14 +32,7 @@ export const ErrorBlock = JSX<ErrorBlockProps>(
|
|
|
33
32
|
{...rest}
|
|
34
33
|
>
|
|
35
34
|
<div className="flex justify-center py-20">{renderErrorContent(error)}</div>
|
|
36
|
-
{title
|
|
37
|
-
{subtitle ? (
|
|
38
|
-
<div className="max-w-[613px] text-center">
|
|
39
|
-
<Text size="text-xl" font="font-light">
|
|
40
|
-
{subtitle}
|
|
41
|
-
</Text>
|
|
42
|
-
</div>
|
|
43
|
-
) : null}
|
|
35
|
+
<Headline title={title} description={subtitle} headlineVersion="XL" isEmbedded={true} />
|
|
44
36
|
{button?.text ? (
|
|
45
37
|
<Button className="py-4 px-9" version={button?.version} {...button}>
|
|
46
38
|
{button.text}
|
|
@@ -2,16 +2,17 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { Text } from '../../ui-kit/Text/Text';
|
|
3
3
|
import type { FooterLink } from './FooterLink';
|
|
4
4
|
import { TextInformationLink } from './TextInformationLink';
|
|
5
|
+
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
7
|
export const TextInformation = JSX<FooterLink>(({ className = '', links }) => (
|
|
7
|
-
<div className={className}>
|
|
8
|
+
<div className={style('@container', className)}>
|
|
8
9
|
<div className="pt-lg">
|
|
9
10
|
<Text size="text-xs" font="font-light" color="text-secondary-text">
|
|
10
11
|
{`\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.`}
|
|
11
12
|
</Text>
|
|
12
13
|
</div>
|
|
13
14
|
{links?.length ? (
|
|
14
|
-
<div className="flex flex-col
|
|
15
|
+
<div className="flex flex-col @lg:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg">
|
|
15
16
|
{links.map((_, i) => (
|
|
16
17
|
<TextInformationLink key={String(i)} index={i} {..._} />
|
|
17
18
|
))}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useMemo, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import { useRouter } from '../../hooks/useRouter';
|
|
4
|
-
import { findActiveSubItem } from './findActiveSubItem';
|
|
5
|
-
import { DropdownMenu } from './DropdownMenu';
|
|
6
|
-
import { HeaderSubMenuItem } from './HeaderSubMenuItem';
|
|
7
3
|
import { projectSettings } from '../../ProjectSettings';
|
|
8
|
-
import { HeaderChatBotButton } from './HeaderChatBotButton';
|
|
9
|
-
import { InternetBankButton } from './InternetBankButton';
|
|
10
|
-
import type { LinkProps } from '../../model/LinkProps';
|
|
11
4
|
import type { IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
|
|
5
|
+
import { useRouter } from '../../hooks/useRouter';
|
|
12
6
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
13
7
|
import type { IconVersion } from '../../model/IconVersion';
|
|
8
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
9
|
+
import { DropdownMenu } from './DropdownMenu';
|
|
10
|
+
import { HeaderChatBotButton } from './HeaderChatBotButton';
|
|
11
|
+
import { HeaderSubMenuItem } from './HeaderSubMenuItem';
|
|
12
|
+
import { InternetBankButton } from './InternetBankButton';
|
|
13
|
+
import { findActiveSubItem } from './findActiveSubItem';
|
|
14
14
|
|
|
15
15
|
export interface HeaderSubMenuProps {
|
|
16
16
|
version?: BlockVersion;
|
|
@@ -68,14 +68,16 @@ export const HeaderSubMenu = JSX<HeaderSubMenuProps>(
|
|
|
68
68
|
activeItem={activeSubItem}
|
|
69
69
|
/>
|
|
70
70
|
) : null}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
<div className="flex">
|
|
72
|
+
{projectSettings.CHAT_BOT ? (
|
|
73
|
+
<HeaderChatBotButton
|
|
74
|
+
className="ml-4xl"
|
|
75
|
+
iconVersion={iconVersion}
|
|
76
|
+
chat={projectSettings.CHAT_BOT}
|
|
77
|
+
/>
|
|
78
|
+
) : null}
|
|
79
|
+
<InternetBankButton version={version} internetBankUrl={internetBankUrl} />
|
|
80
|
+
</div>
|
|
79
81
|
</nav>
|
|
80
82
|
);
|
|
81
83
|
},
|
|
@@ -82,4 +82,25 @@ export default {
|
|
|
82
82
|
/>
|
|
83
83
|
</div>
|
|
84
84
|
),
|
|
85
|
+
'with card border': (
|
|
86
|
+
<div className="container grid grid-cols-12">
|
|
87
|
+
<HorizontalLayout
|
|
88
|
+
className="col-span-12"
|
|
89
|
+
isCardBorder={true}
|
|
90
|
+
block={{
|
|
91
|
+
type: 'HorizontalLayout',
|
|
92
|
+
blocks: [
|
|
93
|
+
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
94
|
+
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
95
|
+
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
96
|
+
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
97
|
+
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
98
|
+
{ type: 'ProductTile', content: PRODUCT_TILE, style: ['col-span-6'] },
|
|
99
|
+
],
|
|
100
|
+
}}
|
|
101
|
+
options={options}
|
|
102
|
+
version="primary"
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
105
|
+
),
|
|
85
106
|
};
|
|
@@ -6,7 +6,7 @@ import { style } from '../../utils/style';
|
|
|
6
6
|
import { gapStyles } from './gapStyles';
|
|
7
7
|
import type { HorizontalLayoutContent } from './HorizontalLayoutContent';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
interface HorizontalLayoutProps extends HorizontalLayoutContent, UniBlockProps {}
|
|
10
10
|
|
|
11
11
|
export const HorizontalLayout: JSXBlock<HorizontalLayoutProps> = JSX<HorizontalLayoutProps>(
|
|
12
12
|
({
|
|
@@ -15,6 +15,7 @@ export const HorizontalLayout: JSXBlock<HorizontalLayoutProps> = JSX<HorizontalL
|
|
|
15
15
|
isPadding = false,
|
|
16
16
|
version = 'transparent',
|
|
17
17
|
isTheme = false,
|
|
18
|
+
isCardBorder,
|
|
18
19
|
...rest
|
|
19
20
|
}) => (
|
|
20
21
|
<BlockWrapper
|
|
@@ -24,7 +25,14 @@ export const HorizontalLayout: JSXBlock<HorizontalLayoutProps> = JSX<HorizontalL
|
|
|
24
25
|
isTheme={isTheme}
|
|
25
26
|
{...rest}
|
|
26
27
|
>
|
|
27
|
-
{renderChildren(
|
|
28
|
+
{renderChildren({
|
|
29
|
+
...rest,
|
|
30
|
+
extraProps: {
|
|
31
|
+
className: isCardBorder
|
|
32
|
+
? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
|
|
33
|
+
: '',
|
|
34
|
+
},
|
|
35
|
+
})}
|
|
28
36
|
</BlockWrapper>
|
|
29
37
|
),
|
|
30
38
|
);
|
|
@@ -13,6 +13,8 @@ export type GapVersion = 'XXL' | 'XL' | 'L' | 'M' | 'S' | 'XS' | '';
|
|
|
13
13
|
export type HorizontalLayoutContent = UniBlockContent & {
|
|
14
14
|
colorPalette?: ColorPalette;
|
|
15
15
|
gap?: GapVersion;
|
|
16
|
+
/** @title контур на дочерних элементах */
|
|
17
|
+
isCardBorder?: boolean;
|
|
16
18
|
/** @title Внутренний отступ компоновщика */
|
|
17
19
|
isPadding?: boolean;
|
|
18
20
|
};
|
|
@@ -83,7 +83,7 @@ const renderInvestmentColumn = (
|
|
|
83
83
|
{column.cells?.length ? (
|
|
84
84
|
<div
|
|
85
85
|
className={`w-full ${
|
|
86
|
-
isLastColumn ? 'border-4 border-green-more-dark p-2xs min-w-
|
|
86
|
+
isLastColumn ? 'border-4 border-green-more-dark p-2xs min-w-72' : ''
|
|
87
87
|
}`}
|
|
88
88
|
>
|
|
89
89
|
{column.cells.reverse().map(renderInvestmentCell)}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Attachment } from '../../model/Attachment';
|
|
2
2
|
import { EmptyOption } from '../../model/EmptyOptionType';
|
|
3
|
-
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
|
+
import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
4
4
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
5
5
|
import type { LinkProps, Target } from '../../model/LinkProps';
|
|
6
6
|
import type { IconProps } from '../../model/Picture';
|
|
7
|
-
import type { TextAlign } from '../../ui-kit/Text/TextProps';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* @title Отображение списка
|
|
@@ -52,10 +51,9 @@ export type DocBlockDef = EmptyOption | LinkDocDef | AttachmentDocDef;
|
|
|
52
51
|
*/
|
|
53
52
|
export type LinkDocsContent = UniBlockContent &
|
|
54
53
|
HeadlineCommonProps &
|
|
55
|
-
IconProps &
|
|
54
|
+
IconProps &
|
|
55
|
+
AlignProps & {
|
|
56
56
|
/** @title Список */
|
|
57
57
|
documents?: DocBlockDef[];
|
|
58
58
|
columnsMode?: LinkColumnsMode;
|
|
59
|
-
/** @title Выравнивание */
|
|
60
|
-
align?: TextAlign;
|
|
61
59
|
};
|
|
@@ -4,7 +4,10 @@ import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOpti
|
|
|
4
4
|
import { Blocks } from '../Blocks';
|
|
5
5
|
import { PRODUCT_TILE } from '../ProductTile/ProductTile.fixture';
|
|
6
6
|
import { MortgageFiltration } from './MortgageFiltration';
|
|
7
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
MortgageFiltrationContent,
|
|
9
|
+
MortgageFiltrationHotFilter,
|
|
10
|
+
} from './MortgageFiltrationContent';
|
|
8
11
|
|
|
9
12
|
const PROPERTY_APARTMENT = {
|
|
10
13
|
propertyType: ['apartment'],
|
|
@@ -101,7 +104,7 @@ const SCHEMA: MortgageFiltrationContent['filtrationSchema'] = {
|
|
|
101
104
|
},
|
|
102
105
|
};
|
|
103
106
|
|
|
104
|
-
const HOT_FILTERS:
|
|
107
|
+
const HOT_FILTERS: MortgageFiltrationHotFilter[] = [
|
|
105
108
|
{ text: 'Все программы' },
|
|
106
109
|
{
|
|
107
110
|
text: 'Льготные программы',
|
|
@@ -1,60 +1,45 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useForm } from '../../hooks/useForm';
|
|
4
4
|
import type { JSXBlock, UniBlockProps } from '../../model/JSXBlock';
|
|
5
5
|
import { BaseFiltrationInner } from '../../ui-kit/BaseFiltration/BaseFiltrationInner';
|
|
6
6
|
import { renderFiltrationForm } from '../../ui-kit/BaseFiltration/renderFiltrationForm';
|
|
7
|
+
import { useHotFilters } from '../../ui-kit/BaseFiltration/useHotFilters';
|
|
7
8
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
8
|
-
import type { TabItemBase } from '../../ui-kit/TabsControl/TabItem';
|
|
9
9
|
import { TabsControl } from '../../ui-kit/TabsControl/TabsControl';
|
|
10
10
|
import { style } from '../../utils/style';
|
|
11
|
-
import { hotFilterRecordCmp } from './HotFilterRecord';
|
|
12
11
|
import type {
|
|
13
12
|
MortgageFiltrationContent,
|
|
14
13
|
MortgageFiltrationSchema,
|
|
15
14
|
} from './MortgageFiltrationContent';
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
type MortgageFiltrationState = Partial<Record<keyof MortgageFiltrationSchema, string[]>>;
|
|
18
17
|
|
|
19
|
-
const initialFiltrationState:
|
|
18
|
+
const initialFiltrationState: MortgageFiltrationState = {
|
|
20
19
|
categories: [],
|
|
21
20
|
extraOptions: [],
|
|
22
21
|
propertyType: [],
|
|
23
22
|
stage: [],
|
|
24
23
|
};
|
|
25
24
|
|
|
25
|
+
interface MortgageFiltrationProps extends MortgageFiltrationContent, UniBlockProps {}
|
|
26
|
+
|
|
26
27
|
export const MortgageFiltration: JSXBlock<MortgageFiltrationProps> = JSX<MortgageFiltrationProps>(
|
|
27
|
-
({ className, hotFilters
|
|
28
|
+
({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
|
|
28
29
|
const [filtrationState, { field, reset, update: replaceFiltrationState }] =
|
|
29
30
|
useForm(initialFiltrationState);
|
|
30
31
|
|
|
31
|
-
const
|
|
32
|
-
() =>
|
|
33
|
-
|
|
34
|
-
text,
|
|
35
|
-
})),
|
|
36
|
-
[hotFilters],
|
|
32
|
+
const handleFiltrationStateChange = useCallback(
|
|
33
|
+
(_: MortgageFiltrationState = initialFiltrationState) => replaceFiltrationState(_),
|
|
34
|
+
[],
|
|
37
35
|
);
|
|
38
36
|
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
hotFilters[tabsControlItems.indexOf(_)].filter || initialFiltrationState,
|
|
46
|
-
);
|
|
47
|
-
},
|
|
48
|
-
[hotFilters, tabsControlItems],
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
const suggestedHotFilterIndex = hotFilters.findIndex((_) =>
|
|
53
|
-
hotFilterRecordCmp(_.filter, filtrationState),
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
setHotFilterIndex(suggestedHotFilterIndex !== -1 ? suggestedHotFilterIndex : 0);
|
|
57
|
-
}, [hotFilters, filtrationState]);
|
|
37
|
+
const tabsControlProps = useHotFilters({
|
|
38
|
+
hotFilters,
|
|
39
|
+
filtrationState,
|
|
40
|
+
blocks: rest.block?.blocks,
|
|
41
|
+
onFiltrationStateChange: handleFiltrationStateChange,
|
|
42
|
+
});
|
|
58
43
|
|
|
59
44
|
return (
|
|
60
45
|
<BlockWrapper
|
|
@@ -63,12 +48,7 @@ export const MortgageFiltration: JSXBlock<MortgageFiltrationProps> = JSX<Mortgag
|
|
|
63
48
|
version="transparent"
|
|
64
49
|
{...rest}
|
|
65
50
|
>
|
|
66
|
-
<TabsControl
|
|
67
|
-
className="mb-2xs"
|
|
68
|
-
items={tabsControlItems}
|
|
69
|
-
value={tabsControlItems[hotFilterIndex]}
|
|
70
|
-
onChange={handleHotFilterSelect}
|
|
71
|
-
/>
|
|
51
|
+
<TabsControl {...tabsControlProps} />
|
|
72
52
|
{renderFiltrationForm({ field, reset, filtrationSchema, resetButton })}
|
|
73
53
|
<BaseFiltrationInner filtrationState={filtrationState} {...rest} />
|
|
74
54
|
</BlockWrapper>
|
|
@@ -2,7 +2,7 @@ import type {
|
|
|
2
2
|
BaseFiltrationInnerContent,
|
|
3
3
|
StringArray,
|
|
4
4
|
} from '../../ui-kit/BaseFiltration/BaseFiltrationContent';
|
|
5
|
-
import type {
|
|
5
|
+
import type { HotFilterBase } from '../../ui-kit/BaseFiltration/HotFilterBase';
|
|
6
6
|
|
|
7
7
|
export type MortgageFiltrationSchema = {
|
|
8
8
|
/** @title Тип недвижимости */
|
|
@@ -15,14 +15,18 @@ export type MortgageFiltrationSchema = {
|
|
|
15
15
|
extraOptions?: StringArray;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
* @title Кнопка фильтрации
|
|
20
|
-
*/
|
|
21
|
-
export interface HotFilterButton {
|
|
22
|
-
/** @title Текст */
|
|
23
|
-
text?: string;
|
|
18
|
+
export interface MortgageFiltrationHotFilter extends HotFilterBase {
|
|
24
19
|
/** @title Применяемые фильтры */
|
|
25
|
-
filter?:
|
|
20
|
+
filter?: {
|
|
21
|
+
/** @title Тип недвижимости */
|
|
22
|
+
propertyType?: string[];
|
|
23
|
+
/** @title Этап строительства */
|
|
24
|
+
stage?: string[];
|
|
25
|
+
/** @title Категории */
|
|
26
|
+
categories?: string[];
|
|
27
|
+
/** @title Дополнительно */
|
|
28
|
+
extraOptions?: string[];
|
|
29
|
+
};
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
/**
|
|
@@ -32,5 +36,5 @@ export interface MortgageFiltrationContent extends BaseFiltrationInnerContent {
|
|
|
32
36
|
/** @title Параметры фильтрации */
|
|
33
37
|
filtrationSchema?: MortgageFiltrationSchema;
|
|
34
38
|
/** @title Горячие фильтры */
|
|
35
|
-
hotFilters?:
|
|
39
|
+
hotFilters?: MortgageFiltrationHotFilter[];
|
|
36
40
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
2
|
-
import type { FontWeight,
|
|
2
|
+
import type { FontWeight, TextSize } from '../../ui-kit/Text/TextProps';
|
|
3
|
+
import type { AlignProps } from '../../model/HeadlineType';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* @title Параграф
|
|
6
7
|
*/
|
|
7
|
-
export type ParagraphBlockContent = UniBlockContent &
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
8
|
+
export type ParagraphBlockContent = UniBlockContent &
|
|
9
|
+
AlignProps & {
|
|
10
|
+
size?: TextSize;
|
|
11
|
+
font?: FontWeight;
|
|
12
|
+
/** @title Текст */
|
|
13
|
+
text?: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg title="Здание суда" isInverse="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="#1C1C1C" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M2 22h20M12 2c1.6.64 3.4.64 5 0v3c-1.6.64-3.4.64-5 0V2ZM12 5v3M4 15.91V22h16V11c0-2-1-3-3-3H7c-2 0-3 1-3 3v1M4 12h15.42"/><path stroke="#1C1C1C" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M7.992 12v10M11.992 12v10M15.992 12v10"/></svg>
|
package/src/icons/IconName.ts
CHANGED
|
@@ -86,6 +86,7 @@ export enum IconMap {
|
|
|
86
86
|
ClockIcon = 'ClockIcon',
|
|
87
87
|
CloseIcon = 'CloseIcon',
|
|
88
88
|
ComfortableCompIcon = 'ComfortableCompIcon',
|
|
89
|
+
CourtHouseIcon = 'CourtHouseIcon',
|
|
89
90
|
CreditCardsIcon = 'CreditCardsIcon',
|
|
90
91
|
DiscountShapeIcon = 'DiscountShapeIcon',
|
|
91
92
|
DocDownloadIcon = 'DocDownloadIcon',
|
|
@@ -201,6 +202,7 @@ export enum IconTitleMap {
|
|
|
201
202
|
ClockIcon = 'Часы',
|
|
202
203
|
CloseIcon = 'Крестик',
|
|
203
204
|
ComfortableCompIcon = 'Кресло',
|
|
205
|
+
CourtHouseIcon = 'Здание суда',
|
|
204
206
|
CreditCardsIcon = 'Кредитные карты',
|
|
205
207
|
DiscountShapeIcon = 'Скидка',
|
|
206
208
|
DocDownloadIcon = 'Скачать документ',
|
|
@@ -286,7 +288,7 @@ export enum IconTitleMap {
|
|
|
286
288
|
* @title Иконка
|
|
287
289
|
* @enumNames [
|
|
288
290
|
* "",
|
|
289
|
-
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'Белорусский флаг', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Стрелка \'Влево\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
|
|
291
|
+
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'Белорусский флаг', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Стрелка \'Влево\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Здание суда', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
|
|
290
292
|
* ]
|
|
291
293
|
*/
|
|
292
294
|
export type IconName =
|
|
@@ -325,6 +327,7 @@ export type IconName =
|
|
|
325
327
|
| 'ClockIcon'
|
|
326
328
|
| 'CloseIcon'
|
|
327
329
|
| 'ComfortableCompIcon'
|
|
330
|
+
| 'CourtHouseIcon'
|
|
328
331
|
| 'CreditCardsIcon'
|
|
329
332
|
| 'DiscountShapeIcon'
|
|
330
333
|
| 'DocDownloadIcon'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import '../../setup-fixture';
|
|
2
|
+
|
|
3
|
+
import { Badge } from './Badge';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
default: (
|
|
7
|
+
<div className="container grid-cols-12">
|
|
8
|
+
<section className="col-span-12 bg-white p-6xl">
|
|
9
|
+
<button className="p-xs border-2 border-green rounded-md flex justify-center w-52 mb-3xs">
|
|
10
|
+
<div className="mr-2xs">
|
|
11
|
+
<span>Какой-то текст</span>
|
|
12
|
+
</div>
|
|
13
|
+
<Badge count={3} />
|
|
14
|
+
</button>
|
|
15
|
+
<button className="p-xs border-2 border-green bg-green rounded-md flex justify-center w-52 text-white">
|
|
16
|
+
<div className="mr-2xs">
|
|
17
|
+
<span>Какой-то текст</span>
|
|
18
|
+
</div>
|
|
19
|
+
<Badge count={3} version="primary" />
|
|
20
|
+
</button>
|
|
21
|
+
</section>
|
|
22
|
+
</div>
|
|
23
|
+
),
|
|
24
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
3
|
+
import { Text } from '../Text/Text';
|
|
4
|
+
import type { TextColor } from '../Text/TextProps';
|
|
5
|
+
|
|
6
|
+
interface BadgeProps {
|
|
7
|
+
count?: number;
|
|
8
|
+
version?: 'primary' | 'secondary';
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const badgeBgStyleMap: Record<string, string> = {
|
|
12
|
+
primary: 'bg-white/30',
|
|
13
|
+
secondary: 'bg-main-divider',
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const badgeTextColorStyleMap: Record<string, TextColor> = {
|
|
17
|
+
primary: 'text-white',
|
|
18
|
+
secondary: 'text-secondary-text',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const Badge = JSX<BadgeProps>(({ count, version = 'secondary' }) => {
|
|
22
|
+
return (
|
|
23
|
+
<div
|
|
24
|
+
className={style(
|
|
25
|
+
'w-6 h-6 rounded-full flex items-center justify-center',
|
|
26
|
+
badgeBgStyleMap[version],
|
|
27
|
+
)}
|
|
28
|
+
>
|
|
29
|
+
<Text size="text-xs" color={badgeTextColorStyleMap[version]}>
|
|
30
|
+
{count}
|
|
31
|
+
</Text>
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
});
|
|
@@ -8,8 +8,7 @@ import { checkShouldRenderBlock } from '../BaseFiltration/checkShouldRenderBlock
|
|
|
8
8
|
import { DefaultFoldButton } from '../Foldable/DefaultFoldButton';
|
|
9
9
|
import { Foldable } from '../Foldable/Foldable';
|
|
10
10
|
import { FoldableSection } from '../Foldable/FoldableSection';
|
|
11
|
-
import {
|
|
12
|
-
import { Text } from '../Text/Text';
|
|
11
|
+
import { Headline } from '../../components/Headline/Headline';
|
|
13
12
|
|
|
14
13
|
const ICONS: IconName[] = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
15
14
|
|
|
@@ -34,17 +33,14 @@ export const BaseFiltrationInner = JSX<BaseFiltrationInnerProps>(
|
|
|
34
33
|
<div className={style(blocksToRender.length ? 'hidden' : 'block')}>
|
|
35
34
|
{notFound ? renderNotFound(notFound) : null}
|
|
36
35
|
</div>
|
|
37
|
-
<div className={style(blocksToRender.length ? '' : 'hidden')}>
|
|
38
|
-
<div className={style(
|
|
36
|
+
<div className={style('space-y-2xs', blocksToRender.length ? '' : 'hidden')}>
|
|
37
|
+
<div className={style(resultsGridStyle)}>
|
|
39
38
|
{renderBlocksList(visibleBlocks, { ...rest.options, parent: block })}
|
|
40
39
|
</div>
|
|
41
40
|
<Foldable
|
|
42
41
|
renderFoldableSection={({ isUnfolded }) => {
|
|
43
42
|
return (
|
|
44
|
-
<FoldableSection
|
|
45
|
-
className={style(resultsGridStyle, isUnfolded ? 'mb-2xs' : '')}
|
|
46
|
-
isUnfolded={isUnfolded}
|
|
47
|
-
>
|
|
43
|
+
<FoldableSection className={style(resultsGridStyle)} isUnfolded={isUnfolded}>
|
|
48
44
|
{renderBlocksList(hiddenBlocks, { ...rest.options, parent: block })}
|
|
49
45
|
</FoldableSection>
|
|
50
46
|
);
|
|
@@ -69,18 +65,7 @@ export const BaseFiltrationInner = JSX<BaseFiltrationInnerProps>(
|
|
|
69
65
|
function renderNotFound({ title, description }: NotFound) {
|
|
70
66
|
return (
|
|
71
67
|
<div className="bg-white py-20">
|
|
72
|
-
{title
|
|
73
|
-
<div className="mb-xs">
|
|
74
|
-
<Paragraph align="text-center">
|
|
75
|
-
<Text size="text-h4">{title}</Text>
|
|
76
|
-
</Paragraph>
|
|
77
|
-
</div>
|
|
78
|
-
) : null}
|
|
79
|
-
{description ? (
|
|
80
|
-
<Paragraph size="text-xl" font="font-light" align="text-center">
|
|
81
|
-
{description}
|
|
82
|
-
</Paragraph>
|
|
83
|
-
) : null}
|
|
68
|
+
<Headline title={title} description={description} headlineVersion="S" isEmbedded={true} />
|
|
84
69
|
</div>
|
|
85
70
|
);
|
|
86
71
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BlockDef } from '../../model/ContentPageDef';
|
|
2
|
+
import { checkShouldRenderBlock } from '../../ui-kit/BaseFiltration/checkShouldRenderBlock';
|
|
3
|
+
import type { BaseFilter } from './useHotFilters';
|
|
4
|
+
|
|
5
|
+
export const getBadgeCount = (blocks: BlockDef[] = [], filter: BaseFilter = {}) =>
|
|
6
|
+
blocks.filter(({ content = {} }) => checkShouldRenderBlock(filter, content)).length;
|