@redneckz/wildless-cms-uni-blocks 0.3.57 → 0.3.58
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 +341 -82
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/SafeIcon.svg +1 -1
- package/dist/components/Blocks.d.ts +1 -1
- package/dist/components/Blocks.js +2 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/dist/components/Calculator/BonusCalculatorForm.js +40 -0
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -0
- package/dist/components/Calculator/Calculator.d.ts +5 -0
- package/dist/components/Calculator/Calculator.js +46 -0
- package/dist/components/Calculator/Calculator.js.map +1 -0
- package/dist/components/Calculator/CalculatorContent.d.ts +110 -0
- package/dist/components/{ProductGalleryGreen/ProductGalleryGreenContent.js → Calculator/CalculatorContent.js} +1 -1
- package/dist/components/Calculator/CalculatorContent.js.map +1 -0
- package/dist/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/dist/components/Calculator/CalculatorValueBlock.js +9 -0
- package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -0
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +5 -0
- package/dist/components/Calculator/CreditCalculatorForm.js +51 -0
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -0
- package/dist/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/dist/components/Calculator/DepositCalculatorForm.js +41 -0
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -0
- package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
- package/dist/components/Calculator/EmbeddableCalcBlocks.js +13 -0
- package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
- package/dist/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
- package/dist/components/Calculator/MortgageCalculatorForm.js +49 -0
- package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -0
- package/dist/components/Calculator/constants.d.ts +7 -0
- package/dist/components/Calculator/constants.js +10 -0
- package/dist/components/Calculator/constants.js.map +1 -0
- package/dist/components/Calculator/getCalculatorParams.d.ts +7 -0
- package/dist/components/Calculator/getCalculatorParams.js +11 -0
- package/dist/components/Calculator/getCalculatorParams.js.map +1 -0
- package/dist/components/Calculator/getCreditRate.d.ts +7 -0
- package/dist/components/Calculator/getCreditRate.js +13 -0
- package/dist/components/Calculator/getCreditRate.js.map +1 -0
- package/dist/components/Calculator/getDefaultMonths.d.ts +2 -0
- package/dist/components/Calculator/getDefaultMonths.js +8 -0
- package/dist/components/Calculator/getDefaultMonths.js.map +1 -0
- package/dist/components/Calculator/getDefaultSum.d.ts +2 -0
- package/dist/components/Calculator/getDefaultSum.js +8 -0
- package/dist/components/Calculator/getDefaultSum.js.map +1 -0
- package/dist/components/Calculator/getMonthlyPayment.d.ts +11 -0
- package/dist/components/Calculator/getMonthlyPayment.js +19 -0
- package/dist/components/Calculator/getMonthlyPayment.js.map +1 -0
- package/dist/components/Calculator/renderButtonSection.d.ts +1 -0
- package/dist/components/Calculator/renderButtonSection.js +9 -0
- package/dist/components/Calculator/renderButtonSection.js.map +1 -0
- package/dist/components/Calculator/renderCalculatorList.d.ts +10 -0
- package/dist/components/Calculator/renderCalculatorList.js +17 -0
- package/dist/components/Calculator/renderCalculatorList.js.map +1 -0
- package/dist/components/Calculator/renderInitialFeeInput.d.ts +10 -0
- package/dist/components/Calculator/renderInitialFeeInput.js +18 -0
- package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -0
- package/dist/components/Calculator/renderMonthsInput.d.ts +11 -0
- package/dist/components/Calculator/renderMonthsInput.js +15 -0
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -0
- package/dist/components/Calculator/renderProposal.d.ts +1 -0
- package/dist/components/Calculator/renderProposal.js +10 -0
- package/dist/components/Calculator/renderProposal.js.map +1 -0
- package/dist/components/Calculator/renderProposalMortgage.d.ts +7 -0
- package/dist/components/Calculator/renderProposalMortgage.js +9 -0
- package/dist/components/Calculator/renderProposalMortgage.js.map +1 -0
- package/dist/components/Calculator/renderRate.d.ts +8 -0
- package/dist/components/Calculator/renderRate.js +9 -0
- package/dist/components/Calculator/renderRate.js.map +1 -0
- package/dist/components/Calculator/renderRealEstateValue.d.ts +10 -0
- package/dist/components/Calculator/renderRealEstateValue.js +15 -0
- package/dist/components/Calculator/renderRealEstateValue.js.map +1 -0
- package/dist/components/Calculator/renderWantedSumInput.d.ts +13 -0
- package/dist/components/Calculator/renderWantedSumInput.js +19 -0
- package/dist/components/Calculator/renderWantedSumInput.js.map +1 -0
- package/dist/components/ContentPage/ContentPage.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +37 -8
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
- package/dist/types.d.ts +1 -0
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.js +2 -3
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/dist/ui-kit/Tabs/TabsProps.d.ts +2 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.d.ts +1 -1
- package/lib/components/Blocks.js +2 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/lib/components/Calculator/BonusCalculatorForm.js +38 -0
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -0
- package/lib/components/Calculator/Calculator.d.ts +5 -0
- package/lib/components/{ProductGalleryGreen/ProductGalleryGreen.fixture.d.ts → Calculator/Calculator.fixture.d.ts} +1 -1
- package/lib/components/Calculator/Calculator.js +44 -0
- package/lib/components/Calculator/Calculator.js.map +1 -0
- package/lib/components/Calculator/CalculatorContent.d.ts +110 -0
- package/lib/components/Calculator/CalculatorContent.js +2 -0
- package/lib/components/Calculator/CalculatorContent.js.map +1 -0
- package/lib/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/lib/components/Calculator/CalculatorValueBlock.js +7 -0
- package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -0
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +5 -0
- package/lib/components/Calculator/CreditCalculatorForm.js +49 -0
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -0
- package/lib/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/lib/components/Calculator/DepositCalculatorForm.js +39 -0
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -0
- package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
- package/lib/components/Calculator/EmbeddableCalcBlocks.js +11 -0
- package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
- package/lib/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
- package/lib/components/Calculator/MortgageCalculatorForm.js +47 -0
- package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -0
- package/lib/components/Calculator/constants.d.ts +7 -0
- package/lib/components/Calculator/constants.js +8 -0
- package/lib/components/Calculator/constants.js.map +1 -0
- package/lib/components/Calculator/getCalculatorParams.d.ts +7 -0
- package/lib/components/Calculator/getCalculatorParams.js +8 -0
- package/lib/components/Calculator/getCalculatorParams.js.map +1 -0
- package/lib/components/Calculator/getCreditRate.d.ts +7 -0
- package/lib/components/Calculator/getCreditRate.js +10 -0
- package/lib/components/Calculator/getCreditRate.js.map +1 -0
- package/lib/components/Calculator/getDefaultMonths.d.ts +2 -0
- package/lib/components/Calculator/getDefaultMonths.js +5 -0
- package/lib/components/Calculator/getDefaultMonths.js.map +1 -0
- package/lib/components/Calculator/getDefaultSum.d.ts +2 -0
- package/lib/components/Calculator/getDefaultSum.js +5 -0
- package/lib/components/Calculator/getDefaultSum.js.map +1 -0
- package/lib/components/Calculator/getMonthlyPayment.d.ts +11 -0
- package/lib/components/Calculator/getMonthlyPayment.js +16 -0
- package/lib/components/Calculator/getMonthlyPayment.js.map +1 -0
- package/lib/components/Calculator/renderButtonSection.d.ts +1 -0
- package/lib/components/Calculator/renderButtonSection.js +6 -0
- package/lib/components/Calculator/renderButtonSection.js.map +1 -0
- package/lib/components/Calculator/renderCalculatorList.d.ts +10 -0
- package/lib/components/Calculator/renderCalculatorList.js +14 -0
- package/lib/components/Calculator/renderCalculatorList.js.map +1 -0
- package/lib/components/Calculator/renderInitialFeeInput.d.ts +10 -0
- package/lib/components/Calculator/renderInitialFeeInput.js +15 -0
- package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -0
- package/lib/components/Calculator/renderMonthsInput.d.ts +11 -0
- package/lib/components/Calculator/renderMonthsInput.js +12 -0
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -0
- package/lib/components/Calculator/renderProposal.d.ts +1 -0
- package/lib/components/Calculator/renderProposal.js +7 -0
- package/lib/components/Calculator/renderProposal.js.map +1 -0
- package/lib/components/Calculator/renderProposalMortgage.d.ts +7 -0
- package/lib/components/Calculator/renderProposalMortgage.js +6 -0
- package/lib/components/Calculator/renderProposalMortgage.js.map +1 -0
- package/lib/components/Calculator/renderRate.d.ts +8 -0
- package/lib/components/Calculator/renderRate.js +6 -0
- package/lib/components/Calculator/renderRate.js.map +1 -0
- package/lib/components/Calculator/renderRealEstateValue.d.ts +10 -0
- package/lib/components/Calculator/renderRealEstateValue.js +12 -0
- package/lib/components/Calculator/renderRealEstateValue.js.map +1 -0
- package/lib/components/Calculator/renderWantedSumInput.d.ts +13 -0
- package/lib/components/Calculator/renderWantedSumInput.js +16 -0
- package/lib/components/Calculator/renderWantedSumInput.js.map +1 -0
- package/lib/components/ContentPage/ContentPage.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -0
- package/lib/components/ProductGallery/ProductGallery.js +37 -8
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
- package/lib/types.d.ts +1 -0
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/lib/ui-kit/Tabs/TabsProps.d.ts +2 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +40 -0
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -0
- package/mobile/dist/components/Calculator/Calculator.d.ts +5 -0
- package/mobile/dist/components/Calculator/Calculator.js +46 -0
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -0
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +110 -0
- package/mobile/dist/components/{ProductGalleryGreen/ProductGalleryGreenContent.js → Calculator/CalculatorContent.js} +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.js.map +1 -0
- package/mobile/dist/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js +9 -0
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +51 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -0
- package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +41 -0
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -0
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +13 -0
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +49 -0
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -0
- package/mobile/dist/components/Calculator/constants.d.ts +7 -0
- package/mobile/dist/components/Calculator/constants.js +10 -0
- package/mobile/dist/components/Calculator/constants.js.map +1 -0
- package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +7 -0
- package/mobile/dist/components/Calculator/getCalculatorParams.js +11 -0
- package/mobile/dist/components/Calculator/getCalculatorParams.js.map +1 -0
- package/mobile/dist/components/Calculator/getCreditRate.d.ts +7 -0
- package/mobile/dist/components/Calculator/getCreditRate.js +13 -0
- package/mobile/dist/components/Calculator/getCreditRate.js.map +1 -0
- package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +2 -0
- package/mobile/dist/components/Calculator/getDefaultMonths.js +8 -0
- package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -0
- package/mobile/dist/components/Calculator/getDefaultSum.d.ts +2 -0
- package/mobile/dist/components/Calculator/getDefaultSum.js +8 -0
- package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -0
- package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +11 -0
- package/mobile/dist/components/Calculator/getMonthlyPayment.js +19 -0
- package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -0
- package/mobile/dist/components/Calculator/renderButtonSection.d.ts +1 -0
- package/mobile/dist/components/Calculator/renderButtonSection.js +9 -0
- package/mobile/dist/components/Calculator/renderButtonSection.js.map +1 -0
- package/mobile/dist/components/Calculator/renderCalculatorList.d.ts +10 -0
- package/mobile/dist/components/Calculator/renderCalculatorList.js +17 -0
- package/mobile/dist/components/Calculator/renderCalculatorList.js.map +1 -0
- package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +10 -0
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js +18 -0
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -0
- package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +11 -0
- package/mobile/dist/components/Calculator/renderMonthsInput.js +15 -0
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -0
- package/mobile/dist/components/Calculator/renderProposal.d.ts +1 -0
- package/mobile/dist/components/Calculator/renderProposal.js +10 -0
- package/mobile/dist/components/Calculator/renderProposal.js.map +1 -0
- package/mobile/dist/components/Calculator/renderProposalMortgage.d.ts +7 -0
- package/mobile/dist/components/Calculator/renderProposalMortgage.js +9 -0
- package/mobile/dist/components/Calculator/renderProposalMortgage.js.map +1 -0
- package/mobile/dist/components/Calculator/renderRate.d.ts +8 -0
- package/mobile/dist/components/Calculator/renderRate.js +9 -0
- package/mobile/dist/components/Calculator/renderRate.js.map +1 -0
- package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +10 -0
- package/mobile/dist/components/Calculator/renderRealEstateValue.js +15 -0
- package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -0
- package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +13 -0
- package/mobile/dist/components/Calculator/renderWantedSumInput.js +19 -0
- package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -0
- package/mobile/dist/components/ContentPage/ContentPage.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
- package/mobile/dist/types.d.ts +1 -0
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +2 -3
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +2 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +38 -0
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -0
- package/mobile/lib/components/Calculator/Calculator.d.ts +5 -0
- package/mobile/lib/components/Calculator/Calculator.js +44 -0
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -0
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +110 -0
- package/mobile/lib/components/Calculator/CalculatorContent.js +2 -0
- package/mobile/lib/components/Calculator/CalculatorContent.js.map +1 -0
- package/mobile/lib/components/Calculator/CalculatorValueBlock.d.ts +8 -0
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js +7 -0
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -0
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +49 -0
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -0
- package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +39 -0
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -0
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +11 -0
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +11 -0
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -0
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +47 -0
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -0
- package/mobile/lib/components/Calculator/constants.d.ts +7 -0
- package/mobile/lib/components/Calculator/constants.js +8 -0
- package/mobile/lib/components/Calculator/constants.js.map +1 -0
- package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +7 -0
- package/mobile/lib/components/Calculator/getCalculatorParams.js +8 -0
- package/mobile/lib/components/Calculator/getCalculatorParams.js.map +1 -0
- package/mobile/lib/components/Calculator/getCreditRate.d.ts +7 -0
- package/mobile/lib/components/Calculator/getCreditRate.js +10 -0
- package/mobile/lib/components/Calculator/getCreditRate.js.map +1 -0
- package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +2 -0
- package/mobile/lib/components/Calculator/getDefaultMonths.js +5 -0
- package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -0
- package/mobile/lib/components/Calculator/getDefaultSum.d.ts +2 -0
- package/mobile/lib/components/Calculator/getDefaultSum.js +5 -0
- package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -0
- package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +11 -0
- package/mobile/lib/components/Calculator/getMonthlyPayment.js +16 -0
- package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -0
- package/mobile/lib/components/Calculator/renderButtonSection.d.ts +1 -0
- package/mobile/lib/components/Calculator/renderButtonSection.js +6 -0
- package/mobile/lib/components/Calculator/renderButtonSection.js.map +1 -0
- package/mobile/lib/components/Calculator/renderCalculatorList.d.ts +10 -0
- package/mobile/lib/components/Calculator/renderCalculatorList.js +14 -0
- package/mobile/lib/components/Calculator/renderCalculatorList.js.map +1 -0
- package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +10 -0
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js +15 -0
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -0
- package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +11 -0
- package/mobile/lib/components/Calculator/renderMonthsInput.js +12 -0
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -0
- package/mobile/lib/components/Calculator/renderProposal.d.ts +1 -0
- package/mobile/lib/components/Calculator/renderProposal.js +7 -0
- package/mobile/lib/components/Calculator/renderProposal.js.map +1 -0
- package/mobile/lib/components/Calculator/renderProposalMortgage.d.ts +7 -0
- package/mobile/lib/components/Calculator/renderProposalMortgage.js +6 -0
- package/mobile/lib/components/Calculator/renderProposalMortgage.js.map +1 -0
- package/mobile/lib/components/Calculator/renderRate.d.ts +8 -0
- package/mobile/lib/components/Calculator/renderRate.js +6 -0
- package/mobile/lib/components/Calculator/renderRate.js.map +1 -0
- package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +10 -0
- package/mobile/lib/components/Calculator/renderRealEstateValue.js +12 -0
- package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -0
- package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +13 -0
- package/mobile/lib/components/Calculator/renderWantedSumInput.js +16 -0
- package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -0
- package/mobile/lib/components/ContentPage/ContentPage.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +3 -6
- package/mobile/lib/types.d.ts +1 -0
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +0 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -1
- package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +2 -1
- package/mobile/src/common.css +7 -0
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +71 -0
- package/mobile/src/components/Calculator/Calculator.tsx +141 -0
- package/mobile/src/components/Calculator/CalculatorContent.ts +134 -0
- package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +25 -0
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +99 -0
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +69 -0
- package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +17 -0
- package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +88 -0
- package/mobile/src/components/Calculator/constants.ts +8 -0
- package/mobile/src/components/Calculator/getCalculatorParams.ts +16 -0
- package/mobile/src/components/Calculator/getCreditRate.ts +18 -0
- package/mobile/src/components/Calculator/getDefaultMonths.ts +7 -0
- package/mobile/src/components/Calculator/getDefaultSum.ts +7 -0
- package/mobile/src/components/Calculator/getMonthlyPayment.ts +32 -0
- package/mobile/src/components/Calculator/renderButtonSection.tsx +7 -0
- package/mobile/src/components/Calculator/renderCalculatorList.tsx +43 -0
- package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +37 -0
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +34 -0
- package/mobile/src/components/Calculator/renderProposal.tsx +14 -0
- package/mobile/src/components/Calculator/renderProposalMortgage.tsx +17 -0
- package/mobile/src/components/Calculator/renderRate.tsx +23 -0
- package/mobile/src/components/Calculator/renderRealEstateValue.tsx +33 -0
- package/mobile/src/components/Calculator/renderWantedSumInput.tsx +49 -0
- package/mobile/src/components/ContentPage/ContentPage.page.json +9 -8
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +8 -10
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +3 -6
- package/mobile/src/icons/SafeIcon.svg +7 -1
- package/mobile/src/types.ts +2 -0
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +7 -9
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/mobile/src/ui-kit/Tabs/TabsProps.ts +2 -1
- package/package.json +1 -1
- package/src/common.css +7 -0
- package/src/components/Blocks.ts +2 -2
- package/src/components/Calculator/BonusCalculatorForm.tsx +71 -0
- package/src/components/Calculator/Calculator.fixture.tsx +131 -0
- package/src/components/Calculator/Calculator.tsx +141 -0
- package/src/components/Calculator/CalculatorContent.ts +134 -0
- package/src/components/Calculator/CalculatorValueBlock.tsx +25 -0
- package/src/components/Calculator/CreditCalculatorForm.tsx +99 -0
- package/src/components/Calculator/DepositCalculatorForm.tsx +69 -0
- package/src/components/Calculator/EmbeddableCalcBlocks.tsx +17 -0
- package/src/components/Calculator/MortgageCalculatorForm.tsx +88 -0
- package/src/components/Calculator/constants.ts +8 -0
- package/src/components/Calculator/getCalculatorParams.ts +16 -0
- package/src/components/Calculator/getCreditRate.ts +18 -0
- package/src/components/Calculator/getDefaultMonths.ts +7 -0
- package/src/components/Calculator/getDefaultSum.ts +7 -0
- package/src/components/Calculator/getMonthlyPayment.ts +32 -0
- package/src/components/Calculator/renderButtonSection.tsx +7 -0
- package/src/components/Calculator/renderCalculatorList.tsx +43 -0
- package/src/components/Calculator/renderInitialFeeInput.tsx +37 -0
- package/src/components/Calculator/renderMonthsInput.tsx +34 -0
- package/src/components/Calculator/renderProposal.tsx +14 -0
- package/src/components/Calculator/renderProposalMortgage.tsx +17 -0
- package/src/components/Calculator/renderRate.tsx +23 -0
- package/src/components/Calculator/renderRealEstateValue.tsx +33 -0
- package/src/components/Calculator/renderWantedSumInput.tsx +49 -0
- package/src/components/ContentPage/ContentPage.page.json +9 -8
- package/src/components/ContentPage/ContentPage.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.example.json +8 -10
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +146 -104
- package/src/components/ProductGallery/ProductGallery.tsx +73 -24
- package/src/components/ProductGallery/ProductGalleryContent.ts +3 -6
- package/src/icons/SafeIcon.svg +7 -1
- package/src/types.ts +2 -0
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
- package/src/ui-kit/InputRange/InputRange.tsx +7 -9
- package/src/ui-kit/InputRange/InputRangeProps.ts +3 -1
- package/src/ui-kit/Tabs/TabsProps.ts +2 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -53
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
- package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
- package/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -51
- package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
- package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
- package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +0 -2
- package/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -53
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
- package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -51
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +0 -1
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.d.ts +0 -32
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js +0 -2
- package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreenContent.js.map +0 -1
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +0 -23
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +0 -120
- package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +0 -34
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.example.json +0 -23
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.fixture.tsx +0 -186
- package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +0 -120
- package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +0 -34
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { ProductBlockInner } from '../ProductBlock/ProductBlockInner.js';
|
|
4
|
-
const productGalleryGreenStyleMap = {
|
|
5
|
-
primary: 'bg-white text-primary-text',
|
|
6
|
-
secondary: 'bg-primary-main text-white',
|
|
7
|
-
};
|
|
8
|
-
const productBlockStyleMap = {
|
|
9
|
-
primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
|
|
10
|
-
secondary: { title: 'text-white', text: 'text-white/80' },
|
|
11
|
-
};
|
|
12
|
-
const productSlideStyleMap = {
|
|
13
|
-
primary: 'bg-white text-primary-text',
|
|
14
|
-
secondary: 'bg-primary-main text-white',
|
|
15
|
-
};
|
|
16
|
-
export const ProductGalleryGreen = JSX(({ className = '', context, slides = [], version = 'primary', anchor = null }) => {
|
|
17
|
-
const galleryNav = slides.map((s) => s.nav);
|
|
18
|
-
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
19
|
-
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
20
|
-
return (_jsxs("section", { id: anchor, className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
|
|
21
|
-
${productGalleryGreenStyleMap[version]}`, children: [_jsx("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context)) }), _jsx("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border", children: galleryNav.map((slide, i) => renderNavButton({
|
|
22
|
-
slide,
|
|
23
|
-
i,
|
|
24
|
-
activeSlideIndex,
|
|
25
|
-
onClick: () => setActiveSlideIndex(i),
|
|
26
|
-
version,
|
|
27
|
-
})) })] }));
|
|
28
|
-
});
|
|
29
|
-
function renderProductBlock(block, i, context) {
|
|
30
|
-
const { version } = block;
|
|
31
|
-
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
32
|
-
return (_jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: _jsx("div", { className: "flex grow", children: _jsx(ProductBlockInner, { className: `pl-[50px] z-[1] ${additionalClass}`, context: context, textBlockClassName: "mb-[154px]", ...block }) }) }, String(i)));
|
|
33
|
-
}
|
|
34
|
-
function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
|
|
35
|
-
const isActiveBtn = i === activeSlideIndex;
|
|
36
|
-
const btnClassName = isActiveBtn
|
|
37
|
-
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none'
|
|
38
|
-
: `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10
|
|
39
|
-
${productSlideStyleMap[version]}`;
|
|
40
|
-
const btnTitleClassName = isActiveBtn
|
|
41
|
-
? 'text-primary-text text-title-2xs'
|
|
42
|
-
: `text-base ${productBlockStyleMap[version].title}`;
|
|
43
|
-
const btnDescClassName = isActiveBtn
|
|
44
|
-
? 'text-secondary-text text-m-title-xs mt-2.5'
|
|
45
|
-
: `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
|
|
46
|
-
const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
|
|
47
|
-
return (_jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border font-sans relative overflow-hidden border-[1px] border-white/50 cursor-pointer text-left mx-1 grow basis-0
|
|
48
|
-
${btnClassName} ${additionalBorder}
|
|
49
|
-
`, children: _jsxs("div", { className: "border-0 px-6", children: [_jsx("div", { className: `font-medium ${btnTitleClassName}`, children: slide?.title }), _jsx("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide.description })] }) }, String(i)));
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=ProductGalleryGreen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryGreen.js","sourceRoot":"","sources":["../../../src/components/ProductGalleryGreen/ProductGalleryGreen.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
/** @title Кнопка под слайдом */
|
|
4
|
-
interface ProductGalleryNav {
|
|
5
|
-
/** @title Заголовок */
|
|
6
|
-
title: string;
|
|
7
|
-
/** @title Описание */
|
|
8
|
-
description: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @title Слайд
|
|
12
|
-
*/
|
|
13
|
-
export interface ProductSlide {
|
|
14
|
-
/** @title Превью содержимого слайда на навигации */
|
|
15
|
-
nav?: ProductGalleryNav;
|
|
16
|
-
/** @title Содержимое слайда */
|
|
17
|
-
productBlock: ProductBlockInnerContent;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @title Продуктовая галерея
|
|
21
|
-
*/
|
|
22
|
-
export interface ProductGalleryGreenContent {
|
|
23
|
-
/**
|
|
24
|
-
* @title Задержка
|
|
25
|
-
* @hidden //! temporary not used
|
|
26
|
-
*/
|
|
27
|
-
duration?: number;
|
|
28
|
-
/** @title Слайды */
|
|
29
|
-
slides?: ProductSlide[];
|
|
30
|
-
version?: BlockVersion;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryGreenContent.js","sourceRoot":"","sources":["../../../src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"slides": [
|
|
3
|
-
{
|
|
4
|
-
"nav": {
|
|
5
|
-
"title": "Заголовок",
|
|
6
|
-
"description": "Описание"
|
|
7
|
-
},
|
|
8
|
-
"productBlock": {
|
|
9
|
-
"title": "Продуктовая галерея",
|
|
10
|
-
"image": {
|
|
11
|
-
"format": "webp",
|
|
12
|
-
"size": {
|
|
13
|
-
"width": 608,
|
|
14
|
-
"height": 299
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"version": "primary",
|
|
18
|
-
"description": "Описание",
|
|
19
|
-
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
|
-
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
5
|
-
import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
|
|
6
|
-
import type { ProductGalleryGreenContent } from './ProductGalleryGreenContent';
|
|
7
|
-
|
|
8
|
-
export interface ProductGalleryProps extends ProductGalleryGreenContent, UniBlockProps {}
|
|
9
|
-
|
|
10
|
-
type StyleType = {
|
|
11
|
-
title: string;
|
|
12
|
-
text: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const productGalleryGreenStyleMap: Record<BlockVersion, string> = {
|
|
16
|
-
primary: 'bg-white text-primary-text',
|
|
17
|
-
secondary: 'bg-primary-main text-white',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const productBlockStyleMap: Record<BlockVersion, StyleType> = {
|
|
21
|
-
primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
|
|
22
|
-
secondary: { title: 'text-white', text: 'text-white/80' },
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const productSlideStyleMap: Record<BlockVersion, string> = {
|
|
26
|
-
primary: 'bg-white text-primary-text',
|
|
27
|
-
secondary: 'bg-primary-main text-white',
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const ProductGalleryGreen = JSX<ProductGalleryProps>(
|
|
31
|
-
({ className = '', context, slides = [], version = 'primary', anchor = null }) => {
|
|
32
|
-
const galleryNav = slides.map((s) => s.nav);
|
|
33
|
-
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
34
|
-
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<section
|
|
38
|
-
id={anchor}
|
|
39
|
-
className={`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
|
|
40
|
-
${productGalleryGreenStyleMap[version]}`}
|
|
41
|
-
>
|
|
42
|
-
<div
|
|
43
|
-
className="flex duration-1000 pb-14"
|
|
44
|
-
style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
|
|
45
|
-
role="list"
|
|
46
|
-
>
|
|
47
|
-
{galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context))}
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div className="flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border">
|
|
51
|
-
{galleryNav.map((slide, i) =>
|
|
52
|
-
renderNavButton({
|
|
53
|
-
slide,
|
|
54
|
-
i,
|
|
55
|
-
activeSlideIndex,
|
|
56
|
-
onClick: () => setActiveSlideIndex(i),
|
|
57
|
-
version,
|
|
58
|
-
}),
|
|
59
|
-
)}
|
|
60
|
-
</div>
|
|
61
|
-
</section>
|
|
62
|
-
);
|
|
63
|
-
},
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
function renderProductBlock(block: ProductBlockInnerContent, i: number, context) {
|
|
67
|
-
const { version } = block;
|
|
68
|
-
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
69
|
-
|
|
70
|
-
return (
|
|
71
|
-
<section
|
|
72
|
-
key={String(i)}
|
|
73
|
-
className="box-border relative flex grow-0 shrink-0 basis-full"
|
|
74
|
-
role="listitem"
|
|
75
|
-
>
|
|
76
|
-
<div className="flex grow">
|
|
77
|
-
<ProductBlockInner
|
|
78
|
-
className={`pl-[50px] z-[1] ${additionalClass}`}
|
|
79
|
-
context={context}
|
|
80
|
-
textBlockClassName="mb-[154px]"
|
|
81
|
-
{...block}
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
84
|
-
</section>
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
|
|
89
|
-
const isActiveBtn = i === activeSlideIndex;
|
|
90
|
-
|
|
91
|
-
const btnClassName = isActiveBtn
|
|
92
|
-
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none'
|
|
93
|
-
: `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10
|
|
94
|
-
${productSlideStyleMap[version]}`;
|
|
95
|
-
const btnTitleClassName = isActiveBtn
|
|
96
|
-
? 'text-primary-text text-title-2xs'
|
|
97
|
-
: `text-base ${productBlockStyleMap[version].title}`;
|
|
98
|
-
const btnDescClassName = isActiveBtn
|
|
99
|
-
? 'text-secondary-text text-m-title-xs mt-2.5'
|
|
100
|
-
: `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
|
|
101
|
-
|
|
102
|
-
const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
|
|
103
|
-
|
|
104
|
-
return (
|
|
105
|
-
<button
|
|
106
|
-
type="button"
|
|
107
|
-
key={String(i)}
|
|
108
|
-
onClick={onClick}
|
|
109
|
-
aria-label={slide?.title}
|
|
110
|
-
className={`box-border font-sans relative overflow-hidden border-[1px] border-white/50 cursor-pointer text-left mx-1 grow basis-0
|
|
111
|
-
${btnClassName} ${additionalBorder}
|
|
112
|
-
`}
|
|
113
|
-
>
|
|
114
|
-
<div className="border-0 px-6">
|
|
115
|
-
<div className={`font-medium ${btnTitleClassName}`}>{slide?.title}</div>
|
|
116
|
-
<div className={`text-secondary-text ${btnDescClassName}`}>{slide.description}</div>
|
|
117
|
-
</div>
|
|
118
|
-
</button>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
|
|
4
|
-
/** @title Кнопка под слайдом */
|
|
5
|
-
interface ProductGalleryNav {
|
|
6
|
-
/** @title Заголовок */
|
|
7
|
-
title: string;
|
|
8
|
-
/** @title Описание */
|
|
9
|
-
description: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @title Слайд
|
|
14
|
-
*/
|
|
15
|
-
export interface ProductSlide {
|
|
16
|
-
/** @title Превью содержимого слайда на навигации */
|
|
17
|
-
nav?: ProductGalleryNav;
|
|
18
|
-
/** @title Содержимое слайда */
|
|
19
|
-
productBlock: ProductBlockInnerContent;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @title Продуктовая галерея
|
|
24
|
-
*/
|
|
25
|
-
export interface ProductGalleryGreenContent {
|
|
26
|
-
/**
|
|
27
|
-
* @title Задержка
|
|
28
|
-
* @hidden //! temporary not used
|
|
29
|
-
*/
|
|
30
|
-
duration?: number;
|
|
31
|
-
/** @title Слайды */
|
|
32
|
-
slides?: ProductSlide[];
|
|
33
|
-
version?: BlockVersion;
|
|
34
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"slides": [
|
|
3
|
-
{
|
|
4
|
-
"nav": {
|
|
5
|
-
"title": "Заголовок",
|
|
6
|
-
"description": "Описание"
|
|
7
|
-
},
|
|
8
|
-
"productBlock": {
|
|
9
|
-
"title": "Продуктовая галерея",
|
|
10
|
-
"image": {
|
|
11
|
-
"format": "webp",
|
|
12
|
-
"size": {
|
|
13
|
-
"width": 608,
|
|
14
|
-
"height": 299
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"version": "primary",
|
|
18
|
-
"description": "Описание",
|
|
19
|
-
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { context } from '../../setup-fixture';
|
|
2
|
-
|
|
3
|
-
import type { Picture } from '../../model/Picture';
|
|
4
|
-
import { ProductGalleryGreen } from './ProductGalleryGreen';
|
|
5
|
-
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
6
|
-
|
|
7
|
-
const percentImage: Picture = {
|
|
8
|
-
src: '3-6-percent.png',
|
|
9
|
-
format: 'webp',
|
|
10
|
-
size: {
|
|
11
|
-
width: 338,
|
|
12
|
-
height: 420,
|
|
13
|
-
},
|
|
14
|
-
alt: 'Ставка от 3,6% годовых',
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const worker: Picture = {
|
|
18
|
-
src: 'money-2.png',
|
|
19
|
-
format: 'webp',
|
|
20
|
-
size: {
|
|
21
|
-
width: 280,
|
|
22
|
-
height: 280,
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const creditCard: Picture = {
|
|
27
|
-
src: 'credit-card-1.png',
|
|
28
|
-
format: 'webp',
|
|
29
|
-
size: {
|
|
30
|
-
width: 280,
|
|
31
|
-
height: 280,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const items = [
|
|
36
|
-
'Потребительский кредит по специальной процентной ставке',
|
|
37
|
-
'Получите деньги без залога и поручительства',
|
|
38
|
-
'Кредитный лимит до 5 млн рублей',
|
|
39
|
-
];
|
|
40
|
-
const buttons: ButtonWithIconProps[] = [
|
|
41
|
-
{
|
|
42
|
-
href: 'https://rshb.ru',
|
|
43
|
-
text: 'Подробнее',
|
|
44
|
-
target: '_blank',
|
|
45
|
-
version: 'primary',
|
|
46
|
-
},
|
|
47
|
-
];
|
|
48
|
-
|
|
49
|
-
const buttonsSecondary: ButtonWithIconProps[] = [
|
|
50
|
-
{
|
|
51
|
-
href: 'https://rshb.ru',
|
|
52
|
-
text: 'Подробнее',
|
|
53
|
-
target: '_blank',
|
|
54
|
-
version: 'secondary',
|
|
55
|
-
},
|
|
56
|
-
];
|
|
57
|
-
|
|
58
|
-
export default {
|
|
59
|
-
default: (
|
|
60
|
-
<div className="container grid grid-cols-12">
|
|
61
|
-
<ProductGalleryGreen
|
|
62
|
-
className="col-span-12"
|
|
63
|
-
context={context}
|
|
64
|
-
slides={[
|
|
65
|
-
{
|
|
66
|
-
nav: {
|
|
67
|
-
title: 'Кредит по одному документу',
|
|
68
|
-
description: 'Ставка от 5,5% годовых',
|
|
69
|
-
},
|
|
70
|
-
productBlock: {
|
|
71
|
-
title: 'Кредит по одному документу',
|
|
72
|
-
description: 'Ставка от 5,5% годовых',
|
|
73
|
-
headingType: 'h2',
|
|
74
|
-
items,
|
|
75
|
-
buttons,
|
|
76
|
-
image: percentImage,
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
nav: {
|
|
81
|
-
title: 'Для людей в возрасте',
|
|
82
|
-
description: 'Ставка до 7% годовых',
|
|
83
|
-
},
|
|
84
|
-
productBlock: {
|
|
85
|
-
title: 'Ставка от 12,5% годовых на срок до 3 лет!',
|
|
86
|
-
headingType: 'h2',
|
|
87
|
-
items,
|
|
88
|
-
buttons,
|
|
89
|
-
image: worker,
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
nav: {
|
|
94
|
-
title: 'Выгодно покупать',
|
|
95
|
-
description: 'Ставка от 5% годовых',
|
|
96
|
-
},
|
|
97
|
-
productBlock: {
|
|
98
|
-
title: 'Дополнительные бонусные баллы за покупки!',
|
|
99
|
-
headingType: 'h2',
|
|
100
|
-
items,
|
|
101
|
-
buttons,
|
|
102
|
-
image: creditCard,
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
nav: {
|
|
107
|
-
title: 'Карты Unionpay',
|
|
108
|
-
description: '120 дней льготный период',
|
|
109
|
-
},
|
|
110
|
-
productBlock: {
|
|
111
|
-
title: 'Карты Unionpay',
|
|
112
|
-
headingType: 'h2',
|
|
113
|
-
items,
|
|
114
|
-
buttons,
|
|
115
|
-
image: creditCard,
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
]}
|
|
119
|
-
/>
|
|
120
|
-
</div>
|
|
121
|
-
),
|
|
122
|
-
primary: (
|
|
123
|
-
<div className="container grid grid-cols-12">
|
|
124
|
-
<ProductGalleryGreen
|
|
125
|
-
className="col-span-12"
|
|
126
|
-
context={context}
|
|
127
|
-
version={'secondary'}
|
|
128
|
-
slides={[
|
|
129
|
-
{
|
|
130
|
-
nav: {
|
|
131
|
-
title: 'Кредит по одному документу',
|
|
132
|
-
description: 'Ставка от 5,5% годовых',
|
|
133
|
-
},
|
|
134
|
-
productBlock: {
|
|
135
|
-
title: 'Кредит по одному документу',
|
|
136
|
-
description: 'Кредит наличными без залога и поручительства, только по паспорту',
|
|
137
|
-
headingType: 'h2',
|
|
138
|
-
items,
|
|
139
|
-
buttons: buttonsSecondary,
|
|
140
|
-
image: percentImage,
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
nav: {
|
|
145
|
-
title: 'Для людей в возрасте',
|
|
146
|
-
description: 'Ставка до 7% годовых',
|
|
147
|
-
},
|
|
148
|
-
productBlock: {
|
|
149
|
-
title: 'Ставка от 12,5% годовых на срок до 3 лет!',
|
|
150
|
-
headingType: 'h2',
|
|
151
|
-
items,
|
|
152
|
-
buttons: buttonsSecondary,
|
|
153
|
-
image: worker,
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
nav: {
|
|
158
|
-
title: 'Выгодно покупать',
|
|
159
|
-
description: 'Ставка от 5% годовых',
|
|
160
|
-
},
|
|
161
|
-
productBlock: {
|
|
162
|
-
title: 'Дополнительные бонусные баллы за покупки!',
|
|
163
|
-
headingType: 'h2',
|
|
164
|
-
items,
|
|
165
|
-
buttons: buttonsSecondary,
|
|
166
|
-
image: creditCard,
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
nav: {
|
|
171
|
-
title: 'Карты Unionpay',
|
|
172
|
-
description: '120 дней льготный период',
|
|
173
|
-
},
|
|
174
|
-
productBlock: {
|
|
175
|
-
title: 'Карты Unionpay',
|
|
176
|
-
headingType: 'h2',
|
|
177
|
-
items,
|
|
178
|
-
buttons: buttonsSecondary,
|
|
179
|
-
image: creditCard,
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
]}
|
|
183
|
-
/>
|
|
184
|
-
</div>
|
|
185
|
-
),
|
|
186
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { UniBlockProps } from '../../types';
|
|
3
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
|
-
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
5
|
-
import { ProductBlockInner } from '../ProductBlock/ProductBlockInner';
|
|
6
|
-
import type { ProductGalleryGreenContent } from './ProductGalleryGreenContent';
|
|
7
|
-
|
|
8
|
-
export interface ProductGalleryProps extends ProductGalleryGreenContent, UniBlockProps {}
|
|
9
|
-
|
|
10
|
-
type StyleType = {
|
|
11
|
-
title: string;
|
|
12
|
-
text: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const productGalleryGreenStyleMap: Record<BlockVersion, string> = {
|
|
16
|
-
primary: 'bg-white text-primary-text',
|
|
17
|
-
secondary: 'bg-primary-main text-white',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const productBlockStyleMap: Record<BlockVersion, StyleType> = {
|
|
21
|
-
primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
|
|
22
|
-
secondary: { title: 'text-white', text: 'text-white/80' },
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const productSlideStyleMap: Record<BlockVersion, string> = {
|
|
26
|
-
primary: 'bg-white text-primary-text',
|
|
27
|
-
secondary: 'bg-primary-main text-white',
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const ProductGalleryGreen = JSX<ProductGalleryProps>(
|
|
31
|
-
({ className = '', context, slides = [], version = 'primary', anchor = null }) => {
|
|
32
|
-
const galleryNav = slides.map((s) => s.nav);
|
|
33
|
-
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
34
|
-
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<section
|
|
38
|
-
id={anchor}
|
|
39
|
-
className={`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${className}
|
|
40
|
-
${productGalleryGreenStyleMap[version]}`}
|
|
41
|
-
>
|
|
42
|
-
<div
|
|
43
|
-
className="flex duration-1000 pb-14"
|
|
44
|
-
style={{ transform: `translateX(-${activeSlideIndex}00%)` }}
|
|
45
|
-
role="list"
|
|
46
|
-
>
|
|
47
|
-
{galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i, context))}
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div className="flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border">
|
|
51
|
-
{galleryNav.map((slide, i) =>
|
|
52
|
-
renderNavButton({
|
|
53
|
-
slide,
|
|
54
|
-
i,
|
|
55
|
-
activeSlideIndex,
|
|
56
|
-
onClick: () => setActiveSlideIndex(i),
|
|
57
|
-
version,
|
|
58
|
-
}),
|
|
59
|
-
)}
|
|
60
|
-
</div>
|
|
61
|
-
</section>
|
|
62
|
-
);
|
|
63
|
-
},
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
function renderProductBlock(block: ProductBlockInnerContent, i: number, context) {
|
|
67
|
-
const { version } = block;
|
|
68
|
-
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
69
|
-
|
|
70
|
-
return (
|
|
71
|
-
<section
|
|
72
|
-
key={String(i)}
|
|
73
|
-
className="box-border relative flex grow-0 shrink-0 basis-full"
|
|
74
|
-
role="listitem"
|
|
75
|
-
>
|
|
76
|
-
<div className="flex grow">
|
|
77
|
-
<ProductBlockInner
|
|
78
|
-
className={`pl-[50px] z-[1] ${additionalClass}`}
|
|
79
|
-
context={context}
|
|
80
|
-
textBlockClassName="mb-[154px]"
|
|
81
|
-
{...block}
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
84
|
-
</section>
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
|
|
89
|
-
const isActiveBtn = i === activeSlideIndex;
|
|
90
|
-
|
|
91
|
-
const btnClassName = isActiveBtn
|
|
92
|
-
? 'bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none'
|
|
93
|
-
: `min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10
|
|
94
|
-
${productSlideStyleMap[version]}`;
|
|
95
|
-
const btnTitleClassName = isActiveBtn
|
|
96
|
-
? 'text-primary-text text-title-2xs'
|
|
97
|
-
: `text-base ${productBlockStyleMap[version].title}`;
|
|
98
|
-
const btnDescClassName = isActiveBtn
|
|
99
|
-
? 'text-secondary-text text-m-title-xs mt-2.5'
|
|
100
|
-
: `text-m-md mt-1.5 ${productBlockStyleMap[version].text}`;
|
|
101
|
-
|
|
102
|
-
const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
|
|
103
|
-
|
|
104
|
-
return (
|
|
105
|
-
<button
|
|
106
|
-
type="button"
|
|
107
|
-
key={String(i)}
|
|
108
|
-
onClick={onClick}
|
|
109
|
-
aria-label={slide?.title}
|
|
110
|
-
className={`box-border font-sans relative overflow-hidden border-[1px] border-white/50 cursor-pointer text-left mx-1 grow basis-0
|
|
111
|
-
${btnClassName} ${additionalBorder}
|
|
112
|
-
`}
|
|
113
|
-
>
|
|
114
|
-
<div className="border-0 px-6">
|
|
115
|
-
<div className={`font-medium ${btnTitleClassName}`}>{slide?.title}</div>
|
|
116
|
-
<div className={`text-secondary-text ${btnDescClassName}`}>{slide.description}</div>
|
|
117
|
-
</div>
|
|
118
|
-
</button>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
2
|
-
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
|
-
|
|
4
|
-
/** @title Кнопка под слайдом */
|
|
5
|
-
interface ProductGalleryNav {
|
|
6
|
-
/** @title Заголовок */
|
|
7
|
-
title: string;
|
|
8
|
-
/** @title Описание */
|
|
9
|
-
description: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @title Слайд
|
|
14
|
-
*/
|
|
15
|
-
export interface ProductSlide {
|
|
16
|
-
/** @title Превью содержимого слайда на навигации */
|
|
17
|
-
nav?: ProductGalleryNav;
|
|
18
|
-
/** @title Содержимое слайда */
|
|
19
|
-
productBlock: ProductBlockInnerContent;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @title Продуктовая галерея
|
|
24
|
-
*/
|
|
25
|
-
export interface ProductGalleryGreenContent {
|
|
26
|
-
/**
|
|
27
|
-
* @title Задержка
|
|
28
|
-
* @hidden //! temporary not used
|
|
29
|
-
*/
|
|
30
|
-
duration?: number;
|
|
31
|
-
/** @title Слайды */
|
|
32
|
-
slides?: ProductSlide[];
|
|
33
|
-
version?: BlockVersion;
|
|
34
|
-
}
|