@redneckz/wildless-cms-uni-blocks 0.14.293 → 0.14.295
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.14.257.js +21 -0
- package/bin/migration-scripts/0.14.294.js +23 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +203 -156
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CalculatorContent.d.ts +1 -8
- package/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/bundle/components/Calculator/constants.d.ts +0 -5
- package/bundle/components/CalculatorBonus/CalculatorBonus.d.ts +9 -0
- package/bundle/components/CalculatorBonus/CalculatorBonusContent.d.ts +12 -0
- package/bundle/components/Tabs/TabsContent.d.ts +1 -1
- package/bundle/components/TabsLayout/TabsLayoutContent.d.ts +31 -6
- package/bundle/components/TabsLayout/renderTabsLayout.d.ts +11 -0
- package/bundle/ui-kit/Calculator/CalculatorLayout.d.ts +5 -0
- package/{mobile/dist/components → bundle/ui-kit}/Calculator/renderRate.d.ts +1 -1
- package/bundle/{components → ui-kit}/Calculator/renderWantedSumInput.d.ts +1 -1
- package/bundle/ui-kit/TabsControl/TabItem.d.ts +5 -4
- package/bundle/ui-kit/TabsControl/TabsControlProps.d.ts +11 -2
- package/bundle/ui-kit/TabsControl/renderTab.d.ts +3 -3
- package/bundle/ui-kit/TabsControl/renderTabItemInner.d.ts +11 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +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 +4 -4
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +1 -8
- package/dist/components/Calculator/CreditCalculatorForm.js +4 -4
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +4 -4
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/dist/components/Calculator/EmbeddableCalcBlocks.js +0 -2
- package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/dist/components/Calculator/RefinancingCalculatorForm.js +4 -4
- package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/constants.d.ts +0 -5
- package/dist/components/Calculator/constants.js +1 -16
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/CalculatorBonus/CalculatorBonus.d.ts +9 -0
- package/dist/components/CalculatorBonus/CalculatorBonus.js +46 -0
- package/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -0
- package/dist/components/CalculatorBonus/CalculatorBonusContent.d.ts +12 -0
- package/dist/components/CalculatorBonus/CalculatorBonusContent.js +2 -0
- package/dist/components/CalculatorBonus/CalculatorBonusContent.js.map +1 -0
- package/dist/components/CalculatorBonus/getBonus.js +25 -0
- package/dist/components/CalculatorBonus/getBonus.js.map +1 -0
- package/dist/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.js +13 -2
- package/dist/components/CalculatorBonus/getBonusCalculatorParams.js.map +1 -0
- package/dist/components/Tabs/TabsContent.d.ts +1 -1
- package/dist/components/Tabs/renderTabs.js +0 -2
- package/dist/components/Tabs/renderTabs.js.map +1 -1
- package/dist/components/TabsLayout/TabsLayout.js +39 -16
- package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/dist/components/TabsLayout/TabsLayoutContent.d.ts +31 -6
- package/dist/components/TabsLayout/renderTabsLayout.d.ts +11 -0
- package/dist/components/TabsLayout/renderTabsLayout.js +19 -0
- package/dist/components/TabsLayout/renderTabsLayout.js.map +1 -0
- package/dist/ui-kit/Calculator/CalculatorLayout.d.ts +5 -0
- package/dist/ui-kit/Calculator/CalculatorLayout.js +9 -0
- package/dist/ui-kit/Calculator/CalculatorLayout.js.map +1 -0
- package/dist/{components → ui-kit}/Calculator/CalculatorValueBlock.js +1 -1
- package/dist/ui-kit/Calculator/CalculatorValueBlock.js.map +1 -0
- package/dist/{components → ui-kit}/Calculator/Rate.js +1 -1
- package/dist/ui-kit/Calculator/Rate.js.map +1 -0
- package/{mobile/dist/components → dist/ui-kit}/Calculator/renderFootnote.js +1 -1
- package/dist/ui-kit/Calculator/renderFootnote.js.map +1 -0
- package/dist/{components → ui-kit}/Calculator/renderRate.d.ts +1 -1
- package/{mobile/dist/components → dist/ui-kit}/Calculator/renderRate.js +1 -1
- package/dist/ui-kit/Calculator/renderRate.js.map +1 -0
- package/{lib/components → dist/ui-kit}/Calculator/renderWantedSumInput.d.ts +1 -1
- package/{mobile/dist/components → dist/ui-kit}/Calculator/renderWantedSumInput.js +1 -1
- package/dist/ui-kit/Calculator/renderWantedSumInput.js.map +1 -0
- package/dist/ui-kit/TabsControl/ScrollableTabsControl.js +15 -3
- package/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabItem.d.ts +5 -4
- package/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabItemInner.js +14 -8
- package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabsControl.js +1 -1
- package/dist/ui-kit/TabsControl/TabsControl.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabsControlProps.d.ts +11 -2
- package/dist/ui-kit/TabsControl/renderTab.d.ts +3 -3
- package/dist/ui-kit/TabsControl/renderTab.js.map +1 -1
- package/dist/ui-kit/TabsControl/renderTabItemInner.d.ts +11 -0
- package/dist/ui-kit/TabsControl/renderTabItemInner.js +23 -0
- package/dist/ui-kit/TabsControl/renderTabItemInner.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +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 +4 -4
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.fixture.d.ts +0 -1
- package/lib/components/Calculator/Calculator.fixture.mobile.d.ts +0 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +1 -8
- package/lib/components/Calculator/CreditCalculatorForm.js +4 -4
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +4 -4
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/lib/components/Calculator/EmbeddableCalcBlocks.js +0 -2
- package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/lib/components/Calculator/RefinancingCalculatorForm.js +4 -4
- package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/constants.d.ts +0 -5
- package/lib/components/Calculator/constants.js +0 -15
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/CalculatorBonus/CalculatorBonus.d.ts +9 -0
- package/lib/components/CalculatorBonus/CalculatorBonus.fixture.d.ts +6 -0
- package/lib/components/CalculatorBonus/CalculatorBonus.js +44 -0
- package/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -0
- package/lib/components/CalculatorBonus/CalculatorBonusContent.d.ts +12 -0
- package/lib/components/CalculatorBonus/CalculatorBonusContent.js +2 -0
- package/lib/components/CalculatorBonus/CalculatorBonusContent.js.map +1 -0
- package/lib/components/{Calculator → CalculatorBonus}/getBonus.js +13 -1
- package/lib/components/CalculatorBonus/getBonus.js.map +1 -0
- package/lib/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.js +12 -1
- package/lib/components/CalculatorBonus/getBonusCalculatorParams.js.map +1 -0
- package/lib/components/Tabs/Tabs.fixture.d.ts +0 -1
- package/lib/components/Tabs/Tabs.fixture.mobile.d.ts +0 -1
- package/lib/components/Tabs/TabsContent.d.ts +1 -1
- package/lib/components/Tabs/renderTabs.js +0 -2
- package/lib/components/Tabs/renderTabs.js.map +1 -1
- package/lib/components/TabsLayout/TabsLayout.fixture.d.ts +2 -0
- package/lib/components/TabsLayout/TabsLayout.fixture.mobile.d.ts +2 -0
- package/lib/components/TabsLayout/TabsLayout.js +40 -17
- package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/lib/components/TabsLayout/TabsLayoutContent.d.ts +31 -6
- package/lib/components/TabsLayout/renderTabsLayout.d.ts +10 -0
- package/lib/components/TabsLayout/renderTabsLayout.js +16 -0
- package/lib/components/TabsLayout/renderTabsLayout.js.map +1 -0
- package/lib/ui-kit/Calculator/CalculatorLayout.d.ts +5 -0
- package/lib/ui-kit/Calculator/CalculatorLayout.js +7 -0
- package/lib/ui-kit/Calculator/CalculatorLayout.js.map +1 -0
- package/{mobile/lib/components → lib/ui-kit}/Calculator/CalculatorValueBlock.js +1 -1
- package/lib/ui-kit/Calculator/CalculatorValueBlock.js.map +1 -0
- package/lib/{components → ui-kit}/Calculator/Rate.js +1 -1
- package/lib/ui-kit/Calculator/Rate.js.map +1 -0
- package/{mobile/lib/components → lib/ui-kit}/Calculator/renderFootnote.js +1 -1
- package/lib/ui-kit/Calculator/renderFootnote.js.map +1 -0
- package/lib/{components → ui-kit}/Calculator/renderRate.d.ts +1 -1
- package/{mobile/lib/components → lib/ui-kit}/Calculator/renderRate.js +1 -1
- package/lib/ui-kit/Calculator/renderRate.js.map +1 -0
- package/{dist/components → lib/ui-kit}/Calculator/renderWantedSumInput.d.ts +1 -1
- package/{mobile/lib/components → lib/ui-kit}/Calculator/renderWantedSumInput.js +1 -1
- package/lib/ui-kit/Calculator/renderWantedSumInput.js.map +1 -0
- package/lib/ui-kit/TabsControl/ScrollableTabsControl.js +15 -3
- package/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabItem.d.ts +5 -4
- package/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabItemInner.js +14 -8
- package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabsControl.fixture.d.ts +1 -1
- package/lib/ui-kit/TabsControl/TabsControl.js +1 -1
- package/lib/ui-kit/TabsControl/TabsControl.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabsControlProps.d.ts +11 -2
- package/lib/ui-kit/TabsControl/renderTab.d.ts +3 -3
- package/lib/ui-kit/TabsControl/renderTab.js.map +1 -1
- package/lib/ui-kit/TabsControl/renderTabItemInner.d.ts +10 -0
- package/lib/ui-kit/TabsControl/renderTabItemInner.js +20 -0
- package/lib/ui-kit/TabsControl/renderTabItemInner.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +212 -165
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +1 -8
- package/mobile/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/mobile/bundle/components/Calculator/constants.d.ts +0 -5
- package/mobile/bundle/components/CalculatorBonus/CalculatorBonus.d.ts +9 -0
- package/mobile/bundle/components/CalculatorBonus/CalculatorBonusContent.d.ts +12 -0
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +1 -1
- package/mobile/bundle/components/TabsLayout/TabsLayoutContent.d.ts +31 -6
- package/mobile/bundle/components/TabsLayout/renderTabsLayout.d.ts +11 -0
- package/mobile/bundle/ui-kit/Calculator/CalculatorLayout.d.ts +5 -0
- package/mobile/bundle/{components → ui-kit}/Calculator/renderRate.d.ts +1 -1
- package/mobile/bundle/{components → ui-kit}/Calculator/renderWantedSumInput.d.ts +1 -1
- package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +5 -4
- package/mobile/bundle/ui-kit/TabsControl/TabsControlProps.d.ts +11 -2
- package/mobile/bundle/ui-kit/TabsControl/renderTab.d.ts +3 -3
- package/mobile/bundle/ui-kit/TabsControl/renderTabItemInner.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 +4 -4
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +1 -8
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +4 -4
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +4 -4
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +0 -2
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +4 -4
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/constants.d.ts +0 -5
- package/mobile/dist/components/Calculator/constants.js +1 -16
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/CalculatorBonus/CalculatorBonus.d.ts +9 -0
- package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js +46 -0
- package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -0
- package/mobile/dist/components/CalculatorBonus/CalculatorBonusContent.d.ts +12 -0
- package/mobile/dist/components/CalculatorBonus/CalculatorBonusContent.js +2 -0
- package/mobile/dist/components/CalculatorBonus/CalculatorBonusContent.js.map +1 -0
- package/mobile/dist/components/CalculatorBonus/getBonus.js +25 -0
- package/mobile/dist/components/CalculatorBonus/getBonus.js.map +1 -0
- package/mobile/dist/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.js +13 -2
- package/mobile/dist/components/CalculatorBonus/getBonusCalculatorParams.js.map +1 -0
- package/mobile/dist/components/Tabs/TabsContent.d.ts +1 -1
- package/mobile/dist/components/Tabs/renderTabs.js +0 -2
- package/mobile/dist/components/Tabs/renderTabs.js.map +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.js +39 -16
- package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayoutContent.d.ts +31 -6
- package/mobile/dist/components/TabsLayout/renderTabsLayout.d.ts +11 -0
- package/mobile/dist/components/TabsLayout/renderTabsLayout.js +19 -0
- package/mobile/dist/components/TabsLayout/renderTabsLayout.js.map +1 -0
- package/mobile/dist/ui-kit/Calculator/CalculatorLayout.d.ts +5 -0
- package/mobile/dist/ui-kit/Calculator/CalculatorLayout.js +9 -0
- package/mobile/dist/ui-kit/Calculator/CalculatorLayout.js.map +1 -0
- package/mobile/dist/{components → ui-kit}/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.js.map +1 -0
- package/mobile/dist/{components → ui-kit}/Calculator/Rate.js +1 -1
- package/mobile/dist/ui-kit/Calculator/Rate.js.map +1 -0
- package/{dist/components → mobile/dist/ui-kit}/Calculator/renderFootnote.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderFootnote.js.map +1 -0
- package/{bundle/components → mobile/dist/ui-kit}/Calculator/renderRate.d.ts +1 -1
- package/{dist/components → mobile/dist/ui-kit}/Calculator/renderRate.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderRate.js.map +1 -0
- package/mobile/dist/ui-kit/Calculator/renderWantedSumInput.d.ts +7 -0
- package/{dist/components → mobile/dist/ui-kit}/Calculator/renderWantedSumInput.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderWantedSumInput.js.map +1 -0
- package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js +15 -3
- package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +5 -4
- package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +14 -8
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabsControl.js +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabsControl.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabsControlProps.d.ts +11 -2
- package/mobile/dist/ui-kit/TabsControl/renderTab.d.ts +3 -3
- package/mobile/dist/ui-kit/TabsControl/renderTab.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/renderTabItemInner.d.ts +11 -0
- package/mobile/dist/ui-kit/TabsControl/renderTabItemInner.js +23 -0
- package/mobile/dist/ui-kit/TabsControl/renderTabItemInner.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 +4 -4
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +1 -8
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -4
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +4 -4
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -3
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +0 -2
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +4 -4
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/constants.d.ts +0 -5
- package/mobile/lib/components/Calculator/constants.js +0 -15
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/CalculatorBonus/CalculatorBonus.d.ts +9 -0
- package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js +44 -0
- package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -0
- package/mobile/lib/components/CalculatorBonus/CalculatorBonusContent.d.ts +12 -0
- package/mobile/lib/components/CalculatorBonus/CalculatorBonusContent.js +2 -0
- package/mobile/lib/components/CalculatorBonus/CalculatorBonusContent.js.map +1 -0
- package/mobile/lib/components/{Calculator → CalculatorBonus}/getBonus.js +13 -1
- package/mobile/lib/components/CalculatorBonus/getBonus.js.map +1 -0
- package/mobile/lib/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.js +12 -1
- package/mobile/lib/components/CalculatorBonus/getBonusCalculatorParams.js.map +1 -0
- package/mobile/lib/components/Tabs/TabsContent.d.ts +1 -1
- package/mobile/lib/components/Tabs/renderTabs.js +0 -2
- package/mobile/lib/components/Tabs/renderTabs.js.map +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.js +40 -17
- package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayoutContent.d.ts +31 -6
- package/mobile/lib/components/TabsLayout/renderTabsLayout.d.ts +11 -0
- package/mobile/lib/components/TabsLayout/renderTabsLayout.js +16 -0
- package/mobile/lib/components/TabsLayout/renderTabsLayout.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorLayout.d.ts +5 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorLayout.js +7 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorLayout.js.map +1 -0
- package/{lib/components → mobile/lib/ui-kit}/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.js.map +1 -0
- package/mobile/lib/{components → ui-kit}/Calculator/Rate.js +1 -1
- package/mobile/lib/ui-kit/Calculator/Rate.js.map +1 -0
- package/{lib/components → mobile/lib/ui-kit}/Calculator/renderFootnote.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderFootnote.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/renderRate.d.ts +8 -0
- package/{lib/components → mobile/lib/ui-kit}/Calculator/renderRate.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderRate.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/renderWantedSumInput.d.ts +7 -0
- package/{lib/components → mobile/lib/ui-kit}/Calculator/renderWantedSumInput.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderWantedSumInput.js.map +1 -0
- package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js +15 -3
- package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +5 -4
- package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +14 -8
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabsControl.js +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabsControl.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabsControlProps.d.ts +11 -2
- package/mobile/lib/ui-kit/TabsControl/renderTab.d.ts +3 -3
- package/mobile/lib/ui-kit/TabsControl/renderTab.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/renderTabItemInner.d.ts +11 -0
- package/mobile/lib/ui-kit/TabsControl/renderTabItemInner.js +20 -0
- package/mobile/lib/ui-kit/TabsControl/renderTabItemInner.js.map +1 -0
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +4 -4
- package/mobile/src/components/Calculator/CalculatorContent.ts +1 -11
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +4 -4
- package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +0 -3
- package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +4 -4
- package/mobile/src/components/Calculator/constants.ts +0 -18
- package/mobile/src/components/CalculatorBonus/CalculatorBonus.example.json +1 -0
- package/mobile/src/components/CalculatorBonus/CalculatorBonus.tsx +75 -0
- package/mobile/src/components/CalculatorBonus/CalculatorBonus.ui.json +1 -0
- package/mobile/src/components/CalculatorBonus/CalculatorBonusContent.ts +16 -0
- package/mobile/src/components/{Calculator → CalculatorBonus}/getBonus.ts +15 -1
- package/mobile/src/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.ts +13 -1
- package/mobile/src/components/Tabs/TabsContent.ts +1 -1
- package/mobile/src/components/Tabs/renderTabs.tsx +0 -10
- package/mobile/src/components/TabsLayout/TabsLayout.example.json +4 -3
- package/mobile/src/components/TabsLayout/TabsLayout.tsx +56 -57
- package/mobile/src/components/TabsLayout/TabsLayoutContent.ts +36 -8
- package/mobile/src/components/TabsLayout/renderTabsLayout.tsx +32 -0
- package/mobile/src/ui-kit/Calculator/CalculatorLayout.tsx +17 -0
- package/mobile/src/{components → ui-kit}/Calculator/CalculatorValueBlock.tsx +1 -1
- package/mobile/src/{components → ui-kit}/Calculator/Rate.tsx +1 -1
- package/{src/components → mobile/src/ui-kit}/Calculator/renderFootnote.tsx +1 -1
- package/mobile/src/{components → ui-kit}/Calculator/renderRate.tsx +1 -1
- package/mobile/src/{components → ui-kit}/Calculator/renderWantedSumInput.tsx +2 -2
- package/mobile/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +28 -5
- package/mobile/src/ui-kit/TabsControl/TabItem.tsx +5 -5
- package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +21 -15
- package/mobile/src/ui-kit/TabsControl/TabsControl.tsx +4 -1
- package/mobile/src/ui-kit/TabsControl/TabsControlProps.ts +12 -2
- package/mobile/src/ui-kit/TabsControl/renderTab.tsx +3 -3
- package/mobile/src/ui-kit/TabsControl/renderTabItemInner.tsx +63 -0
- package/package.json +1 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +4 -4
- package/src/components/Calculator/Calculator.fixture.mobile.tsx +0 -24
- package/src/components/Calculator/Calculator.fixture.tsx +0 -33
- package/src/components/Calculator/CalculatorContent.ts +1 -11
- package/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
- package/src/components/Calculator/DepositCalculatorForm.tsx +4 -4
- package/src/components/Calculator/EmbeddableCalcBlocks.tsx +0 -3
- package/src/components/Calculator/RefinancingCalculatorForm.tsx +4 -4
- package/src/components/Calculator/constants.ts +0 -18
- package/src/components/CalculatorBonus/CalculatorBonus.example.json +1 -0
- package/src/components/CalculatorBonus/CalculatorBonus.fixture.tsx +34 -0
- package/src/components/CalculatorBonus/CalculatorBonus.tsx +75 -0
- package/src/components/CalculatorBonus/CalculatorBonus.ui.json +1 -0
- package/src/components/CalculatorBonus/CalculatorBonusContent.ts +16 -0
- package/src/components/{Calculator → CalculatorBonus}/getBonus.ts +15 -1
- package/src/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.ts +13 -1
- package/src/components/Tabs/Tabs.fixture.mobile.tsx +0 -16
- package/src/components/Tabs/Tabs.fixture.tsx +0 -19
- package/src/components/Tabs/TabsContent.ts +1 -1
- package/src/components/Tabs/renderTabs.tsx +0 -10
- package/src/components/TabsLayout/TabsLayout.example.json +4 -3
- package/src/components/TabsLayout/TabsLayout.fixture.mobile.tsx +51 -30
- package/src/components/TabsLayout/TabsLayout.fixture.tsx +61 -30
- package/src/components/TabsLayout/TabsLayout.tsx +56 -57
- package/src/components/TabsLayout/TabsLayoutContent.ts +36 -8
- package/src/components/TabsLayout/renderTabsLayout.tsx +32 -0
- package/src/ui-kit/Calculator/CalculatorLayout.tsx +17 -0
- package/src/{components → ui-kit}/Calculator/CalculatorValueBlock.tsx +1 -1
- package/src/{components → ui-kit}/Calculator/Rate.tsx +1 -1
- package/{mobile/src/components → src/ui-kit}/Calculator/renderFootnote.tsx +1 -1
- package/src/{components → ui-kit}/Calculator/renderRate.tsx +1 -1
- package/src/{components → ui-kit}/Calculator/renderWantedSumInput.tsx +2 -2
- package/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +28 -5
- package/src/ui-kit/TabsControl/TabItem.tsx +5 -5
- package/src/ui-kit/TabsControl/TabItemInner.tsx +21 -15
- package/src/ui-kit/TabsControl/TabsControl.fixture.tsx +7 -20
- package/src/ui-kit/TabsControl/TabsControl.tsx +4 -1
- package/src/ui-kit/TabsControl/TabsControlProps.ts +12 -2
- package/src/ui-kit/TabsControl/renderTab.tsx +3 -3
- package/src/ui-kit/TabsControl/renderTabItemInner.tsx +63 -0
- package/bundle/components/Calculator/BonusCalculatorForm.d.ts +0 -8
- package/bundle/components/TabsLayout/TabsLayoutButton.d.ts +0 -10
- package/bundle/components/TabsLayout/TabsLayoutRedirectSection.d.ts +0 -6
- package/bundle/components/TabsLayout/alignTabStyle.d.ts +0 -2
- package/bundle/components/TabsLayout/useScrollToTab.d.ts +0 -2
- package/dist/components/Calculator/BonusCalculatorForm.d.ts +0 -8
- package/dist/components/Calculator/BonusCalculatorForm.js +0 -44
- package/dist/components/Calculator/BonusCalculatorForm.js.map +0 -1
- package/dist/components/Calculator/CalculatorValueBlock.js.map +0 -1
- package/dist/components/Calculator/Rate.js.map +0 -1
- package/dist/components/Calculator/getBonus.js +0 -13
- package/dist/components/Calculator/getBonus.js.map +0 -1
- package/dist/components/Calculator/getBonusCalculatorParams.js.map +0 -1
- package/dist/components/Calculator/renderFootnote.js.map +0 -1
- package/dist/components/Calculator/renderRate.js.map +0 -1
- package/dist/components/Calculator/renderWantedSumInput.js.map +0 -1
- package/dist/components/TabsLayout/TabsLayoutButton.d.ts +0 -10
- package/dist/components/TabsLayout/TabsLayoutButton.js +0 -24
- package/dist/components/TabsLayout/TabsLayoutButton.js.map +0 -1
- package/dist/components/TabsLayout/TabsLayoutRedirectSection.d.ts +0 -6
- package/dist/components/TabsLayout/TabsLayoutRedirectSection.js +0 -27
- package/dist/components/TabsLayout/TabsLayoutRedirectSection.js.map +0 -1
- package/dist/components/TabsLayout/alignTabStyle.d.ts +0 -2
- package/dist/components/TabsLayout/alignTabStyle.js +0 -8
- package/dist/components/TabsLayout/alignTabStyle.js.map +0 -1
- package/dist/components/TabsLayout/useScrollToTab.d.ts +0 -2
- package/dist/components/TabsLayout/useScrollToTab.js +0 -17
- package/dist/components/TabsLayout/useScrollToTab.js.map +0 -1
- package/lib/components/Calculator/BonusCalculatorForm.d.ts +0 -8
- package/lib/components/Calculator/BonusCalculatorForm.js +0 -42
- package/lib/components/Calculator/BonusCalculatorForm.js.map +0 -1
- package/lib/components/Calculator/CalculatorValueBlock.js.map +0 -1
- package/lib/components/Calculator/Rate.js.map +0 -1
- package/lib/components/Calculator/getBonus.js.map +0 -1
- package/lib/components/Calculator/getBonusCalculatorParams.js.map +0 -1
- package/lib/components/Calculator/renderFootnote.js.map +0 -1
- package/lib/components/Calculator/renderRate.js.map +0 -1
- package/lib/components/Calculator/renderWantedSumInput.js.map +0 -1
- package/lib/components/TabsLayout/TabsLayoutButton.d.ts +0 -10
- package/lib/components/TabsLayout/TabsLayoutButton.js +0 -22
- package/lib/components/TabsLayout/TabsLayoutButton.js.map +0 -1
- package/lib/components/TabsLayout/TabsLayoutRedirectSection.d.ts +0 -6
- package/lib/components/TabsLayout/TabsLayoutRedirectSection.js +0 -25
- package/lib/components/TabsLayout/TabsLayoutRedirectSection.js.map +0 -1
- package/lib/components/TabsLayout/alignTabStyle.d.ts +0 -2
- package/lib/components/TabsLayout/alignTabStyle.js +0 -6
- package/lib/components/TabsLayout/alignTabStyle.js.map +0 -1
- package/lib/components/TabsLayout/useScrollToTab.d.ts +0 -2
- package/lib/components/TabsLayout/useScrollToTab.js +0 -14
- package/lib/components/TabsLayout/useScrollToTab.js.map +0 -1
- package/mobile/bundle/components/Calculator/BonusCalculatorForm.d.ts +0 -8
- package/mobile/bundle/components/TabsLayout/TabsLayoutButton.d.ts +0 -10
- package/mobile/bundle/components/TabsLayout/TabsLayoutRedirectSection.d.ts +0 -6
- package/mobile/bundle/components/TabsLayout/alignTabStyle.d.ts +0 -2
- package/mobile/bundle/components/TabsLayout/useScrollToTab.d.ts +0 -2
- package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +0 -8
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +0 -44
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +0 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +0 -1
- package/mobile/dist/components/Calculator/Rate.js.map +0 -1
- package/mobile/dist/components/Calculator/getBonus.js +0 -13
- package/mobile/dist/components/Calculator/getBonus.js.map +0 -1
- package/mobile/dist/components/Calculator/getBonusCalculatorParams.js.map +0 -1
- package/mobile/dist/components/Calculator/renderFootnote.js.map +0 -1
- package/mobile/dist/components/Calculator/renderRate.js.map +0 -1
- package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +0 -7
- package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +0 -1
- package/mobile/dist/components/TabsLayout/TabsLayoutButton.d.ts +0 -10
- package/mobile/dist/components/TabsLayout/TabsLayoutButton.js +0 -24
- package/mobile/dist/components/TabsLayout/TabsLayoutButton.js.map +0 -1
- package/mobile/dist/components/TabsLayout/TabsLayoutRedirectSection.d.ts +0 -6
- package/mobile/dist/components/TabsLayout/TabsLayoutRedirectSection.js +0 -27
- package/mobile/dist/components/TabsLayout/TabsLayoutRedirectSection.js.map +0 -1
- package/mobile/dist/components/TabsLayout/alignTabStyle.d.ts +0 -2
- package/mobile/dist/components/TabsLayout/alignTabStyle.js +0 -8
- package/mobile/dist/components/TabsLayout/alignTabStyle.js.map +0 -1
- package/mobile/dist/components/TabsLayout/useScrollToTab.d.ts +0 -2
- package/mobile/dist/components/TabsLayout/useScrollToTab.js +0 -17
- package/mobile/dist/components/TabsLayout/useScrollToTab.js.map +0 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +0 -8
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +0 -42
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +0 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +0 -1
- package/mobile/lib/components/Calculator/Rate.js.map +0 -1
- package/mobile/lib/components/Calculator/getBonus.js.map +0 -1
- package/mobile/lib/components/Calculator/getBonusCalculatorParams.js.map +0 -1
- package/mobile/lib/components/Calculator/renderFootnote.js.map +0 -1
- package/mobile/lib/components/Calculator/renderRate.d.ts +0 -8
- package/mobile/lib/components/Calculator/renderRate.js.map +0 -1
- package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +0 -7
- package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +0 -1
- package/mobile/lib/components/TabsLayout/TabsLayoutButton.d.ts +0 -10
- package/mobile/lib/components/TabsLayout/TabsLayoutButton.js +0 -22
- package/mobile/lib/components/TabsLayout/TabsLayoutButton.js.map +0 -1
- package/mobile/lib/components/TabsLayout/TabsLayoutRedirectSection.d.ts +0 -6
- package/mobile/lib/components/TabsLayout/TabsLayoutRedirectSection.js +0 -25
- package/mobile/lib/components/TabsLayout/TabsLayoutRedirectSection.js.map +0 -1
- package/mobile/lib/components/TabsLayout/alignTabStyle.d.ts +0 -2
- package/mobile/lib/components/TabsLayout/alignTabStyle.js +0 -6
- package/mobile/lib/components/TabsLayout/alignTabStyle.js.map +0 -1
- package/mobile/lib/components/TabsLayout/useScrollToTab.d.ts +0 -2
- package/mobile/lib/components/TabsLayout/useScrollToTab.js +0 -14
- package/mobile/lib/components/TabsLayout/useScrollToTab.js.map +0 -1
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +0 -68
- package/mobile/src/components/TabsLayout/TabsLayoutButton.tsx +0 -63
- package/mobile/src/components/TabsLayout/TabsLayoutRedirectSection.tsx +0 -32
- package/mobile/src/components/TabsLayout/alignTabStyle.ts +0 -7
- package/mobile/src/components/TabsLayout/useScrollToTab.ts +0 -16
- package/src/components/Calculator/BonusCalculatorForm.tsx +0 -68
- package/src/components/TabsLayout/TabsLayoutButton.tsx +0 -63
- package/src/components/TabsLayout/TabsLayoutRedirectSection.tsx +0 -32
- package/src/components/TabsLayout/alignTabStyle.ts +0 -7
- package/src/components/TabsLayout/useScrollToTab.ts +0 -16
- /package/bundle/components/{Calculator → CalculatorBonus}/getBonus.d.ts +0 -0
- /package/bundle/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.d.ts +0 -0
- /package/bundle/{components → ui-kit}/Calculator/CalculatorValueBlock.d.ts +0 -0
- /package/bundle/{components → ui-kit}/Calculator/Rate.d.ts +0 -0
- /package/bundle/{components → ui-kit}/Calculator/renderFootnote.d.ts +0 -0
- /package/dist/components/{Calculator → CalculatorBonus}/getBonus.d.ts +0 -0
- /package/dist/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.d.ts +0 -0
- /package/dist/{components → ui-kit}/Calculator/CalculatorValueBlock.d.ts +0 -0
- /package/dist/{components → ui-kit}/Calculator/Rate.d.ts +0 -0
- /package/dist/{components → ui-kit}/Calculator/renderFootnote.d.ts +0 -0
- /package/lib/components/{Calculator → CalculatorBonus}/getBonus.d.ts +0 -0
- /package/lib/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.d.ts +0 -0
- /package/lib/{components → ui-kit}/Calculator/CalculatorValueBlock.d.ts +0 -0
- /package/lib/{components → ui-kit}/Calculator/Rate.d.ts +0 -0
- /package/lib/{components → ui-kit}/Calculator/renderFootnote.d.ts +0 -0
- /package/mobile/bundle/components/{Calculator → CalculatorBonus}/getBonus.d.ts +0 -0
- /package/mobile/bundle/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.d.ts +0 -0
- /package/mobile/bundle/{components → ui-kit}/Calculator/CalculatorValueBlock.d.ts +0 -0
- /package/mobile/bundle/{components → ui-kit}/Calculator/Rate.d.ts +0 -0
- /package/mobile/bundle/{components → ui-kit}/Calculator/renderFootnote.d.ts +0 -0
- /package/mobile/dist/components/{Calculator → CalculatorBonus}/getBonus.d.ts +0 -0
- /package/mobile/dist/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.d.ts +0 -0
- /package/mobile/dist/{components → ui-kit}/Calculator/CalculatorValueBlock.d.ts +0 -0
- /package/mobile/dist/{components → ui-kit}/Calculator/Rate.d.ts +0 -0
- /package/mobile/dist/{components → ui-kit}/Calculator/renderFootnote.d.ts +0 -0
- /package/mobile/lib/components/{Calculator → CalculatorBonus}/getBonus.d.ts +0 -0
- /package/mobile/lib/components/{Calculator → CalculatorBonus}/getBonusCalculatorParams.d.ts +0 -0
- /package/mobile/lib/{components → ui-kit}/Calculator/CalculatorValueBlock.d.ts +0 -0
- /package/mobile/lib/{components → ui-kit}/Calculator/Rate.d.ts +0 -0
- /package/mobile/lib/{components → ui-kit}/Calculator/renderFootnote.d.ts +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
2
|
-
import { type Tab } from './TabsLayoutContent';
|
|
3
|
-
interface TabsLayoutButtonProps {
|
|
4
|
-
tab: Tab;
|
|
5
|
-
className?: string;
|
|
6
|
-
onClick: (ev?: PreventableEvent) => void;
|
|
7
|
-
isActive: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const TabsLayoutButton: import("@redneckz/uni-jsx").UNIComponent<TabsLayoutButtonProps, any, any>;
|
|
10
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
|
-
import { type CommonCalculatorProps } from './CalculatorContent';
|
|
3
|
-
import { type BonusCalculatorData } from './getBonusCalculatorParams';
|
|
4
|
-
export interface BonusCalculatorProps extends CommonCalculatorProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
calcSource?: BonusCalculatorData & JSONRefObject;
|
|
7
|
-
}
|
|
8
|
-
export declare const BonusCalculatorForm: import("@redneckz/uni-jsx").UNIComponent<BonusCalculatorProps, any, any>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.BonusCalculatorForm = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useForm_1 = require("../../hooks/useForm");
|
|
6
|
-
const renderButtonsSection_1 = require("../../ui-kit/LinkButton/renderButtonsSection");
|
|
7
|
-
const style_1 = require("../../utils/style");
|
|
8
|
-
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
9
|
-
const constants_1 = require("./constants");
|
|
10
|
-
const getBonusCalculatorParams_1 = require("./getBonusCalculatorParams");
|
|
11
|
-
const renderFootnote_1 = require("./renderFootnote");
|
|
12
|
-
const renderRate_1 = require("./renderRate");
|
|
13
|
-
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
14
|
-
exports.BonusCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', calcSource, buttons, footnote }) => {
|
|
15
|
-
const [userInputParams, { field }] = (0, useForm_1.useForm)({
|
|
16
|
-
travelExpenseValue: constants_1.DEFAULT_TRAVEL_MIN_SUM,
|
|
17
|
-
restExpenseValue: constants_1.DEFAULT_REST_MIN_SUM,
|
|
18
|
-
});
|
|
19
|
-
const { minSumTravel, maxSumTravel, minSumOther, maxSumOther, monthBonus, yearBonus } = (0, getBonusCalculatorParams_1.getBonusCalculatorParams)(userInputParams, calcSource);
|
|
20
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex flex-col justify-between @5xl:flex-row gap-y-4xl', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col @xl:max-w-md gap-2xl border-b border-b-main-divider @xl:border-none pb-3xl @xl:pb-0", children: [(0, renderWantedSumInput_1.renderWantedSumInput)({
|
|
21
|
-
title: 'Сумма покупок в категории путешествия, ₽',
|
|
22
|
-
min: minSumTravel,
|
|
23
|
-
max: maxSumTravel,
|
|
24
|
-
step: 500,
|
|
25
|
-
isShowItems: false,
|
|
26
|
-
...field('travelExpenseValue'),
|
|
27
|
-
}), (0, renderWantedSumInput_1.renderWantedSumInput)({
|
|
28
|
-
title: 'Сумма покупок в остальных категориях, ₽',
|
|
29
|
-
min: minSumOther,
|
|
30
|
-
max: maxSumOther,
|
|
31
|
-
step: 500,
|
|
32
|
-
isShowItems: false,
|
|
33
|
-
...field('restExpenseValue'),
|
|
34
|
-
})] }), monthBonus >= 0
|
|
35
|
-
? (0, renderRate_1.renderRate)({
|
|
36
|
-
title: 'Баллов за месяц',
|
|
37
|
-
rate: monthBonus,
|
|
38
|
-
fractionDigits: 0,
|
|
39
|
-
isUnknownRateShown: false,
|
|
40
|
-
unit: '',
|
|
41
|
-
})
|
|
42
|
-
: null, (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-xl @xl:w-96", children: [yearBonus >= 0 ? (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, (0, renderButtonsSection_1.renderButtonsSection)(buttons, { isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
|
|
43
|
-
});
|
|
44
|
-
//# sourceMappingURL=BonusCalculatorForm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BonusCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BonusCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,uFAAoF;AACpF,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAA2E;AAC3E,yEAAgG;AAChG,qDAAkD;AAClD,6CAA0C;AAC1C,iEAA8D;AAOjD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ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,CAAC,CAAC,CAAC,IAAI,EACxF,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalculatorValueBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/CalculatorValueBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,6CAA0C;AAC1C,yEAAsE;AAEtE,MAAM,yBAAyB,GAAG,mCAAmC,CAAC;AAYzD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACvE,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,yBAAyB,EAAE,SAAS,CAAC,aACxD,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,CACP,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YACjB,CAAC,MAAM,EAAE,IAAA,yCAAmB,EAAC,cAAc,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;qBACtE,MAAM,CAAC,OAAO,CAAC;qBACf,IAAI,CAAC,GAAG,CAAC,GACP,GACH,CACP,CAAC,CAAC,CAAC,CACF,0CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,kBAAS,GACzB,CACP,IACG,CACP,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Rate.js","sourceRoot":"","sources":["../../../src/components/Calculator/Rate.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAC9C,yEAAsE;AAWzD,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,EAAE,cAAc,GAAG,CAAC,EAAE,YAAY,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,CAC9F,4CACE,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,iCAAK,SAAS,EAAC,UAAU,aACvB,iCAAK,SAAS,EAAC,wCAAwC,aACrD,iCAAM,SAAS,EAAC,0DAA0D,YACvE,IAAA,yCAAmB,EAAC,cAAc,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GACtD,EACN,IAAI,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,UAAU,YAAE,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,IACnD,EACL,YAAY,IAAI,kBAAkB,CAAC,CAAC,CAAC,CACpC,gCAAK,SAAS,EAAC,sDAAsD,YAAE,YAAY,GAAO,CAC3F,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CACF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getBonus = void 0;
|
|
3
|
-
const constants_1 = require("./constants");
|
|
4
|
-
const getBonus = (params, bonusTravelValue, bonusOtherValue) => {
|
|
5
|
-
const { maxBonus = 5000, prefMonthsNum = constants_1.DEFAULT_BONUS_CALCULATOR_PARAMS.prefMonthsNum, prefTravelBonusRate = constants_1.DEFAULT_BONUS_CALCULATOR_PARAMS.prefTravelBonusRate, prefRestBonusRate = 0.01, travelBonusRate = 0.015, restBonusRate = 0.01, } = params;
|
|
6
|
-
const prefBonus = Math.min(Math.round(prefTravelBonusRate * bonusTravelValue) +
|
|
7
|
-
Math.round(prefRestBonusRate * bonusOtherValue), maxBonus);
|
|
8
|
-
const bonus = Math.min(Math.round(travelBonusRate * bonusTravelValue) + Math.round(restBonusRate * bonusOtherValue), maxBonus);
|
|
9
|
-
const yearBonus = prefBonus * prefMonthsNum + bonus * (constants_1.MONTHS_IN_YEAR - prefMonthsNum);
|
|
10
|
-
return [prefBonus, yearBonus];
|
|
11
|
-
};
|
|
12
|
-
exports.getBonus = getBonus;
|
|
13
|
-
//# sourceMappingURL=getBonus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBonus.js","sourceRoot":"","sources":["../../../src/components/Calculator/getBonus.ts"],"names":[],"mappings":";;AAAA,2CAA8E;AAGvE,MAAM,QAAQ,GAAG,CACtB,MAA2B,EAC3B,gBAAwB,EACxB,eAAuB,EACvB,EAAE;IACF,MAAM,EACJ,QAAQ,GAAG,IAAI,EACf,aAAa,GAAG,2CAA+B,CAAC,aAAa,EAC7D,mBAAmB,GAAG,2CAA+B,CAAC,mBAAmB,EACzE,iBAAiB,GAAG,IAAI,EACxB,eAAe,GAAG,KAAK,EACvB,aAAa,GAAG,IAAI,GACrB,GAAG,MAAM,CAAC;IAEX,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CACxB,IAAI,CAAC,KAAK,CAAC,mBAAmB,GAAG,gBAAgB,CAAC;QAChD,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,eAAe,CAAC,EACjD,QAAQ,CACT,CAAC;IAEF,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CACpB,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,gBAAgB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,eAAe,CAAC,EAC5F,QAAQ,CACT,CAAC;IAEF,MAAM,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,CAAC,0BAAc,GAAG,aAAa,CAAC,CAAC;IAEvF,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAChC,CAAC,CAAC;AA5BW,QAAA,QAAQ,YA4BnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBonusCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/getBonusCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAA8D;AAC9D,yCAAsC;AAyB/B,MAAM,wBAAwB,GAAG,CACtC,eAA+C,EAC/C,UAAgC,EAChC,EAAE;IACF,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,GAAG,eAAe,CAAC;IAEjE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,IAAA,mBAAQ,EACtC,UAAU,IAAI,2CAA+B,EAC7C,kBAAkB,EAClB,gBAAgB,CACjB,CAAC;IAEF,OAAO;QACL,GAAG,UAAU;QACb,GAAG,eAAe;QAClB,UAAU;QACV,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,wBAAwB,4BAkBnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderFootnote.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderFootnote.tsx"],"names":[],"mappings":";;;AAAA,gEAA6D;AAEtD,MAAM,cAAc,GAAG,CAAC,IAAa,EAAE,EAAE,CAC9C,IAAI,CAAC,CAAC,CAAC,CACL,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YACnE,IAAI,GACK,CACb,CAAC,CAAC,CAAC,IAAI,CAAC;AALE,QAAA,cAAc,kBAKhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderRate.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRate.tsx"],"names":[],"mappings":";;;AAAA,iEAA8D;AAC9D,iCAA8C;AAC9C,+CAAmE;AAM5D,MAAM,UAAU,GAAG,CAAC,EACzB,KAAK,GAAG,QAAQ,EAChB,IAAI,GAAG,CAAC,EACR,IAAI,GAAG,GAAG,EACV,cAAc,GAAG,CAAC,EAClB,kBAAkB,GAAG,IAAI,EACzB,GAAG,IAAI,EACS,EAAE,EAAE,CACpB,kBAAkB,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CACjC,uBAAC,yBAAW,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACxC,CAAC,CAAC,CAAC,CACF,4CACE,gCAAK,SAAS,EAAC,kBAAkB,YAC/B,uBAAC,WAAI,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,KAAM,IAAI,GAAI,GACpF,EACN,gCAAK,SAAS,EAAC,YAAY,YACzB,uBAAC,2CAAoB,IACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,IAAI,EACb,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,IAAI,KACP,IAAI,GACR,GACE,IACF,CACP,CAAC;AA1BS,QAAA,UAAU,cA0BnB"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
|
|
3
|
-
interface RenderWantedSumParams extends InputRangeProps {
|
|
4
|
-
isShowItems?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function renderWantedSumInput({ isShowItems, step, ...rest }: RenderWantedSumParams): JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderWantedSumInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAEhE,yEAAsE;AAEtE,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAMhC,SAAgB,oBAAoB,CAAC,EACnC,WAAW,GAAG,IAAI,EAClB,IAAI,GAAG,kBAAkB,EACzB,GAAG,IAAI,EACe;IACtB,MAAM,KAAK,GAAG;QACZ,MAAM,IAAA,yCAAmB,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI;QAC/C,MAAM,IAAA,yCAAmB,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI;KAChD,CAAC;IAEF,OAAO,uBAAC,uBAAU,IAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,KAAM,IAAI,GAAI,CAAC;AAC/E,CAAC;AAXD,oDAWC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
2
|
-
import { type Tab } from './TabsLayoutContent';
|
|
3
|
-
interface TabsLayoutButtonProps {
|
|
4
|
-
tab: Tab;
|
|
5
|
-
className?: string;
|
|
6
|
-
onClick: (ev?: PreventableEvent) => void;
|
|
7
|
-
isActive: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const TabsLayoutButton: import("@redneckz/uni-jsx").UNIComponent<TabsLayoutButtonProps, any, any>;
|
|
10
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TabsLayoutButton = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
|
-
const dataAttributes_1 = require("../../utils/dataAttributes");
|
|
7
|
-
const style_1 = require("../../utils/style");
|
|
8
|
-
const getButtonClassNames = (isActive) => ({
|
|
9
|
-
btn: `w-96 ${isActive
|
|
10
|
-
? 'p-m border-none bg-primary-main text-white'
|
|
11
|
-
: 'p-s ease-in duration-300 bg-white text-primary-text'}`,
|
|
12
|
-
title: isActive ? 'mb-xs text-xl' : 'mb-2xs text-l',
|
|
13
|
-
desc: `font-light ${isActive ? 'text-l text-white' : 'text-m text-secondary-text'}`,
|
|
14
|
-
icon: isActive ? '' : 'text-primary-main',
|
|
15
|
-
iconVersion: (isActive ? 'white' : 'normal'),
|
|
16
|
-
});
|
|
17
|
-
exports.TabsLayoutButton = (0, uni_jsx_1.JSX)(({ tab, className, onClick, isActive }) => {
|
|
18
|
-
const buttonClassNames = getButtonClassNames(isActive);
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: (0, style_1.style)('border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs', buttonClassNames.btn, className), ...(0, dataAttributes_1.getAspectsAttributes)(tab?.data), children: [tab?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: (0, style_1.style)('h-6 w-6 min-w-6 min-h-6', buttonClassNames.icon), image: {
|
|
20
|
-
...tab?.icon,
|
|
21
|
-
iconVersion: tab?.icon?.iconVersion ?? buttonClassNames.iconVersion,
|
|
22
|
-
}, width: "24", height: "24" })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "border-0", children: [tab?.title ? (0, jsx_runtime_1.jsx)("div", { className: buttonClassNames.title, children: tab.title }) : null, tab?.description ? (0, jsx_runtime_1.jsx)("div", { className: buttonClassNames.desc, children: tab.description }) : null] })] }));
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=TabsLayoutButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TabsLayoutButton.js","sourceRoot":"","sources":["../../../src/components/TabsLayout/TabsLayoutButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8CAA2C;AAE3C,+DAAkE;AAClE,6CAA0C;AAG1C,MAAM,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AAI,EACR,iCAAK,SAAS,EAAC,UAAU,aACtB,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,gBAAgB,CAAC,KAAK,YAAG,GAAG,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EAC7E,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,gBAAgB,CAAC,IAAI,YAAG,GAAG,CAAC,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,IACrF,IACC,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.TabsLayoutRedirectSection = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useDebouncedEffect_1 = require("@redneckz/uni-jsx/lib/hooks/useDebouncedEffect");
|
|
6
|
-
const useLink_1 = require("../../hooks/useLink");
|
|
7
|
-
const Shimmer_1 = require("../../ui-kit/Shimmer/Shimmer");
|
|
8
|
-
const url_1 = require("../../utils/url");
|
|
9
|
-
const REDIRECT_DELAY = 0.8 * 1000;
|
|
10
|
-
exports.TabsLayoutRedirectSection = (0, uni_jsx_1.JSX)(({ tab }) => {
|
|
11
|
-
const link = (0, useLink_1.useLink)();
|
|
12
|
-
const { onClick } = link({
|
|
13
|
-
...tab,
|
|
14
|
-
onClick: () => {
|
|
15
|
-
/**
|
|
16
|
-
* In the current implementation of useLink, there is no follow-by-link method,
|
|
17
|
-
* and default routing won't work if the link is external.
|
|
18
|
-
*/
|
|
19
|
-
if (tab.href && !(0, url_1.isLocalURL)(tab.href)) {
|
|
20
|
-
globalThis.location.href = tab.href;
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
(0, useDebouncedEffect_1.useDebouncedEffect)(onClick, [], REDIRECT_DELAY);
|
|
25
|
-
return (0, jsx_runtime_1.jsx)(Shimmer_1.Shimmer, { className: "col-span-12 p-xl", size: 5 });
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=TabsLayoutRedirectSection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TabsLayoutRedirectSection.js","sourceRoot":"","sources":["../../../src/components/TabsLayout/TabsLayoutRedirectSection.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uFAAoF;AACpF,iDAA8C;AAC9C,0DAAuD;AACvD,yCAA6C;AAG7C,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;AAMrB,QAAA,yBAAyB,GAAG,IAAA,aAAG,EAAiC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;IACvF,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACvB,GAAG,GAAG;QACN,OAAO,EAAE,GAAG,EAAE;YACZ;;;eAGG;YACH,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,IAAA,gBAAU,EAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBACrC,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;aACrC;QACH,CAAC;KACF,CAAC,CAAC;IAEH,IAAA,uCAAkB,EAAC,OAAO,EAAE,EAAE,EAAE,cAAc,CAAC,CAAC;IAEhD,OAAO,uBAAC,iBAAO,IAAC,SAAS,EAAC,kBAAkB,EAAC,IAAI,EAAE,CAAC,GAAI,CAAC;AAC3D,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alignTabStyle.js","sourceRoot":"","sources":["../../../src/components/TabsLayout/alignTabStyle.ts"],"names":[],"mappings":";;AAEa,QAAA,aAAa,GAA0B;IAClD,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,aAAa;IACrB,GAAG,EAAE,UAAU;CAChB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.useScrollToTab = void 0;
|
|
3
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
4
|
-
const useBool_1 = require("@redneckz/uni-jsx/lib/hooks/useBool");
|
|
5
|
-
const useScrollToTab = (activeTabIndex, scroll) => {
|
|
6
|
-
const [initState, { setTrue: setInitStateTrue }] = (0, useBool_1.useBool)(false);
|
|
7
|
-
(0, hooks_1.useEffect)(() => {
|
|
8
|
-
scroll.scrollTo(activeTabIndex, {
|
|
9
|
-
behavior: initState ? 'smooth' : 'auto',
|
|
10
|
-
block: 'nearest',
|
|
11
|
-
inline: 'center',
|
|
12
|
-
});
|
|
13
|
-
!initState && setInitStateTrue();
|
|
14
|
-
}, [activeTabIndex, initState]);
|
|
15
|
-
};
|
|
16
|
-
exports.useScrollToTab = useScrollToTab;
|
|
17
|
-
//# sourceMappingURL=useScrollToTab.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollToTab.js","sourceRoot":"","sources":["../../../src/components/TabsLayout/useScrollToTab.ts"],"names":[],"mappings":";;AAAA,uDAAwD;AACxD,iEAA8D;AAGvD,MAAM,cAAc,GAAG,CAAC,cAAsB,EAAE,MAAuB,EAAE,EAAE;IAChF,MAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,KAAK,CAAC,CAAC;IAElE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE;YAC9B,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM;YACvC,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;QACH,CAAC,SAAS,IAAI,gBAAgB,EAAE,CAAC;IACnC,CAAC,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC;AAClC,CAAC,CAAC;AAXW,QAAA,cAAc,kBAWzB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
|
-
import { type CommonCalculatorProps } from './CalculatorContent';
|
|
3
|
-
import { type BonusCalculatorData } from './getBonusCalculatorParams';
|
|
4
|
-
export interface BonusCalculatorProps extends CommonCalculatorProps {
|
|
5
|
-
className?: string;
|
|
6
|
-
calcSource?: BonusCalculatorData & JSONRefObject;
|
|
7
|
-
}
|
|
8
|
-
export declare const BonusCalculatorForm: import("@redneckz/uni-jsx").UNIComponent<BonusCalculatorProps, any, any>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useForm } from '../../hooks/useForm.js';
|
|
4
|
-
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection.js';
|
|
5
|
-
import { style } from '../../utils/style.js';
|
|
6
|
-
import { CalculatorValueBlock } from './CalculatorValueBlock.js';
|
|
7
|
-
import { DEFAULT_REST_MIN_SUM, DEFAULT_TRAVEL_MIN_SUM } from './constants.js';
|
|
8
|
-
import { getBonusCalculatorParams } from './getBonusCalculatorParams.js';
|
|
9
|
-
import { renderFootnote } from './renderFootnote.js';
|
|
10
|
-
import { renderRate } from './renderRate.js';
|
|
11
|
-
import { renderWantedSumInput } from './renderWantedSumInput.js';
|
|
12
|
-
export const BonusCalculatorForm = JSX(({ className = '', calcSource, buttons, footnote }) => {
|
|
13
|
-
const [userInputParams, { field }] = useForm({
|
|
14
|
-
travelExpenseValue: DEFAULT_TRAVEL_MIN_SUM,
|
|
15
|
-
restExpenseValue: DEFAULT_REST_MIN_SUM,
|
|
16
|
-
});
|
|
17
|
-
const { minSumTravel, maxSumTravel, minSumOther, maxSumOther, monthBonus, yearBonus } = getBonusCalculatorParams(userInputParams, calcSource);
|
|
18
|
-
return (_jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-y-4xl', className), children: [_jsxs("div", { className: "flex flex-col @xl:max-w-md gap-2xl border-b border-b-main-divider @xl:border-none pb-3xl @xl:pb-0", children: [renderWantedSumInput({
|
|
19
|
-
title: 'Сумма покупок в категории путешествия, ₽',
|
|
20
|
-
min: minSumTravel,
|
|
21
|
-
max: maxSumTravel,
|
|
22
|
-
step: 500,
|
|
23
|
-
isShowItems: false,
|
|
24
|
-
...field('travelExpenseValue'),
|
|
25
|
-
}), renderWantedSumInput({
|
|
26
|
-
title: 'Сумма покупок в остальных категориях, ₽',
|
|
27
|
-
min: minSumOther,
|
|
28
|
-
max: maxSumOther,
|
|
29
|
-
step: 500,
|
|
30
|
-
isShowItems: false,
|
|
31
|
-
...field('restExpenseValue'),
|
|
32
|
-
})] }), monthBonus >= 0
|
|
33
|
-
? renderRate({
|
|
34
|
-
title: 'Баллов за месяц',
|
|
35
|
-
rate: monthBonus,
|
|
36
|
-
fractionDigits: 0,
|
|
37
|
-
isUnknownRateShown: false,
|
|
38
|
-
unit: '',
|
|
39
|
-
})
|
|
40
|
-
: null, _jsxs("div", { className: "flex flex-col gap-y-xl @xl:w-96", children: [yearBonus >= 0 ? _jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
|
|
41
|
-
});
|
|
42
|
-
//# sourceMappingURL=BonusCalculatorForm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BonusCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BonusCalculatorForm.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAA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AAoB,CAAC;wBACpB,KAAK,EAAE,yCAAyC;wBAChD,GAAG,EAAE,WAAW;wBAChB,GAAG,EAAE,WAAW;wBAChB,IAAI,EAAE,GAAG;wBACT,WAAW,EAAE,KAAK;wBAClB,GAAG,KAAK,CAAC,kBAAkB,CAAC;qBAC7B,CAAC,IACE,EACL,UAAU,IAAI,CAAC;gBACd,CAAC,CAAC,UAAU,CAAC;oBACT,KAAK,EAAE,iBAAiB;oBACxB,IAAI,EAAE,UAAU;oBAChB,cAAc,EAAE,CAAC;oBACjB,kBAAkB,EAAE,KAAK;oBACzB,IAAI,EAAE,EAAE;iBACT,CAAC;gBACJ,CAAC,CAAC,IAAI,EACR,eAAK,SAAS,EAAC,iCAAiC,aAC7C,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,KAAC,oBAAoB,IAAC,KAAK,EAAC,sEAAe,EAAC,KAAK,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,EACxF,oBAAoB,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACnD,cAAc,CAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalculatorValueBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/CalculatorValueBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,yBAAyB,GAAG,mCAAmC,CAAC;AAYtE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE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G,eAAe,CAAC,EAC5F,QAAQ,CACT,CAAC;IAEF,MAAM,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,CAAC,cAAc,GAAG,aAAa,CAAC,CAAC;IAEvF,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAChC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBonusCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/getBonusCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAyBtC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,eAA+C,EAC/C,UAAgC,EAChC,EAAE;IACF,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,GAAG,eAAe,CAAC;IAEjE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,QAAQ,CACtC,UAAU,IAAI,+BAA+B,EAC7C,kBAAkB,EAClB,gBAAgB,CACjB,CAAC;IAEF,OAAO;QACL,GAAG,UAAU;QACb,GAAG,eAAe;QAClB,UAAU;QACV,SAAS;KACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderFootnote.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderFootnote.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAa,EAAE,EAAE,CAC9C,IAAI,CAAC,CAAC,CAAC,CACL,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YACnE,IAAI,GACK,CACb,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type RateProps } from './Rate';
|
|
3
|
-
import { type UnknownRateProps } from './UnknownRate';
|
|
4
|
-
interface RenderRateProps extends RateProps, UnknownRateProps {
|
|
5
|
-
isUnknownRateShown?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const renderRate: ({ title, rate, unit, fractionDigits, isUnknownRateShown, ...rest }: RenderRateProps) => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderRate.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAkB,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AAMnE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,KAAK,GAAG,QAAQ,EAChB,IAAI,GAAG,CAAC,EACR,IAAI,GAAG,GAAG,EACV,cAAc,GAAG,CAAC,EAClB,kBAAkB,GAAG,IAAI,EACzB,GAAG,IAAI,EACS,EAAE,EAAE,CACpB,kBAAkB,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CACjC,KAAC,WAAW,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,GAAI,CACxC,CAAC,CAAC,CAAC,CACF,0BACE,cAAK,SAAS,EAAC,kBAAkB,YAC/B,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,KAAM,IAAI,GAAI,GACpF,EACN,cAAK,SAAS,EAAC,YAAY,YACzB,KAAC,oBAAoB,IACnB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,IAAI,EACX,OAAO,EAAE,IAAI,EACb,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,IAAI,KACP,IAAI,GACR,GACE,IACF,CACP,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
|
|
3
|
-
interface RenderWantedSumParams extends InputRangeProps {
|
|
4
|
-
isShowItems?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function renderWantedSumInput({ isShowItems, step, ...rest }: RenderWantedSumParams): JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderWantedSumInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAMhC,MAAM,UAAU,oBAAoB,CAAC,EACnC,WAAW,GAAG,IAAI,EAClB,IAAI,GAAG,kBAAkB,EACzB,GAAG,IAAI,EACe;IACtB,MAAM,KAAK,GAAG;QACZ,MAAM,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI;QAC/C,MAAM,mBAAmB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI;KAChD,CAAC;IAEF,OAAO,KAAC,UAAU,IAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,KAAM,IAAI,GAAI,CAAC;AAC/E,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
2
|
-
import { type Tab } from './TabsLayoutContent';
|
|
3
|
-
interface TabsLayoutButtonProps {
|
|
4
|
-
tab: Tab;
|
|
5
|
-
className?: string;
|
|
6
|
-
onClick: (ev?: PreventableEvent) => void;
|
|
7
|
-
isActive: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const TabsLayoutButton: import("@redneckz/uni-jsx").UNIComponent<TabsLayoutButtonProps, any, any>;
|
|
10
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
4
|
-
import { getAspectsAttributes } from '../../utils/dataAttributes.js';
|
|
5
|
-
import { style } from '../../utils/style.js';
|
|
6
|
-
const getButtonClassNames = (isActive) => ({
|
|
7
|
-
btn: `w-96 ${isActive
|
|
8
|
-
? 'p-m border-none bg-primary-main text-white'
|
|
9
|
-
: 'p-s ease-in duration-300 bg-white text-primary-text'}`,
|
|
10
|
-
title: isActive ? 'mb-xs text-xl' : 'mb-2xs text-l',
|
|
11
|
-
desc: `font-light ${isActive ? 'text-l text-white' : 'text-m text-secondary-text'}`,
|
|
12
|
-
icon: isActive ? '' : 'text-primary-main',
|
|
13
|
-
iconVersion: (isActive ? 'white' : 'normal'),
|
|
14
|
-
});
|
|
15
|
-
export const TabsLayoutButton = JSX(({ tab, className, onClick, isActive }) => {
|
|
16
|
-
const buttonClassNames = getButtonClassNames(isActive);
|
|
17
|
-
return (_jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: style('border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs', buttonClassNames.btn, className), ...getAspectsAttributes(tab?.data), children: [tab?.icon ? (_jsx(Img, { className: style('h-6 w-6 min-w-6 min-h-6', buttonClassNames.icon), image: {
|
|
18
|
-
...tab?.icon,
|
|
19
|
-
iconVersion: tab?.icon?.iconVersion ?? buttonClassNames.iconVersion,
|
|
20
|
-
}, width: "24", height: "24" })) : null, _jsxs("div", { className: "border-0", children: [tab?.title ? _jsx("div", { className: buttonClassNames.title, children: tab.title }) : null, tab?.description ? _jsx("div", { className: buttonClassNames.desc, children: tab.description }) : null] })] }));
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=TabsLayoutButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TabsLayoutButton.js","sourceRoot":"","sources":["../../../src/components/TabsLayout/TabsLayoutButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,MAAM,mBAAmB,GAAG,CAAC,QAAiB,EAAE,EAAE,CAAC,CAAC;IAClD,GAAG,EAAE,QACH,QAAQ;QACN,CAAC,CAAC,4CAA4C;QAC9C,CAAC,CAAC,qDACN,EAAE;IACF,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe;IACnD,IAAI,EAAE,cAAc,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,4BAA4B,EAAE;IACnF,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,mBAAmB;IACzC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAgB;CAC5D,CAAC,CAAC;AASH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAEvD,OAAO,CACL,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,gBACJ,GAAG,EAAE,KAAK,EACtB,SAAS,EAAE,KAAK,CACd,6EAA6E,EAC7E,gBAAgB,CAAC,GAAG,EACpB,SAAS,CACV,KAEG,oBAAoB,CAAC,GAAG,EAAE,IAAI,CAAC,aAElC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CACX,KAAC,GAAG,IACF,SAAS,EAAE,KAAK,CAAC,yBAAyB,EAAE,gBAAgB,CAAC,IAAI,CAAC,EAClE,KAAK,EAAE;oBACL,GAAG,GAAG,EAAE,IAAI;oBACZ,WAAW,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,IAAI,gBAAgB,CAAC,WAAW;iBACpE,EACD,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC,CAAC,CAAC,IAAI,EACR,eAAK,SAAS,EAAC,UAAU,aACtB,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,gBAAgB,CAAC,KAAK,YAAG,GAAG,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EAC7E,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC,cAAK,SAAS,EAAE,gBAAgB,CAAC,IAAI,YAAG,GAAG,CAAC,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,IACrF,IACC,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useDebouncedEffect } from '@redneckz/uni-jsx/lib/hooks/useDebouncedEffect';
|
|
4
|
-
import { useLink } from '../../hooks/useLink.js';
|
|
5
|
-
import { Shimmer } from '../../ui-kit/Shimmer/Shimmer.js';
|
|
6
|
-
import { isLocalURL } from '../../utils/url.js';
|
|
7
|
-
const REDIRECT_DELAY = 0.8 * 1000;
|
|
8
|
-
export const TabsLayoutRedirectSection = JSX(({ tab }) => {
|
|
9
|
-
const link = useLink();
|
|
10
|
-
const { onClick } = link({
|
|
11
|
-
...tab,
|
|
12
|
-
onClick: () => {
|
|
13
|
-
/**
|
|
14
|
-
* In the current implementation of useLink, there is no follow-by-link method,
|
|
15
|
-
* and default routing won't work if the link is external.
|
|
16
|
-
*/
|
|
17
|
-
if (tab.href && !isLocalURL(tab.href)) {
|
|
18
|
-
globalThis.location.href = tab.href;
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
useDebouncedEffect(onClick, [], REDIRECT_DELAY);
|
|
23
|
-
return _jsx(Shimmer, { className: "col-span-12 p-xl", size: 5 });
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=TabsLayoutRedirectSection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TabsLayoutRedirectSection.js","sourceRoot":"","sources":["../../../src/components/TabsLayout/TabsLayoutRedirectSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG7C,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;AAMlC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAiC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;IACvF,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACvB,GAAG,GAAG;QACN,OAAO,EAAE,GAAG,EAAE;YACZ;;;eAGG;YACH,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBACrC,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;aACrC;QACH,CAAC;KACF,CAAC,CAAC;IAEH,kBAAkB,CAAC,OAAO,EAAE,EAAE,EAAE,cAAc,CAAC,CAAC;IAEhD,OAAO,KAAC,OAAO,IAAC,SAAS,EAAC,kBAAkB,EAAC,IAAI,EAAE,CAAC,GAAI,CAAC;AAC3D,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alignTabStyle.js","sourceRoot":"","sources":["../../../src/components/TabsLayout/alignTabStyle.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,aAAa;IACrB,GAAG,EAAE,UAAU;CAChB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
-
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
3
|
-
export const useScrollToTab = (activeTabIndex, scroll) => {
|
|
4
|
-
const [initState, { setTrue: setInitStateTrue }] = useBool(false);
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
scroll.scrollTo(activeTabIndex, {
|
|
7
|
-
behavior: initState ? 'smooth' : 'auto',
|
|
8
|
-
block: 'nearest',
|
|
9
|
-
inline: 'center',
|
|
10
|
-
});
|
|
11
|
-
!initState && setInitStateTrue();
|
|
12
|
-
}, [activeTabIndex, initState]);
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=useScrollToTab.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollToTab.js","sourceRoot":"","sources":["../../../src/components/TabsLayout/useScrollToTab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAG9D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,cAAsB,EAAE,MAAuB,EAAE,EAAE;IAChF,MAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAElE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE;YAC9B,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM;YACvC,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;QACH,CAAC,SAAS,IAAI,gBAAgB,EAAE,CAAC;IACnC,CAAC,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC;AAClC,CAAC,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
3
|
-
import { useForm } from '../../hooks/useForm';
|
|
4
|
-
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
|
|
5
|
-
import { style } from '../../utils/style';
|
|
6
|
-
import { type CommonCalculatorProps } from './CalculatorContent';
|
|
7
|
-
import { CalculatorValueBlock } from './CalculatorValueBlock';
|
|
8
|
-
import { DEFAULT_REST_MIN_SUM, DEFAULT_TRAVEL_MIN_SUM } from './constants';
|
|
9
|
-
import { getBonusCalculatorParams, type BonusCalculatorData } from './getBonusCalculatorParams';
|
|
10
|
-
import { renderFootnote } from './renderFootnote';
|
|
11
|
-
import { renderRate } from './renderRate';
|
|
12
|
-
import { renderWantedSumInput } from './renderWantedSumInput';
|
|
13
|
-
|
|
14
|
-
export interface BonusCalculatorProps extends CommonCalculatorProps {
|
|
15
|
-
className?: string;
|
|
16
|
-
calcSource?: BonusCalculatorData & JSONRefObject;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const BonusCalculatorForm = JSX<BonusCalculatorProps>(
|
|
20
|
-
({ className = '', calcSource, buttons, footnote }) => {
|
|
21
|
-
const [userInputParams, { field }] = useForm({
|
|
22
|
-
travelExpenseValue: DEFAULT_TRAVEL_MIN_SUM,
|
|
23
|
-
restExpenseValue: DEFAULT_REST_MIN_SUM,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const { minSumTravel, maxSumTravel, minSumOther, maxSumOther, monthBonus, yearBonus } =
|
|
27
|
-
getBonusCalculatorParams(userInputParams, calcSource);
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<section
|
|
31
|
-
className={style('flex flex-col justify-between @5xl:flex-row gap-y-4xl', className)}
|
|
32
|
-
>
|
|
33
|
-
<div className="flex flex-col @xl:max-w-md gap-2xl border-b border-b-main-divider @xl:border-none pb-3xl @xl:pb-0">
|
|
34
|
-
{renderWantedSumInput({
|
|
35
|
-
title: 'Сумма покупок в категории путешествия, ₽',
|
|
36
|
-
min: minSumTravel,
|
|
37
|
-
max: maxSumTravel,
|
|
38
|
-
step: 500,
|
|
39
|
-
isShowItems: false,
|
|
40
|
-
...field('travelExpenseValue'),
|
|
41
|
-
})}
|
|
42
|
-
{renderWantedSumInput({
|
|
43
|
-
title: 'Сумма покупок в остальных категориях, ₽',
|
|
44
|
-
min: minSumOther,
|
|
45
|
-
max: maxSumOther,
|
|
46
|
-
step: 500,
|
|
47
|
-
isShowItems: false,
|
|
48
|
-
...field('restExpenseValue'),
|
|
49
|
-
})}
|
|
50
|
-
</div>
|
|
51
|
-
{monthBonus >= 0
|
|
52
|
-
? renderRate({
|
|
53
|
-
title: 'Баллов за месяц',
|
|
54
|
-
rate: monthBonus,
|
|
55
|
-
fractionDigits: 0,
|
|
56
|
-
isUnknownRateShown: false,
|
|
57
|
-
unit: '',
|
|
58
|
-
})
|
|
59
|
-
: null}
|
|
60
|
-
<div className="flex flex-col gap-y-xl @xl:w-96">
|
|
61
|
-
{yearBonus >= 0 ? <CalculatorValueBlock title="Баллов за год" value={yearBonus} /> : null}
|
|
62
|
-
{renderButtonsSection(buttons, { isVertical: true })}
|
|
63
|
-
{renderFootnote(footnote)}
|
|
64
|
-
</div>
|
|
65
|
-
</section>
|
|
66
|
-
);
|
|
67
|
-
},
|
|
68
|
-
);
|