@redneckz/wildless-cms-uni-blocks 0.7.8 → 0.8.0
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/bundle/ProjectSettings.d.ts +4 -4
- package/bundle/api/CorporateLeadAPI.d.ts +15 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +565 -324
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
- package/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/bundle/components/ApplicationForm/models.d.ts +6 -0
- package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/bundle/icons/IconName.d.ts +10 -2
- package/bundle/services/sitemap/isHrefActive.d.ts +1 -2
- package/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/bundle/utils/adjustHref.d.ts +1 -4
- package/bundle/utils/url.d.ts +4 -2
- package/cosmos-static/icons/MailIcon.svg +1 -0
- package/cosmos-static/icons/PhoneIcon.svg +1 -0
- package/cosmos-static/icons/ResponceFailIcon.svg +1 -0
- package/cosmos-static/icons/ResponceOKIcon.svg +1 -0
- package/dist/ProjectSettings.d.ts +4 -4
- package/dist/ProjectSettings.js +3 -5
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/api/CorporateLeadAPI.d.ts +15 -0
- package/dist/api/CorporateLeadAPI.js +24 -0
- package/dist/api/CorporateLeadAPI.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +30 -0
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/dist/components/ApplicationForm/Footnote.d.ts +6 -0
- package/dist/components/ApplicationForm/Footnote.js +9 -0
- package/dist/components/ApplicationForm/Footnote.js.map +1 -0
- package/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/dist/components/ApplicationForm/ResponseNotification.js +13 -0
- package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/dist/components/ApplicationForm/WrapperSelect.js +13 -0
- package/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/dist/components/ApplicationForm/acquiringTypes.js +25 -0
- package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/dist/components/ApplicationForm/models.d.ts +6 -0
- package/dist/components/ApplicationForm/models.js +2 -0
- package/dist/components/ApplicationForm/models.js.map +1 -0
- package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/dist/components/ApplicationForm/renderBankOffices.js +7 -0
- package/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/dist/components/ApplicationForm/renderContacts.js +7 -0
- package/dist/components/ApplicationForm/renderContacts.js.map +1 -0
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
- package/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/dist/components/ApplicationForm/renderSelects.js +8 -0
- package/dist/components/ApplicationForm/renderSelects.js.map +1 -0
- package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/dist/components/ApplicationForm/useFormHandlers.js +16 -0
- package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +3 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +4 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.js +1 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.js +2 -1
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/dist/hooks/useLink.js +16 -12
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/icons/IconName.d.ts +10 -2
- package/dist/icons/IconName.js +9 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/services/sitemap/isHrefActive.d.ts +1 -2
- package/dist/services/sitemap/isHrefActive.js +2 -2
- package/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/dist/services/sitemap/isSubItemActive.d.ts +3 -2
- package/dist/services/sitemap/isSubItemActive.js.map +1 -1
- package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/services/sitemap/isTopItemActive.js +1 -6
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/setup-fixture.js +13 -6
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/adjustHref.d.ts +1 -4
- package/dist/utils/adjustHref.js +4 -8
- package/dist/utils/adjustHref.js.map +1 -1
- package/dist/utils/url.d.ts +4 -2
- package/dist/utils/url.js +15 -28
- package/dist/utils/url.js.map +1 -1
- package/lib/ProjectSettings.d.ts +4 -4
- package/lib/ProjectSettings.js +3 -5
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/api/CorporateLeadAPI.d.ts +15 -0
- package/lib/api/CorporateLeadAPI.js +21 -0
- package/lib/api/CorporateLeadAPI.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +12 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +28 -0
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/lib/components/ApplicationForm/Footnote.d.ts +6 -0
- package/lib/components/ApplicationForm/Footnote.js +7 -0
- package/lib/components/ApplicationForm/Footnote.js.map +1 -0
- package/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/lib/components/ApplicationForm/ResponseNotification.js +11 -0
- package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/lib/components/ApplicationForm/WrapperSelect.js +11 -0
- package/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/lib/components/ApplicationForm/acquiringTypes.js +23 -0
- package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/lib/components/ApplicationForm/models.d.ts +6 -0
- package/lib/components/ApplicationForm/models.js +2 -0
- package/lib/components/ApplicationForm/models.js.map +1 -0
- package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/lib/components/ApplicationForm/renderBankOffices.js +4 -0
- package/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/lib/components/ApplicationForm/renderContacts.js +4 -0
- package/lib/components/ApplicationForm/renderContacts.js.map +1 -0
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
- package/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/lib/components/ApplicationForm/renderSelects.js +5 -0
- package/lib/components/ApplicationForm/renderSelects.js.map +1 -0
- package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/lib/components/ApplicationForm/useFormHandlers.js +13 -0
- package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +3 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +4 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.js +1 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.js +2 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
- package/lib/hooks/useLink.js +17 -13
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/icons/IconName.d.ts +10 -2
- package/lib/icons/IconName.js +9 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/services/sitemap/isHrefActive.d.ts +1 -2
- package/lib/services/sitemap/isHrefActive.js +2 -2
- package/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/lib/services/sitemap/isSubItemActive.d.ts +3 -2
- package/lib/services/sitemap/isSubItemActive.js.map +1 -1
- package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/lib/services/sitemap/isTopItemActive.js +1 -6
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/setup-fixture.js +14 -7
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.fixture.d.ts +5 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/adjustHref.d.ts +1 -4
- package/lib/utils/adjustHref.js +5 -9
- package/lib/utils/adjustHref.js.map +1 -1
- package/lib/utils/url.d.ts +4 -2
- package/lib/utils/url.js +12 -26
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/ProjectSettings.d.ts +4 -4
- package/mobile/bundle/api/CorporateLeadAPI.d.ts +15 -0
- package/mobile/bundle/bundle.umd.js +41 -71
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/models.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/mobile/bundle/icons/IconName.d.ts +10 -2
- package/mobile/bundle/services/sitemap/isHrefActive.d.ts +1 -2
- package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/mobile/bundle/utils/adjustHref.d.ts +1 -4
- package/mobile/bundle/utils/url.d.ts +4 -2
- package/mobile/dist/ProjectSettings.d.ts +4 -4
- package/mobile/dist/ProjectSettings.js +3 -5
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/api/CorporateLeadAPI.d.ts +15 -0
- package/mobile/dist/api/CorporateLeadAPI.js +24 -0
- package/mobile/dist/api/CorporateLeadAPI.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +30 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/Footnote.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js +9 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +13 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js +13 -0
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js +25 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/models.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/models.js +2 -0
- package/mobile/dist/components/ApplicationForm/models.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/renderContacts.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderContacts.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderSelects.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderSelects.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +16 -0
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +4 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/mobile/dist/hooks/useLink.js +16 -12
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +10 -2
- package/mobile/dist/icons/IconName.js +9 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -2
- package/mobile/dist/services/sitemap/isHrefActive.js +2 -2
- package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/dist/services/sitemap/isSubItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isSubItemActive.js.map +1 -1
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isTopItemActive.js +1 -6
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/dist/setup-fixture.js +13 -6
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/adjustHref.d.ts +1 -4
- package/mobile/dist/utils/adjustHref.js +4 -8
- package/mobile/dist/utils/adjustHref.js.map +1 -1
- package/mobile/dist/utils/url.d.ts +4 -2
- package/mobile/dist/utils/url.js +15 -28
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/lib/ProjectSettings.d.ts +4 -4
- package/mobile/lib/ProjectSettings.js +3 -5
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/api/CorporateLeadAPI.d.ts +15 -0
- package/mobile/lib/api/CorporateLeadAPI.js +21 -0
- package/mobile/lib/api/CorporateLeadAPI.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +28 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/Footnote.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js +7 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +11 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js +11 -0
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js +23 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/models.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/models.js +2 -0
- package/mobile/lib/components/ApplicationForm/models.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/renderContacts.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderContacts.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderSelects.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderSelects.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +13 -0
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +4 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/mobile/lib/hooks/useLink.js +17 -13
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +10 -2
- package/mobile/lib/icons/IconName.js +9 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -2
- package/mobile/lib/services/sitemap/isHrefActive.js +2 -2
- package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/lib/services/sitemap/isSubItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isSubItemActive.js.map +1 -1
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isTopItemActive.js +1 -6
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/lib/setup-fixture.js +14 -7
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/adjustHref.d.ts +1 -4
- package/mobile/lib/utils/adjustHref.js +5 -9
- package/mobile/lib/utils/adjustHref.js.map +1 -1
- package/mobile/lib/utils/url.d.ts +4 -2
- package/mobile/lib/utils/url.js +12 -26
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/ProjectSettings.ts +6 -7
- package/mobile/src/api/CorporateLeadAPI.ts +36 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
- package/mobile/src/components/ApplicationForm/Footnote.tsx +25 -0
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
- package/mobile/src/components/ApplicationForm/acquiringTypes.ts +24 -0
- package/mobile/src/components/ApplicationForm/models.ts +7 -0
- package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
- package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
- package/mobile/src/components/ApplicationForm/renderContacts.tsx +22 -0
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
- package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
- package/mobile/src/components/ApplicationForm/renderSelects.tsx +38 -0
- package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +32 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +16 -12
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
- package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -4
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
- package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
- package/mobile/src/hooks/useLink.ts +19 -15
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/MailIcon.svg +1 -0
- package/mobile/src/icons/PhoneIcon.svg +1 -0
- package/mobile/src/icons/ResponceFailIcon.svg +1 -0
- package/mobile/src/icons/ResponceOKIcon.svg +1 -0
- package/mobile/src/services/sitemap/isHrefActive.ts +4 -10
- package/mobile/src/services/sitemap/isSubItemActive.ts +1 -2
- package/mobile/src/services/sitemap/isTopItemActive.ts +2 -8
- package/mobile/src/setup-fixture.ts +19 -7
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
- package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +16 -19
- package/mobile/src/utils/adjustHref.ts +6 -14
- package/mobile/src/utils/url.ts +18 -33
- package/package.json +2 -2
- package/src/ProjectSettings.ts +6 -7
- package/src/api/CorporateLeadAPI.ts +36 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +43 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
- package/src/components/ApplicationForm/Footnote.tsx +25 -0
- package/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
- package/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
- package/src/components/ApplicationForm/acquiringTypes.ts +24 -0
- package/src/components/ApplicationForm/models.ts +7 -0
- package/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
- package/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
- package/src/components/ApplicationForm/renderContacts.tsx +22 -0
- package/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
- package/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
- package/src/components/ApplicationForm/renderSelects.tsx +38 -0
- package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
- package/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
- package/src/components/ApplicationForm/useFormHandlers.ts +32 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +1 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
- package/src/components/Header/DropdownMenu.tsx +16 -12
- package/src/components/Header/Header.tsx +3 -5
- package/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
- package/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/src/components/Header/HeaderSubMenuItem.tsx +2 -4
- package/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
- package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +17 -0
- package/src/hooks/useLink.ts +19 -15
- package/src/icons/IconName.ts +5 -5
- package/src/icons/MailIcon.svg +1 -0
- package/src/icons/PhoneIcon.svg +1 -0
- package/src/icons/ResponceFailIcon.svg +1 -0
- package/src/icons/ResponceOKIcon.svg +1 -0
- package/src/services/sitemap/isHrefActive.ts +4 -10
- package/src/services/sitemap/isSubItemActive.ts +1 -2
- package/src/services/sitemap/isTopItemActive.ts +2 -8
- package/src/setup-fixture.ts +19 -7
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +7 -8
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.fixture.tsx +9 -0
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/TopItem/TopItem.tsx +16 -19
- package/src/utils/adjustHref.ts +6 -14
- package/src/utils/url.ts +18 -33
- package/tailwind.config.cjs +5 -0
- package/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/bundle/utils/normalizeURLPath.d.ts +0 -1
- package/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
- package/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/dist/utils/normalizeURLPath.d.ts +0 -1
- package/dist/utils/normalizeURLPath.js +0 -12
- package/dist/utils/normalizeURLPath.js.map +0 -1
- package/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
- package/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/lib/utils/normalizeURLPath.d.ts +0 -1
- package/lib/utils/normalizeURLPath.js +0 -9
- package/lib/utils/normalizeURLPath.js.map +0 -1
- package/mobile/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/mobile/bundle/utils/normalizeURLPath.d.ts +0 -1
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/mobile/dist/utils/normalizeURLPath.d.ts +0 -1
- package/mobile/dist/utils/normalizeURLPath.js +0 -12
- package/mobile/dist/utils/normalizeURLPath.js.map +0 -1
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/mobile/lib/utils/normalizeURLPath.d.ts +0 -1
- package/mobile/lib/utils/normalizeURLPath.js +0 -9
- package/mobile/lib/utils/normalizeURLPath.js.map +0 -1
- package/mobile/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
- package/mobile/src/utils/normalizeURLPath.ts +0 -10
- package/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
- package/src/utils/normalizeURLPath.ts +0 -10
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
4
|
+
export const SlideCheckbox = JSX(({ checked, text, onClick }) => (_jsxs("div", { role: "checkbox", "aria-checked": checked, className: "flex justify-start items-center w-full cursor-pointer mb-4", onClick: () => onClick && onClick(), children: [_jsx("div", { className: `relative duration-300 w-9 h-5 mr-3 rounded rounded-2xl ${checked ? 'bg-primary-main' : 'bg-main-divider'}`, children: _jsx("div", { className: `absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded rounded-full ${checked ? 'left-[50%]' : 'left-[5%]'}` }) }), _jsx("div", { children: _jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: text }) })] })));
|
|
5
|
+
//# sourceMappingURL=SlideCheckbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlideCheckbox.js","sourceRoot":"","sources":["../../../src/ui-kit/SlideCheckbox/SlideCheckbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAO9C,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAqB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACnF,eACE,IAAI,EAAC,UAAU,kBACD,OAAO,EACrB,SAAS,EAAC,4DAA4D,EACtE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,IAAI,OAAO,EAAE,aAEnC,cACE,SAAS,EAAE,0DACT,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAChC,EAAE,YAEF,cACE,SAAS,EAAE,kFACT,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAC3B,EAAE,GACF,GACE,EACN,wBACE,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,mBAAmB,YAC5D,IAAI,GACA,GACH,IACF,CACP,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ const activeDotStyles = {
|
|
|
8
8
|
'horizontal-list': 'w-6',
|
|
9
9
|
'vertical-list': 'h-6',
|
|
10
10
|
};
|
|
11
|
-
const dotStyle = 'cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white';
|
|
11
|
+
const dotStyle = 'cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
12
12
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
13
13
|
export const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list' }) => {
|
|
14
14
|
const handleClick = (idx) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,oBAAoB;IACvC,eAAe,EAAE,sDAAsD;CACxE,CAAC;AAEF,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,QAAQ,GACZ,
|
|
1
|
+
{"version":3,"file":"SwipeListControlDots.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListControlDots.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,oBAAoB;IACvC,eAAe,EAAE,sDAAsD;CACxE,CAAC;AAEF,MAAM,eAAe,GAAyC;IAC5D,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;CACvB,CAAC;AAEF,MAAM,QAAQ,GACZ,yIAAyI,CAAC;AAE5I,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAS9C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,iBAAiB,EAAE,EAAE,EAAE;IAC5E,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE;QAClC,IAAI,GAAG,KAAK,WAAW,IAAI,YAAY,EAAE,OAAO,EAAE;YAChD,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC;gBACjD,QAAQ,EAAE,QAAQ;gBAClB,KAAK,EAAE,SAAS;aACjB,CAAC,CAAC;SACJ;IACH,CAAC,CAAC;IAEF,OAAO,QAAQ,CAAC,CAAC,CAAC,CAChB,cAAK,SAAS,EAAE,cAAc,eAAe,CAAC,QAAQ,CAAC,EAAE,YACtD,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAW,EAAE,EAAE,CAAC,CACtD,cAEE,SAAS,EAAE,GAAG,QAAQ,IACpB,GAAG,KAAK,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,gBACpD,EAAE,EACF,IAAI,EAAC,QAAQ,uBAEb,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,IAN1B,MAAM,CAAC,GAAG,CAAC,CAOhB,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
|
|
@@ -2,10 +2,10 @@ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useLink } from '../../hooks/useLink.js';
|
|
4
4
|
import { style } from '../../utils/style.js';
|
|
5
|
-
export const TopItem = JSX(({ className = '', active, flat,
|
|
5
|
+
export const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
|
|
6
6
|
const link = useLink();
|
|
7
7
|
const { href, target, text, onClick } = link(rest);
|
|
8
|
-
return (_jsx("a", { className:
|
|
8
|
+
return (_jsx("a", { className: style(getLinkStyle(active, flat), className), href: href, target: target, onClick: onClick, rel: "noopener noreferrer", "aria-label": text, children: _jsx("span", { className: getTextStyle(active, flat), children: text || children }) }));
|
|
9
9
|
});
|
|
10
10
|
const getLinkStyle = (active = false, flat = false) => style('inline-block border border-solid bg-transparent text-center no-underline', active
|
|
11
11
|
? 'rounded-md border-primary-main group-data-transparent:border-white'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopItem.js","sourceRoot":"","sources":["../../../src/ui-kit/TopItem/TopItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"TopItem.js","sourceRoot":"","sources":["../../../src/ui-kit/TopItem/TopItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAa1C,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAe,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC/F,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAEnD,OAAO,CACL,YACE,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,EACvD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,GAAG,EAAC,qBAAqB,gBACb,IAAI,YAEhB,eAAM,SAAS,EAAE,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,GACpE,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,MAAM,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,CACpD,KAAK,CACH,0EAA0E,EAC1E,MAAM;IACJ,CAAC,CAAC,oEAAoE;IACtE,CAAC,CAAC,oBAAoB,EACxB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CACxB,CAAC;AAEJ,MAAM,YAAY,GAAG,CAAC,MAAM,GAAG,KAAK,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,CACpD,KAAK,CACH,wBAAwB,EACxB,MAAM;IACJ,CAAC,CAAC,mBAAmB;IACrB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,qBAAqB,EAAE,yBAAyB,CAAC,EACxF,mFAAmF,CACpF,CAAC"}
|
package/lib/utils/adjustHref.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const origin = getOrigin(router?.href);
|
|
7
|
-
// Relative URL
|
|
8
|
-
return origin ? href.replace(origin, '') || '/' : href;
|
|
9
|
-
};
|
|
1
|
+
import { projectSettings } from '../ProjectSettings.js';
|
|
2
|
+
import { isURL } from './url.js';
|
|
3
|
+
export const adjustHref = (href) => href && projectSettings.BASE_PATH && !(isURL(href) || href.startsWith('/'))
|
|
4
|
+
? `${projectSettings.BASE_PATH}${href}`
|
|
5
|
+
: href;
|
|
10
6
|
//# sourceMappingURL=adjustHref.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adjustHref.js","sourceRoot":"","sources":["../../src/utils/adjustHref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"adjustHref.js","sourceRoot":"","sources":["../../src/utils/adjustHref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAwB,EAAE,EAAE,CACrD,IAAI,IAAI,eAAe,CAAC,SAAS,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACzE,CAAC,CAAC,GAAG,eAAe,CAAC,SAAS,GAAG,IAAI,EAAE;IACvC,CAAC,CAAC,IAAI,CAAC"}
|
package/lib/utils/url.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Target } from '../model/LinkProps';
|
|
2
|
+
export declare const isURL: (href?: string) => href is `${string}//${string}`;
|
|
3
|
+
export declare const isLocalURL: (href: string | undefined, target?: Target) => boolean;
|
|
4
|
+
export declare const isHash: (href?: string) => href is `#${string}`;
|
|
2
5
|
export declare const withoutQuery: (href?: string) => string;
|
|
3
6
|
export declare const getOrigin: (href?: string) => string | undefined;
|
|
4
7
|
export declare const getPathname: (href?: string) => string | undefined;
|
|
5
8
|
export declare const getHash: (href?: string) => string | undefined;
|
|
6
|
-
export declare const isHash: (href?: string) => boolean | undefined;
|
package/lib/utils/url.js
CHANGED
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { projectSettings } from '../ProjectSettings.js';
|
|
2
|
+
export const isURL = (href) => Boolean(href?.includes('//'));
|
|
3
|
+
export const isLocalURL = (href, target) => Boolean(href &&
|
|
4
|
+
!isURL(href) &&
|
|
5
|
+
(projectSettings.BASE_PATH
|
|
6
|
+
? href.startsWith(projectSettings.BASE_PATH)
|
|
7
|
+
: !href.startsWith('/')) &&
|
|
8
|
+
(!target || target === '_self'));
|
|
9
|
+
export const isHash = (href) => Boolean(href?.startsWith('#'));
|
|
2
10
|
export const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
|
|
3
|
-
export const getOrigin = (href) =>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
const url = href;
|
|
8
|
-
const protoSeparator = '//';
|
|
9
|
-
const endOfProto = url.indexOf(protoSeparator);
|
|
10
|
-
const endOfOrigin = url.indexOf('/', endOfProto + protoSeparator.length);
|
|
11
|
-
return endOfOrigin !== -1 ? url.substring(0, endOfOrigin) : url;
|
|
12
|
-
};
|
|
13
|
-
export const getPathname = (href) => {
|
|
14
|
-
if (!href || !isURL(href)) {
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
const url = new URL(href);
|
|
18
|
-
return url.pathname;
|
|
19
|
-
};
|
|
20
|
-
export const getHash = (href) => {
|
|
21
|
-
if (!href || !isURL(href)) {
|
|
22
|
-
return undefined;
|
|
23
|
-
}
|
|
24
|
-
const hashIndex = href.indexOf('#');
|
|
25
|
-
return hashIndex !== -1 ? href.substring(hashIndex, href.length) : undefined;
|
|
26
|
-
};
|
|
27
|
-
export const isHash = (href) => href?.startsWith('#');
|
|
11
|
+
export const getOrigin = (href) => (isURL(href) ? new URL(href).origin : undefined);
|
|
12
|
+
export const getPathname = (href) => (isURL(href) ? new URL(href).pathname : undefined);
|
|
13
|
+
export const getHash = (href) => (isURL(href) ? new URL(href).hash : undefined);
|
|
28
14
|
//# sourceMappingURL=url.js.map
|
package/lib/utils/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../src/utils/url.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,IAAa,EAAkC,EAAE,CACrE,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAEhC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAwB,EAAE,MAAe,EAAE,EAAE,CACtE,OAAO,CACL,IAAI;IACF,CAAC,KAAK,CAAC,IAAI,CAAC;IACZ,CAAC,eAAe,CAAC,SAAS;QACxB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,SAAS,CAAC;QAC5C,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC,CAAC,MAAM,IAAI,MAAM,KAAK,OAAO,CAAC,CAClC,CAAC;AAEJ,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,IAAa,EAAwB,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAa,EAAU,EAAE,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface ProjectSettings {
|
|
2
2
|
TEST_BRANCH?: string;
|
|
3
3
|
RC_BRANCH?: string;
|
|
4
|
-
PROD_BRANCH
|
|
5
|
-
FORCED_DRAFT_FLOW
|
|
4
|
+
PROD_BRANCH?: string;
|
|
5
|
+
FORCED_DRAFT_FLOW?: boolean;
|
|
6
6
|
ASSIST_PROJECT_ID?: string;
|
|
7
7
|
SITEMAP?: string;
|
|
8
8
|
FOOTER?: string;
|
|
@@ -16,8 +16,8 @@ export declare const projectSettings: {
|
|
|
16
16
|
setup(_: ProjectSettings): void;
|
|
17
17
|
readonly TEST_BRANCH: string | undefined;
|
|
18
18
|
readonly RC_BRANCH: string | undefined;
|
|
19
|
-
readonly PROD_BRANCH: string;
|
|
20
|
-
readonly FORCED_DRAFT_FLOW: boolean;
|
|
19
|
+
readonly PROD_BRANCH: string | undefined;
|
|
20
|
+
readonly FORCED_DRAFT_FLOW: boolean | undefined;
|
|
21
21
|
readonly ASSIST_PROJECT_ID: string | undefined;
|
|
22
22
|
readonly SITEMAP: string | undefined;
|
|
23
23
|
readonly FOOTER: string | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface DaDataSuggestion<T> {
|
|
2
|
+
value?: string;
|
|
3
|
+
unrestricted_value?: string;
|
|
4
|
+
data?: T;
|
|
5
|
+
}
|
|
6
|
+
interface DaDataAddress {
|
|
7
|
+
city?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface DaDataResult {
|
|
10
|
+
suggestions?: DaDataSuggestion<DaDataAddress>[];
|
|
11
|
+
}
|
|
12
|
+
export declare function CorporateLeadAPI(): {
|
|
13
|
+
send: (body: any) => Promise<any>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -53,11 +53,9 @@
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
const DEFAULT_PROJECT_SETTINGS = { PROD_BRANCH: 'master' };
|
|
56
57
|
const projectSettings = new (class {
|
|
57
|
-
_ =
|
|
58
|
-
PROD_BRANCH: 'master',
|
|
59
|
-
FORCED_DRAFT_FLOW: false,
|
|
60
|
-
};
|
|
58
|
+
_ = DEFAULT_PROJECT_SETTINGS;
|
|
61
59
|
setup(_) {
|
|
62
60
|
this._ = _;
|
|
63
61
|
}
|
|
@@ -68,7 +66,7 @@
|
|
|
68
66
|
return this._.RC_BRANCH;
|
|
69
67
|
}
|
|
70
68
|
get PROD_BRANCH() {
|
|
71
|
-
return this._.PROD_BRANCH;
|
|
69
|
+
return this._.PROD_BRANCH || DEFAULT_PROJECT_SETTINGS.PROD_BRANCH;
|
|
72
70
|
}
|
|
73
71
|
get FORCED_DRAFT_FLOW() {
|
|
74
72
|
return this._.FORCED_DRAFT_FLOW;
|
|
@@ -605,7 +603,7 @@
|
|
|
605
603
|
'horizontal-list': 'w-6',
|
|
606
604
|
'vertical-list': 'h-6',
|
|
607
605
|
};
|
|
608
|
-
const dotStyle = 'cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white';
|
|
606
|
+
const dotStyle = 'cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
609
607
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
610
608
|
const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list' }) => {
|
|
611
609
|
const handleClick = (idx) => {
|
|
@@ -707,52 +705,33 @@
|
|
|
707
705
|
return BlockRouter.inst;
|
|
708
706
|
}
|
|
709
707
|
|
|
710
|
-
const isURL = (href) => href?.includes('//');
|
|
708
|
+
const isURL = (href) => Boolean(href?.includes('//'));
|
|
709
|
+
const isLocalURL = (href, target) => Boolean(href &&
|
|
710
|
+
!isURL(href) &&
|
|
711
|
+
(projectSettings.BASE_PATH
|
|
712
|
+
? href.startsWith(projectSettings.BASE_PATH)
|
|
713
|
+
: !href.startsWith('/')) &&
|
|
714
|
+
(!target || target === '_self'));
|
|
715
|
+
const isHash = (href) => Boolean(href?.startsWith('#'));
|
|
711
716
|
const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
|
|
712
|
-
const getOrigin = (href) =>
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
716
|
-
const url = href;
|
|
717
|
-
const protoSeparator = '//';
|
|
718
|
-
const endOfProto = url.indexOf(protoSeparator);
|
|
719
|
-
const endOfOrigin = url.indexOf('/', endOfProto + protoSeparator.length);
|
|
720
|
-
return endOfOrigin !== -1 ? url.substring(0, endOfOrigin) : url;
|
|
721
|
-
};
|
|
722
|
-
const getPathname = (href) => {
|
|
723
|
-
if (!href || !isURL(href)) {
|
|
724
|
-
return undefined;
|
|
725
|
-
}
|
|
726
|
-
const url = new URL(href);
|
|
727
|
-
return url.pathname;
|
|
728
|
-
};
|
|
729
|
-
const getHash = (href) => {
|
|
730
|
-
if (!href || !isURL(href)) {
|
|
731
|
-
return undefined;
|
|
732
|
-
}
|
|
733
|
-
const hashIndex = href.indexOf('#');
|
|
734
|
-
return hashIndex !== -1 ? href.substring(hashIndex, href.length) : undefined;
|
|
735
|
-
};
|
|
736
|
-
const isHash = (href) => href?.startsWith('#');
|
|
717
|
+
const getOrigin = (href) => (isURL(href) ? new URL(href).origin : undefined);
|
|
718
|
+
const getPathname = (href) => (isURL(href) ? new URL(href).pathname : undefined);
|
|
719
|
+
const getHash = (href) => (isURL(href) ? new URL(href).hash : undefined);
|
|
737
720
|
|
|
738
721
|
var url = /*#__PURE__*/Object.freeze({
|
|
739
722
|
__proto__: null,
|
|
740
723
|
isURL: isURL,
|
|
724
|
+
isLocalURL: isLocalURL,
|
|
725
|
+
isHash: isHash,
|
|
741
726
|
withoutQuery: withoutQuery,
|
|
742
727
|
getOrigin: getOrigin,
|
|
743
728
|
getPathname: getPathname,
|
|
744
|
-
getHash: getHash
|
|
745
|
-
isHash: isHash
|
|
729
|
+
getHash: getHash
|
|
746
730
|
});
|
|
747
731
|
|
|
748
|
-
const adjustHref = (href
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
}
|
|
752
|
-
const origin = getOrigin(router?.href);
|
|
753
|
-
// Relative URL
|
|
754
|
-
return origin ? href.replace(origin, '') || '/' : href;
|
|
755
|
-
};
|
|
732
|
+
const adjustHref = (href) => href && projectSettings.BASE_PATH && !(isURL(href) || href.startsWith('/'))
|
|
733
|
+
? `${projectSettings.BASE_PATH}${href}`
|
|
734
|
+
: href;
|
|
756
735
|
|
|
757
736
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
758
737
|
const handlerDecorator = (handler, targetContent) => {
|
|
@@ -784,29 +763,33 @@
|
|
|
784
763
|
function useLink() {
|
|
785
764
|
const router = useRouter();
|
|
786
765
|
const blockRouter = useBlockRouter();
|
|
766
|
+
const handleLocalURL = (href, target) => (ev) => {
|
|
767
|
+
if (!isLocalURL(href, target)) {
|
|
768
|
+
// Proceed with native handle
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
// Client routing
|
|
772
|
+
ev?.preventDefault();
|
|
773
|
+
if (isHash(href)) {
|
|
774
|
+
blockRouter.goto(href);
|
|
775
|
+
}
|
|
776
|
+
else if (href) {
|
|
777
|
+
router.push(href);
|
|
778
|
+
}
|
|
779
|
+
};
|
|
787
780
|
return (props) => {
|
|
788
|
-
const href = adjustHref(props.href
|
|
781
|
+
const href = adjustHref(props.href);
|
|
789
782
|
return {
|
|
790
783
|
...props,
|
|
791
784
|
href,
|
|
792
785
|
'aria-label': props.text,
|
|
793
786
|
onClick: handlerDecorator((ev) => {
|
|
794
787
|
props.onClick && props.onClick(ev);
|
|
795
|
-
|
|
796
|
-
return;
|
|
797
|
-
}
|
|
798
|
-
ev?.preventDefault();
|
|
799
|
-
if (isHash(href)) {
|
|
800
|
-
blockRouter.goto(href);
|
|
801
|
-
}
|
|
802
|
-
else {
|
|
803
|
-
href && router.push(href);
|
|
804
|
-
}
|
|
788
|
+
handleLocalURL(href, props.target)(ev);
|
|
805
789
|
}, props),
|
|
806
790
|
};
|
|
807
791
|
};
|
|
808
792
|
}
|
|
809
|
-
const isRemoteHref = (href, target) => isURL(href) || (target && target !== '_self') || href?.startsWith('/');
|
|
810
793
|
|
|
811
794
|
const buttonStyleMap = {
|
|
812
795
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
@@ -1181,14 +1164,7 @@
|
|
|
1181
1164
|
return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [isDotted ? (jsx("div", { className: `rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${LIST_DOT_STYLE_MAP[version]}` })) : null, jsx("span", { className: "text-m font-medium", children: item.title }), jsx("span", { className: `text-s pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
|
|
1182
1165
|
}
|
|
1183
1166
|
|
|
1184
|
-
const
|
|
1185
|
-
if (isURL(href) || href?.startsWith('/')) {
|
|
1186
|
-
return href;
|
|
1187
|
-
}
|
|
1188
|
-
return `${projectSettings.BASE_PATH || ''}${href}`;
|
|
1189
|
-
};
|
|
1190
|
-
|
|
1191
|
-
const isHrefActive = (href, router, cmp = (targetHref, baseHref) => baseHref.startsWith(targetHref)) => cmp(withoutQuery(normalizeURLPath(href)), withoutQuery(isURL(href) ? router.href : getPathname(router.href)));
|
|
1167
|
+
const isHrefActive = (href, router) => withoutQuery(isURL(href) ? router.href : getPathname(router.href)).startsWith(withoutQuery(adjustHref(href)));
|
|
1192
1168
|
|
|
1193
1169
|
const isSubItemActive = (router) => (subItem) => isHrefActive(subItem.href, router);
|
|
1194
1170
|
|
|
@@ -1199,20 +1175,14 @@
|
|
|
1199
1175
|
: undefined;
|
|
1200
1176
|
};
|
|
1201
1177
|
|
|
1202
|
-
const
|
|
1203
|
-
|
|
1204
|
-
const isTopItemActive = (router) => (topItem) => topItem.items?.some(isSubItemActive(router)) ||
|
|
1205
|
-
isHrefActive(topItem.href, router) ||
|
|
1206
|
-
checkIsHrefSameOrigin(topItem.href, router) ||
|
|
1207
|
-
Boolean(projectSettings.BASE_PATH?.startsWith(topItem.href || '/'));
|
|
1178
|
+
const isTopItemActive = (router) => (topItem) => topItem.items?.some(isSubItemActive(router)) || isHrefActive(topItem.href, router);
|
|
1208
1179
|
|
|
1209
1180
|
const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
|
|
1210
1181
|
const link = useLink();
|
|
1211
1182
|
const { href, target, text, onClick } = link(rest);
|
|
1212
|
-
return (jsxs("a", { className:
|
|
1183
|
+
return (jsxs("a", { className: style('relative inline-block bg-transparent text-center no-underline', className), href: href, target: target, "data-item-name": dataItemName, onClick: onClick, children: [jsx("span", { className: getTextStyle(active), children: text || children }), active ? (jsx("div", { className: "absolute left-0 -bottom-3 w-full h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
|
|
1213
1184
|
});
|
|
1214
1185
|
const getTextStyle = (active = false) => style('font-sans text-s', active ? 'text-primary-main' : 'text-secondary-text hover:text-primary-main', 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
1215
|
-
const getBorderStyle = (active = false) => style('absolute left-0 -bottom-3 w-full h-0.5', active ? 'bg-primary-main group-data-transparent:bg-transparent' : '');
|
|
1216
1186
|
|
|
1217
1187
|
const STORAGE_DEFAULT_TTL = 86400000; // 24 * 60 * 60 * 1000
|
|
1218
1188
|
function useCachedAsyncData(key, fetcher, storage = globalThis?.localStorage) {
|
|
@@ -1764,7 +1734,7 @@
|
|
|
1764
1734
|
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
1765
1735
|
}
|
|
1766
1736
|
|
|
1767
|
-
const packageVersion = "0.
|
|
1737
|
+
const packageVersion = "0.8.0";
|
|
1768
1738
|
|
|
1769
1739
|
exports.Blocks = Blocks;
|
|
1770
1740
|
exports.ContentPage = ContentPage;
|