@redneckz/wildless-cms-uni-blocks 0.3.83 → 0.3.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +390 -324
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/Logo.svg +1 -0
- package/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
- package/dist/components/Calculator/BonusCalculatorForm.js +23 -29
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +7 -7
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +14 -4
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
- package/dist/components/Calculator/CreditCalculatorForm.js +38 -41
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +14 -28
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
- package/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
- package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
- package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Rate.d.ts +7 -0
- package/dist/components/Calculator/Rate.js +6 -0
- package/dist/components/Calculator/Rate.js.map +1 -0
- package/dist/components/Calculator/constants.d.ts +13 -4
- package/dist/components/Calculator/constants.js +34 -5
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/getBonus.d.ts +2 -0
- package/dist/components/Calculator/getBonus.js +16 -0
- package/dist/components/Calculator/getBonus.js.map +1 -0
- package/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
- package/dist/components/Calculator/getDefaultMonths.js +1 -4
- package/dist/components/Calculator/getDefaultMonths.js.map +1 -1
- package/dist/components/Calculator/getDefaultSum.d.ts +1 -2
- package/dist/components/Calculator/getDefaultSum.js +1 -3
- package/dist/components/Calculator/getDefaultSum.js.map +1 -1
- package/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
- package/dist/components/Calculator/getMonthlyPayment.js +10 -11
- package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js +3 -3
- package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
- package/dist/components/Calculator/renderInitialFeeInput.js +7 -6
- package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
- package/dist/components/Calculator/renderMonthsInput.js +4 -3
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
- package/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
- package/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
- package/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
- package/dist/components/Calculator/renderRealEstateValue.js +6 -5
- package/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
- package/dist/components/Calculator/renderWantedSumInput.js +5 -7
- package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
- package/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
- package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
- package/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
- package/dist/components/Calculator/useCalculatorParams.js +12 -0
- package/dist/components/Calculator/useCalculatorParams.js.map +1 -0
- package/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
- package/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
- package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
- package/dist/components/ExchangeRateTile/renderButton.js +2 -2
- package/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.js +2 -2
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -2
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/dist/components/Footer/HorizontalNavigationLink.js +6 -0
- package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
- package/dist/components/Footer/MediaButton.js +2 -1
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +2 -2
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/TextInformation.mobile.js +2 -2
- package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.d.ts +8 -0
- package/dist/components/Footer/TextInformationLink.js +6 -0
- package/dist/components/Footer/TextInformationLink.js.map +1 -0
- package/dist/components/Gallery/Gallery.mobile.js +2 -1
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +3 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +2 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +3 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +3 -2
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js +2 -1
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.js +4 -3
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/content-page-repository/transformPicture.js +7 -3
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/hooks/useExchangeRates.js +5 -7
- package/dist/hooks/useExchangeRates.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/Picture.d.ts +4 -3
- package/dist/services/sitemap/findActiveSubItem.js +1 -2
- package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +2 -2
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.js +1 -1
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +5 -2
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
- package/dist/ui-kit/Foldable/Foldable.js +4 -2
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +2 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js +1 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/dist/ui-kit/Img/Img.d.ts +0 -3
- package/dist/ui-kit/Img/Img.js +4 -30
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.d.ts +0 -3
- package/dist/ui-kit/Img/Img.mobile.js +4 -31
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/dist/ui-kit/Img/ImgAsPicture.js +32 -0
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
- package/dist/ui-kit/Img/ImgInner.d.ts +2 -0
- package/dist/ui-kit/Img/ImgInner.js +19 -0
- package/dist/ui-kit/Img/ImgInner.js.map +1 -0
- package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
- package/dist/ui-kit/Logo/Logo.js +1 -9
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js +2 -9
- package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
- package/dist/ui-kit/SearchBar/SearchBar.js +3 -8
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -7
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
- package/lib/components/Calculator/BonusCalculatorForm.js +23 -29
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +7 -7
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +14 -4
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
- package/lib/components/Calculator/CreditCalculatorForm.js +38 -41
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +15 -29
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
- package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
- package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
- package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Rate.d.ts +7 -0
- package/lib/components/Calculator/Rate.js +4 -0
- package/lib/components/Calculator/Rate.js.map +1 -0
- package/lib/components/Calculator/constants.d.ts +13 -4
- package/lib/components/Calculator/constants.js +33 -4
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/getBonus.d.ts +2 -0
- package/lib/components/Calculator/getBonus.js +13 -0
- package/lib/components/Calculator/getBonus.js.map +1 -0
- package/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
- package/lib/components/Calculator/getDefaultMonths.js +1 -4
- package/lib/components/Calculator/getDefaultMonths.js.map +1 -1
- package/lib/components/Calculator/getDefaultSum.d.ts +1 -2
- package/lib/components/Calculator/getDefaultSum.js +1 -3
- package/lib/components/Calculator/getDefaultSum.js.map +1 -1
- package/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
- package/lib/components/Calculator/getMonthlyPayment.js +11 -12
- package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js +3 -3
- package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
- package/lib/components/Calculator/renderInitialFeeInput.js +7 -6
- package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
- package/lib/components/Calculator/renderMonthsInput.js +4 -3
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
- package/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
- package/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
- package/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
- package/lib/components/Calculator/renderRealEstateValue.js +6 -5
- package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
- package/lib/components/Calculator/renderWantedSumInput.js +5 -7
- package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
- package/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
- package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
- package/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
- package/lib/components/Calculator/useCalculatorParams.js +9 -0
- package/lib/components/Calculator/useCalculatorParams.js.map +1 -0
- package/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
- package/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
- package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
- package/lib/components/ExchangeRateTile/renderButton.js +2 -2
- package/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.js +2 -2
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -2
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/lib/components/Footer/HorizontalNavigationLink.js +4 -0
- package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
- package/lib/components/Footer/MediaButton.js +2 -1
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +2 -2
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/TextInformation.mobile.js +2 -2
- package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.d.ts +8 -0
- package/lib/components/Footer/TextInformationLink.js +4 -0
- package/lib/components/Footer/TextInformationLink.js.map +1 -0
- package/lib/components/Gallery/Gallery.mobile.js +2 -1
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +3 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +2 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +3 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +3 -2
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +2 -1
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.js +4 -3
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/content-page-repository/transformPicture.js +7 -3
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/hooks/useExchangeRates.js +5 -7
- package/lib/hooks/useExchangeRates.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/Picture.d.ts +4 -3
- package/lib/services/sitemap/findActiveSubItem.js +1 -2
- package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +2 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Button/ButtonSection.js +1 -1
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +5 -2
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
- package/lib/ui-kit/Foldable/Foldable.js +4 -2
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +2 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js +1 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/lib/ui-kit/Img/Img.d.ts +0 -3
- package/lib/ui-kit/Img/Img.js +4 -29
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.d.ts +0 -3
- package/lib/ui-kit/Img/Img.mobile.js +4 -30
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/lib/ui-kit/Img/ImgAsPicture.js +29 -0
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
- package/lib/ui-kit/Img/ImgInner.d.ts +2 -0
- package/lib/ui-kit/Img/ImgInner.js +17 -0
- package/lib/ui-kit/Img/ImgInner.js.map +1 -0
- package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
- package/lib/ui-kit/Logo/Logo.js +1 -9
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js +2 -9
- package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +4 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
- package/lib/ui-kit/SearchBar/SearchBar.js +4 -9
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +4 -8
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +117 -93
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +23 -29
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +7 -7
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -4
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +38 -41
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +14 -28
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Rate.d.ts +7 -0
- package/mobile/dist/components/Calculator/Rate.js +6 -0
- package/mobile/dist/components/Calculator/Rate.js.map +1 -0
- package/mobile/dist/components/Calculator/constants.d.ts +13 -4
- package/mobile/dist/components/Calculator/constants.js +34 -5
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/getBonus.d.ts +2 -0
- package/mobile/dist/components/Calculator/getBonus.js +16 -0
- package/mobile/dist/components/Calculator/getBonus.js.map +1 -0
- package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
- package/mobile/dist/components/Calculator/getDefaultMonths.js +1 -4
- package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -1
- package/mobile/dist/components/Calculator/getDefaultSum.d.ts +1 -2
- package/mobile/dist/components/Calculator/getDefaultSum.js +1 -3
- package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -1
- package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
- package/mobile/dist/components/Calculator/getMonthlyPayment.js +10 -11
- package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js +3 -3
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js +7 -6
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
- package/mobile/dist/components/Calculator/renderMonthsInput.js +4 -3
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
- package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
- package/mobile/dist/components/Calculator/renderRealEstateValue.js +6 -5
- package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
- package/mobile/dist/components/Calculator/renderWantedSumInput.js +5 -7
- package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
- package/mobile/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
- package/mobile/dist/components/Calculator/useCalculatorParams.js +12 -0
- package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -0
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderButton.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -2
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/mobile/dist/components/Footer/HorizontalNavigationLink.js +6 -0
- package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
- package/mobile/dist/components/Footer/MediaButton.js +2 -1
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +2 -2
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.d.ts +8 -0
- package/mobile/dist/components/Footer/TextInformationLink.js +6 -0
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -0
- package/mobile/dist/components/Gallery/Gallery.js +2 -1
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -2
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +2 -1
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +4 -3
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js +7 -3
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/hooks/useExchangeRates.js +5 -7
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/Picture.d.ts +4 -3
- package/mobile/dist/services/sitemap/findActiveSubItem.js +1 -2
- package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +2 -2
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +5 -2
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js +4 -2
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +4 -4
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/dist/ui-kit/Img/Img.d.ts +0 -3
- package/mobile/dist/ui-kit/Img/Img.js +4 -31
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +32 -0
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
- package/mobile/dist/ui-kit/Img/ImgInner.d.ts +2 -0
- package/mobile/dist/ui-kit/Img/ImgInner.js +19 -0
- package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -0
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
- package/mobile/dist/ui-kit/Logo/Logo.js +2 -9
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -7
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
- package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +23 -29
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +7 -7
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -4
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +38 -41
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +15 -29
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Rate.d.ts +7 -0
- package/mobile/lib/components/Calculator/Rate.js +4 -0
- package/mobile/lib/components/Calculator/Rate.js.map +1 -0
- package/mobile/lib/components/Calculator/constants.d.ts +13 -4
- package/mobile/lib/components/Calculator/constants.js +33 -4
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/getBonus.d.ts +2 -0
- package/mobile/lib/components/Calculator/getBonus.js +13 -0
- package/mobile/lib/components/Calculator/getBonus.js.map +1 -0
- package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
- package/mobile/lib/components/Calculator/getDefaultMonths.js +1 -4
- package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -1
- package/mobile/lib/components/Calculator/getDefaultSum.d.ts +1 -2
- package/mobile/lib/components/Calculator/getDefaultSum.js +1 -3
- package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -1
- package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
- package/mobile/lib/components/Calculator/getMonthlyPayment.js +11 -12
- package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js +3 -3
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js +7 -6
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
- package/mobile/lib/components/Calculator/renderMonthsInput.js +4 -3
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
- package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
- package/mobile/lib/components/Calculator/renderRealEstateValue.js +6 -5
- package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
- package/mobile/lib/components/Calculator/renderWantedSumInput.js +5 -7
- package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
- package/mobile/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
- package/mobile/lib/components/Calculator/useCalculatorParams.js +9 -0
- package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -0
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderButton.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -2
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/mobile/lib/components/Footer/HorizontalNavigationLink.js +4 -0
- package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
- package/mobile/lib/components/Footer/MediaButton.js +2 -1
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +2 -2
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.d.ts +8 -0
- package/mobile/lib/components/Footer/TextInformationLink.js +4 -0
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -0
- package/mobile/lib/components/Gallery/Gallery.js +2 -1
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +2 -1
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +4 -3
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js +7 -3
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/hooks/useExchangeRates.js +5 -7
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/Picture.d.ts +4 -3
- package/mobile/lib/services/sitemap/findActiveSubItem.js +1 -2
- package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +2 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +5 -2
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -2
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +4 -4
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/Img/Img.d.ts +0 -3
- package/mobile/lib/ui-kit/Img/Img.js +4 -30
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +29 -0
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
- package/mobile/lib/ui-kit/Img/ImgInner.d.ts +2 -0
- package/mobile/lib/ui-kit/Img/ImgInner.js +17 -0
- package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -0
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
- package/mobile/lib/ui-kit/Logo/Logo.js +2 -9
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -8
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
- package/mobile/src/components/Calculator/Calculator.tsx +8 -8
- package/mobile/src/components/Calculator/CalculatorContent.ts +14 -4
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
- package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
- package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
- package/mobile/src/components/Calculator/Rate.tsx +22 -0
- package/mobile/src/components/Calculator/constants.ts +41 -4
- package/mobile/src/components/Calculator/getBonus.ts +38 -0
- package/mobile/src/components/Calculator/getDefaultMonths.ts +2 -7
- package/mobile/src/components/Calculator/getDefaultSum.ts +2 -5
- package/mobile/src/components/Calculator/getMonthlyPayment.ts +12 -28
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
- package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +7 -10
- package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
- package/mobile/src/components/Calculator/renderRealEstateValue.tsx +9 -13
- package/mobile/src/components/Calculator/renderWantedSumInput.tsx +12 -26
- package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
- package/mobile/src/components/Calculator/useCalculatorParams.ts +16 -0
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
- package/mobile/src/components/ExchangeRateTile/renderButton.tsx +3 -8
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +2 -2
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -20
- package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
- package/mobile/src/components/Footer/MediaButton.tsx +2 -7
- package/mobile/src/components/Footer/TextInformation.tsx +2 -22
- package/mobile/src/components/Footer/TextInformationLink.tsx +23 -0
- package/mobile/src/components/Gallery/Gallery.tsx +3 -5
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
- package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -3
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -6
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +4 -7
- package/mobile/src/components/TextBlock/TextBlock.tsx +2 -1
- package/mobile/src/components/Tile/Tile.example.json +0 -1
- package/mobile/src/components/Tile/Tile.tsx +6 -3
- package/mobile/src/content-page-repository/transformPicture.ts +7 -5
- package/mobile/src/hooks/useExchangeRates.ts +6 -7
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/Logo.svg +7 -0
- package/mobile/src/model/Picture.ts +5 -3
- package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -3
- package/mobile/src/ui-kit/BlockWrapper.tsx +2 -5
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -5
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +4 -6
- package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
- package/mobile/src/ui-kit/Img/Img.tsx +4 -71
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
- package/mobile/src/ui-kit/Img/ImgInner.tsx +37 -0
- package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
- package/mobile/src/ui-kit/Logo/Logo.tsx +2 -13
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -41
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
- package/package.json +2 -1
- package/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
- package/src/components/Calculator/Calculator.fixture.tsx +2 -14
- package/src/components/Calculator/Calculator.tsx +8 -8
- package/src/components/Calculator/CalculatorContent.ts +14 -4
- package/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
- package/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
- package/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
- package/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
- package/src/components/Calculator/Rate.tsx +22 -0
- package/src/components/Calculator/constants.ts +41 -4
- package/src/components/Calculator/getBonus.ts +38 -0
- package/src/components/Calculator/getDefaultMonths.ts +2 -7
- package/src/components/Calculator/getDefaultSum.ts +2 -5
- package/src/components/Calculator/getMonthlyPayment.ts +12 -28
- package/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
- package/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
- package/src/components/Calculator/renderMonthsInput.tsx +7 -10
- package/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
- package/src/components/Calculator/renderRealEstateValue.tsx +9 -13
- package/src/components/Calculator/renderWantedSumInput.tsx +12 -26
- package/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
- package/src/components/Calculator/useCalculatorParams.ts +16 -0
- package/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
- package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +9 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
- package/src/components/ExchangeRateTile/renderButton.tsx +3 -8
- package/src/components/ExchangeRateTile/renderInput.tsx +2 -2
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -20
- package/src/components/Footer/HorizontalNavigation.tsx +2 -20
- package/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
- package/src/components/Footer/MediaButton.tsx +2 -7
- package/src/components/Footer/TextInformation.mobile.tsx +2 -22
- package/src/components/Footer/TextInformation.tsx +2 -22
- package/src/components/Footer/TextInformationLink.tsx +23 -0
- package/src/components/Gallery/Gallery.mobile.tsx +3 -5
- package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
- package/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
- package/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +7 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.tsx +8 -2
- package/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -11
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -6
- package/src/components/StepsBlock/StepsBlock.tsx +10 -8
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +4 -7
- package/src/components/TextBlock/TextBlock.mobile.tsx +2 -1
- package/src/components/TextBlock/TextBlock.tsx +1 -1
- package/src/components/Tile/Tile.example.json +0 -1
- package/src/components/Tile/Tile.tsx +6 -3
- package/src/content-page-repository/transformPicture.ts +7 -5
- package/src/hooks/useExchangeRates.ts +6 -7
- package/src/icons/IconName.ts +4 -1
- package/src/icons/Logo.svg +7 -0
- package/src/model/Picture.ts +5 -3
- package/src/services/sitemap/findActiveSubItem.ts +2 -3
- package/src/ui-kit/BlockWrapper.tsx +2 -5
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
- package/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
- package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
- package/src/ui-kit/Foldable/Foldable.tsx +7 -5
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +4 -6
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +2 -2
- package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
- package/src/ui-kit/Heading/Heading.tsx +1 -1
- package/src/ui-kit/Img/Img.mobile.tsx +4 -71
- package/src/ui-kit/Img/Img.tsx +6 -60
- package/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
- package/src/ui-kit/Img/ImgInner.tsx +37 -0
- package/src/ui-kit/Img/ImgProps.ts +1 -0
- package/src/ui-kit/Logo/Logo.mobile.tsx +2 -13
- package/src/ui-kit/Logo/Logo.tsx +5 -11
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +26 -0
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -41
- package/src/ui-kit/SearchBar/SearchBar.tsx +3 -43
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
- package/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
- package/dist/components/Calculator/getCalculatorParams.js +0 -12
- package/dist/components/Calculator/getCalculatorParams.js.map +0 -1
- package/dist/components/Calculator/renderRate.d.ts +0 -8
- package/dist/components/Calculator/renderRate.js +0 -9
- package/dist/components/Calculator/renderRate.js.map +0 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -14
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
- package/dist/hooks/useCreditCalculatorData.d.ts +0 -2
- package/dist/hooks/useCreditCalculatorData.js +0 -15
- package/dist/hooks/useCreditCalculatorData.js.map +0 -1
- package/dist/ui-kit/SearchBar.mobile.d.ts +0 -2
- package/dist/ui-kit/SearchBar.mobile.js +0 -14
- package/dist/ui-kit/SearchBar.mobile.js.map +0 -1
- package/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
- package/lib/components/Calculator/getCalculatorParams.js +0 -9
- package/lib/components/Calculator/getCalculatorParams.js.map +0 -1
- package/lib/components/Calculator/renderRate.d.ts +0 -8
- package/lib/components/Calculator/renderRate.js +0 -6
- package/lib/components/Calculator/renderRate.js.map +0 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -12
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
- package/lib/hooks/useCreditCalculatorData.d.ts +0 -2
- package/lib/hooks/useCreditCalculatorData.js +0 -12
- package/lib/hooks/useCreditCalculatorData.js.map +0 -1
- package/lib/ui-kit/SearchBar.mobile.d.ts +0 -2
- package/lib/ui-kit/SearchBar.mobile.js +0 -12
- package/lib/ui-kit/SearchBar.mobile.js.map +0 -1
- package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
- package/mobile/dist/components/Calculator/getCalculatorParams.js +0 -12
- package/mobile/dist/components/Calculator/getCalculatorParams.js.map +0 -1
- package/mobile/dist/components/Calculator/renderRate.d.ts +0 -8
- package/mobile/dist/components/Calculator/renderRate.js +0 -9
- package/mobile/dist/components/Calculator/renderRate.js.map +0 -1
- package/mobile/dist/hooks/useCreditCalculatorData.d.ts +0 -2
- package/mobile/dist/hooks/useCreditCalculatorData.js +0 -15
- package/mobile/dist/hooks/useCreditCalculatorData.js.map +0 -1
- package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
- package/mobile/lib/components/Calculator/getCalculatorParams.js +0 -9
- package/mobile/lib/components/Calculator/getCalculatorParams.js.map +0 -1
- package/mobile/lib/components/Calculator/renderRate.d.ts +0 -8
- package/mobile/lib/components/Calculator/renderRate.js +0 -6
- package/mobile/lib/components/Calculator/renderRate.js.map +0 -1
- package/mobile/lib/hooks/useCreditCalculatorData.d.ts +0 -2
- package/mobile/lib/hooks/useCreditCalculatorData.js +0 -12
- package/mobile/lib/hooks/useCreditCalculatorData.js.map +0 -1
- package/mobile/src/components/Calculator/getCalculatorParams.ts +0 -18
- package/mobile/src/components/Calculator/renderRate.tsx +0 -22
- package/mobile/src/hooks/useCreditCalculatorData.ts +0 -20
- package/src/components/Calculator/getCalculatorParams.ts +0 -18
- package/src/components/Calculator/renderRate.tsx +0 -22
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +0 -32
- package/src/hooks/useCreditCalculatorData.ts +0 -20
- package/src/ui-kit/SearchBar.mobile.tsx +0 -45
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformPicture.js","sourceRoot":"","sources":["../../src/content-page-repository/transformPicture.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,kDAA0B;AAC1B,gDAAwB;AAIxB,MAAM,KAAK,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,KAAK,CAAC,CAAC;AAEhC,KAAK,UAAU,gBAAgB,CACpC,QAAgB,EAChB,OAAgB,EAChB,OAA8B;IAE9B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;IACtC,MAAM,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;IAC/B,MAAM,CAAC,kBAAkB,EAAE,GAAG,kBAAkB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CACnE,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,GAAG,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CACxF,CAAC;IAEF,OAAO;QACL,GAAG,OAAO;QACV,GAAG,EAAE,kBAAkB;QACvB,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACzC,GAAG,OAAO,CAAC,CAAC,CAAC;YACb,GAAG,EAAE,CAAC;SACP,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC;AAnBD,4CAmBC;AAED,KAAK,UAAU,YAAY,CACzB,QAAgB,EAChB,GAAW,EACX,qBAAwD;IAExD,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,qBAAqB,CAAC;IAE/E,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"transformPicture.js","sourceRoot":"","sources":["../../src/content-page-repository/transformPicture.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,kDAA0B;AAC1B,gDAAwB;AAIxB,MAAM,KAAK,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,KAAK,CAAC,CAAC;AAEhC,KAAK,UAAU,gBAAgB,CACpC,QAAgB,EAChB,OAAgB,EAChB,OAA8B;IAE9B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;IACtC,MAAM,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;IAC/B,MAAM,CAAC,kBAAkB,EAAE,GAAG,kBAAkB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CACnE,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,GAA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EAAE,CAC9C,EAAE,CAAC;IAEJ,MAAM,KAAK,CAAC,cAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAEnE,IAAI;QACF,MAAM,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;KACxC;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAClB;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AAED,SAAS,YAAY,CAAC,GAAW,EAAE,EAAE,MAAM,EAAE,IAAI,EAAqC;IACpF,MAAM,WAAW,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC;IACrC,IAAI,WAAW,EAAE;QACf,OAAO,GAAG,CAAC;KACZ;IAED,MAAM,QAAQ,GAAG,cAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjE,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEhD,OAAO,GAAG,QAAQ,GAAG,MAAM,IAAI,GAAG,EAAE,CAAC;AACvC,CAAC"}
|
|
@@ -19,6 +19,7 @@ async function fetchExchangeRates() {
|
|
|
19
19
|
}
|
|
20
20
|
catch (err) {
|
|
21
21
|
console.error(err);
|
|
22
|
+
return Promise.resolve();
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
const EXCHANGE_RATES_URL = 'https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000';
|
|
@@ -50,18 +51,15 @@ const EXCHANGE_RATES_BODY = {
|
|
|
50
51
|
};
|
|
51
52
|
const getCurrencyListByRate = (currencyRates) => currencyRates.reduce((result, _) => {
|
|
52
53
|
const currencyInfo = _['currency_first'];
|
|
53
|
-
|
|
54
|
-
return result;
|
|
55
|
-
}
|
|
56
|
-
const currencyCode = currencyInfo.code;
|
|
54
|
+
const currencyCode = currencyInfo?.code;
|
|
57
55
|
if (!result.some((i) => i.code === currencyCode)) {
|
|
58
56
|
result.push({
|
|
59
57
|
code: currencyCode,
|
|
60
|
-
buy: Number(_.rate_buy),
|
|
61
|
-
sell: Number(_.rate_sell),
|
|
58
|
+
buy: roundRate(Number(_.rate_buy)),
|
|
59
|
+
sell: roundRate(Number(_.rate_sell)),
|
|
62
60
|
});
|
|
63
61
|
}
|
|
64
62
|
return result;
|
|
65
63
|
}, []);
|
|
66
|
-
const
|
|
64
|
+
const roundRate = (value) => Math.round(value * 1000) / 1000;
|
|
67
65
|
//# sourceMappingURL=useExchangeRates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExchangeRates.js","sourceRoot":"","sources":["../../src/hooks/useExchangeRates.ts"],"names":[],"mappings":";;AASA,SAAgB,gBAAgB,CAAC,YAA2B;IAC1D,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IAEtE,MAAM,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAE7D,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AAChE,CAAC;AAND,4CAMC;AAED,KAAK,UAAU,kBAAkB;IA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
|
InterestGrowthIcon = "InterestGrowthIcon",
|
|
43
43
|
InterestIcon = "InterestIcon",
|
|
44
44
|
JCBIcon = "JCBIcon",
|
|
45
|
+
Logo = "Logo",
|
|
45
46
|
LoupeIcon = "LoupeIcon",
|
|
46
47
|
MasterCardIcon = "MasterCardIcon",
|
|
47
48
|
MinusIcon = "MinusIcon",
|
|
@@ -123,6 +124,7 @@ export declare enum IconTitleMap {
|
|
|
123
124
|
InterestGrowthIcon = "\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0440\u043E\u0441\u0442\u0430",
|
|
124
125
|
InterestIcon = "\u0421\u043A\u0438\u0434\u043A\u0430",
|
|
125
126
|
JCBIcon = "JCB",
|
|
127
|
+
Logo = "Logo",
|
|
126
128
|
LoupeIcon = "\u041B\u0443\u043F\u0430",
|
|
127
129
|
MasterCardIcon = "MasterCard",
|
|
128
130
|
MinusIcon = "\u041C\u0438\u043D\u0443\u0441",
|
|
@@ -165,7 +167,7 @@ export declare enum IconTitleMap {
|
|
|
165
167
|
* @title Иконка
|
|
166
168
|
* @enumNames [
|
|
167
169
|
* "",
|
|
168
|
-
* 'Деньги', 'Самолет', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка', 'Стрелка вверх', 'Банкомат', 'Банк', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Кино', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'Диаграмма роста', 'Скидка', 'JCB', 'Лупа', 'MasterCard', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'Персональная карта', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Лого «Telegram»', 'UnionPay', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт'
|
|
170
|
+
* 'Деньги', 'Самолет', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка', 'Стрелка вверх', 'Банкомат', 'Банк', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Кино', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'MasterCard', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'Персональная карта', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Лого «Telegram»', 'UnionPay', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт'
|
|
169
171
|
* ]
|
|
170
172
|
*/
|
|
171
|
-
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlane' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowLeftIcon' | 'ArrowUpIcon' | 'AtmIcon' | 'BankIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'CardIcon' | 'CardPosIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartSquareIcon' | 'CinemaIcon' | 'ClockIcon' | 'CloseIcon' | 'ComfortableCompIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LoupeIcon' | 'MasterCardIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'OfficeIcon' | 'OkIcon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PersonalCardIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'RoundRubleIcon' | 'SafeIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCan';
|
|
173
|
+
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlane' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowLeftIcon' | 'ArrowUpIcon' | 'AtmIcon' | 'BankIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'CardIcon' | 'CardPosIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartSquareIcon' | 'CinemaIcon' | 'ClockIcon' | 'CloseIcon' | 'ComfortableCompIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'Logo' | 'LoupeIcon' | 'MasterCardIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'OfficeIcon' | 'OkIcon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PersonalCardIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'RoundRubleIcon' | 'SafeIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCan';
|
|
@@ -47,6 +47,7 @@ var IconMap;
|
|
|
47
47
|
IconMap["InterestGrowthIcon"] = "InterestGrowthIcon";
|
|
48
48
|
IconMap["InterestIcon"] = "InterestIcon";
|
|
49
49
|
IconMap["JCBIcon"] = "JCBIcon";
|
|
50
|
+
IconMap["Logo"] = "Logo";
|
|
50
51
|
IconMap["LoupeIcon"] = "LoupeIcon";
|
|
51
52
|
IconMap["MasterCardIcon"] = "MasterCardIcon";
|
|
52
53
|
IconMap["MinusIcon"] = "MinusIcon";
|
|
@@ -129,6 +130,7 @@ var IconTitleMap;
|
|
|
129
130
|
IconTitleMap["InterestGrowthIcon"] = "\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0440\u043E\u0441\u0442\u0430";
|
|
130
131
|
IconTitleMap["InterestIcon"] = "\u0421\u043A\u0438\u0434\u043A\u0430";
|
|
131
132
|
IconTitleMap["JCBIcon"] = "JCB";
|
|
133
|
+
IconTitleMap["Logo"] = "Logo";
|
|
132
134
|
IconTitleMap["LoupeIcon"] = "\u041B\u0443\u043F\u0430";
|
|
133
135
|
IconTitleMap["MasterCardIcon"] = "MasterCard";
|
|
134
136
|
IconTitleMap["MinusIcon"] = "\u041C\u0438\u043D\u0443\u0441";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconName.js","sourceRoot":"","sources":["../../src/icons/IconName.ts"],"names":[],"mappings":"AACA,0BAA0B;AAC1B,8BAA8B;;;AAE9B,IAAY,OAEX;AAFD,WAAY,OAAO;IACjB,kDAAuC,CAAA;IAAE,gCAAqB,CAAA;IAAE,kCAAuB,CAAA;IAAE,0CAA+B,CAAA;IAAE,0CAA+B,CAAA;IAAE,sCAA2B,CAAA;IAAE,8BAAmB,CAAA;IAAE,gCAAqB,CAAA;IAAE,oCAAyB,CAAA;IAAE,0CAA+B,CAAA;IAAE,oDAAyC,CAAA;IAAE,wCAA6B,CAAA;IAAE,gDAAqC,CAAA;IAAE,gCAAqB,CAAA;IAAE,sCAA2B,CAAA;IAAE,wCAA6B,CAAA;IAAE,8CAAmC,CAAA;IAAE,8BAAmB,CAAA;IAAE,8CAAmC,CAAA;IAAE,oCAAyB,CAAA;IAAE,kCAAuB,CAAA;IAAE,kCAAuB,CAAA;IAAE,sD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oD,CAAA;IAAE,mHAAkC,CAAA;IAAE,qDAAiB,CAAA;IAAE,gGAA8B,CAAA;IAAE,wEAAqB,CAAA;IAAE,mEAAqB,CAAA;IAAE,+BAAe,CAAA;IAAE,4FAA0B,CAAA;IAAE,4HAAsC,CAAA;IAAE,qEAAuB,CAAA;IAAE,+BAAe,CAAA;IAAE,6BAAa,CAAA;IAAE,sDAAkB,CAAA;IAAE,6CAA6B,CAAA;IAAE,4DAAmB,CAAA;IAAE,8CAAe,CAAA;IAAE,kEAAoB,CAAA;IAAE,0JAA2C,CAAA;IAAE,8IAAyC,CAAA;IAAE,8GAA6B,CAAA;IAAE,uDAAmB,CAAA;IAAE,8IAA+B,CAAA;IAAE,qEAAuB,CAAA;IAAE,oHAAwC,CAAA;IAAE,yFAAiC,CAAA;IAAE,4IAAuC,CAAA;IAAE,kFAAoC,CAAA;IAAE,qDAAiB,CAAA;IAAE,gDAAiB,CAAA;IAAE,6HAAuC,CAAA;IAAE,0EAAuB,CAAA;IAAE,8DAAqB,CAAA;IAAE,6FAAgC,CAAA;IAAE,qDAAiB,CAAA;IAAE,2GAA+B,CAAA;IAAE,0JAAsC,CAAA;IAAE,kHAAiC,CAAA;IAAE,sDAAkB,CAAA;IAAE,8EAAgC,CAAA;IAAE,yCAAyB,CAAA;IAAE,yGAA6B,CAAA;IAAE,iCAAiB,CAAA;IAAE,kEAAoB,CAAA;IAAE,8HAAmC,CAAA;IAAE,wHAAkC,CAAA;IAAE,yEAAsB,CAAA;IAAE,0IAA0C,CAAA;IAAE,2HAAgC,CAAA;AACn1E,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IconName } from '../icons/IconName';
|
|
2
2
|
import type { IconVersion } from './IconVersion';
|
|
3
|
+
export declare type ImgFormats = 'jpeg' | 'jpg' | 'png' | 'gif' | 'webp' | 'heif' | 'avif';
|
|
3
4
|
export interface Img {
|
|
4
5
|
/** @title Картинка */
|
|
5
6
|
src?: string;
|
|
@@ -10,9 +11,9 @@ export interface Img {
|
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* @title Брейкпоинт
|
|
13
|
-
* @enumNames ["
|
|
14
|
+
* @enumNames ["Меньше 1920px", "Меньше 1440px", "Меньше 1280px"]
|
|
14
15
|
*/
|
|
15
|
-
export declare type MediaQuery =
|
|
16
|
+
export declare type MediaQuery = 1919 | 1439 | 1279;
|
|
16
17
|
export interface ImgSource {
|
|
17
18
|
/** @title Иконка */
|
|
18
19
|
icon?: IconName;
|
|
@@ -20,7 +21,7 @@ export interface ImgSource {
|
|
|
20
21
|
/** @title Картинка */
|
|
21
22
|
src?: string;
|
|
22
23
|
/** @title Формат */
|
|
23
|
-
format?:
|
|
24
|
+
format?: ImgFormats;
|
|
24
25
|
/** @hidden */
|
|
25
26
|
options?: Record<string, any>;
|
|
26
27
|
media?: MediaQuery;
|
|
@@ -4,10 +4,9 @@ const maxBy_1 = require("../../utils/maxBy");
|
|
|
4
4
|
const isSubItemActive_1 = require("./isSubItemActive");
|
|
5
5
|
const findActiveSubItem = (router) => (items = []) => {
|
|
6
6
|
const possibleActiveSubItems = items?.filter((0, isSubItemActive_1.isSubItemActive)(router));
|
|
7
|
-
|
|
7
|
+
return possibleActiveSubItems?.length
|
|
8
8
|
? (0, maxBy_1.maxBy)((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
9
9
|
: null;
|
|
10
|
-
return activeSubItem;
|
|
11
10
|
};
|
|
12
11
|
exports.findActiveSubItem = findActiveSubItem;
|
|
13
12
|
//# sourceMappingURL=findActiveSubItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findActiveSubItem.js","sourceRoot":"","sources":["../../../src/services/sitemap/findActiveSubItem.ts"],"names":[],"mappings":";;AAEA,6CAA0C;AAC1C,uDAAoD;AAE7C,MAAM,iBAAiB,GAC5B,CAAC,MAAc,EAAE,EAAE,CACnB,CAAsB,QAAa,EAAE,EAAY,EAAE;IACjD,MAAM,sBAAsB,GAAG,KAAK,EAAE,MAAM,CAAC,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"findActiveSubItem.js","sourceRoot":"","sources":["../../../src/services/sitemap/findActiveSubItem.ts"],"names":[],"mappings":";;AAEA,6CAA0C;AAC1C,uDAAoD;AAE7C,MAAM,iBAAiB,GAC5B,CAAC,MAAc,EAAE,EAAE,CACnB,CAAsB,QAAa,EAAE,EAAY,EAAE;IACjD,MAAM,sBAAsB,GAAG,KAAK,EAAE,MAAM,CAAC,IAAA,iCAAe,EAAC,MAAM,CAAC,CAAC,CAAC;IAEtE,OAAO,sBAAsB,EAAE,MAAM;QACnC,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,qCAAqC;QACpG,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AARS,QAAA,iBAAiB,qBAQ1B"}
|
|
@@ -3,8 +3,8 @@ exports.BlockWrapper = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const changeHashOnObserve_1 = require("../utils/changeHashOnObserve");
|
|
6
|
-
exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ anchor, className, context, children, Tag = 'section'
|
|
6
|
+
exports.BlockWrapper = (0, uni_jsx_1.JSX)(({ anchor, className, context, children, Tag = 'section' }) => {
|
|
7
7
|
const { IntersectionObserverTag } = context;
|
|
8
|
-
return anchor ? ((0, jsx_runtime_1.jsx)(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve_1.changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor,
|
|
8
|
+
return anchor ? ((0, jsx_runtime_1.jsx)(IntersectionObserverTag, { Tag: Tag, className: className, observerCallback: changeHashOnObserve_1.changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, children: children })) : ((0, jsx_runtime_1.jsx)(Tag, { className: className, children: children }));
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=BlockWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sEAAmE;AAStD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"BlockWrapper.js","sourceRoot":"","sources":["../../src/ui-kit/BlockWrapper.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sEAAmE;AAStD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,SAAS,EAAE,EAAE,EAAE;IAC5D,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE5C,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,uBAAuB,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,yCAAmB,EACrC,eAAe,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EACjC,MAAM,EAAE,MAAM,YAEb,QAAQ,GACe,CAC3B,CAAC,CAAC,CAAC,CACF,uBAAC,GAAG,IAAC,SAAS,EAAE,SAAS,YAAG,QAAQ,GAAO,CAC5C,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -6,11 +6,13 @@ const EmbeddableBlocks_1 = require("./EmbeddableBlocks");
|
|
|
6
6
|
const renderBlocksList = ({ blocks, context, className = '' }) => blocks?.length ? blocks.map(renderBlock({ context, className })) : null;
|
|
7
7
|
exports.renderBlocksList = renderBlocksList;
|
|
8
8
|
const renderBlock = ({ context, className }) => (block, i) => {
|
|
9
|
-
|
|
9
|
+
if (!block) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
const { style, blockListType: type, ...rest } = block;
|
|
10
13
|
if (!type || !(type in EmbeddableBlocks_1.EmbeddableBlocks)) {
|
|
11
14
|
return null;
|
|
12
15
|
}
|
|
13
|
-
const { style, ...rest } = block;
|
|
14
16
|
const classNameBlock = (0, style2className_1.style2className)(style);
|
|
15
17
|
const EmbeddedBlock = EmbeddableBlocks_1.EmbeddableBlocks[type];
|
|
16
18
|
return ((0, jsx_runtime_1.jsx)(EmbeddedBlock, { className: `${className} ${classNameBlock}`, context: context, ...rest }, `block_${i}`));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBlocksList.js","sourceRoot":"","sources":["../../../src/ui-kit/BlocksList/renderBlocksList.tsx"],"names":[],"mappings":";;;AAGA,iEAA8D;AAE9D,yDAAsD;AAQ/C,MAAM,gBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAyB,EAAE,EAAE,CAC7F,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAD7D,QAAA,gBAAgB,oBAC6C;AAE1E,MAAM,WAAW,GACf,CAAC,EAAE,OAAO,EAAE,SAAS,EAAiB,EAAE,EAAE,CAC1C,CAAC,KAAe,EAAE,CAAS,EAAE,EAAE;IAC7B,
|
|
1
|
+
{"version":3,"file":"renderBlocksList.js","sourceRoot":"","sources":["../../../src/ui-kit/BlocksList/renderBlocksList.tsx"],"names":[],"mappings":";;;AAGA,iEAA8D;AAE9D,yDAAsD;AAQ/C,MAAM,gBAAgB,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAyB,EAAE,EAAE,CAC7F,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAD7D,QAAA,gBAAgB,oBAC6C;AAE1E,MAAM,WAAW,GACf,CAAC,EAAE,OAAO,EAAE,SAAS,EAAiB,EAAE,EAAE,CAC1C,CAAC,KAAe,EAAE,CAAS,EAAE,EAAE;IAC7B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEtD,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,mCAAgB,CAAC,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAa,mCAAgB,CAAC,IAAI,CAAC,CAAC;IAEvD,OAAO,CACL,uBAAC,aAAa,IAEZ,SAAS,EAAE,GAAG,SAAS,IAAI,cAAc,EAAE,EAC3C,OAAO,EAAE,OAAO,KACZ,IAAI,IAHH,SAAS,CAAC,EAAE,CAIjB,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -12,7 +12,7 @@ exports.ButtonSection = (0, uni_jsx_1.JSX)(({ context, className = '', buttons }
|
|
|
12
12
|
});
|
|
13
13
|
function renderButton({ icon, iconRight, ...button }, i) {
|
|
14
14
|
if (!button?.text) {
|
|
15
|
-
return;
|
|
15
|
+
return null;
|
|
16
16
|
}
|
|
17
17
|
return icon ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { appendLeft: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, width: "24", height: "24", asSVG: true }), appendRight: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: iconRight, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : ((0, jsx_runtime_1.jsx)(Button_1.Button, { ...button }, String(i)));
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,oCAAiC;AACjC,qCAAkC;AAKrB,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAEnC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,gCAAK,SAAS,EAAE,SAAS,YACtB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAC7B,YAAY,CAAC,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CACnE,GACG,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC;AAEH,SAAS,YAAY,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,EAAuB,EAAE,CAAS;IAClF,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE;QACjB,OAAO;
|
|
1
|
+
{"version":3,"file":"ButtonSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/ButtonSection.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,oCAAiC;AACjC,qCAAkC;AAKrB,QAAA,a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|
13
13
|
];
|
|
14
|
-
exports.Checkbox = (0, uni_jsx_1.JSX)(({ text, checked,
|
|
14
|
+
exports.Checkbox = (0, uni_jsx_1.JSX)(({ className, text, checked, isRadio, onChange }) => ((0, jsx_runtime_1.jsx)("div", { className: className, children: (0, jsx_runtime_1.jsxs)("label", { className: "flex items-center cursor-pointer relative", children: [(0, jsx_runtime_1.jsx)("input", { className: `peer appearance-none w-5 h-5 border-solid
|
|
15
|
+
${isRadio ? 'rounded-full border-2' : 'rounded checked:bg-primary-main border'}
|
|
16
|
+
${checked ? 'border-black' : 'border-main-stroke'}
|
|
17
|
+
checked:border-primary-main m-0`, type: "checkbox", onChange: (e) => {
|
|
15
18
|
onChange(e.target.checked);
|
|
16
|
-
}, checked: checked }), (0, jsx_runtime_1.jsx)(SVG_1.SVG, { paths: CHECK_PATHS, className: "hidden absolute left-1 ml-px peer-checked:block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }), text ? (0, jsx_runtime_1.jsx)("span", { className: "font-sans ml-3 text-m-base cursor-pointer", children: text }) : null] }) })));
|
|
19
|
+
}, checked: checked }), isRadio ? ((0, jsx_runtime_1.jsx)("div", { className: "left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block" })) : ((0, jsx_runtime_1.jsx)(SVG_1.SVG, { paths: CHECK_PATHS, className: "hidden absolute left-1 ml-px peer-checked:block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" })), text ? (0, jsx_runtime_1.jsx)("span", { className: "font-sans ml-3 text-m-base cursor-pointer", children: text }) : null] }) })));
|
|
17
20
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/ui-kit/Checkbox/Checkbox.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/ui-kit/Checkbox/Checkbox.tsx"],"names":[],"m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folded,
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const buttonClassName = foldButtonClasses ||
|
|
15
|
+
'border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer';
|
|
16
|
+
const getFoldButtonLabel = isActive ? 'Скрыть' : foldButtonLabel;
|
|
17
|
+
return blocks ? ((0, jsx_runtime_1.jsxs)("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses }), hiddenBlocksNum ? ((0, jsx_runtime_1.jsxs)("button", { className: buttonClassName, "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [(0, jsx_runtime_1.jsx)("span", { className: "pr-3", children: getFoldButtonLabel }), icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: "white", width: "20", height: "20", asSVG: true }) : null] })) : null] })) : null;
|
|
16
18
|
});
|
|
17
19
|
const renderBlocks = (blocks, render, { blocksToHide, isActive, containerClasses }) => {
|
|
18
20
|
const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Foldable.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/Foldable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,6CAA0C;AAC1C,uCAAoC;AACpC,yDAA+E;AAuBlE,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,MAAM,GAAG,EAAE,EACX,OAAO,EACP,eAAe,GAAG,CAAC,EACnB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAClB,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,IAAA,aAAK,EAAC,eAAe,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAE9D,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAA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eAAe,gBACd,mBAAmB,EAC/B,OAAO,EAAE,YAAY,aAErB,iCAAM,SAAS,EAAC,MAAM,YAAE,kBAAkB,GAAQ,EACjD,IAAI,CAAC,CAAC,CAAC,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAC,OAAO,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,IAC7E,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CACnB,MAAsB,EACtB,MAAc,EACd,EAAE,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAsB,EAChE,EAAE;IACF,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;IACpE,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC;IAEjD,OAAO,MAAM,CACX,4CACG,aAAa,EACd,gCAAK,SAAS,EAAE,GAAG,0CAAuB,IAAI,gBAAgB,EAAE,YAAG,YAAY,GAAO,IAClF,EACN,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -4,17 +4,17 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const TEXT_CLASSES = 'font-sans font-normal text-sm';
|
|
6
6
|
const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
|
|
7
|
-
exports.HeaderItem = (0, uni_jsx_1.JSX)(({ className, text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsxs)("a", { className: `relative inline-block bg-transparent text-center no-underline ${className
|
|
7
|
+
exports.HeaderItem = (0, uni_jsx_1.JSX)(({ className = '', text, href, target, active, onClick, children, bgColor = 'bg-white' }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("a", { className: `relative inline-block bg-transparent text-center no-underline ${className}`, href: href, target: target, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: getTextClasses(bgColor, active), children: text || children }), active ? (0, jsx_runtime_1.jsx)("div", { className: getBorderClasses(bgColor, active) }) : null] }));
|
|
9
9
|
});
|
|
10
|
-
const getTextClasses = (bgColor, active) => {
|
|
10
|
+
const getTextClasses = (bgColor, active = false) => {
|
|
11
11
|
let classes = 'text-white';
|
|
12
12
|
if (bgColor === 'bg-white') {
|
|
13
13
|
classes = active ? 'text-primary-main' : 'text-secondary-text hover:text-primary-main';
|
|
14
14
|
}
|
|
15
15
|
return `${classes} ${TEXT_CLASSES}`;
|
|
16
16
|
};
|
|
17
|
-
const getBorderClasses = (bgColor, active) => {
|
|
17
|
+
const getBorderClasses = (bgColor, active = false) => {
|
|
18
18
|
if (!active) {
|
|
19
19
|
return BORDER_CLASSES;
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderItem.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAMxC,MAAM,YAAY,GAAG,+BAA+B,CAAC;AACrD,MAAM,cAAc,GAAG,0CAA0C,CAAC;AAErD,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,UAAU,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"HeaderItem.js","sourceRoot":"","sources":["../../../src/ui-kit/HeaderItem/HeaderItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAMxC,MAAM,YAAY,GAAG,+BAA+B,CAAC;AACrD,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ni_jsx_1.JSX)((props) => {
|
|
14
14
|
const { className, headingType, title, as } = props;
|
|
15
15
|
if (!headingType) {
|
|
16
|
-
return;
|
|
16
|
+
return null;
|
|
17
17
|
}
|
|
18
18
|
const Tag = as || headingType;
|
|
19
19
|
return ((0, jsx_runtime_1.jsx)(Tag, { className: `font-sans font-medium m-0 ${HeadingClass[headingType]} ${className || ''}`, children: title }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQxC,MAAM,YAAY,GAAgC;IAChD,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;CACtB,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAEpD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO;
|
|
1
|
+
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../src/ui-kit/Heading/Heading.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQxC,MAAM,YAAY,GAAgC;IAChD,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;IACrB,EAAE,EAAE,iBAAiB;CACtB,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAEpD,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,MAAM,GAAG,GAAG,EAAE,IAAI,WAAW,CAAC;IAE9B,OAAO,CACL,uBAAC,GAAG,IAAC,SAAS,EAAE,6BAA6B,YAAY,CAAC,WAAW,CAAC,IAAI,SAAS,IAAI,EAAE,EAAE,YACxF,KAAK,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import type { ImgSource, Picture } from '../../model/Picture';
|
|
2
1
|
import type { Image, ImageProps } from './ImgProps';
|
|
3
2
|
export declare const Img: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Image>, any>, context?: any) => any;
|
|
4
|
-
export declare const ImgAsPicture: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Picture>, any>, context?: any) => any;
|
|
5
|
-
export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
|
|
@@ -1,36 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.
|
|
2
|
+
exports.Img = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// backwards compatibility with existing icons in usage
|
|
9
|
-
const icon = typeof image === 'string' ? image : image?.icon;
|
|
10
|
-
if (icon || icon === '') {
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: className, imageClassName: imageClassName, iconVersion: (0, getIconVersion_1.getIconVersion)(image), name: icon, ...iconProps }));
|
|
12
|
-
}
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(exports.ImgAsPicture, { className: className, imageClassName: imageClassName, image: image }));
|
|
5
|
+
const ImgInner_1 = require("./ImgInner");
|
|
6
|
+
exports.Img = (0, uni_jsx_1.JSX)(({ className = '', image }) => {
|
|
7
|
+
return (0, jsx_runtime_1.jsx)(ImgInner_1.ImgInner, { className: className, image: image, isMobile: true });
|
|
14
8
|
});
|
|
15
|
-
exports.ImgAsPicture = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName = '' }) => {
|
|
16
|
-
if (!image) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("picture", { className: className, children: [image?.sources?.length
|
|
20
|
-
? image.sources.map(({ src, format }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: src, type: formatToMimeType(format) }, `${index}_${src}`)))
|
|
21
|
-
: null, renderImg(image, imageClassName)] }));
|
|
22
|
-
});
|
|
23
|
-
const renderImg = (image, imageClassName = '') => {
|
|
24
|
-
const style = {
|
|
25
|
-
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
26
|
-
height: image.size?.height ? `${image.size?.height}px` : '100%',
|
|
27
|
-
};
|
|
28
|
-
const title = image.title || '';
|
|
29
|
-
const alt = image.alt || image.title;
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)("img", { src: image.src, className: `m-auto ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
|
|
31
|
-
};
|
|
32
|
-
function formatToMimeType(format) {
|
|
33
|
-
return format ? `image/${String(format)}` : undefined;
|
|
34
|
-
}
|
|
35
|
-
exports.formatToMimeType = formatToMimeType;
|
|
36
9
|
//# sourceMappingURL=Img.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"Img.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/Img.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yCAAsC;AAIzB,QAAA,GAAG,GAAG,IAAA,aAAG,EAAoB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;IACtE,OAAO,uBAAC,mBAAQ,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAI,CAAC;AAC1E,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ImgSource, Picture } from '../../model/Picture';
|
|
2
|
+
import type { ImageProps } from './ImgProps';
|
|
3
|
+
export declare const ImgAsPicture: (props: import("@redneckz/uni-jsx").PropsWithChildren<ImageProps<Picture>, any>, context?: any) => any;
|
|
4
|
+
export declare function formatToMimeType(format: ImgSource['format']): string | undefined;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.formatToMimeType = exports.ImgAsPicture = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const sourcesComparator = (a, b) => {
|
|
6
|
+
if (a.media && b.media) {
|
|
7
|
+
return a.media - b.media;
|
|
8
|
+
}
|
|
9
|
+
return 0;
|
|
10
|
+
};
|
|
11
|
+
exports.ImgAsPicture = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName = '', isMobile = false }) => {
|
|
12
|
+
if (!image) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
const pictureStyles = isMobile ? 'flex' : 'flex-none';
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
|
|
17
|
+
? image.sources
|
|
18
|
+
.sort(sourcesComparator)
|
|
19
|
+
.map(({ src, format, media, size }, index) => ((0, jsx_runtime_1.jsx)("source", { srcSet: src, type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...size }, `${index}_${src}`)))
|
|
20
|
+
: null, renderImg(image, imageClassName, isMobile)] }));
|
|
21
|
+
});
|
|
22
|
+
const renderImg = (image, imageClassName = '', isMobile = false) => {
|
|
23
|
+
const title = image.title || '';
|
|
24
|
+
const alt = image.alt || image.title;
|
|
25
|
+
const imgStyle = isMobile ? 'm-auto' : 'm-0';
|
|
26
|
+
return ((0, jsx_runtime_1.jsx)("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, ...image.size }));
|
|
27
|
+
};
|
|
28
|
+
function formatToMimeType(format) {
|
|
29
|
+
return format ? `image/${String(format)}` : undefined;
|
|
30
|
+
}
|
|
31
|
+
exports.formatToMimeType = formatToMimeType;
|
|
32
|
+
//# sourceMappingURL=ImgAsPicture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImgAsPicture.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgAsPicture.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,MAAM,iBAAiB,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE;IACnD,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE;QACtB,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;KAC1B;IAED,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAEW,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE,EAAE;IACnE,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC;IAEtD,OAAO,CACL,qCAAS,SAAS,EAAE,GAAG,aAAa,IAAI,SAAS,EAAE,aAChD,KAAK,EAAE,OAAO,EAAE,MAAM;gBACrB,CAAC,CAAC,KAAK,CAAC,OAAO;qBACV,IAAI,CAAC,iBAAiB,CAAC;qBACvB,GAAG,CAA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
|
+
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 getIconVersion_1 = require("./getIconVersion");
|
|
7
|
+
const ImgAsPicture_1 = require("./ImgAsPicture");
|
|
8
|
+
exports.ImgInner = (0, uni_jsx_1.JSX)(({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
|
|
9
|
+
if (!image) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
// backwards compatibility with existing icons in usage
|
|
13
|
+
const icon = typeof image === 'string' ? image : image.icon;
|
|
14
|
+
if (icon || icon === '') {
|
|
15
|
+
return icon.length ? ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: className, imageClassName: imageClassName, iconVersion: (0, getIconVersion_1.getIconVersion)(image), name: icon, ...iconProps })) : null;
|
|
16
|
+
}
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(ImgAsPicture_1.ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile }));
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=ImgInner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImgInner.js","sourceRoot":"","sources":["../../../src/ui-kit/Img/ImgInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uCAAoC;AACpC,qDAAkD;AAClD,iDAA8C;AAGjC,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE;IACzE,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,uDAAuD;IACvD,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;IAC5D,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACnB,uBAAC,WAAI,IACH,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,IAAA,+BAAc,EAAC,KAAK,CAAC,EAClC,IAAI,EAAE,IAAI,KACN,SAAS,GACb,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;KACV;IAED,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAgB,EACvB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,14 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Logo = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const
|
|
6
|
-
const LOGO_PATHS = [
|
|
7
|
-
'm13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z',
|
|
8
|
-
'M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z',
|
|
9
|
-
'M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z',
|
|
10
|
-
'M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z',
|
|
11
|
-
'M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z',
|
|
12
|
-
];
|
|
5
|
+
const Img_1 = require("../Img/Img");
|
|
13
6
|
const SVG_COLOR = {
|
|
14
7
|
'bg-white': 'text-primary-main',
|
|
15
8
|
transparent: 'text-white',
|
|
@@ -19,6 +12,6 @@ const TEXT_COLOR = {
|
|
|
19
12
|
transparent: 'text-white',
|
|
20
13
|
};
|
|
21
14
|
exports.Logo = (0, uni_jsx_1.JSX)(({ className = '', href, children, targetBlank, bgColor = 'bg-white', hideTitle }) => {
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [(0, jsx_runtime_1.jsx)(
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'Logo' }, className: `${SVG_COLOR[bgColor]} w-10 h-[38px]`, asSVG: true }), hideTitle ? null : ((0, jsx_runtime_1.jsx)("span", { className: `${TEXT_COLOR[bgColor]} text-sm font-medium ml-2.5`, children: children || 'Россельхозбанк' }))] }));
|
|
23
16
|
});
|
|
24
17
|
//# sourceMappingURL=Logo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,oCAAiC;AAUjC,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AACF,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE;IACnF,OAAO,CACL,+BACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC7B,sFAAgB,aAE3B,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,SAAG,EACvF,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAClB,iCAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,6BAA6B,YACjE,QAAQ,IAAI,gBAAgB,GACxB,CACR,IACC,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UniBlockProps } from '../../types';
|
|
2
|
+
interface RadioButtonItem {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
interface RadioButtonGroupProps extends UniBlockProps {
|
|
7
|
+
items: RadioButtonItem[];
|
|
8
|
+
checkedItem?: string;
|
|
9
|
+
onChangeCheckedItem: (id: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const RadioButtonGroup: (props: import("@redneckz/uni-jsx").PropsWithChildren<RadioButtonGroupProps, any>, context?: any) => any;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.RadioButtonGroup = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Checkbox_1 = require("../Checkbox/Checkbox");
|
|
6
|
+
exports.RadioButtonGroup = (0, uni_jsx_1.JSX)(({ items, checkedItem, onChangeCheckedItem }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: items?.map(({ id, text }) => ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem(id) }, id))) }));
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=RadioButtonGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mDAAgD;AAanC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,EAAE,EAAE;IAC9C,OAAO,CACL,0CACG,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5B,uBAAC,mBAAQ,IAEP,OAAO,QACP,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,KAAK,EAAE,EAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC,IAJlC,EAAE,CAKP,CACH,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|