@redneckz/wildless-cms-uni-blocks 0.6.47 → 0.6.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +73 -68
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +6 -1
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/bundle/components/ComparisonTable/constants.d.ts +1 -1
- package/bundle/components/Footer/MediaButton.d.ts +3 -0
- package/bundle/components/Footer/SocialMedia.d.ts +3 -0
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/bundle/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/bundle/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +6 -1
- package/dist/components/BusinessBlock/BusinessCard.js +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.js +1 -1
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ComparisonTable/constants.d.ts +1 -1
- package/dist/components/ComparisonTable/constants.js +1 -1
- package/dist/components/ComparisonTable/constants.js.map +1 -1
- package/dist/components/Footer/MediaButton.d.ts +3 -0
- package/dist/components/Footer/MediaButton.js +8 -3
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +3 -0
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +1 -1
- package/dist/components/Gallery/GalleryContainer.js +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/dist/components/Header/DropdownMenu.js +2 -2
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/dist/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/dist/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/content-page-repository/transformHTML.js +2 -2
- package/dist/content-page-repository/transformHTML.js.map +1 -1
- package/dist/model/BorderVersion.js +1 -1
- package/dist/model/BorderVersion.js.map +1 -1
- package/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +3 -3
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/Location/SearchBar.js +1 -1
- package/dist/ui-kit/Location/SearchBar.js.map +1 -1
- package/dist/ui-kit/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.js +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Tags/Tags.js +1 -1
- package/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +3 -3
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/dist/ui-kit/YandexMap/ZoomButton.js +1 -1
- package/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderOpenMap.js +2 -2
- package/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -2
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +6 -1
- package/lib/components/BusinessBlock/BusinessCard.js +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.js +1 -1
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ComparisonTable/constants.d.ts +1 -1
- package/lib/components/ComparisonTable/constants.js +1 -1
- package/lib/components/ComparisonTable/constants.js.map +1 -1
- package/lib/components/Footer/MediaButton.d.ts +3 -0
- package/lib/components/Footer/MediaButton.js +8 -3
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +3 -0
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +1 -1
- package/lib/components/Gallery/GalleryContainer.js +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/lib/components/Header/DropdownMenu.js +2 -2
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/content-page-repository/transformHTML.js +1 -1
- package/lib/content-page-repository/transformHTML.js.map +1 -1
- package/lib/model/BorderVersion.js +1 -1
- package/lib/model/BorderVersion.js.map +1 -1
- package/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +3 -3
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/Location/SearchBar.js +1 -1
- package/lib/ui-kit/Location/SearchBar.js.map +1 -1
- package/lib/ui-kit/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.js +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Tags/Tags.js +1 -1
- package/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +3 -3
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/ui-kit/YandexMap/ZoomButton.js +1 -1
- package/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderOpenMap.js +2 -2
- package/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -2
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +16 -11
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +6 -1
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/bundle/components/Footer/MediaButton.d.ts +3 -0
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/bundle/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/mobile/bundle/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +6 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/constants.js +1 -1
- package/mobile/dist/components/ComparisonTable/constants.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.d.ts +3 -0
- package/mobile/dist/components/Footer/MediaButton.js +8 -3
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +2 -2
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/content-page-repository/transformHTML.js +2 -2
- package/mobile/dist/content-page-repository/transformHTML.js.map +1 -1
- package/mobile/dist/model/BorderVersion.js +1 -1
- package/mobile/dist/model/BorderVersion.js.map +1 -1
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +3 -3
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/Location/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/Location/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Tags/Tags.js +1 -1
- package/mobile/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +3 -3
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/ZoomButton.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js +2 -2
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -2
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +6 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/constants.js +1 -1
- package/mobile/lib/components/ComparisonTable/constants.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.d.ts +3 -0
- package/mobile/lib/components/Footer/MediaButton.js +8 -3
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.js +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +2 -2
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.d.ts +3 -0
- package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMapContent.d.ts +4 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/content-page-repository/transformHTML.js +1 -1
- package/mobile/lib/content-page-repository/transformHTML.js.map +1 -1
- package/mobile/lib/model/BorderVersion.js +1 -1
- package/mobile/lib/model/BorderVersion.js.map +1 -1
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +3 -3
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/Location/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/Location/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Tags/Tags.js +1 -1
- package/mobile/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +3 -3
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/ZoomButton.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js +2 -2
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -2
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -1
- package/mobile/src/common.css +5 -4
- package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +4 -6
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +6 -1
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +1 -1
- package/mobile/src/components/Calculator/Calculator.tsx +1 -1
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +5 -5
- package/mobile/src/components/Catalog/CatalogCard.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -4
- package/mobile/src/components/ComparisonTable/constants.ts +1 -1
- package/mobile/src/components/Footer/MediaButton.tsx +46 -36
- package/mobile/src/components/Gallery/Gallery.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryContainer.tsx +1 -1
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +36 -34
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -5
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -4
- package/mobile/src/components/OfficeMap/OfficeMap.tsx +3 -2
- package/mobile/src/components/OfficeMap/OfficeMapContent.ts +4 -1
- package/mobile/src/components/OfficeMap/renderFunctions.tsx +2 -2
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
- package/mobile/src/content-page-repository/transformHTML.ts +1 -1
- package/mobile/src/model/BorderVersion.ts +1 -1
- package/mobile/src/ui-kit/Button/getRegularButtonClasses.ts +2 -2
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +2 -2
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +3 -3
- package/mobile/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/mobile/src/ui-kit/Tags/Tags.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
- package/mobile/src/ui-kit/YandexMap/ZoomButton.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/renderOpenMap.tsx +2 -2
- package/mobile/src/ui-kit/YandexMap/renderUserGeolocation.tsx +2 -2
- package/package.json +1 -1
- package/src/common.css +5 -4
- package/src/components/BusinessBlock/BusinessBlock.example.json +4 -6
- package/src/components/BusinessBlock/BusinessBlockContent.ts +6 -1
- package/src/components/BusinessBlock/BusinessCard.tsx +1 -1
- package/src/components/Calculator/Calculator.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/src/components/CarouselCard/CarouselCardContent.ts +1 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +5 -5
- package/src/components/Catalog/CatalogCard.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/src/components/ComparisonTable/TableColumn.tsx +1 -4
- package/src/components/ComparisonTable/constants.ts +1 -1
- package/src/components/Footer/MediaButton.tsx +46 -36
- package/src/components/Footer/SocialMedia.tsx +20 -10
- package/src/components/Gallery/Gallery.mobile.tsx +1 -1
- package/src/components/Gallery/GalleryContainer.tsx +1 -1
- package/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/src/components/Header/DropdownMenu.tsx +36 -34
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -5
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +2 -4
- package/src/components/OfficeMap/OfficeMap.tsx +3 -2
- package/src/components/OfficeMap/OfficeMapContent.ts +4 -1
- package/src/components/OfficeMap/renderFunctions.tsx +2 -2
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
- package/src/content-page-repository/transformHTML.ts +1 -1
- package/src/model/BorderVersion.ts +1 -1
- package/src/ui-kit/Button/getRegularButtonClasses.ts +2 -2
- package/src/ui-kit/Checkbox/Checkbox.tsx +2 -2
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
- package/src/ui-kit/Input/Input.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +3 -3
- package/src/ui-kit/Location/SearchBar.tsx +1 -1
- package/src/ui-kit/Radio/Radio.tsx +1 -1
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +3 -3
- package/src/ui-kit/Tags/Tags.tsx +1 -1
- package/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
- package/src/ui-kit/YandexMap/ZoomButton.tsx +1 -1
- package/src/ui-kit/YandexMap/renderOpenMap.tsx +2 -2
- package/src/ui-kit/YandexMap/renderUserGeolocation.tsx +2 -2
- package/tailwind.config.cjs +3 -13
|
@@ -28,10 +28,7 @@ export const TableColumn = JSX<TableColumnProps>(
|
|
|
28
28
|
const buttonVersion: ButtonVersion = isFillGradient ? 'secondary' : 'primary';
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
|
-
<div
|
|
32
|
-
className={`border border-main-stroke rounded-md p-4 mb-3.5 ${gradientClassName}`}
|
|
33
|
-
role="row"
|
|
34
|
-
>
|
|
31
|
+
<div className={`border border-gray rounded-md p-4 mb-3.5 ${gradientClassName}`} role="row">
|
|
35
32
|
<HeaderCell {...header} isFillGradient={isFillGradient} />
|
|
36
33
|
{columnDataView?.length
|
|
37
34
|
? columnDataView.map(({ rowHeader, cell }, i) => (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
2
|
-
export const BORDER_CLASSES = 'border-
|
|
2
|
+
export const BORDER_CLASSES = 'border-gray border-solid border';
|
|
3
3
|
export const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
|
|
4
4
|
export const FIRST_CELL_CLASSES = 'w-[200px] mr-6';
|
|
5
5
|
export const COLS_LENGTH_FOR_SCROLL = 3;
|
|
@@ -37,49 +37,59 @@ const ICONS_MAP: Array<{
|
|
|
37
37
|
},
|
|
38
38
|
];
|
|
39
39
|
|
|
40
|
+
export type ButtonSize = 'default' | 'small';
|
|
41
|
+
|
|
40
42
|
interface MediaButtonProps {
|
|
41
43
|
href?: string;
|
|
42
44
|
version?: BlockVersion;
|
|
45
|
+
isRounded?: boolean;
|
|
46
|
+
buttonSize?: ButtonSize;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
const BUTTON_SIZE = {
|
|
50
|
+
default: ' w-14 h-14',
|
|
51
|
+
small: ' w-12 h-12',
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const MediaButton = JSX<MediaButtonProps>(
|
|
55
|
+
({ version = 'primary', isRounded = false, buttonSize = 'default', ...rest }) => {
|
|
56
|
+
const link = useLink();
|
|
57
|
+
const { href, onClick } = link(rest);
|
|
48
58
|
|
|
49
|
-
|
|
50
|
-
|
|
59
|
+
const { icon, label } =
|
|
60
|
+
ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
51
61
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
62
|
+
if (!icon) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
55
65
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
const classes =
|
|
67
|
+
version === 'secondary'
|
|
68
|
+
? 'bg-white hover:bg-secondary-hover'
|
|
69
|
+
: 'border-solid border border-main-divider hover:border-transparent hover:bg-primary-main';
|
|
60
70
|
|
|
61
|
-
|
|
71
|
+
const isPrimary = version === 'primary' ? 'hover:text-black' : '';
|
|
72
|
+
const rounded = isRounded ? 'rounded-full' : 'rounded-md';
|
|
62
73
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
});
|
|
74
|
+
return (
|
|
75
|
+
<a
|
|
76
|
+
className={`flex items-center justify-center group box-border ${classes} ${rounded} ${isPrimary} ${BUTTON_SIZE[buttonSize]}`}
|
|
77
|
+
href={href}
|
|
78
|
+
aria-label={label}
|
|
79
|
+
target="_blank"
|
|
80
|
+
rel="noopener noreferrer"
|
|
81
|
+
onClick={onClick}
|
|
82
|
+
>
|
|
83
|
+
{icon ? (
|
|
84
|
+
<Img
|
|
85
|
+
image={getIconWithVersion(icon)}
|
|
86
|
+
imageClassName="group-hover:text-white"
|
|
87
|
+
width="24"
|
|
88
|
+
height="24"
|
|
89
|
+
asSVG
|
|
90
|
+
/>
|
|
91
|
+
) : null}
|
|
92
|
+
</a>
|
|
93
|
+
);
|
|
94
|
+
},
|
|
95
|
+
);
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
|
-
import { MediaButton } from './MediaButton';
|
|
4
|
+
import { type ButtonSize, MediaButton } from './MediaButton';
|
|
5
5
|
|
|
6
6
|
export interface SocialMediaProps {
|
|
7
7
|
className?: string;
|
|
8
8
|
media?: Omit<LinkProps, 'text'>[];
|
|
9
9
|
version?: BlockVersion;
|
|
10
|
+
isRounded?: boolean;
|
|
11
|
+
buttonSize?: ButtonSize;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
export const SocialMedia = JSX<SocialMediaProps>(
|
|
13
|
-
|
|
14
|
-
<div className=
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export const SocialMedia = JSX<SocialMediaProps>(
|
|
15
|
+
({ className = '', media, version, isRounded = false, buttonSize, children }) => (
|
|
16
|
+
<div className="font-sans">
|
|
17
|
+
<div className={`flex gap-2.5 ${className}`}>
|
|
18
|
+
{media?.map((_, index) => (
|
|
19
|
+
<MediaButton
|
|
20
|
+
key={String(index)}
|
|
21
|
+
version={version}
|
|
22
|
+
isRounded={isRounded}
|
|
23
|
+
buttonSize={buttonSize}
|
|
24
|
+
{..._}
|
|
25
|
+
/>
|
|
26
|
+
))}
|
|
27
|
+
</div>
|
|
28
|
+
<span className="text-s-light text-secondary-text">{children}</span>
|
|
18
29
|
</div>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
));
|
|
30
|
+
),
|
|
31
|
+
);
|
|
@@ -45,7 +45,7 @@ function renderCardsLayout(orientation: ListOrientation, cards: GalleryCardProps
|
|
|
45
45
|
function renderCard(card: GalleryCardProps, key: number) {
|
|
46
46
|
return (
|
|
47
47
|
<div
|
|
48
|
-
className={`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-
|
|
48
|
+
className={`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-gray p-4
|
|
49
49
|
${VersionStyleMap[card.version ?? 'primary']}`}
|
|
50
50
|
key={key}
|
|
51
51
|
>
|
|
@@ -36,7 +36,7 @@ export const GalleryContainer = JSX<GalleryContainerProps>(
|
|
|
36
36
|
function renderCard({ card, version }: GalleryCardData, i: number) {
|
|
37
37
|
return (
|
|
38
38
|
<section
|
|
39
|
-
className={`box-border border-solid border border-
|
|
39
|
+
className={`box-border border-solid border border-gray p-6 mx-2 flex flex-col justify-between
|
|
40
40
|
items-stretch ${cardStyleMap[version]} ${
|
|
41
41
|
VersionStyleMap[card.version ?? 'primary']
|
|
42
42
|
} w-full col-span-4`}
|
|
@@ -17,46 +17,48 @@ interface DropdownMenuProps {
|
|
|
17
17
|
bgColor?: BgColorVersion;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export const DropdownMenu = JSX<DropdownMenuProps>(
|
|
21
|
-
|
|
20
|
+
export const DropdownMenu = JSX<DropdownMenuProps>(
|
|
21
|
+
({ className = '', items, activeItem, bgColor }) => {
|
|
22
|
+
const link = useLink();
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
const [visible, setVisible] = useState(false);
|
|
25
|
+
const handleToggle = useCallback(() => setVisible((_) => !_), []);
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
const handleClickOutside = useCallback(() => setVisible(false), []);
|
|
28
|
+
const ref = useOutsideClick<HTMLDivElement>(handleClickOutside);
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
<div
|
|
31
|
-
className={`${visible ? 'bg-white rounded-md shadow-blue-gray/24' : ''} ${className || ''}`}
|
|
32
|
-
ref={ref}
|
|
33
|
-
>
|
|
34
|
-
<button
|
|
35
|
-
className="flex justify-between items-center cursor-pointer h-6 ml-6"
|
|
36
|
-
aria-label={`${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`}
|
|
37
|
-
onClick={handleToggle}
|
|
38
|
-
>
|
|
39
|
-
{Array(3).fill(bgColor).map(renderDot)}
|
|
40
|
-
</button>
|
|
30
|
+
return (
|
|
41
31
|
<div
|
|
42
|
-
className={
|
|
43
|
-
|
|
32
|
+
className={`${visible ? 'bg-white rounded-md shadow-blue-gray' : ''} ${className}`}
|
|
33
|
+
ref={ref}
|
|
44
34
|
>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
35
|
+
<button
|
|
36
|
+
className="flex justify-between items-center cursor-pointer h-6 ml-6"
|
|
37
|
+
aria-label={`${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`}
|
|
38
|
+
onClick={handleToggle}
|
|
39
|
+
>
|
|
40
|
+
{Array(3).fill(bgColor).map(renderDot)}
|
|
41
|
+
</button>
|
|
42
|
+
<div
|
|
43
|
+
className={`flex flex-col rounded-md bg-white p-6 pb-2 ${visible ? '' : 'hidden'}`}
|
|
44
|
+
aria-hidden={!visible}
|
|
45
|
+
>
|
|
46
|
+
{items?.map((item, i) => (
|
|
47
|
+
<a
|
|
48
|
+
key={item.href || String(i)}
|
|
49
|
+
className={`text-l-light pb-4 hover:text-primary-main ${
|
|
50
|
+
item === activeItem ? 'text-primary-main' : ''
|
|
51
|
+
}`}
|
|
52
|
+
{...link(item)}
|
|
53
|
+
>
|
|
54
|
+
{item.text}
|
|
55
|
+
</a>
|
|
56
|
+
))}
|
|
57
|
+
</div>
|
|
56
58
|
</div>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
);
|
|
60
|
+
},
|
|
61
|
+
);
|
|
60
62
|
|
|
61
63
|
const renderDot = (bgColor: BgColorVersion, i: number) => (
|
|
62
64
|
<div key={String(i)} className={`w-[3px] h-[3px] rounded mr-1 ${DOT_BG_COLORS_MAP[bgColor]}`} />
|
|
@@ -91,8 +91,8 @@ function renderGallery({ activeIndex, cards, selectedCardIndex, onClick }: Insur
|
|
|
91
91
|
|
|
92
92
|
function renderNavButton({ slide, i, isActive, onClick }: NavButtonProps) {
|
|
93
93
|
const btnClassName = isActive
|
|
94
|
-
? 'shadow-dark-blue
|
|
95
|
-
: `ease-in duration-300 border-
|
|
94
|
+
? 'shadow-dark-blue border-primary-main'
|
|
95
|
+
: `ease-in duration-300 border-gray`;
|
|
96
96
|
|
|
97
97
|
return (
|
|
98
98
|
<button
|
|
@@ -49,12 +49,10 @@ export const InvestmentInfo = JSX<InvestmentInfoProps>((props) => {
|
|
|
49
49
|
{colums?.length ? (
|
|
50
50
|
<div>
|
|
51
51
|
<div className="flex items-end relative pl-9 pr-5 text-white">
|
|
52
|
-
{joinList(<div className="w-px h-4 bg-
|
|
53
|
-
|
|
54
|
-
)}
|
|
55
|
-
<div className="absolute right-[30px] w-px h-4 bg-main-stroke" />
|
|
52
|
+
{joinList(<div className="w-px h-4 bg-gray" />)(colums.map(renderInvestmentColumn))}
|
|
53
|
+
<div className="absolute right-[30px] w-px h-4 bg-gray" />
|
|
56
54
|
</div>
|
|
57
|
-
<div className="border-t border-
|
|
55
|
+
<div className="border-t border-gray -mt-2 ml-9 mr-8" />
|
|
58
56
|
<div className="flex justify-between text-primary-text mt-3 -mx-10">
|
|
59
57
|
{colums.map(renderInvestmentColumnTitle)}
|
|
60
58
|
</div>
|
|
@@ -10,7 +10,7 @@ export const LinkDocsHorizontalList = JSX<LinkDocsVerticalListProps>(
|
|
|
10
10
|
? documents.map((doc, i) => (
|
|
11
11
|
<LinkDocsListItem
|
|
12
12
|
key={String(i)}
|
|
13
|
-
className={hasBorder ? 'rounded-md border-
|
|
13
|
+
className={hasBorder ? 'rounded-md border-gray border border-solid p-4' : ''}
|
|
14
14
|
doc={doc}
|
|
15
15
|
icon={icon}
|
|
16
16
|
/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { LinkDocsItem } from './LinkDocsContent';
|
|
3
2
|
import type { Picture } from '../../model/Picture';
|
|
3
|
+
import type { LinkDocsItem } from './LinkDocsContent';
|
|
4
4
|
import { LinkDocsListItem } from './LinkDocsListItem';
|
|
5
5
|
|
|
6
6
|
export interface LinkDocsVerticalListProps {
|
|
@@ -20,9 +20,7 @@ export const LinkDocsVerticalList = JSX<LinkDocsVerticalListProps>(
|
|
|
20
20
|
? documents.map((doc, i) => (
|
|
21
21
|
<div key={String(i)} role="listitem">
|
|
22
22
|
<LinkDocsListItem
|
|
23
|
-
className={
|
|
24
|
-
hasBorder ? 'rounded-md border-main-stroke border border-solid p-4' : ''
|
|
25
|
-
}
|
|
23
|
+
className={hasBorder ? 'rounded-md border-gray border border-solid p-4' : ''}
|
|
26
24
|
doc={doc}
|
|
27
25
|
icon={icon}
|
|
28
26
|
/>
|
|
@@ -3,17 +3,18 @@ import type { UniBlockProps } from '../../model/JSXBlock';
|
|
|
3
3
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
4
4
|
import { YandexMap } from '../../ui-kit/YandexMap/YandexMap';
|
|
5
5
|
import { nearbyOffices } from './nearbyOffices';
|
|
6
|
-
import type {
|
|
6
|
+
import type { OfficeMapContent, WorkScheduleWeek } from './OfficeMapContent';
|
|
7
7
|
import { renderCurrentDaySchedule, renderDay, renderNearbyOffice } from './renderFunctions';
|
|
8
8
|
import { useOfficeMap } from './useOfficeMap';
|
|
9
9
|
|
|
10
|
+
export interface OfficeMapProps extends OfficeMapContent, UniBlockProps {}
|
|
10
11
|
export const OfficeMap = JSX<UniBlockProps>(({ className = '' }) => {
|
|
11
12
|
// TODO: useOfficeMap endpoint had use /api/v1/branches. This endpoint now is`t correct/
|
|
12
13
|
// TODO: useOfficeMap has return MOCK OBJECT!
|
|
13
14
|
// TODO: Fix this when endpoint /api/v1/branches (or new endpoint) had returning right data
|
|
14
15
|
const resultOfficeMap = useOfficeMap('000');
|
|
15
16
|
const { name, address, gpsLatitude, gpsLongitude, workSchedule } =
|
|
16
|
-
resultOfficeMap as
|
|
17
|
+
resultOfficeMap as OfficeMapContent;
|
|
17
18
|
const {
|
|
18
19
|
workingMonday,
|
|
19
20
|
workingTuesday,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NearbyOffices, WorkScheduleWeek } from './OfficeMapContent';
|
|
2
1
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
2
|
+
import { NearbyOffices, WorkScheduleWeek } from './OfficeMapContent';
|
|
3
3
|
|
|
4
4
|
export const renderCurrentDaySchedule = ({ lunchHour, status, workTime }: WorkScheduleWeek) => {
|
|
5
5
|
const hasTime = /\d+/gi.test(lunchHour as string);
|
|
@@ -10,7 +10,7 @@ export const renderCurrentDaySchedule = ({ lunchHour, status, workTime }: WorkSc
|
|
|
10
10
|
<div className="p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4">
|
|
11
11
|
{workTime ? workTime : null}
|
|
12
12
|
</div>
|
|
13
|
-
<div className="p-3 border rounded-md text-m flex items-center cursor-pointer text-
|
|
13
|
+
<div className="p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden">
|
|
14
14
|
{lunchHour ? lunchHourText : null}
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
@@ -91,7 +91,7 @@ function renderProductBlock(block: ProductBlockInnerContent & UniBlockProps, i:
|
|
|
91
91
|
|
|
92
92
|
function renderNavButton({ slide, i, isActive, onClick, version }: NavButtonProps) {
|
|
93
93
|
const btnClassName = isActive
|
|
94
|
-
? 'bg-white shadow-dark-blue
|
|
94
|
+
? 'bg-white shadow-dark-blue min-w-[350px] border-none p-6'
|
|
95
95
|
: `min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur
|
|
96
96
|
${VersionStyleMap[version]}`;
|
|
97
97
|
const btnTitleClassName = isActive
|
|
@@ -10,7 +10,7 @@ export interface TariffsTableTileCellProps extends UniBlockProps {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const TariffsTableTileCell = JSX<TariffsTableTileCellProps>(({ tile, ...rest }) => (
|
|
13
|
-
<div className="rounded-md border-
|
|
13
|
+
<div className="rounded-md border-gray h-full box-border border p-4">
|
|
14
14
|
<TableTileHeader {...tile?.header} />
|
|
15
15
|
{tile?.data?.length
|
|
16
16
|
? tile.data.map((cell, i) => (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GetButtonClassParams } from './GetButtonClassParams';
|
|
2
1
|
import { buttonStyle, buttonStyleMap } from './buttonClassNameConstants';
|
|
2
|
+
import type { GetButtonClassParams } from './GetButtonClassParams';
|
|
3
3
|
|
|
4
4
|
export const getRegularButtonClasses = ({
|
|
5
5
|
className,
|
|
@@ -8,7 +8,7 @@ export const getRegularButtonClasses = ({
|
|
|
8
8
|
}: GetButtonClassParams): string =>
|
|
9
9
|
[
|
|
10
10
|
buttonStyle,
|
|
11
|
-
'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-
|
|
11
|
+
'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border',
|
|
12
12
|
version ? buttonStyleMap[version] : '',
|
|
13
13
|
rounded ? 'rounded-full' : 'rounded-md',
|
|
14
14
|
className,
|
|
@@ -16,9 +16,9 @@ export const Checkbox = JSX<CheckboxProps>(({ className, text, checked, isRadio,
|
|
|
16
16
|
<div className={className}>
|
|
17
17
|
<label className="flex items-center relative cursor-pointer group">
|
|
18
18
|
<input
|
|
19
|
-
className={`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-
|
|
19
|
+
className={`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-primary-hover
|
|
20
20
|
${isRadio ? 'rounded-full border-2' : 'rounded checked:bg-primary-main border'}
|
|
21
|
-
${checked ? 'border-black' : 'border-
|
|
21
|
+
${checked ? 'border-black' : 'border-gray'}
|
|
22
22
|
checked:border-primary-main m-0`}
|
|
23
23
|
type="checkbox"
|
|
24
24
|
onChange={(e) => onChange && onChange(e.target.checked as boolean)}
|
|
@@ -25,7 +25,7 @@ export const InnerTableBody = JSX<InnerTableBodyProps>(({ activeTabIndex, items
|
|
|
25
25
|
return (
|
|
26
26
|
<div key={key} className="w-full">
|
|
27
27
|
<div
|
|
28
|
-
className="flex p-4 bg-
|
|
28
|
+
className="flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative"
|
|
29
29
|
onClick={() => toggleTables(key)}
|
|
30
30
|
>
|
|
31
31
|
{_.title}
|
|
@@ -38,7 +38,7 @@ export const Input = JSX<InputProps>(
|
|
|
38
38
|
|
|
39
39
|
const paddingStyle = children ? 'pr-8' : '';
|
|
40
40
|
const validStyle = valid
|
|
41
|
-
? 'border-
|
|
41
|
+
? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
|
|
42
42
|
: 'border-error';
|
|
43
43
|
|
|
44
44
|
return (
|
|
@@ -4,7 +4,7 @@ import { clamp } from '../../utils/clamp';
|
|
|
4
4
|
import { getSanitizedValue } from '../../utils/getSanitizedValue';
|
|
5
5
|
import type { InputRangeProps } from './InputRangeProps';
|
|
6
6
|
|
|
7
|
-
const DISABLED_INPUT_CLASSES = 'disabled:border-
|
|
7
|
+
const DISABLED_INPUT_CLASSES = 'disabled:border-gray disabled:bg-main-divider';
|
|
8
8
|
|
|
9
9
|
export const InputRange = JSX<InputRangeProps>(
|
|
10
10
|
({
|
|
@@ -35,8 +35,8 @@ export const InputRange = JSX<InputRangeProps>(
|
|
|
35
35
|
<label className="block relative">
|
|
36
36
|
{title ? <span className="text-m-light text-primary-text">{title}</span> : null}
|
|
37
37
|
<input
|
|
38
|
-
className={`m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-
|
|
39
|
-
outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-
|
|
38
|
+
className={`m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md
|
|
39
|
+
outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text ${DISABLED_INPUT_CLASSES}`}
|
|
40
40
|
value={addSpacesBetweenNumbers(value)}
|
|
41
41
|
disabled={disabled}
|
|
42
42
|
onChange={handleChange}
|
|
@@ -19,7 +19,7 @@ export const SearchBar = JSX<SearchBarInnerProps>(({ className, searchTerm, onSe
|
|
|
19
19
|
<input
|
|
20
20
|
id="search-bar-input"
|
|
21
21
|
className={`h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border
|
|
22
|
-
outline-none border-
|
|
22
|
+
outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`}
|
|
23
23
|
value={searchTerm}
|
|
24
24
|
onChange={(e) => onSearch(e.target.value as string)}
|
|
25
25
|
type="text"
|
|
@@ -5,7 +5,7 @@ export const Radio = JSX<RadioProps>(({ name, text, value, checked, onChange, cl
|
|
|
5
5
|
<div className={className}>
|
|
6
6
|
<label className="font-sans flex items-center relative cursor-pointer">
|
|
7
7
|
<input
|
|
8
|
-
className="appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-
|
|
8
|
+
className="appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover
|
|
9
9
|
checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text
|
|
10
10
|
after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer"
|
|
11
11
|
type="radio"
|
|
@@ -34,7 +34,7 @@ export const SearchBarInner = JSX<SearchBarInnerProps>(({ className, isMobile =
|
|
|
34
34
|
<input
|
|
35
35
|
id="search-bar-input"
|
|
36
36
|
className={`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border
|
|
37
|
-
outline-none pr-[6%] border-
|
|
37
|
+
outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${SearchBarInputClassName}`}
|
|
38
38
|
value={term}
|
|
39
39
|
onChange={(e) => setTerm(e.target.value as string)}
|
|
40
40
|
type="text"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { VNode } from '../../model/VNode';
|
|
1
2
|
import '../../setup-fixture';
|
|
2
3
|
import { SwipeListControl } from './SwipeListControl';
|
|
3
|
-
import type { VNode } from '../../model/VNode';
|
|
4
4
|
|
|
5
5
|
const renderElement = (_: any, i: number): VNode => (
|
|
6
|
-
<div key={String(i)} className="border border-
|
|
6
|
+
<div key={String(i)} className="border border-gray rounded-md text-center h-12">
|
|
7
7
|
{`Element #${i}`}
|
|
8
8
|
</div>
|
|
9
9
|
);
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
'1 element': (
|
|
25
25
|
<div className="px-4 py-5 bg-white">
|
|
26
26
|
<SwipeListControl>
|
|
27
|
-
<div className="border border-
|
|
27
|
+
<div className="border border-gray rounded-md text-center h-12">
|
|
28
28
|
Single element, not inside an array
|
|
29
29
|
</div>
|
|
30
30
|
</SwipeListControl>
|
package/src/ui-kit/Tags/Tags.tsx
CHANGED
|
@@ -17,7 +17,7 @@ export const Tags = JSX<TagsProps>((props) => {
|
|
|
17
17
|
const renderTag = (tag: string, key: number) => (
|
|
18
18
|
<span
|
|
19
19
|
key={String(key)}
|
|
20
|
-
className="text-m-light py-2 px-2.5 border-solid border rounded-md border-
|
|
20
|
+
className="text-m-light py-2 px-2.5 border-solid border rounded-md border-gray"
|
|
21
21
|
>
|
|
22
22
|
{tag}
|
|
23
23
|
</span>
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { JSX } from '@redneckz/uni-jsx';
|
|
4
4
|
import { useEffect, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
5
5
|
import ymaps from 'yandex-maps';
|
|
6
|
+
import { Icon } from '../Icon/Icon';
|
|
7
|
+
import { MockPoints, mockPoints } from './mockPoints';
|
|
6
8
|
import { renderClusterer } from './renderClusterer';
|
|
7
9
|
import { renderOpenMap } from './renderOpenMap';
|
|
8
10
|
import { renderSearchField } from './renderSearchField';
|
|
9
11
|
import { renderUserGeolocation } from './renderUserGeolocation';
|
|
10
12
|
import { useYandexMaps } from './useYandexMaps';
|
|
11
|
-
import { Icon } from '../Icon/Icon';
|
|
12
13
|
import { ZoomButton } from './ZoomButton';
|
|
13
|
-
import { MockPoints, mockPoints } from './mockPoints';
|
|
14
14
|
|
|
15
15
|
interface YandexMapProps {
|
|
16
16
|
points: number[][];
|
|
@@ -23,7 +23,7 @@ const FULLSCREEN_STYLES = {
|
|
|
23
23
|
border: 'border border-transparent rounded-md ',
|
|
24
24
|
position: 'absolute flex items-center justify-center',
|
|
25
25
|
size: 'w-12 h-12',
|
|
26
|
-
focus: 'focus:border-primary-
|
|
26
|
+
focus: 'focus:border-primary-text focus:border',
|
|
27
27
|
font: 'text-center font-sans',
|
|
28
28
|
active: 'active:bg-primary-active',
|
|
29
29
|
hover: 'hover:bg-primary-hover',
|
|
@@ -10,7 +10,7 @@ interface ZoomButtonProps {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const styles = {
|
|
13
|
-
focus: 'focus:border-primary-
|
|
13
|
+
focus: 'focus:border-primary-text focus:border',
|
|
14
14
|
hover: 'hover:bg-primary-hover',
|
|
15
15
|
active: 'active:bg-primary-active',
|
|
16
16
|
border: 'border-b border-b-2 border-gray last:border-0',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const styles = {
|
|
2
|
-
focus: 'focus:border-primary-
|
|
2
|
+
focus: 'focus:border-primary-text focus:border',
|
|
3
3
|
hover: 'hover:bg-primary-hover',
|
|
4
4
|
active: 'active:bg-primary-active',
|
|
5
5
|
border: 'border border-transparent rounded-md',
|
|
@@ -14,7 +14,7 @@ export const renderOpenMap = (pointsCenter: number[]) => {
|
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
16
|
<a
|
|
17
|
-
className={`select-none cursor-pointer px-9 h-12 bg-
|
|
17
|
+
className={`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(
|
|
18
18
|
styles,
|
|
19
19
|
).join(' ')}`}
|
|
20
20
|
href={getYandexMapUrl()}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
2
|
-
import { Icon } from '../Icon/Icon';
|
|
3
2
|
import ymaps from 'yandex-maps';
|
|
3
|
+
import { Icon } from '../Icon/Icon';
|
|
4
4
|
|
|
5
5
|
const styles = {
|
|
6
|
-
focus: 'focus:border-primary-
|
|
6
|
+
focus: 'focus:border-primary-text focus:border',
|
|
7
7
|
hover: 'hover:bg-primary-hover',
|
|
8
8
|
active: 'active:bg-primary-active',
|
|
9
9
|
border: 'border border-transparent rounded-md',
|