@redneckz/wildless-cms-uni-blocks 0.3.69 → 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 +467 -423
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/DoneIcon.svg +1 -0
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/BlockContent.d.ts +3 -1
- package/dist/components/Blocks.d.ts +1 -1
- package/dist/components/Blocks.js +2 -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/Insurance/Insurance.js +4 -6
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/Insurance/InsuranceContent.d.ts +2 -5
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +55 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- 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/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.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/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/Insurance.d.ts +6 -0
- package/dist/{components/CreditCalculator/CreditCalculatorContent.js → model/Insurance.js} +1 -1
- package/dist/model/Insurance.js.map +1 -0
- 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/BlockContent.d.ts +3 -1
- package/lib/components/Blocks.d.ts +1 -1
- package/lib/components/Blocks.js +2 -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/Insurance/Insurance.js +4 -6
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/Insurance/InsuranceContent.d.ts +2 -5
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/lib/components/{CreditCalculator/CreditCalculator.fixture.d.ts → InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts} +0 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +53 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- 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/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -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/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/Insurance.d.ts +6 -0
- package/lib/model/Insurance.js +2 -0
- package/lib/model/Insurance.js.map +1 -0
- 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 +216 -69
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/BlockContent.d.ts +3 -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/Insurance/Insurance.js +4 -6
- package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
- package/mobile/dist/components/Insurance/InsuranceContent.d.ts +2 -5
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +55 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- 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/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/Insurance.d.ts +6 -0
- package/mobile/dist/{components/CreditCalculator/CreditCalculatorContent.js → model/Insurance.js} +1 -1
- package/mobile/dist/model/Insurance.js.map +1 -0
- 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/BlockContent.d.ts +3 -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/Insurance/Insurance.js +4 -6
- package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
- package/mobile/lib/components/Insurance/InsuranceContent.d.ts +2 -5
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +53 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- 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/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/Insurance.d.ts +6 -0
- package/mobile/lib/model/Insurance.js +2 -0
- package/mobile/lib/model/Insurance.js.map +1 -0
- 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/BlockContent.ts +5 -1
- 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 +50 -6
- 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/Insurance/Insurance.example.json +21 -0
- package/mobile/src/components/Insurance/Insurance.tsx +10 -9
- package/mobile/src/components/Insurance/InsuranceContent.ts +9 -11
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +147 -0
- 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/icons/DoneIcon.svg +4 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/model/Insurance.ts +6 -0
- 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/BlockContent.ts +5 -1
- package/src/components/Blocks.ts +2 -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 +50 -6
- 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.example.json +21 -0
- package/src/components/Insurance/Insurance.fixture.tsx +11 -6
- package/src/components/Insurance/Insurance.tsx +10 -9
- package/src/components/Insurance/InsuranceContent.ts +9 -11
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +52 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +147 -0
- 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 +4 -4
- package/src/components/StepsBlock/StepsBlock.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/icons/DoneIcon.svg +4 -0
- package/src/icons/IconName.ts +4 -1
- package/src/model/Insurance.ts +6 -0
- 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.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.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.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/mobile/src/components/Insurance/Insuranse.example.json +0 -36
- 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
- package/src/components/Insurance/Insuranse.example.json +0 -36
|
@@ -5,15 +5,13 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
7
|
const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
|
|
8
|
-
exports.Insurance = (0, uni_jsx_1.JSX)(({ className = '', title, description, image, benefits,
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `px-[100px] py-[50px] bg-white text-primary-text ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", title: title, className: "text-center" }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "text-center text-md mt-3", children: description }) : null, (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "mt-5 mx-auto flex justify-center gap-[120px] mt-[30px]", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null, (0, jsx_runtime_1.jsxs)("div", { className: "w-[558px] m-auto", children: [benefits ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit) })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4", children: [
|
|
10
|
-
? renderValueBlock('
|
|
11
|
-
: null, monthLimit
|
|
12
|
-
? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(insuranceSum))
|
|
8
|
+
exports.Insurance = (0, uni_jsx_1.JSX)(({ className = '', title, description, image, benefits, sum, monthLimit }) => {
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `px-[100px] py-[50px] bg-white text-primary-text ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", title: title, className: "text-center" }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "text-center text-md mt-3", children: description }) : null, (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "mt-5 mx-auto flex justify-center gap-[120px] mt-[30px]", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) : null, (0, jsx_runtime_1.jsxs)("div", { className: "w-[558px] m-auto", children: [benefits ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit) })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4", children: [sum ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null, monthLimit
|
|
10
|
+
? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum))
|
|
13
11
|
: null] })] })] }) })] }));
|
|
14
12
|
});
|
|
15
13
|
function renderBenefit(benefit, i) {
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-5", children: [benefit?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-[50px] h-[50px] min-w-[50px] p-3 rounded-full bg-secondary-light", image: benefit.icon, width: "24", height: "24", asSVG: true })) : null, (0, jsx_runtime_1.jsx)("div", { className: "
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center gap-5", children: [benefit?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-[50px] h-[50px] min-w-[50px] p-3 rounded-full bg-secondary-light", image: benefit.icon, width: "24", height: "24", asSVG: true })) : null, (0, jsx_runtime_1.jsxs)("div", { children: [benefit?.label ? (0, jsx_runtime_1.jsx)("div", { className: "text-title-2xs", children: benefit.label }) : null, benefit?.description ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-2 font-light text-secondary-text", children: benefit.description })) : null] })] }, String(i)));
|
|
17
15
|
}
|
|
18
16
|
function renderValueBlock(title, sum, isAnotherBlock) {
|
|
19
17
|
const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Insurance.js","sourceRoot":"","sources":["../../../src/components/Insurance/Insurance.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Insurance.js","sourceRoot":"","sources":["../../../src/components/Insurance/Insurance.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AACvD,8CAA2C;AAC3C,iFAA8E;AAMjE,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EAAE,SAAS,GAAG,EAA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,EAAC,oEAAoE,EAC9E,KAAK,EAAE,OAAO,CAAC,IAAI,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACR,4CACG,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,gBAAgB,YAAE,OAAO,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EAC7E,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CACtB,gCAAK,SAAS,EAAC,qCAAqC,YAAE,OAAO,CAAC,WAAW,GAAO,CACjF,CAAC,CAAC,CAAC,IAAI,IACJ,KAfE,MAAM,CAAC,CAAC,CAAC,CAgBb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAK,EAAE,GAAG,EAAE,cAAc;IAClD,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;IACvD,OAAO,CACL,iCAAK,SAAS,EAAE,kDAAkD,UAAU,EAAE,aAC5E,iCAAM,SAAS,EAAC,+BAA+B,YAAE,KAAK,GAAQ,EAC9D,kCAAM,SAAS,EAAC,kCAAkC,aAAE,IAAA,iDAAuB,EAAC,GAAG,CAAC,eAAU,IACtF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
2
|
import type { BenefitsBlockContent } from '../BenefitsBlock/BenefitsBlockContent';
|
|
3
|
-
|
|
3
|
+
import type { InsuranceProps } from '../../model/Insurance';
|
|
4
|
+
export declare type InsuranceContent = BenefitsBlockContent & InsuranceProps & {
|
|
4
5
|
/** @title Заголовок */
|
|
5
6
|
title?: string;
|
|
6
7
|
/** @title Описание */
|
|
7
8
|
description?: string;
|
|
8
|
-
/** @title Ежемесячный лимит */
|
|
9
|
-
monthLimit?: number;
|
|
10
|
-
/** @title Страховая сумма */
|
|
11
|
-
insuranceSum?: number;
|
|
12
9
|
image?: Picture;
|
|
13
10
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { InsuranceAmountBlockContent } from './InsuranceAmountBlockContent';
|
|
3
|
+
export interface InsuranceAmountBlockProps extends InsuranceAmountBlockContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const InsuranceAmountBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<InsuranceAmountBlockProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.InsuranceAmountBlock = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const InsuranceAmountBlockInner_1 = require("./InsuranceAmountBlockInner");
|
|
6
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
8
|
+
exports.InsuranceAmountBlock = (0, uni_jsx_1.JSX)(({ className = '', context, title, insuranceTabs = [], button, anchor = null }) => {
|
|
9
|
+
const insuranceGalleries = insuranceTabs.map((_) => _.cards);
|
|
10
|
+
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("section", { id: anchor, className: `box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-center", title: title, headingType: "h3" }) : null, (0, jsx_runtime_1.jsx)("div", { className: "p-1.5 bg-secondary-light w-fit m-auto rounded-md mt-[34px]", children: insuranceTabs.map((item, i) => renderNavButton({
|
|
12
|
+
title: item?.title,
|
|
13
|
+
i,
|
|
14
|
+
activeSlideIndex,
|
|
15
|
+
onClick: () => setActiveSlideIndex(i),
|
|
16
|
+
})) }), (0, jsx_runtime_1.jsx)("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: renderInsuranceGalleries({
|
|
17
|
+
context,
|
|
18
|
+
className,
|
|
19
|
+
insuranceGalleries,
|
|
20
|
+
}) }), button?.text ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border p-4 h-14 w-full max-w-[240px]", version: button?.version || 'primary', href: button.href, children: button.text }) })) : null] }));
|
|
21
|
+
});
|
|
22
|
+
const renderInsuranceGalleries = ({ insuranceGalleries, context, className }) => {
|
|
23
|
+
return insuranceGalleries?.length
|
|
24
|
+
? insuranceGalleries.map((cards) => ((0, jsx_runtime_1.jsx)(InsuranceAmountBlockInner_1.InsuranceAmountBlockInner, { context: context, className: className, cards: cards })))
|
|
25
|
+
: null;
|
|
26
|
+
};
|
|
27
|
+
function renderNavButton({ title, i, activeSlideIndex, onClick }) {
|
|
28
|
+
const isActiveBtn = i === activeSlideIndex;
|
|
29
|
+
const btnClassName = isActiveBtn
|
|
30
|
+
? 'bg-primary-main text-white rounded-md'
|
|
31
|
+
: `text-secondary-text`;
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m-md ${btnClassName}`, children: title }, String(i)));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=InsuranceAmountBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsuranceAmountBlock.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,2EAAwE;AACxE,0DAAuD;AACvD,uDAAoD;AAIvC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,G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ACA,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,wBAAwB,GAAG,CAAC,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE;IACnF,OAAO,kBAAkB,EAAE,MAAM;QAC/B,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAChC,uBAAC,qDAAyB,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAI,CACpF,CAAC;QACJ,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEF,SAAS,eAAe,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE;IAC9D,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAE3C,MAAM,YAAY,GAAG,WAAW;QAC9B,CAAC,CAAC,uCAAuC;QACzC,CAAC,CAAC,qBAAqB,CAAC;IAE1B,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,gBACJ,KAAK,EACjB,SAAS,EAAE,kCAAkC,YAAY,EAAE,YAE1D,KAAK,IALD,MAAM,CAAC,CAAC,CAAC,CAMP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Picture } from '../../model/Picture';
|
|
2
|
+
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
+
import type { InsuranceProps } from '../../model/Insurance';
|
|
4
|
+
/**
|
|
5
|
+
* @title Кнопка выбора программы
|
|
6
|
+
*/
|
|
7
|
+
export declare type cardItem = InsuranceProps & {
|
|
8
|
+
icon?: Picture;
|
|
9
|
+
/** @title Страховой взнос */
|
|
10
|
+
fee?: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @title Вкладка
|
|
14
|
+
*/
|
|
15
|
+
export interface InsuranceAmountBlockTabs {
|
|
16
|
+
/** @title Заголовок вкладки */
|
|
17
|
+
title?: string;
|
|
18
|
+
/** @title Содержимое вкладки */
|
|
19
|
+
cards?: cardItem[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @title Страховые суммы
|
|
23
|
+
*/
|
|
24
|
+
export interface InsuranceAmountBlockContent {
|
|
25
|
+
/** @title Заголовок */
|
|
26
|
+
title?: string;
|
|
27
|
+
/** @title Список вкладок */
|
|
28
|
+
insuranceTabs?: InsuranceAmountBlockTabs[];
|
|
29
|
+
button?: ButtonProps;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsuranceAmountBlockContent.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { InsuranceAmountBlockTabs } from './InsuranceAmountBlockContent';
|
|
3
|
+
export interface InsuranceAmountBlockInnerProps extends InsuranceAmountBlockTabs, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const InsuranceAmountBlockInner: (props: import("@redneckz/uni-jsx").PropsWithChildren<InsuranceAmountBlockInnerProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.InsuranceAmountBlockInner = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
|
+
const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
|
|
7
|
+
const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
|
|
8
|
+
exports.InsuranceAmountBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, cards = [], anchor = null }) => {
|
|
9
|
+
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
10
|
+
const [tabsShift, setTabsShift] = context.useState(0);
|
|
11
|
+
const handleNextClick = () => setTabsShift(tabsShift + 1);
|
|
12
|
+
const handlePrevClick = () => setTabsShift(tabsShift - 1);
|
|
13
|
+
const galleryLength = cards?.length;
|
|
14
|
+
const isGalleryScrollAvailable = cards?.length > 2;
|
|
15
|
+
const showNextButton = isGalleryScrollAvailable && galleryLength > tabsShift + 2;
|
|
16
|
+
const isLastShift = galleryLength === tabsShift + 2;
|
|
17
|
+
const showPrevButton = tabsShift > 0;
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)("section", { id: anchor, className: `min-w-full ${className}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative mt-7 overflow-hidden", children: [galleryLength > 1
|
|
19
|
+
? renderGallery({
|
|
20
|
+
tabsShift,
|
|
21
|
+
cards,
|
|
22
|
+
activeSlideIndex,
|
|
23
|
+
isLastShift,
|
|
24
|
+
setActiveSlideIndex,
|
|
25
|
+
})
|
|
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] }) }));
|
|
32
|
+
});
|
|
33
|
+
function renderGallery({ tabsShift, cards, activeSlideIndex, isLastShift, setActiveSlideIndex, }) {
|
|
34
|
+
const tabsShiftWidth = isLastShift ? tabsShift * 460 - 240 : tabsShift * 460;
|
|
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({
|
|
36
|
+
slide,
|
|
37
|
+
i,
|
|
38
|
+
activeSlideIndex,
|
|
39
|
+
onClick: () => setActiveSlideIndex(i),
|
|
40
|
+
})) }) }));
|
|
41
|
+
}
|
|
42
|
+
function renderSlide({ slide, i, activeSlideIndex, onClick }) {
|
|
43
|
+
const isActiveBtn = i === activeSlideIndex;
|
|
44
|
+
const btnClassName = isActiveBtn
|
|
45
|
+
? 'shadow-dark-blue/42 border-primary-main'
|
|
46
|
+
: `ease-in duration-300 border-main-stroke`;
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `h-[108px] w-[108px] p-3 rounded-full bg-secondary-light mr-[30px]`, image: slide.icon, width: "24", height: "24" })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3.5", children: [slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActiveBtn)] }, String(i)));
|
|
48
|
+
}
|
|
49
|
+
function renderValueBlock(title, sum) {
|
|
50
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col text-left", children: [(0, jsx_runtime_1.jsxs)("span", { className: "whitespace-pre text-title-2xs", children: [(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(sum), " \u20BD"] }), (0, jsx_runtime_1.jsx)("span", { className: "whitespace-pre text-secondary-text font-light text-base mt-1", children: title })] }));
|
|
51
|
+
}
|
|
52
|
+
function renderDoneIcon(isActive) {
|
|
53
|
+
return isActive ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `h-[24px] w-[24px] min-w-[24px] min-h-[24px] absolute right-4 top-4`, image: "DoneIcon", width: "24", height: "24" })) : null;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=InsuranceAmountBlockInner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InsuranceAmountBlockInner.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAC3C,iFAA8E;AAC9E,mEAAgE;AAmBnD,QAAA,yBAAyB,GAAG,IAAA,aAAG,EAC1C,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IACzD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtD,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAC1D,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAE1D,MAAM,aAAa,GAAG,KAAK,EAAE,MAAM,CAAC;IAEpC,MAAM,wBAAwB,GAAG,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC;IACnD,MAAM,cAAc,GAAG,wBAAwB,IAAI,aAAa,GAAG,SAAS,GAAG,CAAC,CAAC;IACjF,MAAM,WAAW,GAAG,aAAa,KAAK,SAAS,GAAG,CAAC,CAAC;IACpD,MAAM,cAAc,GAAG,SAAS,GAAG,CAAC,CAAC;IAErC,OAAO,CACL,oCAAS,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,SAAS,EAAE,YACvD,iCAAK,SAAS,EAAC,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AE,oEAAoE,EAC/E,KAAK,EAAC,UAAU,EAChB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -14,8 +14,9 @@ const formatSuffix = (ext, fileSize) => {
|
|
|
14
14
|
return prefix + extension + size;
|
|
15
15
|
};
|
|
16
16
|
const getExtFromHref = (href) => {
|
|
17
|
-
if (!href)
|
|
17
|
+
if (!href) {
|
|
18
18
|
return '';
|
|
19
|
+
}
|
|
19
20
|
const index = href.lastIndexOf('.');
|
|
20
21
|
return index !== -1 ? href.substring(index + 1) : '';
|
|
21
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItemBase.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItemBase.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8CAA2C;AAgB9B,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,GAAG,CAAC;IAC7C,OAAO,CACL,+BAAG,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,KAAK,SAAS,aAC/C,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IAAC,SAAS,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,CAChF,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,kCAAM,SAAS,EAAE,aAAa,aAC3B,IAAI,EACL,iCAAM,SAAS,EAAE,eAAe,YAC7B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAA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AAC,CAAC,IAAI,EACP,IAAI,CAAC,CAAC,CAAC,CACN,kCAAM,SAAS,EAAE,aAAa,aAC3B,IAAI,EACL,iCAAM,SAAS,EAAE,eAAe,YAC7B,SAAS,EAAE,IAAI,IAAI,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GACrE,IACF,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAY,EAAE,QAAiB,EAAE,EAAE;IACvD,MAAM,MAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9C,OAAO,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvD,CAAC,CAAC"}
|
|
@@ -15,6 +15,6 @@ exports.Placeholder = (0, uni_jsx_1.JSX)(({ className, context, title, descripti
|
|
|
15
15
|
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
16
16
|
.map((_) => Math.floor(_))
|
|
17
17
|
.map(renderShimmerItem);
|
|
18
|
-
const renderShimmerItem = (width
|
|
18
|
+
const renderShimmerItem = (width, index) => ((0, jsx_runtime_1.jsx)("div", { style: { width: `${width || 100}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
19
19
|
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
20
20
|
//# sourceMappingURL=Placeholder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../../../src/components/Placeholder/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,sEAAmE;AACnE,0DAAuD;AACvD,mDAAgD;AAChD,uEAAoE;AACpE,mEAAgE;AAChE,yEAAsE;AAMtE,MAAM,YAAY,GAAG,KAAK,CAAC;AAEd,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,GAAG,sBAAsB,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,oCACE,SAAS,EAAE,uDAAuD,SAAS,IAAI,IAAA,yCAAmB,EAChG,SAAS,CACV,IAAI,IAAA,mCAAgB,EAAC,SAAS,CAAC,GAAG,EACnC,EAAE,EAAE,MAAM,YAEV,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,iBAAO,IACN,WAAW,EAAE,IAAA,uCAAkB,EAAC,SAAS,CAAC,EAC1C,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,mCAAmC,GAC9C,CACH,CAAC,CAAC,CAAC,IAAI,aAGT,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IAAC,SAAS,EAAC,oBAAoB,EAAC,WAAW,EAAE,WAAW,GAAI,CACzE,CAAC,CAAC,CAAC,IAAI,EACR,mCAAQ,SAAS,EAAC,mBAAmB,YAAE,aAAa,EA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C,IAAI,EACR,mCAAQ,SAAS,EAAC,mBAAmB,YAAE,aAAa,EAAE,GAAU,IACvD,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CACjC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC;KACtB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACzB,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAE5B,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAAC,CAC1D,gCAEE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,GAAG,EAAE,EACpC,SAAS,EAAC,6BAA6B,IAFlC,MAAM,CAAC,KAAK,CAAC,CAGlB,CACH,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,IAAY,EAAY,EAAE,CAC/D,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
|
11
11
|
const renderBenefit_1 = require("./renderBenefit");
|
|
12
12
|
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, title, headingType = 'h2', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
13
13
|
const textColor = version === 'secondary' ? 'text-white' : 'text-primary-text';
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex grow justify-between items-stretch ${className}`, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex flex-col ${textBlockClassName}`, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: getTitle(title, headingType), buttons: getButtons(context, buttons), children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: `mt-4 max-w-[600px] text-md font-light ${textColor}`, description: description })) : null, benefits?.filter((
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex grow justify-between items-stretch ${className}`, children: [(0, jsx_runtime_1.jsx)("div", { className: `flex flex-col ${textBlockClassName}`, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: getTitle(title, headingType), buttons: getButtons(context, buttons), children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: `mt-4 max-w-[600px] text-md font-light ${textColor}`, description: description })) : null, benefits?.filter((_) => _.label)?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-6 mt-6", children: benefits.map((benefit, i) => (0, renderBenefit_1.renderBenefit)({ benefit, version, benefitsVersion }, i)) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-5 text-title-2xs font-light", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] }) }), image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-[-50px]", image: image })] }));
|
|
15
15
|
});
|
|
16
16
|
const getTitle = (title, headingType) => {
|
|
17
17
|
return title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAAG,QAAQ,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,kBAAkB,GAAG,EAAE,GACxB,EAAE,EAAE;IACH,MAAM,SAAS,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mBAAmB,CAAC;IAC/E,OAAO,CACL,iCAAK,SAAS,EAAE,2CAA2C,SAAS,EAAE,aACpE,gCAAK,SAAS,EAAE,iBAAiB,kBAAkB,EAAE,YACnD,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,EACnC,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,aAEpC,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IACV,SAAS,EAAE,yCAAyC,SAAS,EAAE,EAC/D,WAAW,EAAE,WAAW,GACxB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EAAE,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAEhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAAG,QAAQ,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,k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,CAAC,CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE;IACtC,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,mCAAmC,GAC7C,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IACtC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,iBAAiB,GAAG,CAClF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ const List_1 = require("../../ui-kit/List/List");
|
|
|
10
10
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
11
11
|
const renderBenefit_1 = require("./renderBenefit");
|
|
12
12
|
exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, title, headingType = 'h2', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, label, }) => {
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `w-full ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [label ? renderLabel(label, version) : null, (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mt-3 text-m-md", description: description })) : null, benefits?.filter((
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `w-full ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [label ? renderLabel(label, version) : null, (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mt-3 text-m-md", description: description })) : null, benefits?.filter((_) => _.label)?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-3", children: benefits.map((benefit, i) => (0, renderBenefit_1.renderBenefit)({ benefit, version, benefitsVersion }, i)) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-3 text-m-md", items: items, version: version, isDotted: isDotted })) : null] })] }), renderImage(image)] }));
|
|
14
14
|
});
|
|
15
15
|
function renderImage(image) {
|
|
16
16
|
return image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { imageClassName: "mt-5 mx-auto block", image: { className: 'block', ...image } })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAGhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAAG,QAAQ,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,iCAAK,SAAS,EAAE,UAAU,SAAS,EAAE,aACnC,4CACG,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAC3C,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,mCAAmC,GAC7C,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,6BAAa,IACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,4BAA4B,GACtC,CACH,CAAC,CAAC,CAAC,IAAI,aAGT,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IAAC,SAAS,EAAC,gBAAgB,EAAC,WAAW,EAAE,WAAW,GAAI,CACrE,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EAAE,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.mobile.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAGhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAAG,QAAQ,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO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AQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,IACC,IACP,EACL,WAAW,CAAC,KAAK,CAAC,IACf,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAAC,KAAK;IACxB,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAClB,uBAAC,SAAG,IAAC,cAAc,EAAC,oBAAoB,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAI,CACrF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,MAAM,aAAa,GAAiC;IAClD,OAAO,EAAE,0CAA0C;IACnD,SAAS,EAAE,eAAe;CAC3B,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,OAAqB,EAAE,EAAE,CAAC,CAC5D,gCACE,SAAS,EAAE,kEAAkE,aAAa,CAAC,OAAO,CAAC,EAAE,YAEpG,KAAK,GACF,CACP,CAAC"}
|
|
@@ -14,11 +14,11 @@ const productTileStyleMap = {
|
|
|
14
14
|
secondary: 'bg-primary-main text-white',
|
|
15
15
|
};
|
|
16
16
|
exports.ProductTile = (0, uni_jsx_1.JSX)(({ context, className = '', title, headingType = 'h3', description, additionalDescription, benefits, buttons, image, version = 'primary', anchor = null, }) => {
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, id: anchor, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mt-4 max-w-[600px]", description: description })) : null, renderBenefits(benefits, version), additionalDescription
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, id: anchor, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mt-4 max-w-[600px]", description: description })) : null, renderBenefits(benefits || [], version), additionalDescription
|
|
18
18
|
? renderAdditionalDescription(additionalDescription, version)
|
|
19
19
|
: null] }) }));
|
|
20
20
|
});
|
|
21
|
-
function renderBenefits(benefits
|
|
21
|
+
function renderBenefits(benefits, version) {
|
|
22
22
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex mt-5 mb-1", children: [benefits.length ? (0, jsx_runtime_1.jsx)("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) }) : null, benefits.length ? ((0, jsx_runtime_1.jsx)("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] }));
|
|
23
23
|
}
|
|
24
24
|
function renderBenefitLabel(benefit, i) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components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,CAAC,CACb,uBAAC,yBAAW,IAAC,SAAS,EAAC,oBAAoB,EAAC,WAAW,EAAE,WAAW,GAAI,CACzE,CAAC,CAAC,CAAC,IAAI,EACP,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"ProductTile.js","sourceRoot":"","sources":["../../../src/components/ProductTile/ProductTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;AAMtE,MAAM,mBAAmB,GAAiC;IACxD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EACC,OAAO,EACP,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,qBAAqB,EACrB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,IAAI,GACd,EAAE,EAAE;IACH,OAAO,CACL,oCACE,SAAS,EAAE,uEAAuE,SAAS,IACzF,mBAAmB,CAAC,OAAO,CAC7B,IAAI,IAAA,yCAAmB,EAAC,SAAS,CAAC,IAAI,IAAA,mCAAgB,EAAC,SAAS,CAAC,GAAG,EACpE,EAAE,EAAE,MAAM,YAEV,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,mCAAmC,GAC9C,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,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C,CAEb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAAC,OAAoB,EAAE,CAAS,EAAE,OAAO,GAAG,SAAS;IACpF,MAAM,aAAa,GAAiC;QAClD,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,YAAY;KACxB,CAAC;IACF,OAAO,CACL,gCAAqB,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE,YACnF,OAAO,CAAC,WAAW,IADZ,MAAM,CAAC,CAAC,CAAC,CAEb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,2BAA2B,CAAC,qBAA6B,EAAE,OAAO,GAAG,SAAS;IACrF,MAAM,YAAY,GAAiC;QACjD,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,YAAY;KACxB,CAAC;IACF,OAAO,gCAAK,SAAS,EAAE,kBAAkB,YAAY,CAAC,OAAO,CAAC,EAAE,YAAG,qBAAqB,GAAO,CAAC;AAClG,CAAC"}
|
|
@@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Recommendation = 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 Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
7
6
|
const RecommendationCard_1 = require("./RecommendationCard");
|
|
7
|
+
const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
|
|
8
8
|
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
9
9
|
const CARD_FULL_VIEW_COUNT = 2;
|
|
10
10
|
const CARD_SHIFT = 525;
|
|
@@ -29,6 +29,11 @@ const renderNavButtons = ({ cardsCount, activeCardIndex, setActiveCardIndex, })
|
|
|
29
29
|
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
|
|
30
30
|
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
|
|
31
31
|
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
32
|
-
return ((0, jsx_runtime_1.
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, renderArrows_1.renderArrows)({
|
|
33
|
+
handler: [handlePrevClick, handleNextClick],
|
|
34
|
+
isShown: [showPrevButton, showNextButton],
|
|
35
|
+
btnClass: ['left-8', 'right-8'],
|
|
36
|
+
className: 'top-1/2 mt-6',
|
|
37
|
+
}) }));
|
|
33
38
|
};
|
|
34
39
|
//# sourceMappingURL=Recommendation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Recommendation.js","sourceRoot":"","sources":["../../../src/components/Recommendation/Recommendation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,
|
|
1
|
+
{"version":3,"file":"Recommendation.js","sourceRoot":"","sources":["../../../src/components/Recommendation/Recommendation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AACvD,6DAA0D;AAE1D,mEAAgE;AAEhE,MAAM,kBAAkB,GAAG,kCAAkC,CAAC;AAC9D,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAC/B,MAAM,UAAU,GAAG,GAAG,CAAC;AAIV,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EAAE,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IACnF,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,MAAM,cAAc,GAClB,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC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,OAAO,KACZ,IAAI,EACR,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,IAJf,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,gBAAgB,GAAG,CAAC,EACxB,UAAU,EACV,eAAe,EACf,kBAAkB,GAKnB,EAAE,EAAE;IACH,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;IACtE,MAAM,WAAW,GAAG,UAAU,GAAG,oBAAoB,CAAC;IACtD,MAAM,cAAc,GAAG,WAAW,IAAI,UAAU,GAAG,eAAe,GAAG,oBAAoB,CAAC;IAC1F,MAAM,cAAc,GAAG,WAAW,IAAI,eAAe,GAAG,CAAC,CAAC;IAE1D,OAAO,CACL,0CACG,IAAA,2BAAY,EAAC;YACZ,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;YAC3C,OAAO,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;YACzC,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;YAC/B,SAAS,EAAE,cAAc;SAC1B,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -19,6 +19,6 @@ const renderStepIcon = (step, i) => {
|
|
|
19
19
|
return ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col items-center text-center relative", children: (0, jsx_runtime_1.jsx)("div", { className: "h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10", children: (step.icon?.icon && (0, jsx_runtime_1.jsx)(Img_1.Img, { image: step.icon, width: "48", height: "48" })) || ((0, jsx_runtime_1.jsx)("span", { className: "font-normal text-title-sm text-secondary-text", children: i + 1 })) }) }, String(i)));
|
|
20
20
|
};
|
|
21
21
|
const renderStepTitle = (step, i, isMainButton) => {
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden", children: [(0, jsx_runtime_1.jsxs)("div", { children: [step.label && (0, jsx_runtime_1.jsx)("div", { className: "font-normal text-xl m-0 mt-4", children: step.label }), step.description && ((0, jsx_runtime_1.jsx)("div", { className: `font-light text-base text-secondary-text ${step.label ? 'mt-2' : 'mt-4'}`, children: step.description }))] }), step?.button?.text && !isMainButton ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border mt-8 py-3 h-12 w-full max-w-[240px]", version: "primary", href:
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden", children: [(0, jsx_runtime_1.jsxs)("div", { children: [step.label && (0, jsx_runtime_1.jsx)("div", { className: "font-normal text-xl m-0 mt-4", children: step.label }), step.description && ((0, jsx_runtime_1.jsx)("div", { className: `font-light text-base text-secondary-text ${step.label ? 'mt-2' : 'mt-4'}`, children: step.description }))] }), step?.button?.text && !isMainButton ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border mt-8 py-3 h-12 w-full max-w-[240px]", version: "primary", href: step.button?.href, children: step.button.text })) : null] }, String(i)));
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=StepsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AACpD,0DAAuD;AACvD,8CAA2C;AAC3C,mDAAgD;AAKnC,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,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AC,CAAC,CAAC,CAsBV,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -15,11 +15,11 @@ const tileStyleMap = {
|
|
|
15
15
|
secondary: 'bg-primary-main text-white',
|
|
16
16
|
};
|
|
17
17
|
exports.Tile = (0, uni_jsx_1.JSX)((props) => {
|
|
18
|
-
const { context, title, headingType = 'h3', description, items, children, buttons, image, className = '', version = 'primary', role, anchor = null, } = props;
|
|
18
|
+
const { context, title, headingType = 'h3', description, items, children, buttons, image, isDotted = true, className = '', version = 'primary', role, anchor = null, } = props;
|
|
19
19
|
return ((0, jsx_runtime_1.jsx)("section", { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, role: role, id: anchor, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
|
|
20
|
-
${version === 'primary' ? 'text-primary-text' : ''}` })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-9 gap-3" })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "max-w-[600px] text-title-new-sm font-light", description: description })) : null, children, renderList(items, version)] }) }));
|
|
20
|
+
${version === 'primary' ? 'text-primary-text' : ''}` })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-9 gap-3" })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "max-w-[600px] text-title-new-sm font-light", description: description })) : null, children, renderList(items, version, isDotted)] }) }));
|
|
21
21
|
});
|
|
22
|
-
function renderList(items, version) {
|
|
23
|
-
return items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, itemClassName: "text-title-2xs font-light mt-2", version: version === 'primary' ? 'tile' : 'tile-white' })) : null;
|
|
22
|
+
function renderList(items, version, isDotted) {
|
|
23
|
+
return items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, itemClassName: "text-title-2xs font-light mt-2", version: version === 'primary' ? 'tile' : 'tile-white' })) : null;
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;AAOtE,MAAM,YAAY,GAAiC;IACjD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EACJ,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,KAAK,EACL,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,SAAS,EACnB,IAAI,EACJ,MAAM,GAAG,IAAI,GACd,GAAG,KAAK,CAAC;IAEV,OAAO,CACL,oCACE,SAAS,EAAE,iDAAiD,SAAS,IACnE,YAAY,CAAC,OAAO,CACtB,IAAI,IAAA,yCAAmB,EAAC,SAAS,CAAC,IAAI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AAE,WAAW,EAAE,CAAC,CAAC,EACzE,SAAS,EAAC,iBAAiB,GAC3B,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,uBAAC,SAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,aAElE,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IACV,SAAS,EAAC,4CAA4C,EACtD,WAAW,EAAE,WAAW,GACxB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EACR,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,IAC5B,GACH,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,QAAiB;IACnD,OAAO,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,uBAAC,WAAI,IACH,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAC,gCAAgC,EAC9C,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,GACtD,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -8,5 +8,10 @@ import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
|
8
8
|
* @title Плитка
|
|
9
9
|
*/
|
|
10
10
|
export declare type TileContent = HeadingContent & HeadingTypeContent & DescriptionContent & ListContent & ButtonContent & ImageContent & {
|
|
11
|
+
/**
|
|
12
|
+
* @title Буллиты
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
isDotted?: boolean;
|
|
11
16
|
version?: BlockVersion;
|
|
12
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function mapJSON<T>(data: T, mapper: <In, Out = In>(value: In, key: string[]) => Promise<Out>,
|
|
1
|
+
export declare function mapJSON<T>(data: T, mapper: <In, Out = In>(value: In, key: string[]) => Promise<Out>, keyParts?: string[]): Promise<T>;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.mapJSON = void 0;
|
|
3
|
-
async function mapJSON(data, mapper,
|
|
4
|
-
if (data === null || data === undefined)
|
|
3
|
+
async function mapJSON(data, mapper, keyParts = []) {
|
|
4
|
+
if (data === null || data === undefined) {
|
|
5
5
|
return data;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
}
|
|
7
|
+
const mappedData = await mapper(data, keyParts);
|
|
8
|
+
if (mappedData !== data) {
|
|
8
9
|
return mappedData;
|
|
10
|
+
}
|
|
9
11
|
if (Array.isArray(data)) {
|
|
10
|
-
const values = data.map((_, i) => mapJSON(_, mapper, [String(i)].concat(
|
|
12
|
+
const values = data.map((_, i) => mapJSON(_, mapper, [String(i)].concat(keyParts)));
|
|
11
13
|
return Promise.all(values);
|
|
12
14
|
}
|
|
13
15
|
else if (typeof data === 'object' && data.toString() === '[object Object]') {
|
|
14
16
|
const subKeys = Object.keys(data);
|
|
15
|
-
const values = subKeys.map((k) => mapJSON(data[k], mapper, [k].concat(
|
|
17
|
+
const values = subKeys.map((k) => mapJSON(data[k], mapper, [k].concat(keyParts)));
|
|
16
18
|
const pairs = (await Promise.all(values)).map((_, i) => ({
|
|
17
19
|
[subKeys[i]]: _,
|
|
18
20
|
}));
|
|
19
21
|
return Object.assign({}, ...pairs);
|
|
20
22
|
}
|
|
21
|
-
return mapper(data,
|
|
23
|
+
return mapper(data, keyParts);
|
|
22
24
|
}
|
|
23
25
|
exports.mapJSON = mapJSON;
|
|
24
26
|
//# sourceMappingURL=mapJSON.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapJSON.js","sourceRoot":"","sources":["../../src/content-page-repository/mapJSON.ts"],"names":[],"mappings":";;AAAO,KAAK,UAAU,OAAO,CAC3B,IAAO,EACP,MAAgE,EAChE,
|
|
1
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C,CAAC,CAAC,EAAE,CAAC;SAChB,CAAC,CAAC,CAAC;QACJ,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,KAAK,CAAC,CAAC;KACpC;IACD,OAAO,MAAM,CAAI,IAAI,EAAE,QAAQ,CAAC,CAAC;AACnC,CAAC;AA1BD,0BA0BC"}
|
|
@@ -7,8 +7,9 @@ const unified_1 = require("unified");
|
|
|
7
7
|
const remark_parse_1 = __importDefault(require("remark-parse"));
|
|
8
8
|
const remark_html_1 = __importDefault(require("remark-html"));
|
|
9
9
|
async function transformMarkdown(markdown) {
|
|
10
|
-
if (!markdown)
|
|
10
|
+
if (!markdown) {
|
|
11
11
|
return '';
|
|
12
|
+
}
|
|
12
13
|
const result = await (0, unified_1.unified)().use(remark_parse_1.default).use(remark_html_1.default).process(markdown);
|
|
13
14
|
return result.toString('utf-8');
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformMarkdown.js","sourceRoot":"","sources":["../../src/content-page-repository/transformMarkdown.ts"],"names":[],"mappings":";;;;;AAAA,qCAAkC;AAClC,gEAAuC;AACvC,8DAAqC;AAE9B,KAAK,UAAU,iBAAiB,CAAC,QAAmC;IACzE,IAAI,CAAC,QAAQ;
|
|
1
|
+
{"version":3,"file":"transformMarkdown.js","sourceRoot":"","sources":["../../src/content-page-repository/transformMarkdown.ts"],"names":[],"mappings":";;;;;AAAA,qCAAkC;AAClC,gEAAuC;AACvC,8DAAqC;AAE9B,KAAK,UAAU,iBAAiB,CAAC,QAAmC;IACzE,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,EAAE,CAAC;KACX;IAED,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAO,GAAE,CAAC,GAAG,CAAC,sBAAW,CAAC,CAAC,GAAG,CAAC,qBAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClF,OAAO,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAPD,8CAOC"}
|
|
@@ -26,13 +26,15 @@ async function transformImg(pagePath, src, transformationOptions) {
|
|
|
26
26
|
const { contentDir, publicDir, format, options, size } = transformationOptions;
|
|
27
27
|
const imgPath = `${path_1.default.dirname(pagePath)}/${src}`;
|
|
28
28
|
let chain = (0, sharp_1.default)(imgPath);
|
|
29
|
-
if (size)
|
|
29
|
+
if (size) {
|
|
30
30
|
chain = chain.resize(size?.width, size?.height, {
|
|
31
31
|
fit: sharp_1.default.fit.contain,
|
|
32
32
|
background: [0, 0, 0, 0],
|
|
33
33
|
});
|
|
34
|
-
|
|
34
|
+
}
|
|
35
|
+
if (format) {
|
|
35
36
|
chain = chain.toFormat(format, options);
|
|
37
|
+
}
|
|
36
38
|
const transformedSrc = transformSrc(src, transformationOptions);
|
|
37
39
|
const transformedImgPath = `${publicDir}/${path_1.default.relative(contentDir, `${path_1.default.dirname(pagePath)}/${transformedSrc}`)}`;
|
|
38
40
|
await mkdir(path_1.default.dirname(transformedImgPath), { recursive: true });
|
|
@@ -46,8 +48,9 @@ async function transformImg(pagePath, src, transformationOptions) {
|
|
|
46
48
|
}
|
|
47
49
|
function transformSrc(src, { format, size }) {
|
|
48
50
|
const noTransform = !format && !size;
|
|
49
|
-
if (noTransform)
|
|
51
|
+
if (noTransform) {
|
|
50
52
|
return src;
|
|
53
|
+
}
|
|
51
54
|
const suffix = [size?.width, size?.height].filter(Boolean).join('-');
|
|
52
55
|
return `${path_1.default.basename(src, path_1.default.extname(src))}${suffix ? `-${suffix}` : ''}.${String(format) || path_1.default.extname(src)}`;
|
|
53
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformPicture.js","sourceRoot":"","sources":["../../src/content-page-repository/transformPicture.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,kDAA0B;AAC1B,gDAAwB;AAIxB,MAAM,KAAK,GAAG,cAAI,CAAC,SAAS,CAAC,YAAE,CAAC,KAAK,CAAC,CAAC;AAEhC,KAAK,UAAU,gBAAgB,CACpC,QAAgB,EAChB,OAAgB,EAChB,OAA8B;IAE9B,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;IACtC,MAAM,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;IAC/B,MAAM,CAAC,kBAAkB,EAAE,GAAG,kBAAkB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CACnE,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,GAAG,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CACxF,CAAC;IACF,OAAO;QACL,GAAG,OAAO;QACV,GAAG,EAAE,kBAAkB;QACvB,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACzC,GAAG,OAAO,CAAC,CAAC,CAAC;YACb,GAAG,EAAE,CAAC;SACP,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC;AAlBD,4CAkBC;AAED,KAAK,UAAU,YAAY,CACzB,QAAgB,EAChB,GAAW,EACX,qBAAwD;IAExD,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,qBAAqB,CAAC;IAE/E,MAAM,OAAO,GAAG,GAAG,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,GAAG,EAAE,CAAC;IACnD,IAAI,KAAK,GAAG,IAAA,eAAK,EAAC,OAAO,CAAC,CAAC;IAC3B,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"transformPicture.js","sourceRoot":"","sources":["../../src/content-page-repository/transformPicture.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,kDAA0B;AAC1B,g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