@redneckz/wildless-cms-uni-blocks 0.12.14 → 0.13.0
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/bin/migration-scripts/0.12.12.js +19 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +252 -231
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/Calculator.mobile.d.ts +5 -0
- package/bundle/components/Calculator/CreditCalculatorForm.d.ts +1 -0
- package/bundle/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +1 -1
- package/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/bundle/components/Calculator/renderRate.d.ts +9 -0
- package/bundle/components/MortgageFiltration/HotFilterRecord.d.ts +11 -0
- package/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +12 -0
- package/bundle/components/RollupItem/rollupIconVersion.mobile.d.ts +1 -1
- package/bundle/components/Tabs/renderTabs.d.ts +12 -0
- package/bundle/hooks/useForm.d.ts +1 -0
- package/bundle/icons/IconName.d.ts +3 -3
- package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/bundle/ui-kit/ListControlProps.d.ts +4 -0
- package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/bundle/ui-kit/TabsControl/ScrollableTabsControl.d.ts +2 -0
- package/bundle/ui-kit/TabsControl/TabItem.d.ts +11 -0
- package/bundle/ui-kit/TabsControl/TabsControl.d.ts +2 -0
- package/bundle/ui-kit/TabsControl/TabsControlProps.d.ts +6 -0
- package/bundle/ui-kit/TabsControl/renderTab.d.ts +4 -0
- package/bundle/utils/BoolComparator.d.ts +11 -0
- package/cosmos-static/icons/ArrowDownSolidIcon.svg +1 -1
- package/cosmos-static/icons/ArrowUpSolidIcon.svg +1 -1
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +19 -13
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.mobile.d.ts +5 -0
- package/dist/components/Calculator/Calculator.mobile.js +33 -0
- package/dist/components/Calculator/Calculator.mobile.js.map +1 -0
- package/dist/components/Calculator/CalculatorValueBlock.js +2 -1
- package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +1 -0
- package/dist/components/Calculator/CreditCalculatorForm.js +18 -11
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +13 -11
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -1
- package/dist/components/Calculator/RefinancingCalculatorForm.js +1 -0
- package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +2 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/dist/components/Calculator/renderDaysInput.js +1 -1
- package/dist/components/Calculator/renderDaysInput.js.map +1 -1
- package/dist/components/Calculator/renderMonthsInput.js +1 -1
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/components/Calculator/renderPaymentType.js +1 -0
- package/dist/components/Calculator/renderPaymentType.js.map +1 -1
- package/dist/components/Calculator/renderRate.d.ts +9 -0
- package/dist/components/Calculator/renderRate.js +16 -0
- package/dist/components/Calculator/renderRate.js.map +1 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +6 -7
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/HeaderTop.js +9 -6
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MortgageFiltration/HotFilterRecord.d.ts +11 -0
- package/dist/components/MortgageFiltration/HotFilterRecord.js +5 -0
- package/dist/components/MortgageFiltration/HotFilterRecord.js.map +1 -0
- package/dist/components/MortgageFiltration/MortgageFiltration.js +24 -4
- package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +12 -0
- package/dist/components/RollupItem/RollupItem.js +1 -1
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js +1 -1
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -1
- package/dist/components/RollupItem/rollupIconVersion.mobile.d.ts +1 -1
- package/dist/components/RollupItem/rollupIconVersion.mobile.js +1 -1
- package/dist/components/RollupItem/rollupIconVersion.mobile.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +19 -24
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/renderTabs.d.ts +12 -0
- package/dist/components/Tabs/renderTabs.js +19 -0
- package/dist/components/Tabs/renderTabs.js.map +1 -0
- package/dist/hooks/useForm.d.ts +1 -0
- package/dist/hooks/useForm.js +5 -0
- package/dist/hooks/useForm.js.map +1 -1
- package/dist/icons/IconName.d.ts +3 -3
- package/dist/icons/IconName.js +3 -3
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +2 -2
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +2 -2
- package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.js +5 -3
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/dist/ui-kit/ListControlProps.d.ts +4 -0
- package/dist/ui-kit/ListControlProps.js +2 -0
- package/dist/ui-kit/ListControlProps.js.map +1 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +2 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/TabsControl/ScrollableTabsControl.d.ts +2 -0
- package/dist/ui-kit/TabsControl/ScrollableTabsControl.js +17 -0
- package/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -0
- package/dist/ui-kit/TabsControl/TabItem.d.ts +11 -0
- package/dist/ui-kit/TabsControl/TabItem.js +38 -0
- package/dist/ui-kit/TabsControl/TabItem.js.map +1 -0
- package/dist/ui-kit/TabsControl/TabsControl.d.ts +2 -0
- package/dist/ui-kit/TabsControl/TabsControl.js +8 -0
- package/dist/ui-kit/TabsControl/TabsControl.js.map +1 -0
- package/dist/ui-kit/TabsControl/TabsControlProps.d.ts +6 -0
- package/dist/ui-kit/TabsControl/TabsControlProps.js +2 -0
- package/dist/ui-kit/TabsControl/TabsControlProps.js.map +1 -0
- package/dist/ui-kit/TabsControl/renderTab.d.ts +4 -0
- package/dist/ui-kit/TabsControl/renderTab.js +7 -0
- package/dist/ui-kit/TabsControl/renderTab.js.map +1 -0
- package/dist/utils/BoolComparator.d.ts +11 -0
- package/dist/utils/BoolComparator.js +19 -0
- package/dist/utils/BoolComparator.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +19 -13
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.fixture.mobile.d.ts +8 -0
- package/lib/components/Calculator/Calculator.mobile.d.ts +5 -0
- package/lib/components/Calculator/Calculator.mobile.js +31 -0
- package/lib/components/Calculator/Calculator.mobile.js.map +1 -0
- package/lib/components/Calculator/CalculatorValueBlock.js +2 -1
- package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +1 -0
- package/lib/components/Calculator/CreditCalculatorForm.js +18 -11
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +13 -11
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -1
- package/lib/components/Calculator/RefinancingCalculatorForm.js +1 -0
- package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -2
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +2 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/lib/components/Calculator/renderDaysInput.d.ts +0 -1
- package/lib/components/Calculator/renderDaysInput.js +1 -1
- package/lib/components/Calculator/renderDaysInput.js.map +1 -1
- package/lib/components/Calculator/renderFootnote.d.ts +0 -1
- package/lib/components/Calculator/renderInterestPayment.d.ts +0 -1
- package/lib/components/Calculator/renderMonthsInput.d.ts +0 -1
- package/lib/components/Calculator/renderMonthsInput.js +1 -1
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/components/Calculator/renderPaymentType.d.ts +0 -1
- package/lib/components/Calculator/renderPaymentType.js +1 -0
- package/lib/components/Calculator/renderPaymentType.js.map +1 -1
- package/lib/components/Calculator/renderRate.d.ts +8 -0
- package/lib/components/Calculator/renderRate.js +13 -0
- package/lib/components/Calculator/renderRate.js.map +1 -0
- package/lib/components/Calculator/renderRegistrationType.d.ts +0 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +7 -8
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/HeaderTop.js +9 -6
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MortgageFiltration/HotFilterRecord.d.ts +11 -0
- package/lib/components/MortgageFiltration/HotFilterRecord.js +3 -0
- package/lib/components/MortgageFiltration/HotFilterRecord.js.map +1 -0
- package/lib/components/MortgageFiltration/MortgageFiltration.js +24 -4
- package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +12 -0
- package/lib/components/RollupItem/RollupItem.js +1 -1
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js +1 -1
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -1
- package/lib/components/RollupItem/rollupIconVersion.mobile.d.ts +1 -1
- package/lib/components/RollupItem/rollupIconVersion.mobile.js +1 -1
- package/lib/components/RollupItem/rollupIconVersion.mobile.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +20 -25
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/renderTabs.d.ts +11 -0
- package/lib/components/Tabs/renderTabs.js +16 -0
- package/lib/components/Tabs/renderTabs.js.map +1 -0
- package/lib/hooks/useForm.d.ts +1 -0
- package/lib/hooks/useForm.js +5 -0
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/icons/IconName.d.ts +3 -3
- package/lib/icons/IconName.js +3 -3
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +2 -2
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +2 -2
- package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.js +5 -3
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/lib/ui-kit/ListControlProps.d.ts +4 -0
- package/lib/ui-kit/ListControlProps.js +2 -0
- package/lib/ui-kit/ListControlProps.js.map +1 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +2 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/TabsControl/ScrollableTabsControl.d.ts +2 -0
- package/lib/ui-kit/TabsControl/ScrollableTabsControl.js +15 -0
- package/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -0
- package/lib/ui-kit/TabsControl/TabItem.d.ts +11 -0
- package/lib/ui-kit/TabsControl/TabItem.js +36 -0
- package/lib/ui-kit/TabsControl/TabItem.js.map +1 -0
- package/lib/ui-kit/TabsControl/TabsControl.d.ts +2 -0
- package/lib/ui-kit/TabsControl/TabsControl.fixture.d.ts +8 -0
- package/lib/ui-kit/TabsControl/TabsControl.js +6 -0
- package/lib/ui-kit/TabsControl/TabsControl.js.map +1 -0
- package/lib/ui-kit/TabsControl/TabsControlProps.d.ts +6 -0
- package/lib/ui-kit/TabsControl/TabsControlProps.js +2 -0
- package/lib/ui-kit/TabsControl/TabsControlProps.js.map +1 -0
- package/lib/ui-kit/TabsControl/renderTab.d.ts +3 -0
- package/lib/ui-kit/TabsControl/renderTab.js +4 -0
- package/lib/ui-kit/TabsControl/renderTab.js.map +1 -0
- package/lib/utils/BoolComparator.d.ts +11 -0
- package/lib/utils/BoolComparator.js +12 -0
- package/lib/utils/BoolComparator.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +898 -205
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +1 -0
- package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/mobile/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +1 -1
- package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/mobile/bundle/components/Calculator/renderRate.d.ts +9 -0
- package/mobile/bundle/components/MortgageFiltration/HotFilterRecord.d.ts +11 -0
- package/mobile/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +12 -0
- package/mobile/bundle/components/RollupItem/rollupIconVersion.d.ts +1 -1
- package/mobile/bundle/components/Tabs/renderTabs.d.ts +12 -0
- package/mobile/bundle/hooks/useForm.d.ts +1 -0
- package/mobile/bundle/icons/IconName.d.ts +3 -3
- package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/ListControlProps.d.ts +4 -0
- package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/mobile/bundle/ui-kit/TabsControl/ScrollableTabsControl.d.ts +2 -0
- package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +11 -0
- package/mobile/bundle/ui-kit/TabsControl/TabsControl.d.ts +2 -0
- package/mobile/bundle/ui-kit/TabsControl/TabsControlProps.d.ts +6 -0
- package/mobile/bundle/ui-kit/TabsControl/renderTab.d.ts +4 -0
- package/mobile/bundle/utils/BoolComparator.d.ts +11 -0
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +19 -13
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +27 -49
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js +2 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +1 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +18 -11
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +13 -11
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.d.ts +1 -1
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +1 -0
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +2 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/dist/components/Calculator/renderDaysInput.js +1 -1
- package/mobile/dist/components/Calculator/renderDaysInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.js +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderPaymentType.js +1 -0
- package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/dist/components/Calculator/renderRate.d.ts +9 -0
- package/mobile/dist/components/Calculator/renderRate.js +16 -0
- package/mobile/dist/components/Calculator/renderRate.js.map +1 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +6 -7
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +9 -6
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MortgageFiltration/HotFilterRecord.d.ts +11 -0
- package/mobile/dist/components/MortgageFiltration/HotFilterRecord.js +5 -0
- package/mobile/dist/components/MortgageFiltration/HotFilterRecord.js.map +1 -0
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +24 -4
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +12 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js +1 -1
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +1 -1
- package/mobile/dist/components/RollupItem/rollupIconVersion.d.ts +1 -1
- package/mobile/dist/components/RollupItem/rollupIconVersion.js +1 -1
- package/mobile/dist/components/RollupItem/rollupIconVersion.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.js +19 -24
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/renderTabs.d.ts +12 -0
- package/mobile/dist/components/Tabs/renderTabs.js +19 -0
- package/mobile/dist/components/Tabs/renderTabs.js.map +1 -0
- package/mobile/dist/hooks/useForm.d.ts +1 -0
- package/mobile/dist/hooks/useForm.js +5 -0
- package/mobile/dist/hooks/useForm.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +3 -3
- package/mobile/dist/icons/IconName.js +3 -3
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +2 -2
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +2 -2
- package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.js +5 -3
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/mobile/dist/ui-kit/ListControlProps.d.ts +4 -0
- package/mobile/dist/ui-kit/ListControlProps.js +2 -0
- package/mobile/dist/ui-kit/ListControlProps.js.map +1 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +2 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.d.ts +2 -0
- package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js +17 -0
- package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -0
- package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +11 -0
- package/mobile/dist/ui-kit/TabsControl/TabItem.js +38 -0
- package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -0
- package/mobile/dist/ui-kit/TabsControl/TabsControl.d.ts +2 -0
- package/mobile/dist/ui-kit/TabsControl/TabsControl.js +8 -0
- package/mobile/dist/ui-kit/TabsControl/TabsControl.js.map +1 -0
- package/mobile/dist/ui-kit/TabsControl/TabsControlProps.d.ts +6 -0
- package/mobile/dist/ui-kit/TabsControl/TabsControlProps.js +2 -0
- package/mobile/dist/ui-kit/TabsControl/TabsControlProps.js.map +1 -0
- package/mobile/dist/ui-kit/TabsControl/renderTab.d.ts +4 -0
- package/mobile/dist/ui-kit/TabsControl/renderTab.js +7 -0
- package/mobile/dist/ui-kit/TabsControl/renderTab.js.map +1 -0
- package/mobile/dist/utils/BoolComparator.d.ts +11 -0
- package/mobile/dist/utils/BoolComparator.js +19 -0
- package/mobile/dist/utils/BoolComparator.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +19 -13
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +28 -50
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js +2 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +1 -0
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +18 -11
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +13 -11
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.d.ts +1 -1
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +1 -0
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +2 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +2 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/lib/components/Calculator/renderDaysInput.js +1 -1
- package/mobile/lib/components/Calculator/renderDaysInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.js +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderPaymentType.js +1 -0
- package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/lib/components/Calculator/renderRate.d.ts +9 -0
- package/mobile/lib/components/Calculator/renderRate.js +13 -0
- package/mobile/lib/components/Calculator/renderRate.js.map +1 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +7 -8
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +9 -6
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MortgageFiltration/HotFilterRecord.d.ts +11 -0
- package/mobile/lib/components/MortgageFiltration/HotFilterRecord.js +3 -0
- package/mobile/lib/components/MortgageFiltration/HotFilterRecord.js.map +1 -0
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +24 -4
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +12 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js +1 -1
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +1 -1
- package/mobile/lib/components/RollupItem/rollupIconVersion.d.ts +1 -1
- package/mobile/lib/components/RollupItem/rollupIconVersion.js +1 -1
- package/mobile/lib/components/RollupItem/rollupIconVersion.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.js +20 -25
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/renderTabs.d.ts +12 -0
- package/mobile/lib/components/Tabs/renderTabs.js +16 -0
- package/mobile/lib/components/Tabs/renderTabs.js.map +1 -0
- package/mobile/lib/hooks/useForm.d.ts +1 -0
- package/mobile/lib/hooks/useForm.js +5 -0
- package/mobile/lib/hooks/useForm.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +3 -3
- package/mobile/lib/icons/IconName.js +3 -3
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +2 -2
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +2 -2
- package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.js +5 -3
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/mobile/lib/ui-kit/ListControlProps.d.ts +4 -0
- package/mobile/lib/ui-kit/ListControlProps.js +2 -0
- package/mobile/lib/ui-kit/ListControlProps.js.map +1 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +2 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.d.ts +2 -0
- package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js +15 -0
- package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -0
- package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +11 -0
- package/mobile/lib/ui-kit/TabsControl/TabItem.js +36 -0
- package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -0
- package/mobile/lib/ui-kit/TabsControl/TabsControl.d.ts +2 -0
- package/mobile/lib/ui-kit/TabsControl/TabsControl.js +6 -0
- package/mobile/lib/ui-kit/TabsControl/TabsControl.js.map +1 -0
- package/mobile/lib/ui-kit/TabsControl/TabsControlProps.d.ts +6 -0
- package/mobile/lib/ui-kit/TabsControl/TabsControlProps.js +2 -0
- package/mobile/lib/ui-kit/TabsControl/TabsControlProps.js.map +1 -0
- package/mobile/lib/ui-kit/TabsControl/renderTab.d.ts +4 -0
- package/mobile/lib/ui-kit/TabsControl/renderTab.js +4 -0
- package/mobile/lib/ui-kit/TabsControl/renderTab.js.map +1 -0
- package/mobile/lib/utils/BoolComparator.d.ts +11 -0
- package/mobile/lib/utils/BoolComparator.js +12 -0
- package/mobile/lib/utils/BoolComparator.js.map +1 -0
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +35 -40
- package/mobile/src/components/Calculator/Calculator.tsx +69 -118
- package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +3 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +29 -27
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +23 -16
- package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +5 -2
- package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +4 -0
- package/mobile/src/components/Calculator/renderDaysInput.tsx +0 -1
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +0 -1
- package/mobile/src/components/Calculator/renderPaymentType.tsx +1 -0
- package/mobile/src/components/Calculator/renderRate.tsx +37 -0
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +15 -33
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/Header/HeaderTop.tsx +27 -14
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
- package/mobile/src/components/MortgageFiltration/HotFilterRecord.ts +14 -0
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.example.json +54 -4
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +51 -4
- package/mobile/src/components/MortgageFiltration/MortgageFiltrationContent.ts +13 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +1 -1
- package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +1 -1
- package/mobile/src/components/RollupItem/rollupIconVersion.tsx +1 -1
- package/mobile/src/components/Tabs/Tabs.tsx +42 -53
- package/mobile/src/components/Tabs/renderTabs.tsx +37 -0
- package/mobile/src/hooks/useForm.ts +7 -0
- package/mobile/src/icons/ArrowDownSolidIcon.svg +1 -1
- package/mobile/src/icons/ArrowUpSolidIcon.svg +1 -1
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +2 -2
- package/mobile/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +4 -4
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/ui-kit/BenefitsList/DefaultBenefitsList.tsx +8 -3
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
- package/mobile/src/ui-kit/ListControlProps.ts +5 -0
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +10 -2
- package/mobile/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +41 -0
- package/mobile/src/ui-kit/TabsControl/TabItem.tsx +81 -0
- package/mobile/src/ui-kit/TabsControl/TabsControl.tsx +12 -0
- package/mobile/src/ui-kit/TabsControl/TabsControlProps.ts +7 -0
- package/mobile/src/ui-kit/TabsControl/renderTab.tsx +15 -0
- package/mobile/src/utils/BoolComparator.ts +47 -0
- package/package.json +1 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +35 -40
- package/src/components/Calculator/Calculator.fixture.mobile.tsx +114 -0
- package/src/components/Calculator/Calculator.mobile.tsx +85 -0
- package/src/components/Calculator/CalculatorValueBlock.tsx +3 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +29 -27
- package/src/components/Calculator/DepositCalculatorForm.tsx +23 -16
- package/src/components/Calculator/RefinancingCalculatorForm.tsx +5 -2
- package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +4 -0
- package/src/components/Calculator/renderDaysInput.tsx +0 -1
- package/src/components/Calculator/renderMonthsInput.tsx +0 -1
- package/src/components/Calculator/renderPaymentType.tsx +1 -0
- package/src/components/Calculator/renderRate.tsx +37 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +15 -33
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/Header/HeaderTop.tsx +27 -14
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -3
- package/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
- package/src/components/MortgageFiltration/HotFilterRecord.ts +14 -0
- package/src/components/MortgageFiltration/MortgageFiltration.example.json +54 -4
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +51 -14
- package/src/components/MortgageFiltration/MortgageFiltration.tsx +51 -4
- package/src/components/MortgageFiltration/MortgageFiltrationContent.ts +13 -0
- package/src/components/RollupItem/RollupItem.tsx +1 -1
- package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +1 -1
- package/src/components/RollupItem/rollupIconVersion.mobile.tsx +1 -1
- package/src/components/Tabs/Tabs.tsx +42 -53
- package/src/components/Tabs/renderTabs.tsx +37 -0
- package/src/hooks/useForm.ts +7 -0
- package/src/icons/ArrowDownSolidIcon.svg +1 -1
- package/src/icons/ArrowUpSolidIcon.svg +1 -1
- package/src/icons/IconName.ts +4 -4
- package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +2 -2
- package/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +4 -4
- package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/src/ui-kit/BenefitsList/DefaultBenefitsList.tsx +8 -3
- package/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
- package/src/ui-kit/ListControlProps.ts +5 -0
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +10 -2
- package/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +41 -0
- package/src/ui-kit/TabsControl/TabItem.tsx +81 -0
- package/src/ui-kit/TabsControl/TabsControl.fixture.tsx +103 -0
- package/src/ui-kit/TabsControl/TabsControl.tsx +12 -0
- package/src/ui-kit/TabsControl/TabsControlProps.ts +7 -0
- package/src/ui-kit/TabsControl/renderTab.tsx +15 -0
- package/src/utils/BoolComparator.ts +47 -0
- package/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +0 -2
- package/bundle/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +0 -2
- package/bundle/components/Tabs/CenteredTabs.d.ts +0 -7
- package/bundle/components/Tabs/LinkTab.d.ts +0 -9
- package/bundle/components/Tabs/ScrollableTabs.d.ts +0 -8
- package/bundle/components/Tabs/renderGroupTab.d.ts +0 -4
- package/bundle/components/Tabs/renderTab.d.ts +0 -11
- package/bundle/components/Tabs/tabItemClasses.d.ts +0 -11
- package/bundle/ui-kit/BaseTile/getTileRightPadding.d.ts +0 -1
- package/dist/components/CarouselProgramsCard/programCardStyles.d.ts +0 -2
- package/dist/components/CarouselProgramsCard/programCardStyles.js +0 -5
- package/dist/components/CarouselProgramsCard/programCardStyles.js.map +0 -1
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +0 -2
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js +0 -5
- package/dist/components/CarouselProgramsCard/programCardStyles.mobile.js.map +0 -1
- package/dist/components/Tabs/CenteredTabs.d.ts +0 -7
- package/dist/components/Tabs/CenteredTabs.js +0 -7
- package/dist/components/Tabs/CenteredTabs.js.map +0 -1
- package/dist/components/Tabs/LinkTab.d.ts +0 -9
- package/dist/components/Tabs/LinkTab.js +0 -19
- package/dist/components/Tabs/LinkTab.js.map +0 -1
- package/dist/components/Tabs/ScrollableTabs.d.ts +0 -8
- package/dist/components/Tabs/ScrollableTabs.js +0 -17
- package/dist/components/Tabs/ScrollableTabs.js.map +0 -1
- package/dist/components/Tabs/renderGroupTab.d.ts +0 -4
- package/dist/components/Tabs/renderGroupTab.js +0 -20
- package/dist/components/Tabs/renderGroupTab.js.map +0 -1
- package/dist/components/Tabs/renderTab.d.ts +0 -11
- package/dist/components/Tabs/renderTab.js +0 -24
- package/dist/components/Tabs/renderTab.js.map +0 -1
- package/dist/components/Tabs/tabItemClasses.d.ts +0 -11
- package/dist/components/Tabs/tabItemClasses.js +0 -48
- package/dist/components/Tabs/tabItemClasses.js.map +0 -1
- package/dist/ui-kit/BaseTile/getTileRightPadding.d.ts +0 -1
- package/dist/ui-kit/BaseTile/getTileRightPadding.js +0 -17
- package/dist/ui-kit/BaseTile/getTileRightPadding.js.map +0 -1
- package/lib/components/CarouselProgramsCard/programCardStyles.d.ts +0 -2
- package/lib/components/CarouselProgramsCard/programCardStyles.js +0 -3
- package/lib/components/CarouselProgramsCard/programCardStyles.js.map +0 -1
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.d.ts +0 -2
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js +0 -3
- package/lib/components/CarouselProgramsCard/programCardStyles.mobile.js.map +0 -1
- package/lib/components/Tabs/CenteredTabs.d.ts +0 -7
- package/lib/components/Tabs/CenteredTabs.js +0 -5
- package/lib/components/Tabs/CenteredTabs.js.map +0 -1
- package/lib/components/Tabs/LinkTab.d.ts +0 -9
- package/lib/components/Tabs/LinkTab.js +0 -17
- package/lib/components/Tabs/LinkTab.js.map +0 -1
- package/lib/components/Tabs/ScrollableTabs.d.ts +0 -8
- package/lib/components/Tabs/ScrollableTabs.js +0 -15
- package/lib/components/Tabs/ScrollableTabs.js.map +0 -1
- package/lib/components/Tabs/renderGroupTab.d.ts +0 -3
- package/lib/components/Tabs/renderGroupTab.js +0 -17
- package/lib/components/Tabs/renderGroupTab.js.map +0 -1
- package/lib/components/Tabs/renderTab.d.ts +0 -10
- package/lib/components/Tabs/renderTab.js +0 -21
- package/lib/components/Tabs/renderTab.js.map +0 -1
- package/lib/components/Tabs/tabItemClasses.d.ts +0 -11
- package/lib/components/Tabs/tabItemClasses.js +0 -45
- package/lib/components/Tabs/tabItemClasses.js.map +0 -1
- package/lib/ui-kit/BaseTile/getTileRightPadding.d.ts +0 -1
- package/lib/ui-kit/BaseTile/getTileRightPadding.js +0 -14
- package/lib/ui-kit/BaseTile/getTileRightPadding.js.map +0 -1
- package/mobile/bundle/components/CarouselProgramsCard/programCardStyles.d.ts +0 -2
- package/mobile/bundle/components/Tabs/CenteredTabs.d.ts +0 -7
- package/mobile/bundle/components/Tabs/LinkTab.d.ts +0 -9
- package/mobile/bundle/components/Tabs/ScrollableTabs.d.ts +0 -8
- package/mobile/bundle/components/Tabs/renderGroupTab.d.ts +0 -4
- package/mobile/bundle/components/Tabs/renderTab.d.ts +0 -11
- package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +0 -11
- package/mobile/bundle/ui-kit/BaseTile/getTileRightPadding.d.ts +0 -1
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.d.ts +0 -2
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js +0 -5
- package/mobile/dist/components/CarouselProgramsCard/programCardStyles.js.map +0 -1
- package/mobile/dist/components/Tabs/CenteredTabs.d.ts +0 -7
- package/mobile/dist/components/Tabs/CenteredTabs.js +0 -7
- package/mobile/dist/components/Tabs/CenteredTabs.js.map +0 -1
- package/mobile/dist/components/Tabs/LinkTab.d.ts +0 -9
- package/mobile/dist/components/Tabs/LinkTab.js +0 -19
- package/mobile/dist/components/Tabs/LinkTab.js.map +0 -1
- package/mobile/dist/components/Tabs/ScrollableTabs.d.ts +0 -8
- package/mobile/dist/components/Tabs/ScrollableTabs.js +0 -17
- package/mobile/dist/components/Tabs/ScrollableTabs.js.map +0 -1
- package/mobile/dist/components/Tabs/renderGroupTab.d.ts +0 -4
- package/mobile/dist/components/Tabs/renderGroupTab.js +0 -20
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +0 -1
- package/mobile/dist/components/Tabs/renderTab.d.ts +0 -11
- package/mobile/dist/components/Tabs/renderTab.js +0 -24
- package/mobile/dist/components/Tabs/renderTab.js.map +0 -1
- package/mobile/dist/components/Tabs/tabItemClasses.d.ts +0 -11
- package/mobile/dist/components/Tabs/tabItemClasses.js +0 -48
- package/mobile/dist/components/Tabs/tabItemClasses.js.map +0 -1
- package/mobile/dist/ui-kit/BaseTile/getTileRightPadding.d.ts +0 -1
- package/mobile/dist/ui-kit/BaseTile/getTileRightPadding.js +0 -17
- package/mobile/dist/ui-kit/BaseTile/getTileRightPadding.js.map +0 -1
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.d.ts +0 -2
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js +0 -3
- package/mobile/lib/components/CarouselProgramsCard/programCardStyles.js.map +0 -1
- package/mobile/lib/components/Tabs/CenteredTabs.d.ts +0 -7
- package/mobile/lib/components/Tabs/CenteredTabs.js +0 -5
- package/mobile/lib/components/Tabs/CenteredTabs.js.map +0 -1
- package/mobile/lib/components/Tabs/LinkTab.d.ts +0 -9
- package/mobile/lib/components/Tabs/LinkTab.js +0 -17
- package/mobile/lib/components/Tabs/LinkTab.js.map +0 -1
- package/mobile/lib/components/Tabs/ScrollableTabs.d.ts +0 -8
- package/mobile/lib/components/Tabs/ScrollableTabs.js +0 -15
- package/mobile/lib/components/Tabs/ScrollableTabs.js.map +0 -1
- package/mobile/lib/components/Tabs/renderGroupTab.d.ts +0 -4
- package/mobile/lib/components/Tabs/renderGroupTab.js +0 -17
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +0 -1
- package/mobile/lib/components/Tabs/renderTab.d.ts +0 -11
- package/mobile/lib/components/Tabs/renderTab.js +0 -21
- package/mobile/lib/components/Tabs/renderTab.js.map +0 -1
- package/mobile/lib/components/Tabs/tabItemClasses.d.ts +0 -11
- package/mobile/lib/components/Tabs/tabItemClasses.js +0 -45
- package/mobile/lib/components/Tabs/tabItemClasses.js.map +0 -1
- package/mobile/lib/ui-kit/BaseTile/getTileRightPadding.d.ts +0 -1
- package/mobile/lib/ui-kit/BaseTile/getTileRightPadding.js +0 -14
- package/mobile/lib/ui-kit/BaseTile/getTileRightPadding.js.map +0 -1
- package/mobile/src/components/CarouselProgramsCard/programCardStyles.ts +0 -2
- package/mobile/src/components/Tabs/CenteredTabs.tsx +0 -12
- package/mobile/src/components/Tabs/LinkTab.tsx +0 -47
- package/mobile/src/components/Tabs/ScrollableTabs.tsx +0 -46
- package/mobile/src/components/Tabs/renderGroupTab.tsx +0 -53
- package/mobile/src/components/Tabs/renderTab.tsx +0 -35
- package/mobile/src/components/Tabs/tabItemClasses.ts +0 -56
- package/mobile/src/ui-kit/BaseTile/getTileRightPadding.ts +0 -12
- package/src/components/CarouselProgramsCard/programCardStyles.mobile.ts +0 -2
- package/src/components/CarouselProgramsCard/programCardStyles.ts +0 -2
- package/src/components/Tabs/CenteredTabs.tsx +0 -12
- package/src/components/Tabs/LinkTab.tsx +0 -47
- package/src/components/Tabs/ScrollableTabs.tsx +0 -46
- package/src/components/Tabs/renderGroupTab.tsx +0 -53
- package/src/components/Tabs/renderTab.tsx +0 -35
- package/src/components/Tabs/tabItemClasses.ts +0 -56
- package/src/ui-kit/BaseTile/getTileRightPadding.ts +0 -12
- /package/cosmos-static/icons/{ChevronLeft.svg → ChevronLeftIcon.svg} +0 -0
- /package/mobile/src/icons/{ChevronLeft.svg → ChevronLeftIcon.svg} +0 -0
- /package/src/icons/{ChevronLeft.svg → ChevronLeftIcon.svg} +0 -0
|
@@ -2,19 +2,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.DepositCalculatorForm = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const useForm_1 = require("../../hooks/useForm");
|
|
7
5
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
8
6
|
const style_1 = require("../../utils/style");
|
|
9
|
-
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
10
|
-
const constants_1 = require("./constants");
|
|
11
|
-
const Rate_1 = require("./Rate");
|
|
12
7
|
const renderFootnote_1 = require("./renderFootnote");
|
|
13
|
-
const renderInterestPayment_1 = require("./renderInterestPayment");
|
|
14
|
-
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
15
|
-
const renderRegistrationType_1 = require("./renderRegistrationType");
|
|
16
8
|
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
9
|
+
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
10
|
+
const useForm_1 = require("../../hooks/useForm");
|
|
11
|
+
const constants_1 = require("./constants");
|
|
17
12
|
const useDepositCalculatorParams_1 = require("./useDepositCalculatorParams");
|
|
13
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
14
|
+
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
15
|
+
const renderInterestPayment_1 = require("./renderInterestPayment");
|
|
16
|
+
const renderRegistrationType_1 = require("./renderRegistrationType");
|
|
17
|
+
const renderRate_1 = require("./renderRate");
|
|
18
18
|
exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
19
19
|
const [userInputParams, { field }] = (0, useForm_1.useForm)({
|
|
20
20
|
moneyValue: constants_1.DEPOSIT_DEFAULT_SUM,
|
|
@@ -23,12 +23,12 @@ exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className, sourceBookDir,
|
|
|
23
23
|
isRemoteRegistration: false,
|
|
24
24
|
});
|
|
25
25
|
const calculatorParams = (0, useDepositCalculatorParams_1.useDepositCalculatorParams)(userInputParams, sourceBookDir, paramsViewSettings);
|
|
26
|
-
const { defaultMonth, income, finalSum
|
|
26
|
+
const { defaultMonth, rate, income, finalSum } = calculatorParams;
|
|
27
27
|
const { onChange: setMonthsValue } = field('monthsValue');
|
|
28
28
|
(0, hooks_1.useEffect)(() => {
|
|
29
29
|
setMonthsValue && setMonthsValue(defaultMonth);
|
|
30
30
|
}, [defaultMonth]);
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex justify-between', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-2/5", children: [(0, renderWantedSumInput_1.renderWantedSumInput)({
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex flex-col justify-between sm:flex-row', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-lg sm:w-2/5", children: [(0, renderWantedSumInput_1.renderWantedSumInput)({
|
|
32
32
|
title: 'Сумма, ₽',
|
|
33
33
|
min: calculatorParams.minSum,
|
|
34
34
|
max: calculatorParams.maxSum,
|
|
@@ -41,7 +41,9 @@ exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className, sourceBookDir,
|
|
|
41
41
|
availableMonths: calculatorParams.availableMonths,
|
|
42
42
|
...field('monthsValue'),
|
|
43
43
|
value: calculatorParams.monthsValue,
|
|
44
|
-
}), (0, jsx_runtime_1.jsx)("div", { className: "
|
|
44
|
+
}), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-y-2xl", children: renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field) })] }), (0, jsx_runtime_1.jsx)("div", { className: "border-b border-main-divider mt-lg mb-2xl md:hidden" }), (0, renderRate_1.renderRate)({
|
|
45
|
+
rate,
|
|
46
|
+
}), (0, jsx_runtime_1.jsxs)("div", { className: "mt-2xl flex flex-col gap-y-2xl sm:w-96 sm:gap-y-0 sm:mt-0", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
|
|
45
47
|
});
|
|
46
48
|
const renderDepositParamsForm = (params, field) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowMonthlyInterestPayment
|
|
47
49
|
? (0, renderInterestPayment_1.renderInterestPayment)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mFAAgF;AAChF,6CAA0C;AAK1C,qDAAkD;AAClD,iEAA8D;AAC9D,2DAAwD;AACxD,iDAAmE;AACnE,2CAAkD;AAClD,6EAAmG;AACnG,uDAAwD;AACxD,iEAA8D;AAC9D,mEAAgE;AAChE,qEAAkE;AAClE,6CAA0C;AAM7B,QAAA,qBAAqB,GAAG,IAAA,aAAG,EACtC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACtE,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC;QAC3C,UAAU,EAAE,+BAAmB;QAC/B,WAAW,EAAE,CAAC;QACd,wBAAwB,EAAE,KAAK;QAC/B,oBAAoB,EAAE,KAAK;KAC5B,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,IAAA,uDAA0B,EACjD,eAAe,EACf,aAAa,EACb,kBAAkB,CACnB,CAAC;IACF,MAAM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C,QAAG,EAAC,MAAM,EAAC,GAAG,GAAG,EAC1F,uBAAC,2CAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,QAAG,GAAG,EAChF,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACnD,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAC9B,MAAqE,EACrE,KAA+B,EAC/B,EAAE,CAAC,CACH,iCAAK,SAAS,EAAC,yBAAyB,aACrC,MAAM,CAAC,4BAA4B;YAClC,CAAC,CAAC,IAAA,6CAAqB,EAAC;gBACpB,KAAK,EAAE,mBAAmB;gBAC1B,GAAG,KAAK,CAAC,0BAA0B,CAAC;gBACpC,KAAK,EAAE,MAAM,CAAC,wBAAwB;aACvC,CAAC;YACJ,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,wBAAwB;YAC9B,CAAC,CAAC,IAAA,+CAAsB,EAAC;gBACrB,KAAK,EAAE,YAAY;gBACnB,GAAG,KAAK,CAAC,sBAAsB,CAAC;gBAChC,KAAK,EAAE,MAAM,CAAC,oBAAoB;aACnC,CAAC;YACJ,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -48,6 +48,7 @@ exports.RefinancingCalculatorForm = (0, uni_jsx_1.JSX)(({ className, sourceBookD
|
|
|
48
48
|
max: calculatorParams.maxMonths,
|
|
49
49
|
...field('monthsValue'),
|
|
50
50
|
value: calculatorParams.monthsValue,
|
|
51
|
+
className: 'mt-2xl',
|
|
51
52
|
}), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('mt-7', calculatorParams.isExtraMoney ? 'mb-3' : ''), children: renderCreditParamsForm({ ...calculatorParams, ...paramsViewSettings }, field) }), calculatorParams.isExtraMoney
|
|
52
53
|
? (0, renderWantedSumInput_1.renderWantedSumInput)({
|
|
53
54
|
title: 'Дополнительная сумма, ₽ ',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefinancingCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/RefinancingCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,+CAAwC;AACxC,iDAAmE;AACnE,mFAAgF;AAChF,6DAA0D;AAC1D,6CAA0C;
|
|
1
|
+
{"version":3,"file":"RefinancingCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/RefinancingCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,+CAAwC;AACxC,iDAAmE;AACnE,mFAAgF;AAChF,6DAA0D;AAC1D,6CAA0C;AAK1C,iEAA8D;AAC9D,2CAIqB;AACrB,iCAA8B;AAC9B,qDAAkD;AAClD,2DAAwD;AACxD,iEAA8D;AAC9D,qFAG0C;AAC1C,2DAAwD;AAM3C,QAAA,yBAAyB,GAAG,IAAA,aAAG,EAC1C,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,EAAE;IACtE,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC;QAC3C,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,KAAK;QACrB,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,mCAAuB;QACnC,iBAAiB,EAAE,uCAA2B;QAC9C,WAAW,EAAE,sCAA0B;QACvC,UAAU,EAAE,uCAA2B;KACxC,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,IAAA,+DAA8B,EACrD,eAAe,EACf,aAAa,EACb,kBAAkB,CACnB,CAAC;IAEF,OAAO,CACL,qCAAS,SAAS,EAAE,IAAA,aAAK,EAAC,sBAAsB,EAAE,SAAS,CAAC,aAC1D,iCAAK,SAAS,EAAC,OAAO,aACnB,IAA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C,MAAM,EAChB,IAAI,EAAC,gKAA8B,KAC/B,KAAK,CAAC,aAAa,CAAC,EACxB,KAAK,EAAE,MAAM,CAAC,WAAW,GACzB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CACzB,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,sKAA+B,KAChC,KAAK,CAAC,cAAc,CAAC,EACzB,KAAK,EAAE,MAAM,CAAC,YAAY,GAC1B,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -6,6 +6,7 @@ export interface BinaryRadioButtonGroupProps {
|
|
|
6
6
|
title?: string;
|
|
7
7
|
orientation?: ListOrientation;
|
|
8
8
|
value?: boolean;
|
|
9
|
+
radioGroupClassName?: string;
|
|
9
10
|
onChange?: (value: boolean) => void;
|
|
10
11
|
}
|
|
11
|
-
export declare const renderBinaryRadioButtonGroup: ({ items, title, orientation, value, onChange, }: BinaryRadioButtonGroupProps) => JSX.Element;
|
|
12
|
+
export declare const renderBinaryRadioButtonGroup: ({ items, title, orientation, value, radioGroupClassName, onChange, }: BinaryRadioButtonGroupProps) => JSX.Element;
|
|
@@ -3,6 +3,7 @@ exports.renderBinaryRadioButtonGroup = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const RadioButtonGroup_1 = require("../../ui-kit/RadioButtonGroup/RadioButtonGroup");
|
|
5
5
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
6
|
-
const
|
|
6
|
+
const style_1 = require("../../utils/style");
|
|
7
|
+
const renderBinaryRadioButtonGroup = ({ items, title, orientation = 'horizontal', value, radioGroupClassName, onChange, }) => ((0, jsx_runtime_1.jsxs)("div", { children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { orientation: orientation, items: items, checkedItem: items[value ? 0 : 1].id, className: (0, style_1.style)('flex-col sm:flex-row', radioGroupClassName), onChange: (_) => onChange && onChange(_ === items[0].id) })] }));
|
|
7
8
|
exports.renderBinaryRadioButtonGroup = renderBinaryRadioButtonGroup;
|
|
8
9
|
//# sourceMappingURL=renderBinaryRadioButtonGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBinaryRadioButtonGroup.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderBinaryRadioButtonGroup.tsx"],"names":[],"mappings":";;;AACA,qFAAmG;AACnG,iDAA8C;
|
|
1
|
+
{"version":3,"file":"renderBinaryRadioButtonGroup.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderBinaryRadioButtonGroup.tsx"],"names":[],"mappings":";;;AACA,qFAAmG;AACnG,iDAA8C;AAC9C,6CAA0C;AAWnC,MAAM,4BAA4B,GAAG,CAAC,EAC3C,KAAK,EACL,KAAK,EACL,WAAW,GAAG,YAAY,EAC1B,KAAK,EACL,mBAAmB,EACnB,QAAQ,GACoB,EAAE,EAAE,CAAC,CACjC,4CACG,KAAK,CAAC,CAAC,CAAC,CACP,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,mCAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EACpC,SAAS,EAAE,IAAA,aAAK,EAAC,sBAAsB,EAAE,mBAAmB,CAAC,EAC7D,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GACxD,IACE,CACP,CAAC;AAxBW,QAAA,4BAA4B,gCAwBvC"}
|
|
@@ -3,7 +3,7 @@ exports.renderDaysInput = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
5
5
|
const STEP_DAYS = 1;
|
|
6
|
-
const renderDaysInput = (props) => ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, {
|
|
6
|
+
const renderDaysInput = (props) => ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
|
|
7
7
|
exports.renderDaysInput = renderDaysInput;
|
|
8
8
|
const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
|
|
9
9
|
//# sourceMappingURL=renderDaysInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderDaysInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderDaysInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAGhE,MAAM,SAAS,GAAG,CAAC,CAAC;AAEb,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,CACzD,uBAAC,uBAAU,IACT,
|
|
1
|
+
{"version":3,"file":"renderDaysInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderDaysInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAGhE,MAAM,SAAS,GAAG,CAAC,CAAC;AAEb,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,CACzD,uBAAC,uBAAU,IACT,KAAK,EAAE,CAAC,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,EAAE,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAC3E,IAAI,EAAE,SAAS,KACX,KAAK,GACT,CACH,CAAC;AANW,QAAA,eAAe,mBAM1B;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@ exports.renderMonthsInput = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
5
5
|
const STEP_MONTHS = 1;
|
|
6
|
-
const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, {
|
|
6
|
+
const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
|
|
7
7
|
exports.renderMonthsInput = renderMonthsInput;
|
|
8
8
|
const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
|
|
9
9
|
//# sourceMappingURL=renderMonthsInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAGhE,MAAM,WAAW,GAAG,CAAC,CAAC;AAMf,MAAM,iBAAiB,GAAG,CAAC,EAChC,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,CAAC,EACP,eAAe,EACf,GAAG,IAAI,EACW,EAAE,EAAE,CAAC,CACvB,uBAAC,uBAAU,IACT,
|
|
1
|
+
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAGhE,MAAM,WAAW,GAAG,CAAC,CAAC;AAMf,MAAM,iBAAiB,GAAG,CAAC,EAChC,GAAG,GAAG,CAAC,EACP,GAAG,GAAG,CAAC,EACP,eAAe,EACf,GAAG,IAAI,EACW,EAAE,EAAE,CAAC,CACvB,uBAAC,uBAAU,IACT,KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,EACvD,IAAI,EAAE,WAAW,KACb,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,KACpE,IAAI,GACR,CACH,CAAC;AAZW,QAAA,iBAAiB,qBAY5B;AAEF,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC"}
|
|
@@ -3,6 +3,7 @@ exports.renderPaymentType = void 0;
|
|
|
3
3
|
const renderBinaryRadioButtonGroup_1 = require("./renderBinaryRadioButtonGroup");
|
|
4
4
|
const renderPaymentType = (props) => (0, renderBinaryRadioButtonGroup_1.renderBinaryRadioButtonGroup)({
|
|
5
5
|
...props,
|
|
6
|
+
radioGroupClassName: 'sm:flex-col',
|
|
6
7
|
items: [
|
|
7
8
|
{ id: 'annuity', text: 'Аннуитетный' },
|
|
8
9
|
{ id: 'differential', text: 'Дифференцированный' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentType.tsx"],"names":[],"mappings":";;AAAA,iFAGwC;AAEjC,MAAM,iBAAiB,GAAG,CAAC,KAA2C,EAAE,EAAE,CAC/E,IAAA,2DAA4B,EAAC;IAC3B,GAAG,KAAK;IACR,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;QACtC,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,oBAAoB,EAAE;KACnD;CACF,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentType.tsx"],"names":[],"mappings":";;AAAA,iFAGwC;AAEjC,MAAM,iBAAiB,GAAG,CAAC,KAA2C,EAAE,EAAE,CAC/E,IAAA,2DAA4B,EAAC;IAC3B,GAAG,KAAK;IACR,mBAAmB,EAAE,aAAa;IAClC,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;QACtC,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,oBAAoB,EAAE;KACnD;CACF,CAAC,CAAC;AARQ,QAAA,iBAAiB,qBAQzB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderRate = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const UnknownRate_1 = require("./UnknownRate");
|
|
5
|
+
const Rate_1 = require("./Rate");
|
|
6
|
+
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
7
|
+
const renderDesktopRate = ({ rate, depositeName, isShowDepositeName }) => ((0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate, depositeName: depositeName, isShowDepositeName: isShowDepositeName, rateBlockClassName: "tracking-[-25px]", unit: "%" }));
|
|
8
|
+
const renderMobileRate = ({ rate }) => ((0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", value: rate, postfix: "%" }));
|
|
9
|
+
const renderRate = (props) => {
|
|
10
|
+
if (props.isShowUnknownRate) {
|
|
11
|
+
return (0, jsx_runtime_1.jsx)(UnknownRate_1.UnknownRate, {});
|
|
12
|
+
}
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "hidden md:block", children: renderDesktopRate(props) }), (0, jsx_runtime_1.jsx)("div", { className: "md:hidden", children: renderMobileRate(props) })] }));
|
|
14
|
+
};
|
|
15
|
+
exports.renderRate = renderRate;
|
|
16
|
+
//# sourceMappingURL=renderRate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderRate.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRate.tsx"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,iCAA8B;AAC9B,iEAA8D;AAS9D,MAAM,iBAAiB,GAAG,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,kBAAkB,EAAmB,EAAE,EAAE,CAAC,CACzF,uBAAC,WAAI,IACH,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,kBAAkB,EAAC,kBAAkB,EACrC,IAAI,EAAC,GAAG,GACR,CACH,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,EAAE,IAAI,EAAmB,EAAE,EAAE,CAAC,CACtD,uBAAC,2CAAoB,IAAC,KAAK,EAAC,sCAAQ,EAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAC,GAAG,GAAG,CACjE,CAAC;AAEK,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE;IACnD,IAAI,KAAK,CAAC,iBAAiB,EAAE;QAC3B,OAAO,uBAAC,yBAAW,KAAG,CAAC;KACxB;IAED,OAAO,CACL,4CACE,gCAAK,SAAS,EAAC,iBAAiB,YAAE,iBAAiB,CAAC,KAAK,CAAC,GAAO,EACjE,gCAAK,SAAS,EAAC,WAAW,YAAE,gBAAgB,CAAC,KAAK,CAAC,GAAO,IACtD,CACP,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,UAAU,cAWrB"}
|
|
@@ -2,13 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.CarouselProgramsCard = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const BaseProductTile_1 = require("../../ui-kit/BaseProductTile/BaseProductTile");
|
|
5
6
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
8
7
|
const LinkWrapper_1 = require("../../ui-kit/LinkWrapper/LinkWrapper");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
exports.CarouselProgramsCard = (0, uni_jsx_1.JSX)(({ className, title, icon, list, href, target, ...rest }) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: className, defaultPadding: "p-3xl", ...rest, children: (0, jsx_runtime_1.jsx)(LinkWrapper_1.LinkWrapper, { className: "flex items-center h-full", href: href, target: target, children: (0, jsx_runtime_1.jsx)(BaseProductTile_1.BaseProductTile, { title: title, headlineVersion: "XS", image: icon, imageOptions: { directionRight: false, imageAlign: 'center' }, benefits: list?.map((_) => ({
|
|
9
|
+
type: 'default',
|
|
10
|
+
label: _.title,
|
|
11
|
+
description: _.description,
|
|
12
|
+
})) }) }) })));
|
|
14
13
|
//# sourceMappingURL=CarouselProgramsCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselProgramsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"CarouselProgramsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,kFAA+E;AAC/E,4DAAyD;AACzD,sEAAmE;AAKtD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC3D,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,OAAO,KAAK,IAAI,YACjE,uBAAC,yBAAW,IAAC,SAAS,EAAC,0BAA0B,EAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,YAC1E,uBAAC,iCAAe,IACd,KAAK,EAAE,KAAK,EACZ,eAAe,EAAC,IAAI,EACpB,KAAK,EAAE,IAAI,EACX,YAAY,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAC7D,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC1B,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,CAAC,CAAC,KAAK;gBACd,WAAW,EAAE,CAAC,CAAC,WAAW;aAC3B,CAAC,CAAC,GACH,GACU,GACD,CAChB,CACF,CAAC"}
|
|
@@ -11,6 +11,6 @@ const BG_COLOR_TO_BLOCK_VERSION = {
|
|
|
11
11
|
};
|
|
12
12
|
exports.Header = (0, uni_jsx_1.JSX)(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
|
|
13
13
|
const { logo, internetBankUrl } = (0, useSitemap_1.useSitemap)(rest.options?.page?.fallback);
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: (0, jsx_runtime_1.jsx)("div", { className: "container px-
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: (0, jsx_runtime_1.jsx)("div", { className: "container px-5 py-2xs box-border", children: (0, jsx_runtime_1.jsx)(HeaderTop_1.HeaderTop, { bgColor: bgColor, logo: logo, internetBankUrl: internetBankUrl, version: version, ...rest }) }) }));
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=Header.js.map
|
|
@@ -8,19 +8,22 @@ const style_1 = require("../../utils/style");
|
|
|
8
8
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
9
9
|
const useRouter_1 = require("../../hooks/useRouter");
|
|
10
10
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
11
|
+
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
11
12
|
const BUTTON_STYLE = {
|
|
12
13
|
default: 'px-5 bg-main-divider rounded hover:text-primary-main',
|
|
13
14
|
transparent: 'text-white hover:text-primary-hover',
|
|
14
15
|
};
|
|
15
16
|
exports.HeaderTop = (0, uni_jsx_1.JSX)(({ bgColor, logo, internetBankUrl, version }) => {
|
|
16
17
|
const router = (0, useRouter_1.useRouter)();
|
|
17
|
-
const isRootLocation = router.pathname
|
|
18
|
-
const onClick = (0, hooks_1.useCallback)(() => {
|
|
18
|
+
const isRootLocation = ProjectSettings_1.projectSettings.BASE_PATH?.startsWith(router.pathname);
|
|
19
|
+
const onClick = (0, hooks_1.useCallback)((e) => {
|
|
20
|
+
e.preventDefault();
|
|
19
21
|
router.back();
|
|
20
22
|
}, []);
|
|
21
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between w-full", children: [isRootLocation ? ((0, jsx_runtime_1.jsx)(Logo_1.Logo, { bgColor: bgColor, logo: logo })) : ((0, jsx_runtime_1.
|
|
22
|
-
icon: 'ChevronLeft',
|
|
23
|
-
iconVersion: 'black',
|
|
24
|
-
} }), "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434"] })), internetBankUrl ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { href: internetBankUrl, ariaLabel: "\u0412\u043E\u0439\u0442\u0438", target: "_blank", className: (0, style_1.style)('p-s my-2xs text-s whitespace-nowrap text-primary-main hover:text-primary-hover', BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default']), children: "\u0412\u043E\u0439\u0442\u0438" })) : null] }));
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center justify-between w-full", children: [isRootLocation ? ((0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mt-2xs", bgColor: bgColor, logo: logo })) : (renderBackButton(onClick)), internetBankUrl ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { href: internetBankUrl, ariaLabel: "\u0412\u043E\u0439\u0442\u0438", target: "_blank", className: (0, style_1.style)('p-s text-s whitespace-nowrap text-primary-main hover:text-primary-hover', BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default']), children: "\u0412\u043E\u0439\u0442\u0438" })) : null] }));
|
|
25
24
|
});
|
|
25
|
+
const renderBackButton = (onClick) => ((0, jsx_runtime_1.jsxs)("button", { className: "flex items-center text-l mt-2xs", "aria-label": "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434", onClick: onClick, children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6 h-6", image: {
|
|
26
|
+
icon: 'ChevronLeftIcon',
|
|
27
|
+
iconVersion: 'black',
|
|
28
|
+
}, width: "24", height: "24" }), "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434"] }));
|
|
26
29
|
//# sourceMappingURL=HeaderTop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,iDAA8C;AAC9C,uDAAoD;AACpD,6CAA0C;AAE1C,8CAA2C;AAC3C,qDAAkD;AAClD,uDAA0D;
|
|
1
|
+
{"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,iDAA8C;AAC9C,uDAAoD;AACpD,6CAA0C;AAE1C,8CAA2C;AAC3C,qDAAkD;AAClD,uDAA0D;AAC1D,2DAAwD;AAUxD,MAAM,YAAY,GAAG;IACnB,OAAO,EAAE,sDAAsD;IAC/D,WAAW,EAAE,qCAAqC;CACnD,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,EAAE,EAAE;IAC3F,MAAM,MAAM,GAAG,IAAA,qBAAS,GAAE,CAAC;IAC3B,MAAM,cAAc,GAAG,iCAAe,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC9E,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAC,EAAE,EAAE;QAChC,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,MAAM,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,iCAAK,SAAS,EAAC,0CAA0C,aACtD,cAAc,CAAC,CAAC,CAAC,CAChB,uBAAC,WAAI,IAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAI,CAC1D,CAAC,CAAC,CAAC,CACF,gBAAgB,CAAC,OAAO,CAAC,CAC1B,EACA,eAAe,CAAC,CAAC,CAAC,CACjB,uBAAC,eAAM,IACL,IAAI,EAAE,eAAe,EACrB,SAAS,EAAC,gCAAO,EACjB,MAAM,EAAC,QAAQ,EACf,SAAS,EAAE,IAAA,aAAK,EACd,yEAAyE,EACzE,YAAY,CAAC,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CACpE,+CAGM,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,OAAwC,EAAE,EAAE,CAAC,CACrE,oCACE,SAAS,EAAC,iCAAiC,gBAChC,uFAAiB,EAC5B,OAAO,EAAE,OAAO,aAEhB,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE;gBACL,IAAI,EAAE,iBAAiB;gBACvB,WAAW,EAAE,OAAO;aACrB,EACD,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,6FAEK,CACV,CAAC"}
|
|
@@ -13,6 +13,6 @@ const renderDescription_1 = require("./renderDescription");
|
|
|
13
13
|
const renderList_1 = require("./renderList");
|
|
14
14
|
exports.MobileAppTile = (0, uni_jsx_1.JSX)(({ className, padding, alignTitle = 'left', buttons = [], description, headingType = 'h4', image, items, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
15
15
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: (0, style_1.style)('whitespace-pre-wrap', AlignText_1.AlignText[alignTitle]) })) : null, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, { isVertical: buttons.length > 4 }), children: [(0, renderDescription_1.renderDescription)(description), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-1 flex-wrap gap-m items-center", children: [qr?.src ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-center bg-white rounded-md', containerStyle), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-fit", image: qr }) })) : null, (0, renderList_1.renderList)(items), image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null] })] }) }));
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: (0, style_1.style)('whitespace-pre-wrap', AlignText_1.AlignText[alignTitle]) })) : null, rightImage: image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "hidden lg:block", image: image }) : null, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, { isVertical: buttons.length > 4 }), children: [(0, renderDescription_1.renderDescription)(description), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-1 flex-wrap gap-m items-center", children: [qr?.src ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-center bg-white rounded-md', containerStyle), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-fit", image: qr }) })) : null, (0, renderList_1.renderList)(items), image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=MobileAppTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAElD,6DAA0D;AAC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,YAC9E,uBAAC,SAAG,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,GAAI,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAA,uBAAU,EAAC,KAAK,CAAC,EACjB,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qDAAkD;AAElD,6DAA0D;AAC1D,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,6CAA0C;AAE1C,2DAAwD;AACxD,6CAA0C;AAI7B,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EACC,SAAS,EACT,OAAO,EACP,UAAU,GAAG,MAAM,EACnB,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,WAAW,GAAG,IAAI,EAClB,KAAK,EACL,KAAK,EACL,EAAE,EACF,KAAK,GAAG,sBAAsB,EAC9B,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,cAAc,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC;IAE7E,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,SAAS,CAAC,EACvC,OAAO,EAAC,KAAK,EACb,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,wBAAC,mBAAQ,IACP,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAC,OAAO,EACtB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,qBAAS,CAAC,UAAU,CAAC,CAAC,GAC9D,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,UAAU,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACjF,OAAO,EAAE,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,aAEzE,IAAA,qCAAiB,EAAC,WAAW,CAAC,EAC/B,iCAAK,SAAS,EAAC,0CAA0C,aACtD,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CACT,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,yCAAyC,EAAE,cAAc,CAAC,YAC9E,uBAAC,SAAG,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,GAAI,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAA,uBAAU,EAAC,KAAK,CAAC,EACjB,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IAC5D,IACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type HotFilterRecord = {
|
|
2
|
+
/** @title Тип недвижимости */
|
|
3
|
+
propertyType?: string[];
|
|
4
|
+
/** @title Этап строительства */
|
|
5
|
+
stage?: string[];
|
|
6
|
+
/** @title Категории */
|
|
7
|
+
categories?: string[];
|
|
8
|
+
/** @title Дополнительно */
|
|
9
|
+
extraOptions?: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare const hotFilterRecordCmp: (a: Record<string, string[]> | null | undefined, b: Record<string, string[]> | null | undefined) => boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.hotFilterRecordCmp = void 0;
|
|
3
|
+
const BoolComparator_1 = require("../../utils/BoolComparator");
|
|
4
|
+
exports.hotFilterRecordCmp = (0, BoolComparator_1.objCmp)((0, BoolComparator_1.combineBoolCmps)(BoolComparator_1.scalarCmp, (0, BoolComparator_1.arrCmp)()));
|
|
5
|
+
//# sourceMappingURL=HotFilterRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotFilterRecord.js","sourceRoot":"","sources":["../../../src/components/MortgageFiltration/HotFilterRecord.ts"],"names":[],"mappings":";;AAAA,+DAAwF;AAa3E,QAAA,kBAAkB,GAAG,IAAA,uBAAM,EAAW,IAAA,gCAAe,EAAC,0BAAS,EAAE,IAAA,uBAAM,GAAE,CAAC,CAAC,CAAC"}
|
|
@@ -2,15 +2,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.MortgageFiltration = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
5
6
|
const useForm_1 = require("../../hooks/useForm");
|
|
6
7
|
const BaseFiltrationInner_1 = require("../../ui-kit/BaseFiltration/BaseFiltrationInner");
|
|
7
8
|
const renderFiltrationForm_1 = require("../../ui-kit/BaseFiltration/renderFiltrationForm");
|
|
8
9
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
10
|
+
const TabsControl_1 = require("../../ui-kit/TabsControl/TabsControl");
|
|
9
11
|
const style_1 = require("../../utils/style");
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
const HotFilterRecord_1 = require("./HotFilterRecord");
|
|
13
|
+
const initialFiltrationState = {
|
|
14
|
+
categories: [],
|
|
15
|
+
extraOptions: [],
|
|
16
|
+
propertyType: [],
|
|
17
|
+
stage: [],
|
|
18
|
+
};
|
|
19
|
+
exports.MortgageFiltration = (0, uni_jsx_1.JSX)(({ className, hotFilters = [], filtrationSchema = {}, resetButton, ...rest }) => {
|
|
20
|
+
const [filtrationState, { field, reset, update: replaceFiltrationState }] = (0, useForm_1.useForm)(initialFiltrationState);
|
|
21
|
+
const normalizedHotFilters = (0, hooks_1.useMemo)(() => hotFilters.map(({ text }) => ({
|
|
22
|
+
text,
|
|
23
|
+
})), [hotFilters]);
|
|
24
|
+
const [hotFilterIndex, setHotFilterIndex] = (0, hooks_1.useState)(0);
|
|
25
|
+
const handleHotFilterSelect = (0, hooks_1.useCallback)((_) => {
|
|
26
|
+
setHotFilterIndex(normalizedHotFilters.indexOf(_));
|
|
27
|
+
replaceFiltrationState(hotFilters[normalizedHotFilters.indexOf(_)].filter || initialFiltrationState);
|
|
28
|
+
}, [normalizedHotFilters]);
|
|
29
|
+
(0, hooks_1.useEffect)(() => {
|
|
30
|
+
const suggestedHotFilterIndex = hotFilters.findIndex((_) => (0, HotFilterRecord_1.hotFilterRecordCmp)(_.filter, filtrationState));
|
|
31
|
+
setHotFilterIndex(suggestedHotFilterIndex !== -1 ? suggestedHotFilterIndex : 0);
|
|
32
|
+
}, [hotFilters, filtrationState]);
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(className), defaultPadding: "p-0", version: "transparent", ...rest, children: [(0, jsx_runtime_1.jsx)(TabsControl_1.TabsControl, { className: "mb-2xs", items: normalizedHotFilters, value: normalizedHotFilters[hotFilterIndex], onChange: handleHotFilterSelect }), (0, renderFiltrationForm_1.renderFiltrationForm)({ field, reset, filtrationSchema, resetButton }), (0, jsx_runtime_1.jsx)(BaseFiltrationInner_1.BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
|
|
14
34
|
});
|
|
15
35
|
exports.MortgageFiltration.childrenTypes = ['ProductTile'];
|
|
16
36
|
exports.MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MortgageFiltration.js","sourceRoot":"","sources":["../../../src/components/MortgageFiltration/MortgageFiltration.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,yFAAsF;AACtF,2FAAwF;AACxF,4DAAyD;
|
|
1
|
+
{"version":3,"file":"MortgageFiltration.js","sourceRoot":"","sources":["../../../src/components/MortgageFiltration/MortgageFiltration.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwF;AACxF,iDAA8C;AAE9C,yFAAsF;AACtF,2FAAwF;AACxF,4DAAyD;AAEzD,sEAAmE;AACnE,6CAA0C;AAC1C,uDAAuD;AAQvD,MAAM,sBAAsB,GAA8D;IACxF,UAAU,EAAE,EAAE;IACd,YAAY,EAAE,EAAE;IAChB,YAAY,EAAE,EAAE;IAChB,KAAK,EAAE,EAAE;CACV,CAAC;AAEW,QAAA,kBAAkB,GAAsC,IAAA,aAAG,EACtE,CAAC,EAAE,SAAS,EAAE,UAAU,GAAG,EAAE,EAAE,gBAAgB,GAAG,EAAE,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC9E,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC,GACvE,IAAA,iBAAO,EAAC,sBAAsB,CAAC,CAAC;IAElC,MAAM,oBAAoB,GAAkB,IAAA,eAAO,EACjD,GAAG,EAAE,CACH,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5B,IAAI;KACL,CAAC,CAAC,EACL,CAAC,UAAU,CAAC,CACb,CAAC;IAEF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC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AkB,CAAC,WAAW,GAAG,CAAC,OAAmC,EAAE,EAAE,CACvE,OAAO,EAAE,gBAAgB,IAAI,EAAE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BaseFiltrationInnerContent, StringArray } from '../../ui-kit/BaseFiltration/BaseFiltrationContent';
|
|
2
|
+
import type { HotFilterRecord } from './HotFilterRecord';
|
|
2
3
|
export declare type MortgageFiltrationSchema = {
|
|
3
4
|
/** @title Тип недвижимости */
|
|
4
5
|
propertyType?: StringArray;
|
|
@@ -9,10 +10,21 @@ export declare type MortgageFiltrationSchema = {
|
|
|
9
10
|
/** @title Дополнительно */
|
|
10
11
|
extraOptions?: StringArray;
|
|
11
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* @title Кнопка фильтрации
|
|
15
|
+
*/
|
|
16
|
+
export interface HotFilterButton {
|
|
17
|
+
/** @title Текст */
|
|
18
|
+
text?: string;
|
|
19
|
+
/** @title Применяемые фильтры */
|
|
20
|
+
filter?: HotFilterRecord;
|
|
21
|
+
}
|
|
12
22
|
/**
|
|
13
23
|
* @title Подборщик ипотек
|
|
14
24
|
*/
|
|
15
25
|
export interface MortgageFiltrationContent extends BaseFiltrationInnerContent {
|
|
16
26
|
/** @title Параметры фильтрации */
|
|
17
27
|
filtrationSchema?: MortgageFiltrationSchema;
|
|
28
|
+
/** @title Горячие фильтры */
|
|
29
|
+
hotFilters?: HotFilterButton[];
|
|
18
30
|
}
|
|
@@ -42,6 +42,6 @@ const renderFoldButton = ({ version, label: defaultLabel, labelIcon, labelIconBg
|
|
|
42
42
|
})) : ((0, jsx_runtime_1.jsx)(DefaultFoldButton_1.DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
43
43
|
};
|
|
44
44
|
const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
|
|
45
|
-
return ((0, jsx_runtime_1.jsxs)("button", { className: (0, style_1.style)('border-none bg-transparent flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center group-hover/button:text-primary-main gap-s", children: [(0, renderRoundedIcon_1.renderRoundedIcon)(labelIcon, labelIconBgVersion), label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: rollupIconVersion_1.rollupIconVersion, width: "24", height: "24" }) : null] }));
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)("button", { className: (0, style_1.style)('border-none bg-transparent flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [(0, renderRoundedIcon_1.renderRoundedIcon)(labelIcon, labelIconBgVersion), label ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: rollupIconVersion_1.rollupIconVersion, width: "24", height: "24" }) : null] }));
|
|
46
46
|
};
|
|
47
47
|
//# sourceMappingURL=RollupItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAIpE,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AACxE,iDAA8C;AAE9C,iDAA8C;AAC9C,6CAA0C;AAC1C,mEAAgE;AAChE,+CAA4C;AAC5C,2DAAwD;AACxD,2DAAwD;AAExD,yDAAsD;AAIzC,QAAA,UAAU,GAA8B,IAAA,aAAG,EACtD,CAAC,EACC,SAAS,GAAG,EAAE,EACd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CAAC,CAAC,YAAY,CAAC,CAAC;IAErE,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,CAC7B,uBAAuB,CAAC;QACtB,KAAK;QACL,SAAS;QACT,kBAAkB;QAClB,IAAI,EAAE,IAAA,yBAAW,EAAC,UAAU,CAAC;QAC7B,QAAQ;KACT,CAAC,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,qCAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAClD,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAUF,MAAM,uBAAuB,GAAG,CAAC,EAC/B,KAAK,EACL,kBAAkB,EAClB,IAAI,EACJ,QAAQ,EACR,SAAS,GACc,EAAE,EAAE;IAC3B,OAAO,CACL,oCACE,SAAS,EAAE,IAAA,aAAK,EACd,kFAAkF,EAClF,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CACpC,EACD,OAAO,EAAE,QAAQ,aAEjB,iCAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAIpE,4DAAyD;AACzD,+EAA4E;AAC5E,6DAA0D;AAE1D,2EAAwE;AACxE,iDAA8C;AAE9C,iDAA8C;AAC9C,6CAA0C;AAC1C,mEAAgE;AAChE,+CAA4C;AAC5C,2DAAwD;AACxD,2DAAwD;AAExD,yDAAsD;AAIzC,QAAA,UAAU,GAA8B,IAAA,aAAG,EACtD,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,YAAY,EACpB,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,iBAAiB,GAAG,IAAI,EACxB,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EA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AClB,IAAI,EAAE,IAAA,yBAAW,EAAC,UAAU,CAAC;QAC7B,QAAQ;KACT,CAAC,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,qCAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAClD,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAUF,MAAM,uBAAuB,GAAG,CAAC,EAC/B,KAAK,EACL,kBAAkB,EAClB,IAAI,EACJ,QAAQ,EACR,SAAS,GACc,EAAE,EAAE;IAC3B,OAAO,CACL,oCACE,SAAS,EAAE,IAAA,aAAK,EACd,kFAAkF,EAClF,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CACpC,EACD,OAAO,EAAE,QAAQ,aAEjB,iCAAK,SAAS,EAAC,yEAAyE,aACrF,IAAA,qCAAiB,EAAC,SAAS,EAAE,kBAAkB,CAAC,EAChD,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,aAAa,YACpC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,IAAI,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAiB,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IACnF,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.renderRoundedIcon = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const RoundedIcon_1 = require("../../ui-kit/Icon/RoundedIcon");
|
|
5
|
-
const renderRoundedIcon = (icon, iconBgVersion) => ((0, jsx_runtime_1.jsx)(RoundedIcon_1.RoundedIcon, { ...icon, iconBgVersion: iconBgVersion }));
|
|
5
|
+
const renderRoundedIcon = (icon, iconBgVersion) => ((0, jsx_runtime_1.jsx)(RoundedIcon_1.RoundedIcon, { ...icon, iconBgVersion: iconBgVersion, className: "shrink-0" }));
|
|
6
6
|
exports.renderRoundedIcon = renderRoundedIcon;
|
|
7
7
|
//# sourceMappingURL=renderRoundedIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderRoundedIcon.js","sourceRoot":"","sources":["../../../src/components/RollupItem/renderRoundedIcon.tsx"],"names":[],"mappings":";;;AACA,+DAA4D;AAGrD,MAAM,iBAAiB,GAAG,CAAC,IAAc,EAAE,aAA6B,EAAE,EAAE,CAAC,CAClF,uBAAC,yBAAW,OAAK,IAAI,EAAE,aAAa,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"renderRoundedIcon.js","sourceRoot":"","sources":["../../../src/components/RollupItem/renderRoundedIcon.tsx"],"names":[],"mappings":";;;AACA,+DAA4D;AAGrD,MAAM,iBAAiB,GAAG,CAAC,IAAc,EAAE,aAA6B,EAAE,EAAE,CAAC,CAClF,uBAAC,yBAAW,OAAK,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAC,UAAU,GAAG,CAC7E,CAAC;AAFW,QAAA,iBAAiB,qBAE5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const rollupIconVersion = "
|
|
1
|
+
export declare const rollupIconVersion = "black";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollupIconVersion.js","sourceRoot":"","sources":["../../../src/components/RollupItem/rollupIconVersion.tsx"],"names":[],"mappings":";;AAAa,QAAA,iBAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"rollupIconVersion.js","sourceRoot":"","sources":["../../../src/components/RollupItem/rollupIconVersion.tsx"],"names":[],"mappings":";;AAAa,QAAA,iBAAiB,GAAG,OAAO,CAAC"}
|
|
@@ -6,12 +6,10 @@ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
|
6
6
|
const defaultEventBus_1 = require("../../EventBus/defaultEventBus");
|
|
7
7
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
8
8
|
const style_1 = require("../../utils/style");
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const { className = '', isSticky, tabs, ...rest } = props;
|
|
14
|
-
const [currentTab, setCurrentTab] = (0, hooks_1.useState)(tabs ? tabs[0] : undefined);
|
|
9
|
+
const renderTabs_1 = require("./renderTabs");
|
|
10
|
+
exports.Tabs = (0, uni_jsx_1.JSX)(({ className = '', isSticky, tabs = [], tabsMode, ...rest }) => {
|
|
11
|
+
const normalizedTabs = (0, hooks_1.useMemo)(() => tabs.map(normalizeTab), [tabs]);
|
|
12
|
+
const [activeTabIndex, setActiveTabIndex] = (0, hooks_1.useState)(0);
|
|
15
13
|
(0, hooks_1.useEffect)(() => {
|
|
16
14
|
if (!tabs || !tabs[0]) {
|
|
17
15
|
return;
|
|
@@ -19,27 +17,23 @@ exports.Tabs = (0, uni_jsx_1.JSX)((props) => {
|
|
|
19
17
|
fireTabEvent(tabs[0]);
|
|
20
18
|
}, []);
|
|
21
19
|
(0, hooks_1.useEffect)(() => {
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const activeTab = tabs[activeTabIndex];
|
|
21
|
+
if (activeTab?.type === 'group') {
|
|
22
|
+
defaultEventBus_1.defaultEventBus.subject('tab', { type: activeTab.type, label: activeTab.ref });
|
|
24
23
|
}
|
|
25
|
-
}, [
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
}, [tabs, activeTabIndex]);
|
|
25
|
+
const handleChange = (0, hooks_1.useCallback)((_) => {
|
|
26
|
+
const index = normalizedTabs.indexOf(_);
|
|
27
|
+
setActiveTabIndex(index);
|
|
28
|
+
fireTabEvent(tabs[index]);
|
|
29
29
|
}, []);
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)(isSticky ? 'sticky top-1 z-20' : '', className), defaultPadding: "p-0", ...rest, children: (0, renderTabs_1.renderTabs)({
|
|
31
|
+
items: normalizedTabs,
|
|
32
|
+
onChange: handleChange,
|
|
33
|
+
value: normalizedTabs[activeTabIndex],
|
|
34
|
+
tabsMode,
|
|
35
|
+
}) }));
|
|
31
36
|
});
|
|
32
|
-
const renderTabs = ({ tabsMode, tabs, ...rest }) => {
|
|
33
|
-
switch (tabsMode) {
|
|
34
|
-
case 'wideScreen':
|
|
35
|
-
return tabs?.map((0, renderTab_1.renderTab)({ tabsMode, ...rest }));
|
|
36
|
-
case 'centered':
|
|
37
|
-
return (0, jsx_runtime_1.jsx)(CenteredTabs_1.CenteredTabs, { tabs: tabs, tabsMode: tabsMode, ...rest });
|
|
38
|
-
case 'scrollable':
|
|
39
|
-
return (0, jsx_runtime_1.jsx)(ScrollableTabs_1.ScrollableTabs, { tabs: tabs, tabsMode: tabsMode, ...rest });
|
|
40
|
-
}
|
|
41
|
-
return null;
|
|
42
|
-
};
|
|
43
37
|
const fireTabEvent = (tab) => {
|
|
44
38
|
if (tab.type === 'group') {
|
|
45
39
|
defaultEventBus_1.defaultEventBus.fire('tab', { type: tab.type, label: tab.ref });
|
|
@@ -48,4 +42,5 @@ const fireTabEvent = (tab) => {
|
|
|
48
42
|
defaultEventBus_1.defaultEventBus.fire('tab', { type: tab.type, label: tab.href });
|
|
49
43
|
}
|
|
50
44
|
};
|
|
45
|
+
const normalizeTab = (_) => (_?.type === 'group' ? { text: _.title } : _);
|
|
51
46
|
//# sourceMappingURL=Tabs.js.map
|