@redneckz/wildless-cms-uni-blocks 0.13.4 → 0.13.6
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.4.js +30 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +168 -124
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
- package/bundle/components/Carousel/CarouselContent.d.ts +6 -0
- package/bundle/components/Carousel/renderCarouselCards.d.ts +3 -1
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- package/bundle/components/Header/HeaderSubMenu.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/DialogManager/useDialogsList.d.ts +7 -0
- package/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/bundle/ui-kit/List/ListContent.d.ts +2 -2
- package/bundle/ui-kit/Select/Select.d.ts +1 -0
- package/cosmos-static/icons/CourtHouseIcon.svg +1 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.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/Carousel/Carousel.js +2 -2
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +6 -0
- package/dist/components/Carousel/renderCarouselCards.d.ts +3 -1
- package/dist/components/Carousel/renderCarouselCards.js +12 -3
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- 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/Headline/headlineVersionStyles.js +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/BaseTile/BaseTile.js +1 -1
- 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/Input/Input.js +2 -2
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/dist/ui-kit/List/List.js +2 -0
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListContent.d.ts +2 -2
- package/dist/ui-kit/List/ListItem.js +1 -0
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/Select/Select.d.ts +1 -0
- package/dist/ui-kit/Select/Select.js +18 -4
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.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/Carousel/Carousel.js +2 -2
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +6 -0
- package/lib/components/Carousel/renderCarouselCards.d.ts +3 -1
- package/lib/components/Carousel/renderCarouselCards.js +12 -3
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- 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/Headline/headlineVersionStyles.js +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/BaseTile/BaseTile.js +1 -1
- 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/Input/Input.js +2 -2
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/lib/ui-kit/List/List.js +2 -0
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListContent.d.ts +2 -2
- package/lib/ui-kit/List/ListItem.js +1 -0
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/Select/Select.d.ts +1 -0
- package/lib/ui-kit/Select/Select.js +19 -5
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +139 -31
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +6 -0
- package/mobile/bundle/components/Carousel/renderCarouselCards.d.ts +3 -1
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +1 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/DialogManager/useDialogsList.d.ts +7 -0
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +2 -2
- package/mobile/bundle/ui-kit/Select/Select.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.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/Carousel/Carousel.js +2 -2
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +6 -0
- package/mobile/dist/components/Carousel/renderCarouselCards.d.ts +3 -1
- package/mobile/dist/components/Carousel/renderCarouselCards.js +12 -3
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- package/mobile/dist/components/Footer/buttonSizeStyles.js +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/Headline/headlineVersionStyles.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/BaseTile/BaseTile.js +1 -1
- 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/Input/Input.js +2 -2
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/dist/ui-kit/List/List.js +2 -0
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListContent.d.ts +2 -2
- package/mobile/dist/ui-kit/List/ListItem.js +1 -0
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.d.ts +1 -0
- package/mobile/dist/ui-kit/Select/Select.js +18 -4
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.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/Carousel/Carousel.js +2 -2
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +6 -0
- package/mobile/lib/components/Carousel/renderCarouselCards.d.ts +3 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.js +12 -3
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
- package/mobile/lib/components/Footer/buttonSizeStyles.js +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/Headline/headlineVersionStyles.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -5
- 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/BaseTile/BaseTile.js +1 -1
- 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/Input/Input.js +2 -2
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/lib/ui-kit/List/List.js +2 -0
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListContent.d.ts +2 -2
- package/mobile/lib/ui-kit/List/ListItem.js +1 -0
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.d.ts +1 -0
- package/mobile/lib/ui-kit/Select/Select.js +19 -5
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -1
- package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +1 -0
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +1 -0
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +1 -0
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.tsx +22 -5
- package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -0
- package/mobile/src/components/Carousel/Carousel.example.json +2 -1
- package/mobile/src/components/Carousel/Carousel.tsx +2 -1
- package/mobile/src/components/Carousel/CarouselContent.ts +7 -0
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +20 -4
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +7 -7
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -4
- package/mobile/src/components/Footer/buttonSizeStyles.ts +1 -1
- package/mobile/src/components/Header/HeaderSubMenu.tsx +17 -15
- package/mobile/src/components/Headline/Headline.example.json +1 -1
- package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -5
- 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/BaseTile/BaseTile.tsx +1 -1
- 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/Input/Input.tsx +2 -0
- package/mobile/src/ui-kit/Input/InputProps.ts +1 -0
- package/mobile/src/ui-kit/List/List.tsx +2 -0
- package/mobile/src/ui-kit/List/ListContent.ts +2 -2
- package/mobile/src/ui-kit/List/ListItem.tsx +1 -0
- package/mobile/src/ui-kit/Select/Select.tsx +46 -12
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +2 -1
- package/src/components/ApplicationForm/PhoneInputControl.tsx +1 -0
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
- package/src/components/ApplicationForm/renderCreditParameters.tsx +2 -2
- package/src/components/ApplicationForm/renderRegion.tsx +1 -0
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +1 -0
- package/src/components/ButtonsBlock/ButtonsBlock.tsx +22 -5
- package/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -0
- package/src/components/Carousel/Carousel.example.json +2 -1
- package/src/components/Carousel/Carousel.fixture.tsx +2 -0
- package/src/components/Carousel/Carousel.tsx +2 -1
- package/src/components/Carousel/CarouselContent.ts +7 -0
- package/src/components/Carousel/renderCarouselCards.tsx +20 -4
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +12 -9
- package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +7 -7
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -4
- package/src/components/Header/HeaderSubMenu.tsx +17 -15
- package/src/components/Headline/Headline.example.json +1 -1
- package/src/components/Headline/headlineVersionStyles.ts +1 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +3 -5
- 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/BaseTile/BaseTile.tsx +1 -1
- package/src/ui-kit/DialogManager/DialogManager.tsx +9 -34
- package/src/ui-kit/DialogManager/useDialogsList.ts +50 -0
- package/src/ui-kit/Input/Input.tsx +2 -0
- package/src/ui-kit/Input/InputProps.ts +1 -0
- package/src/ui-kit/List/List.tsx +2 -0
- package/src/ui-kit/List/ListContent.ts +2 -2
- package/src/ui-kit/List/ListItem.tsx +1 -0
- package/src/ui-kit/Select/Select.tsx +46 -12
- package/bundle/components/Footer/buttonSizeStyles.mobile.d.ts +0 -4
- package/dist/components/Footer/buttonSizeStyles.mobile.d.ts +0 -4
- package/dist/components/Footer/buttonSizeStyles.mobile.js +0 -7
- package/dist/components/Footer/buttonSizeStyles.mobile.js.map +0 -1
- package/lib/components/Footer/buttonSizeStyles.mobile.d.ts +0 -4
- package/lib/components/Footer/buttonSizeStyles.mobile.js +0 -5
- package/lib/components/Footer/buttonSizeStyles.mobile.js.map +0 -1
- package/src/components/Footer/buttonSizeStyles.mobile.ts +0 -6
|
@@ -5,12 +5,14 @@ import { ListItem } from './ListItem';
|
|
|
5
5
|
import type { ListProps } from './ListProps';
|
|
6
6
|
|
|
7
7
|
const TEXT_SIZE_MAP: Record<ListItemSize, string> = {
|
|
8
|
+
XS: 'text-m font-light',
|
|
8
9
|
S: 'text-l font-light',
|
|
9
10
|
M: 'text-h6',
|
|
10
11
|
L: 'text-h5',
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const ITEM_INDENT_MAP: Record<ListItemSize, string> = {
|
|
15
|
+
XS: 'ml-2xs',
|
|
14
16
|
S: 'ml-xs',
|
|
15
17
|
M: 'ml-s',
|
|
16
18
|
L: 'ml-m',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @title Размер пунктов списка
|
|
3
|
-
* @enumNames ["Маленький", "Средний", "Большой"]
|
|
3
|
+
* @enumNames ["Очень маленький", "Маленький", "Средний", "Большой"]
|
|
4
4
|
*/
|
|
5
|
-
export type ListItemSize = 'S' | 'M' | 'L';
|
|
5
|
+
export type ListItemSize = 'XS' | 'S' | 'M' | 'L';
|
|
6
6
|
|
|
7
7
|
export interface ListContent {
|
|
8
8
|
/** @title Список */
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useBool } from '../../hooks/useBool';
|
|
4
4
|
import { useOutsideClick } from '../../hooks/useOutsideClick';
|
|
5
5
|
import { LabelProps } from '../../model/HeadlineType';
|
|
6
|
+
import { jaroWinklerDistance } from '../../services/search/jaroWinklerDistance';
|
|
6
7
|
import { Text } from '../../ui-kit/Text/Text';
|
|
7
8
|
import { style } from '../../utils/style';
|
|
8
9
|
import { Icon } from '../Icon/Icon';
|
|
10
|
+
import { Input } from '../Input/Input';
|
|
9
11
|
|
|
10
12
|
export interface Option {
|
|
11
13
|
key: string;
|
|
@@ -20,6 +22,7 @@ export type SelectProps = LabelProps & {
|
|
|
20
22
|
isBorder?: boolean;
|
|
21
23
|
placeholder?: string;
|
|
22
24
|
onChange?: (value: Option) => void;
|
|
25
|
+
isSearch?: boolean;
|
|
23
26
|
};
|
|
24
27
|
|
|
25
28
|
export const Select = JSX<SelectProps>(
|
|
@@ -32,13 +35,19 @@ export const Select = JSX<SelectProps>(
|
|
|
32
35
|
isBorder = true,
|
|
33
36
|
placeholder = '',
|
|
34
37
|
onChange,
|
|
38
|
+
isSearch = false,
|
|
35
39
|
}) => {
|
|
36
40
|
const [isOpen, { setFalse: close, toggle }] = useBool();
|
|
37
|
-
const
|
|
41
|
+
const [searchValue, setSearchValue] = useState('');
|
|
42
|
+
const reset = useCallback(() => {
|
|
43
|
+
close();
|
|
44
|
+
setSearchValue('');
|
|
45
|
+
}, []);
|
|
46
|
+
const wrapperRef = useOutsideClick<HTMLDivElement>(reset);
|
|
38
47
|
|
|
39
48
|
const handleChange = useCallback(
|
|
40
49
|
(option: Option) => {
|
|
41
|
-
|
|
50
|
+
reset();
|
|
42
51
|
onChange && onChange(option);
|
|
43
52
|
},
|
|
44
53
|
[onChange],
|
|
@@ -48,17 +57,11 @@ export const Select = JSX<SelectProps>(
|
|
|
48
57
|
|
|
49
58
|
return (
|
|
50
59
|
<div className={className} ref={wrapperRef}>
|
|
51
|
-
{label
|
|
52
|
-
<div className="mb-xs">
|
|
53
|
-
<Text size="text-m" color="text-primary-text" font="font-light">
|
|
54
|
-
{label}
|
|
55
|
-
</Text>
|
|
56
|
-
</div>
|
|
57
|
-
) : null}
|
|
60
|
+
{renderLabel(label)}
|
|
58
61
|
<div className={style('relative', isOpen ? 'z-20' : 'z-10')}>
|
|
59
62
|
<div
|
|
60
63
|
className={style(
|
|
61
|
-
'text-l flex justify-between items-center text-primary-text cursor-pointer',
|
|
64
|
+
'text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10',
|
|
62
65
|
getBorderStyle(isBorder, valid),
|
|
63
66
|
)}
|
|
64
67
|
onClick={toggle}
|
|
@@ -73,10 +76,13 @@ export const Select = JSX<SelectProps>(
|
|
|
73
76
|
height="16"
|
|
74
77
|
/>
|
|
75
78
|
</div>
|
|
79
|
+
{isSearch ? renderSearch(isOpen, searchValue, setSearchValue) : null}
|
|
76
80
|
{options?.length ? (
|
|
77
81
|
<div className={style('h-0', isOpen ? '' : 'overflow-hidden')}>
|
|
78
82
|
<div className="bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
|
|
79
|
-
{options.map(
|
|
83
|
+
{getFilteredOptions(options, searchValue).map(
|
|
84
|
+
renderOption(handleChange, isOpen, isSelected),
|
|
85
|
+
)}
|
|
80
86
|
</div>
|
|
81
87
|
</div>
|
|
82
88
|
) : null}
|
|
@@ -86,6 +92,34 @@ export const Select = JSX<SelectProps>(
|
|
|
86
92
|
},
|
|
87
93
|
);
|
|
88
94
|
|
|
95
|
+
const renderLabel = (label?: string) =>
|
|
96
|
+
label ? (
|
|
97
|
+
<div className="mb-xs">
|
|
98
|
+
<Text size="text-m" color="text-primary-text" font="font-light">
|
|
99
|
+
{label}
|
|
100
|
+
</Text>
|
|
101
|
+
</div>
|
|
102
|
+
) : null;
|
|
103
|
+
|
|
104
|
+
const getFilteredOptions = (options: Option[], searchValue: string) => {
|
|
105
|
+
return searchValue
|
|
106
|
+
? options.filter(
|
|
107
|
+
(_) => jaroWinklerDistance(_.text?.toLowerCase())(searchValue.toLowerCase()) >= 0.6,
|
|
108
|
+
)
|
|
109
|
+
: options;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const renderSearch = (
|
|
113
|
+
isOpen: boolean,
|
|
114
|
+
searchValue: string,
|
|
115
|
+
setSearchValue: (value: string) => void,
|
|
116
|
+
) =>
|
|
117
|
+
isOpen ? (
|
|
118
|
+
<div className={style('absolute top-0 w-full h-full z-20')}>
|
|
119
|
+
<Input type="text" autoFocus value={searchValue} onChange={setSearchValue} />
|
|
120
|
+
</div>
|
|
121
|
+
) : null;
|
|
122
|
+
|
|
89
123
|
const renderOption =
|
|
90
124
|
(
|
|
91
125
|
handleChange: (option: Option) => void,
|
package/package.json
CHANGED
|
@@ -28,6 +28,7 @@ const initialFormState: CreditFormState = {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
const creditValidator = objectValidator({
|
|
31
|
+
fullName: defaultValidator,
|
|
31
32
|
annualRevenue: defaultValidator,
|
|
32
33
|
inn: innValidator,
|
|
33
34
|
name: nameValidator,
|
|
@@ -65,7 +66,7 @@ export const ApplicationFormCredit = JSX<ApplicationFormsProps>(({ button, link,
|
|
|
65
66
|
|
|
66
67
|
return (
|
|
67
68
|
<form className="container space-y-m" onSubmit={formProps.onSubmit}>
|
|
68
|
-
<Heading headingType="h6" title="Параметры
|
|
69
|
+
<Heading headingType="h6" title="Параметры" className="sm:text-center" />
|
|
69
70
|
{renderCreditParameters(field)}
|
|
70
71
|
<Heading headingType="h6" title="Данные организации" className="sm:text-center" />
|
|
71
72
|
{renderCreditDataOrganization(field)}
|
|
@@ -11,7 +11,7 @@ export const renderCreditDataOrganization = (field: FormFieldRegisterer<CreditFo
|
|
|
11
11
|
<InputControl
|
|
12
12
|
className="shrink-0 w-full"
|
|
13
13
|
label="Наименование организации"
|
|
14
|
-
{...field('fullName')}
|
|
14
|
+
{...withValidator(field('fullName'), defaultValidator)}
|
|
15
15
|
/>
|
|
16
16
|
<InputControl
|
|
17
17
|
className="shrink-0 w-full"
|
|
@@ -16,7 +16,7 @@ export const renderCreditParameters = (field: FormFieldRegisterer<CreditFormStat
|
|
|
16
16
|
<div className="sm:w-1/2">
|
|
17
17
|
<label>
|
|
18
18
|
<Text size="text-m" font="font-light">
|
|
19
|
-
|
|
19
|
+
Сумма, ₽
|
|
20
20
|
</Text>
|
|
21
21
|
</label>
|
|
22
22
|
<InputRange
|
|
@@ -29,7 +29,7 @@ export const renderCreditParameters = (field: FormFieldRegisterer<CreditFormStat
|
|
|
29
29
|
<div className="sm:w-1/2">
|
|
30
30
|
<label>
|
|
31
31
|
<Text size="text-m" font="font-light">
|
|
32
|
-
|
|
32
|
+
Срок, месяцев
|
|
33
33
|
</Text>
|
|
34
34
|
</label>
|
|
35
35
|
<InputRange
|
|
@@ -15,6 +15,7 @@ export const renderRegion = ({ regions, field }: RegionProps) => (
|
|
|
15
15
|
className="w-full"
|
|
16
16
|
label="Регион"
|
|
17
17
|
placeholder="Выберите регион"
|
|
18
|
+
isSearch
|
|
18
19
|
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
19
20
|
{...withValidator(field('region'), defaultValidator)}
|
|
20
21
|
/>
|
|
@@ -18,6 +18,7 @@ export const renderRegionDepartment = ({ regions, branches, field }: RegionDepar
|
|
|
18
18
|
<SelectControl
|
|
19
19
|
label="Регион"
|
|
20
20
|
placeholder="Выберите регион"
|
|
21
|
+
isSearch
|
|
21
22
|
options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
|
|
22
23
|
{...withValidator(field('region'), defaultValidator)}
|
|
23
24
|
/>
|
|
@@ -4,11 +4,28 @@ import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
|
4
4
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
5
5
|
import { style } from '../../utils/style';
|
|
6
6
|
import type { ButtonsBlockContent } from './ButtonsBlockContent';
|
|
7
|
+
import type { Align } from '../../model/Align';
|
|
7
8
|
|
|
8
9
|
interface ButtonsBlockProps extends ButtonsBlockContent, UniBlockProps {}
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const alignStyleMap: Record<Align, string> = {
|
|
12
|
+
start: 'justify-start',
|
|
13
|
+
center: 'justify-center',
|
|
14
|
+
end: 'justify-end',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const ButtonsBlock = JSX<ButtonsBlockProps>(
|
|
18
|
+
({ buttons, className = '', align, ...rest }) => {
|
|
19
|
+
const alignStyle = align ? style('flex', alignStyleMap[align]) : '';
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<BlockWrapper
|
|
23
|
+
className={style('!bg-transparent', alignStyle, className)}
|
|
24
|
+
defaultPadding="p-0"
|
|
25
|
+
{...rest}
|
|
26
|
+
>
|
|
27
|
+
{renderButtonsSection(buttons)}
|
|
28
|
+
</BlockWrapper>
|
|
29
|
+
);
|
|
30
|
+
},
|
|
31
|
+
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
2
|
+
import type { Align } from '../../model/Align';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @title Блок кнопок
|
|
@@ -6,4 +7,5 @@ import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
|
6
7
|
export interface ButtonsBlockContent {
|
|
7
8
|
/** @title Кнопки */
|
|
8
9
|
buttons?: ButtonContent[];
|
|
10
|
+
align?: Align;
|
|
9
11
|
}
|
|
@@ -187,6 +187,7 @@ export default {
|
|
|
187
187
|
<Carousel
|
|
188
188
|
className="col-span-12"
|
|
189
189
|
visibleItemCount={0}
|
|
190
|
+
cardSize="big"
|
|
190
191
|
block={{
|
|
191
192
|
type: 'Carousel',
|
|
192
193
|
blocks: new Array(6).fill({
|
|
@@ -203,6 +204,7 @@ export default {
|
|
|
203
204
|
<Carousel
|
|
204
205
|
className="col-span-12"
|
|
205
206
|
visibleItemCount={0}
|
|
207
|
+
cardSize="big"
|
|
206
208
|
block={{
|
|
207
209
|
type: 'Carousel',
|
|
208
210
|
blocks: new Array(6).fill({
|
|
@@ -26,6 +26,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
26
26
|
showDots,
|
|
27
27
|
arrowsPadded = true,
|
|
28
28
|
isGap = true,
|
|
29
|
+
cardSize = 'normal',
|
|
29
30
|
...rest
|
|
30
31
|
}) => {
|
|
31
32
|
const { blocks: childBlocks = [] } = rest.block || {};
|
|
@@ -55,7 +56,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
55
56
|
gap={isGap ? ITEMS_GAP : undefined}
|
|
56
57
|
onVisibleIndicesChange={scroll.handleVisibleIndicesChange}
|
|
57
58
|
>
|
|
58
|
-
{renderCarouselCards({ noCardBorder, activeIndex, ...rest })}
|
|
59
|
+
{renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest })}
|
|
59
60
|
</SwipeListContainer>
|
|
60
61
|
<CarouselScrollButtons
|
|
61
62
|
scroll={scroll}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @title Размер карточек
|
|
5
|
+
* @enumNames ["Нормальный", "Большой"]
|
|
6
|
+
*/
|
|
7
|
+
export type CardSizeMode = 'normal' | 'big';
|
|
8
|
+
|
|
3
9
|
/**
|
|
4
10
|
* @title Карусель
|
|
5
11
|
*/
|
|
@@ -17,4 +23,5 @@ export type CarouselContent = UniBlockContent & {
|
|
|
17
23
|
isGap?: boolean;
|
|
18
24
|
/** @title Не показывать контур на карточках */
|
|
19
25
|
noCardBorder?: boolean;
|
|
26
|
+
cardSize?: CardSizeMode;
|
|
20
27
|
};
|
|
@@ -5,14 +5,21 @@ import type { BlockDef } from '../../model/ContentPageDef';
|
|
|
5
5
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
6
6
|
import { style } from '../../utils/style';
|
|
7
7
|
import { renderCardHighlight } from './renderCardHighlight';
|
|
8
|
+
import type { CardSizeMode } from './CarouselContent';
|
|
8
9
|
|
|
9
10
|
const cardBaseStyle = 'relative h-full';
|
|
10
11
|
|
|
12
|
+
const CARD_SIZE_MAP: Record<CardSizeMode, string> = {
|
|
13
|
+
normal: 'sm:min-w-96',
|
|
14
|
+
big: 'sm:min-w-[515px]',
|
|
15
|
+
};
|
|
16
|
+
|
|
11
17
|
export const renderCarouselCards = ({
|
|
12
18
|
noCardBorder,
|
|
13
19
|
activeIndex,
|
|
20
|
+
cardSize = 'normal',
|
|
14
21
|
...rest
|
|
15
|
-
}: UniBlockProps & { noCardBorder?: boolean; activeIndex?: number }) => {
|
|
22
|
+
}: UniBlockProps & { noCardBorder?: boolean; activeIndex?: number; cardSize?: CardSizeMode }) => {
|
|
16
23
|
const { blocks: childBlocks } = rest.block || {};
|
|
17
24
|
const someCardsHighlighted = childBlocks?.some(isCardHighlighted);
|
|
18
25
|
|
|
@@ -21,7 +28,11 @@ export const renderCarouselCards = ({
|
|
|
21
28
|
renderProps: (block: BlockDef, options: BlockRendererOptions, blockIndex) => (
|
|
22
29
|
<div className={cardWrapperStyle(block, { someCardsHighlighted })}>
|
|
23
30
|
{renderBlock(block, options, {
|
|
24
|
-
className: cardStyle(block, {
|
|
31
|
+
className: cardStyle(block, {
|
|
32
|
+
someCardsHighlighted,
|
|
33
|
+
showBorder: !noCardBorder,
|
|
34
|
+
cardSize,
|
|
35
|
+
}),
|
|
25
36
|
blockIndex,
|
|
26
37
|
isActive: blockIndex === activeIndex,
|
|
27
38
|
})}
|
|
@@ -44,11 +55,16 @@ const cardWrapperStyle = (
|
|
|
44
55
|
|
|
45
56
|
const cardStyle = (
|
|
46
57
|
_: BlockDef | undefined,
|
|
47
|
-
{
|
|
58
|
+
{
|
|
59
|
+
someCardsHighlighted,
|
|
60
|
+
showBorder,
|
|
61
|
+
cardSize = 'normal',
|
|
62
|
+
}: { someCardsHighlighted?: boolean; showBorder?: boolean; cardSize?: CardSizeMode },
|
|
48
63
|
) =>
|
|
49
64
|
style(
|
|
50
65
|
cardBaseStyle,
|
|
51
|
-
'min-w-80
|
|
66
|
+
'min-w-80',
|
|
67
|
+
CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
|
|
52
68
|
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'),
|
|
53
69
|
showBorder &&
|
|
54
70
|
'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider',
|
|
@@ -21,14 +21,17 @@ const MAX_LINKS_COUNT = 10;
|
|
|
21
21
|
|
|
22
22
|
export default {
|
|
23
23
|
default: (
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
<div className="container grid grid-cols-12">
|
|
25
|
+
<CarouselLinks
|
|
26
|
+
links={links}
|
|
27
|
+
title="О Банке"
|
|
28
|
+
description={description}
|
|
29
|
+
additionalDescription={additionalDescription}
|
|
30
|
+
maxLinksCount={MAX_LINKS_COUNT}
|
|
31
|
+
version="secondary"
|
|
32
|
+
className="col-span-12"
|
|
33
|
+
block={{ type: 'Carousel', blocks: new Array(1).fill(link).flat() }}
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
33
36
|
),
|
|
34
37
|
};
|
|
@@ -53,7 +53,7 @@ const renderLinks = (links: LinkProps[], maxLinksCount: number) => {
|
|
|
53
53
|
|
|
54
54
|
return (
|
|
55
55
|
<Carousel
|
|
56
|
-
className="sm:w-2/3 w-full p-0 sm:p-xs"
|
|
56
|
+
className="@container-normal sm:w-2/3 w-full p-0 sm:p-xs"
|
|
57
57
|
version="secondary"
|
|
58
58
|
itemCount={itemCount}
|
|
59
59
|
arrowsPadded={false}
|
|
@@ -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 Картинка сверху над текстом */
|
package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx
CHANGED
|
@@ -89,7 +89,7 @@ export const CAROUSEL_RECOMMENDATION_CARD_SECONDARY: CarouselRecommendationCardC
|
|
|
89
89
|
description: 'Описание',
|
|
90
90
|
align: 'text-left',
|
|
91
91
|
icon,
|
|
92
|
-
items: ['Свежие новости', 'Акции и
|
|
92
|
+
items: ['Свежие новости', 'Акции и предложения', 'Ставки и котировки'],
|
|
93
93
|
version: 'secondary',
|
|
94
94
|
socialMedia: socialMediaWithoutText,
|
|
95
95
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
-
import type { Picture } from '../../model/Picture';
|
|
4
2
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
3
|
import { Img } from '../../ui-kit/Img/Img';
|
|
6
4
|
import { LinkWrapper } from '../../ui-kit/LinkWrapper/LinkWrapper';
|
|
@@ -9,6 +7,8 @@ import { style } from '../../utils/style';
|
|
|
9
7
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
10
8
|
import { Headline } from '../Headline/Headline';
|
|
11
9
|
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
10
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
11
|
+
import type { Picture } from '../../model/Picture';
|
|
12
12
|
|
|
13
13
|
export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
|
|
14
14
|
|
|
@@ -27,20 +27,20 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
27
27
|
}) => {
|
|
28
28
|
return (
|
|
29
29
|
<BlockWrapper
|
|
30
|
-
className={style('relative group-data-gray:bg-main-divider/50
|
|
31
|
-
defaultPadding="p-
|
|
30
|
+
className={style('relative group-data-gray:bg-main-divider/50', className)}
|
|
31
|
+
defaultPadding="p-3xl"
|
|
32
32
|
{...rest}
|
|
33
33
|
>
|
|
34
|
-
<LinkWrapper href={href} target={target}>
|
|
34
|
+
<LinkWrapper href={href} target={target} className={'space-y-lg'}>
|
|
35
35
|
<Headline
|
|
36
36
|
title={title}
|
|
37
37
|
description={description}
|
|
38
|
-
headlineVersion="
|
|
38
|
+
headlineVersion="XS"
|
|
39
39
|
isEmbedded={true}
|
|
40
40
|
align={align}
|
|
41
41
|
/>
|
|
42
42
|
{items.length ? (
|
|
43
|
-
<List className="flex flex-col gap-xs" items={items} listItemSize="
|
|
43
|
+
<List className="flex flex-col gap-xs" items={items} listItemSize="XS" />
|
|
44
44
|
) : null}
|
|
45
45
|
{renderIcon(icon)}
|
|
46
46
|
{socialMedia.length ? <SocialMedia media={socialMedia} /> : null}
|
|
@@ -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,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
|
},
|
|
@@ -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
|
};
|