@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,31 +1,97 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Icon } from '../Icon/Icon';
|
|
3
|
+
import { useState, useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
|
|
5
|
+
export interface OptionProps {
|
|
6
|
+
key: string;
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
2
9
|
|
|
3
10
|
export interface SelectProps {
|
|
4
11
|
className?: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
value:
|
|
8
|
-
|
|
12
|
+
label?: string;
|
|
13
|
+
value?: OptionProps;
|
|
14
|
+
onChange: (value: OptionProps) => void;
|
|
15
|
+
options: OptionProps[];
|
|
16
|
+
isBorder?: boolean;
|
|
17
|
+
placeholder?: string;
|
|
9
18
|
}
|
|
10
19
|
|
|
11
|
-
const selectStyle = {
|
|
12
|
-
background: `url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat`,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
20
|
export const Select = JSX<SelectProps>(
|
|
16
|
-
({ className = '',
|
|
21
|
+
({ className = '', isBorder = true, label, options = [], value, onChange, placeholder = '' }) => {
|
|
22
|
+
const [selectedItem, setSelectedItem] = useState(options[0] || { key: '', text: '' });
|
|
23
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
24
|
+
|
|
25
|
+
const choiceOption = (option: OptionProps) => {
|
|
26
|
+
setSelectedItem(option);
|
|
27
|
+
setIsOpen(false);
|
|
28
|
+
onChange(option);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const isSelected = (option) => Boolean(option.key === selectedItem.key);
|
|
32
|
+
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
setSelectedItem(value || { key: '', text: '' });
|
|
35
|
+
}, [value]);
|
|
36
|
+
|
|
17
37
|
return (
|
|
18
|
-
<
|
|
19
|
-
className=
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
38
|
+
<div className={`${className}`}>
|
|
39
|
+
{label ? <span className="mb-2 flex">{label}</span> : null}
|
|
40
|
+
<div className={`relative ${isOpen ? 'z-20' : 'z-10'}`}>
|
|
41
|
+
<div
|
|
42
|
+
className={`text-m-light flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
|
|
43
|
+
${getBorderStyle(isBorder)}`}
|
|
44
|
+
onClick={() => setIsOpen(!isOpen)}
|
|
45
|
+
>
|
|
46
|
+
<p className="p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap">
|
|
47
|
+
{selectedItem?.text || placeholder}
|
|
48
|
+
</p>
|
|
49
|
+
<Icon
|
|
50
|
+
name="ArrowUpIcon"
|
|
51
|
+
width="16"
|
|
52
|
+
height="16"
|
|
53
|
+
className={`absolute right-3 ${isOpen ? '' : 'rotate-180'}`}
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
{options?.length ? (
|
|
57
|
+
<div className={`h-0 ${renderOptionsStyle(isOpen)}`}>
|
|
58
|
+
<div
|
|
59
|
+
className={`bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]`}
|
|
60
|
+
>
|
|
61
|
+
{options.map(renderOption(choiceOption, isOpen, isSelected))}
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
) : null}
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
29
67
|
);
|
|
30
68
|
},
|
|
31
69
|
);
|
|
70
|
+
|
|
71
|
+
const renderOptionsStyle = (isOpen) => (isOpen ? '' : 'overflow-hidden');
|
|
72
|
+
|
|
73
|
+
const renderOption =
|
|
74
|
+
(choiceOption, isOpen: boolean, isSelected) => (option: OptionProps, i: number) => {
|
|
75
|
+
return (
|
|
76
|
+
<div
|
|
77
|
+
key={String(i)}
|
|
78
|
+
onClick={() => {
|
|
79
|
+
choiceOption(option);
|
|
80
|
+
}}
|
|
81
|
+
className="flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative"
|
|
82
|
+
>
|
|
83
|
+
<span className="min-h-6">{option.text}</span>
|
|
84
|
+
<Icon
|
|
85
|
+
name="DoneSimpleIcon"
|
|
86
|
+
width="16"
|
|
87
|
+
height="16"
|
|
88
|
+
className={['absolute right-4 pt-0.5', isSelected(option) && isOpen ? '' : 'hidden'].join(
|
|
89
|
+
' ',
|
|
90
|
+
)}
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const getBorderStyle = (isBorder) =>
|
|
97
|
+
isBorder ? 'border border-main-stroke rounded-md hover:border-primary-hover' : '';
|
|
@@ -1,10 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { AnchorClickScrollingEvent } from '../components/Tabs/Tabs';
|
|
2
|
+
import { EventBus } from '../EventBus/EventBus';
|
|
3
|
+
|
|
4
|
+
interface ChangeHashOnObserveProps {
|
|
5
|
+
anchor?: string;
|
|
6
|
+
anchorClickRef?: {
|
|
7
|
+
current: AnchorClickScrollingEvent | null;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const changeHashOnObserve =
|
|
12
|
+
({ anchor, anchorClickRef }: ChangeHashOnObserveProps) =>
|
|
13
|
+
(entries: IntersectionObserverEntry[]) => {
|
|
14
|
+
if (!entries?.length) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const [entry] = entries;
|
|
19
|
+
|
|
20
|
+
if (!entry.isIntersecting || entry.boundingClientRect.top > 150) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (anchorClickRef?.current?.isScrolling && anchorClickRef.current.label === `#${anchor}`) {
|
|
25
|
+
EventBus.inst.fire('anchorClick', { isScrolling: false, label: undefined });
|
|
26
|
+
EventBus.inst.fire('tab', { type: 'link', label: anchor });
|
|
27
|
+
} else if (!anchorClickRef?.current?.isScrolling) {
|
|
28
|
+
EventBus.inst.fire('tab', { type: 'link', label: anchor });
|
|
29
|
+
}
|
|
30
|
+
};
|
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import { migrate } from './0.4.5.js';
|
|
2
|
-
|
|
3
|
-
const content = {
|
|
4
|
-
blocks: [
|
|
5
|
-
{
|
|
6
|
-
content: {
|
|
7
|
-
navigatorTabs: [
|
|
8
|
-
{
|
|
9
|
-
text: 'Как оформить',
|
|
10
|
-
href: '#howto',
|
|
11
|
-
target: '_blank',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
text: 'Частые вопросы',
|
|
15
|
-
href: '#faq',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
text: 'Тарифы',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
style: ['col-span-12'],
|
|
23
|
-
type: 'NavigatorTabs',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
content: {
|
|
27
|
-
groupBlocks: [
|
|
28
|
-
{
|
|
29
|
-
blockType: 'ProductBlock',
|
|
30
|
-
style: ['col-span-12'],
|
|
31
|
-
title: 'Кредитная карта для покупок в рассрочку',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
tabs: [
|
|
35
|
-
{
|
|
36
|
-
title: 'Кобрендинговые',
|
|
37
|
-
index: 1,
|
|
38
|
-
tag: 'tag1',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
title: 'Социальные',
|
|
42
|
-
index: 2,
|
|
43
|
-
tag: 'tag2',
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
isShowCounter: true,
|
|
47
|
-
blocks: [
|
|
48
|
-
{
|
|
49
|
-
blockType: 'ProductTile',
|
|
50
|
-
title: 'Продуктовая плитка',
|
|
51
|
-
tags: ['tag1'],
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
style: ['col-span-12'],
|
|
56
|
-
type: 'GroupBlock',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
content: {
|
|
60
|
-
columns: [
|
|
61
|
-
{
|
|
62
|
-
data: [
|
|
63
|
-
[
|
|
64
|
-
{
|
|
65
|
-
list: {
|
|
66
|
-
items: [],
|
|
67
|
-
},
|
|
68
|
-
image: {
|
|
69
|
-
size: {},
|
|
70
|
-
},
|
|
71
|
-
buttons: [],
|
|
72
|
-
label: 'Да',
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
[
|
|
76
|
-
{
|
|
77
|
-
list: {
|
|
78
|
-
items: [],
|
|
79
|
-
},
|
|
80
|
-
image: {
|
|
81
|
-
size: {},
|
|
82
|
-
},
|
|
83
|
-
label: '₽',
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
[
|
|
87
|
-
{
|
|
88
|
-
list: {},
|
|
89
|
-
image: {
|
|
90
|
-
size: {},
|
|
91
|
-
},
|
|
92
|
-
label:
|
|
93
|
-
'100 тыс ₽ — 10 млн ₽ (не более 50% от рыночной стоимости объекта недвижимости, передаваемого в залог).',
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
[
|
|
97
|
-
{
|
|
98
|
-
list: {},
|
|
99
|
-
image: {
|
|
100
|
-
size: {},
|
|
101
|
-
},
|
|
102
|
-
label: 'До 10 лет',
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
[
|
|
106
|
-
{
|
|
107
|
-
list: {
|
|
108
|
-
items: [
|
|
109
|
-
'Наличие записей в похозяйственной книге органа местного самоуправления о ведении гражданином личного подсобного',
|
|
110
|
-
],
|
|
111
|
-
},
|
|
112
|
-
image: {
|
|
113
|
-
size: {},
|
|
114
|
-
},
|
|
115
|
-
buttons: [
|
|
116
|
-
{
|
|
117
|
-
version: 'primary',
|
|
118
|
-
icon: {
|
|
119
|
-
size: {},
|
|
120
|
-
},
|
|
121
|
-
text: 'Скрыть',
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
label: 'Для граждан, ведущих личное хозяйство',
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
],
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
rowHeaders: [
|
|
131
|
-
{
|
|
132
|
-
icon: {
|
|
133
|
-
size: {},
|
|
134
|
-
sources: [],
|
|
135
|
-
icon: 'PercentageRoundIcon',
|
|
136
|
-
},
|
|
137
|
-
title: 'Кредит на любые цели',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
icon: {
|
|
141
|
-
size: {},
|
|
142
|
-
icon: 'MoneyIcon',
|
|
143
|
-
},
|
|
144
|
-
title: 'Валюта кредита',
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
icon: {
|
|
148
|
-
size: {},
|
|
149
|
-
icon: 'WalletIcon',
|
|
150
|
-
},
|
|
151
|
-
title: 'Сумма кредита',
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
icon: {
|
|
155
|
-
size: {},
|
|
156
|
-
icon: 'SmallClockIcon',
|
|
157
|
-
},
|
|
158
|
-
title: 'Срок кредита',
|
|
159
|
-
},
|
|
160
|
-
],
|
|
161
|
-
title: 'Тарифы',
|
|
162
|
-
orientation: 'vertical',
|
|
163
|
-
},
|
|
164
|
-
style: ['col-span-12'],
|
|
165
|
-
type: 'TariffsTable',
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
describe('migrate_0_4_5', () => {
|
|
171
|
-
it(`should migrate json to 0.4.5 uni block`, () => {
|
|
172
|
-
expect(migrate('foo.json', { content })).toMatchInlineSnapshot(`
|
|
173
|
-
Object {
|
|
174
|
-
"content": Object {
|
|
175
|
-
"blocks": Array [
|
|
176
|
-
Object {
|
|
177
|
-
"content": Object {
|
|
178
|
-
"navigatorTabs": Array [
|
|
179
|
-
Object {
|
|
180
|
-
"href": "#howto",
|
|
181
|
-
"target": "_blank",
|
|
182
|
-
"text": "Как оформить",
|
|
183
|
-
},
|
|
184
|
-
Object {
|
|
185
|
-
"href": "#faq",
|
|
186
|
-
"text": "Частые вопросы",
|
|
187
|
-
},
|
|
188
|
-
Object {
|
|
189
|
-
"text": "Тарифы",
|
|
190
|
-
},
|
|
191
|
-
],
|
|
192
|
-
},
|
|
193
|
-
"style": Array [
|
|
194
|
-
"col-span-12",
|
|
195
|
-
],
|
|
196
|
-
"type": "NavigatorTabs",
|
|
197
|
-
},
|
|
198
|
-
Object {
|
|
199
|
-
"content": Object {
|
|
200
|
-
"blocks": Array [
|
|
201
|
-
Object {
|
|
202
|
-
"blockType": "ProductTile",
|
|
203
|
-
"tags": Array [
|
|
204
|
-
"tag1",
|
|
205
|
-
],
|
|
206
|
-
"title": "Продуктовая плитка",
|
|
207
|
-
},
|
|
208
|
-
],
|
|
209
|
-
"groupBlocks": Array [
|
|
210
|
-
Object {
|
|
211
|
-
"blockType": "ProductBlock",
|
|
212
|
-
"style": Array [
|
|
213
|
-
"col-span-12",
|
|
214
|
-
],
|
|
215
|
-
"title": "Кредитная карта для покупок в рассрочку",
|
|
216
|
-
},
|
|
217
|
-
],
|
|
218
|
-
"isShowCounter": true,
|
|
219
|
-
"tabs": Array [
|
|
220
|
-
Object {
|
|
221
|
-
"index": 1,
|
|
222
|
-
"tag": "tag1",
|
|
223
|
-
"title": "Кобрендинговые",
|
|
224
|
-
},
|
|
225
|
-
Object {
|
|
226
|
-
"index": 2,
|
|
227
|
-
"tag": "tag2",
|
|
228
|
-
"title": "Социальные",
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
},
|
|
232
|
-
"style": Array [
|
|
233
|
-
"col-span-12",
|
|
234
|
-
],
|
|
235
|
-
"type": "GroupBlock",
|
|
236
|
-
},
|
|
237
|
-
Object {
|
|
238
|
-
"content": Object {
|
|
239
|
-
"columns": Array [
|
|
240
|
-
Object {
|
|
241
|
-
"data": Array [
|
|
242
|
-
Array [
|
|
243
|
-
Object {
|
|
244
|
-
"buttons": Array [],
|
|
245
|
-
"image": Object {
|
|
246
|
-
"size": Object {},
|
|
247
|
-
},
|
|
248
|
-
"label": "Да",
|
|
249
|
-
"list": Object {
|
|
250
|
-
"items": Array [],
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
],
|
|
254
|
-
Array [
|
|
255
|
-
Object {
|
|
256
|
-
"image": Object {
|
|
257
|
-
"size": Object {},
|
|
258
|
-
},
|
|
259
|
-
"label": "₽",
|
|
260
|
-
"list": Object {
|
|
261
|
-
"items": Array [],
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
],
|
|
265
|
-
Array [
|
|
266
|
-
Object {
|
|
267
|
-
"image": Object {
|
|
268
|
-
"size": Object {},
|
|
269
|
-
},
|
|
270
|
-
"label": "100 тыс ₽ — 10 млн ₽ (не более 50% от рыночной стоимости объекта недвижимости, передаваемого в залог).",
|
|
271
|
-
"list": Object {},
|
|
272
|
-
},
|
|
273
|
-
],
|
|
274
|
-
Array [
|
|
275
|
-
Object {
|
|
276
|
-
"image": Object {
|
|
277
|
-
"size": Object {},
|
|
278
|
-
},
|
|
279
|
-
"label": "До 10 лет",
|
|
280
|
-
"list": Object {},
|
|
281
|
-
},
|
|
282
|
-
],
|
|
283
|
-
Array [
|
|
284
|
-
Object {
|
|
285
|
-
"buttons": Array [
|
|
286
|
-
Object {
|
|
287
|
-
"icon": Object {
|
|
288
|
-
"size": Object {},
|
|
289
|
-
},
|
|
290
|
-
"text": "Скрыть",
|
|
291
|
-
"version": "primary",
|
|
292
|
-
},
|
|
293
|
-
],
|
|
294
|
-
"image": Object {
|
|
295
|
-
"size": Object {},
|
|
296
|
-
},
|
|
297
|
-
"label": "Для граждан, ведущих личное хозяйство",
|
|
298
|
-
"list": Object {
|
|
299
|
-
"items": Array [
|
|
300
|
-
"Наличие записей в похозяйственной книге органа местного самоуправления о ведении гражданином личного подсобного",
|
|
301
|
-
],
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
],
|
|
306
|
-
},
|
|
307
|
-
],
|
|
308
|
-
"orientation": "vertical",
|
|
309
|
-
"rowHeaders": Array [
|
|
310
|
-
Object {
|
|
311
|
-
"icon": Object {
|
|
312
|
-
"icon": "PercentageRoundIcon",
|
|
313
|
-
"size": Object {},
|
|
314
|
-
"sources": Array [],
|
|
315
|
-
},
|
|
316
|
-
"title": "Кредит на любые цели",
|
|
317
|
-
},
|
|
318
|
-
Object {
|
|
319
|
-
"icon": Object {
|
|
320
|
-
"icon": "MoneyIcon",
|
|
321
|
-
"size": Object {},
|
|
322
|
-
},
|
|
323
|
-
"title": "Валюта кредита",
|
|
324
|
-
},
|
|
325
|
-
Object {
|
|
326
|
-
"icon": Object {
|
|
327
|
-
"icon": "WalletIcon",
|
|
328
|
-
"size": Object {},
|
|
329
|
-
},
|
|
330
|
-
"title": "Сумма кредита",
|
|
331
|
-
},
|
|
332
|
-
Object {
|
|
333
|
-
"icon": Object {
|
|
334
|
-
"icon": "SmallClockIcon",
|
|
335
|
-
"size": Object {},
|
|
336
|
-
},
|
|
337
|
-
"title": "Срок кредита",
|
|
338
|
-
},
|
|
339
|
-
],
|
|
340
|
-
"title": "Тарифы",
|
|
341
|
-
},
|
|
342
|
-
"style": Array [
|
|
343
|
-
"col-span-12",
|
|
344
|
-
],
|
|
345
|
-
"type": "TariffsTable",
|
|
346
|
-
},
|
|
347
|
-
],
|
|
348
|
-
},
|
|
349
|
-
}
|
|
350
|
-
`);
|
|
351
|
-
});
|
|
352
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderButton = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const Button_1 = require("../../ui-kit/Button/Button");
|
|
5
|
-
function renderButton(button) {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "py-4 mr-1", version: button?.version, href: button?.href, target: "_blank", children: button?.text }));
|
|
7
|
-
}
|
|
8
|
-
exports.renderButton = renderButton;
|
|
9
|
-
//# sourceMappingURL=renderButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderButton.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/renderButton.tsx"],"names":[],"mappings":";;;AAAA,uDAAoD;AAGpD,SAAgB,YAAY,CAAC,MAAmB;IAC9C,OAAO,CACL,uBAAC,eAAM,IAAC,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAC,QAAQ,YACxF,MAAM,EAAE,IAAI,GACN,CACV,CAAC;AACJ,CAAC;AAND,oCAMC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SelectOption = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
exports.SelectOption = (0, uni_jsx_1.JSX)(({ className = '', value, selected, disabled = false, children }) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsx)("option", { className: className, value: `${value}`, selected: selected, disabled: disabled, children: children }));
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=SelectOption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectOption.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/SelectOption.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClE,OAAO,CACL,mCAAQ,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,YACpF,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface OptionProps {
|
|
2
|
-
key: string;
|
|
3
|
-
text: string;
|
|
4
|
-
}
|
|
5
|
-
export interface SelectCustomProps {
|
|
6
|
-
className?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
value?: OptionProps;
|
|
9
|
-
onChange: (value: OptionProps) => void;
|
|
10
|
-
options: OptionProps[];
|
|
11
|
-
isBorder?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const SelectCustom: import("@redneckz/uni-jsx").UNIComponent<SelectCustomProps, any, any>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.SelectCustom = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Icon_1 = require("../Icon/Icon");
|
|
6
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
7
|
-
exports.SelectCustom = (0, uni_jsx_1.JSX)(({ className = '', isBorder = true, label, options = [], value, onChange }) => {
|
|
8
|
-
const [selectedItem, setSelectedItem] = (0, hooks_1.useState)(options[0] || { key: '', text: '' });
|
|
9
|
-
const [isOpen, setIsOpen] = (0, hooks_1.useState)(false);
|
|
10
|
-
const choiceOption = (option) => {
|
|
11
|
-
setSelectedItem(option);
|
|
12
|
-
setIsOpen(false);
|
|
13
|
-
onChange(option);
|
|
14
|
-
};
|
|
15
|
-
const isSelected = (option) => Boolean(option.key === selectedItem.key);
|
|
16
|
-
(0, hooks_1.useEffect)(() => {
|
|
17
|
-
setSelectedItem(value || { key: '', text: '' });
|
|
18
|
-
}, [value]);
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `${isOpen ? 'z-10' : ''} ${className}`, children: [label ? (0, jsx_runtime_1.jsx)("span", { className: "mb-2", children: label }) : null, (0, jsx_runtime_1.jsxs)("div", { className: `relative w-fit`, children: [(0, jsx_runtime_1.jsxs)("div", { className: `text-m-light flex justify-between items-center min-h-[56px] mb-0.5 p-4 pr-8 text-primary-text cursor-pointer
|
|
20
|
-
${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [selectedItem.text, (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options.length > 0 ? ((0, jsx_runtime_1.jsx)("div", { className: `h-0 ${isOpen ? '' : 'overflow-hidden'}`, children: (0, jsx_runtime_1.jsx)("div", { className: `bg-white text-l rounded-md`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
|
|
21
|
-
});
|
|
22
|
-
const renderOption = (choiceOption, isOpen, isSelected) => (option, i) => {
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)("div", { onClick: () => {
|
|
24
|
-
choiceOption(option);
|
|
25
|
-
}, className: "flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11", children: [(0, jsx_runtime_1.jsx)("span", { children: option.text }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: ['absolute right-4 pt-0.5', isSelected(option) && isOpen ? '' : 'hidden'].join(' ') })] }, String(i)));
|
|
26
|
-
};
|
|
27
|
-
function getBorderStyle(isBorder) {
|
|
28
|
-
return isBorder ? 'border border-main-stroke rounded-md hover:border-primary-hover' : '';
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=SelectCustom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectCustom.js","sourceRoot":"","sources":["../../../src/ui-kit/SelectCustom/SelectCustom.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uCAAoC;AACpC,uDAAkE;AAgBrD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC5E,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACtF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,YAAY,GAAG,CAAC,MAAmB,EAAE,EAAE;QAC3C,eAAe,CAAC,MAAM,CAAC,CAAC;QACxB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,YAAY,CAAC,GAAG,CAAC,CAAC;IAExE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,eAAe,CAAC,KAAK,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,CACL,iCAAK,SAAS,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,SAAS,EAAE,aACnD,KAAK,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,MAAM,YAAE,KAAK,GAAQ,CAAC,CAAC,CAAC,IAAI,EACrD,iCAAK,SAAS,EAAE,gBAAgB,aAC9B,iCACE,SAAS,EAAE;cACT,cAAc,CAAC,QAAQ,CAAC,EAAE,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,aAEhC,YAAY,CAAC,IAAI,EAClB,uBAAC,WAAI,IACH,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAE,oBAAoB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE,GAC3D,IACE,EACL,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACpB,gCAAK,SAAS,EAAE,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE,YACtD,gCAAK,SAAS,EAAE,4BAA4B,YACzC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,GACxD,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAChB,CAAC,YAAY,EAAE,MAAe,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,MAAmB,EAAE,CAAS,EAAE,EAAE;IAChF,OAAO,CACL,iCAEE,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC,EACD,SAAS,EAAC,2DAA2D,aAErE,2CAAO,MAAM,CAAC,IAAI,GAAQ,EAC1B,uBAAC,WAAI,IACH,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAE,CAAC,yBAAyB,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CACvF,GAAG,CACJ,GACD,KAdG,MAAM,CAAC,CAAC,CAAC,CAeV,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,SAAS,cAAc,CAAC,QAAQ;IAC9B,OAAO,QAAQ,CAAC,CAAC,CAAC,iEAAiE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3F,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { Button } from '../../ui-kit/Button/Button.js';
|
|
3
|
-
export function renderButton(button) {
|
|
4
|
-
return (_jsx(Button, { className: "py-4 mr-1", version: button?.version, href: button?.href, target: "_blank", children: button?.text }));
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=renderButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderButton.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/renderButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAGpD,MAAM,UAAU,YAAY,CAAC,MAAmB;IAC9C,OAAO,CACL,KAAC,MAAM,IAAC,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAC,QAAQ,YACxF,MAAM,EAAE,IAAI,GACN,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
export const SelectOption = JSX(({ className = '', value, selected, disabled = false, children }) => {
|
|
4
|
-
return (_jsx("option", { className: className, value: `${value}`, selected: selected, disabled: disabled, children: children }));
|
|
5
|
-
});
|
|
6
|
-
//# sourceMappingURL=SelectOption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectOption.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/SelectOption.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AASxC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClE,OAAO,CACL,iBAAQ,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,YACpF,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface OptionProps {
|
|
2
|
-
key: string;
|
|
3
|
-
text: string;
|
|
4
|
-
}
|
|
5
|
-
export interface SelectCustomProps {
|
|
6
|
-
className?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
value?: OptionProps;
|
|
9
|
-
onChange: (value: OptionProps) => void;
|
|
10
|
-
options: OptionProps[];
|
|
11
|
-
isBorder?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const SelectCustom: import("@redneckz/uni-jsx").UNIComponent<SelectCustomProps, any, any>;
|