@redneckz/wildless-cms-uni-blocks 0.10.6 → 0.10.8
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +255 -304
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/Rate.d.ts +1 -0
- package/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
- package/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
- package/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/bundle/components/Carousel/itemsGap.d.ts +1 -0
- package/bundle/components/Carousel/itemsGap.mobile.d.ts +1 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +5 -0
- package/bundle/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/bundle/components/Tabs/CenteredTabs.d.ts +7 -0
- package/bundle/components/Tabs/LinkTab.d.ts +2 -2
- package/bundle/components/Tabs/TabsContent.d.ts +3 -2
- package/bundle/components/Tabs/renderGroupTab.d.ts +2 -2
- package/bundle/components/Tabs/renderTab.d.ts +3 -3
- package/bundle/components/Tabs/tabItemClasses.d.ts +3 -2
- package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/Blocks.mobile.js +6 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +16 -18
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +4 -4
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +27 -43
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +30 -33
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Rate.d.ts +1 -0
- package/dist/components/Calculator/Rate.js +1 -1
- package/dist/components/Calculator/Rate.js.map +1 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/dist/components/Calculator/renderDaysInput.d.ts +2 -7
- package/dist/components/Calculator/renderDaysInput.js +2 -9
- package/dist/components/Calculator/renderDaysInput.js.map +1 -1
- package/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/dist/components/Calculator/renderInterestPayment.js +8 -18
- package/dist/components/Calculator/renderInterestPayment.js.map +1 -1
- package/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/dist/components/Calculator/renderMonthsInput.js +2 -10
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/components/Calculator/renderPaymentType.d.ts +2 -11
- package/dist/components/Calculator/renderPaymentType.js +9 -19
- package/dist/components/Calculator/renderPaymentType.js.map +1 -1
- package/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/dist/components/Calculator/renderRegistrationType.js +8 -18
- package/dist/components/Calculator/renderRegistrationType.js.map +1 -1
- package/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/dist/components/Calculator/renderWantedSumInput.js +4 -6
- package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +3 -3
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/itemsGap.d.ts +1 -0
- package/dist/components/Carousel/itemsGap.js +4 -0
- package/dist/components/Carousel/itemsGap.js.map +1 -0
- package/dist/components/Carousel/itemsGap.mobile.d.ts +1 -0
- package/dist/components/Carousel/itemsGap.mobile.js +4 -0
- package/dist/components/Carousel/itemsGap.mobile.js.map +1 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +2 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +5 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +17 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -0
- package/dist/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
- package/dist/components/CarouselRecommendationCard/cardStyle.js +4 -0
- package/dist/components/CarouselRecommendationCard/cardStyle.js.map +1 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js +4 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js +5 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
- package/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
- package/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/SocialMedia.mobile.js +1 -1
- package/dist/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/dist/components/Headline/Headline.js +2 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/dist/components/Headline/headlineVersionStyles.js +6 -6
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/Tabs/CenteredTabs.d.ts +7 -0
- package/dist/components/Tabs/CenteredTabs.js +7 -0
- package/dist/components/Tabs/CenteredTabs.js.map +1 -0
- package/dist/components/Tabs/LinkTab.d.ts +2 -2
- package/dist/components/Tabs/LinkTab.js +2 -2
- package/dist/components/Tabs/LinkTab.js.map +1 -1
- package/dist/components/Tabs/ScrollableTabs.js +3 -9
- package/dist/components/Tabs/ScrollableTabs.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +14 -7
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +3 -2
- package/dist/components/Tabs/renderGroupTab.d.ts +2 -2
- package/dist/components/Tabs/renderGroupTab.js +4 -4
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/components/Tabs/renderTab.d.ts +3 -3
- package/dist/components/Tabs/renderTab.js +3 -3
- package/dist/components/Tabs/renderTab.js.map +1 -1
- package/dist/components/Tabs/tabItemClasses.d.ts +3 -2
- package/dist/components/Tabs/tabItemClasses.js +26 -10
- package/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/dist/hooks/useForm.js +2 -2
- package/dist/hooks/useForm.js.map +1 -1
- package/dist/hooks/useLink.js +1 -1
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +4 -1
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +22 -16
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/dist/ui-kit/InputRange/parseDecimal.js +9 -0
- package/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
- package/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
- package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
- package/dist/utils/getSanitizedValue.js +1 -1
- package/dist/utils/getSanitizedValue.js.map +1 -1
- package/dist/wlc.json +1 -2
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/Blocks.mobile.js +6 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +16 -18
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +4 -4
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +27 -43
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +31 -34
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Rate.d.ts +1 -0
- package/lib/components/Calculator/Rate.js +1 -1
- package/lib/components/Calculator/Rate.js.map +1 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/lib/components/Calculator/renderDaysInput.d.ts +2 -7
- package/lib/components/Calculator/renderDaysInput.js +2 -9
- package/lib/components/Calculator/renderDaysInput.js.map +1 -1
- package/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/lib/components/Calculator/renderInterestPayment.js +8 -18
- package/lib/components/Calculator/renderInterestPayment.js.map +1 -1
- package/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/lib/components/Calculator/renderMonthsInput.js +2 -10
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/components/Calculator/renderPaymentType.d.ts +2 -11
- package/lib/components/Calculator/renderPaymentType.js +8 -18
- package/lib/components/Calculator/renderPaymentType.js.map +1 -1
- package/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/lib/components/Calculator/renderRegistrationType.js +8 -18
- package/lib/components/Calculator/renderRegistrationType.js.map +1 -1
- package/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/lib/components/Calculator/renderWantedSumInput.js +4 -6
- package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +11 -0
- package/lib/components/Carousel/Carousel.js +2 -2
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/itemsGap.d.ts +1 -0
- package/lib/components/Carousel/itemsGap.js +2 -0
- package/lib/components/Carousel/itemsGap.js.map +1 -0
- package/lib/components/Carousel/itemsGap.mobile.d.ts +1 -0
- package/lib/components/Carousel/itemsGap.mobile.js +2 -0
- package/lib/components/Carousel/itemsGap.mobile.js.map +1 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.d.ts +16 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +5 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +15 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -0
- package/lib/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
- package/lib/components/CarouselRecommendationCard/cardStyle.js +2 -0
- package/lib/components/CarouselRecommendationCard/cardStyle.js.map +1 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.d.ts +9 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js +2 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js +2 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
- package/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
- package/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/SocialMedia.mobile.js +1 -1
- package/lib/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +22 -0
- package/lib/components/Headline/Headline.js +2 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/lib/components/Headline/headlineVersionStyles.js +6 -6
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/Tabs/CenteredTabs.d.ts +7 -0
- package/lib/components/Tabs/CenteredTabs.js +5 -0
- package/lib/components/Tabs/CenteredTabs.js.map +1 -0
- package/lib/components/Tabs/LinkTab.d.ts +2 -2
- package/lib/components/Tabs/LinkTab.js +2 -2
- package/lib/components/Tabs/LinkTab.js.map +1 -1
- package/lib/components/Tabs/ScrollableTabs.js +3 -9
- package/lib/components/Tabs/ScrollableTabs.js.map +1 -1
- package/lib/components/Tabs/Tabs.fixture.d.ts +1 -0
- package/lib/components/Tabs/Tabs.js +14 -7
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +3 -2
- package/lib/components/Tabs/renderGroupTab.d.ts +2 -2
- package/lib/components/Tabs/renderGroupTab.js +5 -5
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/components/Tabs/renderTab.d.ts +3 -3
- package/lib/components/Tabs/renderTab.js +3 -3
- package/lib/components/Tabs/renderTab.js.map +1 -1
- package/lib/components/Tabs/tabItemClasses.d.ts +3 -2
- package/lib/components/Tabs/tabItemClasses.js +26 -10
- package/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/lib/hooks/useForm.js +2 -2
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/hooks/useLink.js +1 -1
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +4 -1
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +22 -16
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/lib/ui-kit/InputRange/parseDecimal.js +6 -0
- package/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
- package/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
- package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
- package/lib/utils/getSanitizedValue.js +1 -1
- package/lib/utils/getSanitizedValue.js.map +1 -1
- package/lib/wlc.json +1 -2
- package/mobile/bundle/bundle.umd.js +476 -370
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/Rate.d.ts +1 -0
- package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/mobile/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
- package/mobile/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
- package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/mobile/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/mobile/bundle/components/Carousel/itemsGap.d.ts +1 -0
- package/mobile/bundle/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
- package/mobile/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/mobile/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/mobile/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/mobile/bundle/components/Tabs/CenteredTabs.d.ts +7 -0
- package/mobile/bundle/components/Tabs/LinkTab.d.ts +2 -2
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +3 -2
- package/mobile/bundle/components/Tabs/renderGroupTab.d.ts +2 -2
- package/mobile/bundle/components/Tabs/renderTab.d.ts +3 -3
- package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +3 -2
- package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/mobile/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/Blocks.js +6 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +16 -18
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +4 -4
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +27 -43
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +30 -33
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Rate.d.ts +1 -0
- package/mobile/dist/components/Calculator/Rate.js +1 -1
- package/mobile/dist/components/Calculator/Rate.js.map +1 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/mobile/dist/components/Calculator/renderDaysInput.d.ts +2 -7
- package/mobile/dist/components/Calculator/renderDaysInput.js +2 -9
- package/mobile/dist/components/Calculator/renderDaysInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/mobile/dist/components/Calculator/renderInterestPayment.js +8 -18
- package/mobile/dist/components/Calculator/renderInterestPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/mobile/dist/components/Calculator/renderMonthsInput.js +2 -10
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderPaymentType.d.ts +2 -11
- package/mobile/dist/components/Calculator/renderPaymentType.js +9 -19
- package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/mobile/dist/components/Calculator/renderRegistrationType.js +8 -18
- package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -1
- package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/mobile/dist/components/Calculator/renderWantedSumInput.js +4 -6
- package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +3 -3
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/itemsGap.d.ts +1 -0
- package/mobile/dist/components/Carousel/itemsGap.js +4 -0
- package/mobile/dist/components/Carousel/itemsGap.js.map +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -4
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/cardStyle.js +4 -0
- package/mobile/dist/components/CarouselRecommendationCard/cardStyle.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +2 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.js +6 -6
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/components/Tabs/CenteredTabs.d.ts +7 -0
- package/mobile/dist/components/Tabs/CenteredTabs.js +7 -0
- package/mobile/dist/components/Tabs/CenteredTabs.js.map +1 -0
- package/mobile/dist/components/Tabs/LinkTab.d.ts +2 -2
- package/mobile/dist/components/Tabs/LinkTab.js +2 -2
- package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/dist/components/Tabs/ScrollableTabs.js +3 -9
- package/mobile/dist/components/Tabs/ScrollableTabs.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.js +14 -7
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +3 -2
- package/mobile/dist/components/Tabs/renderGroupTab.d.ts +2 -2
- package/mobile/dist/components/Tabs/renderGroupTab.js +4 -4
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/Tabs/renderTab.d.ts +3 -3
- package/mobile/dist/components/Tabs/renderTab.js +3 -3
- package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
- package/mobile/dist/components/Tabs/tabItemClasses.d.ts +3 -2
- package/mobile/dist/components/Tabs/tabItemClasses.js +26 -10
- package/mobile/dist/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/dist/hooks/useForm.js +2 -2
- package/mobile/dist/hooks/useForm.js.map +1 -1
- package/mobile/dist/hooks/useLink.js +1 -1
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +4 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +22 -16
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/mobile/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/mobile/dist/ui-kit/InputRange/parseDecimal.js +9 -0
- package/mobile/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
- package/mobile/dist/utils/getSanitizedValue.js +1 -1
- package/mobile/dist/utils/getSanitizedValue.js.map +1 -1
- package/mobile/dist/wlc.json +1 -2
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/Blocks.js +6 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +16 -18
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +4 -4
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +27 -43
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +31 -34
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Rate.d.ts +1 -0
- package/mobile/lib/components/Calculator/Rate.js +1 -1
- package/mobile/lib/components/Calculator/Rate.js.map +1 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/mobile/lib/components/Calculator/renderDaysInput.d.ts +2 -7
- package/mobile/lib/components/Calculator/renderDaysInput.js +2 -9
- package/mobile/lib/components/Calculator/renderDaysInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/mobile/lib/components/Calculator/renderInterestPayment.js +8 -18
- package/mobile/lib/components/Calculator/renderInterestPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/mobile/lib/components/Calculator/renderMonthsInput.js +2 -10
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderPaymentType.d.ts +2 -11
- package/mobile/lib/components/Calculator/renderPaymentType.js +8 -18
- package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/mobile/lib/components/Calculator/renderRegistrationType.js +8 -18
- package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -1
- package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/mobile/lib/components/Calculator/renderWantedSumInput.js +4 -6
- package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +2 -2
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/itemsGap.d.ts +1 -0
- package/mobile/lib/components/Carousel/itemsGap.js +2 -0
- package/mobile/lib/components/Carousel/itemsGap.js.map +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -4
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/cardStyle.d.ts +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/cardStyle.js +2 -0
- package/mobile/lib/components/CarouselRecommendationCard/cardStyle.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +2 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.js +6 -6
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/components/Tabs/CenteredTabs.d.ts +7 -0
- package/mobile/lib/components/Tabs/CenteredTabs.js +5 -0
- package/mobile/lib/components/Tabs/CenteredTabs.js.map +1 -0
- package/mobile/lib/components/Tabs/LinkTab.d.ts +2 -2
- package/mobile/lib/components/Tabs/LinkTab.js +2 -2
- package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
- package/mobile/lib/components/Tabs/ScrollableTabs.js +3 -9
- package/mobile/lib/components/Tabs/ScrollableTabs.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.js +14 -7
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +3 -2
- package/mobile/lib/components/Tabs/renderGroupTab.d.ts +2 -2
- package/mobile/lib/components/Tabs/renderGroupTab.js +5 -5
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/Tabs/renderTab.d.ts +3 -3
- package/mobile/lib/components/Tabs/renderTab.js +3 -3
- package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
- package/mobile/lib/components/Tabs/tabItemClasses.d.ts +3 -2
- package/mobile/lib/components/Tabs/tabItemClasses.js +26 -10
- package/mobile/lib/components/Tabs/tabItemClasses.js.map +1 -1
- package/mobile/lib/hooks/useForm.js +2 -2
- package/mobile/lib/hooks/useForm.js.map +1 -1
- package/mobile/lib/hooks/useLink.js +1 -1
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +4 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +22 -16
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/mobile/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/mobile/lib/ui-kit/InputRange/parseDecimal.js +6 -0
- package/mobile/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
- package/mobile/lib/utils/getSanitizedValue.js +1 -1
- package/mobile/lib/utils/getSanitizedValue.js.map +1 -1
- package/mobile/lib/wlc.json +1 -2
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/mobile/src/components/Blocks.ts +6 -0
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
- package/mobile/src/components/Calculator/Calculator.tsx +11 -5
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
- package/mobile/src/components/Calculator/Rate.tsx +14 -14
- package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
- package/mobile/src/components/Calculator/renderDaysInput.tsx +10 -31
- package/mobile/src/components/Calculator/renderInterestPayment.tsx +13 -52
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +17 -39
- package/mobile/src/components/Calculator/renderPaymentType.tsx +13 -49
- package/mobile/src/components/Calculator/renderRegistrationType.tsx +13 -51
- package/mobile/src/components/Calculator/renderWantedSumInput.tsx +10 -27
- package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +2 -3
- package/mobile/src/components/Carousel/itemsGap.ts +1 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +14 -20
- package/mobile/src/components/CarouselRecommendationCard/cardStyle.ts +2 -0
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
- package/mobile/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
- package/mobile/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
- package/mobile/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/Footer/SocialMedia.tsx +1 -1
- package/mobile/src/components/Headline/Headline.tsx +10 -5
- package/mobile/src/components/Headline/headlineVersionStyles.ts +7 -7
- package/mobile/src/components/Tabs/CenteredTabs.tsx +12 -0
- package/mobile/src/components/Tabs/LinkTab.tsx +5 -5
- package/mobile/src/components/Tabs/ScrollableTabs.tsx +5 -13
- package/mobile/src/components/Tabs/Tabs.tsx +21 -19
- package/mobile/src/components/Tabs/TabsContent.ts +3 -2
- package/mobile/src/components/Tabs/renderGroupTab.tsx +11 -10
- package/mobile/src/components/Tabs/renderTab.tsx +5 -13
- package/mobile/src/components/Tabs/tabItemClasses.ts +28 -10
- package/mobile/src/hooks/useForm.ts +17 -14
- package/mobile/src/hooks/useLink.ts +1 -1
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +5 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +56 -43
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
- package/mobile/src/ui-kit/InputRange/parseDecimal.ts +6 -0
- package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
- package/mobile/src/utils/getSanitizedValue.ts +1 -1
- package/mobile/src/wlc.json +1 -2
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/src/components/Blocks.mobile.ts +6 -0
- package/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
- package/src/components/Calculator/Calculator.tsx +11 -5
- package/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
- package/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
- package/src/components/Calculator/Rate.tsx +14 -14
- package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
- package/src/components/Calculator/renderDaysInput.tsx +10 -31
- package/src/components/Calculator/renderInterestPayment.tsx +13 -52
- package/src/components/Calculator/renderMonthsInput.tsx +17 -39
- package/src/components/Calculator/renderPaymentType.tsx +13 -49
- package/src/components/Calculator/renderRegistrationType.tsx +13 -51
- package/src/components/Calculator/renderWantedSumInput.tsx +10 -27
- package/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +93 -0
- package/src/components/Carousel/Carousel.tsx +2 -3
- package/src/components/Carousel/itemsGap.mobile.ts +1 -0
- package/src/components/Carousel/itemsGap.ts +1 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +148 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +63 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -3
- package/src/components/CarouselRecommendationCard/cardStyle.ts +2 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +74 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
- package/src/components/CarouselTariffsCard/descriptionSize.mobile.tsx +1 -0
- package/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
- package/src/components/CarouselTariffsCard/getPaddingStyle.mobile.tsx +2 -0
- package/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
- package/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/Footer/SocialMedia.mobile.tsx +1 -1
- package/src/components/Headline/Headline.fixture.mobile.tsx +95 -0
- package/src/components/Headline/Headline.tsx +10 -5
- package/src/components/Headline/headlineVersionStyles.ts +7 -7
- package/src/components/Tabs/CenteredTabs.tsx +12 -0
- package/src/components/Tabs/LinkTab.tsx +5 -5
- package/src/components/Tabs/ScrollableTabs.tsx +5 -13
- package/src/components/Tabs/Tabs.fixture.tsx +27 -0
- package/src/components/Tabs/Tabs.tsx +21 -19
- package/src/components/Tabs/TabsContent.ts +3 -2
- package/src/components/Tabs/renderGroupTab.tsx +11 -10
- package/src/components/Tabs/renderTab.tsx +5 -13
- package/src/components/Tabs/tabItemClasses.ts +28 -10
- package/src/hooks/useForm.ts +17 -14
- package/src/hooks/useLink.ts +1 -1
- package/src/ui-kit/Checkbox/Checkbox.tsx +5 -1
- package/src/ui-kit/InputRange/InputRange.tsx +56 -43
- package/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
- package/src/ui-kit/InputRange/parseDecimal.ts +6 -0
- package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
- package/src/utils/getSanitizedValue.ts +1 -1
- package/src/wlc.json +1 -2
- package/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/dist/ui-kit/InputListRange/InputListRange.js +0 -41
- package/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
- package/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/dist/ui-kit/InputListRange/InputListRangeProps.js +0 -2
- package/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
- package/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/lib/ui-kit/InputListRange/InputListRange.js +0 -39
- package/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
- package/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
- package/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
- package/mobile/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/mobile/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/mobile/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/mobile/dist/ui-kit/InputListRange/InputListRange.js +0 -41
- package/mobile/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
- package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js +0 -2
- package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
- package/mobile/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/mobile/lib/ui-kit/InputListRange/InputListRange.js +0 -39
- package/mobile/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
- package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
- package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
- package/mobile/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
- package/mobile/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
- package/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
- package/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
2
|
+
import { RadioButtonGroup, RadioButtonItem } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
+
|
|
5
|
+
export interface BinaryRadioButtonGroupProps {
|
|
6
|
+
items: [truthy: RadioButtonItem, falsy: RadioButtonItem];
|
|
7
|
+
title?: string;
|
|
8
|
+
orientation?: ListOrientation;
|
|
9
|
+
value?: boolean;
|
|
10
|
+
onChange?: (value: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const renderBinaryRadioButtonGroup = ({
|
|
14
|
+
items,
|
|
15
|
+
title,
|
|
16
|
+
orientation = 'horizontal',
|
|
17
|
+
value,
|
|
18
|
+
onChange,
|
|
19
|
+
}: BinaryRadioButtonGroupProps) => (
|
|
20
|
+
<div>
|
|
21
|
+
{title ? (
|
|
22
|
+
<div className="mb-3">
|
|
23
|
+
<Text color="text-secondary-text" font="font-light">
|
|
24
|
+
{title}
|
|
25
|
+
</Text>
|
|
26
|
+
</div>
|
|
27
|
+
) : null}
|
|
28
|
+
<RadioButtonGroup
|
|
29
|
+
orientation={orientation}
|
|
30
|
+
items={items}
|
|
31
|
+
checkedItem={items[value ? 0 : 1].id}
|
|
32
|
+
onChange={(_) => onChange && onChange(_ === items[0].id)}
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
@@ -1,36 +1,15 @@
|
|
|
1
1
|
import { InputRange } from '../../ui-kit/InputRange/InputRange';
|
|
2
|
-
import {
|
|
2
|
+
import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
|
|
3
3
|
|
|
4
4
|
const STEP_DAYS = 1;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
6
|
+
export const renderDaysInput = (props: InputRangeProps) => (
|
|
7
|
+
<InputRange
|
|
8
|
+
className="mt-7"
|
|
9
|
+
items={[`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`]}
|
|
10
|
+
step={STEP_DAYS}
|
|
11
|
+
{...props}
|
|
12
|
+
/>
|
|
13
|
+
);
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
title: string,
|
|
14
|
-
params: RenderDaysInputParams,
|
|
15
|
-
callback?: (value: number) => void,
|
|
16
|
-
) {
|
|
17
|
-
const { minDays, maxDays, daysValue } = params;
|
|
18
|
-
const daysText = (days: number) => {
|
|
19
|
-
const text = Number(days) % 10 === 1 ? 'дня' : 'дней';
|
|
20
|
-
|
|
21
|
-
return `${days} ${text}`;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<InputRange
|
|
26
|
-
className="mt-7"
|
|
27
|
-
title={title}
|
|
28
|
-
items={[`От ${daysText(minDays)}`, `До ${daysText(maxDays)}`]}
|
|
29
|
-
min={minDays}
|
|
30
|
-
max={maxDays}
|
|
31
|
-
step={STEP_DAYS}
|
|
32
|
-
value={clamp(daysValue, minDays, maxDays)}
|
|
33
|
-
onChange={callback}
|
|
34
|
-
/>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
15
|
+
const daysText = (days: number) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
|
|
@@ -1,52 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
id: AT_END_TERM,
|
|
15
|
-
text: 'В конце срока',
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
interface InterestPaymentProps {
|
|
20
|
-
isMonthlyInterestPayment: boolean;
|
|
21
|
-
callback?: (value: boolean) => void;
|
|
22
|
-
title?: string;
|
|
23
|
-
orientation?: ListOrientation;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function renderInterestPayment({
|
|
27
|
-
isMonthlyInterestPayment,
|
|
28
|
-
callback,
|
|
29
|
-
title,
|
|
30
|
-
orientation = 'horizontal',
|
|
31
|
-
}: InterestPaymentProps) {
|
|
32
|
-
return (
|
|
33
|
-
<div>
|
|
34
|
-
{title ? (
|
|
35
|
-
<div className="mb-3">
|
|
36
|
-
<Text color="text-secondary-text" font="font-light">
|
|
37
|
-
{title}
|
|
38
|
-
</Text>
|
|
39
|
-
</div>
|
|
40
|
-
) : null}
|
|
41
|
-
|
|
42
|
-
<div>
|
|
43
|
-
<RadioButtonGroup
|
|
44
|
-
orientation={orientation}
|
|
45
|
-
items={depositTypeItems}
|
|
46
|
-
checkedItem={isMonthlyInterestPayment ? EVERY_MONTH : AT_END_TERM}
|
|
47
|
-
onChange={(text: string) => callback && callback(text === EVERY_MONTH)}
|
|
48
|
-
/>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
BinaryRadioButtonGroupProps,
|
|
3
|
+
renderBinaryRadioButtonGroup,
|
|
4
|
+
} from './renderBinaryRadioButtonGroup';
|
|
5
|
+
|
|
6
|
+
export const renderInterestPayment = (props: Partial<BinaryRadioButtonGroupProps>) =>
|
|
7
|
+
renderBinaryRadioButtonGroup({
|
|
8
|
+
...props,
|
|
9
|
+
items: [
|
|
10
|
+
{ id: 'everyMonth', text: 'Ежемесячно' },
|
|
11
|
+
{ id: 'atEndTerm', text: 'В конце срока' },
|
|
12
|
+
],
|
|
13
|
+
});
|
|
@@ -1,47 +1,25 @@
|
|
|
1
|
-
import { InputListRange } from '../../ui-kit/InputListRange/InputListRange';
|
|
2
1
|
import { InputRange } from '../../ui-kit/InputRange/InputRange';
|
|
3
|
-
import {
|
|
2
|
+
import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
|
|
4
3
|
|
|
5
4
|
const STEP_MONTHS = 1;
|
|
6
5
|
|
|
7
|
-
interface
|
|
8
|
-
minMonths: number;
|
|
9
|
-
maxMonths: number;
|
|
10
|
-
monthsValue: number;
|
|
6
|
+
interface MonthsInputParams extends InputRangeProps {
|
|
11
7
|
availableMonths?: Array<number>;
|
|
12
8
|
}
|
|
13
9
|
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
export const renderMonthsInput = ({
|
|
11
|
+
min = 0,
|
|
12
|
+
max = 0,
|
|
13
|
+
availableMonths,
|
|
14
|
+
...rest
|
|
15
|
+
}: MonthsInputParams) => (
|
|
16
|
+
<InputRange
|
|
17
|
+
className="mt-7"
|
|
18
|
+
items={[`От ${monthText(min)}`, `До ${monthText(max)}`]}
|
|
19
|
+
step={STEP_MONTHS}
|
|
20
|
+
{...(availableMonths?.length ? { list: availableMonths } : { min, max })}
|
|
21
|
+
{...rest}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
return availableMonths?.length ? (
|
|
27
|
-
<InputListRange
|
|
28
|
-
className="mt-7"
|
|
29
|
-
title={title}
|
|
30
|
-
items={[`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`]}
|
|
31
|
-
list={availableMonths}
|
|
32
|
-
value={clamp(monthsValue, minMonths, maxMonths)}
|
|
33
|
-
onChange={callback}
|
|
34
|
-
/>
|
|
35
|
-
) : (
|
|
36
|
-
<InputRange
|
|
37
|
-
className="mt-7"
|
|
38
|
-
title={title}
|
|
39
|
-
items={[`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`]}
|
|
40
|
-
min={minMonths}
|
|
41
|
-
max={maxMonths}
|
|
42
|
-
step={STEP_MONTHS}
|
|
43
|
-
value={clamp(monthsValue, minMonths, maxMonths)}
|
|
44
|
-
onChange={callback}
|
|
45
|
-
/>
|
|
46
|
-
);
|
|
47
|
-
}
|
|
25
|
+
const monthText = (month: number) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
|
|
@@ -1,49 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
id: DIFFERENTIAL,
|
|
15
|
-
text: 'Дифференцированный',
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
interface PaymentTypeProps {
|
|
20
|
-
isAnnuity: boolean;
|
|
21
|
-
callback?: (value: boolean) => void;
|
|
22
|
-
title?: string;
|
|
23
|
-
orientation?: ListOrientation;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function renderPaymentType({
|
|
27
|
-
isAnnuity,
|
|
28
|
-
callback,
|
|
29
|
-
title,
|
|
30
|
-
orientation = 'horizontal',
|
|
31
|
-
}: PaymentTypeProps) {
|
|
32
|
-
return (
|
|
33
|
-
<div>
|
|
34
|
-
{title ? (
|
|
35
|
-
<div className="mb-3">
|
|
36
|
-
<Text color="text-secondary-text" font="font-light">
|
|
37
|
-
{title}
|
|
38
|
-
</Text>
|
|
39
|
-
</div>
|
|
40
|
-
) : null}
|
|
41
|
-
<RadioButtonGroup
|
|
42
|
-
orientation={orientation}
|
|
43
|
-
items={paymentTypeItems}
|
|
44
|
-
checkedItem={isAnnuity ? ANNUITY : DIFFERENTIAL}
|
|
45
|
-
onChange={(text: string) => callback && callback(text === ANNUITY)}
|
|
46
|
-
/>
|
|
47
|
-
</div>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
BinaryRadioButtonGroupProps,
|
|
3
|
+
renderBinaryRadioButtonGroup,
|
|
4
|
+
} from './renderBinaryRadioButtonGroup';
|
|
5
|
+
|
|
6
|
+
export const renderPaymentType = (props: Partial<BinaryRadioButtonGroupProps>) =>
|
|
7
|
+
renderBinaryRadioButtonGroup({
|
|
8
|
+
...props,
|
|
9
|
+
items: [
|
|
10
|
+
{ id: 'annuity', text: 'Аннуитетный' },
|
|
11
|
+
{ id: 'differential', text: 'Дифференцированный' },
|
|
12
|
+
],
|
|
13
|
+
});
|
|
@@ -1,51 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
id: REMOTE_REGISTRATION,
|
|
15
|
-
text: 'Дистанционно',
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
interface RegistrationTypeProps {
|
|
20
|
-
isRemoteRegistration: boolean;
|
|
21
|
-
callback?: (value: boolean) => void;
|
|
22
|
-
title?: string;
|
|
23
|
-
orientation?: ListOrientation;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function renderRegistrationType({
|
|
27
|
-
isRemoteRegistration,
|
|
28
|
-
callback,
|
|
29
|
-
title,
|
|
30
|
-
orientation = 'horizontal',
|
|
31
|
-
}: RegistrationTypeProps) {
|
|
32
|
-
return (
|
|
33
|
-
<div>
|
|
34
|
-
{title ? (
|
|
35
|
-
<div className="mb-3">
|
|
36
|
-
<Text color="text-secondary-text" font="font-light">
|
|
37
|
-
{title}
|
|
38
|
-
</Text>
|
|
39
|
-
</div>
|
|
40
|
-
) : null}
|
|
41
|
-
<div>
|
|
42
|
-
<RadioButtonGroup
|
|
43
|
-
orientation={orientation}
|
|
44
|
-
items={registrationTypeItems}
|
|
45
|
-
checkedItem={isRemoteRegistration ? REMOTE_REGISTRATION : OFFICE_REGISTRATION}
|
|
46
|
-
onChange={(text: string) => callback && callback(text === REMOTE_REGISTRATION)}
|
|
47
|
-
/>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
);
|
|
51
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
BinaryRadioButtonGroupProps,
|
|
3
|
+
renderBinaryRadioButtonGroup,
|
|
4
|
+
} from './renderBinaryRadioButtonGroup';
|
|
5
|
+
|
|
6
|
+
export const renderRegistrationType = (props: Partial<BinaryRadioButtonGroupProps>) =>
|
|
7
|
+
renderBinaryRadioButtonGroup({
|
|
8
|
+
...props,
|
|
9
|
+
items: [
|
|
10
|
+
{ id: 'remote', text: 'Дистанционно' },
|
|
11
|
+
{ id: 'office', text: 'Офис Банка' },
|
|
12
|
+
],
|
|
13
|
+
});
|
|
@@ -1,39 +1,22 @@
|
|
|
1
1
|
import { InputRange } from '../../ui-kit/InputRange/InputRange';
|
|
2
|
+
import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
|
|
2
3
|
import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers';
|
|
3
|
-
import { clamp } from '../../utils/clamp';
|
|
4
4
|
|
|
5
5
|
const DEFAULT_MONEY_STEP = 1000;
|
|
6
6
|
|
|
7
|
-
interface RenderWantedSumParams {
|
|
8
|
-
minSum: number;
|
|
9
|
-
maxSum: number;
|
|
10
|
-
moneyValue: number;
|
|
11
|
-
className?: string;
|
|
12
|
-
step?: number;
|
|
7
|
+
interface RenderWantedSumParams extends InputRangeProps {
|
|
13
8
|
isShowItems?: boolean;
|
|
14
9
|
}
|
|
15
10
|
|
|
16
|
-
export function renderWantedSumInput(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
) {
|
|
21
|
-
const { moneyValue, minSum, maxSum, step = DEFAULT_MONEY_STEP, isShowItems = true } = params;
|
|
22
|
-
|
|
11
|
+
export function renderWantedSumInput({
|
|
12
|
+
isShowItems = true,
|
|
13
|
+
step = DEFAULT_MONEY_STEP,
|
|
14
|
+
...rest
|
|
15
|
+
}: RenderWantedSumParams) {
|
|
23
16
|
const items = [
|
|
24
|
-
`От ${addSpacesBetweenNumbers(
|
|
25
|
-
`До ${addSpacesBetweenNumbers(
|
|
17
|
+
`От ${addSpacesBetweenNumbers(rest.min || 0)} ₽`,
|
|
18
|
+
`До ${addSpacesBetweenNumbers(rest.max || 0)} ₽`,
|
|
26
19
|
];
|
|
27
20
|
|
|
28
|
-
return
|
|
29
|
-
<InputRange
|
|
30
|
-
title={title}
|
|
31
|
-
items={isShowItems ? items : []}
|
|
32
|
-
min={minSum}
|
|
33
|
-
max={maxSum}
|
|
34
|
-
step={step}
|
|
35
|
-
value={clamp(moneyValue, minSum, maxSum)}
|
|
36
|
-
onChange={callback}
|
|
37
|
-
/>
|
|
38
|
-
);
|
|
21
|
+
return <InputRange items={isShowItems ? items : []} step={step} {...rest} />;
|
|
39
22
|
}
|
|
@@ -45,7 +45,7 @@ export const useDepositCalculatorParams = (
|
|
|
45
45
|
const data = useCalculatorParams<DepositCalculatorData>(
|
|
46
46
|
sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR,
|
|
47
47
|
);
|
|
48
|
-
const defaultMonth = data?.rateRows[0]
|
|
48
|
+
const defaultMonth = data?.rateRows?.[0]
|
|
49
49
|
? getMiddleMonth(data.rateRows[0].minMonths, data.rateRows[0].maxMonths)
|
|
50
50
|
: 1;
|
|
51
51
|
const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { BlockRendererOptions } from '../../BlockRenderer/BlockRendererOptions';
|
|
2
|
+
import '../../setup-fixture';
|
|
3
|
+
import { Blocks } from '../Blocks';
|
|
4
|
+
import { TARIFFS_CARD, TARIFFS_CARD_HIT } from '../CarouselTariffsCard/CarouselTariffsCard.fixture';
|
|
5
|
+
import { Carousel } from './Carousel';
|
|
6
|
+
|
|
7
|
+
const options = {
|
|
8
|
+
blocksRegistry: Blocks,
|
|
9
|
+
} as BlockRendererOptions;
|
|
10
|
+
|
|
11
|
+
const carouselBlock = {
|
|
12
|
+
type: 'Carousel',
|
|
13
|
+
blocks: new Array(6)
|
|
14
|
+
.fill({
|
|
15
|
+
type: 'CarouselTariffsCard',
|
|
16
|
+
content: TARIFFS_CARD,
|
|
17
|
+
})
|
|
18
|
+
.map((_, i) => (i === 1 ? { ..._, content: TARIFFS_CARD_HIT } : _)),
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
default: (
|
|
23
|
+
<div className="container grid grid-cols-12">
|
|
24
|
+
<Carousel className="col-span-12" block={carouselBlock} options={options} />
|
|
25
|
+
</div>
|
|
26
|
+
),
|
|
27
|
+
'arrowsPadded with cyclic': (
|
|
28
|
+
<div className="container grid grid-cols-12">
|
|
29
|
+
<Carousel
|
|
30
|
+
className="col-span-12"
|
|
31
|
+
block={carouselBlock}
|
|
32
|
+
options={options}
|
|
33
|
+
arrowsPadded={false}
|
|
34
|
+
isCyclic={true}
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
),
|
|
38
|
+
|
|
39
|
+
'no-blur with cyclic': (
|
|
40
|
+
<div className="container grid grid-cols-12">
|
|
41
|
+
<Carousel
|
|
42
|
+
className="col-span-12"
|
|
43
|
+
isBlur={false}
|
|
44
|
+
isCyclic={true}
|
|
45
|
+
block={carouselBlock}
|
|
46
|
+
options={options}
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
),
|
|
50
|
+
'one visible cards with dots': (
|
|
51
|
+
<div className="container grid grid-cols-12">
|
|
52
|
+
<Carousel
|
|
53
|
+
className="col-span-12"
|
|
54
|
+
visibleItemCount={1}
|
|
55
|
+
showDots={true}
|
|
56
|
+
block={carouselBlock}
|
|
57
|
+
options={options}
|
|
58
|
+
/>
|
|
59
|
+
</div>
|
|
60
|
+
),
|
|
61
|
+
'only one cards align center': (
|
|
62
|
+
<div className="container grid grid-cols-12">
|
|
63
|
+
<Carousel
|
|
64
|
+
className="col-span-12"
|
|
65
|
+
block={{
|
|
66
|
+
type: 'Carousel',
|
|
67
|
+
blocks: new Array(1)
|
|
68
|
+
.fill({
|
|
69
|
+
type: 'CarouselTariffsCard',
|
|
70
|
+
content: TARIFFS_CARD,
|
|
71
|
+
})
|
|
72
|
+
.map((_, i) => (i === 1 ? { ..._, content: TARIFFS_CARD_HIT } : _)),
|
|
73
|
+
}}
|
|
74
|
+
options={options}
|
|
75
|
+
isAlignCenter={true}
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
),
|
|
79
|
+
|
|
80
|
+
tariffs: (
|
|
81
|
+
<div className="container grid grid-cols-12">
|
|
82
|
+
<Carousel
|
|
83
|
+
className="col-span-12"
|
|
84
|
+
visibleItemCount={0}
|
|
85
|
+
isBlur={true}
|
|
86
|
+
isCyclic={false}
|
|
87
|
+
isAlignCenter={true}
|
|
88
|
+
block={carouselBlock}
|
|
89
|
+
options={options}
|
|
90
|
+
/>
|
|
91
|
+
</div>
|
|
92
|
+
),
|
|
93
|
+
};
|
|
@@ -10,14 +10,13 @@ import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListSc
|
|
|
10
10
|
import { style } from '../../utils/style';
|
|
11
11
|
import type { CarouselContent } from './CarouselContent';
|
|
12
12
|
import { CarouselScrollButtons } from './CarouselScrollButtons';
|
|
13
|
+
import { ITEMS_GAP } from './itemsGap';
|
|
13
14
|
|
|
14
15
|
export interface CarouselProps extends CarouselContent, UniBlockProps {
|
|
15
16
|
itemCount?: number;
|
|
16
17
|
showDots?: boolean;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
const ITEMS_GAP = 4;
|
|
20
|
-
|
|
21
20
|
export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
22
21
|
({
|
|
23
22
|
className = '',
|
|
@@ -83,7 +82,7 @@ export const Carousel: JSXBlock<CarouselProps> = JSX<CarouselProps>(
|
|
|
83
82
|
activeIndex={activeIndex}
|
|
84
83
|
itemCount={count}
|
|
85
84
|
/>
|
|
86
|
-
{showDots ? renderDots(containerRef, dotsActiveIndex,
|
|
85
|
+
{showDots ? renderDots(containerRef, dotsActiveIndex, count) : null}
|
|
87
86
|
</div>
|
|
88
87
|
</BlockWrapper>
|
|
89
88
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ITEMS_GAP = 16;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ITEMS_GAP = 4;
|
package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import '../../setup-fixture';
|
|
3
|
+
import { CarouselRecommendationCard } from './CarouselRecommendationCard';
|
|
4
|
+
import type {
|
|
5
|
+
CarouselRecommendationCardContent,
|
|
6
|
+
RecommendationSocialMedia,
|
|
7
|
+
} from './CarouselRecommendationCardContent';
|
|
8
|
+
|
|
9
|
+
const icon: Picture = {
|
|
10
|
+
src: 'product-basket.png',
|
|
11
|
+
format: 'webp',
|
|
12
|
+
size: {
|
|
13
|
+
width: 290,
|
|
14
|
+
height: 290,
|
|
15
|
+
},
|
|
16
|
+
title: 'product-basket',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const commonProps: RecommendationSocialMedia = {
|
|
20
|
+
target: '_blank',
|
|
21
|
+
version: 'gray',
|
|
22
|
+
rounded: false,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const socialMediaWithText: RecommendationSocialMedia[] = [
|
|
26
|
+
{
|
|
27
|
+
href: 'https://t.me',
|
|
28
|
+
text: 'Telegram',
|
|
29
|
+
...commonProps,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
href: 'https://vk.com',
|
|
33
|
+
text: 'Telegram',
|
|
34
|
+
...commonProps,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
href: 'https://ok.ru',
|
|
38
|
+
text: 'Telegram',
|
|
39
|
+
...commonProps,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
const socialMediaWithoutText: RecommendationSocialMedia[] = [
|
|
44
|
+
{
|
|
45
|
+
href: 'https://t.me',
|
|
46
|
+
...commonProps,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
href: 'https://vk.com',
|
|
50
|
+
...commonProps,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
href: 'https://ok.ru',
|
|
54
|
+
...commonProps,
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
const items = [
|
|
59
|
+
'Бесплатное подключение и обслуживание',
|
|
60
|
+
'Вход и подписание документов по биометрии',
|
|
61
|
+
'Работа со счетами, шаблонами и выпиской',
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
export const CAROUSEL_RECOMMENDATION_CARD: CarouselRecommendationCardContent = {
|
|
65
|
+
title: 'Подключаем мобильный банк для управления бизнесом',
|
|
66
|
+
description: 'Все возможности банка для бизнеса в вашем смартфоне',
|
|
67
|
+
items,
|
|
68
|
+
icon,
|
|
69
|
+
socialMedia: socialMediaWithText,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const CAROUSEL_RECOMMENDATION_CARD_SIMPLE: CarouselRecommendationCardContent = {
|
|
73
|
+
title: 'Подключаем мобильный банк для управления бизнесом',
|
|
74
|
+
description: 'Все возможности банка для бизнеса в вашем смартфоне',
|
|
75
|
+
items,
|
|
76
|
+
icon,
|
|
77
|
+
socialMedia: socialMediaWithoutText,
|
|
78
|
+
};
|
|
79
|
+
export const CAROUSEL_RECOMMENDATION_CARD_WITHOUT_LIST: CarouselRecommendationCardContent = {
|
|
80
|
+
title: 'Подключаем мобильный банк для управления бизнесом',
|
|
81
|
+
description: 'Все возможности банка для бизнеса в вашем смартфоне',
|
|
82
|
+
icon,
|
|
83
|
+
socialMedia: socialMediaWithoutText,
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export const CAROUSEL_RECOMMENDATION_CARD_SECONDARY: CarouselRecommendationCardContent = {
|
|
87
|
+
title: 'Россельхозбанк',
|
|
88
|
+
description: 'Описание',
|
|
89
|
+
align: 'text-left',
|
|
90
|
+
icon,
|
|
91
|
+
items: ['Свежие новости', 'Акции и предложенияа', 'Ставки и катировки'],
|
|
92
|
+
version: 'secondary',
|
|
93
|
+
socialMedia: socialMediaWithoutText,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export default {
|
|
97
|
+
default: (
|
|
98
|
+
<div className="container grid grid-cols-12 mb-1">
|
|
99
|
+
<CarouselRecommendationCard className="col-span-12" {...CAROUSEL_RECOMMENDATION_CARD} />
|
|
100
|
+
</div>
|
|
101
|
+
),
|
|
102
|
+
secondary: (
|
|
103
|
+
<div className="container grid grid-cols-12 mb-1">
|
|
104
|
+
<CarouselRecommendationCard
|
|
105
|
+
className="col-span-12"
|
|
106
|
+
version="secondary"
|
|
107
|
+
{...CAROUSEL_RECOMMENDATION_CARD}
|
|
108
|
+
/>
|
|
109
|
+
</div>
|
|
110
|
+
),
|
|
111
|
+
secondaryCenter: (
|
|
112
|
+
<div className="container grid grid-cols-12 mb-1">
|
|
113
|
+
<CarouselRecommendationCard
|
|
114
|
+
className="col-span-12"
|
|
115
|
+
version="secondary"
|
|
116
|
+
align="text-center"
|
|
117
|
+
{...CAROUSEL_RECOMMENDATION_CARD_SECONDARY}
|
|
118
|
+
/>
|
|
119
|
+
</div>
|
|
120
|
+
),
|
|
121
|
+
gray: (
|
|
122
|
+
<div className="container grid grid-cols-12 mb-1">
|
|
123
|
+
<CarouselRecommendationCard
|
|
124
|
+
className="col-span-12"
|
|
125
|
+
version="gray"
|
|
126
|
+
{...CAROUSEL_RECOMMENDATION_CARD}
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
),
|
|
130
|
+
socialMediaWithoutText: (
|
|
131
|
+
<div className="container grid grid-cols-12 mb-1">
|
|
132
|
+
<CarouselRecommendationCard
|
|
133
|
+
className="col-span-12"
|
|
134
|
+
version="gray"
|
|
135
|
+
{...CAROUSEL_RECOMMENDATION_CARD_SIMPLE}
|
|
136
|
+
/>
|
|
137
|
+
</div>
|
|
138
|
+
),
|
|
139
|
+
cardWithoutList: (
|
|
140
|
+
<div className="container grid grid-cols-12 mb-1">
|
|
141
|
+
<CarouselRecommendationCard
|
|
142
|
+
className="col-span-12"
|
|
143
|
+
version="gray"
|
|
144
|
+
{...CAROUSEL_RECOMMENDATION_CARD_WITHOUT_LIST}
|
|
145
|
+
/>
|
|
146
|
+
</div>
|
|
147
|
+
),
|
|
148
|
+
};
|