@redneckz/wildless-cms-uni-blocks 0.10.6 → 0.10.7
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/bundle.umd.js +198 -266
- 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/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/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 +4 -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/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/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/hooks/useForm.js +2 -2
- package/dist/hooks/useForm.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 +4 -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/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/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/hooks/useForm.js +2 -2
- package/lib/hooks/useForm.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 +363 -265
- 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/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/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 +4 -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/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/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/hooks/useForm.js +2 -2
- package/mobile/dist/hooks/useForm.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 +4 -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/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/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/hooks/useForm.js +2 -2
- package/mobile/lib/hooks/useForm.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 +4 -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/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/Headline/Headline.tsx +10 -5
- package/mobile/src/components/Headline/headlineVersionStyles.ts +7 -7
- package/mobile/src/hooks/useForm.ts +17 -14
- 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 +4 -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/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/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/hooks/useForm.ts +17 -14
- 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,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;
|
|
@@ -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;
|
|
@@ -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
|
+
};
|
|
@@ -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
|
|
|
@@ -32,22 +32,25 @@ export const useForm = <FormState extends Record<string, any>>(
|
|
|
32
32
|
|
|
33
33
|
const handlersMap = useRef<Partial<Record<keyof FormState, (value: any) => void>>>({});
|
|
34
34
|
|
|
35
|
-
const field: FormFieldRegisterer<FormState> = (
|
|
36
|
-
|
|
37
|
-
handlersMap.current
|
|
38
|
-
|
|
35
|
+
const field: FormFieldRegisterer<FormState> = useCallback(
|
|
36
|
+
(fieldName) => {
|
|
37
|
+
if (!handlersMap.current) {
|
|
38
|
+
handlersMap.current = {};
|
|
39
|
+
}
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
handlersMap.current[fieldName] ||= (value) => {
|
|
42
|
+
setFormState((prev) => ({ ...prev, [fieldName]: value }));
|
|
43
|
+
setDirtyFieldsMap((prev) => ({ ...prev, [fieldName]: true }));
|
|
44
|
+
};
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
return {
|
|
47
|
+
value: formState[fieldName],
|
|
48
|
+
isDirty: isDirtyForm || dirtyFieldsMap[fieldName],
|
|
49
|
+
onChange: handlersMap.current[fieldName],
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
[formState, isDirtyForm, dirtyFieldsMap],
|
|
53
|
+
);
|
|
51
54
|
|
|
52
55
|
const reset = useCallback(() => {
|
|
53
56
|
setFormState(initialState);
|
|
@@ -18,10 +18,14 @@ export const Checkbox = JSX<CheckboxProps>(
|
|
|
18
18
|
({ className, value, text, disabled, isRadio, onChange }) => {
|
|
19
19
|
const handleChange = useCallback(
|
|
20
20
|
(e: PreventableEvent) => {
|
|
21
|
+
if (disabled) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
e.preventDefault();
|
|
22
26
|
onChange && onChange(!value);
|
|
23
27
|
},
|
|
24
|
-
[onChange, value],
|
|
28
|
+
[onChange, disabled, value],
|
|
25
29
|
);
|
|
26
30
|
|
|
27
31
|
const icon = isRadio ? (
|