@redneckz/wildless-cms-uni-blocks 0.5.10 → 0.5.11
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.4.5.js +1 -1
- package/bin/migration-scripts/0.5.10.js +36 -0
- package/bin/utils.js +0 -2
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +164 -98
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/EventBus/EventMap.d.ts +2 -1
- package/dist/components/Bonus/Bonus.js +11 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +30 -2
- package/dist/components/CardTransfer/CardTransfer.js +10 -11
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
- package/dist/components/ComparisonTable/TableColumn.js +7 -2
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js +2 -2
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +3 -3
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/SafeDepositRental/WrapperSelect.js +6 -3
- package/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +4 -0
- package/dist/components/Tabs/Tabs.js +13 -3
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +2 -0
- package/dist/components/Tabs/renderLinkTab.d.ts +3 -2
- package/dist/components/Tabs/renderLinkTab.js +4 -1
- package/dist/components/Tabs/renderLinkTab.js.map +1 -1
- package/dist/components/Tabs/renderTab.js +12 -2
- package/dist/components/Tabs/renderTab.js.map +1 -1
- package/dist/react/IntersectionObserverTag.js +7 -3
- package/dist/react/IntersectionObserverTag.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +34 -12
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js +11 -6
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
- package/dist/ui-kit/CurrencyInput/adjustValue .d.ts +1 -0
- package/dist/ui-kit/CurrencyInput/adjustValue .js +15 -0
- package/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
- package/dist/ui-kit/Input/Input.d.ts +1 -1
- package/dist/ui-kit/Input/Input.js +7 -4
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +6 -3
- package/dist/ui-kit/Select/Select.d.ts +10 -4
- package/dist/ui-kit/Select/Select.js +23 -5
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/utils/changeHashOnObserve.d.ts +9 -1
- package/dist/utils/changeHashOnObserve.js +12 -4
- package/dist/utils/changeHashOnObserve.js.map +1 -1
- package/lib/EventBus/EventMap.d.ts +2 -1
- package/lib/common.css +1 -1
- package/lib/components/Bonus/Bonus.js +11 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +30 -2
- package/lib/components/CardTransfer/CardTransfer.js +10 -11
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
- package/lib/components/ComparisonTable/TableColumn.js +7 -2
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js +2 -2
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +3 -3
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/SafeDepositRental/WrapperSelect.js +7 -4
- package/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +4 -0
- package/lib/components/Tabs/Tabs.js +13 -3
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +2 -0
- package/lib/components/Tabs/renderLinkTab.d.ts +3 -2
- package/lib/components/Tabs/renderLinkTab.js +5 -2
- package/lib/components/Tabs/renderLinkTab.js.map +1 -1
- package/lib/components/Tabs/renderTab.js +12 -2
- package/lib/components/Tabs/renderTab.js.map +1 -1
- package/lib/react/IntersectionObserverTag.js +7 -3
- package/lib/react/IntersectionObserverTag.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +35 -13
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js +12 -7
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
- package/lib/ui-kit/CurrencyInput/adjustValue .d.ts +1 -0
- package/lib/ui-kit/CurrencyInput/adjustValue .js +12 -0
- package/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
- package/lib/ui-kit/Input/Input.d.ts +1 -1
- package/lib/ui-kit/Input/Input.js +8 -5
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +6 -3
- package/lib/ui-kit/Select/Select.d.ts +10 -4
- package/lib/ui-kit/{SelectCustom/SelectCustom.fixture.d.ts → Select/Select.fixture.d.ts} +0 -0
- package/lib/ui-kit/Select/Select.js +24 -6
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/utils/changeHashOnObserve.d.ts +9 -1
- package/lib/utils/changeHashOnObserve.js +12 -4
- package/lib/utils/changeHashOnObserve.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +90 -52
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/EventBus/EventMap.d.ts +2 -1
- package/mobile/dist/components/Bonus/Bonus.js +11 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Bonus/BonusContent.d.ts +30 -2
- package/mobile/dist/components/CardTransfer/CardTransfer.js +10 -11
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js +7 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +3 -3
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js +6 -3
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.d.ts +4 -0
- package/mobile/dist/components/Tabs/Tabs.js +13 -3
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +2 -0
- package/mobile/dist/components/Tabs/renderLinkTab.d.ts +3 -2
- package/mobile/dist/components/Tabs/renderLinkTab.js +4 -1
- package/mobile/dist/components/Tabs/renderLinkTab.js.map +1 -1
- package/mobile/dist/components/Tabs/renderTab.js +12 -2
- package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
- package/mobile/dist/react/IntersectionObserverTag.js +7 -3
- package/mobile/dist/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +34 -12
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +11 -6
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .d.ts +1 -0
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js +15 -0
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
- package/mobile/dist/ui-kit/Input/Input.d.ts +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +7 -4
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +6 -3
- package/mobile/dist/ui-kit/Select/Select.d.ts +10 -4
- package/mobile/dist/ui-kit/Select/Select.js +23 -5
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/utils/changeHashOnObserve.d.ts +9 -1
- package/mobile/dist/utils/changeHashOnObserve.js +12 -4
- package/mobile/dist/utils/changeHashOnObserve.js.map +1 -1
- package/mobile/lib/EventBus/EventMap.d.ts +2 -1
- package/mobile/lib/components/Bonus/Bonus.js +11 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Bonus/BonusContent.d.ts +30 -2
- package/mobile/lib/components/CardTransfer/CardTransfer.js +10 -11
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.js +7 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +3 -3
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js +7 -4
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.d.ts +4 -0
- package/mobile/lib/components/Tabs/Tabs.js +13 -3
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +2 -0
- package/mobile/lib/components/Tabs/renderLinkTab.d.ts +3 -2
- package/mobile/lib/components/Tabs/renderLinkTab.js +5 -2
- package/mobile/lib/components/Tabs/renderLinkTab.js.map +1 -1
- package/mobile/lib/components/Tabs/renderTab.js +12 -2
- package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
- package/mobile/lib/react/IntersectionObserverTag.js +7 -3
- package/mobile/lib/react/IntersectionObserverTag.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +35 -13
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +12 -7
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .d.ts +1 -0
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js +12 -0
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
- package/mobile/lib/ui-kit/Input/Input.d.ts +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +8 -5
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +6 -3
- package/mobile/lib/ui-kit/Select/Select.d.ts +10 -4
- package/mobile/lib/ui-kit/Select/Select.js +24 -6
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/utils/changeHashOnObserve.d.ts +9 -1
- package/mobile/lib/utils/changeHashOnObserve.js +12 -4
- package/mobile/lib/utils/changeHashOnObserve.js.map +1 -1
- package/mobile/src/EventBus/EventMap.ts +3 -1
- package/mobile/src/components/Accordion/Accordion.ui.json +79 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.ui.json +16 -0
- package/mobile/src/components/Bonus/Bonus.example.json +5 -2
- package/mobile/src/components/Bonus/Bonus.tsx +44 -16
- package/mobile/src/components/Bonus/Bonus.ui.json +16 -0
- package/mobile/src/components/Bonus/BonusContent.ts +33 -2
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.ui.json +11 -0
- package/mobile/src/components/Calculator/Calculator.example.json +2 -1
- package/mobile/src/components/Calculator/Calculator.ui.json +31 -0
- package/mobile/src/components/CardTransfer/CardTransfer.example.json +7 -2
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +22 -23
- package/mobile/src/components/CardTransfer/CardTransfer.ui.json +1 -0
- package/mobile/src/components/CardTransfer/CardTransferContent.ts +2 -2
- package/mobile/src/components/Catalog/Catalog.ui.json +1 -0
- package/mobile/src/components/ComparisonTable/ComparisonTable.ui.json +1 -0
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +17 -11
- package/mobile/src/components/ContentPage/ContentPage.page.json +15 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.ui.json +12 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -3
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +1 -0
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +3 -3
- package/mobile/src/components/Footer/Footer.ui.json +11 -0
- package/mobile/src/components/Gallery/Gallery.ui.json +1 -0
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +5 -4
- package/mobile/src/components/GracePeriod/GracePeriod.ui.json +15 -0
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/mobile/src/components/Header/Header.ui.json +11 -0
- package/mobile/src/components/Headline/Headline.ui.json +1 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +15 -0
- package/mobile/src/components/LinkDocs/LinkDocs.ui.json +1 -0
- package/mobile/src/components/LinkList/LinkList.ui.json +1 -0
- package/mobile/src/components/MiniGallery/MiniGallery.ui.json +1 -0
- package/mobile/src/components/MobileAppTile/MobileAppTile.ui.json +7 -0
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +11 -0
- package/mobile/src/components/OtherProducts/OtherProducts.ui.json +76 -0
- package/mobile/src/components/PictureText/PictureText.ui.json +1 -0
- package/mobile/src/components/Placeholder/Placeholder.ui.json +1 -0
- package/mobile/src/components/ProductBlock/ProductBlock.ui.json +12 -0
- package/mobile/src/components/ProductGallery/ProductGallery.ui.json +30 -0
- package/mobile/src/components/ProductTile/ProductTile.ui.json +1 -0
- package/mobile/src/components/PromoTile/PromoTile.ui.json +1 -0
- package/mobile/src/components/Recommendation/Recommendation.ui.json +11 -0
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +4 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +1 -0
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +15 -20
- package/mobile/src/components/StepsBlock/StepsBlock.ui.json +11 -0
- package/mobile/src/components/Tabs/Tabs.tsx +25 -3
- package/mobile/src/components/Tabs/Tabs.ui.json +1 -0
- package/mobile/src/components/Tabs/TabsContent.ts +2 -0
- package/mobile/src/components/Tabs/renderLinkTab.tsx +28 -12
- package/mobile/src/components/Tabs/renderTab.tsx +13 -2
- package/mobile/src/components/TariffsTable/TariffsTable.ui.json +33 -0
- package/mobile/src/components/TextBlock/TextBlock.ui.json +1 -0
- package/mobile/src/components/Tile/Tile.ui.json +1 -0
- package/mobile/src/react/IntersectionObserverTag.tsx +10 -3
- package/mobile/src/ui-kit/BlockWrapper.tsx +45 -18
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +21 -36
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +3 -7
- package/mobile/src/ui-kit/CurrencyInput/adjustValue .ts +17 -0
- package/mobile/src/ui-kit/Input/Input.tsx +37 -16
- package/mobile/src/ui-kit/Input/InputProps.ts +6 -3
- package/mobile/src/ui-kit/Select/Select.tsx +86 -20
- package/mobile/src/utils/changeHashOnObserve.ts +30 -10
- package/package.json +6 -3
- package/src/EventBus/EventMap.ts +3 -1
- package/src/components/Accordion/Accordion.ui.json +79 -0
- package/src/components/BenefitsBlock/BenefitsBlock.ui.json +16 -0
- package/src/components/Bonus/Bonus.example.json +5 -2
- package/src/components/Bonus/Bonus.fixture.tsx +37 -6
- package/src/components/Bonus/Bonus.tsx +44 -16
- package/src/components/Bonus/Bonus.ui.json +16 -0
- package/src/components/Bonus/BonusContent.ts +33 -2
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.ui.json +11 -0
- package/src/components/Calculator/Calculator.example.json +2 -1
- package/src/components/Calculator/Calculator.ui.json +31 -0
- package/src/components/CardTransfer/CardTransfer.example.json +7 -2
- package/src/components/CardTransfer/CardTransfer.fixture.tsx +9 -1
- package/src/components/CardTransfer/CardTransfer.tsx +22 -23
- package/src/components/CardTransfer/CardTransfer.ui.json +1 -0
- package/src/components/CardTransfer/CardTransferContent.ts +2 -2
- package/src/components/Catalog/Catalog.ui.json +1 -0
- package/src/components/ComparisonTable/ComparisonTable.ui.json +1 -0
- package/src/components/ComparisonTable/TableColumn.tsx +17 -11
- package/src/components/ContentPage/ContentPage.page.json +15 -1
- package/src/components/ErrorBlock/ErrorBlock.ui.json +12 -0
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -3
- package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +1 -0
- package/src/components/ExchangeRateTile/renderInput.tsx +3 -3
- package/src/components/Footer/Footer.ui.json +11 -0
- package/src/components/Gallery/Gallery.ui.json +1 -0
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +5 -5
- package/src/components/GracePeriod/GracePeriod.tsx +5 -4
- package/src/components/GracePeriod/GracePeriod.ui.json +15 -0
- package/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/src/components/Header/Header.ui.json +11 -0
- package/src/components/Headline/Headline.ui.json +1 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +15 -0
- package/src/components/LinkDocs/LinkDocs.ui.json +1 -0
- package/src/components/LinkList/LinkList.ui.json +1 -0
- package/src/components/MiniGallery/MiniGallery.ui.json +1 -0
- package/src/components/MobileAppTile/MobileAppTile.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.ui.json +7 -0
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +11 -0
- package/src/components/OtherProducts/OtherProducts.ui.json +76 -0
- package/src/components/PictureText/PictureText.ui.json +1 -0
- package/src/components/Placeholder/Placeholder.ui.json +1 -0
- package/src/components/ProductBlock/ProductBlock.ui.json +12 -0
- package/src/components/ProductGallery/ProductGallery.ui.json +30 -0
- package/src/components/ProductTile/ProductTile.ui.json +1 -0
- package/src/components/PromoTile/PromoTile.ui.json +1 -0
- package/src/components/Recommendation/Recommendation.ui.json +11 -0
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +4 -4
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.ui.json +1 -0
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/src/components/SafeDepositRental/WrapperSelect.tsx +15 -20
- package/src/components/StepsBlock/StepsBlock.ui.json +11 -0
- package/src/components/Tabs/Tabs.tsx +25 -3
- package/src/components/Tabs/Tabs.ui.json +1 -0
- package/src/components/Tabs/TabsContent.ts +2 -0
- package/src/components/Tabs/renderLinkTab.tsx +28 -12
- package/src/components/Tabs/renderTab.tsx +13 -2
- package/src/components/TariffsTable/TariffsTable.ui.json +33 -0
- package/src/components/TextBlock/TextBlock.ui.json +1 -0
- package/src/components/Tile/Tile.ui.json +1 -0
- package/src/react/IntersectionObserverTag.tsx +10 -3
- package/src/ui-kit/BlockWrapper.tsx +45 -18
- package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +21 -36
- package/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +3 -7
- package/src/ui-kit/CurrencyInput/adjustValue .ts +17 -0
- package/src/ui-kit/Input/Input.tsx +37 -16
- package/src/ui-kit/Input/InputProps.ts +6 -3
- package/src/ui-kit/{SelectCustom/SelectCustom.fixture.tsx → Select/Select.fixture.tsx} +2 -2
- package/src/ui-kit/Select/Select.tsx +86 -20
- package/src/utils/changeHashOnObserve.ts +30 -10
- package/bin/migration-scripts/0.4.5.spec.ts +0 -352
- package/dist/components/ExchangeRateTile/renderButton.d.ts +0 -3
- package/dist/components/ExchangeRateTile/renderButton.js +0 -9
- package/dist/components/ExchangeRateTile/renderButton.js.map +0 -1
- package/dist/ui-kit/Select/SelectOption.d.ts +0 -7
- package/dist/ui-kit/Select/SelectOption.js +0 -8
- package/dist/ui-kit/Select/SelectOption.js.map +0 -1
- package/dist/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
- package/dist/ui-kit/SelectCustom/SelectCustom.js +0 -30
- package/dist/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
- package/lib/components/ExchangeRateTile/renderButton.d.ts +0 -3
- package/lib/components/ExchangeRateTile/renderButton.js +0 -6
- package/lib/components/ExchangeRateTile/renderButton.js.map +0 -1
- package/lib/ui-kit/Select/SelectOption.d.ts +0 -7
- package/lib/ui-kit/Select/SelectOption.js +0 -6
- package/lib/ui-kit/Select/SelectOption.js.map +0 -1
- package/lib/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
- package/lib/ui-kit/SelectCustom/SelectCustom.js +0 -28
- package/lib/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +0 -3
- package/mobile/dist/components/ExchangeRateTile/renderButton.js +0 -9
- package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +0 -1
- package/mobile/dist/ui-kit/Select/SelectOption.d.ts +0 -7
- package/mobile/dist/ui-kit/Select/SelectOption.js +0 -8
- package/mobile/dist/ui-kit/Select/SelectOption.js.map +0 -1
- package/mobile/dist/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
- package/mobile/dist/ui-kit/SelectCustom/SelectCustom.js +0 -30
- package/mobile/dist/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +0 -3
- package/mobile/lib/components/ExchangeRateTile/renderButton.js +0 -6
- package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +0 -1
- package/mobile/lib/ui-kit/Select/SelectOption.d.ts +0 -7
- package/mobile/lib/ui-kit/Select/SelectOption.js +0 -6
- package/mobile/lib/ui-kit/Select/SelectOption.js.map +0 -1
- package/mobile/lib/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
- package/mobile/lib/ui-kit/SelectCustom/SelectCustom.js +0 -28
- package/mobile/lib/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
- package/mobile/src/components/Blocks.spec.tsx +0 -66
- package/mobile/src/components/ContentPage/computeAPIFallback.spec.ts +0 -63
- package/mobile/src/components/ContentPage/normalizeBlock.spec.ts +0 -50
- package/mobile/src/components/ExchangeRateTile/renderButton.tsx +0 -10
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +0 -1206
- package/mobile/src/content-page-repository/mapJSON.spec.ts +0 -28
- package/mobile/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +0 -20
- package/mobile/src/services/sitemap/isTopItemActive.spec.ts +0 -60
- package/mobile/src/services/sitemap/mergeTopItems.spec.ts +0 -20
- package/mobile/src/ui-kit/Select/SelectOption.tsx +0 -18
- package/mobile/src/ui-kit/SelectCustom/SelectCustom.tsx +0 -91
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +0 -19
- package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +0 -42
- package/mobile/src/utils/adjustHref.spec.ts +0 -25
- package/mobile/src/utils/maxBy.spec.ts +0 -11
- package/mobile/src/utils/url.spec.ts +0 -17
- package/src/components/Blocks.spec.tsx +0 -66
- package/src/components/ContentPage/computeAPIFallback.spec.ts +0 -63
- package/src/components/ContentPage/normalizeBlock.mobile.spec.ts +0 -71
- package/src/components/ContentPage/normalizeBlock.spec.ts +0 -50
- package/src/components/ExchangeRateTile/renderButton.tsx +0 -10
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +0 -1206
- package/src/content-page-repository/mapJSON.spec.ts +0 -28
- package/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +0 -20
- package/src/services/sitemap/isTopItemActive.spec.ts +0 -60
- package/src/services/sitemap/mergeTopItems.spec.ts +0 -20
- package/src/ui-kit/Select/SelectOption.tsx +0 -18
- package/src/ui-kit/SelectCustom/SelectCustom.tsx +0 -91
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +0 -19
- package/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +0 -42
- package/src/utils/adjustHref.spec.ts +0 -25
- package/src/utils/maxBy.spec.ts +0 -11
- package/src/utils/url.spec.ts +0 -17
|
@@ -1,15 +1,46 @@
|
|
|
1
|
+
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
1
2
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
|
-
* @title
|
|
7
|
+
* @title Изображение
|
|
5
8
|
*/
|
|
6
|
-
export type
|
|
9
|
+
export type BonusImageDef = {
|
|
10
|
+
/** @default image */
|
|
11
|
+
bonusType?: 'image';
|
|
12
|
+
image?: Picture;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @title Баллы
|
|
17
|
+
*/
|
|
18
|
+
export type BonusCountDef = {
|
|
19
|
+
/** @default count */
|
|
20
|
+
bonusType?: 'count';
|
|
7
21
|
/** @title Количество баллов */
|
|
8
22
|
bonusCount?: string;
|
|
9
23
|
/** @title Наименование */
|
|
10
24
|
bonusName?: string;
|
|
11
25
|
};
|
|
12
26
|
|
|
27
|
+
/**
|
|
28
|
+
* @title Вид контента
|
|
29
|
+
*/
|
|
30
|
+
export type BonusItemContentDef = EmptyOption | BonusImageDef | BonusCountDef;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @title Плитка
|
|
34
|
+
*/
|
|
35
|
+
export type BonusItem = HeadlineCommonProps & {
|
|
36
|
+
bonusItemContent?: BonusItemContentDef;
|
|
37
|
+
/**
|
|
38
|
+
* @title Кнопка
|
|
39
|
+
* @maxItems 1
|
|
40
|
+
*/
|
|
41
|
+
buttons?: ButtonWithIconProps[];
|
|
42
|
+
};
|
|
43
|
+
|
|
13
44
|
/**
|
|
14
45
|
* @title Блок Бонусы
|
|
15
46
|
*/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"content": {
|
|
3
|
+
"calculatorTabs": {
|
|
4
|
+
"items": {
|
|
5
|
+
"nav": {
|
|
6
|
+
"icon": {
|
|
7
|
+
"ui:field": "icon"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"calculatorBlock": {
|
|
11
|
+
"sourceBookDir": {
|
|
12
|
+
"ui:widget": "sourceBook"
|
|
13
|
+
},
|
|
14
|
+
"calcType": {
|
|
15
|
+
"ui:widget": "hidden"
|
|
16
|
+
},
|
|
17
|
+
"buttons": {
|
|
18
|
+
"items": {
|
|
19
|
+
"icon": {
|
|
20
|
+
"ui:field": "icon"
|
|
21
|
+
},
|
|
22
|
+
"iconRight": {
|
|
23
|
+
"ui:field": "icon"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
4
|
+
import type { CardTransferContent } from './CardTransferContent';
|
|
4
5
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
5
|
-
import type { GetButtonClassParams } from '../../ui-kit/Button/GetButtonClassParams';
|
|
6
|
-
import { getDisabledButtonClasses } from '../../ui-kit/Button/getDisabledButtonClasses';
|
|
7
|
-
import { getRegularButtonClasses } from '../../ui-kit/Button/getRegularButtonClasses';
|
|
8
6
|
import { CurrencyInput } from '../../ui-kit/CurrencyInput/CurrencyInput';
|
|
9
7
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
10
|
-
import
|
|
8
|
+
import { getDisabledButtonClasses } from '../../ui-kit/Button/getDisabledButtonClasses';
|
|
9
|
+
import { getRegularButtonClasses } from '../../ui-kit/Button/getRegularButtonClasses';
|
|
10
|
+
import { useLink } from '../../hooks/useLink';
|
|
11
11
|
|
|
12
12
|
const AMOUNT_KEY = 'amount';
|
|
13
13
|
const FORM_URL = 'https://www.rshb.ru/p2p/';
|
|
14
|
-
|
|
15
14
|
const DEFAULT_TITLE = 'Укажите сумму перевода';
|
|
16
15
|
const DEFAULT_LABEL = 'Сумма перевода';
|
|
17
16
|
const DEFAULT_PLACEHOLDER = '1500';
|
|
18
|
-
const DEFAULT_BUTTON_TEXT = 'Далее';
|
|
19
|
-
|
|
20
|
-
const BUTTON_CLASS_PARAMS: GetButtonClassParams = {
|
|
21
|
-
version: 'primary',
|
|
22
|
-
className: 'w-full h-[56px] px-9 mt-6',
|
|
23
|
-
};
|
|
24
17
|
|
|
25
18
|
export interface CardTransferProps extends CardTransferContent, UniBlockProps {}
|
|
26
19
|
|
|
@@ -30,15 +23,22 @@ export const CardTransfer = JSX<CardTransferProps>(
|
|
|
30
23
|
title = DEFAULT_TITLE,
|
|
31
24
|
label = DEFAULT_LABEL,
|
|
32
25
|
placeholder = DEFAULT_PLACEHOLDER,
|
|
33
|
-
|
|
26
|
+
button,
|
|
27
|
+
context,
|
|
34
28
|
...rest
|
|
35
29
|
}) => {
|
|
30
|
+
const router = context.useRouter();
|
|
31
|
+
const { handlerDecorator } = context;
|
|
36
32
|
const [value, setValue] = useState<string>('');
|
|
37
33
|
const isDisabled = !Number(value);
|
|
34
|
+
const buttonStyle = isDisabled
|
|
35
|
+
? getDisabledButtonClasses({ version: button?.version })
|
|
36
|
+
: getRegularButtonClasses({ className: 'text-white', version: button?.version });
|
|
38
37
|
|
|
39
38
|
return (
|
|
40
39
|
<BlockWrapper
|
|
41
40
|
className={`p-[50px] flex flex-col items-center font-sans bg-white ${className}`}
|
|
41
|
+
context={context}
|
|
42
42
|
{...rest}
|
|
43
43
|
>
|
|
44
44
|
{title ? <Heading className="max-w-[684px] pb-9" headingType="h2" title={title} /> : null}
|
|
@@ -50,17 +50,16 @@ export const CardTransfer = JSX<CardTransferProps>(
|
|
|
50
50
|
placeholder={placeholder}
|
|
51
51
|
label={label}
|
|
52
52
|
/>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</button>
|
|
53
|
+
{button?.text ? (
|
|
54
|
+
<button
|
|
55
|
+
type="submit"
|
|
56
|
+
className={`w-full p-4 mt-6 ${buttonStyle} `}
|
|
57
|
+
disabled={isDisabled}
|
|
58
|
+
{...useLink({ router, handlerDecorator }, button)}
|
|
59
|
+
>
|
|
60
|
+
{button.text}
|
|
61
|
+
</button>
|
|
62
|
+
) : null}
|
|
64
63
|
</form>
|
|
65
64
|
</BlockWrapper>
|
|
66
65
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { LabelProps, TitleProps } from '../../model/HeadlineType';
|
|
2
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @title Перевод с карты на карту
|
|
@@ -7,6 +8,5 @@ export type CardTransferContent = LabelProps &
|
|
|
7
8
|
TitleProps & {
|
|
8
9
|
/** @title Плейсхолдер */
|
|
9
10
|
placeholder?: string;
|
|
10
|
-
|
|
11
|
-
buttonText?: string;
|
|
11
|
+
button?: ButtonProps;
|
|
12
12
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -48,23 +48,29 @@ export const TableColumn = JSX<TableColumnProps>(
|
|
|
48
48
|
))
|
|
49
49
|
: null}
|
|
50
50
|
|
|
51
|
-
{showRow
|
|
51
|
+
{showRow ? renderButton({ header, buttonVersion }) : null}
|
|
52
52
|
{renderToggleButton({ onToggleColumn, isFillGradient, showRow })}
|
|
53
53
|
</div>
|
|
54
54
|
);
|
|
55
55
|
},
|
|
56
56
|
);
|
|
57
57
|
|
|
58
|
-
const renderButton = ({ header, buttonVersion }) =>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
const renderButton = ({ header, buttonVersion }) => {
|
|
59
|
+
if (!header.link) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<Button
|
|
65
|
+
href={header.link.href}
|
|
66
|
+
target={header.link.target}
|
|
67
|
+
version={buttonVersion}
|
|
68
|
+
className="text-s font-medium mt-4 py-[11px]"
|
|
69
|
+
>
|
|
70
|
+
{header.link.text}
|
|
71
|
+
</Button>
|
|
72
|
+
);
|
|
73
|
+
};
|
|
68
74
|
|
|
69
75
|
const renderToggleButton = ({ onToggleColumn, isFillGradient, showRow }) => (
|
|
70
76
|
<div className="mt-5" role="cell">
|
|
@@ -57,6 +57,18 @@
|
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
+
{
|
|
61
|
+
"type": "Tabs",
|
|
62
|
+
"style": ["col-span-12"],
|
|
63
|
+
"content": {
|
|
64
|
+
"isSticky": true,
|
|
65
|
+
"tabs": [
|
|
66
|
+
{ "type": "link", "href": "#placeholder", "text": "В разработке" },
|
|
67
|
+
{ "type": "link", "href": "#products", "text": "Продукты" },
|
|
68
|
+
{ "type": "link", "href": "#gallery", "text": "Галерея" }
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
60
72
|
{
|
|
61
73
|
"type": "ProductGallery",
|
|
62
74
|
"style": ["col-span-12"],
|
|
@@ -477,6 +489,7 @@
|
|
|
477
489
|
{
|
|
478
490
|
"type": "Placeholder",
|
|
479
491
|
"style": ["col-span-12"],
|
|
492
|
+
"anchor": "placeholder",
|
|
480
493
|
"content": {
|
|
481
494
|
"title": "Какой то новый блок"
|
|
482
495
|
}
|
|
@@ -557,6 +570,7 @@
|
|
|
557
570
|
{
|
|
558
571
|
"type": "ProductTile",
|
|
559
572
|
"style": ["col-span-6"],
|
|
573
|
+
"anchor": "products",
|
|
560
574
|
"content": {
|
|
561
575
|
"title": "Акция! “Кредит На все, что хочется!”",
|
|
562
576
|
"description": "Потребительский кредит на любые цели, без залога и поручительства",
|
|
@@ -882,6 +896,7 @@
|
|
|
882
896
|
{
|
|
883
897
|
"type": "MiniGallery",
|
|
884
898
|
"style": ["col-span-12"],
|
|
899
|
+
"anchor": "gallery",
|
|
885
900
|
"content": {
|
|
886
901
|
"title": "Вы можете оплатить бонусными баллами",
|
|
887
902
|
"description": "Удобный каталог с большим ассортиментом товаров и сервисов",
|
|
@@ -1421,7 +1436,6 @@
|
|
|
1421
1436
|
{
|
|
1422
1437
|
"type": "LinkDocs",
|
|
1423
1438
|
"style": ["col-span-12"],
|
|
1424
|
-
"anchor": "documents",
|
|
1425
1439
|
"content": {
|
|
1426
1440
|
"title": "Дополнительные документы",
|
|
1427
1441
|
"description": "Ответы на часто задаваемые вопросы",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useLink } from '../../hooks/useLink';
|
|
4
|
-
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
5
4
|
import { Button } from '../../ui-kit/Button/Button';
|
|
6
|
-
import {
|
|
5
|
+
import { renderInput } from './renderInput';
|
|
7
6
|
import { calculateResult, formatValue } from './calculateResult';
|
|
8
7
|
import { callbackCurrencySelect } from './callbackCurrencySelect';
|
|
9
8
|
import { Currency } from './CurrencyProps';
|
|
10
|
-
import {
|
|
9
|
+
import type { UniBlockProps } from '../../model/ContentPageDef';
|
|
10
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
11
|
+
|
|
11
12
|
export interface ExchangeCurrencyItem {
|
|
12
13
|
code?: Currency;
|
|
13
14
|
buy?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Input } from '../../ui-kit/Input/Input';
|
|
2
|
-
import {
|
|
3
|
-
import type { OptionProps } from '../../ui-kit/
|
|
2
|
+
import { Select } from '../../ui-kit/Select/Select';
|
|
3
|
+
import type { OptionProps } from '../../ui-kit/Select/Select';
|
|
4
4
|
import type { Currency } from './CurrencyProps';
|
|
5
5
|
import type { ExchangeCurrencyItem } from './ExchangeCurrencyCalculator';
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ export function renderInput(props: InputProps) {
|
|
|
28
28
|
onChange={setValue}
|
|
29
29
|
/>
|
|
30
30
|
{ratesOptions.length ? (
|
|
31
|
-
<
|
|
31
|
+
<Select
|
|
32
32
|
isBorder={false}
|
|
33
33
|
onChange={(_) => setSelected(_.key as Currency)}
|
|
34
34
|
options={ratesOptions}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -47,7 +47,7 @@ const renderCalendar = (calendar) => {
|
|
|
47
47
|
}));
|
|
48
48
|
|
|
49
49
|
return (
|
|
50
|
-
<div className="w-full flex flex-col justify-center mt-
|
|
50
|
+
<div className="w-full flex flex-col justify-center mt-13">
|
|
51
51
|
<div className="flex w-full mb-3 text-h6 text-center">
|
|
52
52
|
{mappedCalendar.map((_) => renderMonthNames(_, colSize))}
|
|
53
53
|
</div>
|
|
@@ -71,13 +71,14 @@ const renderCalendar = (calendar) => {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
const renderMonthNames = (item, colSize) =>
|
|
74
|
-
item.month
|
|
74
|
+
item.month?.map((_, i) => (
|
|
75
75
|
<div key={`monthName-${i}`} style={{ flexBasis: `${colSize}%` }}>
|
|
76
|
-
{_.
|
|
76
|
+
{_.name}
|
|
77
77
|
</div>
|
|
78
78
|
));
|
|
79
|
+
|
|
79
80
|
const renderMonthImages = (item) =>
|
|
80
|
-
item.month
|
|
81
|
+
item.month?.map((_) =>
|
|
81
82
|
_.image?.src ? (
|
|
82
83
|
<div
|
|
83
84
|
key={`monthImage-${_.image.src}`}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"content": {
|
|
3
|
+
"blockItems": {
|
|
4
|
+
"items": {
|
|
5
|
+
"blocks": {
|
|
6
|
+
"items": {
|
|
7
|
+
"blockListType": {
|
|
8
|
+
"ui:widget": "hidden"
|
|
9
|
+
},
|
|
10
|
+
"image": {
|
|
11
|
+
"ui:field": "picture"
|
|
12
|
+
},
|
|
13
|
+
"benefitList": {
|
|
14
|
+
"items": {
|
|
15
|
+
"description": {
|
|
16
|
+
"benefitType": {
|
|
17
|
+
"ui:widget": "hidden"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"icon": {
|
|
21
|
+
"ui:field": "icon"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"style": {
|
|
26
|
+
"ui:field": "style"
|
|
27
|
+
},
|
|
28
|
+
"benefits": {
|
|
29
|
+
"items": {
|
|
30
|
+
"icon": {
|
|
31
|
+
"ui:field": "icon"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"buttons": {
|
|
36
|
+
"items": {
|
|
37
|
+
"icon": {
|
|
38
|
+
"ui:field": "icon"
|
|
39
|
+
},
|
|
40
|
+
"iconRight": {
|
|
41
|
+
"ui:field": "icon"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"icon": {
|
|
46
|
+
"ui:field": "icon"
|
|
47
|
+
},
|
|
48
|
+
"backwardButton": {
|
|
49
|
+
"icon": {
|
|
50
|
+
"ui:field": "icon"
|
|
51
|
+
},
|
|
52
|
+
"iconRight": {
|
|
53
|
+
"ui:field": "icon"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"cards": {
|
|
57
|
+
"items": {
|
|
58
|
+
"image": {
|
|
59
|
+
"ui:field": "picture"
|
|
60
|
+
},
|
|
61
|
+
"button": {
|
|
62
|
+
"icon": {
|
|
63
|
+
"ui:field": "icon"
|
|
64
|
+
},
|
|
65
|
+
"iconRight": {
|
|
66
|
+
"ui:field": "icon"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"content": {
|
|
3
|
+
"slides": {
|
|
4
|
+
"items": {
|
|
5
|
+
"productBlock": {
|
|
6
|
+
"image": {
|
|
7
|
+
"ui:field": "picture"
|
|
8
|
+
},
|
|
9
|
+
"benefits": {
|
|
10
|
+
"items": {
|
|
11
|
+
"icon": {
|
|
12
|
+
"ui:field": "icon"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"buttons": {
|
|
17
|
+
"items": {
|
|
18
|
+
"icon": {
|
|
19
|
+
"ui:field": "icon"
|
|
20
|
+
},
|
|
21
|
+
"iconRight": {
|
|
22
|
+
"ui:field": "icon"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|