@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
|
@@ -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;
|
|
@@ -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;
|
|
@@ -8,11 +8,9 @@ import { List } from '../../ui-kit/List/List';
|
|
|
8
8
|
import { style } from '../../utils/style';
|
|
9
9
|
import { SocialMedia } from '../Footer/SocialMedia';
|
|
10
10
|
import { Headline } from '../Headline/Headline';
|
|
11
|
+
import { BORDER_STYLE } from './cardStyle';
|
|
11
12
|
import type { CarouselRecommendationCardContent } from './CarouselRecommendationCardContent';
|
|
12
13
|
|
|
13
|
-
const BORDER_STYLE =
|
|
14
|
-
'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
15
|
-
|
|
16
14
|
export interface RecommendationCardProps extends CarouselRecommendationCardContent, UniBlockProps {}
|
|
17
15
|
|
|
18
16
|
export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
@@ -26,44 +24,40 @@ export const CarouselRecommendationCard = JSX<RecommendationCardProps>(
|
|
|
26
24
|
target,
|
|
27
25
|
title,
|
|
28
26
|
align = 'text-left',
|
|
29
|
-
version = 'primary',
|
|
30
27
|
...rest
|
|
31
28
|
}) => {
|
|
32
29
|
return (
|
|
33
30
|
<BlockWrapper
|
|
34
31
|
className={style(
|
|
35
|
-
'relative
|
|
32
|
+
'relative box-border p-default group-data-gray:bg-main-divider/50',
|
|
36
33
|
BORDER_STYLE,
|
|
37
34
|
className,
|
|
38
35
|
)}
|
|
39
|
-
version={version}
|
|
40
36
|
{...rest}
|
|
41
37
|
>
|
|
42
38
|
<LinkWrapper href={href} target={target}>
|
|
43
39
|
<Headline
|
|
44
|
-
className="mb-
|
|
40
|
+
className="mb-2"
|
|
45
41
|
title={title}
|
|
46
42
|
description={description}
|
|
47
43
|
headlineVersion="S"
|
|
48
44
|
isPadding={false}
|
|
49
45
|
align={align}
|
|
50
46
|
/>
|
|
51
|
-
|
|
52
|
-
{items
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</div>
|
|
57
|
-
{renderIconBlock(icon)}
|
|
47
|
+
{items.length ? (
|
|
48
|
+
<List className="flex flex-col gap-2" items={items} listItemSize="S" />
|
|
49
|
+
) : null}
|
|
50
|
+
{renderIcon(icon)}
|
|
51
|
+
{socialMedia.length ? <SocialMedia className="mt-5" media={socialMedia} /> : null}
|
|
58
52
|
</LinkWrapper>
|
|
59
53
|
</BlockWrapper>
|
|
60
54
|
);
|
|
61
55
|
},
|
|
62
56
|
);
|
|
63
57
|
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
);
|
|
58
|
+
const renderIcon = (icon?: Picture) =>
|
|
59
|
+
icon?.src || icon?.icon ? (
|
|
60
|
+
<div>
|
|
61
|
+
<Img image={icon} />
|
|
62
|
+
</div>
|
|
63
|
+
) : null;
|
|
@@ -4,7 +4,6 @@ import type { Picture } from '../../model/Picture';
|
|
|
4
4
|
import type { VNode } from '../../model/VNode';
|
|
5
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
6
6
|
import { Button } from '../../ui-kit/Button/Button';
|
|
7
|
-
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
8
7
|
import { Foldable } from '../../ui-kit/Foldable/Foldable';
|
|
9
8
|
import type { FoldablePartProps } from '../../ui-kit/Foldable/FoldablePartProps';
|
|
10
9
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
|
|
@@ -13,17 +12,16 @@ import { Icon } from '../../ui-kit/Icon/Icon';
|
|
|
13
12
|
import { Img } from '../../ui-kit/Img/Img';
|
|
14
13
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
15
14
|
import { style } from '../../utils/style';
|
|
16
|
-
import type {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './CarouselTariffsCardContent';
|
|
15
|
+
import type { CarouselTariffsCardContent } from './CarouselTariffsCardContent';
|
|
16
|
+
import { getPaddingStyle } from './getPaddingStyle';
|
|
17
|
+
import { renderCardInfo } from './renderCardInfo';
|
|
20
18
|
|
|
21
19
|
export interface CarouselTariffsCardProps extends CarouselTariffsCardContent, UniBlockProps {}
|
|
22
20
|
|
|
23
21
|
const VISIBLE_CELLS_COUNT = 1;
|
|
24
22
|
|
|
25
23
|
export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
26
|
-
({ className = '', title, icon, isHighlighting, button, cardCells = [], ...rest }) => {
|
|
24
|
+
({ className = '', title, icon, isHighlighting = false, button, cardCells = [], ...rest }) => {
|
|
27
25
|
const cellsNode = cardCells.map(renderCardInfo);
|
|
28
26
|
const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
|
|
29
27
|
const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
|
|
@@ -31,8 +29,8 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
31
29
|
return (
|
|
32
30
|
<BlockWrapper
|
|
33
31
|
className={style(
|
|
34
|
-
'relative border border-gray
|
|
35
|
-
|
|
32
|
+
'relative border border-gray flex flex-col',
|
|
33
|
+
getPaddingStyle(isHighlighting),
|
|
36
34
|
className,
|
|
37
35
|
)}
|
|
38
36
|
{...rest}
|
|
@@ -59,14 +57,10 @@ export const CarouselTariffsCard = JSX<CarouselTariffsCardProps>(
|
|
|
59
57
|
|
|
60
58
|
const renderIconBlock = (icon?: Picture) => (
|
|
61
59
|
<div className="w-[267px] min-w-[267px] self-center">
|
|
62
|
-
{icon?.src ? <Img image={icon} /> : null}
|
|
63
|
-
{icon?.icon ? <Img image={icon} /> : null}
|
|
60
|
+
{icon?.src || icon?.icon ? <Img image={icon} /> : null}
|
|
64
61
|
</div>
|
|
65
62
|
);
|
|
66
63
|
|
|
67
|
-
const getHitStyle = (isHighlighting?: boolean): string =>
|
|
68
|
-
isHighlighting ? 'mt-8 pt-20' : 'mt-20 pt-8';
|
|
69
|
-
|
|
70
64
|
const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode => (
|
|
71
65
|
<button
|
|
72
66
|
className="w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center"
|
|
@@ -82,24 +76,6 @@ const renderFoldButton = ({ isUnfolded, onToggle }: FoldablePartProps): VNode =>
|
|
|
82
76
|
</button>
|
|
83
77
|
);
|
|
84
78
|
|
|
85
|
-
const renderCardInfo = (cell: TariffsCardCellProps, i: number): VNode => {
|
|
86
|
-
const { title, description, buttons } = cell;
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<div key={String(i)} className="py-5 border-b border-main-divider">
|
|
90
|
-
{title ? (
|
|
91
|
-
<div className="text-secondary-text text-m-light opacity-80">{cell.title}</div>
|
|
92
|
-
) : null}
|
|
93
|
-
{description ? (
|
|
94
|
-
<div className="text-primary-text text-h6 mt-1">{cell.description}</div>
|
|
95
|
-
) : null}
|
|
96
|
-
{buttons?.length ? (
|
|
97
|
-
<div className="text-primary-main">{renderButtonsSection(buttons)}</div>
|
|
98
|
-
) : null}
|
|
99
|
-
</div>
|
|
100
|
-
);
|
|
101
|
-
};
|
|
102
|
-
|
|
103
79
|
const renderHitIcon = (): VNode => (
|
|
104
80
|
<div className="absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]">
|
|
105
81
|
<Icon iconVersion="black" name="HeartIcon" width="23" height="22" />
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const descriptionSize = 'text-l';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { VNode } from '../../model/VNode';
|
|
2
|
+
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection';
|
|
3
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
4
|
+
import { TariffsCardCellProps } from './CarouselTariffsCardContent';
|
|
5
|
+
import { descriptionSize } from './descriptionSize';
|
|
6
|
+
|
|
7
|
+
export const renderCardInfo = (cell: TariffsCardCellProps, i: number): VNode => {
|
|
8
|
+
const { title, description, buttons } = cell;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<div key={String(i)} className="py-5 border-b border-main-divider">
|
|
12
|
+
{title ? (
|
|
13
|
+
<div className="opacity-80">
|
|
14
|
+
<Text size="text-m" color="text-secondary-text">
|
|
15
|
+
{title}
|
|
16
|
+
</Text>
|
|
17
|
+
</div>
|
|
18
|
+
) : null}
|
|
19
|
+
{description ? (
|
|
20
|
+
<div className="mt-1">
|
|
21
|
+
<Text size={descriptionSize} color="text-primary-text">
|
|
22
|
+
{description}
|
|
23
|
+
</Text>
|
|
24
|
+
</div>
|
|
25
|
+
) : null}
|
|
26
|
+
{buttons?.length ? (
|
|
27
|
+
<div className="text-primary-main">{renderButtonsSection(buttons)}</div>
|
|
28
|
+
) : null}
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
@@ -43,7 +43,7 @@ export const Footer = JSX<FooterProps>(({ className = '', ...rest }) => {
|
|
|
43
43
|
{...rest}
|
|
44
44
|
/>
|
|
45
45
|
<SearchBar className="grow" />
|
|
46
|
-
<SocialMedia className="pb-
|
|
46
|
+
<SocialMedia className="pt-6 pb-6" media={socialMedia} />
|
|
47
47
|
<HorizontalNavigation title={horizontalNavigationTitle} links={relatedEnterprises} />
|
|
48
48
|
<TextInformation links={documents} />
|
|
49
49
|
</BlockWrapper>
|
|
@@ -8,7 +8,7 @@ export interface SocialMediaProps {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export const SocialMedia = JSX<SocialMediaProps>(({ className = '', media }) => (
|
|
11
|
-
<div className={`flex gap-2 items-start justify-start
|
|
11
|
+
<div className={`flex gap-2 items-start justify-start ${className}`}>
|
|
12
12
|
{media?.map((_, index) => (
|
|
13
13
|
<MediaButton key={String(index)} {..._} />
|
|
14
14
|
))}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
2
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
4
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
4
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
|
|
6
|
-
import type { TextSize } from '../../ui-kit/Text/TextProps';
|
|
7
5
|
import { style } from '../../utils/style';
|
|
8
|
-
import type { HeadlineContent } from './HeadlineContent';
|
|
9
6
|
import { headlineVersionStyles } from './headlineVersionStyles';
|
|
7
|
+
import type { TextSize } from '../../ui-kit/Text/TextProps';
|
|
8
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
9
|
+
import type { HeadlineContent } from './HeadlineContent';
|
|
10
10
|
|
|
11
11
|
export interface HeadlineProps extends UniBlockProps, HeadlineContent {}
|
|
12
12
|
|
|
@@ -25,10 +25,11 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
25
25
|
}) => {
|
|
26
26
|
const versionStyle = headlineVersionStyles[headlineVersion];
|
|
27
27
|
const paddingStyle = isPadding ? 'p-default' : '';
|
|
28
|
+
const descriptionStyle = { marginTop: versionStyle.descriptionStyle };
|
|
28
29
|
|
|
29
30
|
return (
|
|
30
31
|
<BlockWrapper
|
|
31
|
-
className={style(
|
|
32
|
+
className={style(paddingStyle, className)}
|
|
32
33
|
version={version}
|
|
33
34
|
isTheme={isTheme}
|
|
34
35
|
{...rest}
|
|
@@ -42,7 +43,11 @@ export const Headline = JSX<HeadlineProps>(
|
|
|
42
43
|
/>
|
|
43
44
|
) : null}
|
|
44
45
|
{description ? (
|
|
45
|
-
<Paragraph
|
|
46
|
+
<Paragraph
|
|
47
|
+
size={versionStyle.descriptionSize as TextSize}
|
|
48
|
+
align={align}
|
|
49
|
+
{...descriptionStyle}
|
|
50
|
+
>
|
|
46
51
|
{description}
|
|
47
52
|
</Paragraph>
|
|
48
53
|
) : null}
|
|
@@ -5,40 +5,40 @@ import type { TextSize, TitleSize } from '../../ui-kit/Text/TextProps';
|
|
|
5
5
|
export const headlineVersionStyles: Record<
|
|
6
6
|
HeadlineVersion,
|
|
7
7
|
{
|
|
8
|
-
wrapper: string;
|
|
9
8
|
title: HeadingCommonProps;
|
|
10
9
|
descriptionSize: TextSize | TitleSize;
|
|
10
|
+
descriptionStyle: string;
|
|
11
11
|
}
|
|
12
12
|
> = {
|
|
13
13
|
XXL: {
|
|
14
|
-
wrapper: 'gap-[18px]',
|
|
15
14
|
title: { headingType: 'h0', as: 'h1' },
|
|
16
15
|
descriptionSize: 'text-h5',
|
|
16
|
+
descriptionStyle: 'mt-5',
|
|
17
17
|
},
|
|
18
18
|
XL: {
|
|
19
|
-
wrapper: 'gap-4',
|
|
20
19
|
title: { headingType: 'h1', as: 'h1' },
|
|
21
20
|
descriptionSize: 'text-xl-light',
|
|
21
|
+
descriptionStyle: 'mt-4',
|
|
22
22
|
},
|
|
23
23
|
L: {
|
|
24
|
-
wrapper: 'gap-4',
|
|
25
24
|
title: { headingType: 'h2', as: 'h2' },
|
|
26
25
|
descriptionSize: 'text-xl-light',
|
|
26
|
+
descriptionStyle: 'mt-4',
|
|
27
27
|
},
|
|
28
28
|
M: {
|
|
29
|
-
wrapper: 'gap-3',
|
|
30
29
|
title: { headingType: 'h3', as: 'h3' },
|
|
31
30
|
descriptionSize: 'text-xl-light',
|
|
31
|
+
descriptionStyle: 'mt-3',
|
|
32
32
|
},
|
|
33
33
|
S: {
|
|
34
|
-
wrapper: 'gap-2',
|
|
35
34
|
title: { headingType: 'h4', as: 'h4' },
|
|
36
35
|
descriptionSize: 'text-xl-light',
|
|
36
|
+
descriptionStyle: 'mt-2',
|
|
37
37
|
},
|
|
38
38
|
XS: {
|
|
39
|
-
wrapper: 'gap-2',
|
|
40
39
|
title: { headingType: 'h5', as: 'h5' },
|
|
41
40
|
descriptionSize: 'text-l-light',
|
|
41
|
+
descriptionStyle: 'mt-2',
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { RenderTabProps } from './renderTab';
|
|
3
|
+
import { renderTab } from './renderTab';
|
|
4
|
+
import type { TabData } from './TabsContent';
|
|
5
|
+
|
|
6
|
+
interface CenteredTabsProps extends RenderTabProps {
|
|
7
|
+
tabs?: TabData[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const CenteredTabs = JSX<CenteredTabsProps>(({ tabs, ...rest }) => (
|
|
11
|
+
<div className="flex p-1 m-auto bg-main-gray rounded-md">{tabs?.map(renderTab({ ...rest }))}</div>
|
|
12
|
+
));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import { getLinkTabClassName } from './tabItemClasses';
|
|
4
|
-
import type { LinkTabData, TabData } from './TabsContent';
|
|
4
|
+
import type { LinkTabData, TabData, TabsMode } from './TabsContent';
|
|
5
5
|
|
|
6
6
|
interface LinkTabProps {
|
|
7
7
|
tab: LinkTabData;
|
|
8
8
|
currentTab?: TabData;
|
|
9
|
-
isScrollable?: boolean;
|
|
10
9
|
onClick: (tab: TabData) => void;
|
|
10
|
+
tabsMode?: TabsMode;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export const LinkTab = JSX<LinkTabProps>((props) => {
|
|
14
|
-
const { tab, currentTab, onClick,
|
|
14
|
+
const { tab, currentTab, onClick, tabsMode } = props;
|
|
15
15
|
const active = currentTab?.type === 'link' && currentTab.href === tab.href;
|
|
16
16
|
|
|
17
17
|
const link = useLink();
|
|
@@ -25,12 +25,12 @@ export const LinkTab = JSX<LinkTabProps>((props) => {
|
|
|
25
25
|
return (
|
|
26
26
|
<a
|
|
27
27
|
role="tab"
|
|
28
|
-
className={getLinkTabClassName('link', active,
|
|
28
|
+
className={getLinkTabClassName('link', active, tabsMode)}
|
|
29
29
|
target={tab.target}
|
|
30
30
|
href={adjustedProps.href}
|
|
31
31
|
onClick={handleClick}
|
|
32
32
|
>
|
|
33
|
-
<span className={getLinkTabClassName('text', active,
|
|
33
|
+
<span className={getLinkTabClassName('text', active, tabsMode)}>{tab.text}</span>
|
|
34
34
|
</a>
|
|
35
35
|
);
|
|
36
36
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import
|
|
3
|
-
import type { TabData } from './TabsContent';
|
|
2
|
+
import { ScrollLeftButton, ScrollRightButton } from '../../ui-kit/Button/ArrowButton';
|
|
4
3
|
import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer';
|
|
5
4
|
import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListScroll';
|
|
6
|
-
import {
|
|
5
|
+
import type { RenderTabProps } from './renderTab';
|
|
7
6
|
import { renderTab } from './renderTab';
|
|
7
|
+
import type { TabData } from './TabsContent';
|
|
8
8
|
|
|
9
9
|
interface ScrollableTabsProps extends RenderTabProps {
|
|
10
10
|
tabs?: TabData[];
|
|
@@ -15,7 +15,7 @@ export type IsScrollButtonsShown = boolean[];
|
|
|
15
15
|
const scrollButtonStyle = 'absolute z-40 top-0';
|
|
16
16
|
|
|
17
17
|
export const ScrollableTabs = JSX<ScrollableTabsProps>((props) => {
|
|
18
|
-
const { tabs,
|
|
18
|
+
const { tabs, ...rest } = props;
|
|
19
19
|
|
|
20
20
|
const [containerRef, scroll] = useSwipeListScroll<HTMLDivElement>({
|
|
21
21
|
itemCount: tabs?.length || 0,
|
|
@@ -30,15 +30,7 @@ export const ScrollableTabs = JSX<ScrollableTabsProps>((props) => {
|
|
|
30
30
|
snapAlign="snap-start"
|
|
31
31
|
onVisibleIndicesChange={scroll.handleVisibleIndicesChange}
|
|
32
32
|
>
|
|
33
|
-
{tabs?.map(
|
|
34
|
-
renderTab({
|
|
35
|
-
onClick,
|
|
36
|
-
currentTab,
|
|
37
|
-
showCounter,
|
|
38
|
-
page,
|
|
39
|
-
isScrollable: true,
|
|
40
|
-
}),
|
|
41
|
-
)}
|
|
33
|
+
{tabs?.map(renderTab({ ...rest }))}
|
|
42
34
|
</SwipeListContainer>
|
|
43
35
|
</div>
|
|
44
36
|
{scroll.canScrollLeft ? (
|