@redneckz/wildless-cms-uni-blocks 0.3.11 → 0.3.14
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/README.md +13 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +399 -229
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/GpsIcon.svg +1 -0
- package/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/dist/components/Accordion/AccordionBlocks.js +2 -0
- package/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/dist/components/Accordion/AccordionContent.d.ts +13 -2
- package/dist/components/Accordion/AccordionItem.js +2 -2
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js +1 -1
- package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.js +5 -4
- package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js +1 -1
- package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/Blocks.d.ts +2 -0
- package/dist/components/Blocks.js +4 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.d.ts +3 -1
- package/dist/components/Blocks.mobile.js +6 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +7 -25
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/dist/components/ComparisonTable/ComparisonTableBody.js +30 -0
- package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +13 -0
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/dist/components/ComparisonTable/ComparisonTableRows.js +10 -0
- package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
- package/dist/components/ComparisonTable/TableColumn.js +2 -2
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +1 -1
- package/dist/components/ContentPage/ContentPageHead.js +1 -1
- package/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/dist/components/CreditCalculator/CreditCalculator.d.ts +1 -1
- package/dist/components/CreditCalculator/CreditCalculator.js +8 -51
- package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
- package/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
- package/dist/components/CreditCalculator/CreditCalculatorForm.js +53 -0
- package/dist/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
- package/dist/components/CreditCalculator/defaultTabs.d.ts +2 -0
- package/dist/components/CreditCalculator/defaultTabs.js +23 -0
- package/dist/components/CreditCalculator/defaultTabs.js.map +1 -0
- package/dist/components/CreditCalculator/getCalculatorParams.d.ts +1 -1
- package/dist/components/CreditCalculator/getCreditRate.d.ts +1 -1
- package/dist/components/CreditCalculator/getDefaultMonths.d.ts +2 -0
- package/dist/components/CreditCalculator/getDefaultMonths.js +8 -0
- package/dist/components/CreditCalculator/getDefaultMonths.js.map +1 -0
- package/dist/components/CreditCalculator/getDefaultSum.d.ts +2 -0
- package/dist/components/CreditCalculator/getDefaultSum.js +8 -0
- package/dist/components/CreditCalculator/getDefaultSum.js.map +1 -0
- package/dist/components/CreditCalculator/getMonthlyPayment.d.ts +1 -1
- package/dist/components/CreditCalculator/renderButton.d.ts +1 -0
- package/dist/components/CreditCalculator/renderButton.js +8 -0
- package/dist/components/CreditCalculator/renderButton.js.map +1 -0
- package/dist/components/CreditCalculator/renderMonthsInput.d.ts +10 -0
- package/dist/components/CreditCalculator/renderMonthsInput.js +11 -0
- package/dist/components/CreditCalculator/renderMonthsInput.js.map +1 -0
- package/dist/components/CreditCalculator/renderProposal.d.ts +1 -0
- package/dist/components/CreditCalculator/renderProposal.js +9 -0
- package/dist/components/CreditCalculator/renderProposal.js.map +1 -0
- package/dist/components/CreditCalculator/renderTermsButton.d.ts +1 -0
- package/dist/components/CreditCalculator/renderTermsButton.js +9 -0
- package/dist/components/CreditCalculator/renderTermsButton.js.map +1 -0
- package/dist/components/CreditCalculator/renderWantedSumInput.d.ts +10 -0
- package/dist/components/CreditCalculator/renderWantedSumInput.js +18 -0
- package/dist/components/CreditCalculator/renderWantedSumInput.js.map +1 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.js +19 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -0
- package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/dist/components/ExchangeRateTile/CurrentLocation.js +7 -0
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -0
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -0
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -0
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -0
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +23 -27
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +10 -0
- package/dist/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/dist/components/ExchangeRateTile/formatCurrency.js +6 -0
- package/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -0
- package/dist/components/Footer/Footer.mobile.js +5 -6
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +6 -6
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +6 -0
- package/dist/components/Gallery/GalleryInner.js +1 -1
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +3 -2
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderBurger.d.ts +2 -2
- package/dist/components/Header/HeaderBurger.js +1 -1
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +10 -4
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Headline/Headline.js +3 -8
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +3 -2
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +2 -2
- package/dist/components/Headline/constants.d.ts +4 -0
- package/dist/components/Headline/constants.js +13 -0
- package/dist/components/Headline/constants.js.map +1 -0
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- 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/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/dist/components/Recommendation/Recommendation.d.ts +5 -0
- package/dist/components/Recommendation/Recommendation.js +34 -0
- package/dist/components/Recommendation/Recommendation.js.map +1 -0
- package/dist/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/dist/components/Recommendation/RecommendationCard.js +13 -0
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -0
- package/dist/components/Recommendation/RecommendationContent.d.ts +14 -0
- package/dist/components/Recommendation/RecommendationContent.js +2 -0
- package/dist/components/Recommendation/RecommendationContent.js.map +1 -0
- package/dist/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/dist/components/TariffsTable/TableTileHeader.js +10 -0
- package/dist/components/TariffsTable/TableTileHeader.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTable.js +14 -11
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
- package/dist/components/TariffsTable/TariffsTable.mobile.js +21 -0
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +22 -18
- package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/dist/components/TariffsTable/TariffsTableHorizontal.js +8 -0
- package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
- package/dist/components/TariffsTable/TariffsTableTileCell.js +14 -0
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
- package/dist/components/TariffsTable/TariffsTableVertical.js +7 -0
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -0
- package/dist/components/TextBlock/TextBlock.mobile.js +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/hooks/useCreditCalculatorData.js +3 -3
- package/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/dist/hooks/useExchangeRates.d.ts +9 -0
- package/dist/hooks/useExchangeRates.js +18 -0
- package/dist/hooks/useExchangeRates.js.map +1 -0
- package/dist/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/dist/hooks/useTableArrowScrollControl.js +12 -0
- package/dist/hooks/useTableArrowScrollControl.js.map +1 -0
- package/dist/icons/IconName.d.ts +3 -2
- package/dist/icons/IconName.js +1 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +6 -1
- package/dist/model/InputTypes.d.ts +1 -0
- package/dist/model/InputTypes.js +2 -0
- package/dist/model/InputTypes.js.map +1 -0
- package/dist/model/ListOrientation.d.ts +8 -0
- package/dist/model/ListOrientation.js +2 -0
- package/dist/model/ListOrientation.js.map +1 -0
- package/dist/model/SitemapProps.d.ts +11 -0
- package/dist/services/sitemap/SitemapProps.d.ts +12 -1
- package/dist/setup-fixture.js +1 -1
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/Button/Button.d.ts +1 -0
- package/dist/ui-kit/Button/Button.js +7 -22
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +16 -10
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Description/Description.js +1 -1
- package/dist/ui-kit/Img/Img.d.ts +2 -1
- package/dist/ui-kit/Img/Img.js +2 -2
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.d.ts +6 -2
- package/dist/ui-kit/Img/Img.mobile.js +10 -5
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Input/Input.d.ts +2 -0
- package/dist/ui-kit/Input/Input.js +8 -0
- package/dist/ui-kit/Input/Input.js.map +1 -0
- package/dist/ui-kit/Input/InputProps.d.ts +8 -0
- package/dist/ui-kit/Input/InputProps.js +2 -0
- package/dist/ui-kit/Input/InputProps.js.map +1 -0
- package/dist/ui-kit/Select/Select.d.ts +6 -0
- package/dist/ui-kit/Select/Select.js +8 -0
- package/dist/ui-kit/Select/Select.js.map +1 -0
- package/dist/ui-kit/Select/SelectOption.d.ts +5 -0
- package/dist/ui-kit/Select/SelectOption.js +8 -0
- package/dist/ui-kit/Select/SelectOption.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +7 -3
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
- package/dist/ui-kit/Tabs/Tabs.d.ts +2 -0
- package/dist/ui-kit/Tabs/Tabs.js +16 -0
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -0
- package/dist/ui-kit/Tabs/TabsProps.d.ts +17 -0
- package/dist/ui-kit/Tabs/TabsProps.js +2 -0
- package/dist/ui-kit/Tabs/TabsProps.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.d.ts +4 -1
- package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +3 -1
- package/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/lib/components/Accordion/AccordionBlocks.js +2 -0
- package/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/lib/components/Accordion/AccordionContent.d.ts +13 -2
- package/lib/components/Accordion/AccordionItem.js +2 -2
- package/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js +1 -1
- package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.js +5 -4
- package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js +1 -1
- package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +3 -1
- package/lib/components/Blocks.d.ts +2 -0
- package/lib/components/Blocks.js +4 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.d.ts +3 -1
- package/lib/components/Blocks.mobile.js +6 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +8 -26
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/lib/components/ComparisonTable/ComparisonTableBody.js +28 -0
- package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +11 -0
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/lib/components/ComparisonTable/ComparisonTableRows.js +8 -0
- package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
- package/lib/components/ComparisonTable/TableColumn.js +2 -2
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +1 -1
- package/lib/components/ContentPage/ContentPageHead.js +1 -1
- package/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/lib/components/CreditCalculator/CreditCalculator.d.ts +1 -1
- package/lib/components/CreditCalculator/CreditCalculator.fixture.d.ts +3 -1
- package/lib/components/CreditCalculator/CreditCalculator.js +8 -51
- package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
- package/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
- package/lib/components/CreditCalculator/CreditCalculatorForm.js +51 -0
- package/lib/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
- package/lib/components/CreditCalculator/defaultTabs.d.ts +2 -0
- package/lib/components/CreditCalculator/defaultTabs.js +21 -0
- package/lib/components/CreditCalculator/defaultTabs.js.map +1 -0
- package/lib/components/CreditCalculator/getCalculatorParams.d.ts +1 -1
- package/lib/components/CreditCalculator/getCreditRate.d.ts +1 -1
- package/lib/components/CreditCalculator/getDefaultMonths.d.ts +2 -0
- package/lib/components/CreditCalculator/getDefaultMonths.js +5 -0
- package/lib/components/CreditCalculator/getDefaultMonths.js.map +1 -0
- package/lib/components/CreditCalculator/getDefaultSum.d.ts +2 -0
- package/lib/components/CreditCalculator/getDefaultSum.js +5 -0
- package/lib/components/CreditCalculator/getDefaultSum.js.map +1 -0
- package/lib/components/CreditCalculator/getMonthlyPayment.d.ts +1 -1
- package/lib/components/CreditCalculator/renderButton.d.ts +1 -0
- package/lib/components/CreditCalculator/renderButton.js +5 -0
- package/lib/components/CreditCalculator/renderButton.js.map +1 -0
- package/lib/components/CreditCalculator/renderMonthsInput.d.ts +10 -0
- package/lib/components/CreditCalculator/renderMonthsInput.js +8 -0
- package/lib/components/CreditCalculator/renderMonthsInput.js.map +1 -0
- package/lib/components/CreditCalculator/renderProposal.d.ts +1 -0
- package/lib/components/CreditCalculator/renderProposal.js +6 -0
- package/lib/components/CreditCalculator/renderProposal.js.map +1 -0
- package/lib/components/CreditCalculator/renderTermsButton.d.ts +1 -0
- package/lib/components/CreditCalculator/renderTermsButton.js +6 -0
- package/lib/components/CreditCalculator/renderTermsButton.js.map +1 -0
- package/lib/components/CreditCalculator/renderWantedSumInput.d.ts +10 -0
- package/lib/components/CreditCalculator/renderWantedSumInput.js +15 -0
- package/lib/components/CreditCalculator/renderWantedSumInput.js.map +1 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.js +17 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -0
- package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/lib/components/ExchangeRateTile/CurrentLocation.js +5 -0
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -0
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -0
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +13 -0
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +23 -27
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +10 -0
- package/lib/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/lib/components/ExchangeRateTile/formatCurrency.js +3 -0
- package/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -0
- package/lib/components/Footer/Footer.fixture.d.ts +3 -1
- package/lib/components/Footer/Footer.fixture.mobile.d.ts +3 -1
- package/lib/components/Footer/Footer.mobile.js +5 -6
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +6 -6
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +6 -0
- package/lib/components/Gallery/GalleryInner.js +1 -1
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +3 -2
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderBurger.d.ts +2 -2
- package/lib/components/Header/HeaderBurger.js +1 -1
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +10 -4
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +4 -2
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +2 -3
- package/lib/components/Headline/Headline.js +3 -8
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +3 -2
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +2 -2
- package/lib/components/Headline/constants.d.ts +4 -0
- package/lib/components/Headline/constants.js +11 -0
- package/lib/components/Headline/constants.js.map +1 -0
- package/lib/components/LikeControl/LikeControl.fixture.d.ts +3 -1
- package/lib/components/LinkList/LinkList.fixture.d.ts +3 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +3 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +3 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/Navigation/Navigation.fixture.d.ts +3 -1
- package/lib/components/Placeholder/Placeholder.fixture.d.ts +3 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +3 -0
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- 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/ProductGallery/ProductGallery.fixture.d.ts +3 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +2 -1
- package/lib/components/Recommendation/Recommendation.d.ts +5 -0
- package/lib/components/Recommendation/Recommendation.fixture.d.ts +6 -0
- package/lib/components/Recommendation/Recommendation.js +32 -0
- package/lib/components/Recommendation/Recommendation.js.map +1 -0
- package/lib/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/lib/components/Recommendation/RecommendationCard.js +11 -0
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -0
- package/lib/components/Recommendation/RecommendationContent.d.ts +14 -0
- package/lib/components/Recommendation/RecommendationContent.js +2 -0
- package/lib/components/Recommendation/RecommendationContent.js.map +1 -0
- package/lib/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/lib/components/TariffsTable/TableTileHeader.js +8 -0
- package/lib/components/TariffsTable/TableTileHeader.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +5 -0
- package/lib/components/TariffsTable/TariffsTable.js +14 -11
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
- package/lib/components/TariffsTable/TariffsTable.mobile.js +19 -0
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +22 -18
- package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/lib/components/TariffsTable/TariffsTableHorizontal.js +6 -0
- package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
- package/lib/components/TariffsTable/TariffsTableTileCell.js +12 -0
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
- package/lib/components/TariffsTable/TariffsTableVertical.js +5 -0
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -0
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +3 -1
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +3 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.fixture.d.ts +1 -0
- package/lib/hooks/useCreditCalculatorData.js +3 -3
- package/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/lib/hooks/useExchangeRates.d.ts +9 -0
- package/lib/hooks/useExchangeRates.js +15 -0
- package/lib/hooks/useExchangeRates.js.map +1 -0
- package/lib/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/lib/hooks/useTableArrowScrollControl.js +9 -0
- package/lib/hooks/useTableArrowScrollControl.js.map +1 -0
- package/lib/icons/IconName.d.ts +3 -2
- package/lib/icons/IconName.js +1 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +6 -1
- package/lib/model/InputTypes.d.ts +1 -0
- package/lib/model/InputTypes.js +2 -0
- package/lib/model/InputTypes.js.map +1 -0
- package/lib/model/ListOrientation.d.ts +8 -0
- package/lib/model/ListOrientation.js +2 -0
- package/lib/model/ListOrientation.js.map +1 -0
- package/lib/model/SitemapProps.d.ts +11 -0
- package/lib/services/sitemap/SitemapProps.d.ts +12 -1
- package/lib/setup-fixture.js +1 -1
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/Button/Button.d.ts +1 -0
- package/lib/ui-kit/Button/Button.js +6 -21
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +16 -10
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Description/Description.js +1 -1
- package/lib/ui-kit/Img/Img.d.ts +2 -1
- package/lib/ui-kit/Img/Img.js +2 -2
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.d.ts +6 -2
- package/lib/ui-kit/Img/Img.mobile.js +10 -5
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Input/Input.d.ts +2 -0
- package/lib/ui-kit/Input/Input.js +6 -0
- package/lib/ui-kit/Input/Input.js.map +1 -0
- package/lib/ui-kit/Input/InputProps.d.ts +8 -0
- package/lib/ui-kit/Input/InputProps.js +2 -0
- package/lib/ui-kit/Input/InputProps.js.map +1 -0
- package/lib/ui-kit/Select/Select.d.ts +6 -0
- package/lib/ui-kit/Select/Select.js +6 -0
- package/lib/ui-kit/Select/Select.js.map +1 -0
- package/lib/ui-kit/Select/SelectOption.d.ts +5 -0
- package/lib/ui-kit/Select/SelectOption.js +6 -0
- package/lib/ui-kit/Select/SelectOption.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +8 -4
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +7 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
- package/lib/ui-kit/Tabs/Tabs.d.ts +2 -0
- package/lib/ui-kit/Tabs/Tabs.js +14 -0
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -0
- package/lib/ui-kit/Tabs/TabsProps.d.ts +17 -0
- package/lib/ui-kit/Tabs/TabsProps.js +2 -0
- package/lib/ui-kit/Tabs/TabsProps.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +337 -164
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js +2 -0
- package/mobile/dist/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionContent.d.ts +13 -2
- package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/Blocks.d.ts +3 -1
- package/mobile/dist/components/Blocks.js +6 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +30 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +13 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +10 -0
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
- package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +1 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js +8 -51
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js +53 -0
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/defaultTabs.d.ts +2 -0
- package/mobile/dist/components/CreditCalculator/defaultTabs.js +23 -0
- package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/CreditCalculator/getCreditRate.d.ts +1 -1
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.d.ts +2 -0
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.js +8 -0
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getDefaultSum.d.ts +2 -0
- package/mobile/dist/components/CreditCalculator/getDefaultSum.js +8 -0
- package/mobile/dist/components/CreditCalculator/getDefaultSum.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.d.ts +1 -1
- package/mobile/dist/components/CreditCalculator/renderButton.d.ts +1 -0
- package/mobile/dist/components/CreditCalculator/renderButton.js +8 -0
- package/mobile/dist/components/CreditCalculator/renderButton.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.d.ts +10 -0
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.js +11 -0
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/renderProposal.d.ts +1 -0
- package/mobile/dist/components/CreditCalculator/renderProposal.js +9 -0
- package/mobile/dist/components/CreditCalculator/renderProposal.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/renderTermsButton.d.ts +1 -0
- package/mobile/dist/components/CreditCalculator/renderTermsButton.js +9 -0
- package/mobile/dist/components/CreditCalculator/renderTermsButton.js.map +1 -0
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.d.ts +10 -0
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js +18 -0
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +19 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +7 -0
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +23 -27
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +10 -0
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +6 -0
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -0
- package/mobile/dist/components/Footer/Footer.js +5 -6
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +6 -6
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +6 -0
- package/mobile/dist/components/Gallery/GalleryInner.js +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +3 -2
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.d.ts +2 -2
- package/mobile/dist/components/Header/HeaderBurger.js +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +10 -4
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +3 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/dist/components/Headline/constants.d.ts +4 -0
- package/mobile/dist/components/Headline/constants.js +13 -0
- package/mobile/dist/components/Headline/constants.js.map +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.d.ts +5 -0
- package/mobile/dist/components/Recommendation/Recommendation.js +34 -0
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -0
- package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/mobile/dist/components/Recommendation/RecommendationCard.js +13 -0
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -0
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +14 -0
- package/mobile/dist/components/Recommendation/RecommendationContent.js +2 -0
- package/mobile/dist/components/Recommendation/RecommendationContent.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/mobile/dist/components/TariffsTable/TableTileHeader.js +10 -0
- package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.js +14 -18
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +22 -18
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +8 -0
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +14 -0
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +7 -0
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -0
- package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/hooks/useCreditCalculatorData.js +3 -3
- package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/dist/hooks/useExchangeRates.d.ts +9 -0
- package/mobile/dist/hooks/useExchangeRates.js +18 -0
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -0
- package/mobile/dist/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/mobile/dist/hooks/useTableArrowScrollControl.js +12 -0
- package/mobile/dist/hooks/useTableArrowScrollControl.js.map +1 -0
- package/mobile/dist/icons/IconName.d.ts +3 -2
- package/mobile/dist/icons/IconName.js +1 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/BlockVersion.d.ts +6 -1
- package/mobile/dist/model/InputTypes.d.ts +1 -0
- package/mobile/dist/model/InputTypes.js +2 -0
- package/mobile/dist/model/InputTypes.js.map +1 -0
- package/mobile/dist/model/ListOrientation.d.ts +8 -0
- package/mobile/dist/model/ListOrientation.js +2 -0
- package/mobile/dist/model/ListOrientation.js.map +1 -0
- package/mobile/dist/model/SitemapProps.d.ts +11 -0
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +12 -1
- package/mobile/dist/setup-fixture.js +1 -1
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +16 -10
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Description/Description.js +1 -1
- package/mobile/dist/ui-kit/Img/Img.d.ts +6 -2
- package/mobile/dist/ui-kit/Img/Img.js +10 -5
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.d.ts +2 -0
- package/mobile/dist/ui-kit/Input/Input.js +8 -0
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -0
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +8 -0
- package/mobile/dist/ui-kit/Input/InputProps.js +2 -0
- package/mobile/dist/ui-kit/Input/InputProps.js.map +1 -0
- package/mobile/dist/ui-kit/Select/Select.d.ts +6 -0
- package/mobile/dist/ui-kit/Select/Select.js +8 -0
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -0
- package/mobile/dist/ui-kit/Select/SelectOption.d.ts +5 -0
- package/mobile/dist/ui-kit/Select/SelectOption.js +8 -0
- package/mobile/dist/ui-kit/Select/SelectOption.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +7 -3
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
- package/mobile/dist/ui-kit/Tabs/Tabs.d.ts +2 -0
- package/mobile/dist/ui-kit/Tabs/Tabs.js +16 -0
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -0
- package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +17 -0
- package/mobile/dist/ui-kit/Tabs/TabsProps.js +2 -0
- package/mobile/dist/ui-kit/Tabs/TabsProps.js.map +1 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.d.ts +1 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js +2 -0
- package/mobile/lib/components/Accordion/AccordionBlocks.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionContent.d.ts +13 -2
- package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/Blocks.d.ts +3 -1
- package/mobile/lib/components/Blocks.js +6 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +28 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +11 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +8 -0
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -0
- package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPageHead.js.map +1 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +1 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js +8 -51
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +10 -2
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js +51 -0
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/defaultTabs.d.ts +2 -0
- package/mobile/lib/components/CreditCalculator/defaultTabs.js +21 -0
- package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/CreditCalculator/getCreditRate.d.ts +1 -1
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.d.ts +2 -0
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.js +5 -0
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getDefaultSum.d.ts +2 -0
- package/mobile/lib/components/CreditCalculator/getDefaultSum.js +5 -0
- package/mobile/lib/components/CreditCalculator/getDefaultSum.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.d.ts +1 -1
- package/mobile/lib/components/CreditCalculator/renderButton.d.ts +1 -0
- package/mobile/lib/components/CreditCalculator/renderButton.js +5 -0
- package/mobile/lib/components/CreditCalculator/renderButton.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.d.ts +10 -0
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.js +8 -0
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/renderProposal.d.ts +1 -0
- package/mobile/lib/components/CreditCalculator/renderProposal.js +6 -0
- package/mobile/lib/components/CreditCalculator/renderProposal.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/renderTermsButton.d.ts +1 -0
- package/mobile/lib/components/CreditCalculator/renderTermsButton.js +6 -0
- package/mobile/lib/components/CreditCalculator/renderTermsButton.js.map +1 -0
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.d.ts +10 -0
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js +15 -0
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +17 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +5 -0
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +13 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +23 -27
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +10 -0
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +3 -0
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -0
- package/mobile/lib/components/Footer/Footer.js +5 -6
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +6 -6
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +6 -0
- package/mobile/lib/components/Gallery/GalleryInner.js +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +3 -2
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.d.ts +2 -2
- package/mobile/lib/components/Header/HeaderBurger.js +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +10 -4
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +3 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/lib/components/Headline/constants.d.ts +4 -0
- package/mobile/lib/components/Headline/constants.js +11 -0
- package/mobile/lib/components/Headline/constants.js.map +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -0
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.d.ts +5 -0
- package/mobile/lib/components/Recommendation/Recommendation.js +32 -0
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -0
- package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +7 -0
- package/mobile/lib/components/Recommendation/RecommendationCard.js +11 -0
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -0
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +14 -0
- package/mobile/lib/components/Recommendation/RecommendationContent.js +2 -0
- package/mobile/lib/components/Recommendation/RecommendationContent.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TableTileHeader.d.ts +2 -0
- package/mobile/lib/components/TariffsTable/TableTileHeader.js +8 -0
- package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.js +14 -18
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +22 -18
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +6 -0
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +2 -0
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +12 -0
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +4 -0
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +5 -0
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -0
- package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/hooks/useCreditCalculatorData.js +3 -3
- package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/lib/hooks/useExchangeRates.d.ts +9 -0
- package/mobile/lib/hooks/useExchangeRates.js +15 -0
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -0
- package/mobile/lib/hooks/useTableArrowScrollControl.d.ts +7 -0
- package/mobile/lib/hooks/useTableArrowScrollControl.js +9 -0
- package/mobile/lib/hooks/useTableArrowScrollControl.js.map +1 -0
- package/mobile/lib/icons/IconName.d.ts +3 -2
- package/mobile/lib/icons/IconName.js +1 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/BlockVersion.d.ts +6 -1
- package/mobile/lib/model/InputTypes.d.ts +1 -0
- package/mobile/lib/model/InputTypes.js +2 -0
- package/mobile/lib/model/InputTypes.js.map +1 -0
- package/mobile/lib/model/ListOrientation.d.ts +8 -0
- package/mobile/lib/model/ListOrientation.js +2 -0
- package/mobile/lib/model/ListOrientation.js.map +1 -0
- package/mobile/lib/model/SitemapProps.d.ts +11 -0
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +12 -1
- package/mobile/lib/setup-fixture.js +1 -1
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +16 -10
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Description/Description.js +1 -1
- package/mobile/lib/ui-kit/Img/Img.d.ts +6 -2
- package/mobile/lib/ui-kit/Img/Img.js +10 -5
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.d.ts +2 -0
- package/mobile/lib/ui-kit/Input/Input.js +6 -0
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -0
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +8 -0
- package/mobile/lib/ui-kit/Input/InputProps.js +2 -0
- package/mobile/lib/ui-kit/Input/InputProps.js.map +1 -0
- package/mobile/lib/ui-kit/Select/Select.d.ts +6 -0
- package/mobile/lib/ui-kit/Select/Select.js +6 -0
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -0
- package/mobile/lib/ui-kit/Select/SelectOption.d.ts +5 -0
- package/mobile/lib/ui-kit/Select/SelectOption.js +6 -0
- package/mobile/lib/ui-kit/Select/SelectOption.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +8 -4
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +7 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js +2 -0
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.js.map +1 -0
- package/mobile/lib/ui-kit/Tabs/Tabs.d.ts +2 -0
- package/mobile/lib/ui-kit/Tabs/Tabs.js +14 -0
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -0
- package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +17 -0
- package/mobile/lib/ui-kit/Tabs/TabsProps.js +2 -0
- package/mobile/lib/ui-kit/Tabs/TabsProps.js.map +1 -0
- package/mobile/src/common.css +12 -0
- package/mobile/src/components/Accordion/AccordionBlocks.tsx +2 -0
- package/mobile/src/components/Accordion/AccordionContent.ts +16 -0
- package/mobile/src/components/Accordion/AccordionItem.tsx +2 -2
- package/mobile/src/components/Accordion/AccordionItemInner.tsx +1 -1
- package/mobile/src/components/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/components/Blocks.ts +6 -2
- package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +68 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +34 -0
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
- package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +32 -0
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +6 -2
- package/mobile/src/components/ContentPage/ContentPage.page.json +74 -0
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +1 -1
- package/mobile/src/components/ContentPage/ContentPageHead.tsx +1 -1
- package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +19 -142
- package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +12 -2
- package/mobile/src/components/CreditCalculator/CreditCalculatorForm.tsx +92 -0
- package/mobile/src/components/CreditCalculator/defaultTabs.ts +22 -0
- package/mobile/src/components/CreditCalculator/getCalculatorParams.ts +1 -1
- package/mobile/src/components/CreditCalculator/getCreditRate.ts +1 -1
- package/mobile/src/components/CreditCalculator/getDefaultMonths.ts +7 -0
- package/mobile/src/components/CreditCalculator/getDefaultSum.ts +7 -0
- package/mobile/src/components/CreditCalculator/getMonthlyPayment.ts +1 -1
- package/mobile/src/components/CreditCalculator/renderButton.tsx +13 -0
- package/mobile/src/components/CreditCalculator/renderMonthsInput.tsx +29 -0
- package/mobile/src/components/CreditCalculator/renderProposal.tsx +13 -0
- package/mobile/src/components/CreditCalculator/renderTermsButton.tsx +16 -0
- package/mobile/src/components/CreditCalculator/renderWantedSumInput.tsx +36 -0
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +47 -0
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +22 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +47 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +48 -79
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +11 -0
- package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +3 -0
- package/mobile/src/components/Footer/Footer.tsx +9 -9
- package/mobile/src/components/Footer/FooterContent.ts +1 -1
- package/mobile/src/components/Gallery/Gallery.example.json +4 -0
- package/mobile/src/components/Gallery/Gallery.tsx +19 -9
- package/mobile/src/components/Gallery/GalleryContent.ts +6 -0
- package/mobile/src/components/Gallery/GalleryInner.tsx +2 -0
- package/mobile/src/components/Header/Header.tsx +5 -6
- package/mobile/src/components/Header/HeaderBurger.tsx +11 -6
- package/mobile/src/components/Header/HeaderContent.ts +12 -4
- package/mobile/src/components/Header/HeaderTop.tsx +5 -1
- package/mobile/src/components/Headline/Headline.example.json +1 -1
- package/mobile/src/components/Headline/Headline.tsx +20 -4
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -3
- package/mobile/src/components/Headline/constants.ts +14 -0
- package/mobile/src/components/MiniGallery/MiniGallery.example.json +8 -4
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -0
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +3 -1
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -1
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
- package/mobile/src/components/ProductTile/ProductTile.example.json +1 -0
- package/mobile/src/components/Recommendation/Recommendation.example.json +38 -0
- package/mobile/src/components/Recommendation/Recommendation.tsx +105 -0
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +33 -0
- package/mobile/src/components/Recommendation/RecommendationContent.ts +19 -0
- package/mobile/src/components/TariffsTable/TableTileHeader.tsx +15 -0
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +7 -1
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +41 -65
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +31 -23
- package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +16 -0
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +61 -0
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +11 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
- package/mobile/src/hooks/useCreditCalculatorData.ts +3 -7
- package/mobile/src/hooks/useExchangeRates.ts +25 -0
- package/mobile/src/hooks/useTableArrowScrollControl.ts +22 -0
- package/mobile/src/icons/GpsIcon.svg +8 -0
- package/mobile/src/icons/IconName.ts +3 -3
- package/mobile/src/model/BlockVersion.ts +7 -1
- package/mobile/src/model/InputTypes.ts +1 -0
- package/mobile/src/model/ListOrientation.ts +8 -0
- package/mobile/src/model/SitemapProps.ts +12 -0
- package/mobile/src/services/sitemap/SitemapProps.ts +13 -1
- package/mobile/src/setup-fixture.ts +1 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +25 -21
- package/mobile/src/ui-kit/Description/Description.tsx +1 -1
- package/mobile/src/ui-kit/Img/Img.tsx +29 -15
- package/mobile/src/ui-kit/Input/Input.tsx +8 -0
- package/mobile/src/ui-kit/Input/InputProps.ts +9 -0
- package/mobile/src/ui-kit/Select/Select.tsx +15 -0
- package/mobile/src/ui-kit/Select/SelectOption.tsx +14 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +17 -20
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +12 -0
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +27 -0
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +7 -0
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +46 -0
- package/mobile/src/ui-kit/Tabs/TabsProps.ts +20 -0
- package/package.json +12 -2
- package/src/common.css +12 -0
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +7 -5
- package/src/components/Accordion/Accordion.fixture.tsx +80 -14
- package/src/components/Accordion/AccordionBlocks.tsx +2 -0
- package/src/components/Accordion/AccordionContent.ts +16 -0
- package/src/components/Accordion/AccordionItem.mobile.tsx +2 -2
- package/src/components/Accordion/AccordionItem.tsx +4 -2
- package/src/components/Accordion/AccordionItemInner.mobile.tsx +1 -1
- package/src/components/Accordion/AccordionItemInner.tsx +21 -16
- package/src/components/BaseTile/BaseTile.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +36 -33
- package/src/components/Blocks.mobile.ts +6 -2
- package/src/components/Blocks.ts +4 -0
- package/src/components/ComparisonTable/ComparisonTable.tsx +38 -99
- package/src/components/ComparisonTable/ComparisonTableBody.tsx +68 -0
- package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +34 -0
- package/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
- package/src/components/ComparisonTable/ComparisonTableRows.tsx +32 -0
- package/src/components/ComparisonTable/TableColumn.tsx +6 -2
- package/src/components/ContentPage/ContentPage.page.json +74 -0
- package/src/components/ContentPage/ContentPageContext.tsx +1 -1
- package/src/components/ContentPage/ContentPageHead.tsx +1 -1
- package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +30 -10
- package/src/components/CreditCalculator/CreditCalculator.tsx +19 -142
- package/src/components/CreditCalculator/CreditCalculatorContent.ts +12 -2
- package/src/components/CreditCalculator/CreditCalculatorForm.tsx +92 -0
- package/src/components/CreditCalculator/defaultTabs.ts +22 -0
- package/src/components/CreditCalculator/getCalculatorParams.ts +1 -1
- package/src/components/CreditCalculator/getCreditRate.ts +1 -1
- package/src/components/CreditCalculator/getDefaultMonths.ts +7 -0
- package/src/components/CreditCalculator/getDefaultSum.ts +7 -0
- package/src/components/CreditCalculator/getMonthlyPayment.ts +1 -1
- package/src/components/CreditCalculator/renderButton.tsx +13 -0
- package/src/components/CreditCalculator/renderMonthsInput.tsx +29 -0
- package/src/components/CreditCalculator/renderProposal.tsx +13 -0
- package/src/components/CreditCalculator/renderTermsButton.tsx +16 -0
- package/src/components/CreditCalculator/renderWantedSumInput.tsx +36 -0
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +47 -0
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +22 -0
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +47 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +48 -79
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +11 -0
- package/src/components/ExchangeRateTile/formatCurrency.ts +3 -0
- package/src/components/Footer/Footer.fixture.mobile.tsx +88 -281
- package/src/components/Footer/Footer.fixture.tsx +143 -141
- package/src/components/Footer/Footer.mobile.tsx +9 -9
- package/src/components/Footer/FooterContent.ts +1 -1
- package/src/components/Gallery/Gallery.example.json +4 -0
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +9 -4
- package/src/components/Gallery/Gallery.mobile.tsx +19 -9
- package/src/components/Gallery/GalleryContent.ts +6 -0
- package/src/components/Gallery/GalleryInner.tsx +2 -0
- package/src/components/Header/Header.fixture.mobile.tsx +1 -203
- package/src/components/Header/Header.mobile.tsx +5 -6
- package/src/components/Header/HeaderBurger.tsx +11 -6
- package/src/components/Header/HeaderContent.ts +12 -4
- package/src/components/Header/HeaderTop.tsx +5 -1
- package/src/components/Headline/Headline.example.json +1 -1
- package/src/components/Headline/Headline.fixture.mobile.tsx +39 -15
- package/src/components/Headline/Headline.fixture.tsx +20 -17
- package/src/components/Headline/Headline.mobile.tsx +20 -4
- package/src/components/Headline/Headline.tsx +9 -12
- package/src/components/Headline/HeadlineContent.ts +2 -3
- package/src/components/Headline/constants.ts +14 -0
- package/src/components/LikeControl/LikeControl.fixture.tsx +7 -5
- package/src/components/LinkList/LinkList.fixture.tsx +8 -10
- package/src/components/MiniGallery/MiniGallery.example.json +8 -4
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +11 -9
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +32 -30
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/Navigation/Navigation.fixture.tsx +26 -24
- package/src/components/Placeholder/Placeholder.fixture.tsx +7 -5
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +27 -11
- package/src/components/ProductBlock/ProductBlockContent.ts +1 -0
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +3 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.example.json +2 -1
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +104 -102
- package/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
- package/src/components/ProductTile/ProductTile.example.json +1 -0
- package/src/components/ProductTile/ProductTile.fixture.tsx +50 -117
- package/src/components/Recommendation/Recommendation.example.json +38 -0
- package/src/components/Recommendation/Recommendation.fixture.tsx +73 -0
- package/src/components/Recommendation/Recommendation.tsx +105 -0
- package/src/components/Recommendation/RecommendationCard.tsx +33 -0
- package/src/components/Recommendation/RecommendationContent.ts +19 -0
- package/src/components/TariffsTable/TableTileHeader.tsx +15 -0
- package/src/components/TariffsTable/TariffsTable.example.json +7 -1
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +164 -0
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +5 -1
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +54 -0
- package/src/components/TariffsTable/TariffsTable.tsx +51 -47
- package/src/components/TariffsTable/TariffsTableCell.tsx +3 -3
- package/src/components/TariffsTable/TariffsTableContent.ts +31 -23
- package/src/components/TariffsTable/TariffsTableHorizontal.tsx +16 -0
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +61 -0
- package/src/components/TariffsTable/TariffsTableVertical.tsx +11 -0
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +105 -93
- package/src/components/TextBlock/TextBlock.fixture.tsx +91 -64
- package/src/components/TextBlock/TextBlock.mobile.tsx +2 -2
- package/src/components/Tile/Tile.fixture.tsx +17 -35
- package/src/hooks/useCreditCalculatorData.ts +3 -7
- package/src/hooks/useExchangeRates.ts +25 -0
- package/src/hooks/useTableArrowScrollControl.ts +22 -0
- package/src/icons/GpsIcon.svg +8 -0
- package/src/icons/IconName.ts +3 -3
- package/src/model/BlockVersion.ts +7 -1
- package/src/model/InputTypes.ts +1 -0
- package/src/model/ListOrientation.ts +8 -0
- package/src/model/SitemapProps.ts +12 -0
- package/src/services/sitemap/SitemapProps.ts +13 -1
- package/src/setup-fixture.ts +1 -1
- package/src/ui-kit/Button/Button.tsx +32 -54
- package/src/ui-kit/Button/ButtonInner.tsx +25 -21
- package/src/ui-kit/Description/Description.tsx +1 -1
- package/src/ui-kit/Img/Img.mobile.tsx +29 -15
- package/src/ui-kit/Img/Img.tsx +27 -24
- package/src/ui-kit/Input/Input.tsx +8 -0
- package/src/ui-kit/Input/InputProps.ts +9 -0
- package/src/ui-kit/Select/Select.tsx +15 -0
- package/src/ui-kit/Select/SelectOption.tsx +14 -0
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +17 -20
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +12 -0
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +27 -0
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +7 -0
- package/src/ui-kit/Tabs/Tabs.tsx +46 -0
- package/src/ui-kit/Tabs/TabsProps.ts +20 -0
- package/dist/hooks/useComparisonTableScroll.d.ts +0 -12
- package/dist/hooks/useComparisonTableScroll.js +0 -12
- package/dist/hooks/useComparisonTableScroll.js.map +0 -1
- package/lib/hooks/useComparisonTableScroll.d.ts +0 -12
- package/lib/hooks/useComparisonTableScroll.js +0 -9
- package/lib/hooks/useComparisonTableScroll.js.map +0 -1
- package/mobile/dist/hooks/useComparisonTableScroll.d.ts +0 -12
- package/mobile/dist/hooks/useComparisonTableScroll.js +0 -12
- package/mobile/dist/hooks/useComparisonTableScroll.js.map +0 -1
- package/mobile/lib/hooks/useComparisonTableScroll.d.ts +0 -12
- package/mobile/lib/hooks/useComparisonTableScroll.js +0 -9
- package/mobile/lib/hooks/useComparisonTableScroll.js.map +0 -1
- package/mobile/src/hooks/useComparisonTableScroll.ts +0 -21
- package/src/hooks/useComparisonTableScroll.ts +0 -21
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
|
+
export const CurrentLocation = JSX(({ className = '', address, distance }) => (_jsxs("div", { className: `flex text-sm ${className}`, children: [_jsx(Icon, { className: "min-w-fit", name: "GpsIcon", width: "24", height: "24", asSVG: true }), _jsxs("div", { className: "ml-1.5", children: [address ? _jsx("p", { className: "m-0", children: address }) : null, distance ? (_jsxs("p", { className: "text-secondary-text m-0", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
|
|
5
|
+
//# sourceMappingURL=CurrentLocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentLocation.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/CurrentLocation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAQ9C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAChC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACzC,eAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,aACzC,KAAC,IAAI,IAAC,SAAS,EAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EAC1E,eAAK,SAAS,EAAC,QAAQ,aACpB,OAAO,CAAC,CAAC,CAAC,YAAG,SAAS,EAAC,KAAK,YAAE,OAAO,GAAK,CAAC,CAAC,CAAC,IAAI,EACjD,QAAQ,CAAC,CAAC,CAAC,CACV,aAAG,SAAS,EAAC,yBAAyB,gMAAqC,QAAQ,IAAK,CACzF,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ExchangeCurrencyItem } from './ExchangeRateTileContent';
|
|
2
|
+
export interface ExchangeCurrencyCalculatorProps {
|
|
3
|
+
exchangeCurrencyItems: ExchangeCurrencyItem[];
|
|
4
|
+
codes: string[];
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ExchangeCurrencyCalculator: (props: import("@redneckz/uni-jsx").PropsWithChildren<ExchangeCurrencyCalculatorProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Button } from '../../ui-kit/Button/Button.js';
|
|
4
|
+
import { Input } from '../../ui-kit/Input/Input.js';
|
|
5
|
+
import { Select } from '../../ui-kit/Select/Select.js';
|
|
6
|
+
import { SelectOption } from '../../ui-kit/Select/SelectOption.js';
|
|
7
|
+
export const ExchangeCurrencyCalculator = JSX(({ codes, className = '' }) => {
|
|
8
|
+
return (_jsxs("div", { className: `grid gap-3.5 ${className}`, children: [renderInput('Хочу продать', codes), renderInput('Получу', codes), _jsx(Button, { className: "box-border mt-3.5 py-3 h-12 w-44", version: "primary", href: "#", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" })] }));
|
|
9
|
+
});
|
|
10
|
+
function renderInput(placeholder, codes) {
|
|
11
|
+
return (_jsxs("div", { className: "flex items-center", children: [_jsx(Input, { className: "h-10 border pl-2.5 rounded-md text-m-sm w-full appearance-none", type: "number", placeholder: `${placeholder}` }), codes.length ? (_jsx(Select, { className: "h-9 -translate-x-16", children: codes.map((code, i) => (_jsx(SelectOption, { value: code, children: code }, String(i)))) })) : null] }));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=ExchangeCurrencyCalculator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExchangeCurrencyCalculator.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAShE,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAC3C,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IAC5B,OAAO,CACL,eAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,aACxC,WAAW,CAAC,cAAc,EAAE,KAAK,CAAC,EAClC,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,EAC7B,KAAC,MAAM,IAAC,SAAS,EAAC,kCAAkC,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,GAAG,0FAEtE,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAAC,WAAmB,EAAE,KAAe;IACvD,OAAO,CACL,eAAK,SAAS,EAAC,mBAAmB,aAChC,KAAC,KAAK,IACJ,SAAS,EAAC,gEAAgE,EAC1E,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE,GAAG,WAAW,EAAE,GAC7B,EACD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,KAAC,MAAM,IAAC,SAAS,EAAC,qBAAqB,YACpC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,KAAC,YAAY,IAAiB,KAAK,EAAE,IAAI,YACtC,IAAI,IADY,MAAM,CAAC,CAAC,CAAC,CAEb,CAChB,CAAC,GACK,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,39 +1,35 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import {
|
|
3
|
+
import { useExchangeRates } from '../../hooks/useExchangeRates.js';
|
|
4
4
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
-
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
6
5
|
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
7
6
|
import { getTileHeadingType } from '../BaseTile/getTileHeadingType.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
7
|
+
import { CurrencyTable } from './CurrencyTable.js';
|
|
8
|
+
import { CurrentLocation } from './CurrentLocation.js';
|
|
9
|
+
import { ExchangeCurrencyCalculator } from './ExchangeCurrencyCalculator.js';
|
|
11
10
|
const CURRENCY_CODES = ['USD', 'EUR'];
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
const EXCHANGE_CODES = ['RUB', 'USD', 'EUR'];
|
|
12
|
+
const DEFAULT_CURRENCY_ITEMS = [
|
|
13
|
+
{
|
|
14
|
+
buyExchangeRate: 90.6,
|
|
15
|
+
saleExchangeRate: 92.8,
|
|
16
|
+
currency: { id: 2, code: '978', currency: 'EUR', name: 'Евро' },
|
|
17
|
+
},
|
|
17
18
|
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
buyExchangeRate: 73.75,
|
|
20
|
+
saleExchangeRate: 75.95,
|
|
21
|
+
currency: { id: 1, code: '840', currency: 'USD', name: 'Американский доллар' },
|
|
21
22
|
},
|
|
22
23
|
];
|
|
24
|
+
const DEFAULT_LOCATION = {
|
|
25
|
+
address: 'Москва, ул.Ленина д.28',
|
|
26
|
+
distance: '6км',
|
|
27
|
+
};
|
|
23
28
|
export const ExchangeRateTile = JSX(({ className = '', context, title = 'Курсы обмена валют' }) => {
|
|
24
|
-
const
|
|
25
|
-
|
|
29
|
+
const data = useExchangeRates(context.useAsyncData);
|
|
30
|
+
const exchangeCurrencyItems = data?.exchangeRate?.currencies?.filter((item) => {
|
|
31
|
+
return CURRENCY_CODES.indexOf(item?.currency?.currency || '') !== -1;
|
|
32
|
+
}) || DEFAULT_CURRENCY_ITEMS;
|
|
33
|
+
return (_jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className}`, children: _jsx(BaseTile, { context: context, title: _jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: "whitespace-pre-wrap mb-3" }), children: _jsxs("div", { className: "flex", children: [_jsxs("div", { className: "mr-20 pt-3", children: [exchangeCurrencyItems ? (_jsx(CurrencyTable, { className: "mb-7", exchangeCurrencyItems: exchangeCurrencyItems })) : null, _jsx(CurrentLocation, { ...DEFAULT_LOCATION })] }), exchangeCurrencyItems?.length ? (_jsx(ExchangeCurrencyCalculator, { className: "grow", exchangeCurrencyItems: exchangeCurrencyItems, codes: EXCHANGE_CODES })) : null] }) }) }));
|
|
26
34
|
});
|
|
27
|
-
const CurrencyTH = JSX(({ className = '', children }) => (_jsx("th", { className: `text-left font-normal text-sm text-secondary-text ${className}`, children: children })));
|
|
28
|
-
const CurrencyTD = JSX(({ className = '', children }) => (_jsx("td", { className: `text-left font-normal text-base text-primary-text ${className}`, children: children })));
|
|
29
|
-
async function fetchExchangeRate() {
|
|
30
|
-
const response = await fetch(CBR_EXCHANGE_RATE_URL);
|
|
31
|
-
return await response.json();
|
|
32
|
-
}
|
|
33
|
-
const currencyNumberFormat = new Intl.NumberFormat('ru', { style: 'currency', currency: 'RUB' });
|
|
34
|
-
const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
|
|
35
|
-
const renderCurrencyRow = (data) => (code) => {
|
|
36
|
-
const value = (data?.Valute || {})[code]?.Value;
|
|
37
|
-
return (_jsxs("tr", { children: [_jsx(CurrencyTD, { className: "pt-4", children: _jsxs("div", { className: "flex items-center", children: [_jsx(Icon, { name: CURRENCY_ICONS_MAP[code], width: "24", height: "24" }), _jsx("span", { className: "ml-2", children: code })] }) }), _jsx(CurrencyTD, { className: "pt-4 pl-11", children: formatCurrency(value) })] }, code));
|
|
38
|
-
};
|
|
39
35
|
//# sourceMappingURL=ExchangeRateTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExchangeRateTile.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeRateTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ExchangeRateTile.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeRateTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAG1E,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACtC,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7C,MAAM,sBAAsB,GAAG;IAC7B;QACE,eAAe,EAAE,IAAI;QACrB,gBAAgB,EAAE,IAAI;QACtB,QAAQ,EAAE,EAAE,EAAE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AqB,GAAI,CACjF,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,eAAe,OAAK,gBAAgB,GAAI,IACrC,EACL,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAAC,CAC/B,KAAC,0BAA0B,IACzB,SAAS,EAAC,MAAM,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,KAAK,EAAE,cAAc,GACrB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,GACG,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -3,3 +3,13 @@ import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
|
3
3
|
* @title Курсы валют
|
|
4
4
|
*/
|
|
5
5
|
export declare type ExchangeRateTileContent = HeadingContent;
|
|
6
|
+
export interface ExchangeCurrencyItem {
|
|
7
|
+
buyExchangeRate?: number;
|
|
8
|
+
saleExchangeRate?: number;
|
|
9
|
+
currency?: {
|
|
10
|
+
id?: number;
|
|
11
|
+
code?: string;
|
|
12
|
+
currency?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatCurrency: (value?: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatCurrency.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/formatCurrency.ts"],"names":[],"mappings":"AAAA,MAAM,oBAAoB,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;AAEjG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -10,12 +10,11 @@ import { Button } from '../../ui-kit/Button/Button.js';
|
|
|
10
10
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
11
11
|
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar.js';
|
|
12
12
|
import { getAccordionItems } from '../../utils/getAccordionItems.js';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
return (_jsxs("footer", { className: `px-4 py-[26px] bg-white ${className}`, children: [_jsx(Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), _jsx(Accordion, { className: "!p-0 mb-4", ...propsTextBlock }), _jsx("div", { children: subMenu?.map(renderSubMenuItem) }), _jsx(MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), _jsx(SearchBar, { context: context, className: "grow" }), _jsx(SocialMedia, { className: "pb-4", media: socialMedia, context: context }), _jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), _jsx(TextInformation, { links: documents, context: context })] }));
|
|
13
|
+
import { useSitemap } from "../../services/sitemap/useSitemap.js';
|
|
14
|
+
export const Footer = JSX(({ className = '', documents, relatedEnterprises, contacts, socialMedia, context, horizontalNavigationTitle, }) => {
|
|
15
|
+
const sitemap = useSitemap(context.useAsyncData);
|
|
16
|
+
const dispositions = sitemap?.dispositions;
|
|
17
|
+
return (_jsxs("footer", { className: `px-4 py-[26px] bg-white ${className}`, children: [_jsx(Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), _jsx(Accordion, { context: context, className: "!p-0 mb-4", accordionItems: getAccordionItems(sitemap.topItems) }), _jsx("div", { children: dispositions?.map(renderSubMenuItem) }), _jsx(MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), _jsx(SearchBar, { context: context, className: "grow" }), _jsx(SocialMedia, { className: "pb-4", media: socialMedia, context: context }), _jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), _jsx(TextInformation, { links: documents, context: context })] }));
|
|
19
18
|
});
|
|
20
19
|
const renderSubMenuItem = (menu, i) => {
|
|
21
20
|
const { icon, href, text } = menu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAI/D,MAAM,CAAC,MAAM,MAAM,GAAG,GAA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ACL,MAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAqB,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,mBAAmB,aACjF,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EACjF,eAAM,SAAS,EAAC,sCAAsC,YAAE,IAAI,GAAQ,KAF1C,UAAU,CAAC,EAAE,CAGhC,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
2
|
import type { SitemapProps } from '../../services/sitemap/SitemapProps';
|
|
3
|
-
import type { IconName } from '../../
|
|
3
|
+
import type { IconName } from '../../icons/IconName';
|
|
4
4
|
/**
|
|
5
5
|
* @title Тип контакта
|
|
6
6
|
* @enumNames [
|
|
@@ -10,22 +10,22 @@ const blockStyle = {
|
|
|
10
10
|
secondary: 'bg-primary-main text-white',
|
|
11
11
|
};
|
|
12
12
|
export const Gallery = JSX(({ context, title, description, cards = [], className, isScroll = true }) => {
|
|
13
|
-
return (_jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [_jsxs("div", { className: "flex flex-col items-center mb-5", children: [_jsx(Heading, { headingType: "
|
|
13
|
+
return (_jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [_jsxs("div", { className: "flex flex-col items-center mb-5", children: [title ? (_jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? (_jsx("div", { className: "font-normal text-m-md max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(isScroll, cards, context)] }));
|
|
14
14
|
});
|
|
15
15
|
function renderCardsLayout(isScroll, cards, context) {
|
|
16
16
|
return isScroll ? (_jsx(SwipeListControl, { context: context, children: cards?.map(renderCard) })) : (_jsx("div", { className: "grid gap-[14px]", children: cards?.map(renderCard) }));
|
|
17
17
|
}
|
|
18
18
|
function renderCard(card, key) {
|
|
19
|
-
return (_jsxs("div", { className: `box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
20
|
-
${blockStyle[card.version ?? 'primary']}`, children: [_jsxs("div", { children: [card.image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-
|
|
19
|
+
return (_jsxs("div", { className: `h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
|
|
20
|
+
${blockStyle[card.version ?? 'primary']}`, children: [_jsxs("div", { children: [card.image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? _jsx("h3", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.version) : null] }), card?.button?.text ? renderButton(card.button) : null] }, key));
|
|
21
21
|
}
|
|
22
22
|
function renderButton(button) {
|
|
23
23
|
return (_jsx(Button, { className: "mt-3", appendLeft: button?.icon && _jsx(Icon, { name: button?.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
|
|
24
24
|
}
|
|
25
25
|
function renderDescription(card) {
|
|
26
|
-
return (_jsx("div", { className: `text-secondary-text mt-
|
|
26
|
+
return (_jsx("div", { className: `text-secondary-text mt-1 text-m-sm ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
|
|
27
27
|
}
|
|
28
|
-
function renderItems(items) {
|
|
29
|
-
return (_jsx("section", { className: "mt-3", children: items.map((item, i) => (_jsxs("div", { children: [_jsx("span", { className: "text-m-md font-medium", children: item.title }), _jsx("span", { className:
|
|
28
|
+
function renderItems(items, version = 'primary') {
|
|
29
|
+
return (_jsx("section", { className: "mt-3", children: items.map((item, i) => (_jsxs("div", { children: [_jsx("span", { className: "text-m-md font-medium", children: item.title }), _jsx("span", { className: `text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=Gallery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAKlF,MAAM,UAAU,GAAiC;IAC/C,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CACxB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,QAAQ,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1E,OAAO,CACL,mBACE,SAAS,EAAE,2EAA2E,SAAS,EAAE,aAEjG,eAAK,SAAS,EAAC,iCAAiC,
|
|
1
|
+
{"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO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AAC,CAAC,EAC3D,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAoB,EAAE,UAAwB,SAAS;IAC1E,OAAO,CACL,kBAAS,SAAS,EAAC,MAAM,YACtB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,0BACE,eAAM,SAAS,EAAC,uBAAuB,YAAE,IAAI,CAAC,KAAK,GAAQ,EAC3D,eAAM,SAAS,EAAE,kBAAkB,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,YACpF,IAAI,CAAC,IAAI,GACL,KAJC,MAAM,CAAC,CAAC,CAAC,CAKb,CACP,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
3
|
import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
|
|
4
|
+
/**
|
|
5
|
+
* @title Элемент списка
|
|
6
|
+
*/
|
|
4
7
|
export interface GalleryItem {
|
|
8
|
+
/** @title Заголовок (моб.) */
|
|
5
9
|
title?: string;
|
|
10
|
+
/** @title Текст */
|
|
6
11
|
text?: string;
|
|
7
12
|
}
|
|
8
13
|
/**
|
|
@@ -33,5 +38,6 @@ export interface GalleryContent {
|
|
|
33
38
|
* @minItems 4
|
|
34
39
|
*/
|
|
35
40
|
cards?: GalleryCard[];
|
|
41
|
+
/** @title Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll) */
|
|
36
42
|
isScroll?: boolean;
|
|
37
43
|
}
|
|
@@ -11,6 +11,6 @@ export const GalleryInner = JSX(({ context, cards = [], className = '', version
|
|
|
11
11
|
const showNextButton = isGalleryScrollAvailable &&
|
|
12
12
|
cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
|
|
13
13
|
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
14
|
-
return (_jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [_jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (_jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (_jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px]", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" })), _jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" }), _jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" })] }));
|
|
14
|
+
return (_jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [_jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (_jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })), showNextButton && (_jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px]", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })), _jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" }), _jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" })] }));
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=GalleryInner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAOtD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,OAAO,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,GAAG,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACvE,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IACtE,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;IAEtE,MAAM,wBAAwB,GAAG,KAAK,EAAE,MAAM,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEpF,MAAM,cAAc,GAClB,wBAAwB;QACxB,KAAK,EAAE,MAAM,GAAG,eAAe,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAEvE,MAAM,cAAc,GAAG,wBAAwB,IAAI,eAAe,GAAG,CAAC,CAAC;IAEvE,OAAO,CACL,mBACE,SAAS,EAAE,0EAA0E,SAAS,EAAE,aAEhG,KAAC,gBAAgB,IACf,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OA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AAgB,IACf,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,KAC5B,IAAI,GACR,EACD,cAAc,IAAI,CACjB,KAAC,WAAW,IACV,SAAS,EAAC,mDAAmD,EAC7D,OAAO,EAAE,eAAe,EACxB,SAAS,EAAC,6FAAkB,wBACT,aAAa,GAChC,CACH,EACA,cAAc,IAAI,CACjB,KAAC,WAAW,IACV,SAAS,EAAC,yCAAyC,EACnD,OAAO,EAAE,eAAe,EACxB,SAAS,EAAC,mGAAmB,wBACV,cAAc,GACjC,CACH,EACD,cAAK,SAAS,EAAC,+DAA+D,GAAG,EACjF,cAAK,SAAS,EAAC,+DAA+D,GAAG,IACzE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -10,9 +10,10 @@ import { getAccordionItems } from '../../utils/getAccordionItems.js';
|
|
|
10
10
|
import { Accordion } from '../Accordion/Accordion.js';
|
|
11
11
|
import { HeaderBurger } from './HeaderBurger.js';
|
|
12
12
|
import { HeaderTop } from './HeaderTop.js';
|
|
13
|
-
export const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems
|
|
13
|
+
export const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-white', context, topItems }) => {
|
|
14
14
|
const router = context.useRouter();
|
|
15
15
|
const sitemap = useSitemap(context.useAsyncData);
|
|
16
|
+
const dispositions = sitemap?.dispositions;
|
|
16
17
|
const { handlerDecorator } = context;
|
|
17
18
|
const mergedItems = mergeTopItems(sitemap.topItems, topItems);
|
|
18
19
|
const activeTopItem = mergedItems.find(isTopItemActive(router));
|
|
@@ -24,7 +25,7 @@ export const Header = JSX(({ className = '', defaultLocation, bgColor = 'bg-whit
|
|
|
24
25
|
...useLink({ router, handlerDecorator }, _),
|
|
25
26
|
active: _ === activeSubItem,
|
|
26
27
|
bgColor,
|
|
27
|
-
}, i)) }) })] }), burgerMenuShow ? (_jsx(HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu:
|
|
28
|
+
}, i)) }) })] }), burgerMenuShow ? (_jsx(HeaderBurger, { context: context, onClick: toggleBurgerMenu, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: _jsx(Accordion, { context: context, accordionItems: getAccordionItems(sitemap.topItems), className: "!p-0 mb-4" }) })) : null] }));
|
|
28
29
|
});
|
|
29
30
|
const renderSubItem = (item, i) => (_jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-sm", ...item }, String(i)));
|
|
30
31
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,eAAe,EAAE,OAAO,GAAG,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.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 -1,9 +1,9 @@
|
|
|
1
1
|
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DispositionItem } from './HeaderContent';
|
|
3
3
|
export interface HeaderBurgerProps {
|
|
4
4
|
context: ContentPageContext;
|
|
5
5
|
onClick: () => void;
|
|
6
|
-
burgerSubMenu?:
|
|
6
|
+
burgerSubMenu?: DispositionItem[];
|
|
7
7
|
defaultLocation?: string;
|
|
8
8
|
children?: any;
|
|
9
9
|
}
|
|
@@ -4,7 +4,7 @@ import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
|
4
4
|
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar.js';
|
|
5
5
|
export const HeaderBurger = JSX(({ context, burgerSubMenu, onClick, defaultLocation = '', children }) => {
|
|
6
6
|
const [city, getCity] = context.useGeolocation(defaultLocation);
|
|
7
|
-
return (_jsxs("div", { className: "absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20", children: [_jsx("button", { className: "absolute top-4 right-4 border-none bg-transparent cursor-pointer", onClick: onClick, children: _jsx(Icon, { name: "CloseIcon", width: "24", height: "24", asSVG: true }) }), _jsxs("button", { onClick: getCity, className: "flex items-center text-sm text-secondary-text mb-4 bg-transparent cursor-pointer", children: [_jsx(Icon, { name: "GeolocationIcon", width: "20", height: "20", className: "text-primary-main box-border mr-2", asSVG: true }), city] }), children, _jsx("div", { className: "mb-7", children: burgerSubMenu?.map(renderBurgerSubMenuItem) }), _jsx(SearchBar, { context: context, className: "grow" })] }));
|
|
7
|
+
return (_jsxs("div", { className: "absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20", children: [_jsx("button", { className: "absolute top-4 right-4 border-none bg-transparent cursor-pointer", onClick: onClick, children: _jsx(Icon, { name: "CloseIcon", width: "24", height: "24", asSVG: true }) }), _jsxs("button", { onClick: getCity, className: "flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer", children: [_jsx(Icon, { name: "GeolocationIcon", width: "20", height: "20", className: "text-primary-main box-border mr-2", asSVG: true }), city] }), children, _jsx("div", { className: "mb-7", children: burgerSubMenu?.map(renderBurgerSubMenuItem) }), _jsx(SearchBar, { context: context, className: "grow" })] }));
|
|
8
8
|
});
|
|
9
9
|
const renderBurgerSubMenuItem = (menu, i) => {
|
|
10
10
|
const { icon, href, text } = menu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderBurger.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderBurger.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAY7D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IACtE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"HeaderBurger.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderBurger.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAY7D,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;IACtE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;IAChE,OAAO,CACL,eAAK,S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
|
3
3
|
import type { SitemapProps } from '../../services/sitemap/SitemapProps';
|
|
4
|
-
import type { IconName } from '../../
|
|
4
|
+
import type { IconName } from '../../icons/IconName';
|
|
5
5
|
/**
|
|
6
6
|
* @title Пункт подменю
|
|
7
7
|
*/
|
|
@@ -9,7 +9,15 @@ export interface SubMenuItem extends LinkProps {
|
|
|
9
9
|
icon?: IconName;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* @title
|
|
12
|
+
* @title Ссылка дополнительного меню
|
|
13
|
+
* @required ["text", "href"]
|
|
14
|
+
*/
|
|
15
|
+
export interface DispositionItem extends LinkProps {
|
|
16
|
+
/** @hidden */
|
|
17
|
+
icon?: IconName;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @title Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)
|
|
13
21
|
* @required ["defaultLocation", "topItems"]
|
|
14
22
|
*/
|
|
15
23
|
export interface HeaderContent extends SitemapProps {
|
|
@@ -24,6 +32,4 @@ export interface HeaderContent extends SitemapProps {
|
|
|
24
32
|
* @default white
|
|
25
33
|
*/
|
|
26
34
|
bgColor?: BgColorVersion;
|
|
27
|
-
/** @title Подменю */
|
|
28
|
-
burgerSubMenu?: SubMenuItem[];
|
|
29
35
|
}
|
|
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
4
4
|
import { Logo } from '../../ui-kit/Logo/Logo.js';
|
|
5
|
-
export const HeaderTop = JSX(({ onClick, bgColor }) => (_jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [_jsxs("div", { className: "flex items-center", children: [_jsx("button", { className: "pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: _jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), _jsx(Logo, { bgColor: bgColor })] }), _jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
5
|
+
export const HeaderTop = JSX(({ onClick, bgColor }) => (_jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-[50px]", children: [_jsxs("div", { className: "flex items-center", children: [_jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: _jsx(Icon, { name: bgColor === 'bg-white' ? 'BurgerIcon' : 'BurgerIconWhite', width: "24", height: "24", asSVG: true }) }), _jsx(Logo, { bgColor: bgColor })] }), _jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-sm border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
|
|
6
6
|
//# sourceMappingURL=HeaderTop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAO9C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrE,eAAK,SAAS,EAAC,kFAAkF,aAC/F,eAAK,SAAS,EAAC,mBAAmB,aAChC,
|
|
1
|
+
{"version":3,"file":"HeaderTop.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderTop.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAO9C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrE,eAAK,SAAS,EAAC,kFAAkF,aAC/F,eAAK,SAAS,EAAC,mBAAmB,aAChC,iBACE,SAAS,EAAC,kDAAkD,EAC5D,OAAO,EAAE,OAAO,gBACL,qEAAc,YAEzB,KAAC,IAAI,IACH,IAAI,EAAE,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAC/D,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,GACK,EACT,KAAC,IAAI,IAAC,OAAO,EAAE,OAAO,GAAI,IACtB,EACN,iBACE,SAAS,EAAE,GACT,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,YACjD,kDAAkD,+CAG3C,IACL,CACP,CAAC,CAAC"}
|
|
@@ -2,7 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { ALIGN_TEXT, BACKGROUND_COLOR } from './constants.js';
|
|
6
|
+
export const Headline = JSX(({ bgColorHeadline = 'transparent', className = '', title, description, image, align = 'left', }) => {
|
|
7
|
+
return (_jsxs("section", { className: `px-4 py-6 ${BACKGROUND_COLOR[bgColorHeadline]} ${className}`, children: [title && (_jsx(Heading, { headingType: "h2", className: `text-primary-text ${ALIGN_TEXT[align]}`, title: title })), description && (_jsx("p", { className: `font-normal text-m-md ${ALIGN_TEXT[align]} ${title ? 'mt-2.5' : ''}`, children: description })), image?.src && (_jsx("div", { className: "mt-5 mx-auto flex justify-center", children: _jsx(Img, { image: image }) }))] }));
|
|
7
8
|
});
|
|
8
9
|
//# sourceMappingURL=Headline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Headline.js","sourceRoot":"","sources":["../../../src/components/Headline/Headline.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK3D,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EACC,eAAe,GAAG,aAAa,EAC/B,SAAS,GAAG,EAAE,EACd,KAAK,EACL,WAAW,EACX,KAAK,EACL,KAAK,GAAG,MAAM,GACf,EAAE,EAAE;IACH,OAAO,CACL,mBAAS,SAAS,EAAE,aAAa,gBAAgB,CAAC,eAAe,CAAC,IAAI,SAAS,EAAE,aAC9E,KAAK,IAAI,CACR,KAAC,OAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,qBAAqB,UAAU,CAAC,KAAK,CAAC,EAAE,EACnD,KAAK,EAAE,KAAK,GACZ,CACH,EACA,WAAW,IAAI,CACd,YAAG,SAAS,EAAE,yBAAyB,UAAU,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,YAChF,WAAW,GACV,CACL,EACA,KAAK,EAAE,GAAG,IAAI,CACb,cAAK,SAAS,EAAC,kCAAkC,YAC/C,KAAC,GAAG,IAAC,KAAK,EAAE,KAAK,GAAI,GACjB,CACP,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
2
2
|
import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
|
|
3
3
|
import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
|
|
4
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
@@ -8,5 +8,5 @@ import type { AlignType } from '../BaseTile/BaseTileProps';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare type HeadlineContent = HeadingContent & DescriptionContent & ImageContent & {
|
|
10
10
|
align?: AlignType;
|
|
11
|
-
|
|
11
|
+
bgColorHeadline?: BlockVersionWithTransparent;
|
|
12
12
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AlignType } from '../BaseTile/BaseTileProps';
|
|
2
|
+
import type { BlockVersionWithTransparent } from '../../model/BlockVersion';
|
|
3
|
+
export declare const ALIGN_TEXT: Record<AlignType, string>;
|
|
4
|
+
export declare const BACKGROUND_COLOR: Record<BlockVersionWithTransparent, string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const ALIGN_TEXT = {
|
|
2
|
+
left: 'text-left',
|
|
3
|
+
center: 'text-center',
|
|
4
|
+
right: 'text-right',
|
|
5
|
+
};
|
|
6
|
+
export const BACKGROUND_COLOR = {
|
|
7
|
+
transparent: 'bg-transparent',
|
|
8
|
+
primary: 'bg-white',
|
|
9
|
+
secondary: 'bg-primary-main',
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Headline/constants.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,UAAU,GAA8B;IACnD,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,YAAY;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAgD;IAC3E,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,iBAAiB;CAC7B,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { List } from '../../ui-kit/List/List.js';
|
|
|
8
8
|
import { BaseTile } from '../BaseTile/BaseTile.js';
|
|
9
9
|
import { renderBenefit } from './renderBenefit.js';
|
|
10
10
|
export const ProductBlockInner = JSX(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', }) => {
|
|
11
|
-
return (_jsxs("div", { className: `w-full text-primary-text ${className}`, children: [_jsx("div", { children: _jsxs(BaseTile, { context: context, title: title && (_jsx(Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })), buttons: buttons?.length ? (_jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? _jsx(Description, { className: "mt-3", description: description }) : null, benefits?.filter((items) => items.label)?.length ? (_jsx("div", { className: "mt-3", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? _jsx(List, { className: "mt-3", items: items }) : null] }) }), renderImage(image)] }));
|
|
11
|
+
return (_jsxs("div", { className: `w-full text-primary-text ${className}`, children: [_jsx("div", { children: _jsxs(BaseTile, { context: context, title: title && (_jsx(Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })), buttons: buttons?.length ? (_jsx(ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? (_jsx(Description, { className: "mt-3 text-m-md", description: description })) : null, benefits?.filter((items) => items.label)?.length ? (_jsx("div", { className: "mt-3", children: benefits.map((_, i) => renderBenefit(_, i, version)) })) : null, items?.length ? _jsx(List, { className: "mt-3", items: items }) : null] }) }), renderImage(image)] }));
|
|
12
12
|
});
|
|
13
13
|
function renderImage(image) {
|
|
14
14
|
return image?.src ? (_jsx("div", { className: "mt-5", children: _jsx(Img, { image: { className: 'block', ...image } }) })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,GACpB,EAAE,EAAE;IACH,OAAO,CACL,eAAK,SAAS,EAAE,4BAA4B,SAAS,EAAE,aACrD,wBACE,MAAC,QAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,KAAC,OAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,mCAAmC,GAC7C,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,KAAC,aAAa,IACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,4BAA4B,GACtC,CACH,CAAC,CAAC,CAAC,IAAI,aAGT,WAAW,CAAC,CAAC,CAAC,KAAC,WAAW,IAAC,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,GACpB,EAAE,EAAE;IACH,OAAO,CACL,eAAK,SAAS,EAAE,4BAA4B,SAAS,EAAE,aACrD,wBACE,MAAC,QAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,KAAC,OAAO,IACN,WAAW,EAAE,WAA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
|
}
|
|
18
18
|
/**
|
|
19
|
-
* @title Продуктовая галерея
|
|
19
|
+
* @title Продуктовая галерея (для мобильных горизонтальная прокрутка shift+mouseScroll)
|
|
20
20
|
*/
|
|
21
21
|
export interface ProductGalleryContent {
|
|
22
22
|
/**
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import type { RecommendationContent } from './RecommendationContent';
|
|
3
|
+
export interface RecommendationProps extends RecommendationContent, UniBlockProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Recommendation: (props: import("@redneckz/uni-jsx").PropsWithChildren<RecommendationProps, any>, context?: any) => any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { ArrowButton } from '../../ui-kit/Button/ArrowButton.js';
|
|
4
|
+
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
+
import { RecommendationCard } from './RecommendationCard.js';
|
|
6
|
+
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
7
|
+
const CARD_FULL_VIEW_COUNT = 2;
|
|
8
|
+
const CARD_SHIFT = 525;
|
|
9
|
+
export const Recommendation = JSX(({ context, recommendations = [], className = '', title, version }) => {
|
|
10
|
+
const [activeCardIndex, setActiveCardIndex] = context.useState(0);
|
|
11
|
+
const blockClassName = version === 'secondary' ? 'bg-primary-main text-white' : 'bg-white text-primary-text';
|
|
12
|
+
const cardClassName = version === 'secondary' ? 'border-main-divider' : 'border-main-stroke';
|
|
13
|
+
return (_jsxs("section", { className: `relative font-sans p-[50px] overflow-hidden ${blockClassName} ${className}`, children: [title ? _jsx(Heading, { headingType: "h3", className: "mb-8", title: title }) : null, _jsx("div", { className: "flex duration-1000 gap-4", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }, role: "list", children: recommendations?.length
|
|
14
|
+
? recommendations.map(renderRecommendationCard({ context, version, className: cardClassName }))
|
|
15
|
+
: null }), renderNavButtons({
|
|
16
|
+
cardsCount: recommendations.length,
|
|
17
|
+
activeCardIndex,
|
|
18
|
+
setActiveCardIndex,
|
|
19
|
+
}), _jsx("div", { className: `${BLUR_BLOCK_CLASSES} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), _jsx("div", { className: `${BLUR_BLOCK_CLASSES} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
|
|
20
|
+
});
|
|
21
|
+
const renderRecommendationCard = ({ context, version, className }) => (card, i) => {
|
|
22
|
+
return (_jsx(RecommendationCard, { context: context, ...card, version: version, className: className }, String(i)));
|
|
23
|
+
};
|
|
24
|
+
const renderNavButtons = ({ cardsCount, activeCardIndex, setActiveCardIndex, }) => {
|
|
25
|
+
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
26
|
+
const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
27
|
+
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
|
|
28
|
+
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
|
|
29
|
+
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
30
|
+
return (_jsxs("div", { children: [showPrevButton && (_jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 z-10 mt-6", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E" })), showNextButton && (_jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-6", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E" }))] }));
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=Recommendation.js.map
|