@redneckz/wildless-cms-uni-blocks 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migrate.js +40 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +306 -258
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/CardTickIcon.svg +1 -1
- package/cosmos-static/icons/DocDownload.svg +1 -0
- package/dist/EventBus/EventMap.d.ts +2 -0
- package/dist/components/Accordion/AccordionItem.js +1 -1
- 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/BaseTile/BaseTile.js +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/dist/components/BlockContent.d.ts +2 -3
- package/dist/components/Blocks.d.ts +1 -3
- package/dist/components/Blocks.js +0 -4
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +1 -1
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/useCalculatorParams.js +2 -5
- package/dist/components/Calculator/useCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.js +1 -2
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.js +12 -6
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +7 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/dist/components/ComparisonTable/ComparisonTableRows.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/dist/components/ContentPage/normalizePage.js +1 -1
- package/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js +1 -1
- package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +2 -5
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.d.ts +2 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.d.ts +2 -2
- package/dist/components/Gallery/GalleryContainer.js +3 -2
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +4 -4
- package/dist/components/Gallery/GalleryProps.d.ts +1 -1
- package/dist/components/Gallery/constants.d.ts +0 -2
- package/dist/components/Gallery/constants.js +1 -5
- package/dist/components/Gallery/constants.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/dist/components/Header/Header.js +3 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -3
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +4 -6
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -0
- package/dist/components/Navigation/Navigation.d.ts +1 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -4
- package/dist/components/PictureText/PictureText.js +2 -5
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -5
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.mobile.js +2 -5
- package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +14 -2
- package/dist/components/ProductGallery/ProductGallery.js +4 -11
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js +2 -5
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +14 -14
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +2 -5
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +2 -2
- package/dist/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/dist/components/SafeDepositRental/SafeDepositRental.js +4 -0
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +4 -4
- package/dist/components/Tabs/Tabs.js +10 -3
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +13 -11
- package/dist/components/Tabs/renderGroupTab.d.ts +3 -3
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/components/Tabs/renderTab.d.ts +1 -1
- package/dist/components/Tabs/renderTab.js +19 -8
- package/dist/components/Tabs/renderTab.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.d.ts +14 -0
- package/dist/components/TariffsTable/EmbeddableCellData.js +35 -0
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -0
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.d.ts +15 -0
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +21 -0
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTable.js +10 -11
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +2 -2
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.d.ts +6 -3
- package/dist/components/TariffsTable/TariffsTableCell.js +18 -10
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +80 -26
- package/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +5 -5
- package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.d.ts +5 -4
- package/dist/components/TariffsTable/TariffsTableRow.js +3 -3
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/dist/components/TariffsTable/TariffsTableRowContainer.js +15 -0
- package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +7 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +15 -9
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableVertical.d.ts +5 -3
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/dist/components/TariffsTable/dataFixture.d.ts +5 -0
- package/dist/components/TariffsTable/dataFixture.js +140 -0
- package/dist/components/TariffsTable/dataFixture.js.map +1 -0
- package/dist/components/Tile/Tile.js +6 -9
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +4 -2
- package/dist/hooks/useExchangeRates.js +9 -18
- package/dist/hooks/useExchangeRates.js.map +1 -1
- package/dist/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/dist/hooks/useTariffsInnerTableData.js +16 -0
- package/dist/hooks/useTariffsInnerTableData.js.map +1 -0
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +1 -0
- package/dist/model/BlockVersion.js +5 -0
- package/dist/model/BlockVersion.js.map +1 -1
- package/dist/model/HeadlineType.d.ts +3 -3
- package/dist/model/LinkProps.d.ts +6 -4
- package/dist/services/sitemap/useSitemap.js +2 -8
- package/dist/services/sitemap/useSitemap.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -2
- package/dist/ui-kit/Button/Button.d.ts +2 -4
- package/dist/ui-kit/Button/Button.js +1 -1
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.d.ts +2 -4
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.d.ts +1 -1
- package/dist/ui-kit/Description/Description.d.ts +3 -3
- package/dist/ui-kit/Description/Description.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Heading/HeadingProps.d.ts +5 -2
- package/dist/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/dist/ui-kit/InnerTable/InnerTable.js +17 -0
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/dist/ui-kit/InnerTable/InnerTableBody.js +18 -0
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +33 -0
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/dist/ui-kit/InnerTable/InnerTableButton.js +14 -0
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/dist/ui-kit/InnerTable/InnerTableHeader.js +8 -0
- package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/dist/{components/GroupBlock/BlocksTypeProps.js → ui-kit/InnerTable/InnerTableProps.js} +1 -1
- package/dist/ui-kit/InnerTable/InnerTableProps.js.map +1 -0
- package/dist/ui-kit/List/List.js +6 -2
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListProps.d.ts +9 -1
- package/dist/ui-kit/Logo/Logo.js +6 -2
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/assertUnreachable.d.ts +1 -0
- package/dist/utils/assertUnreachable.js +7 -0
- package/dist/utils/assertUnreachable.js.map +1 -0
- package/dist/utils/fetchJSON.d.ts +2 -0
- package/dist/utils/fetchJSON.js +24 -0
- package/dist/utils/fetchJSON.js.map +1 -0
- package/dist/utils/roundTo.d.ts +1 -1
- package/dist/utils/roundTo.js +1 -1
- package/dist/utils/roundTo.js.map +1 -1
- package/lib/EventBus/EventMap.d.ts +2 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/AccordionItem.js +1 -1
- 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/BaseTile/BaseTile.js +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/lib/components/BlockContent.d.ts +2 -3
- package/lib/components/Blocks.d.ts +1 -3
- package/lib/components/Blocks.js +0 -4
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +1 -1
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/useCalculatorParams.js +2 -5
- package/lib/components/Calculator/useCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.js +1 -2
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.js +12 -6
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +7 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/lib/components/ComparisonTable/ComparisonTableRows.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/lib/components/ContentPage/normalizePage.js +1 -1
- package/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js +1 -1
- package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +2 -5
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.d.ts +2 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.d.ts +2 -2
- package/lib/components/Gallery/GalleryContainer.js +4 -3
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +4 -4
- package/lib/components/Gallery/GalleryProps.d.ts +1 -1
- package/lib/components/Gallery/constants.d.ts +0 -2
- package/lib/components/Gallery/constants.js +0 -4
- package/lib/components/Gallery/constants.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/lib/components/Header/Header.js +3 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -3
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +4 -6
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -0
- package/lib/components/Navigation/Navigation.d.ts +1 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -4
- package/lib/components/PictureText/PictureText.js +2 -5
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -5
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.mobile.js +2 -5
- package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +14 -2
- package/lib/components/ProductGallery/ProductGallery.js +4 -11
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js +2 -5
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -0
- package/lib/components/ProductTile/ProductTile.js +14 -14
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +2 -5
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +2 -2
- package/lib/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/lib/components/SafeDepositRental/SafeDepositRental.js +4 -0
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +4 -4
- package/lib/components/Tabs/Tabs.js +10 -3
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +13 -11
- package/lib/components/Tabs/renderGroupTab.d.ts +3 -3
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/components/Tabs/renderTab.d.ts +1 -1
- package/lib/components/Tabs/renderTab.js +19 -8
- package/lib/components/Tabs/renderTab.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.d.ts +14 -0
- package/lib/components/TariffsTable/EmbeddableCellData.js +33 -0
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -0
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.d.ts +14 -0
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +19 -0
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -0
- package/lib/components/TariffsTable/TariffsTable.js +10 -11
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +2 -2
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.d.ts +6 -3
- package/lib/components/TariffsTable/TariffsTableCell.js +18 -10
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +80 -26
- package/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +5 -5
- package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.d.ts +5 -4
- package/lib/components/TariffsTable/TariffsTableRow.js +3 -3
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/lib/components/TariffsTable/TariffsTableRowContainer.js +13 -0
- package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +7 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +15 -9
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableVertical.d.ts +5 -3
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/lib/components/TariffsTable/dataFixture.d.ts +5 -0
- package/lib/components/TariffsTable/dataFixture.js +138 -0
- package/lib/components/TariffsTable/dataFixture.js.map +1 -0
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +1 -1
- package/lib/components/Tile/Tile.js +6 -9
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +4 -2
- package/lib/hooks/useExchangeRates.js +9 -18
- package/lib/hooks/useExchangeRates.js.map +1 -1
- package/lib/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/lib/hooks/useTariffsInnerTableData.js +13 -0
- package/lib/hooks/useTariffsInnerTableData.js.map +1 -0
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +1 -0
- package/lib/model/BlockVersion.js +4 -1
- package/lib/model/BlockVersion.js.map +1 -1
- package/lib/model/HeadlineType.d.ts +3 -3
- package/lib/model/LinkProps.d.ts +6 -4
- package/lib/services/sitemap/useSitemap.js +2 -8
- package/lib/services/sitemap/useSitemap.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -2
- package/lib/ui-kit/Button/Button.d.ts +2 -4
- package/lib/ui-kit/Button/Button.js +1 -1
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.d.ts +2 -4
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.d.ts +1 -1
- package/lib/ui-kit/Description/Description.d.ts +3 -3
- package/lib/ui-kit/Description/Description.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Heading/HeadingProps.d.ts +5 -2
- package/lib/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/lib/ui-kit/InnerTable/InnerTable.js +15 -0
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/lib/ui-kit/InnerTable/InnerTableBody.js +16 -0
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +31 -0
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/lib/ui-kit/InnerTable/InnerTableButton.js +12 -0
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/lib/ui-kit/InnerTable/InnerTableHeader.js +6 -0
- package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/lib/ui-kit/InnerTable/InnerTableProps.js +2 -0
- package/lib/ui-kit/InnerTable/InnerTableProps.js.map +1 -0
- package/lib/ui-kit/List/List.js +6 -2
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListProps.d.ts +9 -1
- package/lib/ui-kit/Logo/Logo.js +6 -2
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/assertUnreachable.d.ts +1 -0
- package/lib/utils/assertUnreachable.js +4 -0
- package/lib/utils/assertUnreachable.js.map +1 -0
- package/lib/utils/fetchJSON.d.ts +2 -0
- package/lib/utils/fetchJSON.js +20 -0
- package/lib/utils/fetchJSON.js.map +1 -0
- package/lib/utils/roundTo.d.ts +1 -1
- package/lib/utils/roundTo.js +1 -1
- package/lib/utils/roundTo.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +84 -60
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/EventBus/EventMap.d.ts +2 -0
- package/mobile/dist/components/Accordion/AccordionItem.js +1 -1
- package/mobile/dist/components/Accordion/AccordionItem.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/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/dist/components/BlockContent.d.ts +2 -3
- package/mobile/dist/components/Calculator/Calculator.js +1 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/useCalculatorParams.js +2 -5
- package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +1 -2
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +12 -6
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +7 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +2 -5
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.d.ts +2 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.d.ts +2 -2
- package/mobile/dist/components/Gallery/GalleryContainer.js +3 -2
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +4 -4
- package/mobile/dist/components/Gallery/GalleryProps.d.ts +1 -1
- package/mobile/dist/components/Gallery/constants.d.ts +0 -2
- package/mobile/dist/components/Gallery/constants.js +1 -5
- package/mobile/dist/components/Gallery/constants.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -3
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -0
- package/mobile/dist/components/Navigation/Navigation.d.ts +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -4
- package/mobile/dist/components/PictureText/PictureText.js +2 -5
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +2 -5
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +14 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +2 -5
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +14 -14
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +2 -5
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +2 -2
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +4 -0
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.d.ts +4 -4
- package/mobile/dist/components/Tabs/Tabs.js +10 -3
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +13 -11
- package/mobile/dist/components/Tabs/renderGroupTab.d.ts +3 -3
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/Tabs/renderTab.d.ts +1 -1
- package/mobile/dist/components/Tabs/renderTab.js +19 -8
- package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +15 -0
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +21 -0
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +6 -3
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +18 -10
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +80 -26
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.d.ts +5 -5
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +5 -4
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +3 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +15 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +7 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +15 -9
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.d.ts +5 -3
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/dist/components/TariffsTable/dataFixture.d.ts +5 -0
- package/mobile/dist/components/TariffsTable/dataFixture.js +140 -0
- package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -0
- package/mobile/dist/components/Tile/Tile.js +6 -9
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +4 -2
- package/mobile/dist/hooks/useExchangeRates.js +9 -18
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
- package/mobile/dist/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/mobile/dist/hooks/useTariffsInnerTableData.js +16 -0
- package/mobile/dist/hooks/useTariffsInnerTableData.js.map +1 -0
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/BlockVersion.d.ts +1 -0
- package/mobile/dist/model/BlockVersion.js +5 -0
- package/mobile/dist/model/BlockVersion.js.map +1 -1
- package/mobile/dist/model/HeadlineType.d.ts +3 -3
- package/mobile/dist/model/LinkProps.d.ts +6 -4
- package/mobile/dist/services/sitemap/useSitemap.js +2 -8
- package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -2
- package/mobile/dist/ui-kit/Button/Button.d.ts +2 -4
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.d.ts +1 -1
- package/mobile/dist/ui-kit/Description/Description.d.ts +3 -3
- package/mobile/dist/ui-kit/Description/Description.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +5 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +17 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +18 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +33 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +14 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +8 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/mobile/dist/{components/GroupBlock/BlocksTypeProps.js → ui-kit/InnerTable/InnerTableProps.js} +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableProps.js.map +1 -0
- package/mobile/dist/ui-kit/List/List.js +6 -2
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +9 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/assertUnreachable.d.ts +1 -0
- package/mobile/dist/utils/assertUnreachable.js +7 -0
- package/mobile/dist/utils/assertUnreachable.js.map +1 -0
- package/mobile/dist/utils/fetchJSON.d.ts +2 -0
- package/mobile/dist/utils/fetchJSON.js +24 -0
- package/mobile/dist/utils/fetchJSON.js.map +1 -0
- package/mobile/dist/utils/roundTo.d.ts +1 -1
- package/mobile/dist/utils/roundTo.js +1 -1
- package/mobile/dist/utils/roundTo.js.map +1 -1
- package/mobile/lib/EventBus/EventMap.d.ts +2 -0
- package/mobile/lib/components/Accordion/AccordionItem.js +1 -1
- package/mobile/lib/components/Accordion/AccordionItem.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/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/lib/components/BlockContent.d.ts +2 -3
- package/mobile/lib/components/Calculator/Calculator.js +1 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/useCalculatorParams.js +2 -5
- package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +1 -2
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +12 -6
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +7 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +2 -5
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.d.ts +2 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.d.ts +2 -2
- package/mobile/lib/components/Gallery/GalleryContainer.js +4 -3
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +4 -4
- package/mobile/lib/components/Gallery/GalleryProps.d.ts +1 -1
- package/mobile/lib/components/Gallery/constants.d.ts +0 -2
- package/mobile/lib/components/Gallery/constants.js +0 -4
- package/mobile/lib/components/Gallery/constants.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +4 -3
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -0
- package/mobile/lib/components/Navigation/Navigation.d.ts +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -4
- package/mobile/lib/components/PictureText/PictureText.js +2 -5
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -5
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +14 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +2 -5
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +14 -14
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +2 -5
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +2 -2
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +4 -0
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.d.ts +4 -4
- package/mobile/lib/components/Tabs/Tabs.js +10 -3
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +13 -11
- package/mobile/lib/components/Tabs/renderGroupTab.d.ts +3 -3
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/Tabs/renderTab.d.ts +1 -1
- package/mobile/lib/components/Tabs/renderTab.js +19 -8
- package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +15 -0
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +19 -0
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTable.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +6 -3
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +18 -10
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +80 -26
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.d.ts +5 -5
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +5 -4
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +3 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +13 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +7 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +15 -9
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.d.ts +5 -3
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/lib/components/TariffsTable/dataFixture.d.ts +5 -0
- package/mobile/lib/components/TariffsTable/dataFixture.js +138 -0
- package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -0
- package/mobile/lib/components/Tile/Tile.js +6 -9
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +4 -2
- package/mobile/lib/hooks/useExchangeRates.js +9 -18
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
- package/mobile/lib/hooks/useTariffsInnerTableData.d.ts +1 -0
- package/mobile/lib/hooks/useTariffsInnerTableData.js +13 -0
- package/mobile/lib/hooks/useTariffsInnerTableData.js.map +1 -0
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/BlockVersion.d.ts +1 -0
- package/mobile/lib/model/BlockVersion.js +4 -1
- package/mobile/lib/model/BlockVersion.js.map +1 -1
- package/mobile/lib/model/HeadlineType.d.ts +3 -3
- package/mobile/lib/model/LinkProps.d.ts +6 -4
- package/mobile/lib/services/sitemap/useSitemap.js +2 -8
- package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +2 -2
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -2
- package/mobile/lib/ui-kit/Button/Button.d.ts +2 -4
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.d.ts +1 -1
- package/mobile/lib/ui-kit/Description/Description.d.ts +3 -3
- package/mobile/lib/ui-kit/Description/Description.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js +1 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +5 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTable.d.ts +5 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +15 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +16 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +31 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +12 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +6 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableProps.js +2 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableProps.js.map +1 -0
- package/mobile/lib/ui-kit/List/List.js +6 -2
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +9 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/assertUnreachable.d.ts +1 -0
- package/mobile/lib/utils/assertUnreachable.js +4 -0
- package/mobile/lib/utils/assertUnreachable.js.map +1 -0
- package/mobile/lib/utils/fetchJSON.d.ts +2 -0
- package/mobile/lib/utils/fetchJSON.js +20 -0
- package/mobile/lib/utils/fetchJSON.js.map +1 -0
- package/mobile/lib/utils/roundTo.d.ts +1 -1
- package/mobile/lib/utils/roundTo.js +1 -1
- package/mobile/lib/utils/roundTo.js.map +1 -1
- package/mobile/src/EventBus/EventMap.ts +2 -1
- package/mobile/src/components/Accordion/AccordionItem.tsx +4 -2
- package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/mobile/src/components/BlockContent.ts +3 -5
- package/mobile/src/components/Calculator/Calculator.tsx +1 -1
- package/mobile/src/components/Calculator/useCalculatorParams.ts +2 -10
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +1 -3
- package/mobile/src/components/Catalog/CatalogCard.tsx +13 -6
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +8 -1
- package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +3 -3
- package/mobile/src/components/ContentPage/ContentPage.page.json +1 -34
- package/mobile/src/components/ContentPage/normalizePage.ts +1 -1
- package/mobile/src/components/Gallery/Gallery.tsx +8 -13
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +8 -4
- package/mobile/src/components/Gallery/GalleryContainer.tsx +6 -5
- package/mobile/src/components/Gallery/GalleryContent.ts +4 -4
- package/mobile/src/components/Gallery/GalleryProps.ts +1 -1
- package/mobile/src/components/Gallery/constants.ts +0 -6
- package/mobile/src/components/GracePeriod/GracePeriod.example.json +5 -0
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +2 -2
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +3 -3
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +2 -2
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +1 -2
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -0
- package/mobile/src/components/Navigation/Navigation.tsx +1 -1
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +1 -4
- package/mobile/src/components/PictureText/PictureText.tsx +2 -6
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +2 -9
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +14 -3
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +34 -2
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +2 -7
- package/mobile/src/components/ProductTile/ProductTile.tsx +39 -50
- package/mobile/src/components/PromoTile/PromoTile.tsx +12 -19
- package/mobile/src/components/PromoTile/PromoTileContent.ts +2 -2
- package/mobile/src/components/Recommendation/RecommendationContent.ts +4 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +4 -0
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/mobile/src/components/Tabs/Tabs.example.json +3 -0
- package/mobile/src/components/Tabs/Tabs.tsx +15 -7
- package/mobile/src/components/Tabs/TabsContent.ts +15 -11
- package/mobile/src/components/Tabs/renderGroupTab.tsx +3 -3
- package/mobile/src/components/Tabs/renderTab.tsx +18 -7
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +67 -0
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +30 -29
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +12 -7
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +50 -55
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +101 -37
- package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +6 -7
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +19 -11
- package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +36 -0
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +35 -53
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +7 -3
- package/mobile/src/components/TariffsTable/dataFixture.ts +158 -0
- package/mobile/src/components/Tile/Tile.example.json +1 -0
- package/mobile/src/components/Tile/Tile.tsx +17 -13
- package/mobile/src/components/Tile/TileContent.ts +4 -2
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +36 -48
- package/mobile/src/hooks/useExchangeRates.ts +9 -20
- package/mobile/src/hooks/useTariffsInnerTableData.ts +20 -0
- package/mobile/src/icons/CardTickIcon.svg +7 -1
- package/mobile/src/icons/DocDownload.svg +8 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/model/BlockVersion.ts +5 -0
- package/mobile/src/model/HeadlineType.ts +3 -3
- package/mobile/src/model/LinkProps.ts +7 -4
- package/mobile/src/services/sitemap/useSitemap.ts +5 -11
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +2 -2
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/mobile/src/ui-kit/Button/Button.tsx +2 -4
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Description/Description.tsx +3 -3
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +1 -2
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/mobile/src/ui-kit/Heading/HeadingProps.ts +5 -2
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +32 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +53 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +86 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +36 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +42 -0
- package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +31 -0
- package/mobile/src/ui-kit/List/List.tsx +18 -3
- package/mobile/src/ui-kit/List/ListProps.ts +10 -1
- package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +3 -3
- package/mobile/src/utils/assertUnreachable.ts +3 -0
- package/mobile/src/utils/fetchJSON.ts +24 -0
- package/mobile/src/utils/roundTo.ts +2 -2
- package/package.json +5 -2
- package/src/EventBus/EventMap.ts +2 -1
- package/src/components/Accordion/AccordionItem.mobile.tsx +4 -2
- package/src/components/Accordion/AccordionItem.tsx +7 -1
- package/src/components/BaseTile/BaseTile.tsx +2 -2
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +2 -2
- package/src/components/BlockContent.ts +3 -5
- package/src/components/Blocks.ts +0 -4
- package/src/components/Calculator/Calculator.tsx +1 -1
- package/src/components/Calculator/useCalculatorParams.ts +2 -10
- package/src/components/Calculator/useCreditCalculatorParams.ts +1 -3
- package/src/components/Catalog/Catalog.fixture.tsx +5 -2
- package/src/components/Catalog/CatalogCard.tsx +13 -6
- package/src/components/ComparisonTable/ComparisonTableContent.ts +8 -1
- package/src/components/ComparisonTable/ComparisonTableRows.tsx +3 -3
- package/src/components/ContentPage/ContentPage.page.json +1 -34
- package/src/components/ContentPage/normalizePage.mobile.ts +1 -1
- package/src/components/ContentPage/normalizePage.ts +1 -1
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +6 -6
- package/src/components/Gallery/Gallery.fixture.tsx +3 -3
- package/src/components/Gallery/Gallery.mobile.tsx +8 -13
- package/src/components/Gallery/GalleryCardInner.tsx +8 -4
- package/src/components/Gallery/GalleryContainer.tsx +6 -5
- package/src/components/Gallery/GalleryContent.ts +4 -4
- package/src/components/Gallery/GalleryProps.ts +1 -1
- package/src/components/Gallery/constants.ts +0 -6
- package/src/components/GracePeriod/GracePeriod.example.json +5 -0
- package/src/components/GracePeriod/GracePeriodContent.ts +2 -2
- package/src/components/Header/Header.tsx +3 -2
- package/src/components/Header/HeaderSecondaryMenu.tsx +3 -3
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +2 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +2 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +6 -5
- package/src/components/MobileAppTile/MobileAppTile.example.json +1 -2
- package/src/components/MobileAppTile/MobileAppTile.tsx +8 -12
- package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -0
- package/src/components/Navigation/Navigation.tsx +1 -1
- package/src/components/OtherProducts/OtherProductsContent.ts +1 -4
- package/src/components/PictureText/PictureText.fixture.tsx +1 -1
- package/src/components/PictureText/PictureText.tsx +2 -6
- package/src/components/ProductBlock/ProductBlock.mobile.tsx +2 -9
- package/src/components/ProductBlock/ProductBlock.tsx +3 -7
- package/src/components/ProductBlock/ProductBlockContent.ts +14 -3
- package/src/components/ProductGallery/ProductGallery.example.json +34 -2
- package/src/components/ProductGallery/ProductGallery.tsx +6 -15
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +2 -7
- package/src/components/ProductTile/ProductTile.fixture.tsx +35 -1
- package/src/components/ProductTile/ProductTile.tsx +39 -50
- package/src/components/PromoTile/PromoTile.tsx +12 -19
- package/src/components/PromoTile/PromoTileContent.ts +2 -2
- package/src/components/Recommendation/RecommendationContent.ts +4 -4
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +4 -0
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +1 -1
- package/src/components/Tabs/Tabs.example.json +3 -0
- package/src/components/Tabs/Tabs.fixture.tsx +3 -3
- package/src/components/Tabs/Tabs.tsx +15 -7
- package/src/components/Tabs/TabsContent.ts +15 -11
- package/src/components/Tabs/renderGroupTab.tsx +3 -3
- package/src/components/Tabs/renderTab.tsx +18 -7
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +67 -0
- package/src/components/TariffsTable/EmbeddableCellData.tsx +82 -0
- package/src/components/TariffsTable/TariffsTable.example.json +30 -29
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +3 -111
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +24 -151
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +12 -7
- package/src/components/TariffsTable/TariffsTable.tsx +25 -29
- package/src/components/TariffsTable/TariffsTableCell.tsx +50 -55
- package/src/components/TariffsTable/TariffsTableContent.ts +101 -37
- package/src/components/TariffsTable/TariffsTableHorizontal.tsx +6 -7
- package/src/components/TariffsTable/TariffsTableRow.tsx +19 -11
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +36 -0
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +35 -53
- package/src/components/TariffsTable/TariffsTableVertical.tsx +7 -3
- package/src/components/TariffsTable/dataFixture.ts +158 -0
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +1 -1
- package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
- package/src/components/Tile/Tile.example.json +1 -0
- package/src/components/Tile/Tile.fixture.tsx +7 -6
- package/src/components/Tile/Tile.tsx +17 -13
- package/src/components/Tile/TileContent.ts +4 -2
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +36 -48
- package/src/cosmos.decorator.tsx +1 -1
- package/src/hooks/useExchangeRates.ts +9 -20
- package/src/hooks/useTariffsInnerTableData.ts +20 -0
- package/src/icons/CardTickIcon.svg +7 -1
- package/src/icons/DocDownload.svg +8 -0
- package/src/icons/IconName.ts +4 -1
- package/src/model/BlockVersion.ts +5 -0
- package/src/model/HeadlineType.ts +3 -3
- package/src/model/LinkProps.ts +7 -4
- package/src/services/sitemap/useSitemap.ts +5 -11
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +2 -2
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
- package/src/ui-kit/Button/Button.mobile.tsx +2 -4
- package/src/ui-kit/Button/Button.tsx +5 -7
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Description/Description.tsx +3 -3
- package/src/ui-kit/Foldable/Foldable.tsx +1 -2
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +1 -1
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/src/ui-kit/Heading/HeadingProps.ts +5 -2
- package/src/ui-kit/InnerTable/InnerTable.tsx +32 -0
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +53 -0
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +86 -0
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +36 -0
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +42 -0
- package/src/ui-kit/InnerTable/InnerTableProps.ts +31 -0
- package/src/ui-kit/List/List.tsx +18 -3
- package/src/ui-kit/List/ListProps.ts +10 -1
- package/src/ui-kit/Logo/Logo.mobile.tsx +1 -1
- package/src/ui-kit/Logo/Logo.tsx +8 -3
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/TopItem/TopItem.tsx +3 -3
- package/src/utils/assertUnreachable.ts +3 -0
- package/src/utils/fetchJSON.ts +24 -0
- package/src/utils/roundTo.ts +2 -2
- package/dist/components/GroupBlock/BlocksTypeProps.d.ts +0 -36
- package/dist/components/GroupBlock/BlocksTypeProps.js.map +0 -1
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +0 -4
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.js +0 -9
- package/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +0 -1
- package/dist/components/GroupBlock/GroupBlock.d.ts +0 -9
- package/dist/components/GroupBlock/GroupBlock.js +0 -21
- package/dist/components/GroupBlock/GroupBlock.js.map +0 -1
- package/dist/components/GroupBlock/GroupBlockContent.d.ts +0 -21
- package/dist/components/GroupBlock/GroupBlockContent.js +0 -2
- package/dist/components/GroupBlock/GroupBlockContent.js.map +0 -1
- package/dist/components/GroupBlock/GroupBlockTabs.d.ts +0 -9
- package/dist/components/GroupBlock/GroupBlockTabs.js +0 -20
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +0 -1
- package/dist/components/GroupBlock/GroupBlocksItem.d.ts +0 -9
- package/dist/components/GroupBlock/GroupBlocksItem.js +0 -20
- package/dist/components/GroupBlock/GroupBlocksItem.js.map +0 -1
- package/dist/components/GroupBlock/filterBlocksByTag.d.ts +0 -2
- package/dist/components/GroupBlock/filterBlocksByTag.js +0 -7
- package/dist/components/GroupBlock/filterBlocksByTag.js.map +0 -1
- package/dist/components/GroupBlock/renderBlocksTypes.d.ts +0 -10
- package/dist/components/GroupBlock/renderBlocksTypes.js +0 -19
- package/dist/components/GroupBlock/renderBlocksTypes.js.map +0 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +0 -7
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +0 -16
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +0 -1
- package/dist/components/NavigatorTabs/NavigatorTabs.d.ts +0 -5
- package/dist/components/NavigatorTabs/NavigatorTabs.js +0 -19
- package/dist/components/NavigatorTabs/NavigatorTabs.js.map +0 -1
- package/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +0 -11
- package/dist/components/NavigatorTabs/NavigatorTabsContent.js +0 -2
- package/dist/components/NavigatorTabs/NavigatorTabsContent.js.map +0 -1
- package/dist/hooks/useSafeDepositRental.d.ts +0 -1
- package/dist/hooks/useSafeDepositRental.js +0 -24
- package/dist/hooks/useSafeDepositRental.js.map +0 -1
- package/lib/components/GroupBlock/BlocksTypeProps.d.ts +0 -36
- package/lib/components/GroupBlock/BlocksTypeProps.js +0 -2
- package/lib/components/GroupBlock/BlocksTypeProps.js.map +0 -1
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +0 -4
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.js +0 -7
- package/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +0 -1
- package/lib/components/GroupBlock/GroupBlock.d.ts +0 -9
- package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +0 -6
- package/lib/components/GroupBlock/GroupBlock.js +0 -19
- package/lib/components/GroupBlock/GroupBlock.js.map +0 -1
- package/lib/components/GroupBlock/GroupBlockContent.d.ts +0 -21
- package/lib/components/GroupBlock/GroupBlockContent.js +0 -2
- package/lib/components/GroupBlock/GroupBlockContent.js.map +0 -1
- package/lib/components/GroupBlock/GroupBlockTabs.d.ts +0 -9
- package/lib/components/GroupBlock/GroupBlockTabs.js +0 -18
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +0 -1
- package/lib/components/GroupBlock/GroupBlocksItem.d.ts +0 -9
- package/lib/components/GroupBlock/GroupBlocksItem.js +0 -17
- package/lib/components/GroupBlock/GroupBlocksItem.js.map +0 -1
- package/lib/components/GroupBlock/filterBlocksByTag.d.ts +0 -2
- package/lib/components/GroupBlock/filterBlocksByTag.js +0 -4
- package/lib/components/GroupBlock/filterBlocksByTag.js.map +0 -1
- package/lib/components/GroupBlock/renderBlocksTypes.d.ts +0 -10
- package/lib/components/GroupBlock/renderBlocksTypes.js +0 -16
- package/lib/components/GroupBlock/renderBlocksTypes.js.map +0 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +0 -7
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +0 -14
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +0 -1
- package/lib/components/NavigatorTabs/NavigatorTabs.d.ts +0 -5
- package/lib/components/NavigatorTabs/NavigatorTabs.fixture.d.ts +0 -5
- package/lib/components/NavigatorTabs/NavigatorTabs.js +0 -17
- package/lib/components/NavigatorTabs/NavigatorTabs.js.map +0 -1
- package/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +0 -11
- package/lib/components/NavigatorTabs/NavigatorTabsContent.js +0 -2
- package/lib/components/NavigatorTabs/NavigatorTabsContent.js.map +0 -1
- package/lib/hooks/useSafeDepositRental.d.ts +0 -1
- package/lib/hooks/useSafeDepositRental.js +0 -21
- package/lib/hooks/useSafeDepositRental.js.map +0 -1
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.d.ts +0 -36
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.js.map +0 -1
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.d.ts +0 -4
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js +0 -9
- package/mobile/dist/components/GroupBlock/EmbeddableGroupBlocks.js.map +0 -1
- package/mobile/dist/components/GroupBlock/GroupBlock.d.ts +0 -9
- package/mobile/dist/components/GroupBlock/GroupBlock.js +0 -21
- package/mobile/dist/components/GroupBlock/GroupBlock.js.map +0 -1
- package/mobile/dist/components/GroupBlock/GroupBlockContent.d.ts +0 -21
- package/mobile/dist/components/GroupBlock/GroupBlockContent.js +0 -2
- package/mobile/dist/components/GroupBlock/GroupBlockContent.js.map +0 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.d.ts +0 -9
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +0 -20
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +0 -1
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +0 -9
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js +0 -20
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +0 -1
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.d.ts +0 -2
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.js +0 -7
- package/mobile/dist/components/GroupBlock/filterBlocksByTag.js.map +0 -1
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.d.ts +0 -10
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +0 -19
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +0 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +0 -7
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +0 -16
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +0 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.d.ts +0 -5
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +0 -19
- package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js.map +0 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +0 -11
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.js +0 -2
- package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.js.map +0 -1
- package/mobile/dist/hooks/useSafeDepositRental.d.ts +0 -1
- package/mobile/dist/hooks/useSafeDepositRental.js +0 -24
- package/mobile/dist/hooks/useSafeDepositRental.js.map +0 -1
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.d.ts +0 -36
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.js +0 -2
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.js.map +0 -1
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.d.ts +0 -4
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js +0 -7
- package/mobile/lib/components/GroupBlock/EmbeddableGroupBlocks.js.map +0 -1
- package/mobile/lib/components/GroupBlock/GroupBlock.d.ts +0 -9
- package/mobile/lib/components/GroupBlock/GroupBlock.js +0 -19
- package/mobile/lib/components/GroupBlock/GroupBlock.js.map +0 -1
- package/mobile/lib/components/GroupBlock/GroupBlockContent.d.ts +0 -21
- package/mobile/lib/components/GroupBlock/GroupBlockContent.js +0 -2
- package/mobile/lib/components/GroupBlock/GroupBlockContent.js.map +0 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.d.ts +0 -9
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +0 -18
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +0 -1
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +0 -9
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js +0 -17
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +0 -1
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.d.ts +0 -2
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.js +0 -4
- package/mobile/lib/components/GroupBlock/filterBlocksByTag.js.map +0 -1
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.d.ts +0 -10
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +0 -16
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +0 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +0 -7
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +0 -14
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +0 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.d.ts +0 -5
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +0 -17
- package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js.map +0 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +0 -11
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.js +0 -2
- package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.js.map +0 -1
- package/mobile/lib/hooks/useSafeDepositRental.d.ts +0 -1
- package/mobile/lib/hooks/useSafeDepositRental.js +0 -21
- package/mobile/lib/hooks/useSafeDepositRental.js.map +0 -1
- package/mobile/src/components/GroupBlock/BlocksTypeProps.ts +0 -39
- package/mobile/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +0 -7
- package/mobile/src/components/GroupBlock/GroupBlock.example.json +0 -97
- package/mobile/src/components/GroupBlock/GroupBlock.tsx +0 -50
- package/mobile/src/components/GroupBlock/GroupBlockContent.ts +0 -23
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +0 -55
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +0 -31
- package/mobile/src/components/GroupBlock/filterBlocksByTag.ts +0 -5
- package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +0 -34
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +0 -31
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.example.json +0 -7
- package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +0 -41
- package/mobile/src/components/NavigatorTabs/NavigatorTabsContent.ts +0 -12
- package/mobile/src/hooks/useSafeDepositRental.ts +0 -25
- package/src/components/GroupBlock/BlocksTypeProps.ts +0 -39
- package/src/components/GroupBlock/EmbeddableGroupBlocks.tsx +0 -7
- package/src/components/GroupBlock/GroupBlock.example.json +0 -97
- package/src/components/GroupBlock/GroupBlock.fixture.tsx +0 -67
- package/src/components/GroupBlock/GroupBlock.tsx +0 -50
- package/src/components/GroupBlock/GroupBlockContent.ts +0 -23
- package/src/components/GroupBlock/GroupBlockTabs.tsx +0 -55
- package/src/components/GroupBlock/GroupBlocksItem.tsx +0 -31
- package/src/components/GroupBlock/filterBlocksByTag.ts +0 -5
- package/src/components/GroupBlock/renderBlocksTypes.tsx +0 -34
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +0 -31
- package/src/components/NavigatorTabs/NavigatorTabs.example.json +0 -7
- package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +0 -16
- package/src/components/NavigatorTabs/NavigatorTabs.tsx +0 -41
- package/src/components/NavigatorTabs/NavigatorTabsContent.ts +0 -12
- package/src/hooks/useSafeDepositRental.ts +0 -25
|
@@ -1,49 +1,108 @@
|
|
|
1
|
+
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
2
|
+
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
1
3
|
import type { ListOrientation } from '../../model/ListOrientation';
|
|
2
4
|
import type { Picture } from '../../model/Picture';
|
|
3
5
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
6
|
+
import type { HeadingProps } from '../../ui-kit/Heading/HeadingProps';
|
|
4
7
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
|
|
8
|
+
import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
9
|
+
import type { ListProps } from '../../ui-kit/List/ListProps';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface TariffsTableCellIndexProps {
|
|
14
|
+
rowIdx: number;
|
|
15
|
+
cellIdx: number;
|
|
16
|
+
fieldIdx: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @title Параметр
|
|
20
|
+
*/
|
|
21
|
+
export declare type TariffsTableRowHeader = HeadingProps & {
|
|
22
|
+
/**
|
|
23
|
+
* @default { "format": "webp", "size": { "width": 24, "height": 24 } }
|
|
24
|
+
*/
|
|
25
|
+
icon?: Picture;
|
|
26
|
+
};
|
|
8
27
|
/**
|
|
9
28
|
* @title Ряд
|
|
10
29
|
*/
|
|
11
|
-
export declare type
|
|
30
|
+
export declare type Data = {
|
|
12
31
|
header: TariffsTableRowHeader;
|
|
13
|
-
data:
|
|
32
|
+
data: CellDef[][];
|
|
14
33
|
};
|
|
15
34
|
/**
|
|
16
|
-
* @title
|
|
35
|
+
* @title Изображение
|
|
36
|
+
* @default { "image": { "format": "webp", "size": { "width": 24, "height": 24 } } }
|
|
17
37
|
*/
|
|
18
|
-
export
|
|
19
|
-
/**
|
|
20
|
-
|
|
38
|
+
export declare type ImageCellDef = ImageContent & {
|
|
39
|
+
/**
|
|
40
|
+
* @default Img
|
|
41
|
+
*/
|
|
42
|
+
tableCellType: 'Img';
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @title Кнопки
|
|
46
|
+
*/
|
|
47
|
+
export declare type ButtonsCellDef = ButtonContent & {
|
|
48
|
+
/**
|
|
49
|
+
* @default Buttons
|
|
50
|
+
*/
|
|
51
|
+
tableCellType: 'Buttons';
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @title Заголовок и описание
|
|
55
|
+
*/
|
|
56
|
+
export interface LabelDescriptionCell {
|
|
57
|
+
/** @title Заголовок */
|
|
58
|
+
label?: string;
|
|
59
|
+
/** @title Описание */
|
|
60
|
+
description?: string;
|
|
21
61
|
}
|
|
22
62
|
/**
|
|
23
|
-
* @title
|
|
63
|
+
* @title Заголовок и описание
|
|
24
64
|
*/
|
|
25
|
-
export declare type
|
|
26
|
-
/**
|
|
27
|
-
|
|
65
|
+
export declare type LabelDescriptionCellDef = LabelDescriptionCell & {
|
|
66
|
+
/**
|
|
67
|
+
* @default LabelDescription
|
|
68
|
+
*/
|
|
69
|
+
tableCellType: 'LabelDescription';
|
|
28
70
|
};
|
|
29
71
|
/**
|
|
30
|
-
* @title
|
|
72
|
+
* @title Список
|
|
31
73
|
*/
|
|
32
|
-
export declare type
|
|
33
|
-
|
|
74
|
+
export declare type ListBlockDef = ListProps & {
|
|
75
|
+
/**
|
|
76
|
+
* @default List
|
|
77
|
+
*/
|
|
78
|
+
tableCellType: 'List';
|
|
34
79
|
};
|
|
35
80
|
/**
|
|
36
|
-
* @title
|
|
81
|
+
* @title Таблица
|
|
37
82
|
*/
|
|
38
|
-
export declare type
|
|
39
|
-
|
|
83
|
+
export declare type InnerTableBlockDef = TariffsTableInnerContent & {
|
|
84
|
+
/**
|
|
85
|
+
* @default Table
|
|
86
|
+
*/
|
|
87
|
+
tableCellType: 'Table';
|
|
40
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* @title Содержимое ячейки
|
|
91
|
+
*/
|
|
92
|
+
export declare type CellDef = EmptyOption | ImageCellDef | ButtonsCellDef | LabelDescriptionCellDef | ListBlockDef | InnerTableBlockDef;
|
|
93
|
+
/**
|
|
94
|
+
* @title Колонка
|
|
95
|
+
*/
|
|
96
|
+
export interface TariffsTableColumn {
|
|
97
|
+
/** @title Данные */
|
|
98
|
+
data?: CellDef[][];
|
|
99
|
+
}
|
|
41
100
|
/**
|
|
42
101
|
* @title Таблица тарифов
|
|
43
102
|
*/
|
|
44
|
-
export declare type TariffsTableContent =
|
|
103
|
+
export declare type TariffsTableContent = HeadingProps & DescriptionProps & {
|
|
45
104
|
/** @title Колонки */
|
|
46
|
-
|
|
105
|
+
tariffsColumns?: TariffsTableColumn[];
|
|
47
106
|
/** @title Параметры */
|
|
48
107
|
rowHeaders?: TariffsTableRowHeader[];
|
|
49
108
|
/** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
|
|
@@ -51,8 +110,3 @@ export declare type TariffsTableContent = HeadlineCommonProps & {
|
|
|
51
110
|
/** @title Скрывать строк */
|
|
52
111
|
hiddenRowsNum?: number;
|
|
53
112
|
};
|
|
54
|
-
/** @hidden */
|
|
55
|
-
export declare type TariffsTableTileCellProps = {
|
|
56
|
-
header: TariffsTableRowHeader;
|
|
57
|
-
data: TariffsTableCellData[];
|
|
58
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
context: ContentPageContext;
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import { TariffsTableTileCellProps } from './TariffsTableTileCell';
|
|
3
|
+
export interface TariffsTableHorizontalProps extends UniBlockProps {
|
|
5
4
|
tiles: TariffsTableTileCellProps[];
|
|
6
|
-
}
|
|
5
|
+
}
|
|
6
|
+
export declare const TariffsTableHorizontal: import("@redneckz/uni-jsx").UNIComponent<TariffsTableHorizontalProps, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableHorizontal.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableHorizontal.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTableHorizontal.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableHorizontal.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qFAAkF;AAClF,iEAAyF;AAK5E,QAAA,sBAAsB,GAAG,IAAA,aAAG,EAA8B,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC7F,uBAAC,mCAAgB,IAAC,OAAO,EAAE,OAAO,YAC/B,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2CAAoB,OAAqB,IAAI,IAAnB,MAAM,CAAC,CAAC,CAAC,CAAc,CACnD,CAAC,GACe,CACpB,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
row:
|
|
1
|
+
import { UniBlockProps } from '../../types';
|
|
2
|
+
import type { Data } from './TariffsTableContent';
|
|
3
|
+
export interface TariffsTableRowProps extends UniBlockProps {
|
|
4
|
+
row: Data;
|
|
5
5
|
activeCardIndex: number;
|
|
6
6
|
isLastRow: boolean;
|
|
7
|
+
rowIdx: number;
|
|
7
8
|
}
|
|
8
9
|
export declare const TariffsTableRow: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowProps, any, any>;
|
|
@@ -4,10 +4,10 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
6
|
const TableCarouselContainer_1 = require("../ComparisonTable/TableCarouselContainer");
|
|
7
|
-
const TableRowContainer_1 = require("../ComparisonTable/TableRowContainer");
|
|
8
7
|
const constants_1 = require("./constants");
|
|
9
8
|
const TariffsTableCell_1 = require("./TariffsTableCell");
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const TariffsTableRowContainer_1 = require("./TariffsTableRowContainer");
|
|
10
|
+
exports.TariffsTableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeCardIndex, isLastRow, context, rowIdx }) => {
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(TariffsTableRowContainer_1.TariffsTableRowContainer, { context: context, rowIdx: rowIdx, children: [(0, jsx_runtime_1.jsx)("div", { className: `text-s py-5 ${constants_1.FIRST_CELL_CLASSES} ${constants_1.DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-[14px] max-w-6 max-h-6", image: header.icon, width: "24px", height: "24px", asSVG: true })) : null, header?.title] }) }), data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: constants_1.COLUMN_WIDTH, version: "tariff", children: data.map((cells, i) => ((0, jsx_runtime_1.jsx)(TariffsTableCell_1.TariffsTableCell, { cells: cells, isLastRow: isLastRow, rowIdx: rowIdx, cellIdx: i, context: context }, String(i)))) })) : null] }));
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=TariffsTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTableRow.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8CAA2C;AAC3C,sFAAmF;AACnF,2CAAgF;AAChF,yDAAsD;AAEtD,yEAAsE;AASzD,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IACzE,OAAO,CACL,wBAAC,mDAAwB,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aACxD,gCACE,SAAS,EAAE,eAAe,8BAAkB,IAAI,2BAAe,IAC7D,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAChC,EAAE,YAEF,iCAAK,SAAS,EAAC,qCAAqC,EAAC,IAAI,EAAC,MAAM,aAC7D,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CACd,uBAAC,SAAG,IACF,SAAS,EAAC,2BAA2B,EACrC,KAAK,EAAE,MAAM,CAAC,IAAI,EAClB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,KAAK,SACL,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,EAAE,KAAK,IACV,GACF,EACL,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IACrB,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,wBAAY,EACzB,OAAO,EAAC,QAAQ,YAEf,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,mCAAgB,IAEf,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,OAAO,IALX,MAAM,CAAC,CAAC,CAAC,CAMd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACiB,CAC5B,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VNode } from '../../model/VNode';
|
|
2
|
+
import type { UniBlockProps } from '../../types';
|
|
3
|
+
export interface TariffsTableRowContainerProps extends UniBlockProps {
|
|
4
|
+
children?: VNode;
|
|
5
|
+
rowIdx: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const TariffsTableRowContainer: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowContainerProps, any, any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.TariffsTableRowContainer = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const EventBus_1 = require("../../EventBus/EventBus");
|
|
7
|
+
const InnerTable_1 = require("../../ui-kit/InnerTable/InnerTable");
|
|
8
|
+
exports.TariffsTableRowContainer = (0, uni_jsx_1.JSX)(({ context, children, rowIdx }) => {
|
|
9
|
+
const [dataUrl, setDataUrl] = (0, hooks_1.useState)(undefined);
|
|
10
|
+
(0, hooks_1.useEffect)(() => EventBus_1.EventBus.inst.subscribe('tariffInnerTable', (event) => {
|
|
11
|
+
setDataUrl(rowIdx === event.rowIdx ? event.dataUrl : undefined);
|
|
12
|
+
}), [rowIdx]);
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "self-start flex flex-col", role: "row", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex", children: children }), dataUrl ? ((0, jsx_runtime_1.jsx)("div", { className: "origin-top animate-expansion", children: (0, jsx_runtime_1.jsx)(InnerTable_1.InnerTable, { context: context, dataUrl: dataUrl }) })) : null] }));
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=TariffsTableRowContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TariffsTableRowContainer.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableRowContainer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,sDAAmD;AAGnD,mEAAgE;AAOnD,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE;IAChC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAqB,SAAS,CAAC,CAAC;IAEtE,IAAA,iBAAS,EACP,GAAG,EAAE,CACH,mBAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE,CAAC,KAAK,EAAE,EAAE;QACpD,UAAU,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAClE,CAAC,CAAC,EACJ,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,0BAA0B,EAAC,IAAI,EAAC,KAAK,aAClD,gCAAK,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAO,EACrC,OAAO,CAAC,CAAC,CAAC,CACT,gCAAK,SAAS,EAAC,8BAA8B,YAC3C,uBAAC,uBAAU,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAI,GAC9C,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
2
|
+
import type { CellDef, TariffsTableRowHeader } from './TariffsTableContent';
|
|
3
|
+
export interface TariffsTableTileCellProps {
|
|
4
|
+
header: TariffsTableRowHeader;
|
|
5
|
+
data: CellDef[];
|
|
6
|
+
context: ContentPageContext;
|
|
7
|
+
}
|
|
2
8
|
export declare const TariffsTableTileCell: import("@redneckz/uni-jsx").UNIComponent<TariffsTableTileCellProps, any, any>;
|
|
@@ -2,15 +2,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.TariffsTableTileCell = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const
|
|
6
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
|
-
const List_1 = require("../../ui-kit/List/List");
|
|
5
|
+
const EmbeddableCellData_1 = require("./EmbeddableCellData");
|
|
8
6
|
const TableTileHeader_1 = require("./TableTileHeader");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [(0, jsx_runtime_1.jsx)(TableTileHeader_1.TableTileHeader, { ...header }), data?.length ? data.map(renderCellInner) : null] }));
|
|
7
|
+
exports.TariffsTableTileCell = (0, uni_jsx_1.JSX)(({ context, header, data }) => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "rounded-md border-main-stroke h-full box-border border p-4", children: [(0, jsx_runtime_1.jsx)(TableTileHeader_1.TableTileHeader, { ...header }), data?.length ? data.map(renderCellInner(context)) : null] }));
|
|
12
9
|
});
|
|
13
|
-
const renderCellInner = (
|
|
14
|
-
const
|
|
15
|
-
|
|
10
|
+
const renderCellInner = (context) => (cell, i) => ((0, jsx_runtime_1.jsxs)("div", { children: [i > 0 ? (0, jsx_runtime_1.jsx)("div", { className: "h-5" }) : null, renderCell(cell, context)] }, String(i)));
|
|
11
|
+
const renderCell = (cell, context) => {
|
|
12
|
+
if (!cell) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
const { tableCellType: type, ...rest } = cell;
|
|
16
|
+
if (!type || !(type in EmbeddableCellData_1.EmbeddableCellData)) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
const EmbeddableCellInner = EmbeddableCellData_1.EmbeddableCellData[type];
|
|
20
|
+
return (0, jsx_runtime_1.jsx)(EmbeddableCellInner, { context: context, ...rest });
|
|
21
|
+
};
|
|
16
22
|
//# sourceMappingURL=TariffsTableTileCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTableTileCell.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableTileCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,uDAAoD;AASvC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAA4B,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;IAC/F,OAAO,CACL,iCAAK,SAAS,EAAC,4DAA4D,aACzE,uBAAC,iCAAe,OAAK,MAAM,GAAI,EAC9B,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IACrD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,OAA2B,EAAE,EAAE,CAAC,CAAC,IAAa,EAAE,CAAS,EAAE,EAAE,CACpF,CACE,4CACG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,EACtC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,KAFlB,MAAM,CAAC,CAAC,CAAC,CAGb,CACP,CAAC;AAEJ,MAAM,UAAU,GAAG,CAAC,IAAa,EAAE,OAA2B,EAAE,EAAE;IAChE,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IAE9C,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,uCAAkB,CAAC,EAAE;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,mBAAmB,GAAG,uCAAkB,CAAC,IAAI,CAAC,CAAC;IAErD,OAAO,uBAAC,mBAAmB,IAAC,OAAO,EAAE,OAAO,KAAM,IAAI,GAAI,CAAC;AAC7D,CAAC,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
2
|
+
import { TariffsTableTileCellProps } from './TariffsTableTileCell';
|
|
3
|
+
export interface TariffsTableVerticalProps extends UniBlockProps {
|
|
3
4
|
tiles: TariffsTableTileCellProps[];
|
|
4
|
-
}
|
|
5
|
+
}
|
|
6
|
+
export declare const TariffsTableVertical: import("@redneckz/uni-jsx").UNIComponent<TariffsTableVerticalProps, any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTableVertical.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableVertical.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTableVertical.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTableVertical.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iEAAyF;AAM5E,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAA4B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAChF,gCAAK,SAAS,EAAC,uBAAuB,YACnC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2CAAoB,OAAqB,IAAI,IAAnB,MAAM,CAAC,CAAC,CAAC,CAAc,CACnD,CAAC,GACE,CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TariffsTableColumn, TariffsTableContent } from './TariffsTableContent';
|
|
2
|
+
export declare const columns: TariffsTableColumn[];
|
|
3
|
+
export declare const columnsTable: TariffsTableColumn[];
|
|
4
|
+
export declare const TARIFFS_TABLE_FIXTURE_EXAMPLE: TariffsTableContent;
|
|
5
|
+
export declare const TARIFFS_TABLE_INNER_TABLE_FIXTURE_EXAMPLE: TariffsTableContent;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.TARIFFS_TABLE_INNER_TABLE_FIXTURE_EXAMPLE = exports.TARIFFS_TABLE_FIXTURE_EXAMPLE = exports.columnsTable = exports.columns = void 0;
|
|
3
|
+
const title = 'Заголовок';
|
|
4
|
+
const description = 'Описание предоставляемого продукта';
|
|
5
|
+
const image = {
|
|
6
|
+
src: 'payment-systems.png',
|
|
7
|
+
format: 'webp',
|
|
8
|
+
size: {
|
|
9
|
+
width: 288,
|
|
10
|
+
height: 56,
|
|
11
|
+
},
|
|
12
|
+
alt: 'Платёжные системы',
|
|
13
|
+
title: 'Платёжные системы',
|
|
14
|
+
};
|
|
15
|
+
const LABEL_BLOCK = {
|
|
16
|
+
tableCellType: 'LabelDescription',
|
|
17
|
+
label: 'Заголовок без описания',
|
|
18
|
+
};
|
|
19
|
+
const LABEL_DESCRIPTION_BLOCK = {
|
|
20
|
+
label: 'Ячейка 1-2',
|
|
21
|
+
tableCellType: 'LabelDescription',
|
|
22
|
+
description: 'Описание',
|
|
23
|
+
};
|
|
24
|
+
const TABLE_BLOCK = {
|
|
25
|
+
tableCellType: 'Table',
|
|
26
|
+
dataUrl: 'tariffs-inner-table-data',
|
|
27
|
+
};
|
|
28
|
+
const DESCRIPTION_BLOCK = {
|
|
29
|
+
tableCellType: 'LabelDescription',
|
|
30
|
+
description: 'Описание без заголовка',
|
|
31
|
+
};
|
|
32
|
+
const LIST_BLOCK = {
|
|
33
|
+
tableCellType: 'List',
|
|
34
|
+
isDotted: true,
|
|
35
|
+
items: ['Элемент списка 1', 'Элемент списка 2', 'Элемент списка 3'],
|
|
36
|
+
};
|
|
37
|
+
const rowHeaders = [
|
|
38
|
+
{ title: 'Начисление процентов на остаток по счету', icon: { icon: 'OkIcon' } },
|
|
39
|
+
{ title: 'Снятие наличных', icon: { icon: 'GlassIcon' } },
|
|
40
|
+
{ title: 'Кэшбэк баллами' },
|
|
41
|
+
{ title: 'Кнопки-иконки' },
|
|
42
|
+
{ title: 'Дополнительная информация' },
|
|
43
|
+
{ title: 'Описание и кнопка' },
|
|
44
|
+
{ title: 'Описание и ссылка' },
|
|
45
|
+
];
|
|
46
|
+
exports.columns = [
|
|
47
|
+
{
|
|
48
|
+
data: [
|
|
49
|
+
[LABEL_BLOCK, LIST_BLOCK, LABEL_DESCRIPTION_BLOCK, LIST_BLOCK],
|
|
50
|
+
[
|
|
51
|
+
{
|
|
52
|
+
label: 'Бесплатно',
|
|
53
|
+
description: 'В банкоматах и кассах Россельхозбанка и банков-партнеров',
|
|
54
|
+
tableCellType: 'LabelDescription',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: 'Бесплатно',
|
|
58
|
+
description: 'В сторонних банкоматах - 1 раз в месяц, далее 1% минимум 150 руб',
|
|
59
|
+
tableCellType: 'LabelDescription',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
[LABEL_BLOCK],
|
|
63
|
+
[
|
|
64
|
+
{
|
|
65
|
+
label: 'Платёжные системы картинкой',
|
|
66
|
+
tableCellType: 'LabelDescription',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
image: image,
|
|
70
|
+
tableCellType: 'Img',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
[
|
|
74
|
+
{ label: 'Кнопки-иконки', tableCellType: 'LabelDescription' },
|
|
75
|
+
{
|
|
76
|
+
tableCellType: 'Buttons',
|
|
77
|
+
buttons: [
|
|
78
|
+
{
|
|
79
|
+
icon: { icon: 'AppleIcon' },
|
|
80
|
+
rounded: true,
|
|
81
|
+
version: 'secondary',
|
|
82
|
+
href: '/',
|
|
83
|
+
target: '_blank',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
icon: { icon: 'PlayMarketIcon' },
|
|
87
|
+
rounded: true,
|
|
88
|
+
version: 'secondary',
|
|
89
|
+
href: '/',
|
|
90
|
+
target: '_blank',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
[
|
|
96
|
+
{
|
|
97
|
+
label: 'Бесплатно',
|
|
98
|
+
tableCellType: 'LabelDescription',
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
{
|
|
103
|
+
image: {
|
|
104
|
+
src: 'money-1.png',
|
|
105
|
+
format: 'webp',
|
|
106
|
+
size: {
|
|
107
|
+
width: 140,
|
|
108
|
+
height: 140,
|
|
109
|
+
},
|
|
110
|
+
alt: 'Деньги',
|
|
111
|
+
},
|
|
112
|
+
tableCellType: 'Img',
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
];
|
|
118
|
+
exports.columnsTable = [
|
|
119
|
+
{
|
|
120
|
+
data: [
|
|
121
|
+
[LABEL_BLOCK, LIST_BLOCK],
|
|
122
|
+
[TABLE_BLOCK, DESCRIPTION_BLOCK],
|
|
123
|
+
[LIST_BLOCK, DESCRIPTION_BLOCK],
|
|
124
|
+
[TABLE_BLOCK],
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
];
|
|
128
|
+
exports.TARIFFS_TABLE_FIXTURE_EXAMPLE = {
|
|
129
|
+
title,
|
|
130
|
+
description,
|
|
131
|
+
tariffsColumns: exports.columns,
|
|
132
|
+
rowHeaders,
|
|
133
|
+
};
|
|
134
|
+
exports.TARIFFS_TABLE_INNER_TABLE_FIXTURE_EXAMPLE = {
|
|
135
|
+
title,
|
|
136
|
+
description,
|
|
137
|
+
tariffsColumns: exports.columnsTable,
|
|
138
|
+
rowHeaders,
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=dataFixture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataFixture.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/dataFixture.ts"],"names":[],"mappings":";;AAUA,MAAM,KAAK,GAAG,WAAW,CAAC;AAC1B,MAAM,WAAW,GAAG,oCAAoC,CAAC;AAEzD,MAAM,KAAK,GAAY;IACrB,GAAG,EAAE,qBAAqB;IAC1B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE;QACJ,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,EAAE;KACX;IACD,GAAG,EAAE,mBAAmB;IACxB,KAAK,EAAE,mBAAmB;CAC3B,CAAC;AAEF,MAAM,WAAW,GAA4B;IAC3C,aAAa,EAAE,kBAAkB;IACjC,KAAK,EAAE,wBAAwB;CAChC,CAAC;AAEF,MAAM,uBAAuB,GAA4B;IACvD,KAAK,EAAE,YAAY;IACnB,aAAa,EAAE,kBAAkB;IACjC,WAAW,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,WAAW,GAAuB;IACtC,aAAa,EAAE,OAAO;IACtB,OAAO,EAAE,0BAA0B;CACpC,CAAC;AAEF,MAAM,iBAAiB,GAA4B;IACjD,aAAa,EAAE,kBAAkB;IACjC,WAAW,EAAE,wBAAwB;CACtC,CAAC;AAEF,MAAM,UAAU,GAAiB;IAC/B,aAAa,EAAE,MAAM;IACrB,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,CAAC;CACpE,CAAC;AAEF,MAAM,UAAU,GAA4B;IAC1C,EAAE,KAAK,EAAE,0CAA0C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC/E,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE;IACzD,EAAE,KAAK,EAAE,gBAAgB,EAAE;IAC3B,EAAE,KAAK,EAAE,eAAe,EAAE;IAC1B,EAAE,KAAK,EAAE,2BAA2B,EAAE;IACtC,EAAE,KAAK,EAAE,mBAAmB,EAAE;IAC9B,EAAE,KAAK,EAAE,mBAAmB,EAAE;CAC/B,CAAC;AAEW,QAAA,OAAO,GAAyB;IAC3C;QACE,IAAI,EAAE;YACJ,CAAC,WAAW,EAAE,UAAU,EAAE,uBAAuB,EAAE,UAAU,CAAC;YAC9D;gBACE;oBACE,KAAK,EAAE,WAAW;oBAClB,WAAW,EAAE,0DAA0D;oBACvE,aAAa,EAAE,kBAAkB;iBAClC;gBACD;oBACE,KAAK,EAAE,WAAW;oBAClB,WAAW,EAAE,kEAAkE;oBAC/E,aAAa,EAAE,kBAAkB;iBAClC;aACF;YACD,CAAC,WAAW,CAAC;YACb;gBACE;oBACE,KAAK,EAAE,6BAA6B;oBACpC,aAAa,EAAE,kBAAkB;iBAClC;gBACD;oBACE,KAAK,EAAE,KAAK;oBACZ,aAAa,EAAE,KAAK;iBACrB;aACF;YACD;gBACE,EAAE,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE;gBAC7D;oBACE,aAAa,EAAE,SAAS;oBACxB,OAAO,EAAE;wBACP;4BACE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;4BAC3B,OAAO,EAAE,IAAI;4BACb,OAAO,EAAE,WAAW;4BACpB,IAAI,EAAE,GAAG;4BACT,MAAM,EAAE,QAAQ;yBACjB;wBACD;4BACE,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;4BAChC,OAAO,EAAE,IAAI;4BACb,OAAO,EAAE,WAAW;4BACpB,IAAI,EAAE,GAAG;4BACT,MAAM,EAAE,QAAQ;yBACjB;qBACF;iBACF;aACF;YACD;gBACE;oBACE,KAAK,EAAE,WAAW;oBAClB,aAAa,EAAE,kBAAkB;iBAClC;aACF;YACD;gBACE;oBACE,KAAK,EAAE;wBACL,GAAG,EAAE,aAAa;wBAClB,MAAM,EAAE,MAAM;wBACd,IAAI,EAAE;4BACJ,KAAK,EAAE,GAAG;4BACV,MAAM,EAAE,GAAG;yBACZ;wBACD,GAAG,EAAE,QAAQ;qBACd;oBACD,aAAa,EAAE,KAAK;iBACrB;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,YAAY,GAAyB;IAChD;QACE,IAAI,EAAE;YACJ,CAAC,WAAW,EAAE,UAAU,CAAC;YACzB,CAAC,WAAW,EAAE,iBAAiB,CAAC;YAChC,CAAC,UAAU,EAAE,iBAAiB,CAAC;YAC/B,CAAC,WAAW,CAAC;SACd;KACF;CACF,CAAC;AAEW,QAAA,6BAA6B,GAAwB;IAChE,KAAK;IACL,WAAW;IACX,cAAc,EAAE,eAAO;IACvB,UAAU;CACX,CAAC;AAEW,QAAA,yCAAyC,GAAwB;IAC5E,KAAK;IACL,WAAW;IACX,cAAc,EAAE,oBAAY;IAC5B,UAAU;CACX,CAAC"}
|
|
@@ -2,6 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.Tile = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const BlockVersion_1 = require("../../model/BlockVersion");
|
|
5
6
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
7
|
const ButtonSection_1 = require("../../ui-kit/Button/ButtonSection");
|
|
7
8
|
const Description_1 = require("../../ui-kit/Description/Description");
|
|
@@ -11,17 +12,13 @@ const List_1 = require("../../ui-kit/List/List");
|
|
|
11
12
|
const BaseTile_1 = require("../BaseTile/BaseTile");
|
|
12
13
|
const getTileMinHeight_1 = require("../BaseTile/getTileMinHeight");
|
|
13
14
|
const getTileRightPadding_1 = require("../BaseTile/getTileRightPadding");
|
|
14
|
-
const tileStyleMap = {
|
|
15
|
-
primary: 'bg-white text-primary-text',
|
|
16
|
-
secondary: 'bg-primary-main text-white',
|
|
17
|
-
};
|
|
18
15
|
exports.Tile = (0, uni_jsx_1.JSX)((props) => {
|
|
19
|
-
const { context, title, headingType = 'h3', description, items, children, buttons, image, isDotted = true, className = '', version = 'primary', ...rest } = props;
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const { context, title, headingType = 'h3', description, items, children, buttons, image, isDotted = true, listItemSize = 'M', className = '', version = 'primary', ...rest } = props;
|
|
17
|
+
const headingClassName = version === 'primary' ? 'text-primary-text' : '';
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${BlockVersion_1.VersionStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-8 gap-3" })) : null, image: image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }) : null, children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "max-w-[600px] text-xl-light mt-2", description: description })) : null, children, renderList(items, { version, isDotted, listItemSize })] }) }));
|
|
22
19
|
});
|
|
23
|
-
function renderList(items, version, isDotted) {
|
|
20
|
+
function renderList(items, { version, isDotted, listItemSize }) {
|
|
24
21
|
const listVersion = version === 'primary' ? 'tile' : 'tile-white';
|
|
25
|
-
return items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted,
|
|
22
|
+
return items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, className: "mt-3", listItemSize: listItemSize, itemClassName: "mb-1.5", version: listVersion })) : null;
|
|
26
23
|
}
|
|
27
24
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAA2D;AAE3D,4DAAyD;AACzD,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAE9C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;AAOzD,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EACJ,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,KAAK,EACL,QAAQ,EACR,OAAO,EACP,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,YAAY,GAAG,GAAG,EAClB,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IACV,MAAM,gBAAgB,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;IAE1E,OAAO,CACL,uBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,iDAAiD,SAAS,IACnE,8BAAe,CAAC,OAAO,CACzB,IAAI,IAAA,yCAAmB,EAAC,SAAS,CAAC,IAAI,IAAA,mCAAgB,EAAC,SAAS,CAAC,GAAG,KAChE,IAAI,YAER,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,qCAAqC,gBAAgB,EAAE,GAClE,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,6BAAa,IACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,CAAC,EACzE,SAAS,EAAC,iBAAiB,GAC3B,CACH,CAAC,CAAC,CAAC,IAAI,EAEV,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,aAExE,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IAAC,SAAS,EAAC,kCAAkC,EAAC,WAAW,EAAE,WAAW,GAAI,CACvF,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EACR,UAAU,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,IAC9C,GACE,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAa;IACvE,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC;IAElE,OAAO,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACrB,uBAAC,WAAI,IACH,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,MAAM,EAChB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAC,QAAQ,EACtB,OAAO,EAAE,WAAW,GACpB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
2
|
+
import type { DescriptionProps } from '../../model/HeadlineType';
|
|
2
3
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
3
|
-
import type { DescriptionProp } from '../../model/HeadlineType';
|
|
4
4
|
import type { HeadingCommonProps } from '../../ui-kit/Heading/HeadingProps';
|
|
5
5
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
6
6
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
|
+
import type { ListItemSize } from '../../ui-kit/List/ListProps';
|
|
7
8
|
/**
|
|
8
9
|
* @title Плитка
|
|
9
10
|
*/
|
|
10
|
-
export declare type TileContent = HeadingCommonProps &
|
|
11
|
+
export declare type TileContent = HeadingCommonProps & DescriptionProps & ListContent & ButtonContent & ImageContent & {
|
|
11
12
|
/**
|
|
12
13
|
* @title Буллиты
|
|
13
14
|
* @default true
|
|
14
15
|
*/
|
|
15
16
|
isDotted?: boolean;
|
|
17
|
+
listItemSize?: ListItemSize;
|
|
16
18
|
version?: BlockVersion;
|
|
17
19
|
};
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.useExchangeRates = void 0;
|
|
3
3
|
const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
4
|
+
const fetchJSON_1 = require("../utils/fetchJSON");
|
|
5
|
+
const roundTo_1 = require("../utils/roundTo");
|
|
4
6
|
function useExchangeRates() {
|
|
5
7
|
const { data } = (0, useAsyncData_1.useAsyncData)(EXCHANGE_RATES_URL, fetchExchangeRates);
|
|
6
8
|
const result = data?.hits?.hits?.map((_) => _._source) || [];
|
|
7
9
|
return result.length ? getCurrencyListByRate(result) : result;
|
|
8
10
|
}
|
|
9
11
|
exports.useExchangeRates = useExchangeRates;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'Content-Type': 'application/json',
|
|
16
|
-
},
|
|
17
|
-
body: JSON.stringify(EXCHANGE_RATES_BODY),
|
|
18
|
-
});
|
|
19
|
-
return await response.json();
|
|
20
|
-
}
|
|
21
|
-
catch (err) {
|
|
22
|
-
console.error(err);
|
|
23
|
-
return Promise.resolve();
|
|
24
|
-
}
|
|
12
|
+
function fetchExchangeRates() {
|
|
13
|
+
return (0, fetchJSON_1.fetchJSON)(EXCHANGE_RATES_URL, {
|
|
14
|
+
method: 'POST',
|
|
15
|
+
body: JSON.stringify(EXCHANGE_RATES_BODY),
|
|
16
|
+
});
|
|
25
17
|
}
|
|
26
18
|
const EXCHANGE_RATES_URL = 'https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000';
|
|
27
19
|
const EXCHANGE_RATES_BODY = {
|
|
@@ -56,11 +48,10 @@ const getCurrencyListByRate = (currencyRates) => currencyRates.reduce((result, _
|
|
|
56
48
|
if (!result.some((i) => i.code === currencyCode)) {
|
|
57
49
|
result.push({
|
|
58
50
|
code: currencyCode,
|
|
59
|
-
buy:
|
|
60
|
-
sell:
|
|
51
|
+
buy: (0, roundTo_1.roundTo)(Number(_.rate_buy), 3),
|
|
52
|
+
sell: (0, roundTo_1.roundTo)(Number(_.rate_sell), 3),
|
|
61
53
|
});
|
|
62
54
|
}
|
|
63
55
|
return result;
|
|
64
56
|
}, []);
|
|
65
|
-
const roundRate = (value) => Math.round(value * 1000) / 1000;
|
|
66
57
|
//# sourceMappingURL=useExchangeRates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExchangeRates.js","sourceRoot":"","sources":["../../src/hooks/useExchangeRates.ts"],"names":[],"mappings":";;AAAA,2EAAwE;
|
|
1
|
+
{"version":3,"file":"useExchangeRates.js","sourceRoot":"","sources":["../../src/hooks/useExchangeRates.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AAExE,kDAA+C;AAC/C,8CAA2C;AAQ3C,SAAgB,gBAAgB;IAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IAEtE,MAAM,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAE7D,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAqB,CAAC,MAAqB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AAC/E,CAAC;AAND,4CAMC;AAED,SAAS,kBAAkB;IACzB,OAAO,IAAA,qBAAS,EAAC,kBAAkB,EAAE;QACnC,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC;KAC1C,CAAC,CAAC;AACL,CAAC;AAED,MAAM,kBAAkB,GACtB,6HAA6H,CAAC;AAEhI,MAAM,mBAAmB,GAAG;IAC1B,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ;oBACE,IAAI,EAAE;wBACJ,qCAAqC;wBACrC,mBAAmB,EAAE,IAAI;qBAC1B;iBACF;gBACD;oBACE,IAAI,EAAE;wBACJ,qCAAqC;wBACrC,WAAW,EAAE,GAAG;qBACjB;iBACF;gBACD;oBACE,KAAK,EAAE;wBACL,qCAAqC;wBACrC,aAAa,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;qBACtC;iBACF;aACF;SACF;KACF;CACF,CAAC;AAQF,MAAM,qBAAqB,GAAG,CAAC,aAA0B,EAAE,EAAE,CAC3D,aAAa,CAAC,MAAM,CAAC,CAAC,MAAyB,EAAE,CAAC,EAAE,EAAE;IACpD,MAAM,YAAY,GAAG,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACzC,MAAM,YAAY,GAAG,YAAY,EAAE,IAAI,CAAC;IACxC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,EAAE;QAChD,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,IAAA,iBAAO,EAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACnC,IAAI,EAAE,IAAA,iBAAO,EAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACtC,CAAC,CAAC;KACJ;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useTariffsInnerTableData(directoryName?: string): any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.useTariffsInnerTableData = void 0;
|
|
3
|
+
const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
4
|
+
function useTariffsInnerTableData(directoryName) {
|
|
5
|
+
const { data } = (0, useAsyncData_1.useAsyncData)(tariffsInnerTableDataUrl(directoryName), fetchTariffsInnerTableData);
|
|
6
|
+
return data || {};
|
|
7
|
+
}
|
|
8
|
+
exports.useTariffsInnerTableData = useTariffsInnerTableData;
|
|
9
|
+
async function fetchTariffsInnerTableData(url) {
|
|
10
|
+
const response = await fetch(url);
|
|
11
|
+
return await response.json();
|
|
12
|
+
}
|
|
13
|
+
function tariffsInnerTableDataUrl(directoryName) {
|
|
14
|
+
return `/wcms-resources/${directoryName || 'tariffs-inner-table-data'}.json`;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=useTariffsInnerTableData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTariffsInnerTableData.js","sourceRoot":"","sources":["../../src/hooks/useTariffsInnerTableData.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AAExE,SAAgB,wBAAwB,CAAC,aAAsB;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,wBAAwB,CAAC,aAAa,CAAC,EACvC,0BAA0B,CAC3B,CAAC;IAEF,OAAO,IAAI,IAAI,EAAE,CAAC;AACpB,CAAC;AAPD,4DAOC;AAED,KAAK,UAAU,0BAA0B,CAAC,GAAW;IACnD,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IAElC,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC;AAED,SAAS,wBAAwB,CAAC,aAAsB;IACtD,OAAO,mBAAmB,aAAa,IAAI,0BAA0B,OAAO,CAAC;AAC/E,CAAC"}
|