@redneckz/wildless-cms-uni-blocks 0.3.70 → 0.3.71
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 +388 -416
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/Blocks.d.ts +0 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +7 -3
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/getCalculatorParams.js +2 -1
- package/dist/components/Calculator/getCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/getCreditRate.js +2 -1
- package/dist/components/Calculator/getCreditRate.js.map +1 -1
- package/dist/components/Calculator/getMonthlyPayment.js +2 -1
- package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.js +4 -2
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.js +3 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js +3 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.js +2 -1
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +14 -3
- package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/dist/components/ExchangeRateTile/CurrencyProps.js +9 -0
- package/dist/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +68 -9
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
- package/dist/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/dist/components/ExchangeRateTile/calculateResult.js +11 -0
- package/dist/components/ExchangeRateTile/calculateResult.js.map +1 -0
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +17 -0
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
- package/dist/components/ExchangeRateTile/formatCurrency.js +5 -1
- package/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -0
- package/dist/components/ExchangeRateTile/renderButton.js +9 -0
- package/dist/components/ExchangeRateTile/renderButton.js.map +1 -0
- package/dist/components/ExchangeRateTile/renderInput.d.ts +12 -0
- package/dist/components/ExchangeRateTile/renderInput.js +12 -0
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -0
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +4 -13
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +2 -2
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +7 -2
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
- package/dist/components/GroupBlock/GroupBlock.js +3 -3
- package/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/dist/components/Header/DropdownMenu.d.ts +13 -0
- package/dist/components/Header/DropdownMenu.js +18 -0
- package/dist/components/Header/DropdownMenu.js.map +1 -0
- package/dist/components/Header/HeaderSubMenu.js +19 -32
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +8 -4
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +2 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +7 -2
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/Tile/Tile.js +4 -4
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +5 -0
- package/dist/content-page-repository/mapJSON.d.ts +1 -1
- package/dist/content-page-repository/mapJSON.js +9 -7
- package/dist/content-page-repository/mapJSON.js.map +1 -1
- package/dist/content-page-repository/transformMarkdown.js +2 -1
- package/dist/content-page-repository/transformMarkdown.js.map +1 -1
- package/dist/content-page-repository/transformPicture.js +6 -3
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/hooks/useCreditCalculatorData.d.ts +1 -2
- package/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/dist/hooks/useExchangeRates.d.ts +2 -8
- package/dist/hooks/useExchangeRates.js +52 -3
- package/dist/hooks/useExchangeRates.js.map +1 -1
- package/dist/hooks/useTableArrowScrollControl.js +3 -3
- package/dist/hooks/useTableArrowScrollControl.js.map +1 -1
- package/dist/react/IntersectionObserverTag.d.ts +3 -0
- package/dist/react/IntersectionObserverTag.js +17 -0
- package/dist/react/IntersectionObserverTag.js.map +1 -0
- package/dist/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
- package/{mobile/dist → dist/react}/setup-fixture.js +3 -1
- package/dist/react/setup-fixture.js.map +1 -0
- package/dist/services/sitemap/isHrefActive.d.ts +1 -1
- package/dist/services/sitemap/isHrefActive.js +1 -1
- package/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/dist/ui-kit/Button/ArrowButton.d.ts +1 -1
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.js +2 -1
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Button/renderArrows.d.ts +10 -0
- package/dist/ui-kit/Button/renderArrows.js +9 -0
- package/dist/ui-kit/Button/renderArrows.js.map +1 -0
- package/dist/ui-kit/Img/Img.mobile.js +1 -1
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +6 -2
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +3 -0
- package/dist/ui-kit/InputRange/InputRange.js +10 -6
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/SVG.js +1 -1
- package/dist/ui-kit/SVG.js.map +1 -1
- package/dist/ui-kit/SearchBar.mobile.js +1 -1
- package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/Select/Select.d.ts +2 -0
- package/dist/ui-kit/Select/Select.js +2 -2
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -3
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
- package/dist/ui-kit/Tabs/Tabs.js +2 -1
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +6 -8
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/changeHashOnScroll.js +2 -1
- package/dist/utils/changeHashOnScroll.js.map +1 -1
- package/dist/utils/getCurrentDate.js +1 -1
- package/dist/utils/roundTo.d.ts +1 -0
- package/dist/utils/roundTo.js +8 -0
- package/dist/utils/roundTo.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/Blocks.d.ts +0 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +8 -4
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/getCalculatorParams.js +2 -1
- package/lib/components/Calculator/getCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/getCreditRate.js +2 -1
- package/lib/components/Calculator/getCreditRate.js.map +1 -1
- package/lib/components/Calculator/getMonthlyPayment.js +2 -1
- package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.js +4 -2
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.js +3 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js +3 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.js +2 -1
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +14 -3
- package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/lib/components/ExchangeRateTile/CurrencyProps.js +7 -0
- package/lib/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +69 -10
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
- package/lib/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/lib/components/ExchangeRateTile/calculateResult.js +7 -0
- package/lib/components/ExchangeRateTile/calculateResult.js.map +1 -0
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +14 -0
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
- package/lib/components/ExchangeRateTile/formatCurrency.js +5 -1
- package/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -0
- package/lib/components/ExchangeRateTile/renderButton.js +6 -0
- package/lib/components/ExchangeRateTile/renderButton.js.map +1 -0
- package/lib/components/ExchangeRateTile/renderInput.d.ts +12 -0
- package/lib/components/ExchangeRateTile/renderInput.js +9 -0
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -0
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +4 -13
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +2 -2
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +2 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +7 -2
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
- package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +1 -0
- package/lib/components/GroupBlock/GroupBlock.js +3 -3
- package/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/lib/components/Header/DropdownMenu.d.ts +13 -0
- package/lib/components/Header/DropdownMenu.js +16 -0
- package/lib/components/Header/DropdownMenu.js.map +1 -0
- package/lib/components/Header/HeaderSubMenu.js +19 -32
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +9 -3
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +13 -3
- package/lib/components/Insurance/Insurance.fixture.d.ts +2 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +8 -4
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.js +1 -1
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +10 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +2 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.fixture.d.ts +3 -0
- package/lib/components/Recommendation/Recommendation.js +7 -2
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +7 -1
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +3 -1
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +3 -1
- package/lib/components/Tile/Tile.js +4 -4
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +5 -0
- package/lib/content-page-repository/mapJSON.d.ts +1 -1
- package/lib/content-page-repository/mapJSON.js +9 -7
- package/lib/content-page-repository/mapJSON.js.map +1 -1
- package/lib/content-page-repository/transformMarkdown.js +2 -1
- package/lib/content-page-repository/transformMarkdown.js.map +1 -1
- package/lib/content-page-repository/transformPicture.js +6 -3
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/hooks/useCreditCalculatorData.d.ts +1 -2
- package/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/lib/hooks/useExchangeRates.d.ts +2 -8
- package/lib/hooks/useExchangeRates.js +52 -3
- package/lib/hooks/useExchangeRates.js.map +1 -1
- package/lib/hooks/useTableArrowScrollControl.js +3 -3
- package/lib/hooks/useTableArrowScrollControl.js.map +1 -1
- package/lib/react/IntersectionObserverTag.d.ts +3 -0
- package/lib/react/IntersectionObserverTag.js +14 -0
- package/lib/react/IntersectionObserverTag.js.map +1 -0
- package/lib/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
- package/{mobile/lib → lib/react}/setup-fixture.js +3 -1
- package/lib/react/setup-fixture.js.map +1 -0
- package/lib/services/sitemap/isHrefActive.d.ts +1 -1
- package/lib/services/sitemap/isHrefActive.js +1 -1
- package/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/lib/ui-kit/Button/ArrowButton.d.ts +1 -1
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Button/Button.fixture.d.ts +1 -1
- package/lib/ui-kit/Button/Button.fixture.mobile.d.ts +1 -1
- package/lib/ui-kit/Button/ButtonSection.js +2 -1
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Button/renderArrows.d.ts +10 -0
- package/lib/ui-kit/Button/renderArrows.js +6 -0
- package/lib/ui-kit/Button/renderArrows.js.map +1 -0
- package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +1 -1
- package/lib/ui-kit/Icon/Icon.fixture.d.ts +1 -1
- package/lib/ui-kit/Img/Img.mobile.js +1 -1
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +6 -2
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +3 -0
- package/lib/ui-kit/InputRange/InputRange.js +10 -6
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/List/List.fixture.d.ts +1 -1
- package/lib/ui-kit/Logo/Logo.fixture.d.ts +1 -1
- package/lib/ui-kit/SVG.js +1 -1
- package/lib/ui-kit/SVG.js.map +1 -1
- package/lib/ui-kit/SearchBar.mobile.js +1 -1
- package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/Select/Select.d.ts +2 -0
- package/lib/ui-kit/Select/Select.js +2 -2
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +10 -4
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
- package/lib/ui-kit/Tabs/Tabs.js +2 -1
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +6 -8
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/changeHashOnScroll.js +2 -1
- package/lib/utils/changeHashOnScroll.js.map +1 -1
- package/lib/utils/getCurrentDate.js +1 -1
- package/lib/utils/roundTo.d.ts +1 -0
- package/lib/utils/roundTo.js +5 -0
- package/lib/utils/roundTo.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +214 -69
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +7 -3
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/getCalculatorParams.js +2 -1
- package/mobile/dist/components/Calculator/getCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/getCreditRate.js +2 -1
- package/mobile/dist/components/Calculator/getCreditRate.js.map +1 -1
- package/mobile/dist/components/Calculator/getMonthlyPayment.js +2 -1
- package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +4 -2
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js +3 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js +2 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +14 -3
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +9 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +68 -9
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
- package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateTile/calculateResult.js +11 -0
- package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +17 -0
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +5 -1
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -0
- package/mobile/dist/components/ExchangeRateTile/renderButton.js +9 -0
- package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +12 -0
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +12 -0
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -0
- package/mobile/dist/components/Footer/MediaButton.js +4 -13
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +2 -2
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +7 -2
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
- package/mobile/dist/components/GroupBlock/GroupBlock.js +3 -3
- package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.d.ts +13 -0
- package/mobile/dist/components/Header/DropdownMenu.js +18 -0
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSubMenu.js +19 -32
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +8 -4
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +2 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +7 -2
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +4 -4
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +5 -0
- package/mobile/dist/content-page-repository/mapJSON.d.ts +1 -1
- package/mobile/dist/content-page-repository/mapJSON.js +9 -7
- package/mobile/dist/content-page-repository/mapJSON.js.map +1 -1
- package/mobile/dist/content-page-repository/transformMarkdown.js +2 -1
- package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js +6 -3
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/hooks/useCreditCalculatorData.d.ts +1 -2
- package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/dist/hooks/useExchangeRates.d.ts +2 -8
- package/mobile/dist/hooks/useExchangeRates.js +52 -3
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
- package/mobile/dist/hooks/useTableArrowScrollControl.js +3 -3
- package/mobile/dist/hooks/useTableArrowScrollControl.js.map +1 -1
- package/mobile/dist/react/IntersectionObserverTag.d.ts +3 -0
- package/mobile/dist/react/IntersectionObserverTag.js +17 -0
- package/mobile/dist/react/IntersectionObserverTag.js.map +1 -0
- package/mobile/dist/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
- package/{dist → mobile/dist/react}/setup-fixture.js +3 -1
- package/mobile/dist/react/setup-fixture.js.map +1 -0
- package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -1
- package/mobile/dist/services/sitemap/isHrefActive.js +1 -1
- package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderArrows.d.ts +10 -0
- package/mobile/dist/ui-kit/Button/renderArrows.js +9 -0
- package/mobile/dist/ui-kit/Button/renderArrows.js.map +1 -0
- package/mobile/dist/ui-kit/Img/Img.js +1 -1
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +6 -2
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +3 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.js +10 -6
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/SVG.js +1 -1
- package/mobile/dist/ui-kit/SVG.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/ui-kit/Select/Select.js +2 -2
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -3
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
- package/mobile/dist/ui-kit/Tabs/Tabs.js +2 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +6 -8
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/changeHashOnScroll.js +2 -1
- package/mobile/dist/utils/changeHashOnScroll.js.map +1 -1
- package/mobile/dist/utils/getCurrentDate.js +1 -1
- package/mobile/dist/utils/roundTo.d.ts +1 -0
- package/mobile/dist/utils/roundTo.js +8 -0
- package/mobile/dist/utils/roundTo.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +8 -4
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/getCalculatorParams.js +2 -1
- package/mobile/lib/components/Calculator/getCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/getCreditRate.js +2 -1
- package/mobile/lib/components/Calculator/getCreditRate.js.map +1 -1
- package/mobile/lib/components/Calculator/getMonthlyPayment.js +2 -1
- package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +4 -2
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js +3 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js +2 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +14 -3
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +7 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +69 -10
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
- package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateTile/calculateResult.js +7 -0
- package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +14 -0
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +5 -1
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -0
- package/mobile/lib/components/ExchangeRateTile/renderButton.js +6 -0
- package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +12 -0
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +9 -0
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -0
- package/mobile/lib/components/Footer/MediaButton.js +4 -13
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +2 -2
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +7 -2
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
- package/mobile/lib/components/GroupBlock/GroupBlock.js +3 -3
- package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.d.ts +13 -0
- package/mobile/lib/components/Header/DropdownMenu.js +16 -0
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSubMenu.js +19 -32
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +8 -4
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +2 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +7 -2
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +4 -4
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +5 -0
- package/mobile/lib/content-page-repository/mapJSON.d.ts +1 -1
- package/mobile/lib/content-page-repository/mapJSON.js +9 -7
- package/mobile/lib/content-page-repository/mapJSON.js.map +1 -1
- package/mobile/lib/content-page-repository/transformMarkdown.js +2 -1
- package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js +6 -3
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/hooks/useCreditCalculatorData.d.ts +1 -2
- package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/lib/hooks/useExchangeRates.d.ts +2 -8
- package/mobile/lib/hooks/useExchangeRates.js +52 -3
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
- package/mobile/lib/hooks/useTableArrowScrollControl.js +3 -3
- package/mobile/lib/hooks/useTableArrowScrollControl.js.map +1 -1
- package/mobile/lib/react/IntersectionObserverTag.d.ts +3 -0
- package/mobile/lib/react/IntersectionObserverTag.js +14 -0
- package/mobile/lib/react/IntersectionObserverTag.js.map +1 -0
- package/mobile/lib/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
- package/{lib → mobile/lib/react}/setup-fixture.js +3 -1
- package/mobile/lib/react/setup-fixture.js.map +1 -0
- package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -1
- package/mobile/lib/services/sitemap/isHrefActive.js +1 -1
- package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderArrows.d.ts +10 -0
- package/mobile/lib/ui-kit/Button/renderArrows.js +6 -0
- package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -0
- package/mobile/lib/ui-kit/Img/Img.js +1 -1
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +6 -2
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +3 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.js +10 -6
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/SVG.js +1 -1
- package/mobile/lib/ui-kit/SVG.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/lib/ui-kit/Select/Select.js +2 -2
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +10 -4
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
- package/mobile/lib/ui-kit/Tabs/Tabs.js +2 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +6 -8
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/changeHashOnScroll.js +2 -1
- package/mobile/lib/utils/changeHashOnScroll.js.map +1 -1
- package/mobile/lib/utils/getCurrentDate.js +1 -1
- package/mobile/lib/utils/roundTo.d.ts +1 -0
- package/mobile/lib/utils/roundTo.js +5 -0
- package/mobile/lib/utils/roundTo.js.map +1 -0
- package/mobile/src/components/Accordion/Accordion.tsx +1 -3
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +4 -8
- package/mobile/src/components/Calculator/Calculator.tsx +8 -22
- package/mobile/src/components/Calculator/getCalculatorParams.ts +3 -1
- package/mobile/src/components/Calculator/getCreditRate.ts +3 -1
- package/mobile/src/components/Calculator/getMonthlyPayment.ts +3 -1
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +0 -7
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +7 -13
- package/mobile/src/components/ComparisonTable/TableCell.tsx +7 -8
- package/mobile/src/components/ComparisonTable/TableRow.tsx +6 -9
- package/mobile/src/components/ContentPage/ContentPage.page.json +0 -5
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +20 -4
- package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +5 -0
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +4 -4
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +120 -35
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -28
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
- package/mobile/src/components/ExchangeRateTile/calculateResult.ts +8 -0
- package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +21 -0
- package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +6 -1
- package/mobile/src/components/ExchangeRateTile/renderButton.tsx +14 -0
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +43 -0
- package/mobile/src/components/Footer/MediaButton.tsx +7 -17
- package/mobile/src/components/Gallery/Gallery.tsx +2 -2
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -2
- package/mobile/src/components/Gallery/GalleryInner.tsx +10 -20
- package/mobile/src/components/GroupBlock/BlocksTypeProps.ts +4 -1
- package/mobile/src/components/GroupBlock/GroupBlock.example.json +8 -7
- package/mobile/src/components/GroupBlock/GroupBlock.tsx +9 -4
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +1 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +72 -0
- package/mobile/src/components/Header/HeaderSubMenu.tsx +45 -87
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +14 -24
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -1
- package/mobile/src/components/Placeholder/Placeholder.tsx +6 -2
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -5
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +2 -2
- package/mobile/src/components/Recommendation/Recommendation.tsx +7 -15
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +1 -5
- package/mobile/src/components/Tile/Tile.example.json +1 -0
- package/mobile/src/components/Tile/Tile.tsx +4 -2
- package/mobile/src/components/Tile/TileContent.ts +5 -0
- package/mobile/src/content-page-repository/mapJSON.ts +11 -7
- package/mobile/src/content-page-repository/transformMarkdown.ts +3 -1
- package/mobile/src/content-page-repository/transformPicture.ts +8 -3
- package/mobile/src/hooks/useCreditCalculatorData.ts +2 -3
- package/mobile/src/hooks/useExchangeRates.ts +70 -10
- package/mobile/src/hooks/useTableArrowScrollControl.ts +3 -3
- package/mobile/src/react/IntersectionObserverTag.tsx +23 -0
- package/mobile/src/{setup-fixture.ts → react/setup-fixture.ts} +5 -2
- package/mobile/src/services/sitemap/isHrefActive.ts +2 -1
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +1 -1
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +3 -1
- package/mobile/src/ui-kit/Button/renderArrows.tsx +41 -0
- package/mobile/src/ui-kit/Img/Img.tsx +1 -0
- package/mobile/src/ui-kit/Input/Input.tsx +21 -5
- package/mobile/src/ui-kit/Input/InputProps.ts +3 -0
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +14 -6
- package/mobile/src/ui-kit/SVG.tsx +2 -2
- package/mobile/src/ui-kit/Select/Select.tsx +17 -7
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +9 -4
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +3 -1
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +6 -2
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +9 -18
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +6 -4
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +4 -3
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +8 -9
- package/mobile/src/utils/changeHashOnScroll.ts +3 -1
- package/mobile/src/utils/getCurrentDate.ts +1 -1
- package/mobile/src/utils/roundTo.ts +4 -0
- package/package.json +3 -3
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +1 -1
- package/src/components/Accordion/Accordion.fixture.tsx +11 -11
- package/src/components/Accordion/Accordion.mobile.tsx +1 -3
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +1 -1
- package/src/components/Blocks.ts +0 -2
- package/src/components/Bonus/Bonus.fixture.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +4 -8
- package/src/components/Calculator/Calculator.fixture.tsx +4 -4
- package/src/components/Calculator/Calculator.tsx +8 -22
- package/src/components/Calculator/getCalculatorParams.ts +3 -1
- package/src/components/Calculator/getCreditRate.ts +3 -1
- package/src/components/Calculator/getMonthlyPayment.ts +3 -1
- package/src/components/Calculator/renderCalculatorBlock.tsx +0 -7
- package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +2 -26
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -1
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +7 -13
- package/src/components/ComparisonTable/TableCell.mobile.tsx +7 -8
- package/src/components/ComparisonTable/TableCell.tsx +7 -10
- package/src/components/ComparisonTable/TableRow.tsx +6 -9
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
- package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
- package/src/components/ContentPage/ContentPage.page.json +0 -5
- package/src/components/ContentPage/ContentPageContext.tsx +20 -4
- package/src/components/ExchangeRateTile/CurrencyProps.ts +5 -0
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +4 -4
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +120 -35
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -28
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
- package/src/components/ExchangeRateTile/calculateResult.ts +8 -0
- package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +21 -0
- package/src/components/ExchangeRateTile/formatCurrency.ts +6 -1
- package/src/components/ExchangeRateTile/renderButton.tsx +14 -0
- package/src/components/ExchangeRateTile/renderInput.tsx +43 -0
- package/src/components/Footer/Footer.fixture.mobile.tsx +1 -1
- package/src/components/Footer/Footer.fixture.tsx +1 -1
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Footer/MediaButton.tsx +7 -17
- package/src/components/Footer/TextInformation.tsx +2 -2
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +2 -24
- package/src/components/Gallery/Gallery.fixture.tsx +1 -1
- package/src/components/Gallery/Gallery.mobile.tsx +2 -2
- package/src/components/Gallery/GalleryCardInner.tsx +2 -2
- package/src/components/Gallery/GalleryInner.tsx +10 -20
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +1 -1
- package/src/components/GroupBlock/BlocksTypeProps.ts +4 -1
- package/src/components/GroupBlock/GroupBlock.example.json +8 -7
- package/src/components/GroupBlock/GroupBlock.fixture.tsx +19 -3
- package/src/components/GroupBlock/GroupBlock.tsx +9 -4
- package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
- package/src/components/GroupBlock/GroupBlocksItem.tsx +1 -1
- package/src/components/Header/DropdownMenu.tsx +72 -0
- package/src/components/Header/Header.fixture.mobile.tsx +1 -1
- package/src/components/Header/Header.fixture.tsx +1 -1
- package/src/components/Header/HeaderSubMenu.tsx +45 -87
- package/src/components/Headline/Headline.fixture.mobile.tsx +45 -4
- package/src/components/Headline/Headline.fixture.tsx +31 -7
- package/src/components/Insurance/Insurance.fixture.tsx +6 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +14 -24
- package/src/components/LikeControl/LikeControl.fixture.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +2 -2
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +2 -2
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -1
- package/src/components/LinkList/LinkList.fixture.tsx +1 -1
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
- package/src/components/Navigation/Navigation.fixture.tsx +1 -1
- package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +1 -1
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +1 -1
- package/src/components/PictureText/PictureText.fixture.tsx +1 -1
- package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +1 -1
- package/src/components/Placeholder/Placeholder.fixture.tsx +1 -1
- package/src/components/Placeholder/Placeholder.tsx +6 -2
- package/src/components/ProductBlock/ProductBlock.example.json +1 -5
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +35 -5
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +2 -2
- package/src/components/ProductTile/ProductTile.fixture.tsx +1 -1
- package/src/components/ProductTile/ProductTile.tsx +2 -2
- package/src/components/PromoTile/PromoTile.fixture.tsx +2 -2
- package/src/components/Recommendation/Recommendation.fixture.tsx +18 -13
- package/src/components/Recommendation/Recommendation.tsx +7 -15
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +38 -3
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.example.json +1 -5
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +2 -30
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -1
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +106 -103
- package/src/components/TextBlock/TextBlock.fixture.tsx +65 -87
- package/src/components/Tile/Tile.example.json +1 -0
- package/src/components/Tile/Tile.fixture.tsx +2 -1
- package/src/components/Tile/Tile.tsx +4 -2
- package/src/components/Tile/TileContent.ts +5 -0
- package/src/content-page-repository/mapJSON.ts +11 -7
- package/src/content-page-repository/transformMarkdown.ts +3 -1
- package/src/content-page-repository/transformPicture.ts +8 -3
- package/src/hooks/useCreditCalculatorData.ts +2 -3
- package/src/hooks/useExchangeRates.ts +70 -10
- package/src/hooks/useTableArrowScrollControl.ts +3 -3
- package/src/react/IntersectionObserverTag.tsx +23 -0
- package/src/{setup-fixture.ts → react/setup-fixture.ts} +5 -2
- package/src/services/sitemap/isHrefActive.ts +2 -1
- package/src/ui-kit/Button/ArrowButton.tsx +1 -1
- package/src/ui-kit/Button/Button.fixture.mobile.tsx +1 -1
- package/src/ui-kit/Button/Button.fixture.tsx +1 -1
- package/src/ui-kit/Button/ButtonSection.tsx +3 -1
- package/src/ui-kit/Button/renderArrows.tsx +41 -0
- package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +1 -1
- package/src/ui-kit/Icon/Icon.fixture.tsx +2 -2
- package/src/ui-kit/Img/Img.mobile.tsx +1 -0
- package/src/ui-kit/Input/Input.tsx +21 -5
- package/src/ui-kit/Input/InputProps.ts +3 -0
- package/src/ui-kit/InputRange/InputRange.tsx +14 -6
- package/src/ui-kit/List/List.fixture.tsx +1 -1
- package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
- package/src/ui-kit/SVG.tsx +2 -2
- package/src/ui-kit/SearchBar.mobile.tsx +1 -3
- package/src/ui-kit/Select/Select.tsx +17 -7
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +9 -4
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +3 -1
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +6 -2
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +9 -18
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +6 -4
- package/src/ui-kit/Tabs/Tabs.tsx +4 -3
- package/src/ui-kit/TopItem/TopItem.fixture.tsx +1 -1
- package/src/ui-kit/TopItem/TopItem.tsx +8 -9
- package/src/utils/changeHashOnScroll.ts +3 -1
- package/src/utils/getCurrentDate.ts +1 -1
- package/src/utils/roundTo.ts +4 -0
- package/dist/components/CreditCalculator/CreditCalculator.d.ts +0 -5
- package/dist/components/CreditCalculator/CreditCalculator.js +0 -14
- package/dist/components/CreditCalculator/CreditCalculator.js.map +0 -1
- package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
- package/dist/components/CreditCalculator/CreditCalculatorContent.js +0 -2
- package/dist/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
- package/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
- package/dist/components/CreditCalculator/CreditCalculatorForm.js +0 -53
- package/dist/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
- package/dist/components/CreditCalculator/constants.d.ts +0 -7
- package/dist/components/CreditCalculator/constants.js +0 -10
- package/dist/components/CreditCalculator/constants.js.map +0 -1
- package/dist/components/CreditCalculator/defaultTabs.d.ts +0 -2
- package/dist/components/CreditCalculator/defaultTabs.js +0 -23
- package/dist/components/CreditCalculator/defaultTabs.js.map +0 -1
- package/dist/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
- package/dist/components/CreditCalculator/getCalculatorParams.js +0 -11
- package/dist/components/CreditCalculator/getCalculatorParams.js.map +0 -1
- package/dist/components/CreditCalculator/getCreditRate.d.ts +0 -7
- package/dist/components/CreditCalculator/getCreditRate.js +0 -13
- package/dist/components/CreditCalculator/getCreditRate.js.map +0 -1
- package/dist/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
- package/dist/components/CreditCalculator/getCreditTermYears.js +0 -15
- package/dist/components/CreditCalculator/getCreditTermYears.js.map +0 -1
- package/dist/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
- package/dist/components/CreditCalculator/getDefaultMonths.js +0 -8
- package/dist/components/CreditCalculator/getDefaultMonths.js.map +0 -1
- package/dist/components/CreditCalculator/getDefaultSum.d.ts +0 -2
- package/dist/components/CreditCalculator/getDefaultSum.js +0 -8
- package/dist/components/CreditCalculator/getDefaultSum.js.map +0 -1
- package/dist/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
- package/dist/components/CreditCalculator/getMonthlyPayment.js +0 -19
- package/dist/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
- package/dist/components/CreditCalculator/renderButton.d.ts +0 -1
- package/dist/components/CreditCalculator/renderButton.js +0 -15
- package/dist/components/CreditCalculator/renderButton.js.map +0 -1
- package/dist/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
- package/dist/components/CreditCalculator/renderMonthsInput.js +0 -11
- package/dist/components/CreditCalculator/renderMonthsInput.js.map +0 -1
- package/dist/components/CreditCalculator/renderProposal.d.ts +0 -1
- package/dist/components/CreditCalculator/renderProposal.js +0 -9
- package/dist/components/CreditCalculator/renderProposal.js.map +0 -1
- package/dist/components/CreditCalculator/renderTermsButton.d.ts +0 -1
- package/dist/components/CreditCalculator/renderTermsButton.js +0 -9
- package/dist/components/CreditCalculator/renderTermsButton.js.map +0 -1
- package/dist/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
- package/dist/components/CreditCalculator/renderWantedSumInput.js +0 -18
- package/dist/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
- package/dist/components/Header/HeaderSubMenuObserver.d.ts +0 -1
- package/dist/components/Header/HeaderSubMenuObserver.js +0 -36
- package/dist/components/Header/HeaderSubMenuObserver.js.map +0 -1
- package/dist/setup-fixture.js.map +0 -1
- package/lib/components/CreditCalculator/CreditCalculator.d.ts +0 -5
- package/lib/components/CreditCalculator/CreditCalculator.fixture.d.ts +0 -4
- package/lib/components/CreditCalculator/CreditCalculator.js +0 -12
- package/lib/components/CreditCalculator/CreditCalculator.js.map +0 -1
- package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
- package/lib/components/CreditCalculator/CreditCalculatorContent.js +0 -2
- package/lib/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
- package/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
- package/lib/components/CreditCalculator/CreditCalculatorForm.js +0 -51
- package/lib/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
- package/lib/components/CreditCalculator/constants.d.ts +0 -7
- package/lib/components/CreditCalculator/constants.js +0 -8
- package/lib/components/CreditCalculator/constants.js.map +0 -1
- package/lib/components/CreditCalculator/defaultTabs.d.ts +0 -2
- package/lib/components/CreditCalculator/defaultTabs.js +0 -21
- package/lib/components/CreditCalculator/defaultTabs.js.map +0 -1
- package/lib/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
- package/lib/components/CreditCalculator/getCalculatorParams.js +0 -8
- package/lib/components/CreditCalculator/getCalculatorParams.js.map +0 -1
- package/lib/components/CreditCalculator/getCreditRate.d.ts +0 -7
- package/lib/components/CreditCalculator/getCreditRate.js +0 -10
- package/lib/components/CreditCalculator/getCreditRate.js.map +0 -1
- package/lib/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
- package/lib/components/CreditCalculator/getCreditTermYears.js +0 -12
- package/lib/components/CreditCalculator/getCreditTermYears.js.map +0 -1
- package/lib/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
- package/lib/components/CreditCalculator/getDefaultMonths.js +0 -5
- package/lib/components/CreditCalculator/getDefaultMonths.js.map +0 -1
- package/lib/components/CreditCalculator/getDefaultSum.d.ts +0 -2
- package/lib/components/CreditCalculator/getDefaultSum.js +0 -5
- package/lib/components/CreditCalculator/getDefaultSum.js.map +0 -1
- package/lib/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
- package/lib/components/CreditCalculator/getMonthlyPayment.js +0 -16
- package/lib/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
- package/lib/components/CreditCalculator/renderButton.d.ts +0 -1
- package/lib/components/CreditCalculator/renderButton.js +0 -12
- package/lib/components/CreditCalculator/renderButton.js.map +0 -1
- package/lib/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
- package/lib/components/CreditCalculator/renderMonthsInput.js +0 -8
- package/lib/components/CreditCalculator/renderMonthsInput.js.map +0 -1
- package/lib/components/CreditCalculator/renderProposal.d.ts +0 -1
- package/lib/components/CreditCalculator/renderProposal.js +0 -6
- package/lib/components/CreditCalculator/renderProposal.js.map +0 -1
- package/lib/components/CreditCalculator/renderTermsButton.d.ts +0 -1
- package/lib/components/CreditCalculator/renderTermsButton.js +0 -6
- package/lib/components/CreditCalculator/renderTermsButton.js.map +0 -1
- package/lib/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
- package/lib/components/CreditCalculator/renderWantedSumInput.js +0 -15
- package/lib/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
- package/lib/components/Header/HeaderSubMenuObserver.d.ts +0 -1
- package/lib/components/Header/HeaderSubMenuObserver.js +0 -34
- package/lib/components/Header/HeaderSubMenuObserver.js.map +0 -1
- package/lib/setup-fixture.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +0 -5
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js +0 -14
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.js +0 -2
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js +0 -53
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/constants.d.ts +0 -7
- package/mobile/dist/components/CreditCalculator/constants.js +0 -10
- package/mobile/dist/components/CreditCalculator/constants.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/defaultTabs.d.ts +0 -2
- package/mobile/dist/components/CreditCalculator/defaultTabs.js +0 -23
- package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.js +0 -11
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getCreditRate.d.ts +0 -7
- package/mobile/dist/components/CreditCalculator/getCreditRate.js +0 -13
- package/mobile/dist/components/CreditCalculator/getCreditRate.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.js +0 -15
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.js +0 -8
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getDefaultSum.d.ts +0 -2
- package/mobile/dist/components/CreditCalculator/getDefaultSum.js +0 -8
- package/mobile/dist/components/CreditCalculator/getDefaultSum.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js +0 -19
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderButton.d.ts +0 -1
- package/mobile/dist/components/CreditCalculator/renderButton.js +0 -15
- package/mobile/dist/components/CreditCalculator/renderButton.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.js +0 -11
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderProposal.d.ts +0 -1
- package/mobile/dist/components/CreditCalculator/renderProposal.js +0 -9
- package/mobile/dist/components/CreditCalculator/renderProposal.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderTermsButton.d.ts +0 -1
- package/mobile/dist/components/CreditCalculator/renderTermsButton.js +0 -9
- package/mobile/dist/components/CreditCalculator/renderTermsButton.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js +0 -18
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
- package/mobile/dist/components/Header/HeaderSubMenuObserver.d.ts +0 -1
- package/mobile/dist/components/Header/HeaderSubMenuObserver.js +0 -36
- package/mobile/dist/components/Header/HeaderSubMenuObserver.js.map +0 -1
- package/mobile/dist/setup-fixture.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +0 -5
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js +0 -12
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js +0 -2
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js +0 -51
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/constants.d.ts +0 -7
- package/mobile/lib/components/CreditCalculator/constants.js +0 -8
- package/mobile/lib/components/CreditCalculator/constants.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/defaultTabs.d.ts +0 -2
- package/mobile/lib/components/CreditCalculator/defaultTabs.js +0 -21
- package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.js +0 -8
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getCreditRate.d.ts +0 -7
- package/mobile/lib/components/CreditCalculator/getCreditRate.js +0 -10
- package/mobile/lib/components/CreditCalculator/getCreditRate.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.js +0 -12
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.js +0 -5
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getDefaultSum.d.ts +0 -2
- package/mobile/lib/components/CreditCalculator/getDefaultSum.js +0 -5
- package/mobile/lib/components/CreditCalculator/getDefaultSum.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js +0 -16
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderButton.d.ts +0 -1
- package/mobile/lib/components/CreditCalculator/renderButton.js +0 -12
- package/mobile/lib/components/CreditCalculator/renderButton.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.js +0 -8
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderProposal.d.ts +0 -1
- package/mobile/lib/components/CreditCalculator/renderProposal.js +0 -6
- package/mobile/lib/components/CreditCalculator/renderProposal.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderTermsButton.d.ts +0 -1
- package/mobile/lib/components/CreditCalculator/renderTermsButton.js +0 -6
- package/mobile/lib/components/CreditCalculator/renderTermsButton.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js +0 -15
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
- package/mobile/lib/components/Header/HeaderSubMenuObserver.d.ts +0 -1
- package/mobile/lib/components/Header/HeaderSubMenuObserver.js +0 -34
- package/mobile/lib/components/Header/HeaderSubMenuObserver.js.map +0 -1
- package/mobile/lib/setup-fixture.js.map +0 -1
- package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +0 -25
- package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +0 -31
- package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +0 -34
- package/mobile/src/components/CreditCalculator/CreditCalculatorForm.tsx +0 -92
- package/mobile/src/components/CreditCalculator/constants.ts +0 -8
- package/mobile/src/components/CreditCalculator/defaultTabs.ts +0 -22
- package/mobile/src/components/CreditCalculator/getCalculatorParams.ts +0 -16
- package/mobile/src/components/CreditCalculator/getCreditRate.ts +0 -18
- package/mobile/src/components/CreditCalculator/getCreditTermYears.spec.ts +0 -10
- package/mobile/src/components/CreditCalculator/getCreditTermYears.ts +0 -15
- package/mobile/src/components/CreditCalculator/getDefaultMonths.ts +0 -7
- package/mobile/src/components/CreditCalculator/getDefaultSum.ts +0 -7
- package/mobile/src/components/CreditCalculator/getMonthlyPayment.ts +0 -32
- package/mobile/src/components/CreditCalculator/renderButton.tsx +0 -23
- package/mobile/src/components/CreditCalculator/renderMonthsInput.tsx +0 -29
- package/mobile/src/components/CreditCalculator/renderProposal.tsx +0 -13
- package/mobile/src/components/CreditCalculator/renderTermsButton.tsx +0 -16
- package/mobile/src/components/CreditCalculator/renderWantedSumInput.tsx +0 -36
- package/mobile/src/components/Header/HeaderSubMenuObserver.ts +0 -48
- package/src/components/CreditCalculator/CreditCalculator.example.json +0 -25
- package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +0 -32
- package/src/components/CreditCalculator/CreditCalculator.tsx +0 -31
- package/src/components/CreditCalculator/CreditCalculatorContent.ts +0 -34
- package/src/components/CreditCalculator/CreditCalculatorForm.tsx +0 -92
- package/src/components/CreditCalculator/constants.ts +0 -8
- package/src/components/CreditCalculator/defaultTabs.ts +0 -22
- package/src/components/CreditCalculator/getCalculatorParams.ts +0 -16
- package/src/components/CreditCalculator/getCreditRate.ts +0 -18
- package/src/components/CreditCalculator/getCreditTermYears.spec.ts +0 -10
- package/src/components/CreditCalculator/getCreditTermYears.ts +0 -15
- package/src/components/CreditCalculator/getDefaultMonths.ts +0 -7
- package/src/components/CreditCalculator/getDefaultSum.ts +0 -7
- package/src/components/CreditCalculator/getMonthlyPayment.ts +0 -32
- package/src/components/CreditCalculator/renderButton.tsx +0 -23
- package/src/components/CreditCalculator/renderMonthsInput.tsx +0 -29
- package/src/components/CreditCalculator/renderProposal.tsx +0 -13
- package/src/components/CreditCalculator/renderTermsButton.tsx +0 -16
- package/src/components/CreditCalculator/renderWantedSumInput.tsx +0 -36
- package/src/components/Header/HeaderSubMenuObserver.ts +0 -48
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.callbackCurrencySelect = void 0;
|
|
3
|
+
const tableFunc_1 = require("../../utils/tableFunc");
|
|
4
|
+
const CurrencyProps_1 = require("./CurrencyProps");
|
|
5
|
+
const callbackCurrencySelect = (props) => (0, tableFunc_1.tableFunc)([
|
|
6
|
+
[
|
|
7
|
+
(_) => _.value !== CurrencyProps_1.Currency.RUB && _.oppositeValue !== CurrencyProps_1.Currency.RUB,
|
|
8
|
+
() => props.handleConvert(props.value, CurrencyProps_1.Currency.RUB),
|
|
9
|
+
],
|
|
10
|
+
[
|
|
11
|
+
(_) => _.value === CurrencyProps_1.Currency.RUB && _.oppositeValue === CurrencyProps_1.Currency.RUB,
|
|
12
|
+
() => props.handleConvert(props.value, CurrencyProps_1.Currency.USD),
|
|
13
|
+
],
|
|
14
|
+
[() => true, () => props.handleConvert(props.value)],
|
|
15
|
+
])(props)?.();
|
|
16
|
+
exports.callbackCurrencySelect = callbackCurrencySelect;
|
|
17
|
+
//# sourceMappingURL=callbackCurrencySelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callbackCurrencySelect.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/callbackCurrencySelect.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,mDAA2C;AAQpC,MAAM,sBAAsB,GAAG,CAAC,KAAqB,EAAE,EAAE,CAC9D,IAAA,qBAAS,EAA6B;IACpC;QACE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,wBAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,aAAa,KAAK,wBAAQ,CAAC,GAAG;QACnE,GAAG,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,EAAE,wBAAQ,CAAC,GAAG,CAAC;KACrD;IACD;QACE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,wBAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,aAAa,KAAK,wBAAQ,CAAC,GAAG;QACnE,GAAG,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,EAAE,wBAAQ,CAAC,GAAG,CAAC;KACrD;IACD,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;CACrD,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;AAXH,QAAA,sBAAsB,0BAWnB"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.formatCurrency = void 0;
|
|
3
|
-
const
|
|
3
|
+
const CurrencyProps_1 = require("./CurrencyProps");
|
|
4
|
+
const currencyNumberFormat = new Intl.NumberFormat('ru', {
|
|
5
|
+
style: 'currency',
|
|
6
|
+
currency: CurrencyProps_1.Currency.RUB,
|
|
7
|
+
});
|
|
4
8
|
const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
|
|
5
9
|
exports.formatCurrency = formatCurrency;
|
|
6
10
|
//# sourceMappingURL=formatCurrency.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatCurrency.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/formatCurrency.ts"],"names":[],"mappings":";;AAAA,MAAM,oBAAoB,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"formatCurrency.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/formatCurrency.ts"],"names":[],"mappings":";;AAAA,mDAA2C;AAE3C,MAAM,oBAAoB,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE;IACvD,KAAK,EAAE,UAAU;IACjB,QAAQ,EAAE,wBAAQ,CAAC,GAAG;CACvB,CAAC,CAAC;AAEI,MAAM,cAAc,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAAvF,QAAA,cAAc,kBAAyE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function renderButton(): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderButton = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
5
|
+
function renderButton() {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border mt-3.5 py-3 h-12 w-full", version: "primary", href: "https://coins.rshb.ru/exchange", target: "_blank", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" }));
|
|
7
|
+
}
|
|
8
|
+
exports.renderButton = renderButton;
|
|
9
|
+
//# sourceMappingURL=renderButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderButton.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/renderButton.tsx"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,SAAgB,YAAY;IAC1B,OAAO,CACL,uBAAC,eAAM,IACL,SAAS,EAAC,oCAAoC,EAC9C,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,gCAAgC,EACrC,MAAM,EAAC,QAAQ,0FAGR,CACV,CAAC;AACJ,CAAC;AAXD,oCAWC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Currency } from './CurrencyProps';
|
|
2
|
+
import type { ExchangeCurrencyItem } from './ExchangeCurrencyCalculator';
|
|
3
|
+
interface InputProps {
|
|
4
|
+
placeholder: string;
|
|
5
|
+
rates: ExchangeCurrencyItem[];
|
|
6
|
+
selected: string;
|
|
7
|
+
setSelected: (value: Currency) => void;
|
|
8
|
+
value: string;
|
|
9
|
+
setValue: (value: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function renderInput(props: InputProps): any;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderInput = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const Input_1 = require("../../ui-kit/Input/Input");
|
|
5
|
+
const Select_1 = require("../../ui-kit/Select/Select");
|
|
6
|
+
const SelectOption_1 = require("../../ui-kit/Select/SelectOption");
|
|
7
|
+
function renderInput(props) {
|
|
8
|
+
const { placeholder, rates, selected, value, setValue, setSelected } = props;
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex items-center", children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { className: "h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12", placeholder: placeholder, type: "text", value: value, onChange: setValue }), rates.length ? ((0, jsx_runtime_1.jsx)(Select_1.Select, { className: "h-9 -translate-x-4", value: selected, onChange: (_) => setSelected(_), children: rates.map((_, i) => ((0, jsx_runtime_1.jsx)(SelectOption_1.SelectOption, { value: _.code, children: _.code }, String(i)))) })) : null] }));
|
|
10
|
+
}
|
|
11
|
+
exports.renderInput = renderInput;
|
|
12
|
+
//# sourceMappingURL=renderInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderInput.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/renderInput.tsx"],"names":[],"mappings":";;;AAAA,oDAAiD;AACjD,uDAAoD;AACpD,mEAAgE;AAahE,SAAgB,WAAW,CAAC,KAAiB;IAC3C,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE7E,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,aAAK,IACJ,SAAS,EAAC,uFAAuF,EACjG,WAAW,EAAE,WAAW,EACxB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,GAClB,EACD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,eAAM,IACL,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAa,CAAC,YAE1C,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,2BAAY,IAAiB,KAAK,EAAE,CAAC,CAAC,IAAI,YACxC,CAAC,CAAC,IAAI,IADU,MAAM,CAAC,CAAC,CAAC,CAEb,CAChB,CAAC,GACK,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AA3BD,kCA2BC"}
|
|
@@ -11,6 +11,6 @@ const SocialMedia_1 = require("./SocialMedia");
|
|
|
11
11
|
const TextInformation_1 = require("./TextInformation");
|
|
12
12
|
const LEFT_COL_WIDTH_FULL_HD = 'w-[204px]';
|
|
13
13
|
exports.Footer = (0, uni_jsx_1.JSX)(({ className, documents, relatedEnterprises, contacts, socialMedia, mobileApps, topItems, context, anchor = null, }) => {
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("footer", { className: `
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("footer", { className: `p-9 bg-white ${className || ''}`, id: anchor, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-[54px] pb-[30px] xl:gap-8", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: LEFT_COL_WIDTH_FULL_HD }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { context: context, className: "grow" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-[54px] xl:gap-8", children: [(0, jsx_runtime_1.jsxs)("div", { className: `${LEFT_COL_WIDTH_FULL_HD} flex flex-col shrink-0 overflow-hidden`, children: [(0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { items: contacts, context: context, hasButton: true }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia, context: context, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "mt-6", media: mobileApps, context: context, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), (0, jsx_runtime_1.jsx)(Sitemap_1.Sitemap, { className: "pt-[3px]", context: context, items: topItems })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { className: "mt-[98px]", links: relatedEnterprises, context: context }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents, context: context })] }));
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,gEAA6D;AAC7D,yCAAsC;AAEtC,iEAA8D;AAC9D,uCAAoC;AACpC,+CAA4C;AAC5C,uDAAoD;AAEpD,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAI9B,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,UAAU,EACV,QAAQ,EACR,OAAO,EACP,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,OAAO,CACL,oCAAQ,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,gEAA6D;AAC7D,yCAAsC;AAEtC,iEAA8D;AAC9D,uCAAoC;AACpC,+CAA4C;AAC5C,uDAAoD;AAEpD,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAI9B,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,UAA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com'],
|
|
16
14
|
icon: { icon: 'VKIcon' },
|
|
17
15
|
label: 'ВКонтакте',
|
|
18
|
-
width: '24px',
|
|
19
|
-
height: '12px',
|
|
20
16
|
},
|
|
21
17
|
{
|
|
22
18
|
origins: ['ok.ru'],
|
|
23
19
|
icon: { icon: 'OkIcon' },
|
|
24
20
|
label: 'Одноклассники',
|
|
25
|
-
width: '12px',
|
|
26
|
-
height: '20px',
|
|
27
21
|
},
|
|
28
22
|
{
|
|
29
23
|
origins: ['apps.apple.com'],
|
|
30
24
|
icon: { icon: 'AppleIcon' },
|
|
31
25
|
label: 'App Store',
|
|
32
|
-
width: '20px',
|
|
33
|
-
height: '22px',
|
|
34
26
|
},
|
|
35
27
|
{
|
|
36
28
|
origins: ['play.google.com'],
|
|
37
29
|
icon: { icon: 'PlayMarketIcon' },
|
|
38
30
|
label: 'Google Play',
|
|
39
|
-
width: '21px',
|
|
40
|
-
height: '21px',
|
|
41
31
|
},
|
|
42
32
|
];
|
|
43
33
|
exports.MediaButton = (0, uni_jsx_1.JSX)(({ href, version = 'primary' }) => {
|
|
44
|
-
const { icon,
|
|
45
|
-
if (!icon)
|
|
34
|
+
const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
35
|
+
if (!icon) {
|
|
46
36
|
return null;
|
|
37
|
+
}
|
|
47
38
|
const classes = version === 'secondary'
|
|
48
39
|
? 'bg-secondary-light hover:bg-secondary-hover'
|
|
49
40
|
: 'border-main-divider border-solid border-[1px] hover:bg-primary-main';
|
|
50
41
|
const isPrimary = version === 'primary';
|
|
51
|
-
return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image:
|
|
42
|
+
return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, imageClassName: isPrimary ? 'group-hover:text-white' : '', width: "24", height: "24", asSVG: true })) : null }));
|
|
52
43
|
});
|
|
53
44
|
//# sourceMappingURL=MediaButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAE3C,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAE3C,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,eAAe;KACvB;IACD;QACE,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;QAC3B,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;QAChC,KAAK,EAAE,aAAa;KACrB;CACF,CAAC;AAOW,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;IACjF,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GACnB,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAEhF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,OAAO,GACX,OAAO,KAAK,WAAW;QACrB,CAAC,CAAC,6CAA6C;QAC/C,CAAC,CAAC,qEAAqE,CAAC;IAE5E,MAAM,SAAS,GAAG,OAAO,KAAK,SAAS,CAAC;IAExC,OAAO,CACL,8BACE,SAAS,EAAE,0EAA0E,OAAO,IAC1F,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EACnC,EAAE,EACF,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,YAExB,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,KAAK,EAAE,IAAI,EACX,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,EACzD,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ const useLink_1 = require("../../hooks/useLink");
|
|
|
6
6
|
exports.TextInformation = (0, uni_jsx_1.JSX)(({ className, links, context }) => {
|
|
7
7
|
const router = context.useRouter();
|
|
8
8
|
const { handlerDecorator } = context;
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "pt-5
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "pt-5", children: (0, jsx_runtime_1.jsx)("span", { className: "font-sans font-light text-xs text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-start items-start gap-5 pt-2.5", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(TextInformationLink, { index: i, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
|
|
10
10
|
});
|
|
11
11
|
const TextInformationLink = (0, uni_jsx_1.JSX)(({ className, index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans font-light text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${className || ''}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
|
|
12
12
|
//# sourceMappingURL=TextInformation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInformation.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAIjC,QAAA,eAAe,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACrC,OAAO,CACL,iCAAK,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aAClC,gCAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"TextInformation.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.tsx"],"names":[],"m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
}
|
|
20
20
|
function renderCard(card, key) {
|
|
21
21
|
return ((0, jsx_runtime_1.jsxs)("div", { className: `h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
22
|
-
${blockStyle[card.version ?? 'primary']}`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [card.image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? (0, jsx_runtime_1.jsx)("h3", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.
|
|
22
|
+
${blockStyle[card.version ?? 'primary']}`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [card.image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? (0, jsx_runtime_1.jsx)("h3", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.isDotted, card.version) : null] }), card?.button?.text ? renderButton(card.button) : null] }, key));
|
|
23
23
|
}
|
|
24
24
|
function renderButton(button) {
|
|
25
25
|
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-3", appendLeft: button?.icon && (0, jsx_runtime_1.jsx)(Img_1.Img, { image: button?.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
|
|
@@ -27,7 +27,7 @@ function renderButton(button) {
|
|
|
27
27
|
function renderDescription(card) {
|
|
28
28
|
return ((0, jsx_runtime_1.jsx)("div", { className: `text-secondary-text mt-1 text-m-sm ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
|
|
29
29
|
}
|
|
30
|
-
function renderItems(items, version = 'primary'
|
|
30
|
+
function renderItems(items, isDotted, version = 'primary') {
|
|
31
31
|
return ((0, jsx_runtime_1.jsx)("section", { className: "mt-3", children: items.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { children: [isDotted ? (0, jsx_runtime_1.jsx)("div", { className: (0, ListItem_1.getListStyle)(version) }) : null, (0, jsx_runtime_1.jsx)("span", { className: "text-m-md font-medium", children: item.title }), (0, jsx_runtime_1.jsx)("span", { className: `text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
|
|
32
32
|
}
|
|
33
33
|
//# sourceMappingURL=Gallery.mobile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.mobile.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AACpD,0DAAuD;AACvD,8CAA2C;AAC3C,yDAA0D;AAC1D,qFAAkF;AAKlF,MAAM,UAAU,GAAiC;IAC/C,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EACxB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,qCACE,SAAS,EAAE,2EAA2E,SAAS,EAAE,aAEjG,iCAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,eAAe,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EACzD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,sDAAsD,YAClE,WAAW,GACR,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,iBAAiB,CAA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C3D,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAoB,EAAE,QAAQ,EAAE,UAAwB,SAAS;IACpF,OAAO,CACL,oCAAS,SAAS,EAAC,MAAM,YACtB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,4CACG,QAAQ,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,IAAA,uBAAY,EAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EAC5D,iCAAM,SAAS,EAAC,uBAAuB,YAAE,IAAI,CAAC,KAAK,GAAQ,EAC3D,iCAAM,SAAS,EAAE,kBAAkB,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,YACpF,IAAI,CAAC,IAAI,GACL,KALC,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -7,7 +7,7 @@ const Img_1 = require("../../ui-kit/Img/Img");
|
|
|
7
7
|
const List_1 = require("../../ui-kit/List/List");
|
|
8
8
|
exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, description, image, items, button, version, isDotted = true }) => {
|
|
9
9
|
const titleStyleClasses = getTitleStyle(version);
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "h-full flex flex-col justify-between text-center", children: [(0, jsx_runtime_1.jsxs)("div", { children: [image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: `font-light text-m-md-new ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items,
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "h-full flex flex-col justify-between text-center", children: [(0, jsx_runtime_1.jsxs)("div", { children: [image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: `font-light text-m-md-new ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, isDotted, version) : null] }), button?.text ? renderButton(button) : null] }));
|
|
11
11
|
});
|
|
12
12
|
function renderButton(button) {
|
|
13
13
|
return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-6 w-full", appendLeft: button.icon && (0, jsx_runtime_1.jsx)(Img_1.Img, { image: button.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
|
|
@@ -15,7 +15,7 @@ function renderButton(button) {
|
|
|
15
15
|
function renderCardTitle(title, className) {
|
|
16
16
|
return (0, jsx_runtime_1.jsx)("div", { className: `text-xl m-0 ${className}`, children: title });
|
|
17
17
|
}
|
|
18
|
-
function renderItems(items, version = 'primary'
|
|
18
|
+
function renderItems(items, isDotted, version = 'primary') {
|
|
19
19
|
return ((0, jsx_runtime_1.jsx)(List_1.List, { className: `max-w-[308px] mt-2 text-sm ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
|
|
20
20
|
}
|
|
21
21
|
function getTitleStyle(version) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCardInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AACpD,8CAA2C;AAC3C,iDAA8C;AAGjC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,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AE,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAc,CAAC,EAC5E,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,OAAO;IAC5B,OAAO;UACC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE;OACrD,CAAC;AACR,CAAC"}
|
|
@@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.GalleryInner = 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 ArrowButton_1 = require("../../ui-kit/Button/ArrowButton");
|
|
6
5
|
const constants_1 = require("./constants");
|
|
7
6
|
const GalleryContainer_1 = require("./GalleryContainer");
|
|
7
|
+
const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
|
|
8
8
|
exports.GalleryInner = (0, uni_jsx_1.JSX)(({ context, cards = [], className = '', version = 'normal', anchor = null, ...rest }) => {
|
|
9
9
|
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
10
10
|
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
@@ -13,6 +13,11 @@ exports.GalleryInner = (0, uni_jsx_1.JSX)(({ context, cards = [], className = ''
|
|
|
13
13
|
const showNextButton = isGalleryScrollAvailable &&
|
|
14
14
|
cards?.length - activeCardIndex > constants_1.galleryLengthForScrollMap[version];
|
|
15
15
|
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${className}`, id: anchor, children: [(0, jsx_runtime_1.jsx)(GalleryContainer_1.GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }),
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${className}`, id: anchor, children: [(0, jsx_runtime_1.jsx)(GalleryContainer_1.GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), (0, renderArrows_1.renderArrows)({
|
|
17
|
+
handler: [handlePrevClick, handleNextClick],
|
|
18
|
+
isShown: [showPrevButton, showNextButton],
|
|
19
|
+
btnClass: ['left-8', 'right-8'],
|
|
20
|
+
className: 'top-1/2',
|
|
21
|
+
}), (0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white" }), (0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white" })] }));
|
|
17
22
|
});
|
|
18
23
|
//# sourceMappingURL=GalleryInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"GalleryInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,2CAAwD;AACxD,yDAAsD;AACtD,mEAAgE;AAMnD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,OAAO,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,GAAG,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtF,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IACtE,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAEtE,MAAM,wBAAwB,GAAG,KAAK,EAAE,MAAM,GAAG,qCAAyB,CAAC,OAAO,CAAC,CAAC;IAEpF,MAAM,cAAc,GAClB,wBAAwB;QACxB,KAAK,EAAE,MAAM,GAAG,eAAe,GAAG,qCAAyB,CAAC,OAAO,CAAC,CAAC;IAEvE,MAAM,cAAc,GAAG,wBAAwB,IAAI,eAAe,GAAG,CAAC,CAAC;IAEvE,OAAO,CACL,qCACE,SAAS,EAAE,0EAA0E,SAAS,EAAE,EAChG,EAAE,EAAE,MAAM,aAEV,uBAAC,mCAAgB,IACf,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,KAC5B,IAAI,GACR,EACD,IAAA,2BAAY,EAAC;gBACZ,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;gBAC3C,OAAO,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;gBACzC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;gBAC/B,SAAS,EAAE,SAAS;aACrB,CAAC,EACF,gCAAK,SAAS,EAAC,+DAA+D,GAAG,EACjF,gCAAK,SAAS,EAAC,8DAA8D,GAAG,IACxE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -5,15 +5,15 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const GroupBlockTabs_1 = require("./GroupBlockTabs");
|
|
6
6
|
const GroupBlocksItem_1 = require("./GroupBlocksItem");
|
|
7
7
|
const filterBlocksByTag_1 = require("./filterBlocksByTag");
|
|
8
|
-
exports.GroupBlock = (0, uni_jsx_1.JSX)(({ className = '', tabs, context, anchor = null, groupBlocks = [] }) => {
|
|
8
|
+
exports.GroupBlock = (0, uni_jsx_1.JSX)(({ className = '', tabs, context, anchor = null, groupBlocks = [], isShowCounter }) => {
|
|
9
9
|
const [currentTag, setCurrentTag] = context.useState(tabs?.[0]?.tag);
|
|
10
10
|
const filteredBlocks = (0, filterBlocksByTag_1.filterBlocksByTag)(groupBlocks, currentTag);
|
|
11
11
|
const tabsNewMap = tabs?.map((tab) => {
|
|
12
12
|
const count = tab.tag
|
|
13
|
-
? groupBlocks.filter((block) => block?.tags?.includes(
|
|
13
|
+
? groupBlocks.filter((block) => block?.tags?.includes(tab.tag)).length
|
|
14
14
|
: groupBlocks.length;
|
|
15
15
|
return { ...tab, count };
|
|
16
16
|
});
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)("section", { id: anchor, className: `box-border gap-1
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)("section", { id: anchor, className: `box-border gap-1 ${className}`, children: [tabsNewMap?.length ? ((0, jsx_runtime_1.jsx)(GroupBlockTabs_1.GroupBlockTabs, { currentTag: currentTag, onTabClick: setCurrentTag, tabs: tabsNewMap, isShowCounter: isShowCounter })) : null, groupBlocks.length ? ((0, jsx_runtime_1.jsx)(GroupBlocksItem_1.GroupBlocksItem, { context: context, groupBlocks: filteredBlocks })) : null] }));
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=GroupBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupBlock.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qDAAkD;AAClD,uDAAoD;AACpD,2DAAwD;AAU3C,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"GroupBlock.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBl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Ac,GAAI,CACnE,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -3,7 +3,7 @@ exports.GroupBlockTabs = 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
|
exports.GroupBlockTabs = (0, uni_jsx_1.JSX)((props) => {
|
|
6
|
-
const { tabs, currentTag, onTabClick, className = '', isShowCounter
|
|
6
|
+
const { tabs, currentTag, onTabClick, className = '', isShowCounter } = props;
|
|
7
7
|
return ((0, jsx_runtime_1.jsx)("div", { className: `mb-2 box-border flex gap-x-1 ${className}`, role: "tablist", children: tabs?.map(renderTab(onTabClick, isShowCounter, currentTag)) }));
|
|
8
8
|
});
|
|
9
9
|
const badgeStyle = 'min-w-[22px] w-[22px] h-[22px] rounded-full text-m-sm';
|
|
@@ -13,6 +13,6 @@ const renderTab = (onTabClick, isShowCounter, currentTag) => (tab, i) => {
|
|
|
13
13
|
const tabText = isActive ? 'text-white' : 'text-secondary-text group-hover:text-primary-main';
|
|
14
14
|
const counterBlockStyle = `${badgeStyle}
|
|
15
15
|
${isActive ? 'bg-white/30 text-white' : 'bg-secondary-light text-secondary-text'}`;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: `flex h-full w-full h-12 flex-1 cursor-pointer mr-2 last:mr-0 box-content ${tabBg}`, role: "tab", onClick: () => onTabClick(tab.tag), "aria-selected": String(isActive), tag: tab?.tag, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-1 items-center justify-center", children: [tab?.title ? (0, jsx_runtime_1.jsx)("h3", { className:
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `flex h-full w-full h-12 flex-1 cursor-pointer mr-2 last:mr-0 box-content ${tabBg}`, role: "tab", onClick: () => onTabClick(tab.tag), "aria-selected": String(isActive), tag: tab?.tag, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-1 items-center justify-center", children: [tab?.title ? (0, jsx_runtime_1.jsx)("h3", { className: tabText, children: tab?.title }) : null, isShowCounter ? ((0, jsx_runtime_1.jsx)("div", { className: `flex items-center justify-center ml-8 ${counterBlockStyle}`, children: (0, jsx_runtime_1.jsx)("span", { children: tab.count }) })) : null] }) }, String(i)));
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=GroupBlockTabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupBlockTabs.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlockTabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAa3B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"GroupBlockTabs.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlockTabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAa3B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAE9E,OAAO,CACL,gCAAK,SAAS,EAAE,gCAAgC,SAAS,EAAE,EAAE,IAAI,EAAC,SAAS,YACxE,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,UAAU,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC,GACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,uDAAuD,CAAC;AAE3E,MAAM,SAAS,GACb,CAAC,UAA2B,EAAE,aAAuB,EAAE,UAAmB,EAAE,EAAE,CAC9E,CAAC,GAAkB,EAAE,CAAS,EAAE,EAAE;IAChC,MAAM,QAAQ,GAAG,UAAU,KAAK,GAAG,CAAC,GAAG,CAAC;IACxC,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAC9D,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mDAAmD,CAAC;IAC9F,MAAM,iBAAiB,GAAG,GAAG,UAAU;QACnC,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,wCAAwC,EAAE,CAAC;IAErF,OAAO,CACL,gCAEE,SAAS,EAAE,4EAA4E,KAAK,EAAE,EAC9F,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,mBACnB,MAAM,CAAC,QAAQ,CAAC,EAC/B,GAAG,EAAE,GAAG,EAAE,GAAG,YAEb,iCAAK,SAAS,EAAC,yCAAyC,aACrD,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,+BAAI,SAAS,EAAE,OAAO,YAAG,GAAG,EAAE,KAAK,GAAM,CAAC,CAAC,CAAC,IAAI,EAC7D,aAAa,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,yCAAyC,iBAAiB,EAAE,YAC1E,2CAAO,GAAG,CAAC,KAAK,GAAQ,GACpB,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IAdD,MAAM,CAAC,CAAC,CAAC,CAeV,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const style2className_1 = require("../../utils/style2className");
|
|
6
6
|
const EmbeddableGroupBlocks_1 = require("./EmbeddableGroupBlocks");
|
|
7
7
|
exports.GroupBlocksItem = (0, uni_jsx_1.JSX)(({ groupBlocks, context }) => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)("div", { className:
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "grid grid-cols-12 gap-2 box-border", children: groupBlocks?.length ? groupBlocks.map((0, exports.renderBlock)(context)) : null }));
|
|
9
9
|
});
|
|
10
10
|
const renderBlock = (context) => (block, i) => {
|
|
11
11
|
const type = block?.blockType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupBlocksItem.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlocksItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,iEAA8D;AAE9D,mEAAgE;AAKnD,QAAA,eAAe,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,gCAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"GroupBlocksItem.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlocksItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,iEAA8D;AAE9D,mEAAgE;AAKnD,QAAA,eAAe,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE;IAChF,OAAO,CACL,gCAAK,SAAS,EAAC,oCAAoC,YAChD,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,IAAA,mBAAW,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAC/D,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEI,MAAM,WAAW,GAAG,CAAC,OAA2B,EAAE,EAAE,CAAC,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAC9F,MAAM,IAAI,GAAG,KAAK,EAAE,SAAS,CAAC;IAC9B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,6CAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,aAAa,GAAa,6CAAqB,CAAC,IAAI,CAAC,CAAC;IAC5D,OAAO,CACL,uBAAC,aAAa,IAAoB,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAE,cAAc,IAApE,SAAS,CAAC,EAAE,CAA4D,CAC7F,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,WAAW,eAUtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
3
|
+
import type { UniBlockProps } from '../../types';
|
|
4
|
+
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
5
|
+
interface DropdownMenuProps extends UniBlockProps {
|
|
6
|
+
menuVisible: boolean;
|
|
7
|
+
toggleMenu: () => void;
|
|
8
|
+
menuItems: LinkProps[];
|
|
9
|
+
bgColor?: BgColorVersion;
|
|
10
|
+
context: ContentPageContext;
|
|
11
|
+
}
|
|
12
|
+
export declare const DropdownMenu: (props: import("@redneckz/uni-jsx").PropsWithChildren<DropdownMenuProps, any>, context?: any) => any;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.DropdownMenu = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
+
const DOT_BG_COLORS_MAP = {
|
|
7
|
+
'bg-white': 'bg-primary-text',
|
|
8
|
+
transparent: 'bg-white',
|
|
9
|
+
};
|
|
10
|
+
exports.DropdownMenu = (0, uni_jsx_1.JSX)((props) => {
|
|
11
|
+
const { menuVisible, toggleMenu, menuItems, bgColor, context } = props;
|
|
12
|
+
const { useRouter, handlerDecorator } = context;
|
|
13
|
+
const router = useRouter();
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `absolute w-52 -top-4 right-0 pt-4 z-40 ${menuVisible ? 'bg-white rounded-md shadow-blue-gray/24' : ''}`, children: [(0, jsx_runtime_1.jsx)("button", { className: "flex justify-between items-center cursor-pointer h-6 ml-6", onClick: toggleMenu, "aria-label": `${menuVisible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, children: Array(3).fill(bgColor).map(renderDot) }), (0, jsx_runtime_1.jsx)("div", { className: `flex flex-col rounded-md bg-white p-6 pb-2 ${menuVisible ? '' : 'hidden'}`, "aria-hidden": !menuVisible, children: renderDotsSubMenuItems(menuItems, router, handlerDecorator) })] }));
|
|
15
|
+
});
|
|
16
|
+
const renderDotsSubMenuItems = (menuItems, router, handlerDecorator) => menuItems?.map((_) => ((0, jsx_runtime_1.jsx)("a", { ...(0, useLink_1.useLink)({ router, handlerDecorator }, _), className: "text-base font-light pb-4 hover:text-primary-main", children: _.text }, _.href)));
|
|
17
|
+
const renderDot = (bgColor, i) => ((0, jsx_runtime_1.jsx)("div", { className: `w-[3px] h-[3px] rounded mr-1 ${DOT_BG_COLORS_MAP[bgColor]}` }, String(i)));
|
|
18
|
+
//# sourceMappingURL=DropdownMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../src/components/Header/DropdownMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAU9C,MAAM,iBAAiB,GAAmC;IACxD,UAAU,EAAE,iBAAiB;IAC7B,WAAW,EAAE,UAAU;CACxB,CAAC;AAUW,QAAA,YAAY,GAAG,IAAA,aAAG,EAAoB,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEvE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAA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
|
const findActiveSubItem_1 = require("../../services/sitemap/findActiveSubItem");
|
|
7
7
|
const HeaderItem_1 = require("../../ui-kit/HeaderItem/HeaderItem");
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
'bg-white': 'bg-primary-text',
|
|
12
|
-
transparent: 'bg-white',
|
|
13
|
-
};
|
|
14
|
-
exports.HeaderSubMenu = (0, uni_jsx_1.JSX)(({ context, subItems, bgColor }) => {
|
|
15
|
-
const [subMenuIsShow, setHiddenMenuIsShow] = context.useState(false);
|
|
8
|
+
const DropdownMenu_1 = require("./DropdownMenu");
|
|
9
|
+
exports.HeaderSubMenu = (0, uni_jsx_1.JSX)(({ context, subItems = [], bgColor }) => {
|
|
10
|
+
const [menuVisible, setMenuVisible] = context.useState(false);
|
|
16
11
|
const router = context.useRouter();
|
|
17
|
-
const { handlerDecorator } = context;
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
const { handlerDecorator, IntersectionObserverTag } = context;
|
|
13
|
+
const [visibleItemsCount, setVisibleItemsCount] = context.useState(subItems.length);
|
|
14
|
+
const dropDownMenuItems = subItems.slice(visibleItemsCount);
|
|
15
|
+
const activeSubItem = (0, findActiveSubItem_1.findActiveSubItem)(router)(subItems);
|
|
16
|
+
const toggleMenu = () => setMenuVisible(!menuVisible);
|
|
17
|
+
const observerCallback = (itemIndex) => (entries) => {
|
|
18
|
+
if (!entries.length) {
|
|
20
19
|
return;
|
|
21
20
|
}
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return ((0, jsx_runtime_1.jsxs)("nav", { className: "relative mt-5", children: [(0, jsx_runtime_1.jsx)("div", { className: "overflow-hidden whitespace-nowrap mr-52", children:
|
|
31
|
-
subMenuIsShow,
|
|
32
|
-
toggleSubMenu,
|
|
33
|
-
subItems,
|
|
34
|
-
bgColor,
|
|
35
|
-
router,
|
|
36
|
-
handlerDecorator,
|
|
37
|
-
})] }));
|
|
21
|
+
const entry = entries[0];
|
|
22
|
+
if (entry.intersectionRatio < 1) {
|
|
23
|
+
setVisibleItemsCount((prev) => Math.min(prev, itemIndex));
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
setVisibleItemsCount((prev) => Math.max(prev, itemIndex + 1));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)("nav", { className: "relative mt-5", children: [(0, jsx_runtime_1.jsx)("div", { className: "overflow-hidden whitespace-nowrap mr-52", children: subItems.map((_, i) => ((0, jsx_runtime_1.jsx)(IntersectionObserverTag, { Tag: "span", observerCallback: observerCallback(i), observerOptions: { threshold: 1 }, children: (0, jsx_runtime_1.jsx)(HeaderItem_1.HeaderItem, { className: `mr-8 ${visibleItemsCount - 1 < i ? 'invisible' : ''}`, active: _ === activeSubItem, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _), bgColor: bgColor }) }, String(i)))) }), dropDownMenuItems.length ? ((0, jsx_runtime_1.jsx)(DropdownMenu_1.DropdownMenu, { context: context, menuVisible: menuVisible, toggleMenu: toggleMenu, menuItems: dropDownMenuItems, bgColor: bgColor })) : null] }));
|
|
38
30
|
});
|
|
39
|
-
// TODO: add types
|
|
40
|
-
const renderDotsSubMenu = ({ subMenuIsShow, toggleSubMenu, subItems, bgColor, router, handlerDecorator, }) => ((0, jsx_runtime_1.jsxs)("div", { className: `absolute w-52 -top-4 right-0 pt-4 z-40 ${subMenuIsShow ? 'bg-white rounded-md shadow-blue-gray/24' : ''}`, "data-header-submenu-visible": "toggled", children: [(0, jsx_runtime_1.jsx)("button", { className: "flex justify-between items-center cursor-pointer h-6 ml-6", onClick: toggleSubMenu, "aria-label": `${subMenuIsShow ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, children: Array(3).fill(bgColor).map(renderDot) }), (0, jsx_runtime_1.jsx)("div", { className: `flex flex-col rounded-md bg-white p-6 pb-2 ${subMenuIsShow ? '' : 'hidden'}`, "aria-hidden": !subMenuIsShow, children: renderDotsSubMenuItems(subItems, router, handlerDecorator) })] }));
|
|
41
|
-
// TODO: add types
|
|
42
|
-
const renderDotsSubMenuItems = (subItems, router, handlerDecorator) => subItems?.map((_) => ((0, jsx_runtime_1.jsx)("a", { ...(0, useLink_1.useLink)({ router, handlerDecorator }, _), "data-item-name": "dots-header-submenu", className: "text-base font-light pb-4 hover:text-primary-main", children: _.text }, _.href)));
|
|
43
|
-
const renderDot = (bgColor, i) => ((0, jsx_runtime_1.jsx)("div", { className: `w-[3px] h-[3px] rounded mr-1 ${DOT_BG_COLORS_MAP[bgColor]}` }, String(i)));
|
|
44
31
|
//# sourceMappingURL=HeaderSubMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSubMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,gFAA6E;AAC7E,mEAAgE;
|
|
1
|
+
{"version":3,"file":"HeaderSubMenu.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,gFAA6E;AAC7E,mEAAgE;AAEhE,iDAA8C;AAQjC,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,OAAO,EAAE,QAAQ,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC3F,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC;IAE9D,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAS,QAA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K,aAAa,KACvB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,EAC5C,OAAO,EAAE,OAAO,GAChB,IAPG,MAAM,CAAC,CAAC,CAAC,CAQU,CAC3B,CAAC,GACE,EACL,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAC1B,uBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,iBAAiB,EAC5B,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -2,10 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.InsuranceAmountBlockInner = 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 ArrowButton_1 = require("../../ui-kit/Button/ArrowButton");
|
|
6
5
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
6
|
const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
|
|
8
|
-
const
|
|
7
|
+
const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
|
|
9
8
|
exports.InsuranceAmountBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, cards = [], anchor = null }) => {
|
|
10
9
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
11
10
|
const [tabsShift, setTabsShift] = context.useState(0);
|
|
@@ -24,11 +23,16 @@ exports.InsuranceAmountBlockInner = (0, uni_jsx_1.JSX)(({ className = '', contex
|
|
|
24
23
|
isLastShift,
|
|
25
24
|
setActiveSlideIndex,
|
|
26
25
|
})
|
|
27
|
-
: null,
|
|
26
|
+
: null, (0, renderArrows_1.renderArrows)({
|
|
27
|
+
handler: [handlePrevClick, handleNextClick],
|
|
28
|
+
isShown: [showPrevButton, showNextButton],
|
|
29
|
+
btnClass: ['left-[50px]', 'right-[50px]'],
|
|
30
|
+
className: 'top-[62px]',
|
|
31
|
+
}), showPrevButton ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white" })) : null, showNextButton ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white" })) : null] }) }));
|
|
28
32
|
});
|
|
29
33
|
function renderGallery({ tabsShift, cards, activeSlideIndex, isLastShift, setActiveSlideIndex, }) {
|
|
30
34
|
const tabsShiftWidth = isLastShift ? tabsShift * 460 - 240 : tabsShift * 460;
|
|
31
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: { transform: `translateX(-${tabsShiftWidth}px)` }, className: "duration-1000", children: (0, jsx_runtime_1.jsx)("div", { className: "w-full flex flex-nowrap gap-3.5 pb-[38px]
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { transform: `translateX(-${tabsShiftWidth}px)` }, className: "duration-1000 px-[50px]", children: (0, jsx_runtime_1.jsx)("div", { className: "w-full flex flex-nowrap gap-3.5 pb-[38px]", children: cards.map((slide, i) => renderSlide({
|
|
32
36
|
slide,
|
|
33
37
|
i,
|
|
34
38
|
activeSlideIndex,
|