@redneckz/wildless-cms-uni-blocks 0.3.56 → 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 +405 -97
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/SafeIcon.svg +1 -1
- package/dist/components/BlockContent.d.ts +2 -1
- package/dist/components/Blocks.d.ts +2 -1
- package/dist/components/Blocks.js +4 -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/GroupBlock/BlocksTypeProps.d.ts +36 -0
- package/{mobile/dist/components/ProductGalleryGreen/ProductGalleryGreenContent.js → dist/components/GroupBlock/BlocksTypeProps.js} +1 -1
- package/dist/components/GroupBlock/BlocksTypeProps.js.map +1 -0
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.js +9 -0
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
- package/dist/components/GroupBlock/GroupBlock.d.ts +9 -0
- package/dist/components/GroupBlock/GroupBlock.js +19 -0
- package/dist/components/GroupBlock/GroupBlock.js.map +1 -0
- package/dist/components/GroupBlock/GroupBlockContent.d.ts +21 -0
- package/dist/components/GroupBlock/GroupBlockContent.js +2 -0
- package/dist/components/GroupBlock/GroupBlockContent.js.map +1 -0
- package/dist/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
- package/dist/components/GroupBlock/GroupBlockTabs.js +18 -0
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -0
- package/dist/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
- package/dist/components/GroupBlock/GroupBlocksItem.js +20 -0
- package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -0
- package/dist/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
- package/dist/components/GroupBlock/filterBlocksByTag.js +7 -0
- package/dist/components/GroupBlock/filterBlocksByTag.js.map +1 -0
- package/dist/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
- package/dist/components/GroupBlock/renderBlocksTypes.js +16 -0
- package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -0
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -2
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +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/dist/utils/style2className.d.ts +1 -1
- package/dist/utils/style2className.js +3 -1
- package/dist/utils/style2className.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BlockContent.d.ts +2 -1
- package/lib/components/Blocks.d.ts +2 -1
- package/lib/components/Blocks.js +4 -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/GroupBlock/BlocksTypeProps.d.ts +36 -0
- package/lib/components/GroupBlock/BlocksTypeProps.js +2 -0
- package/lib/components/GroupBlock/BlocksTypeProps.js.map +1 -0
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.js +7 -0
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
- package/lib/components/GroupBlock/GroupBlock.d.ts +9 -0
- package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +4 -0
- package/lib/components/GroupBlock/GroupBlock.js +17 -0
- package/lib/components/GroupBlock/GroupBlock.js.map +1 -0
- package/lib/components/GroupBlock/GroupBlockContent.d.ts +21 -0
- package/lib/components/GroupBlock/GroupBlockContent.js +2 -0
- package/lib/components/GroupBlock/GroupBlockContent.js.map +1 -0
- package/lib/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
- package/lib/components/GroupBlock/GroupBlockTabs.js +16 -0
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -0
- package/lib/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
- package/lib/components/GroupBlock/GroupBlocksItem.js +17 -0
- package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -0
- package/lib/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
- package/lib/components/GroupBlock/filterBlocksByTag.js +4 -0
- package/lib/components/GroupBlock/filterBlocksByTag.js.map +1 -0
- package/lib/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
- package/lib/components/GroupBlock/renderBlocksTypes.js +13 -0
- package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -0
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +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/lib/utils/style2className.d.ts +1 -1
- package/lib/utils/style2className.js +3 -1
- package/lib/utils/style2className.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +3 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/BlockContent.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/Calculator/CalculatorContent.js +2 -0
- 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/GroupBlock/BlocksTypeProps.d.ts +36 -0
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.js +2 -0
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.js.map +1 -0
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js +9 -0
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
- package/mobile/dist/components/GroupBlock/GroupBlock.d.ts +9 -0
- package/mobile/dist/components/GroupBlock/GroupBlock.js +19 -0
- package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -0
- package/mobile/dist/components/GroupBlock/GroupBlockContent.d.ts +21 -0
- package/mobile/dist/components/GroupBlock/GroupBlockContent.js +2 -0
- package/mobile/dist/components/GroupBlock/GroupBlockContent.js.map +1 -0
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +18 -0
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -0
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js +20 -0
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -0
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.js +7 -0
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.js.map +1 -0
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +16 -0
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -0
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +4 -2
- 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/dist/utils/style2className.d.ts +1 -1
- package/mobile/dist/utils/style2className.js +3 -1
- package/mobile/dist/utils/style2className.js.map +1 -1
- package/mobile/lib/components/BlockContent.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/GroupBlock/BlocksTypeProps.d.ts +36 -0
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.js +2 -0
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.js.map +1 -0
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +4 -0
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js +7 -0
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +1 -0
- package/mobile/lib/components/GroupBlock/GroupBlock.d.ts +9 -0
- package/mobile/lib/components/GroupBlock/GroupBlock.js +17 -0
- package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -0
- package/mobile/lib/components/GroupBlock/GroupBlockContent.d.ts +21 -0
- package/mobile/lib/components/GroupBlock/GroupBlockContent.js +2 -0
- package/mobile/lib/components/GroupBlock/GroupBlockContent.js.map +1 -0
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.d.ts +10 -0
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +16 -0
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -0
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +8 -0
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js +17 -0
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -0
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.d.ts +2 -0
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.js +4 -0
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.js.map +1 -0
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.d.ts +9 -0
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +13 -0
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -0
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +4 -2
- 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/lib/utils/style2className.d.ts +1 -1
- package/mobile/lib/utils/style2className.js +3 -1
- package/mobile/lib/utils/style2className.js.map +1 -1
- package/mobile/src/common.css +7 -0
- package/mobile/src/components/BlockContent.ts +3 -1
- 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/GroupBlock/BlocksTypeProps.ts +40 -0
- package/mobile/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +7 -0
- package/mobile/src/components/GroupBlock/GroupBlock.example.json +27 -0
- package/mobile/src/components/GroupBlock/GroupBlock.tsx +43 -0
- package/mobile/src/components/GroupBlock/GroupBlockContent.ts +23 -0
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +54 -0
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +30 -0
- package/mobile/src/components/GroupBlock/filterBlocksByTag.ts +5 -0
- package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +27 -0
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +4 -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/mobile/src/utils/style2className.ts +3 -2
- package/package.json +1 -1
- package/src/common.css +7 -0
- package/src/components/BlockContent.ts +3 -1
- package/src/components/Blocks.ts +4 -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/GroupBlock/BlocksTypeProps.ts +40 -0
- package/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +7 -0
- package/src/components/GroupBlock/GroupBlock.example.json +27 -0
- package/src/components/GroupBlock/GroupBlock.fixture.tsx +51 -0
- package/src/components/GroupBlock/GroupBlock.tsx +43 -0
- package/src/components/GroupBlock/GroupBlockContent.ts +23 -0
- package/src/components/GroupBlock/GroupBlockTabs.tsx +54 -0
- package/src/components/GroupBlock/GroupBlocksItem.tsx +30 -0
- package/src/components/GroupBlock/filterBlocksByTag.ts +5 -0
- package/src/components/GroupBlock/renderBlocksTypes.tsx +27 -0
- package/src/components/OtherProducts/OtherProductsContent.ts +4 -2
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlockInner.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/src/utils/style2className.ts +3 -2
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.d.ts +0 -5
- package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +0 -55
- 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 -53
- 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 -55
- 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 -53
- 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 -126
- 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 -126
- package/src/components/ProductGalleryGreen/ProductGalleryGreenContent.ts +0 -34
|
@@ -61,11 +61,12 @@
|
|
|
61
61
|
"type": "ProductGallery",
|
|
62
62
|
"style": ["col-span-12"],
|
|
63
63
|
"content": {
|
|
64
|
+
"version": "secondary",
|
|
64
65
|
"slides": [
|
|
65
66
|
{
|
|
66
67
|
"nav": {
|
|
67
68
|
"title": "Деньги на любые цели",
|
|
68
|
-
"
|
|
69
|
+
"description": "Ставка от 12,5% годовых на срок до 5 лет"
|
|
69
70
|
},
|
|
70
71
|
"productBlock": {
|
|
71
72
|
"title": "Ставка от 12,5% годовых на срок до 5 лет!»",
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"href": "https://rshb.ru",
|
|
80
81
|
"text": "Подробнее",
|
|
81
82
|
"target": "_blank",
|
|
82
|
-
"version": "
|
|
83
|
+
"version": "secondary"
|
|
83
84
|
}
|
|
84
85
|
],
|
|
85
86
|
"image": {
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
{
|
|
104
105
|
"nav": {
|
|
105
106
|
"title": "Для людей в возрасте",
|
|
106
|
-
"
|
|
107
|
+
"description": "Ставка от 12,5% годовых на срок до 3 лет"
|
|
107
108
|
},
|
|
108
109
|
"productBlock": {
|
|
109
110
|
"title": "Ставка от 12,5% годовых на срок до 3 лет!»",
|
|
@@ -117,7 +118,7 @@
|
|
|
117
118
|
"href": "https://rshb.ru",
|
|
118
119
|
"text": "Подробнее",
|
|
119
120
|
"target": "_blank",
|
|
120
|
-
"version": "
|
|
121
|
+
"version": "secondary"
|
|
121
122
|
}
|
|
122
123
|
],
|
|
123
124
|
"image": {
|
|
@@ -141,7 +142,7 @@
|
|
|
141
142
|
{
|
|
142
143
|
"nav": {
|
|
143
144
|
"title": "Выгодно покупать",
|
|
144
|
-
"
|
|
145
|
+
"description": "Дополнительные бонусные баллы за покупки"
|
|
145
146
|
},
|
|
146
147
|
"productBlock": {
|
|
147
148
|
"title": "Дополнительные бонусные баллы за покупки!»",
|
|
@@ -150,7 +151,7 @@
|
|
|
150
151
|
"href": "https://rshb.ru",
|
|
151
152
|
"text": "Подробнее",
|
|
152
153
|
"target": "_blank",
|
|
153
|
-
"version": "
|
|
154
|
+
"version": "secondary"
|
|
154
155
|
}
|
|
155
156
|
],
|
|
156
157
|
"image": {
|
|
@@ -168,7 +169,7 @@
|
|
|
168
169
|
{
|
|
169
170
|
"nav": {
|
|
170
171
|
"title": "Карты Unionpay",
|
|
171
|
-
"
|
|
172
|
+
"description": "Кэшбэк до 20% у партнеров"
|
|
172
173
|
},
|
|
173
174
|
"productBlock": {
|
|
174
175
|
"title": "Карты Unionpay»",
|
|
@@ -182,7 +183,7 @@
|
|
|
182
183
|
"href": "https://rshb.ru",
|
|
183
184
|
"text": "Подробнее",
|
|
184
185
|
"target": "_blank",
|
|
185
|
-
"version": "
|
|
186
|
+
"version": "secondary"
|
|
186
187
|
}
|
|
187
188
|
],
|
|
188
189
|
"image": {
|
|
@@ -19,8 +19,8 @@ export type BlockDecorator<VNode = any> = (
|
|
|
19
19
|
index?: number | string,
|
|
20
20
|
) => any;
|
|
21
21
|
|
|
22
|
-
export type JSXBlock = (
|
|
23
|
-
props: PropsWithChildren<UniBlockProps &
|
|
22
|
+
export type JSXBlock<BlockProps = BlockContent> = (
|
|
23
|
+
props: PropsWithChildren<UniBlockProps & BlockProps, any>,
|
|
24
24
|
context?: any,
|
|
25
25
|
) => any;
|
|
26
26
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ProductBlockContent } from '../../components/ProductBlock/ProductBlockContent';
|
|
2
|
+
import type { ProductTileContent } from '../../components/ProductTile/ProductTileContent';
|
|
3
|
+
import { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
|
|
4
|
+
|
|
5
|
+
export interface ActiveHandler {
|
|
6
|
+
context: ContentPageContext;
|
|
7
|
+
blocks?: GroupBlockDef[];
|
|
8
|
+
initialState?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface GroupBlockCommonProps {
|
|
12
|
+
/** @title Стиль */
|
|
13
|
+
style?: string[];
|
|
14
|
+
/** @title Теги */
|
|
15
|
+
tags?: string[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @title Продуктовый блок
|
|
20
|
+
* @default {"blockType": "ProductBlock"}
|
|
21
|
+
*/
|
|
22
|
+
export type ProductBlockDef = ProductBlockContent &
|
|
23
|
+
GroupBlockCommonProps & { blockType: 'ProductBlock' };
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @title Продуктовая плитка
|
|
27
|
+
* @default {"blockType": "ProductTile"}
|
|
28
|
+
*/
|
|
29
|
+
export type ProductTileDef = ProductTileContent &
|
|
30
|
+
GroupBlockCommonProps & { blockType: 'ProductTile' };
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @title Выберите блок
|
|
34
|
+
*/
|
|
35
|
+
export type EmptyOption = null;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @title Содержимое блока
|
|
39
|
+
*/
|
|
40
|
+
export type GroupBlockDef = EmptyOption | ProductBlockDef | ProductTileDef;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tabs": [
|
|
3
|
+
{ "title": "Еще программы", "index": 0 },
|
|
4
|
+
{ "title": "Страхование жизни", "index": 1, "tag": "tag1" },
|
|
5
|
+
{ "title": "Страхование здоровья", "index": 2, "tag": "tag2" }
|
|
6
|
+
],
|
|
7
|
+
"blocks": [
|
|
8
|
+
{
|
|
9
|
+
"blockType": "ProductBlock",
|
|
10
|
+
"title": "Продуктовый блок",
|
|
11
|
+
"description": "Описание текстового блока",
|
|
12
|
+
"tags":["tag2"]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"blockType": "ProductTile",
|
|
16
|
+
"title": "Продуктовая плитка",
|
|
17
|
+
"description": "Описание текстового блока",
|
|
18
|
+
"tags":["tag1"]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"blockType": "ProductBlock",
|
|
22
|
+
"title": "Продуктовый блок",
|
|
23
|
+
"description": "Описание текстового блока",
|
|
24
|
+
"tags":["tag2"]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
import type { GroupBlockContent, GroupBlockTab } from './GroupBlockContent';
|
|
4
|
+
import { GroupBlockTabs } from './GroupBlockTabs';
|
|
5
|
+
import { GroupBlocksItem } from './GroupBlocksItem';
|
|
6
|
+
import { filterBlocksByTag } from './filterBlocksByTag';
|
|
7
|
+
|
|
8
|
+
export interface TabsItemProps extends GroupBlockTab {
|
|
9
|
+
count?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface GroupBlockProps extends GroupBlockContent, UniBlockProps {
|
|
13
|
+
tabs?: TabsItemProps[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const GroupBlock = JSX<GroupBlockProps>(
|
|
17
|
+
({ className = '', tabs, context, anchor = null, groupBlocks = [] }) => {
|
|
18
|
+
const [currentTag, setCurrentTag] = context.useState(tabs?.[0]?.tag);
|
|
19
|
+
|
|
20
|
+
const filteredBlocks = filterBlocksByTag(groupBlocks, currentTag);
|
|
21
|
+
|
|
22
|
+
const tabsNewMap = tabs?.map((tab) => {
|
|
23
|
+
const count = tab.tag
|
|
24
|
+
? groupBlocks.filter((block) => block?.tags?.includes(`${tab.tag}`)).length
|
|
25
|
+
: groupBlocks.length;
|
|
26
|
+
|
|
27
|
+
return { ...tab, count };
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<section id={anchor} className={`box-border gap-1 h-12 ${className}`}>
|
|
32
|
+
{tabsNewMap?.length ? (
|
|
33
|
+
<GroupBlockTabs currentTag={currentTag} onTabClick={setCurrentTag} tabs={tabsNewMap} />
|
|
34
|
+
) : null}
|
|
35
|
+
{groupBlocks.length ? (
|
|
36
|
+
<div className="list-none">
|
|
37
|
+
<GroupBlocksItem context={context} groupBlocks={filteredBlocks} />
|
|
38
|
+
</div>
|
|
39
|
+
) : null}
|
|
40
|
+
</section>
|
|
41
|
+
);
|
|
42
|
+
},
|
|
43
|
+
);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { GroupBlockDef } from './BlocksTypeProps';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title Таб
|
|
5
|
+
*/
|
|
6
|
+
export interface GroupBlockTab {
|
|
7
|
+
/** @title Название */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** @title Tег */
|
|
10
|
+
tag?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @title Блок-группировки
|
|
15
|
+
*/
|
|
16
|
+
export interface GroupBlockContent {
|
|
17
|
+
/** @title Блоки */
|
|
18
|
+
groupBlocks?: GroupBlockDef[];
|
|
19
|
+
/** @title Табы */
|
|
20
|
+
tabs?: GroupBlockTab[];
|
|
21
|
+
/** @title Показывать счетчик блоков во вкладках */
|
|
22
|
+
isShowCounter?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { TabsItemProps } from './GroupBlock';
|
|
3
|
+
|
|
4
|
+
export type TabClickHandler = (tag) => void;
|
|
5
|
+
|
|
6
|
+
export interface GroupBlockTabsProps {
|
|
7
|
+
onTabClick: TabClickHandler;
|
|
8
|
+
currentTag?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
tabs?: TabsItemProps[];
|
|
11
|
+
isShowCounter?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const GroupBlockTabs = JSX<GroupBlockTabsProps>((props) => {
|
|
15
|
+
const { tabs, currentTag, onTabClick, className = '', isShowCounter = true } = props;
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<div className={`mb-2 box-border flex gap-x-1 h-12 ${className}`} role="tablist">
|
|
19
|
+
{tabs?.map(renderTab(onTabClick, isShowCounter, currentTag))}
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const badgeStyle = 'w-[22px] h-[22px] rounded-full text-m-sm';
|
|
25
|
+
|
|
26
|
+
const renderTab =
|
|
27
|
+
(onTabClick: TabClickHandler, isShowCounter: boolean, currentTag?: string) =>
|
|
28
|
+
(tab: TabsItemProps, i: number) => {
|
|
29
|
+
const isActive = currentTag === tab.tag;
|
|
30
|
+
const tabBg = isActive ? 'bg-primary-main' : 'group bg-white';
|
|
31
|
+
const tabText = isActive ? 'text-white' : 'text-secondary-text group-hover:text-primary-main';
|
|
32
|
+
const counterBlockStyle = `${badgeStyle}
|
|
33
|
+
${isActive ? 'bg-white/30 text-white' : 'bg-secondary-text/10 text-secondary-text'}`;
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div
|
|
37
|
+
key={String(i)}
|
|
38
|
+
className={`flex h-full w-full flex-1 cursor-pointer mr-2 last:mr-0 box-content ${tabBg}`}
|
|
39
|
+
role="tab"
|
|
40
|
+
onClick={() => onTabClick(tab.tag)}
|
|
41
|
+
aria-selected={String(isActive)}
|
|
42
|
+
tag={tab?.tag}
|
|
43
|
+
>
|
|
44
|
+
<div className="flex flex-1 items-center justify-center">
|
|
45
|
+
{tab?.title ? <h3 className={`mr-8 ${tabText}`}>{tab?.title}</h3> : null}
|
|
46
|
+
{isShowCounter ? (
|
|
47
|
+
<div className={`flex items-center justify-center ${counterBlockStyle}`}>
|
|
48
|
+
<span>{tab.count}</span>
|
|
49
|
+
</div>
|
|
50
|
+
) : null}
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import type { JSXBlock } from '../../components/ContentPage/ContentPage';
|
|
3
|
+
import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
|
|
4
|
+
import type { UniBlockProps } from '../../types';
|
|
5
|
+
import { style2className } from '../../utils/style2className';
|
|
6
|
+
import type { GroupBlockDef } from './BlocksTypeProps';
|
|
7
|
+
import { EmbeddableGroupBlocks } from './EmbeddableGroupBlocks';
|
|
8
|
+
import { GroupBlockContent } from './GroupBlockContent';
|
|
9
|
+
|
|
10
|
+
export interface GroupBlocksProps extends GroupBlockContent, UniBlockProps {}
|
|
11
|
+
|
|
12
|
+
export const GroupBlocksItem = JSX<GroupBlocksProps>(({ groupBlocks, context }) => {
|
|
13
|
+
return (
|
|
14
|
+
<div className={'grid grid-cols-12 gap-2 box-border'}>
|
|
15
|
+
{groupBlocks?.length ? groupBlocks.map(renderBlock(context)) : null}
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const renderBlock = (context: ContentPageContext) => (block: GroupBlockDef, i: number) => {
|
|
21
|
+
const type = block?.blockType;
|
|
22
|
+
if (!type || !(type in EmbeddableGroupBlocks)) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const classNameBlock = style2className(block?.style);
|
|
26
|
+
const EmbeddedBlock: JSXBlock = EmbeddableGroupBlocks[type];
|
|
27
|
+
return (
|
|
28
|
+
<EmbeddedBlock key={`block_${i}`} context={context} {...block} className={classNameBlock} />
|
|
29
|
+
);
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { JSXBlock } from '../../components/ContentPage/ContentPage';
|
|
2
|
+
import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
|
|
3
|
+
import type { GroupBlockDef } from './BlocksTypeProps';
|
|
4
|
+
import { EmbeddableGroupBlocks } from './EmbeddableGroupBlocks';
|
|
5
|
+
import { style2className } from '../../utils/style2className';
|
|
6
|
+
|
|
7
|
+
type EmbeddableBlocksProps = {
|
|
8
|
+
groupBlocks?: GroupBlockDef[];
|
|
9
|
+
context: ContentPageContext;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const renderBlock =
|
|
14
|
+
({ context, className }: EmbeddableBlocksProps) =>
|
|
15
|
+
(block: GroupBlockDef, i: number) => {
|
|
16
|
+
const type = block?.blockType;
|
|
17
|
+
if (!type || !(type in EmbeddableGroupBlocks)) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
const classNameBlock = style2className(block?.style);
|
|
21
|
+
const EmbeddedBlock: JSXBlock = EmbeddableGroupBlocks[type];
|
|
22
|
+
return (
|
|
23
|
+
<div className={className} key={`block_${i}`}>
|
|
24
|
+
<EmbeddedBlock context={context} {...block} className={classNameBlock} />
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
@@ -14,7 +14,10 @@ export interface BlockItemCommonProps {
|
|
|
14
14
|
* @title Отображать в раскрытом виде
|
|
15
15
|
*/
|
|
16
16
|
isExpanded?: boolean;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* @title Блоки
|
|
19
|
+
* @maxItems 10
|
|
20
|
+
*/
|
|
18
21
|
blocks?: BlockDef[];
|
|
19
22
|
columns?: ColumnsCount;
|
|
20
23
|
}
|
|
@@ -27,7 +30,6 @@ export interface OtherProductsContent {
|
|
|
27
30
|
title?: string;
|
|
28
31
|
/**
|
|
29
32
|
* @title Список
|
|
30
|
-
* @maxItems 10
|
|
31
33
|
*/
|
|
32
34
|
blockItems?: BlockItemCommonProps[];
|
|
33
35
|
colorPalette?: ColorPalette;
|
|
@@ -10,14 +10,13 @@
|
|
|
10
10
|
"image": {
|
|
11
11
|
"format": "webp",
|
|
12
12
|
"size": {
|
|
13
|
-
"width":
|
|
14
|
-
"height":
|
|
13
|
+
"width": 608,
|
|
14
|
+
"height": 299
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
+
"version": "primary",
|
|
17
18
|
"description": "Описание",
|
|
18
|
-
"
|
|
19
|
-
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
|
|
20
|
-
"version": "primary"
|
|
19
|
+
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
|
|
21
20
|
}
|
|
22
21
|
},
|
|
23
22
|
{
|
|
@@ -30,14 +29,13 @@
|
|
|
30
29
|
"image": {
|
|
31
30
|
"format": "webp",
|
|
32
31
|
"size": {
|
|
33
|
-
"width":
|
|
34
|
-
"height":
|
|
32
|
+
"width": 608,
|
|
33
|
+
"height": 299
|
|
35
34
|
}
|
|
36
35
|
},
|
|
36
|
+
"version": "primary",
|
|
37
37
|
"description": "Описание",
|
|
38
|
-
"
|
|
39
|
-
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"],
|
|
40
|
-
"version": "primary"
|
|
38
|
+
"items": ["Элемент списка 1", "Элемент списка 2", "Элемент списка 3"]
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
41
|
]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
2
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
3
|
|
|
3
4
|
/** @title Кнопка под слайдом */
|
|
4
5
|
interface ProductGalleryNav {
|
|
@@ -19,17 +20,13 @@ export interface ProductSlide {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
|
-
* @title Продуктовая галерея
|
|
23
|
+
* @title Продуктовая галерея
|
|
23
24
|
*/
|
|
24
25
|
export interface ProductGalleryContent {
|
|
25
|
-
/**
|
|
26
|
-
* @title Задержка
|
|
27
|
-
* @hidden //! temporary not used
|
|
28
|
-
*/
|
|
29
|
-
duration?: number;
|
|
30
26
|
/**
|
|
31
27
|
* @title Слайды
|
|
32
28
|
* @minItems 2
|
|
33
29
|
*/
|
|
34
30
|
slides?: ProductSlide[];
|
|
31
|
+
version?: BlockVersion;
|
|
35
32
|
}
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
<svg title="Сейф" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
1
|
+
<svg title="Сейф" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2 12.83V15c0 5 2 7 7 7h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M5 9.5h2.48a2.5 2.5 0 0 1 0 5H5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M8 19h8c2 0 3-1 3-3V8c0-2-1-3-3-3H8C6 5 5 6 5 8v8c0 2 1 3 3 3Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M19 9.99h-3M19 14h-3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<path d="M7.2 12h.1" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7
|
+
</svg>
|
package/mobile/src/types.ts
CHANGED
|
@@ -13,7 +13,7 @@ type EmbeddableBlocksProps = {
|
|
|
13
13
|
export const renderBlocksList = ({ blocks, context, className, columns }: EmbeddableBlocksProps) =>
|
|
14
14
|
blocks?.length ? blocks.map(renderBlock({ context, className, columns })) : null;
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const renderBlock =
|
|
17
17
|
({ context, columns, className }: EmbeddableBlocksProps) =>
|
|
18
18
|
(block: BlockDef, i: number) => {
|
|
19
19
|
const type = block?.blockListType;
|
|
@@ -32,9 +32,7 @@ export const Checkbox = JSX<CheckboxProps>(({ text, checked, onChange, className
|
|
|
32
32
|
fill="white"
|
|
33
33
|
viewBox="0 0 11 9"
|
|
34
34
|
/>
|
|
35
|
-
{text ?
|
|
36
|
-
<span className="font-sans ml-3 text-sm leading-5 cursor-pointer">{text}</span>
|
|
37
|
-
) : null}
|
|
35
|
+
{text ? <span className="font-sans ml-3 text-m-base cursor-pointer">{text}</span> : null}
|
|
38
36
|
</label>
|
|
39
37
|
</div>
|
|
40
38
|
));
|
|
@@ -20,19 +20,15 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
20
20
|
return (
|
|
21
21
|
<div className={className}>
|
|
22
22
|
<label className="block relative">
|
|
23
|
-
{title ?
|
|
24
|
-
<span className="absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5">
|
|
25
|
-
{title}
|
|
26
|
-
</span>
|
|
27
|
-
) : null}
|
|
23
|
+
{title ? <span className="text-base text-secondary-text pl-4">{title}</span> : null}
|
|
28
24
|
<input
|
|
29
|
-
className={`m-0 font-sans text-
|
|
30
|
-
outline-none p-0 pl-4
|
|
25
|
+
className={`m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md
|
|
26
|
+
outline-none p-0 pl-4 box-border text-primary-text`}
|
|
31
27
|
value={addSpacesBetweenNumbers(value)}
|
|
32
28
|
onChange={(e) => handleChange(e.target.value)}
|
|
33
29
|
onBlur={handleBlur}
|
|
34
30
|
/>
|
|
35
|
-
<div className="absolute inset-x-0
|
|
31
|
+
<div className="absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]">
|
|
36
32
|
<input
|
|
37
33
|
className="box-border w-full m-0 cursor-pointer slider"
|
|
38
34
|
type="range"
|
|
@@ -47,7 +43,9 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
47
43
|
</label>
|
|
48
44
|
<div className="flex justify-between my-3">
|
|
49
45
|
{items.map((item, i) => (
|
|
50
|
-
<span key={String(i)} className="text-
|
|
46
|
+
<span key={String(i)} className="text-sm leading-[14px] text-secondary-text pl-4">
|
|
47
|
+
{item}
|
|
48
|
+
</span>
|
|
51
49
|
))}
|
|
52
50
|
</div>
|
|
53
51
|
</div>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { FuncSetNumber } from '../../types';
|
|
2
|
+
|
|
1
3
|
export interface InputRangeProps {
|
|
2
4
|
className?: string;
|
|
3
5
|
items?: string[];
|
|
@@ -6,5 +8,5 @@ export interface InputRangeProps {
|
|
|
6
8
|
step?: number;
|
|
7
9
|
value?: number;
|
|
8
10
|
title?: string;
|
|
9
|
-
onChange?:
|
|
11
|
+
onChange?: FuncSetNumber;
|
|
10
12
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import { FuncSetNumber } from '../../types';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @title Вкладка
|
|
@@ -11,7 +12,7 @@ export interface Tab {
|
|
|
11
12
|
icon?: Picture;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
export type TabClickHandler =
|
|
15
|
+
export type TabClickHandler = FuncSetNumber;
|
|
15
16
|
|
|
16
17
|
export interface TabsProps {
|
|
17
18
|
tabs?: Tab[];
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
style ? style.join(' ') : '';
|
|
1
|
+
export function style2className(style: string[] | undefined | null): string {
|
|
2
|
+
return style ? style.filter(Boolean).join(' ') : '';
|
|
3
|
+
}
|
package/package.json
CHANGED
package/src/common.css
CHANGED
|
@@ -72,6 +72,13 @@ html {
|
|
|
72
72
|
width: 100%;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
.calc-rate-text {
|
|
76
|
+
background: linear-gradient(180deg, #42ab44 0%, #f6db7d 100%);
|
|
77
|
+
-webkit-background-clip: text;
|
|
78
|
+
-webkit-text-fill-color: transparent;
|
|
79
|
+
text-fill-color: transparent;
|
|
80
|
+
}
|
|
81
|
+
|
|
75
82
|
input[type='range'].slider {
|
|
76
83
|
-webkit-appearance: none;
|
|
77
84
|
height: 4px;
|
|
@@ -5,6 +5,7 @@ import type { ExchangeRateTileContent } from './ExchangeRateTile/ExchangeRateTil
|
|
|
5
5
|
import type { FooterContent } from './Footer/FooterContent';
|
|
6
6
|
import type { GalleryContent } from './Gallery/GalleryContent';
|
|
7
7
|
import type { GracePeriodContent } from './GracePeriod/GracePeriodContent';
|
|
8
|
+
import type { GroupBlockContent } from './GroupBlock/GroupBlockContent';
|
|
8
9
|
import type { HeaderContent } from './Header/HeaderContent';
|
|
9
10
|
import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
|
|
10
11
|
import type { LinkListContent } from './LinkList/LinkListContent';
|
|
@@ -48,4 +49,5 @@ export type BlockContent =
|
|
|
48
49
|
| TextBlockContent
|
|
49
50
|
| TileContent
|
|
50
51
|
| NavigationContent
|
|
51
|
-
| LinkListContent
|
|
52
|
+
| LinkListContent
|
|
53
|
+
| GroupBlockContent;
|
package/src/components/Blocks.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Accordion } from './Accordion/Accordion';
|
|
|
2
2
|
import { BenefitsBlock } from './BenefitsBlock/BenefitsBlock';
|
|
3
3
|
import { Bonus } from './Bonus/Bonus';
|
|
4
4
|
import { ComparisonTable } from './ComparisonTable/ComparisonTable';
|
|
5
|
+
import { Calculator } from './Calculator/Calculator';
|
|
5
6
|
import { CreditCalculator } from './CreditCalculator/CreditCalculator';
|
|
6
7
|
import { ExchangeRateTile } from './ExchangeRateTile/ExchangeRateTile';
|
|
7
8
|
import { Footer } from './Footer/Footer';
|
|
@@ -19,7 +20,6 @@ import { PictureText } from './PictureText/PictureText';
|
|
|
19
20
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
20
21
|
import { ProductBlock } from './ProductBlock/ProductBlock';
|
|
21
22
|
import { ProductGallery } from './ProductGallery/ProductGallery';
|
|
22
|
-
import { ProductGalleryGreen } from './ProductGalleryGreen/ProductGalleryGreen';
|
|
23
23
|
import { ProductTile } from './ProductTile/ProductTile';
|
|
24
24
|
import { PromoTile } from './PromoTile/PromoTile';
|
|
25
25
|
import { Recommendation } from './Recommendation/Recommendation';
|
|
@@ -27,12 +27,14 @@ import { StepsBlock } from './StepsBlock/StepsBlock';
|
|
|
27
27
|
import { TariffsTable } from './TariffsTable/TariffsTable';
|
|
28
28
|
import { TextBlock } from './TextBlock/TextBlock';
|
|
29
29
|
import { Tile } from './Tile/Tile';
|
|
30
|
+
import { GroupBlock } from './GroupBlock/GroupBlock';
|
|
30
31
|
|
|
31
32
|
export const Blocks = {
|
|
32
33
|
Accordion,
|
|
33
34
|
BenefitsBlock,
|
|
34
35
|
Bonus,
|
|
35
36
|
ComparisonTable,
|
|
37
|
+
Calculator,
|
|
36
38
|
CreditCalculator,
|
|
37
39
|
ExchangeRateTile,
|
|
38
40
|
Footer,
|
|
@@ -47,7 +49,6 @@ export const Blocks = {
|
|
|
47
49
|
PictureText,
|
|
48
50
|
ProductBlock,
|
|
49
51
|
ProductGallery,
|
|
50
|
-
ProductGalleryGreen,
|
|
51
52
|
ProductTile,
|
|
52
53
|
PromoTile,
|
|
53
54
|
OtherProducts,
|
|
@@ -58,4 +59,5 @@ export const Blocks = {
|
|
|
58
59
|
Tile,
|
|
59
60
|
Navigation,
|
|
60
61
|
Placeholder,
|
|
62
|
+
GroupBlock,
|
|
61
63
|
};
|