@redneckz/wildless-cms-uni-blocks 0.8.16 → 0.8.18
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.8.8.js +9 -6
- package/bundle/ProjectSettings.d.ts +2 -0
- package/bundle/api/CorporateLeadAPI.d.ts +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +157 -81
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/bundle/components/Header/useChatBot.d.ts +1 -2
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/bundle/components/Video/VideoContent.d.ts +19 -4
- package/bundle/hooks/useLink.d.ts +1 -3
- package/bundle/model/AlignType.d.ts +10 -0
- package/bundle/model/PreventableEvent.d.ts +3 -0
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/ProjectSettings.d.ts +2 -0
- package/dist/ProjectSettings.js +3 -0
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/api/CorporateLeadAPI.d.ts +1 -1
- package/dist/api/CorporateLeadAPI.js +1 -1
- package/dist/api/CorporateLeadAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +6 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/dist/components/ApplicationForm/CreditParameters.js +9 -0
- package/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/dist/components/ApplicationForm/acquiringTypes.js +0 -5
- package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/dist/components/ApplicationForm/renderBankOffices.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/dist/components/ApplicationForm/renderInputRange.js +8 -0
- package/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderSelects.js +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/dist/components/ApplicationForm/useFormHandlers.js +1 -6
- package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -0
- package/dist/components/Carousel/Carousel.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/CarouselCardContent.d.ts +2 -2
- package/dist/components/CarouselCard/constants.d.ts +3 -3
- package/dist/components/CarouselCard/constants.js +2 -2
- package/dist/components/CarouselCard/constants.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/dist/components/Footer/MediaButton.js +13 -10
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +0 -6
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/useChatBot.d.ts +1 -2
- package/dist/components/Header/useChatBot.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/dist/components/ProductBlock/renderBackwardButton.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/TariffsTableContent.d.ts +1 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/dist/components/Video/Video.js +6 -1
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/components/Video/VideoContent.d.ts +19 -4
- package/dist/hooks/useLink.d.ts +1 -3
- package/dist/hooks/useLink.js +1 -1
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/model/AlignType.d.ts +10 -0
- package/dist/model/PreventableEvent.d.ts +3 -0
- package/{mobile/dist/model/CarouselCardVersion.js → dist/model/PreventableEvent.js} +1 -1
- package/dist/model/PreventableEvent.js.map +1 -0
- package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/services/sitemap/isTopItemActive.js +1 -3
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/wlc.json +3 -1
- package/lib/ProjectSettings.d.ts +2 -0
- package/lib/ProjectSettings.js +3 -0
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/api/CorporateLeadAPI.d.ts +1 -1
- package/lib/api/CorporateLeadAPI.js +1 -1
- package/lib/api/CorporateLeadAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +0 -2
- package/lib/components/ApplicationForm/ApplicationForm.js +6 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/lib/components/ApplicationForm/CreditParameters.js +7 -0
- package/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/lib/components/ApplicationForm/acquiringTypes.js +0 -5
- package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/lib/components/ApplicationForm/renderBankOffices.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/lib/components/ApplicationForm/renderInputRange.js +5 -0
- package/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderSelects.js +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/lib/components/ApplicationForm/useFormHandlers.js +1 -6
- package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
- package/lib/components/Carousel/Carousel.js +1 -0
- package/lib/components/Carousel/Carousel.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/CarouselCardContent.d.ts +2 -2
- package/lib/components/CarouselCard/constants.d.ts +3 -3
- package/lib/components/CarouselCard/constants.js +2 -2
- package/lib/components/CarouselCard/constants.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +7 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/lib/components/Footer/MediaButton.js +13 -10
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +0 -6
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/useChatBot.d.ts +1 -2
- package/lib/components/Header/useChatBot.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/lib/components/ProductBlock/renderBackwardButton.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/TariffsTableContent.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/lib/components/Video/Video.js +6 -1
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoContent.d.ts +19 -4
- package/lib/hooks/useLink.d.ts +1 -3
- package/lib/hooks/useLink.js +1 -1
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/model/AlignType.d.ts +10 -0
- package/lib/model/PreventableEvent.d.ts +3 -0
- package/lib/model/PreventableEvent.js +2 -0
- package/lib/model/PreventableEvent.js.map +1 -0
- package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/lib/services/sitemap/isTopItemActive.js +1 -3
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/wlc.json +3 -1
- package/mobile/bundle/ProjectSettings.d.ts +2 -0
- package/mobile/bundle/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +18 -14
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/bundle/components/Header/useChatBot.d.ts +1 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/bundle/components/Video/VideoContent.d.ts +19 -4
- package/mobile/bundle/hooks/useLink.d.ts +1 -3
- package/mobile/bundle/model/AlignType.d.ts +10 -0
- package/mobile/bundle/model/PreventableEvent.d.ts +3 -0
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/ProjectSettings.d.ts +2 -0
- package/mobile/dist/ProjectSettings.js +3 -0
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/dist/api/CorporateLeadAPI.js +1 -1
- package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.js +9 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js +0 -5
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderInputRange.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSelects.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +1 -6
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -0
- package/mobile/dist/components/Carousel/Carousel.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/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/dist/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/dist/components/CarouselCard/constants.js +2 -2
- package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/dist/components/Footer/MediaButton.js +13 -10
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/useChatBot.d.ts +1 -2
- package/mobile/dist/components/Header/useChatBot.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/dist/components/Video/Video.js +6 -1
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/components/Video/VideoContent.d.ts +19 -4
- package/mobile/dist/hooks/useLink.d.ts +1 -3
- package/mobile/dist/hooks/useLink.js +1 -1
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/model/AlignType.d.ts +10 -0
- package/mobile/dist/model/PreventableEvent.d.ts +3 -0
- package/{dist/model/CarouselCardVersion.js → mobile/dist/model/PreventableEvent.js} +1 -1
- package/mobile/dist/model/PreventableEvent.js.map +1 -0
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/dist/wlc.json +3 -1
- package/mobile/lib/ProjectSettings.d.ts +2 -0
- package/mobile/lib/ProjectSettings.js +3 -0
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/lib/api/CorporateLeadAPI.js +1 -1
- package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.js +7 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js +0 -5
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderInputRange.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSelects.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +1 -6
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -0
- package/mobile/lib/components/Carousel/Carousel.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/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/lib/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/lib/components/CarouselCard/constants.js +2 -2
- package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/lib/components/Footer/MediaButton.js +13 -10
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/useChatBot.d.ts +1 -2
- package/mobile/lib/components/Header/useChatBot.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/lib/components/Video/Video.js +6 -1
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/components/Video/VideoContent.d.ts +19 -4
- package/mobile/lib/hooks/useLink.d.ts +1 -3
- package/mobile/lib/hooks/useLink.js +1 -1
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/model/AlignType.d.ts +10 -0
- package/mobile/lib/model/PreventableEvent.d.ts +3 -0
- package/mobile/lib/model/PreventableEvent.js +2 -0
- package/mobile/lib/model/PreventableEvent.js.map +1 -0
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/lib/wlc.json +3 -1
- package/mobile/src/ProjectSettings.ts +4 -0
- package/mobile/src/api/CorporateLeadAPI.ts +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/mobile/src/components/ApplicationForm/CreditParameters.ts +7 -0
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
- package/mobile/src/components/ApplicationForm/acquiringTypes.ts +0 -5
- package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
- package/mobile/src/components/ApplicationForm/renderInputRange.tsx +20 -0
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderSelects.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +1 -15
- package/mobile/src/components/Carousel/Carousel.tsx +1 -0
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/mobile/src/components/CarouselCard/constants.ts +5 -5
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/mobile/src/components/Footer/MediaButton.tsx +19 -14
- package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/mobile/src/components/Header/HeaderContent.ts +0 -7
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/mobile/src/components/Header/useChatBot.ts +2 -3
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/mobile/src/components/Video/Video.example.json +5 -0
- package/mobile/src/components/Video/Video.tsx +23 -17
- package/mobile/src/components/Video/Video.ui.json +1 -1
- package/mobile/src/components/Video/VideoContent.ts +19 -4
- package/mobile/src/hooks/useLink.ts +2 -5
- package/mobile/src/model/AlignType.ts +11 -0
- package/mobile/src/model/PreventableEvent.ts +3 -0
- package/mobile/src/services/sitemap/isTopItemActive.ts +2 -7
- package/mobile/src/wlc.json +3 -1
- package/package.json +1 -1
- package/src/ProjectSettings.ts +4 -0
- package/src/api/CorporateLeadAPI.ts +2 -2
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
- package/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/src/components/ApplicationForm/CreditParameters.ts +7 -0
- package/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
- package/src/components/ApplicationForm/acquiringTypes.ts +0 -5
- package/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
- package/src/components/ApplicationForm/renderInputRange.tsx +20 -0
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
- package/src/components/ApplicationForm/renderSelects.tsx +2 -2
- package/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/src/components/ApplicationForm/useFormHandlers.ts +1 -15
- package/src/components/Blocks.ts +2 -0
- package/src/components/Carousel/Carousel.fixture.tsx +19 -0
- package/src/components/Carousel/Carousel.tsx +1 -0
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/src/components/CarouselCard/constants.ts +5 -5
- package/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +21 -0
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +8 -3
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/src/components/Footer/MediaButton.tsx +19 -14
- package/src/components/Header/Header.fixture.tsx +3 -3
- package/src/components/Header/Header.tsx +0 -2
- package/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/src/components/Header/HeaderContent.ts +0 -7
- package/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/src/components/Header/useChatBot.ts +2 -3
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/src/components/Video/Video.example.json +5 -0
- package/src/components/Video/Video.fixture.tsx +1 -1
- package/src/components/Video/Video.tsx +23 -17
- package/src/components/Video/Video.ui.json +1 -1
- package/src/components/Video/VideoContent.ts +19 -4
- package/src/hooks/useLink.ts +2 -5
- package/src/model/AlignType.ts +11 -0
- package/src/model/PreventableEvent.ts +3 -0
- package/src/services/sitemap/isTopItemActive.ts +2 -7
- package/src/wlc.json +3 -1
- package/bundle/model/CarouselCardVersion.d.ts +0 -1
- package/dist/model/CarouselCardVersion.d.ts +0 -1
- package/dist/model/CarouselCardVersion.js.map +0 -1
- package/lib/model/CarouselCardVersion.d.ts +0 -1
- package/lib/model/CarouselCardVersion.js +0 -2
- package/lib/model/CarouselCardVersion.js.map +0 -1
- package/mobile/bundle/model/CarouselCardVersion.d.ts +0 -1
- package/mobile/dist/model/CarouselCardVersion.d.ts +0 -1
- package/mobile/dist/model/CarouselCardVersion.js.map +0 -1
- package/mobile/lib/model/CarouselCardVersion.d.ts +0 -1
- package/mobile/lib/model/CarouselCardVersion.js +0 -2
- package/mobile/lib/model/CarouselCardVersion.js.map +0 -1
- package/mobile/src/model/CarouselCardVersion.ts +0 -1
- package/src/model/CarouselCardVersion.ts +0 -1
|
@@ -2,23 +2,18 @@ import { Select } from './models';
|
|
|
2
2
|
|
|
3
3
|
export const ACQUIRING_TYPES: Select[] = [
|
|
4
4
|
{
|
|
5
|
-
code: '1',
|
|
6
5
|
name: 'Торговый эквайринг',
|
|
7
6
|
},
|
|
8
7
|
{
|
|
9
|
-
code: '2',
|
|
10
8
|
name: 'Мобильный эквайринг',
|
|
11
9
|
},
|
|
12
10
|
{
|
|
13
|
-
code: '3',
|
|
14
11
|
name: 'Интернет-эквайринг',
|
|
15
12
|
},
|
|
16
13
|
{
|
|
17
|
-
code: '4',
|
|
18
14
|
name: 'QR-эквайринг (СБП)',
|
|
19
15
|
},
|
|
20
16
|
{
|
|
21
|
-
code: '5',
|
|
22
17
|
name: 'Все виды эквайринга',
|
|
23
18
|
},
|
|
24
19
|
];
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Text } from '../../ui-kit/Text/Text';
|
|
1
|
+
import type { CreditFormState } from './ApplicationFormCredit';
|
|
3
2
|
import {
|
|
4
|
-
CreditFormState,
|
|
5
3
|
ITEMS_CREDIT_AMOUNT,
|
|
6
4
|
ITEMS_CREDIT_TERM,
|
|
7
5
|
MAX_CREDIT_AMOUNT,
|
|
8
6
|
MAX_CREDIT_TERM,
|
|
9
7
|
MIN_CREDIT_AMOUNT,
|
|
10
8
|
MIN_CREDIT_TERM,
|
|
11
|
-
} from './
|
|
9
|
+
} from './CreditParameters';
|
|
12
10
|
import type { HandleFormStateChange } from './models';
|
|
11
|
+
import { renderInputRange } from './renderInputRange';
|
|
13
12
|
|
|
14
13
|
interface RenderCreditParametersProps {
|
|
15
14
|
amount: number;
|
|
@@ -41,21 +40,3 @@ export const renderCreditParameters = ({
|
|
|
41
40
|
})}
|
|
42
41
|
</div>
|
|
43
42
|
);
|
|
44
|
-
|
|
45
|
-
interface RenderInputRangeProps {
|
|
46
|
-
label: string;
|
|
47
|
-
value: number;
|
|
48
|
-
onChange: (value: number) => void;
|
|
49
|
-
min: number;
|
|
50
|
-
max: number;
|
|
51
|
-
items: string[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const renderInputRange = (props: RenderInputRangeProps) => (
|
|
55
|
-
<div className="w-1/2">
|
|
56
|
-
<label>
|
|
57
|
-
<Text size="text-m-light">{props.label}</Text>
|
|
58
|
-
</label>
|
|
59
|
-
<InputRange {...props} />
|
|
60
|
-
</div>
|
|
61
|
-
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InputRange } from '../../ui-kit/InputRange/InputRange';
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
3
|
+
|
|
4
|
+
interface RenderInputRangeProps {
|
|
5
|
+
label: string;
|
|
6
|
+
value: number;
|
|
7
|
+
onChange: (value: number) => void;
|
|
8
|
+
min: number;
|
|
9
|
+
max: number;
|
|
10
|
+
items: string[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const renderInputRange = (props: RenderInputRangeProps) => (
|
|
14
|
+
<div className="w-1/2">
|
|
15
|
+
<label>
|
|
16
|
+
<Text size="text-m-light">{props.label}</Text>
|
|
17
|
+
</label>
|
|
18
|
+
<InputRange {...props} />
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
|
|
2
|
-
import { WedFormState } from './ApplicationFormWed';
|
|
3
|
-
import { HandleFormStateChange } from './models';
|
|
2
|
+
import type { WedFormState } from './ApplicationFormWed';
|
|
3
|
+
import type { HandleFormStateChange } from './models';
|
|
4
4
|
|
|
5
5
|
interface RenderQuestionsInterestedProps {
|
|
6
6
|
currencyControl: boolean;
|
|
@@ -37,7 +37,7 @@ export const renderQuestionsInterested = ({
|
|
|
37
37
|
</div>
|
|
38
38
|
<textarea
|
|
39
39
|
placeholder="Укажите интересующий Вас вопрос, место ведения бизнеса и удобное время для телефонного звонка"
|
|
40
|
-
className="block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:
|
|
40
|
+
className="block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text"
|
|
41
41
|
value={text}
|
|
42
42
|
onChange={(e) => handleChange({ text: e.target.value })}
|
|
43
43
|
/>
|
|
@@ -15,7 +15,7 @@ export const renderSelects = ({ acquiringType, regions, region, handleChange }:
|
|
|
15
15
|
<div className="w-1/2">
|
|
16
16
|
<WrapperSelect
|
|
17
17
|
data={ACQUIRING_TYPES}
|
|
18
|
-
fieldValue="
|
|
18
|
+
fieldValue="name"
|
|
19
19
|
fieldLabel="name"
|
|
20
20
|
selected={acquiringType}
|
|
21
21
|
setSelected={(value) => handleChange({ acquiringType: value })}
|
|
@@ -26,7 +26,7 @@ export const renderSelects = ({ acquiringType, regions, region, handleChange }:
|
|
|
26
26
|
<div className="w-1/2">
|
|
27
27
|
<WrapperSelect
|
|
28
28
|
data={regions}
|
|
29
|
-
fieldValue="
|
|
29
|
+
fieldValue="name"
|
|
30
30
|
fieldLabel="name"
|
|
31
31
|
selected={region}
|
|
32
32
|
setSelected={(value) => handleChange({ region: value })}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
2
1
|
import { getRegularButtonClasses } from '../../ui-kit/Button/getRegularButtonClasses';
|
|
2
|
+
import type { ButtonProps } from './ApplicationFormContent';
|
|
3
3
|
|
|
4
4
|
export const renderSubmitButton = (button?: ButtonProps, className?: string) => {
|
|
5
5
|
const buttonStyle = getRegularButtonClasses({
|
|
@@ -3,30 +3,16 @@ import { Dispatch, SetStateAction } from 'react';
|
|
|
3
3
|
import type { HandleFormStateChange } from './models';
|
|
4
4
|
|
|
5
5
|
interface UseFormHandlersProps<T> {
|
|
6
|
-
formState: Partial<T>;
|
|
7
|
-
handleSubmit: (data: Partial<T>) => void;
|
|
8
6
|
setFormState: Dispatch<SetStateAction<T>>;
|
|
9
|
-
typeForm: string;
|
|
10
7
|
}
|
|
11
8
|
|
|
12
|
-
export const useFormHandlers = <T>({
|
|
13
|
-
formState,
|
|
14
|
-
handleSubmit,
|
|
15
|
-
setFormState,
|
|
16
|
-
typeForm,
|
|
17
|
-
}: UseFormHandlersProps<T>) => {
|
|
9
|
+
export const useFormHandlers = <T>({ setFormState }: UseFormHandlersProps<T>) => {
|
|
18
10
|
const handleChange: HandleFormStateChange<T> = useCallback(
|
|
19
11
|
(state) => setFormState((oldState) => ({ ...oldState, ...state })),
|
|
20
12
|
[],
|
|
21
13
|
);
|
|
22
14
|
|
|
23
|
-
const onSubmit = useCallback(async (e: React.FormEvent<HTMLFormElement>) => {
|
|
24
|
-
e.preventDefault();
|
|
25
|
-
handleSubmit && (await handleSubmit({ ...formState, typeForm }));
|
|
26
|
-
}, []);
|
|
27
|
-
|
|
28
15
|
return {
|
|
29
16
|
handleChange,
|
|
30
|
-
onSubmit,
|
|
31
17
|
};
|
|
32
18
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { CarouselCardVersion } from '../../model/CarouselCardVersion';
|
|
3
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
2
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
5
3
|
import { Headline } from '../Headline/Headline';
|
|
4
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
6
5
|
import type { CarouselCardContent } from './CarouselCardContent';
|
|
6
|
+
import type { SizeVersion } from '../../model/SizeVersion';
|
|
7
7
|
|
|
8
8
|
export interface CarouselCardProps extends CarouselCardContent, UniBlockProps {}
|
|
9
9
|
|
|
10
10
|
const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full';
|
|
11
11
|
|
|
12
|
-
const CARD_WIDTH_MAP: Record<
|
|
12
|
+
const CARD_WIDTH_MAP: Record<SizeVersion, string> = {
|
|
13
13
|
normal: 'min-w-[970px]',
|
|
14
|
-
|
|
14
|
+
small: 'min-w-[355px]',
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const CarouselCard = JSX<CarouselCardProps>(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SizeVersion } from '../../model/SizeVersion';
|
|
2
2
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
3
|
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
4
|
|
|
@@ -14,5 +14,5 @@ export interface CarouselCardContent extends HeadlineCommonProps {
|
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
16
|
button?: ButtonWithIconProps;
|
|
17
|
-
carouselVersion?:
|
|
17
|
+
carouselVersion?: SizeVersion;
|
|
18
18
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SizeVersion } from '../../model/SizeVersion';
|
|
2
2
|
|
|
3
|
-
export const cardStyleMap: Record<
|
|
3
|
+
export const cardStyleMap: Record<SizeVersion, string> = {
|
|
4
4
|
normal: 'min-w-[100%] justify-center items-center m-7 col-span-12',
|
|
5
|
-
|
|
5
|
+
small: 'min-w-auto justify-center items-center m-9 col-span-4',
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
export const cardWidthMap: Record<
|
|
8
|
+
export const cardWidthMap: Record<SizeVersion, string> = {
|
|
9
9
|
normal: 'w-[1007px]',
|
|
10
|
-
|
|
10
|
+
small: 'w-[350px]',
|
|
11
11
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
3
|
+
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
4
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
6
|
+
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
7
|
+
import { style } from '../../utils/style';
|
|
8
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
9
|
+
import type { CarouselEventCardContent } from './CarouselEventCardContent';
|
|
10
|
+
|
|
11
|
+
export interface CarouselEventCardProps extends CarouselEventCardContent, UniBlockProps {}
|
|
12
|
+
|
|
13
|
+
export const CarouselEventCard = JSX<CarouselEventCardProps>(
|
|
14
|
+
({ className = '', icon, title, description, href, target, ...rest }) => (
|
|
15
|
+
<BlockWrapper className={style('flex flex-col w-[365px]', className)} {...rest}>
|
|
16
|
+
<a href={href} target={target} role="link">
|
|
17
|
+
{icon?.icon ? <Img image={getIconWithVersion(icon)} asSVG /> : null}
|
|
18
|
+
{icon?.src ? <Img image={icon} /> : null}
|
|
19
|
+
{title ? (
|
|
20
|
+
<Heading headingType="h6" as="h4" className="text-left mb-2" title={title} />
|
|
21
|
+
) : null}
|
|
22
|
+
{description ? (
|
|
23
|
+
<div className="mb-4">
|
|
24
|
+
<Text font="font-light" size="text-s" color="text-secondary-text">
|
|
25
|
+
{description}
|
|
26
|
+
</Text>
|
|
27
|
+
</div>
|
|
28
|
+
) : null}
|
|
29
|
+
</a>
|
|
30
|
+
</BlockWrapper>
|
|
31
|
+
),
|
|
32
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DescriptionProps, TitleProps } from '../../model/HeadlineType';
|
|
2
|
+
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title Карточка мероприятия в карусели
|
|
7
|
+
*/
|
|
8
|
+
export type CarouselEventCardContent = TitleProps &
|
|
9
|
+
DescriptionProps &
|
|
10
|
+
LinkCommonProps & {
|
|
11
|
+
icon?: Picture;
|
|
12
|
+
};
|
package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"content": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
3
|
+
"image": {
|
|
4
|
+
"format": "webp",
|
|
5
|
+
"size": {
|
|
6
|
+
"width": 180,
|
|
7
|
+
"height": 180
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"title": "Заголовок 1",
|
|
11
|
+
"description": "Описание 1",
|
|
12
|
+
"socialMedia": [
|
|
13
|
+
{
|
|
14
|
+
"href": "https://t.me",
|
|
15
|
+
"target": "_blank",
|
|
16
|
+
"version": "gray",
|
|
17
|
+
"rounded": false
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"version": "primary"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
5
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
6
5
|
import { Img } from '../../ui-kit/Img/Img';
|
|
7
6
|
import { List } from '../../ui-kit/List/List';
|
|
7
|
+
import { style } from '../../utils/style';
|
|
8
8
|
import { BaseTile } from '../BaseTile/BaseTile';
|
|
9
9
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
10
10
|
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
11
|
-
import { style } from '../../utils/style';
|
|
12
11
|
|
|
13
12
|
export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
|
|
14
13
|
|
|
15
14
|
export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
16
15
|
({
|
|
17
|
-
button,
|
|
18
16
|
className = '',
|
|
19
17
|
description,
|
|
20
18
|
image,
|
|
@@ -57,7 +55,6 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
57
55
|
/>
|
|
58
56
|
) : null}
|
|
59
57
|
{socialMedia.length ? <SocialMedia className="pt-10 pb-0" media={socialMedia} /> : null}
|
|
60
|
-
{renderButtonsSection([button], { className: 'pt-2 mt-16' })}
|
|
61
58
|
</div>
|
|
62
59
|
</BaseTile>
|
|
63
60
|
</BlockWrapper>
|
package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
+
import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
2
3
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
4
|
+
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
3
5
|
import type { Picture } from '../../model/Picture';
|
|
4
|
-
import type { ButtonWithIconProps, ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
5
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
7
|
|
|
8
|
+
export type RecommendationSocialMedia = LinkCommonProps & {
|
|
9
|
+
version: ButtonVersion;
|
|
10
|
+
icon?: Picture;
|
|
11
|
+
rounded?: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
7
14
|
/**
|
|
8
15
|
* @title Карточка рекомендаций
|
|
9
16
|
*/
|
|
@@ -11,7 +18,7 @@ export interface CarouselRecommendationCardContent extends HeadlineCommonProps,
|
|
|
11
18
|
/**
|
|
12
19
|
* @title Соц сети
|
|
13
20
|
*/
|
|
14
|
-
socialMedia?:
|
|
21
|
+
socialMedia?: RecommendationSocialMedia[];
|
|
15
22
|
/**
|
|
16
23
|
* @default {
|
|
17
24
|
* "format": "webp",
|
|
@@ -27,12 +34,5 @@ export interface CarouselRecommendationCardContent extends HeadlineCommonProps,
|
|
|
27
34
|
* }
|
|
28
35
|
*/
|
|
29
36
|
image?: Picture;
|
|
30
|
-
/**
|
|
31
|
-
* @default {
|
|
32
|
-
* "text": "",
|
|
33
|
-
* "version": "secondary"
|
|
34
|
-
* }
|
|
35
|
-
*/
|
|
36
|
-
button?: ButtonProps;
|
|
37
37
|
version?: BlockVersion;
|
|
38
38
|
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { Img } from '../../ui-kit/Img/Img';
|
|
3
|
-
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
4
|
-
import { style } from '../../utils/style';
|
|
5
|
-
import type { Picture } from '../../model/Picture';
|
|
6
2
|
import type { IconVersion } from '../../model/IconVersion';
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
7
4
|
import { Button } from '../../ui-kit/Button/Button';
|
|
8
5
|
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
6
|
+
import { Img } from '../../ui-kit/Img/Img';
|
|
7
|
+
import { getIconWithVersion } from '../../utils/getIconWithVersion';
|
|
8
|
+
import { style } from '../../utils/style';
|
|
9
9
|
|
|
10
10
|
const ICONS_MAP: Array<{
|
|
11
11
|
origins: string[];
|
|
12
|
-
|
|
12
|
+
iconMapped: Picture;
|
|
13
13
|
label: string;
|
|
14
14
|
}> = [
|
|
15
15
|
{
|
|
16
16
|
origins: ['t.me', 'telegram.org'],
|
|
17
|
-
|
|
17
|
+
iconMapped: { icon: 'TelegramIcon' },
|
|
18
18
|
label: 'Телеграм',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
origins: ['vk.com'],
|
|
22
|
-
|
|
22
|
+
iconMapped: { icon: 'VKIcon' },
|
|
23
23
|
label: 'ВКонтакте',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
origins: ['ok.ru'],
|
|
27
|
-
|
|
27
|
+
iconMapped: { icon: 'OkIcon' },
|
|
28
28
|
label: 'Одноклассники',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
origins: ['apps.apple.com'],
|
|
32
|
-
|
|
32
|
+
iconMapped: { icon: 'AppleIcon' },
|
|
33
33
|
label: 'App Store',
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
origins: ['play.google.com'],
|
|
37
|
-
|
|
37
|
+
iconMapped: { icon: 'PlayMarketIcon' },
|
|
38
38
|
label: 'Google Play',
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
origins: ['youtube.com'],
|
|
42
|
-
|
|
42
|
+
iconMapped: { icon: 'YoutubeIcon' },
|
|
43
43
|
label: 'Youtube',
|
|
44
44
|
},
|
|
45
45
|
];
|
|
@@ -57,12 +57,17 @@ const buttonSizeStyles = {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
export const MediaButton = JSX<MediaButtonProps>(
|
|
60
|
-
({ iconVersion = 'color', buttonSize = 'default', rounded = false, ...rest }) => {
|
|
60
|
+
({ iconVersion = 'color', buttonSize = 'default', rounded = false, icon, ...rest }) => {
|
|
61
61
|
const { href, version } = rest;
|
|
62
62
|
|
|
63
|
-
const {
|
|
63
|
+
const { iconMapped, label } =
|
|
64
64
|
ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
65
|
-
|
|
65
|
+
|
|
66
|
+
const iconCustom = icon ?? iconMapped;
|
|
67
|
+
|
|
68
|
+
const iconWithVersion = iconCustom
|
|
69
|
+
? { ...getIconWithVersion(iconCustom), iconVersion }
|
|
70
|
+
: undefined;
|
|
66
71
|
|
|
67
72
|
return (
|
|
68
73
|
<Button
|
|
@@ -2,16 +2,13 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useBool } from '../../hooks/useBool';
|
|
3
3
|
import type { IconVersion } from '../../model/IconVersion';
|
|
4
4
|
import { style } from '../../utils/style';
|
|
5
|
-
import type { ChatBot as ChatBotWithEmptyOption } from './HeaderContent';
|
|
6
5
|
import { HeaderSecondaryMenuButton } from './HeaderSecondaryMenuButton';
|
|
7
6
|
import { useChatBot } from './useChatBot';
|
|
8
7
|
|
|
9
|
-
export type ChatBot = Exclude<ChatBotWithEmptyOption, ''>;
|
|
10
|
-
|
|
11
8
|
interface HeaderChatBotButtonProps {
|
|
12
9
|
className?: string;
|
|
13
10
|
iconVersion?: IconVersion;
|
|
14
|
-
chat?:
|
|
11
|
+
chat?: string;
|
|
15
12
|
onClick?: () => void;
|
|
16
13
|
}
|
|
17
14
|
|
|
@@ -7,12 +7,6 @@ import type { IconProps, Picture } from '../../model/Picture';
|
|
|
7
7
|
*/
|
|
8
8
|
export type SubMenuItem = LinkProps & IconProps;
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* @title Чат-бот
|
|
12
|
-
* @enumNames ["", "Для физических лиц", "Для юридических лиц"]
|
|
13
|
-
*/
|
|
14
|
-
export type ChatBot = '' | 'personal' | 'business';
|
|
15
|
-
|
|
16
10
|
/**
|
|
17
11
|
* @title Ссылка дополнительного меню
|
|
18
12
|
* @required ["text", "href"]
|
|
@@ -40,5 +34,4 @@ export interface HeaderContent {
|
|
|
40
34
|
showSubMenu?: boolean;
|
|
41
35
|
/** @hidden */
|
|
42
36
|
bgColor?: BgColorVersion;
|
|
43
|
-
chat?: ChatBot;
|
|
44
37
|
}
|
|
@@ -8,14 +8,13 @@ import { Location } from '../../ui-kit/Location/Location';
|
|
|
8
8
|
import { TopItem } from '../../ui-kit/TopItem/TopItem';
|
|
9
9
|
import { style } from '../../utils/style';
|
|
10
10
|
import { HeaderChatBotButton } from './HeaderChatBotButton';
|
|
11
|
-
import
|
|
11
|
+
import { projectSettings } from '../../ProjectSettings';
|
|
12
12
|
|
|
13
13
|
interface HeaderSecondaryMenuContent {
|
|
14
14
|
version?: BlockVersion;
|
|
15
15
|
defaultLocation?: string;
|
|
16
16
|
officesLink?: string;
|
|
17
17
|
foreignOffices?: ForeignOffice[];
|
|
18
|
-
chat?: ChatBot;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
export interface HeaderSecondaryMenuProps extends HeaderSecondaryMenuContent {
|
|
@@ -23,7 +22,7 @@ export interface HeaderSecondaryMenuProps extends HeaderSecondaryMenuContent {
|
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
export const HeaderSecondaryMenu = JSX<HeaderSecondaryMenuProps>(
|
|
26
|
-
({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices
|
|
25
|
+
({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices }) => {
|
|
27
26
|
const [isShowLocationModal, { setTrue: showLocationModal, setFalse: hideLocationModal }] =
|
|
28
27
|
useBool();
|
|
29
28
|
|
|
@@ -43,8 +42,12 @@ export const HeaderSecondaryMenu = JSX<HeaderSecondaryMenuProps>(
|
|
|
43
42
|
{officesLink ? (
|
|
44
43
|
<TopItem className="mr-7" flat={true} href={officesLink} text="Офисы и банкоматы" />
|
|
45
44
|
) : null}
|
|
46
|
-
{
|
|
47
|
-
<HeaderChatBotButton
|
|
45
|
+
{projectSettings.CHAT_BOT ? (
|
|
46
|
+
<HeaderChatBotButton
|
|
47
|
+
className="mr-5"
|
|
48
|
+
iconVersion={iconVersion}
|
|
49
|
+
chat={projectSettings.CHAT_BOT}
|
|
50
|
+
/>
|
|
48
51
|
) : null}
|
|
49
52
|
{isShowLocationModal ? (
|
|
50
53
|
<Location
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
2
|
import { useExternalNS } from '../../hooks/useExternalNS';
|
|
3
|
-
import { ChatBot } from './HeaderChatBotButton';
|
|
4
3
|
|
|
5
4
|
const CHATBOT_NAMESPACE = 'chatbot';
|
|
6
5
|
|
|
7
|
-
const CHATBOT_URL: Record<
|
|
6
|
+
const CHATBOT_URL: Record<string, string> = {
|
|
8
7
|
personal: '//chat.mes.rshb.ru/assets/js/webchat_rshb',
|
|
9
8
|
business: '', //TODO: add url business chat
|
|
10
9
|
};
|
|
11
10
|
|
|
12
|
-
export const useChatBot = (chat:
|
|
11
|
+
export const useChatBot = (chat: string) => {
|
|
13
12
|
useEffect(() => globalThis.localStorage?.setItem('webchat-keep-open', String(Date.now())), []);
|
|
14
13
|
|
|
15
14
|
return useExternalNS(CHATBOT_NAMESPACE, CHATBOT_URL[chat]);
|
|
@@ -2,19 +2,19 @@ import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
|
2
2
|
import { Button } from '../../ui-kit/Button/Button';
|
|
3
3
|
import type { BackwardButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img';
|
|
5
|
+
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
7
|
export function renderBackwardButton(
|
|
7
8
|
button: BackwardButtonProps,
|
|
8
9
|
version: ButtonVersion,
|
|
9
10
|
className: string,
|
|
10
11
|
) {
|
|
11
|
-
const { text, href, target
|
|
12
|
+
const { text, href, target } = button;
|
|
12
13
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
13
14
|
const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
|
|
14
15
|
|
|
15
|
-
// TODO Move click handler to Button
|
|
16
16
|
return (
|
|
17
|
-
<div className={
|
|
17
|
+
<div className={style('flex items-center', className)}>
|
|
18
18
|
<Button
|
|
19
19
|
version={version}
|
|
20
20
|
rounded
|
|
@@ -29,7 +29,9 @@ export function renderBackwardButton(
|
|
|
29
29
|
asSVG
|
|
30
30
|
/>
|
|
31
31
|
</Button>
|
|
32
|
-
{text ?
|
|
32
|
+
{text ? (
|
|
33
|
+
<Button version="link" text={text} href={href} target={target} ariaLabel={text} />
|
|
34
|
+
) : null}
|
|
33
35
|
</div>
|
|
34
36
|
);
|
|
35
37
|
}
|