@redneckz/wildless-cms-uni-blocks 0.14.26 → 0.14.28
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.12.12.js +0 -10
- package/bin/migration-scripts/0.14.26.js +3 -1
- package/bundle/api/{CorporateLeadAPI.d.ts → LeadServiceAPI.d.ts} +2 -2
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +286 -259
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/bundle/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
- package/bundle/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/bundle/components/Bonus/BonusContent.d.ts +1 -0
- package/bundle/components/Calculator/CalculatorContent.d.ts +3 -0
- package/bundle/components/CarouselCard/titleSize.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/bundle/components/MobileAppTile/renderList.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/bundle/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/bundle/icons/IconName.d.ts +16 -2
- package/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/bundle/utils/getBorderStyle.d.ts +1 -0
- package/cosmos-static/icons/CardSendIcon.svg +1 -0
- package/cosmos-static/icons/CoinIcon.svg +1 -0
- package/cosmos-static/icons/ConvertCardIcon.svg +1 -0
- package/cosmos-static/icons/DzenIcon.svg +1 -0
- package/cosmos-static/icons/HeartTickIcon.svg +1 -0
- package/cosmos-static/icons/NotificationBingIcon.svg +1 -0
- package/cosmos-static/icons/Security/320/241ardIcon.svg +1 -0
- package/{lib/api/CorporateLeadAPI.d.ts → dist/api/LeadServiceAPI.d.ts} +2 -2
- package/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
- package/dist/api/LeadServiceAPI.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +4 -4
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/dist/components/ApplicationForm/DatePickerControl.js +8 -0
- package/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
- package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/dist/components/ApplicationForm/Footnote.d.ts +1 -0
- package/dist/components/ApplicationForm/Footnote.js +1 -1
- package/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/dist/components/{PromoTile/PromoTileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
- package/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
- package/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
- package/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +1 -0
- package/dist/components/Calculator/Calculator.mobile.js +6 -5
- package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +3 -0
- package/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/titleSize.d.ts +1 -1
- package/dist/components/CarouselCard/titleSize.js +1 -1
- package/dist/components/CarouselCard/titleSize.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +2 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +3 -3
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/iconsMap.js +4 -0
- package/dist/components/Footer/iconsMap.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +2 -3
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocItem.js +6 -14
- package/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +4 -3
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/dist/components/LinkDocs/linkDocsContentExample.js +14 -5
- package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/dist/components/MobileAppTile/renderList.d.ts +1 -1
- package/dist/components/MobileAppTile/renderList.js +3 -2
- package/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
- package/dist/components/ProductBlock/ProductBlock.js +2 -4
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -2
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +6 -2
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/icons/IconName.d.ts +16 -2
- package/dist/icons/IconName.js +14 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/dist/ui-kit/DatePicker/DatePicker.js +4 -4
- package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/dist/ui-kit/DatePicker/getYears.js +1 -1
- package/dist/ui-kit/Input/Input.js +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/NotFound/NotFound.js +1 -1
- package/dist/ui-kit/NotFound/NotFound.js.map +1 -1
- package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/utils/getBorderStyle.d.ts +1 -0
- package/dist/utils/getBorderStyle.js +7 -0
- package/dist/utils/getBorderStyle.js.map +1 -0
- package/{mobile/bundle/api/CorporateLeadAPI.d.ts → lib/api/LeadServiceAPI.d.ts} +2 -2
- package/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
- package/lib/api/LeadServiceAPI.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +4 -4
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/lib/components/ApplicationForm/DatePickerControl.js +6 -0
- package/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
- package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/lib/components/ApplicationForm/Footnote.d.ts +1 -0
- package/lib/components/ApplicationForm/Footnote.js +1 -1
- package/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
- package/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
- package/lib/components/ApplicationForm/renderIndividualsFields.d.ts +3 -0
- package/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
- package/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +1 -0
- package/lib/components/Calculator/Calculator.mobile.js +6 -5
- package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +3 -0
- package/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/titleSize.d.ts +1 -1
- package/lib/components/CarouselCard/titleSize.js +1 -1
- package/lib/components/CarouselCard/titleSize.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +2 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +3 -3
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/iconsMap.js +4 -0
- package/lib/components/Footer/iconsMap.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +2 -3
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocItem.js +6 -14
- package/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +4 -3
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/lib/components/LinkDocs/linkDocsContentExample.js +14 -5
- package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/lib/components/MobileAppTile/renderList.d.ts +1 -1
- package/lib/components/MobileAppTile/renderList.js +3 -2
- package/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
- package/lib/components/ProductBlock/ProductBlock.js +2 -4
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -2
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +6 -2
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/icons/IconName.d.ts +16 -2
- package/lib/icons/IconName.js +14 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/lib/ui-kit/DatePicker/DatePicker.js +4 -4
- package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/lib/ui-kit/DatePicker/getYears.js +1 -1
- package/lib/ui-kit/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/NotFound/NotFound.js +1 -1
- package/lib/ui-kit/NotFound/NotFound.js.map +1 -1
- package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/utils/getBorderStyle.d.ts +1 -0
- package/lib/utils/getBorderStyle.js +4 -0
- package/lib/utils/getBorderStyle.js.map +1 -0
- package/{dist/api/CorporateLeadAPI.d.ts → mobile/bundle/api/LeadServiceAPI.d.ts} +2 -2
- package/mobile/bundle/bundle.umd.js +290 -95
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/mobile/bundle/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/mobile/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +1 -0
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +3 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/bundle/components/MobileAppTile/renderList.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/mobile/bundle/icons/IconName.d.ts +16 -2
- package/mobile/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/bundle/utils/getBorderStyle.d.ts +1 -0
- package/mobile/dist/api/LeadServiceAPI.d.ts +15 -0
- package/mobile/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -4
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/mobile/dist/components/ApplicationForm/DatePickerControl.js +8 -0
- package/mobile/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/mobile/dist/components/{PromoTile/PromoTileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
- package/mobile/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -0
- package/mobile/dist/components/Calculator/Calculator.js +6 -5
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +3 -0
- package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +2 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +3 -3
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/iconsMap.js +4 -0
- package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocItem.js +6 -14
- package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +4 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +14 -5
- package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/dist/components/MobileAppTile/renderList.d.ts +1 -1
- package/mobile/dist/components/MobileAppTile/renderList.js +3 -2
- package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
- package/mobile/dist/components/ProductBlock/ProductBlock.js +2 -4
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +6 -2
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +16 -2
- package/mobile/dist/icons/IconName.js +14 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js +4 -4
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/getYears.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/NotFound/NotFound.js +1 -1
- package/mobile/dist/ui-kit/NotFound/NotFound.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/utils/getBorderStyle.d.ts +1 -0
- package/mobile/dist/utils/getBorderStyle.js +7 -0
- package/mobile/dist/utils/getBorderStyle.js.map +1 -0
- package/mobile/lib/api/LeadServiceAPI.d.ts +15 -0
- package/mobile/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -4
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
- package/mobile/lib/components/ApplicationForm/DatePickerControl.js +6 -0
- package/mobile/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
- package/mobile/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
- package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -0
- package/mobile/lib/components/Calculator/Calculator.js +6 -5
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +3 -0
- package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
- package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +2 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +3 -3
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/iconsMap.js +4 -0
- package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocItem.js +6 -14
- package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +4 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +6 -0
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +14 -5
- package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/lib/components/MobileAppTile/renderList.d.ts +1 -1
- package/mobile/lib/components/MobileAppTile/renderList.js +3 -2
- package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
- package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -4
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +6 -2
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +16 -2
- package/mobile/lib/icons/IconName.js +14 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js +4 -4
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/getYears.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/NotFound/NotFound.js +1 -1
- package/mobile/lib/ui-kit/NotFound/NotFound.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/utils/getBorderStyle.d.ts +1 -0
- package/mobile/lib/utils/getBorderStyle.js +4 -0
- package/mobile/lib/utils/getBorderStyle.js.map +1 -0
- package/mobile/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
- package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
- package/mobile/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
- package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/mobile/src/components/ApplicationForm/Footnote.tsx +3 -2
- package/mobile/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
- package/mobile/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -0
- package/mobile/src/components/Bonus/BonusContent.ts +1 -0
- package/mobile/src/components/Calculator/Calculator.tsx +9 -9
- package/mobile/src/components/Calculator/CalculatorContent.ts +3 -0
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +3 -2
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
- package/mobile/src/components/Footer/Footer.tsx +7 -5
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -1
- package/mobile/src/components/Footer/SocialMedia.tsx +8 -8
- package/mobile/src/components/Footer/iconsMap.ts +4 -0
- package/mobile/src/components/LinkDocs/LinkDocItem.tsx +24 -34
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +4 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +5 -3
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +6 -0
- package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +14 -5
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
- package/mobile/src/components/MobileAppTile/renderList.tsx +9 -4
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -0
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +2 -4
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +1 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +2 -3
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +0 -1
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +0 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +9 -2
- package/mobile/src/icons/CardSendIcon.svg +9 -0
- package/mobile/src/icons/CoinIcon.svg +5 -0
- package/mobile/src/icons/ConvertCardIcon.svg +8 -0
- package/mobile/src/icons/DzenIcon.svg +4 -0
- package/mobile/src/icons/HeartTickIcon.svg +5 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/NotificationBingIcon.svg +5 -0
- package/mobile/src/icons/Security/320/241ardIcon.svg +7 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
- package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
- package/mobile/src/ui-kit/DatePicker/getYears.ts +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +1 -1
- package/mobile/src/ui-kit/NotFound/NotFound.tsx +1 -1
- package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/mobile/src/utils/getBorderStyle.ts +4 -0
- package/package.json +1 -1
- package/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +14 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
- package/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
- package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
- package/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
- package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
- package/src/components/ApplicationForm/Footnote.tsx +3 -2
- package/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
- package/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -0
- package/src/components/Blocks.ts +0 -2
- package/src/components/Bonus/BonusContent.ts +1 -0
- package/src/components/Calculator/Calculator.mobile.tsx +9 -9
- package/src/components/Calculator/CalculatorContent.ts +3 -0
- package/src/components/Carousel/renderCarouselCards.tsx +3 -2
- package/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/src/components/CarouselCard/titleSize.tsx +1 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
- package/src/components/Footer/Footer.mobile.tsx +7 -5
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -1
- package/src/components/Footer/SocialMedia.tsx +8 -8
- package/src/components/Footer/iconsMap.ts +4 -0
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -3
- package/src/components/LinkDocs/LinkDocItem.tsx +24 -34
- package/src/components/LinkDocs/LinkDocs.example.json +4 -1
- package/src/components/LinkDocs/LinkDocs.tsx +5 -3
- package/src/components/LinkDocs/LinkDocsContent.ts +6 -0
- package/src/components/LinkDocs/linkDocsContentExample.ts +14 -5
- package/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +3 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
- package/src/components/MobileAppTile/renderList.tsx +9 -4
- package/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -0
- package/src/components/ProductBlock/ProductBlock.tsx +2 -4
- package/src/components/ProductGallery/ProductGallery.example.json +1 -1
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
- package/src/components/TariffsTable/TariffsTable.tsx +2 -3
- package/src/components/TariffsTable/TariffsTableCell.tsx +0 -1
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/src/components/TariffsTable/TariffsTableVertical.tsx +0 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +9 -2
- package/src/icons/CardSendIcon.svg +9 -0
- package/src/icons/CoinIcon.svg +5 -0
- package/src/icons/ConvertCardIcon.svg +8 -0
- package/src/icons/DzenIcon.svg +4 -0
- package/src/icons/HeartTickIcon.svg +5 -0
- package/src/icons/IconName.ts +22 -1
- package/src/icons/NotificationBingIcon.svg +5 -0
- package/src/icons/Security/320/241ardIcon.svg +7 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
- package/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
- package/src/ui-kit/DatePicker/getYears.ts +1 -1
- package/src/ui-kit/Input/Input.tsx +1 -1
- package/src/ui-kit/NotFound/NotFound.tsx +1 -1
- package/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/src/utils/getBorderStyle.ts +4 -0
- package/bundle/components/PromoTile/PromoTile.d.ts +0 -5
- package/bundle/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/bundle/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/bundle/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
- package/dist/api/CorporateLeadAPI.js.map +0 -1
- package/dist/components/PromoTile/PromoTile.d.ts +0 -5
- package/dist/components/PromoTile/PromoTile.js +0 -20
- package/dist/components/PromoTile/PromoTile.js.map +0 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/dist/components/PromoTile/PromoTileContent.js.map +0 -1
- package/dist/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/dist/components/TariffsTable/headlineAlign.js +0 -4
- package/dist/components/TariffsTable/headlineAlign.js.map +0 -1
- package/dist/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
- package/dist/components/TariffsTable/headlineAlign.mobile.js +0 -4
- package/dist/components/TariffsTable/headlineAlign.mobile.js.map +0 -1
- package/lib/api/CorporateLeadAPI.js.map +0 -1
- package/lib/components/PromoTile/PromoTile.d.ts +0 -5
- package/lib/components/PromoTile/PromoTile.fixture.d.ts +0 -6
- package/lib/components/PromoTile/PromoTile.js +0 -18
- package/lib/components/PromoTile/PromoTile.js.map +0 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/lib/components/PromoTile/PromoTileContent.js +0 -2
- package/lib/components/PromoTile/PromoTileContent.js.map +0 -1
- package/lib/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/lib/components/TariffsTable/headlineAlign.js +0 -2
- package/lib/components/TariffsTable/headlineAlign.js.map +0 -1
- package/lib/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
- package/lib/components/TariffsTable/headlineAlign.mobile.js +0 -2
- package/lib/components/TariffsTable/headlineAlign.mobile.js.map +0 -1
- package/mobile/bundle/components/PromoTile/PromoTile.d.ts +0 -5
- package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/mobile/bundle/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/mobile/dist/api/CorporateLeadAPI.d.ts +0 -15
- package/mobile/dist/api/CorporateLeadAPI.js.map +0 -1
- package/mobile/dist/components/PromoTile/PromoTile.d.ts +0 -5
- package/mobile/dist/components/PromoTile/PromoTile.js +0 -20
- package/mobile/dist/components/PromoTile/PromoTile.js.map +0 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/mobile/dist/components/PromoTile/PromoTileContent.js.map +0 -1
- package/mobile/dist/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/mobile/dist/components/TariffsTable/headlineAlign.js +0 -4
- package/mobile/dist/components/TariffsTable/headlineAlign.js.map +0 -1
- package/mobile/lib/api/CorporateLeadAPI.d.ts +0 -15
- package/mobile/lib/api/CorporateLeadAPI.js.map +0 -1
- package/mobile/lib/components/PromoTile/PromoTile.d.ts +0 -5
- package/mobile/lib/components/PromoTile/PromoTile.js +0 -18
- package/mobile/lib/components/PromoTile/PromoTile.js.map +0 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +0 -10
- package/mobile/lib/components/PromoTile/PromoTileContent.js +0 -2
- package/mobile/lib/components/PromoTile/PromoTileContent.js.map +0 -1
- package/mobile/lib/components/TariffsTable/headlineAlign.d.ts +0 -1
- package/mobile/lib/components/TariffsTable/headlineAlign.js +0 -2
- package/mobile/lib/components/TariffsTable/headlineAlign.js.map +0 -1
- package/mobile/src/components/PromoTile/PromoTile.example.json +0 -16
- package/mobile/src/components/PromoTile/PromoTile.tsx +0 -53
- package/mobile/src/components/PromoTile/PromoTile.ui.json +0 -1
- package/mobile/src/components/PromoTile/PromoTileContent.ts +0 -14
- package/mobile/src/components/TariffsTable/headlineAlign.tsx +0 -1
- package/src/components/PromoTile/PromoTile.example.json +0 -16
- package/src/components/PromoTile/PromoTile.fixture.tsx +0 -25
- package/src/components/PromoTile/PromoTile.tsx +0 -53
- package/src/components/PromoTile/PromoTile.ui.json +0 -1
- package/src/components/PromoTile/PromoTileContent.ts +0 -14
- package/src/components/TariffsTable/headlineAlign.mobile.tsx +0 -1
- package/src/components/TariffsTable/headlineAlign.tsx +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { useForm } from '../../hooks/useForm';
|
|
4
|
+
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
5
|
+
import { objectValidator } from '../../validation/objectValidator';
|
|
6
|
+
import { isValidationSuccess } from '../../validation/validator';
|
|
7
|
+
import { withValidator } from '../../validation/withValidator';
|
|
8
|
+
import { type ApplicationFormsProps } from './ApplicationFormsProps';
|
|
9
|
+
import { Footnote } from './Footnote';
|
|
10
|
+
import { type IndividualsFormState } from './IndividualsFormState';
|
|
11
|
+
import { renderIndividualsFields } from './renderIndividualsFields';
|
|
12
|
+
import { renderSubmitButton } from './renderSubmitButton';
|
|
13
|
+
import { defaultValidator, nameValidator, phoneValidator } from './validators';
|
|
14
|
+
|
|
15
|
+
const initialFormState: IndividualsFormState = {
|
|
16
|
+
surname: '',
|
|
17
|
+
name: '',
|
|
18
|
+
middleName: '',
|
|
19
|
+
phone: '',
|
|
20
|
+
mail: '',
|
|
21
|
+
date: undefined,
|
|
22
|
+
consentDataProcessing: true,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const individualsValidator = objectValidator({
|
|
26
|
+
surname: nameValidator,
|
|
27
|
+
name: nameValidator,
|
|
28
|
+
middleName: nameValidator,
|
|
29
|
+
phone: phoneValidator,
|
|
30
|
+
mail: defaultValidator,
|
|
31
|
+
date: defaultValidator,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export const ApplicationFormIndividuals = JSX<ApplicationFormsProps>((props) => {
|
|
35
|
+
const { button, link, product, onSubmit } = props;
|
|
36
|
+
|
|
37
|
+
const handleSubmit = useCallback(
|
|
38
|
+
(formState: IndividualsFormState) => {
|
|
39
|
+
const { surname, name, middleName, phone, mail, date, consentDataProcessing } = formState;
|
|
40
|
+
|
|
41
|
+
isValidationSuccess(individualsValidator(formState)) &&
|
|
42
|
+
onSubmit(
|
|
43
|
+
{
|
|
44
|
+
typeForm: 'dpst',
|
|
45
|
+
surname,
|
|
46
|
+
name,
|
|
47
|
+
middleName,
|
|
48
|
+
mail,
|
|
49
|
+
consentDataProcessing,
|
|
50
|
+
phone: phone.replace(/[^+\d]/g, ''),
|
|
51
|
+
date: date?.toISOString().slice(0, 10) || '',
|
|
52
|
+
product: product || '',
|
|
53
|
+
},
|
|
54
|
+
true,
|
|
55
|
+
);
|
|
56
|
+
},
|
|
57
|
+
[onSubmit],
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<form className="container space-y-s" onSubmit={formProps.onSubmit}>
|
|
64
|
+
{renderIndividualsFields(field)}
|
|
65
|
+
<div className="@xl:flex justify-between items-center">
|
|
66
|
+
<div className="@xl:mb-0 mb-2 flex items-center gap-3">
|
|
67
|
+
<Checkbox {...withValidator(field('consentDataProcessing'), defaultValidator)} />
|
|
68
|
+
<Footnote text="Согласен с " link={link} />
|
|
69
|
+
</div>
|
|
70
|
+
{renderSubmitButton(button)}
|
|
71
|
+
</div>
|
|
72
|
+
</form>
|
|
73
|
+
);
|
|
74
|
+
});
|
|
@@ -5,5 +5,6 @@ export interface ApplicationFormsProps<S extends Record<string, any> = Record<st
|
|
|
5
5
|
button?: SubmitButtonProps;
|
|
6
6
|
link?: LinkProps;
|
|
7
7
|
sourceBookDir?: string;
|
|
8
|
-
|
|
8
|
+
product?: string;
|
|
9
|
+
onSubmit: (data: S, isIndividualType?: boolean) => void;
|
|
9
10
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { DatePicker } from '../../ui-kit/DatePicker/DatePicker';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
+
|
|
5
|
+
export interface DatePickerControlProps {
|
|
6
|
+
className: string;
|
|
7
|
+
label: string;
|
|
8
|
+
value?: Date;
|
|
9
|
+
error?: string;
|
|
10
|
+
onChange?: (value: Date) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const DatePickerControl = JSX<DatePickerControlProps>(
|
|
14
|
+
({ className, label, value = undefined, error, onChange }) => (
|
|
15
|
+
<div className={className}>
|
|
16
|
+
{label ? (
|
|
17
|
+
<div className="mb-xs">
|
|
18
|
+
<Text size="text-m" font="font-light">
|
|
19
|
+
{label}
|
|
20
|
+
</Text>
|
|
21
|
+
</div>
|
|
22
|
+
) : null}
|
|
23
|
+
<DatePicker value={value} onChange={onChange} valid={Boolean(!error)} />
|
|
24
|
+
<div className="h-2">
|
|
25
|
+
{error ? (
|
|
26
|
+
<Text size="text-xs" font="font-light" color="text-error">
|
|
27
|
+
{error}
|
|
28
|
+
</Text>
|
|
29
|
+
) : null}
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
),
|
|
33
|
+
);
|
|
@@ -3,6 +3,7 @@ import { ApplicationFormBusinessCard } from './ApplicationFormBusinessCard';
|
|
|
3
3
|
import { ApplicationFormCredit } from './ApplicationFormCredit';
|
|
4
4
|
import { ApplicationFormDeposit } from './ApplicationFormDeposit';
|
|
5
5
|
import { ApplicationFormGrantSupport } from './ApplicationFormGrantSupport';
|
|
6
|
+
import { ApplicationFormIndividuals } from './ApplicationFormIndividuals';
|
|
6
7
|
import { ApplicationFormWed } from './ApplicationFormWed';
|
|
7
8
|
|
|
8
9
|
export const EmbeddableForms = {
|
|
@@ -12,4 +13,5 @@ export const EmbeddableForms = {
|
|
|
12
13
|
ApplicationFormCredit,
|
|
13
14
|
ApplicationFormAcquiring,
|
|
14
15
|
ApplicationFormGrantSupport,
|
|
16
|
+
ApplicationFormIndividuals,
|
|
15
17
|
};
|
|
@@ -5,12 +5,13 @@ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
|
5
5
|
import { Text } from '../../ui-kit/Text/Text';
|
|
6
6
|
|
|
7
7
|
interface FootnoteProps {
|
|
8
|
+
text?: string;
|
|
8
9
|
link?: LinkProps;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export const Footnote = JSX<FootnoteProps>(({ link }) => (
|
|
12
|
+
export const Footnote = JSX<FootnoteProps>(({ text, link }) => (
|
|
12
13
|
<Paragraph size="text-s" font="font-light" color="text-secondary-text">
|
|
13
|
-
<Text
|
|
14
|
+
<Text>{text || 'Нажимая кнопку, вы подтверждаете согласие с '}</Text>
|
|
14
15
|
{link ? (
|
|
15
16
|
<Button
|
|
16
17
|
href={link.href}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { withValidator } from '../../validation/withValidator';
|
|
3
|
+
import { DatePickerControl } from './DatePickerControl';
|
|
4
|
+
import { type IndividualsFormState } from './IndividualsFormState';
|
|
5
|
+
import { InputControl } from './InputControl';
|
|
6
|
+
import { PhoneInputControl } from './PhoneInputControl';
|
|
7
|
+
import { defaultValidator, nameValidator, phoneValidator } from './validators';
|
|
8
|
+
|
|
9
|
+
export const renderIndividualsFields = (field: FormFieldRegisterer<IndividualsFormState>) => (
|
|
10
|
+
<div className="@xl:flex @xl:justify-between @xl:gap-lg">
|
|
11
|
+
<div className="@xl:w-1/2 space-y-s">
|
|
12
|
+
<InputControl
|
|
13
|
+
className="shrink-0 w-full"
|
|
14
|
+
label="Фамилия"
|
|
15
|
+
{...withValidator(field('surname'), nameValidator)}
|
|
16
|
+
/>
|
|
17
|
+
<InputControl
|
|
18
|
+
className="shrink-0 w-full"
|
|
19
|
+
label="Отчество"
|
|
20
|
+
{...withValidator(field('middleName'), nameValidator)}
|
|
21
|
+
/>
|
|
22
|
+
<PhoneInputControl
|
|
23
|
+
className="shrink-0 w-full"
|
|
24
|
+
label="Телефон"
|
|
25
|
+
{...withValidator(field('phone'), phoneValidator)}
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
<div className="@xl:w-1/2 space-y-s">
|
|
29
|
+
<InputControl
|
|
30
|
+
className="shrink-0 w-full"
|
|
31
|
+
label="Имя"
|
|
32
|
+
{...withValidator(field('name'), nameValidator)}
|
|
33
|
+
/>
|
|
34
|
+
<DatePickerControl
|
|
35
|
+
className="shrink-0 w-full"
|
|
36
|
+
label="Дата рождения"
|
|
37
|
+
{...withValidator(field('date'), defaultValidator)}
|
|
38
|
+
/>
|
|
39
|
+
<InputControl
|
|
40
|
+
className="shrink-0 w-full"
|
|
41
|
+
label="Электронная почта"
|
|
42
|
+
{...withValidator(field('mail'), defaultValidator)}
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
@@ -12,8 +12,8 @@ import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks';
|
|
|
12
12
|
|
|
13
13
|
export interface CalculatorProps extends CalculatorContent, UniBlockProps {}
|
|
14
14
|
|
|
15
|
-
export const Calculator = JSX<CalculatorProps>(({ className, calculatorTabs = [] }) => (
|
|
16
|
-
<BlockWrapper className={className} defaultPadding="p-0">
|
|
15
|
+
export const Calculator = JSX<CalculatorProps>(({ className, calculatorTabs = [], ...rest }) => (
|
|
16
|
+
<BlockWrapper className={className} defaultPadding="p-0" {...rest}>
|
|
17
17
|
{renderTabs(calculatorTabs)}
|
|
18
18
|
</BlockWrapper>
|
|
19
19
|
));
|
|
@@ -28,7 +28,7 @@ const renderCalculator = (tab: CalculatorTab) => {
|
|
|
28
28
|
const EmbeddedBlock = EmbeddableCalcBlocks[type];
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
|
-
<div>
|
|
31
|
+
<div className="p-xl">
|
|
32
32
|
{tab?.calculatorBlock?.title ? (
|
|
33
33
|
<Heading className="mb-lg" title={tab?.calculatorBlock?.title} />
|
|
34
34
|
) : null}
|
|
@@ -45,7 +45,7 @@ const renderTabs = (tabs: CalculatorTab[]) => {
|
|
|
45
45
|
const isSingleTab = tabs.length === 1;
|
|
46
46
|
|
|
47
47
|
if (isSingleTab) {
|
|
48
|
-
return
|
|
48
|
+
return renderCalculator(tabs[0]);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
return tabs.map((tab, index) => (
|
|
@@ -54,9 +54,7 @@ const renderTabs = (tabs: CalculatorTab[]) => {
|
|
|
54
54
|
isFoldButtonOnTop
|
|
55
55
|
unfoldedByDefault={index === 0}
|
|
56
56
|
renderFoldableSection={({ isUnfolded }) => (
|
|
57
|
-
<FoldableSection isUnfolded={isUnfolded}>
|
|
58
|
-
<BlockWrapper>{renderCalculator(tab)}</BlockWrapper>
|
|
59
|
-
</FoldableSection>
|
|
57
|
+
<FoldableSection isUnfolded={isUnfolded}>{renderCalculator(tab)}</FoldableSection>
|
|
60
58
|
)}
|
|
61
59
|
renderFoldButton={renderFoldButton(tab)}
|
|
62
60
|
/>
|
|
@@ -66,6 +64,8 @@ const renderTabs = (tabs: CalculatorTab[]) => {
|
|
|
66
64
|
const renderFoldButton =
|
|
67
65
|
(tab: CalculatorTab) =>
|
|
68
66
|
({ isUnfolded, onToggle }: FoldablePartProps) => {
|
|
67
|
+
const align = tab.nav?.align || 'text-left';
|
|
68
|
+
|
|
69
69
|
return (
|
|
70
70
|
<button
|
|
71
71
|
onClick={onToggle}
|
|
@@ -75,10 +75,10 @@ const renderFoldButton =
|
|
|
75
75
|
<Icon name={tab.nav?.icon?.icon} iconVersion="color" width="24" height="24" />
|
|
76
76
|
</div>
|
|
77
77
|
<div className="flex-1 flex flex-col pl-s">
|
|
78
|
-
<Text align=
|
|
78
|
+
<Text align={align} color="text-white">
|
|
79
79
|
{tab.nav?.title}
|
|
80
80
|
</Text>
|
|
81
|
-
<Text align=
|
|
81
|
+
<Text align={align} size="text-s" color="text-white" font="font-light">
|
|
82
82
|
{tab.nav?.description}
|
|
83
83
|
</Text>
|
|
84
84
|
</div>
|
|
@@ -28,6 +28,7 @@ export type IPRateDef = RateParams & {
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* @title Назначение ставки
|
|
31
|
+
* @default null
|
|
31
32
|
*/
|
|
32
33
|
export type RateParamsDef = EmptyOption | ULRateDef | IPRateDef;
|
|
33
34
|
|
|
@@ -154,6 +155,7 @@ export type RefinancingCalculatorParamsDef = TitleProps &
|
|
|
154
155
|
|
|
155
156
|
/**
|
|
156
157
|
* @title Настройки калькулятора
|
|
158
|
+
* @default null
|
|
157
159
|
*/
|
|
158
160
|
export type CalculatorBlockDef =
|
|
159
161
|
| EmptyOption
|
|
@@ -180,6 +182,7 @@ export type CalculatorTab = {
|
|
|
180
182
|
* @title Калькулятор
|
|
181
183
|
*/
|
|
182
184
|
export interface CalculatorContent {
|
|
185
|
+
/** @title Выравнивание вкладок */
|
|
183
186
|
tabAlign?: Align;
|
|
184
187
|
/** @title Вкладки */
|
|
185
188
|
calculatorTabs?: CalculatorTab[];
|
|
@@ -3,6 +3,7 @@ import { renderBlock } from '../../BlockRenderer/renderBlock';
|
|
|
3
3
|
import { renderChildren } from '../../BlockRenderer/renderChildren';
|
|
4
4
|
import { type BlockDef } from '../../model/ContentPageDef';
|
|
5
5
|
import { type UniBlockProps } from '../../model/JSXBlock';
|
|
6
|
+
import { getBorderStyle } from '../../utils/getBorderStyle';
|
|
6
7
|
import { style } from '../../utils/style';
|
|
7
8
|
import { type CardSizeMode } from './CarouselContent';
|
|
8
9
|
import { renderCardHighlight } from './renderCardHighlight';
|
|
@@ -67,8 +68,8 @@ const cardStyle = (
|
|
|
67
68
|
'min-w-80',
|
|
68
69
|
CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
|
|
69
70
|
someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'),
|
|
70
|
-
showBorder
|
|
71
|
-
|
|
71
|
+
getBorderStyle(showBorder),
|
|
72
|
+
showBorder && 'h-full',
|
|
72
73
|
);
|
|
73
74
|
|
|
74
75
|
const isCardHighlighted = (_: BlockDef | undefined) =>
|
|
@@ -19,7 +19,7 @@ export const CarouselCard = JSX<CarouselCardProps>(
|
|
|
19
19
|
defaultPadding="p-0"
|
|
20
20
|
{...rest}
|
|
21
21
|
>
|
|
22
|
-
<div className="relative">
|
|
22
|
+
<div className="relative h-full">
|
|
23
23
|
<div className={style(layerStyle, 'top-9 right-12 bg-green-dark')} />
|
|
24
24
|
<div className={style(layerStyle, 'top-6 right-8 bg-green')} />
|
|
25
25
|
<div className={style(layerStyle, 'top-3 right-4 bg-green-light')} />
|
|
@@ -25,7 +25,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
25
25
|
const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
|
-
<BlockWrapper className={style('flex flex-col', className)} defaultPadding="p-
|
|
28
|
+
<BlockWrapper className={style('flex flex-col', className)} defaultPadding="p-2xl" {...rest}>
|
|
29
29
|
{isIcon(icon) ? (
|
|
30
30
|
<div className="self-center">
|
|
31
31
|
<Img image={icon} />
|
|
@@ -34,7 +34,7 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
34
34
|
{title ? (
|
|
35
35
|
<Heading className={style('pt-xs', align)} headingType="h5" title={title} />
|
|
36
36
|
) : null}
|
|
37
|
-
{button ? <Button className="w-full mt-m" {...button} /> : null}
|
|
37
|
+
{button ? <Button className="w-full mt-m mb-lg" {...button} /> : null}
|
|
38
38
|
{cardCells.length ? (
|
|
39
39
|
<Foldable
|
|
40
40
|
renderFoldableSection={({ isUnfolded }) => (
|
|
@@ -45,10 +45,12 @@ export const Footer = JSX<FooterProps>(({ className, ...rest }) => {
|
|
|
45
45
|
<SocialMedia className="mb-xl" media={socialMedia} stretched={true}>
|
|
46
46
|
Соцсети
|
|
47
47
|
</SocialMedia>
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
<div className="mb-xl">
|
|
49
|
+
<div className="flex flex-col gap-4 mb-xs">{mobileApps?.map(renderButton)}</div>
|
|
50
|
+
<Text size="text-s" font="font-light" color="text-secondary-text">
|
|
51
|
+
Мобильное приложение
|
|
52
|
+
</Text>
|
|
53
|
+
</div>
|
|
52
54
|
</div>
|
|
53
55
|
<div className="py-lg border-t border-main-divider">
|
|
54
56
|
<HorizontalNavigationLink
|
|
@@ -74,7 +76,7 @@ const renderButton = ({ href = '/', text }: LinkProps, i: number) => {
|
|
|
74
76
|
return (
|
|
75
77
|
<Button
|
|
76
78
|
key={String(i)}
|
|
77
|
-
className="w-full
|
|
79
|
+
className="w-full"
|
|
78
80
|
text={text || label}
|
|
79
81
|
version="secondary"
|
|
80
82
|
href={href}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type TitleProps } from '../../model/HeadlineType';
|
|
3
3
|
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
+
import { style } from '../../utils/style';
|
|
4
5
|
import { type FooterLink } from './FooterLink';
|
|
5
6
|
import { HorizontalNavigationLink } from './HorizontalNavigationLink';
|
|
6
7
|
|
|
@@ -8,7 +9,7 @@ export interface HorizontalNavigationProps extends FooterLink, TitleProps {}
|
|
|
8
9
|
|
|
9
10
|
export const HorizontalNavigation = JSX<HorizontalNavigationProps>(
|
|
10
11
|
({ title, links, className = '' }) => (
|
|
11
|
-
<div className={className}>
|
|
12
|
+
<div className={style('flex flex-col gap-4', className)}>
|
|
12
13
|
<Text size="text-l" font="font-normal">
|
|
13
14
|
{title}
|
|
14
15
|
</Text>
|
|
@@ -39,23 +39,23 @@ export const SocialMedia = JSX<SocialMediaProps>(
|
|
|
39
39
|
|
|
40
40
|
const buttonClassName = style(
|
|
41
41
|
'border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media',
|
|
42
|
-
showButtonText && hasText ? '' : '
|
|
42
|
+
showButtonText && hasText ? '' : 'basis-auto',
|
|
43
43
|
stretched ? 'flex-1 justify-center' : '',
|
|
44
44
|
);
|
|
45
45
|
|
|
46
46
|
return (
|
|
47
|
-
<div className=
|
|
48
|
-
|
|
49
|
-
<Text size="text-s" font="font-light" color="text-secondary-text">
|
|
50
|
-
{children}
|
|
51
|
-
</Text>
|
|
52
|
-
) : null}
|
|
53
|
-
<div className={style('flex gap-xs', className)}>
|
|
47
|
+
<div className={style('flex flex-col gap-xs', className)}>
|
|
48
|
+
<div className="flex gap-xs">
|
|
54
49
|
{renderButtonsSection(buttons, {
|
|
55
50
|
className: stretched ? 'w-full' : '',
|
|
56
51
|
buttonClassName,
|
|
57
52
|
})}
|
|
58
53
|
</div>
|
|
54
|
+
{children ? (
|
|
55
|
+
<Text size="text-s" font="font-light" color="text-secondary-text">
|
|
56
|
+
{children}
|
|
57
|
+
</Text>
|
|
58
|
+
) : null}
|
|
59
59
|
</div>
|
|
60
60
|
);
|
|
61
61
|
},
|
|
@@ -7,38 +7,28 @@ export interface LinkDocItemProps extends LinkDoc {
|
|
|
7
7
|
icon?: VNode;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export const LinkDocItem = JSX<LinkDocItemProps>(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
>
|
|
16
|
-
{icon}
|
|
17
|
-
{text ? (
|
|
18
|
-
<Text size="text-l" font="font-light">
|
|
19
|
-
{text}
|
|
20
|
-
<Text color="text-secondary-text">
|
|
21
|
-
{linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize)}
|
|
22
|
-
</Text>
|
|
23
|
-
</Text>
|
|
24
|
-
) : null}
|
|
25
|
-
</a>
|
|
26
|
-
));
|
|
10
|
+
export const LinkDocItem = JSX<LinkDocItemProps>(
|
|
11
|
+
({ icon, text, fileFormat, fileSize, ...linkProps }) => {
|
|
12
|
+
const prefix = fileFormat || fileSize ? ',' : '';
|
|
13
|
+
const size = fileSize ?? '';
|
|
14
|
+
const format = fileFormat ? String(fileFormat) : '';
|
|
27
15
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
return (
|
|
17
|
+
<a
|
|
18
|
+
className="flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main"
|
|
19
|
+
role="link"
|
|
20
|
+
{...linkProps}
|
|
21
|
+
>
|
|
22
|
+
{icon}
|
|
23
|
+
{text ? (
|
|
24
|
+
<Text size="text-l" font="font-light">
|
|
25
|
+
{text}
|
|
26
|
+
<Text color="text-secondary-text">
|
|
27
|
+
{linkProps?.href && `${size} ${prefix} ${format}`}
|
|
28
|
+
</Text>
|
|
29
|
+
</Text>
|
|
30
|
+
) : null}
|
|
31
|
+
</a>
|
|
32
|
+
);
|
|
33
|
+
},
|
|
34
|
+
);
|
|
@@ -17,12 +17,14 @@
|
|
|
17
17
|
"docType": "Link",
|
|
18
18
|
"text": "Документ №1",
|
|
19
19
|
"href": "/documents/document1.doc",
|
|
20
|
+
"fileFormat": "doc",
|
|
20
21
|
"fileSize": "123КБ"
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
24
|
"docType": "Link",
|
|
24
25
|
"text": "Документ №2",
|
|
25
26
|
"href": "/documents/document2.rtf",
|
|
27
|
+
"fileFormat": "rtf",
|
|
26
28
|
"target": "_blank"
|
|
27
29
|
},
|
|
28
30
|
{
|
|
@@ -34,7 +36,8 @@
|
|
|
34
36
|
{
|
|
35
37
|
"docType": "Link",
|
|
36
38
|
"text": "Документ №4",
|
|
37
|
-
"href": "/abc/map.rar"
|
|
39
|
+
"href": "/abc/map.rar",
|
|
40
|
+
"fileFormat": "rar"
|
|
38
41
|
}
|
|
39
42
|
],
|
|
40
43
|
"columnsMode": "double",
|
|
@@ -51,7 +51,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
51
51
|
)}
|
|
52
52
|
role="list"
|
|
53
53
|
>
|
|
54
|
-
{documents.map(renderLinkDocItem(router,
|
|
54
|
+
{documents.map(renderLinkDocItem(router, icon))}
|
|
55
55
|
</div>
|
|
56
56
|
) : null}
|
|
57
57
|
</BlockWrapper>
|
|
@@ -60,8 +60,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
60
60
|
);
|
|
61
61
|
|
|
62
62
|
const renderLinkDocItem =
|
|
63
|
-
(router: Router,
|
|
64
|
-
(docBlockDef: DocBlockDef, i: number) => {
|
|
63
|
+
(router: Router, icon: Picture) => (docBlockDef: DocBlockDef, i: number) => {
|
|
65
64
|
const href =
|
|
66
65
|
docBlockDef?.docType === 'Attachment'
|
|
67
66
|
? adjustHref(router)(docBlockDef?.attachment?.src)
|
|
@@ -72,12 +71,15 @@ const renderLinkDocItem =
|
|
|
72
71
|
? formatBytes(docBlockDef?.attachment?.fileSize || 0)
|
|
73
72
|
: docBlockDef?.fileSize;
|
|
74
73
|
|
|
74
|
+
const fileFormat = docBlockDef?.docType !== 'Attachment' ? docBlockDef?.fileFormat : '';
|
|
75
|
+
|
|
75
76
|
return (
|
|
76
77
|
<div key={String(i)} role="listitem">
|
|
77
78
|
<LinkDocItem
|
|
78
79
|
text={docBlockDef?.text}
|
|
79
80
|
target={docBlockDef?.target}
|
|
80
81
|
href={href}
|
|
82
|
+
fileFormat={fileFormat}
|
|
81
83
|
fileSize={fileSize}
|
|
82
84
|
icon={icon ? <Img className={linkIconStyle} image={icon} width="24" height="24" /> : null}
|
|
83
85
|
/>
|
|
@@ -17,6 +17,8 @@ export type LinkColumnsMode = 'single' | 'double';
|
|
|
17
17
|
export interface LinkDoc extends LinkProps {
|
|
18
18
|
/** @title размер файла */
|
|
19
19
|
fileSize?: string;
|
|
20
|
+
/** @title формат файла */
|
|
21
|
+
fileFormat?: string;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export interface AttachmentDoc {
|
|
@@ -44,6 +46,10 @@ export type AttachmentDocDef = AttachmentDoc & {
|
|
|
44
46
|
docType: 'Attachment';
|
|
45
47
|
};
|
|
46
48
|
|
|
49
|
+
/**
|
|
50
|
+
* @title Документ
|
|
51
|
+
* @default null
|
|
52
|
+
*/
|
|
47
53
|
export type DocBlockDef = EmptyOption | LinkDocDef | AttachmentDocDef;
|
|
48
54
|
|
|
49
55
|
/**
|
|
@@ -10,28 +10,37 @@ export const linkDocsContentExample: LinkDocsContent = {
|
|
|
10
10
|
attachment: { src: '/abc1/cooldoc.doc' },
|
|
11
11
|
target: '_self',
|
|
12
12
|
},
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
{
|
|
14
|
+
docType: 'Link',
|
|
15
|
+
text: 'target blank',
|
|
16
|
+
href: '/abc2/wtf.rtf',
|
|
17
|
+
fileFormat: 'rtf',
|
|
18
|
+
target: '_blank',
|
|
19
|
+
},
|
|
20
|
+
{ docType: 'Link', text: 'GlassIcon', href: '/abc3/map.jpeg', fileFormat: 'jpeg' },
|
|
21
|
+
{ docType: 'Link', text: 'no icon', href: '/abc4', fileFormat: 'rtf' },
|
|
16
22
|
{ docType: 'Link', text: 'документ 5', href: '/abc5' },
|
|
17
|
-
{ docType: 'Link', text: 'документ 6', href: '/abc6/abc.pdf' },
|
|
18
|
-
{ docType: 'Link', text: 'Text text text', href: '/abc7/yolo.png' },
|
|
23
|
+
{ docType: 'Link', text: 'документ 6', href: '/abc6/abc.pdf', fileFormat: 'pdf' },
|
|
24
|
+
{ docType: 'Link', text: 'Text text text', href: '/abc7/yolo.png', fileFormat: 'png' },
|
|
19
25
|
{
|
|
20
26
|
docType: 'Link',
|
|
21
27
|
text: 'Some more generic text to stretch item, and even more, more text, and more generic text, and even more, more text, and even more',
|
|
22
28
|
href: '/abc8/archive.zip',
|
|
29
|
+
fileFormat: 'zip',
|
|
23
30
|
fileSize: '2.3МБ',
|
|
24
31
|
},
|
|
25
32
|
{
|
|
26
33
|
docType: 'Link',
|
|
27
34
|
text: 'И ещё немного текста',
|
|
28
35
|
href: '/abc9/rarniw.rar',
|
|
36
|
+
fileFormat: 'rar',
|
|
29
37
|
fileSize: '666МБ',
|
|
30
38
|
},
|
|
31
39
|
{
|
|
32
40
|
docType: 'Link',
|
|
33
41
|
text: 'Форматируем, сортируем, смотрим как отображается...',
|
|
34
42
|
href: '/abc10/',
|
|
43
|
+
fileFormat: 'pdf',
|
|
35
44
|
fileSize: '65ГБ',
|
|
36
45
|
},
|
|
37
46
|
],
|