@redneckz/wildless-cms-uni-blocks 0.6.23 → 0.6.25
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 +217 -190
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/bundle/components/Catalog/CatalogContent.d.ts +2 -0
- package/bundle/components/ContentPage/normalizePage.d.ts +1 -1
- package/bundle/components/Header/DropdownMenu.d.ts +5 -7
- package/bundle/components/Header/HeaderContent.d.ts +1 -2
- package/bundle/components/Header/HeaderSubMenuItem.d.ts +12 -0
- package/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
- package/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
- package/bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
- package/bundle/content-page-repository/ContentPageRepository.d.ts +12 -9
- package/bundle/hooks/useIntersectionObserver.d.ts +3 -0
- package/bundle/hooks/useOutsideClick.d.ts +3 -5
- package/bundle/model/BorderVersion.d.ts +6 -0
- package/bundle/model/IconVersion.d.ts +4 -2
- package/bundle/services/sitemap/useSitemap.d.ts +2 -2
- package/bundle/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
- package/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/bundle/utils/getIconWithVersion.d.ts +3 -0
- package/dist/components/AccordionItem/AccordionItem.mobile.js +2 -1
- package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +10 -27
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +6 -1
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Catalog/CatalogContent.d.ts +2 -0
- package/dist/components/ComparisonTable/HeaderCell.js +2 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ContentPage/normalizeBlock.js +4 -8
- package/dist/components/ContentPage/normalizeBlock.js.map +1 -1
- package/dist/components/ContentPage/normalizeBlock.mobile.js +4 -8
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/dist/components/ContentPage/normalizePage.d.ts +1 -1
- package/dist/components/ContentPage/normalizePage.js +1 -6
- package/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +3 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +2 -1
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +3 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Header/DropdownMenu.d.ts +5 -7
- package/dist/components/Header/DropdownMenu.js +8 -7
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.js +9 -9
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +6 -6
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +1 -2
- package/dist/components/Header/HeaderSubMenu.js +8 -21
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.d.ts +12 -0
- package/dist/components/Header/HeaderSubMenuItem.js +23 -0
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -0
- package/dist/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
- package/dist/components/InvestmentGallery/InvestmentGallery.js +40 -0
- package/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -0
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +24 -0
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -0
- package/dist/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
- package/dist/components/InvestmentGallery/InvestmentGalleryContent.js +2 -0
- package/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +2 -2
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +1 -3
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +7 -5
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +4 -3
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -5
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +1 -0
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +2 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/content-page-repository/ContentPageRepository.d.ts +12 -9
- package/dist/content-page-repository/ContentPageRepository.js +24 -35
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/hooks/useIntersectionObserver.d.ts +3 -0
- package/dist/hooks/useIntersectionObserver.js +19 -0
- package/dist/hooks/useIntersectionObserver.js.map +1 -0
- package/dist/hooks/useOutsideClick.d.ts +3 -5
- package/dist/hooks/useOutsideClick.js +11 -9
- package/dist/hooks/useOutsideClick.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/model/BorderVersion.d.ts +6 -0
- package/dist/model/BorderVersion.js +7 -0
- package/dist/model/BorderVersion.js.map +1 -0
- package/dist/model/IconVersion.d.ts +4 -2
- package/dist/model/IconVersion.js +10 -0
- package/dist/model/IconVersion.js.map +1 -1
- package/dist/services/sitemap/useSitemap.d.ts +2 -2
- package/dist/services/sitemap/useSitemap.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +4 -5
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +18 -26
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Breadcrumb.js +1 -8
- package/dist/ui-kit/Breadcrumb.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.js +5 -5
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/dist/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
- package/{mobile/dist/ui-kit/CurrencyInput/adjustValue .js → dist/ui-kit/CurrencyInput/adjustValue.js} +1 -1
- package/dist/ui-kit/CurrencyInput/adjustValue.js.map +1 -0
- package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +4 -3
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.js +1 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js +5 -1
- package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +2 -2
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Tags/Tags.js +2 -2
- package/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/dist/utils/getIconWithVersion.d.ts +3 -0
- package/dist/utils/getIconWithVersion.js +8 -0
- package/dist/utils/getIconWithVersion.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js +2 -1
- package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +10 -27
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +6 -1
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Catalog/CatalogContent.d.ts +2 -0
- package/lib/components/ComparisonTable/HeaderCell.js +2 -1
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ContentPage/normalizeBlock.js +4 -8
- package/lib/components/ContentPage/normalizeBlock.js.map +1 -1
- package/lib/components/ContentPage/normalizeBlock.mobile.js +4 -8
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/lib/components/ContentPage/normalizePage.d.ts +1 -1
- package/lib/components/ContentPage/normalizePage.js +1 -6
- package/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +3 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +2 -1
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +3 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Header/DropdownMenu.d.ts +5 -7
- package/lib/components/Header/DropdownMenu.js +8 -7
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.js +9 -9
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +6 -6
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +1 -2
- package/lib/components/Header/HeaderSubMenu.js +8 -21
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.d.ts +12 -0
- package/lib/components/Header/HeaderSubMenuItem.js +21 -0
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -0
- package/lib/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
- package/lib/components/InvestmentGallery/InvestmentGallery.fixture.d.ts +7 -0
- package/lib/components/InvestmentGallery/InvestmentGallery.js +38 -0
- package/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -0
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +22 -0
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -0
- package/lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
- package/lib/components/InvestmentGallery/InvestmentGalleryContent.js +2 -0
- package/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +2 -2
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +1 -3
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.js +7 -5
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +4 -3
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -5
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +1 -0
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +2 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/content-page-repository/ContentPageRepository.d.ts +12 -9
- package/lib/content-page-repository/ContentPageRepository.js +24 -35
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/hooks/useIntersectionObserver.d.ts +3 -0
- package/lib/hooks/useIntersectionObserver.js +16 -0
- package/lib/hooks/useIntersectionObserver.js.map +1 -0
- package/lib/hooks/useOutsideClick.d.ts +3 -5
- package/lib/hooks/useOutsideClick.js +12 -10
- package/lib/hooks/useOutsideClick.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/model/BorderVersion.d.ts +6 -0
- package/lib/model/BorderVersion.js +5 -0
- package/lib/model/BorderVersion.js.map +1 -0
- package/lib/model/IconVersion.d.ts +4 -2
- package/lib/model/IconVersion.js +10 -0
- package/lib/model/IconVersion.js.map +1 -1
- package/lib/services/sitemap/useSitemap.d.ts +2 -2
- package/lib/services/sitemap/useSitemap.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +4 -5
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +18 -26
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Breadcrumb.js +1 -8
- package/lib/ui-kit/Breadcrumb.js.map +1 -1
- package/lib/ui-kit/Button/ButtonSection.js +5 -5
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
- package/lib/ui-kit/CurrencyInput/{adjustValue .js → adjustValue.js} +1 -1
- package/lib/ui-kit/CurrencyInput/adjustValue.js.map +1 -0
- package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +4 -3
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.js +1 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js +5 -1
- package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +3 -3
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Tags/Tags.js +2 -2
- package/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/lib/utils/getIconWithVersion.d.ts +3 -0
- package/lib/utils/getIconWithVersion.js +5 -0
- package/lib/utils/getIconWithVersion.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +71 -82
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/mobile/bundle/components/Catalog/CatalogContent.d.ts +2 -0
- package/mobile/bundle/components/ContentPage/normalizePage.d.ts +1 -1
- package/mobile/bundle/components/Header/DropdownMenu.d.ts +5 -7
- package/mobile/bundle/components/Header/HeaderContent.d.ts +1 -2
- package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +12 -0
- package/mobile/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
- package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
- package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
- package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +12 -9
- package/mobile/bundle/hooks/useIntersectionObserver.d.ts +3 -0
- package/mobile/bundle/hooks/useOutsideClick.d.ts +3 -5
- package/mobile/bundle/model/BorderVersion.d.ts +6 -0
- package/mobile/bundle/model/IconVersion.d.ts +4 -2
- package/mobile/bundle/services/sitemap/useSitemap.d.ts +2 -2
- package/mobile/bundle/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
- package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/bundle/utils/getIconWithVersion.d.ts +3 -0
- package/mobile/dist/components/AccordionItem/AccordionItem.js +2 -1
- package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +10 -27
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +6 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogContent.d.ts +2 -0
- package/mobile/dist/components/ContentPage/normalizeBlock.js +4 -8
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.d.ts +1 -1
- package/mobile/dist/components/ContentPage/normalizePage.js +1 -6
- package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +3 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +2 -1
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.d.ts +5 -7
- package/mobile/dist/components/Header/DropdownMenu.js +8 -7
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +6 -6
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +1 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js +8 -21
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +12 -0
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +23 -0
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -0
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +40 -0
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -0
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +24 -0
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -0
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js +2 -0
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +2 -2
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -3
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +7 -5
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -5
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +1 -0
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +12 -9
- package/mobile/dist/content-page-repository/ContentPageRepository.js +24 -35
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/dist/hooks/useIntersectionObserver.d.ts +3 -0
- package/mobile/dist/hooks/useIntersectionObserver.js +19 -0
- package/mobile/dist/hooks/useIntersectionObserver.js.map +1 -0
- package/mobile/dist/hooks/useOutsideClick.d.ts +3 -5
- package/mobile/dist/hooks/useOutsideClick.js +11 -9
- package/mobile/dist/hooks/useOutsideClick.js.map +1 -1
- package/mobile/dist/index.js +1 -1
- package/mobile/dist/index.js.map +1 -1
- package/mobile/dist/model/BorderVersion.d.ts +6 -0
- package/mobile/dist/model/BorderVersion.js +7 -0
- package/mobile/dist/model/BorderVersion.js.map +1 -0
- package/mobile/dist/model/IconVersion.d.ts +4 -2
- package/mobile/dist/model/IconVersion.js +10 -0
- package/mobile/dist/model/IconVersion.js.map +1 -1
- package/mobile/dist/services/sitemap/useSitemap.d.ts +2 -2
- package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +4 -5
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +18 -26
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Breadcrumb.js +1 -8
- package/mobile/dist/ui-kit/Breadcrumb.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js +5 -5
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
- package/{dist/ui-kit/CurrencyInput/adjustValue .js → mobile/dist/ui-kit/CurrencyInput/adjustValue.js} +1 -1
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue.js.map +1 -0
- package/mobile/dist/ui-kit/Icon/Icon.js +4 -3
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js +5 -1
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +2 -2
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Tags/Tags.js +2 -2
- package/mobile/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/dist/utils/getIconWithVersion.d.ts +3 -0
- package/mobile/dist/utils/getIconWithVersion.js +8 -0
- package/mobile/dist/utils/getIconWithVersion.js.map +1 -0
- package/mobile/lib/components/AccordionItem/AccordionItem.js +2 -1
- package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +2 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +10 -27
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +6 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogContent.d.ts +2 -0
- package/mobile/lib/components/ContentPage/normalizeBlock.js +4 -8
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.d.ts +1 -1
- package/mobile/lib/components/ContentPage/normalizePage.js +1 -6
- package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +3 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +2 -1
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.d.ts +5 -7
- package/mobile/lib/components/Header/DropdownMenu.js +8 -7
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +6 -6
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +1 -2
- package/mobile/lib/components/Header/HeaderSubMenu.js +8 -21
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +12 -0
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +21 -0
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -0
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.d.ts +5 -0
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +38 -0
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -0
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +7 -0
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +22 -0
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -0
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts +50 -0
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js +2 -0
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +2 -2
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -3
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +7 -5
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -5
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +1 -0
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +2 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +12 -9
- package/mobile/lib/content-page-repository/ContentPageRepository.js +24 -35
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/lib/hooks/useIntersectionObserver.d.ts +3 -0
- package/mobile/lib/hooks/useIntersectionObserver.js +16 -0
- package/mobile/lib/hooks/useIntersectionObserver.js.map +1 -0
- package/mobile/lib/hooks/useOutsideClick.d.ts +3 -5
- package/mobile/lib/hooks/useOutsideClick.js +12 -10
- package/mobile/lib/hooks/useOutsideClick.js.map +1 -1
- package/mobile/lib/index.js +1 -1
- package/mobile/lib/index.js.map +1 -1
- package/mobile/lib/model/BorderVersion.d.ts +6 -0
- package/mobile/lib/model/BorderVersion.js +5 -0
- package/mobile/lib/model/BorderVersion.js.map +1 -0
- package/mobile/lib/model/IconVersion.d.ts +4 -2
- package/mobile/lib/model/IconVersion.js +10 -0
- package/mobile/lib/model/IconVersion.js.map +1 -1
- package/mobile/lib/services/sitemap/useSitemap.d.ts +2 -2
- package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +4 -5
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +18 -26
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Breadcrumb.js +1 -8
- package/mobile/lib/ui-kit/Breadcrumb.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js +5 -5
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/{adjustValue .d.ts → adjustValue.d.ts} +0 -0
- package/mobile/lib/ui-kit/CurrencyInput/{adjustValue .js → adjustValue.js} +1 -1
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue.js.map +1 -0
- package/mobile/lib/ui-kit/Icon/Icon.js +4 -3
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js +5 -1
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +3 -3
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Tags/Tags.js +2 -2
- package/mobile/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/lib/utils/getIconWithVersion.d.ts +3 -0
- package/mobile/lib/utils/getIconWithVersion.js +5 -0
- package/mobile/lib/utils/getIconWithVersion.js.map +1 -0
- package/mobile/src/components/AccordionItem/AccordionItem.tsx +15 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +47 -76
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -1
- package/mobile/src/components/Calculator/Calculator.tsx +6 -1
- package/mobile/src/components/Catalog/CatalogContent.ts +2 -0
- package/mobile/src/components/ContentPage/normalizeBlock.ts +15 -18
- package/mobile/src/components/ContentPage/normalizePage.ts +2 -7
- package/mobile/src/components/Footer/Footer.tsx +15 -5
- package/mobile/src/components/Footer/MediaButton.tsx +8 -1
- package/mobile/src/components/Gallery/Gallery.tsx +1 -1
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +8 -3
- package/mobile/src/components/Header/DropdownMenu.tsx +46 -63
- package/mobile/src/components/Header/Header.tsx +11 -11
- package/mobile/src/components/Header/HeaderContent.ts +1 -2
- package/mobile/src/components/Header/HeaderSubMenu.tsx +21 -40
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +61 -0
- package/mobile/src/components/InvestmentGallery/InvestmentGallery.example.json +64 -0
- package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +103 -0
- package/mobile/src/components/InvestmentGallery/InvestmentGallery.ui.json +11 -0
- package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +91 -0
- package/mobile/src/components/InvestmentGallery/InvestmentGalleryContent.ts +54 -0
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +8 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -1
- package/mobile/src/components/PictureText/PictureText.tsx +3 -3
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -3
- package/mobile/src/components/Recommendation/Recommendation.tsx +9 -7
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -7
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +2 -1
- package/mobile/src/content-page-repository/ContentPageRepository.ts +27 -45
- package/mobile/src/hooks/useIntersectionObserver.ts +23 -0
- package/mobile/src/hooks/useOutsideClick.ts +13 -13
- package/mobile/src/index.ts +1 -1
- package/mobile/src/model/BorderVersion.ts +10 -0
- package/mobile/src/model/IconVersion.ts +5 -2
- package/mobile/src/services/sitemap/useSitemap.ts +4 -4
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +8 -12
- package/mobile/src/ui-kit/BlockWrapper.tsx +27 -42
- package/mobile/src/ui-kit/Breadcrumb.tsx +8 -11
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +5 -12
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +1 -1
- package/mobile/src/ui-kit/CurrencyInput/{adjustValue .ts → adjustValue.ts} +0 -0
- package/mobile/src/ui-kit/Icon/Icon.tsx +4 -3
- package/mobile/src/ui-kit/Logo/Logo.tsx +10 -2
- package/mobile/src/ui-kit/Select/Select.tsx +3 -4
- package/mobile/src/ui-kit/Tags/Tags.tsx +3 -5
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/mobile/src/utils/getIconWithVersion.ts +7 -0
- package/package.json +1 -1
- package/src/components/AccordionItem/AccordionItem.mobile.tsx +15 -2
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +6 -6
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +47 -76
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/Calculator/Calculator.tsx +6 -1
- package/src/components/Catalog/CatalogContent.ts +2 -0
- package/src/components/ComparisonTable/HeaderCell.tsx +3 -1
- package/src/components/ContentPage/normalizeBlock.mobile.ts +15 -18
- package/src/components/ContentPage/normalizeBlock.ts +10 -12
- package/src/components/ContentPage/normalizePage.ts +2 -7
- package/src/components/Footer/Footer.mobile.tsx +15 -5
- package/src/components/Footer/MediaButton.tsx +8 -1
- package/src/components/Gallery/Gallery.fixture.tsx +1 -0
- package/src/components/Gallery/Gallery.mobile.tsx +1 -1
- package/src/components/Gallery/GalleryCardInner.tsx +8 -3
- package/src/components/Header/DropdownMenu.tsx +46 -63
- package/src/components/Header/Header.mobile.tsx +11 -11
- package/src/components/Header/Header.tsx +17 -12
- package/src/components/Header/HeaderContent.ts +1 -2
- package/src/components/Header/HeaderSubMenu.tsx +21 -40
- package/src/components/Header/HeaderSubMenuItem.tsx +61 -0
- package/src/components/InvestmentGallery/InvestmentGallery.example.json +64 -0
- package/src/components/InvestmentGallery/InvestmentGallery.fixture.tsx +79 -0
- package/src/components/InvestmentGallery/InvestmentGallery.tsx +103 -0
- package/src/components/InvestmentGallery/InvestmentGallery.ui.json +11 -0
- package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +91 -0
- package/src/components/InvestmentGallery/InvestmentGalleryContent.ts +54 -0
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +8 -1
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -1
- package/src/components/PictureText/PictureText.tsx +3 -3
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +3 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductBlock/renderBenefit.tsx +2 -3
- package/src/components/ProductGallery/ProductGallery.tsx +3 -4
- package/src/components/Recommendation/Recommendation.tsx +9 -7
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +4 -4
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +4 -3
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -7
- package/src/components/StepsBlock/StepsBlock.tsx +5 -3
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +2 -1
- package/src/content-page-repository/ContentPageRepository.ts +27 -45
- package/src/hooks/useIntersectionObserver.ts +23 -0
- package/src/hooks/useOutsideClick.ts +13 -13
- package/src/index.ts +1 -1
- package/src/model/BorderVersion.ts +10 -0
- package/src/model/IconVersion.ts +5 -2
- package/src/services/sitemap/useSitemap.ts +4 -4
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +8 -12
- package/src/ui-kit/BlockWrapper.tsx +27 -42
- package/src/ui-kit/Breadcrumb.tsx +8 -11
- package/src/ui-kit/Button/ButtonSection.tsx +5 -12
- package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +1 -1
- package/src/ui-kit/CurrencyInput/{adjustValue .ts → adjustValue.ts} +0 -0
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +3 -3
- package/src/ui-kit/Icon/Icon.tsx +4 -3
- package/src/ui-kit/Logo/Logo.mobile.tsx +10 -2
- package/src/ui-kit/Logo/Logo.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +3 -4
- package/src/ui-kit/Tags/Tags.tsx +3 -5
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/src/utils/getIconWithVersion.ts +7 -0
- package/bundle/ui-kit/IntersectionObserverTag.d.ts +0 -12
- package/dist/ui-kit/CurrencyInput/adjustValue .js.map +0 -1
- package/dist/ui-kit/IntersectionObserverTag.d.ts +0 -12
- package/dist/ui-kit/IntersectionObserverTag.js +0 -22
- package/dist/ui-kit/IntersectionObserverTag.js.map +0 -1
- package/lib/ui-kit/CurrencyInput/adjustValue .js.map +0 -1
- package/lib/ui-kit/IntersectionObserverTag.d.ts +0 -12
- package/lib/ui-kit/IntersectionObserverTag.js +0 -20
- package/lib/ui-kit/IntersectionObserverTag.js.map +0 -1
- package/mobile/bundle/ui-kit/IntersectionObserverTag.d.ts +0 -12
- package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js.map +0 -1
- package/mobile/dist/ui-kit/IntersectionObserverTag.d.ts +0 -12
- package/mobile/dist/ui-kit/IntersectionObserverTag.js +0 -22
- package/mobile/dist/ui-kit/IntersectionObserverTag.js.map +0 -1
- package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js.map +0 -1
- package/mobile/lib/ui-kit/IntersectionObserverTag.d.ts +0 -12
- package/mobile/lib/ui-kit/IntersectionObserverTag.js +0 -20
- package/mobile/lib/ui-kit/IntersectionObserverTag.js.map +0 -1
- package/mobile/src/ui-kit/IntersectionObserverTag.tsx +0 -47
- package/src/ui-kit/IntersectionObserverTag.tsx +0 -47
package/src/ui-kit/Icon/Icon.tsx
CHANGED
|
@@ -4,7 +4,8 @@ import { projectSettings } from '../../ProjectSettings';
|
|
|
4
4
|
import type { IconProps } from './IconProps';
|
|
5
5
|
|
|
6
6
|
const svgUseStyleMap: Record<IconVersion, string> = {
|
|
7
|
-
normal: '
|
|
7
|
+
normal: '',
|
|
8
|
+
color: 'text-primary-main',
|
|
8
9
|
black: 'text-black',
|
|
9
10
|
white: 'text-black',
|
|
10
11
|
};
|
|
@@ -16,13 +17,13 @@ export const Icon = JSX<IconProps>(
|
|
|
16
17
|
name = '',
|
|
17
18
|
alt = `Иконка ${name}`,
|
|
18
19
|
title = alt,
|
|
19
|
-
iconVersion = '
|
|
20
|
+
iconVersion = 'color',
|
|
20
21
|
asSVG,
|
|
21
22
|
...imgProps
|
|
22
23
|
}) => {
|
|
23
24
|
const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
|
|
24
25
|
|
|
25
|
-
if (asSVG) {
|
|
26
|
+
if (asSVG && iconVersion !== 'normal') {
|
|
26
27
|
return (
|
|
27
28
|
<Background className={className}>
|
|
28
29
|
<svg
|
|
@@ -10,10 +10,16 @@ export interface LogoProps {
|
|
|
10
10
|
showTitle?: boolean;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
const ICON_VERSION_MAP: Record<BgColorVersion, string> = {
|
|
14
|
+
'bg-white': 'color',
|
|
15
|
+
transparent: 'white',
|
|
16
|
+
};
|
|
17
|
+
|
|
13
18
|
const SVG_COLOR: Record<BgColorVersion, string> = {
|
|
14
19
|
'bg-white': 'text-primary-main',
|
|
15
20
|
transparent: 'text-white',
|
|
16
21
|
};
|
|
22
|
+
|
|
17
23
|
const TEXT_COLOR: Record<BgColorVersion, string> = {
|
|
18
24
|
'bg-white': 'text-black',
|
|
19
25
|
transparent: 'text-white',
|
|
@@ -29,8 +35,10 @@ export const Logo = JSX<Partial<LogoProps>>(
|
|
|
29
35
|
aria-label="Россельхозбанк"
|
|
30
36
|
>
|
|
31
37
|
<Img
|
|
32
|
-
image={{ icon: 'LogoIcon', iconVersion:
|
|
33
|
-
className={`${SVG_COLOR[bgColor]}
|
|
38
|
+
image={{ icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }}
|
|
39
|
+
className={`${SVG_COLOR[bgColor]}`}
|
|
40
|
+
width="34"
|
|
41
|
+
height="34"
|
|
34
42
|
asSVG
|
|
35
43
|
/>
|
|
36
44
|
{showTitle ? (
|
package/src/ui-kit/Logo/Logo.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import {
|
|
2
|
+
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useOutsideClick } from '../../hooks/useOutsideClick';
|
|
4
4
|
import { Icon } from '../Icon/Icon';
|
|
5
5
|
|
|
@@ -23,9 +23,8 @@ export const Select = JSX<SelectProps>(
|
|
|
23
23
|
const [selectedItem, setSelectedItem] = useState(options[0] || { key: '', text: '' });
|
|
24
24
|
const [isOpen, setIsOpen] = useState(false);
|
|
25
25
|
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
useOutsideClick(wrapperRef, setIsOpen);
|
|
26
|
+
const handleClickOutside = useCallback(() => setIsOpen(false), []);
|
|
27
|
+
const wrapperRef = useOutsideClick<HTMLDivElement>(handleClickOutside);
|
|
29
28
|
|
|
30
29
|
const choiceOption = (option: OptionProps) => {
|
|
31
30
|
setSelectedItem(option);
|
package/src/ui-kit/Tags/Tags.tsx
CHANGED
|
@@ -10,15 +10,13 @@ export const Tags = JSX<TagsProps>((props) => {
|
|
|
10
10
|
const { tags, className = '' } = props;
|
|
11
11
|
|
|
12
12
|
return tags?.length ? (
|
|
13
|
-
<div className={`flex flex-wrap gap-2 ${className}`}>
|
|
14
|
-
{tags.map((_, i) => renderTag(_, String(i)))}
|
|
15
|
-
</div>
|
|
13
|
+
<div className={`flex flex-wrap gap-2 ${className}`}>{tags.map(renderTag)}</div>
|
|
16
14
|
) : null;
|
|
17
15
|
});
|
|
18
16
|
|
|
19
|
-
const renderTag = (tag: string, key:
|
|
17
|
+
const renderTag = (tag: string, key: number) => (
|
|
20
18
|
<span
|
|
21
|
-
key={key}
|
|
19
|
+
key={String(key)}
|
|
22
20
|
className="text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke"
|
|
23
21
|
>
|
|
24
22
|
{tag}
|
|
@@ -10,9 +10,9 @@ export interface TopItemProps extends TopItemContent {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
flat?: boolean;
|
|
12
12
|
ariaLabel?: string;
|
|
13
|
-
onClick?: () => void;
|
|
14
13
|
bgColor?: BgColorVersion;
|
|
15
14
|
dataItemName?: string;
|
|
15
|
+
onClick?: () => void;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const TEXT_CLASSES = 'font-sans text-s-light';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Picture } from '../model/Picture';
|
|
2
|
+
import type { BlockVersion } from '../model/BlockVersion';
|
|
3
|
+
|
|
4
|
+
export const getIconWithVersion = (icon: Picture, version: BlockVersion = 'primary'): Picture => ({
|
|
5
|
+
...icon,
|
|
6
|
+
iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
|
|
7
|
+
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { VNode } from '../model/VNode';
|
|
2
|
-
interface IntersectionObserverTagProps {
|
|
3
|
-
tag: keyof HTMLElementTagNameMap;
|
|
4
|
-
className?: string;
|
|
5
|
-
anchor?: string;
|
|
6
|
-
children?: VNode;
|
|
7
|
-
observerCallback: IntersectionObserverCallback;
|
|
8
|
-
observerOptions?: IntersectionObserverInit;
|
|
9
|
-
role?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const IntersectionObserverTag: import("@redneckz/uni-jsx").UNIComponent<IntersectionObserverTagProps, any, any>;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adjustValue .js","sourceRoot":"","sources":["../../../src/ui-kit/CurrencyInput/adjustValue .ts"],"names":[],"mappings":";;AAAA,qEAAkE;AAE3D,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE,CACzC,IAAA,kBAAU,EAAC,YAAY,CAAC,iBAAiB,CAAC,IAAA,qCAAiB,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AADzD,QAAA,WAAW,eAC8C;AAE/D,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAU,EAAE,CACvD,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;IAC7B,qBAAqB,EAAE,CAAC;IACxB,qBAAqB,EAAE,CAAC;CACzB,CAAC;KACC,MAAM,CAAC,MAAM,CAAC,IAAA,qCAAiB,EAAC,GAAG,CAAC,CAAC,CAAC;KACtC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AANV,QAAA,iBAAiB,qBAMP;AAEhB,MAAM,UAAU,GAAG,CAAC,GAAW,EAAU,EAAE;IAChD,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEvC,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AACvE,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEF,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE;IAC3C,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IAE1D,OAAO,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACrE,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAU,EAAE,CAChD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { VNode } from '../model/VNode';
|
|
2
|
-
interface IntersectionObserverTagProps {
|
|
3
|
-
tag: keyof HTMLElementTagNameMap;
|
|
4
|
-
className?: string;
|
|
5
|
-
anchor?: string;
|
|
6
|
-
children?: VNode;
|
|
7
|
-
observerCallback: IntersectionObserverCallback;
|
|
8
|
-
observerOptions?: IntersectionObserverInit;
|
|
9
|
-
role?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const IntersectionObserverTag: import("@redneckz/uni-jsx").UNIComponent<IntersectionObserverTagProps, any, any>;
|
|
12
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.IntersectionObserverTag = 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
|
-
exports.IntersectionObserverTag = (0, uni_jsx_1.JSX)((props) => {
|
|
7
|
-
const { tag = 'section', observerCallback, observerOptions, className = '', anchor = null, children, role, } = props;
|
|
8
|
-
const tagRef = (0, hooks_1.useRef)(null);
|
|
9
|
-
(0, hooks_1.useEffect)(() => {
|
|
10
|
-
if (!tagRef.current) {
|
|
11
|
-
return undefined;
|
|
12
|
-
}
|
|
13
|
-
const intersectionObserver = new IntersectionObserver(observerCallback, observerOptions);
|
|
14
|
-
intersectionObserver.observe(tagRef.current);
|
|
15
|
-
return () => {
|
|
16
|
-
intersectionObserver.disconnect();
|
|
17
|
-
};
|
|
18
|
-
}, [observerCallback, observerOptions]);
|
|
19
|
-
const Tag = tag;
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(Tag, { ref: tagRef, className: className, id: anchor, role: role, children: children }));
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=IntersectionObserverTag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntersectionObserverTag.js","sourceRoot":"","sources":["../../src/ui-kit/IntersectionObserverTag.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAgE;AAanD,QAAA,uBAAuB,GAAG,IAAA,aAAG,EAA+B,CAAC,KAAK,EAAE,EAAE;IACjF,MAAM,EACJ,GAAG,GAAG,SAAS,EACf,gBAAgB,EAChB,eAAe,EACf,SAAS,GAAG,EAAE,EACd,MAAM,GAAG,IAAI,EACb,QAAQ,EACR,IAAI,GACL,GAAG,KAAK,CAAC;IACV,MAAM,MAAM,GAAG,IAAA,cAAM,EAAqB,IAAI,CAAC,CAAC;IAEhD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACnB,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;QACzF,oBAAoB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE7C,OAAO,GAAG,EAAE;YACV,oBAAoB,CAAC,UAAU,EAAE,CAAC;QACpC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC,CAAC;IAExC,MAAM,GAAG,GAAG,GAAU,CAAC;IAEvB,OAAO,CACL,uBAAC,GAAG,IAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,YAC3D,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adjustValue .js","sourceRoot":"","sources":["../../../src/ui-kit/CurrencyInput/adjustValue .ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE,CACzC,UAAU,CAAC,YAAY,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAU,EAAE,CACvD,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;IAC7B,qBAAqB,EAAE,CAAC;IACxB,qBAAqB,EAAE,CAAC;CACzB,CAAC;KACC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC;KACtC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAEvB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAW,EAAU,EAAE;IAChD,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEvC,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AACvE,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE;IAC3C,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IAE1D,OAAO,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACrE,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAU,EAAE,CAChD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { VNode } from '../model/VNode';
|
|
2
|
-
interface IntersectionObserverTagProps {
|
|
3
|
-
tag: keyof HTMLElementTagNameMap;
|
|
4
|
-
className?: string;
|
|
5
|
-
anchor?: string;
|
|
6
|
-
children?: VNode;
|
|
7
|
-
observerCallback: IntersectionObserverCallback;
|
|
8
|
-
observerOptions?: IntersectionObserverInit;
|
|
9
|
-
role?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const IntersectionObserverTag: import("@redneckz/uni-jsx").UNIComponent<IntersectionObserverTagProps, any, any>;
|
|
12
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
-
export const IntersectionObserverTag = JSX((props) => {
|
|
5
|
-
const { tag = 'section', observerCallback, observerOptions, className = '', anchor = null, children, role, } = props;
|
|
6
|
-
const tagRef = useRef(null);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
if (!tagRef.current) {
|
|
9
|
-
return undefined;
|
|
10
|
-
}
|
|
11
|
-
const intersectionObserver = new IntersectionObserver(observerCallback, observerOptions);
|
|
12
|
-
intersectionObserver.observe(tagRef.current);
|
|
13
|
-
return () => {
|
|
14
|
-
intersectionObserver.disconnect();
|
|
15
|
-
};
|
|
16
|
-
}, [observerCallback, observerOptions]);
|
|
17
|
-
const Tag = tag;
|
|
18
|
-
return (_jsx(Tag, { ref: tagRef, className: className, id: anchor, role: role, children: children }));
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=IntersectionObserverTag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntersectionObserverTag.js","sourceRoot":"","sources":["../../src/ui-kit/IntersectionObserverTag.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAahE,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAA+B,CAAC,KAAK,EAAE,EAAE;IACjF,MAAM,EACJ,GAAG,GAAG,SAAS,EACf,gBAAgB,EAChB,eAAe,EACf,SAAS,GAAG,EAAE,EACd,MAAM,GAAG,IAAI,EACb,QAAQ,EACR,IAAI,GACL,GAAG,KAAK,CAAC;IACV,MAAM,MAAM,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;IAEhD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACnB,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;QACzF,oBAAoB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE7C,OAAO,GAAG,EAAE;YACV,oBAAoB,CAAC,UAAU,EAAE,CAAC;QACpC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC,CAAC;IAExC,MAAM,GAAG,GAAG,GAAU,CAAC;IAEvB,OAAO,CACL,KAAC,GAAG,IAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,YAC3D,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { VNode } from '../model/VNode';
|
|
2
|
-
interface IntersectionObserverTagProps {
|
|
3
|
-
tag: keyof HTMLElementTagNameMap;
|
|
4
|
-
className?: string;
|
|
5
|
-
anchor?: string;
|
|
6
|
-
children?: VNode;
|
|
7
|
-
observerCallback: IntersectionObserverCallback;
|
|
8
|
-
observerOptions?: IntersectionObserverInit;
|
|
9
|
-
role?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const IntersectionObserverTag: import("@redneckz/uni-jsx").UNIComponent<IntersectionObserverTagProps, any, any>;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adjustValue .js","sourceRoot":"","sources":["../../../src/ui-kit/CurrencyInput/adjustValue .ts"],"names":[],"mappings":";;AAAA,qEAAkE;AAE3D,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE,CACzC,IAAA,kBAAU,EAAC,YAAY,CAAC,iBAAiB,CAAC,IAAA,qCAAiB,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AADzD,QAAA,WAAW,eAC8C;AAE/D,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAU,EAAE,CACvD,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;IAC7B,qBAAqB,EAAE,CAAC;IACxB,qBAAqB,EAAE,CAAC;CACzB,CAAC;KACC,MAAM,CAAC,MAAM,CAAC,IAAA,qCAAiB,EAAC,GAAG,CAAC,CAAC,CAAC;KACtC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AANV,QAAA,iBAAiB,qBAMP;AAEhB,MAAM,UAAU,GAAG,CAAC,GAAW,EAAU,EAAE;IAChD,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEvC,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AACvE,CAAC,CAAC;AAJW,QAAA,UAAU,cAIrB;AAEF,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE;IAC3C,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IAE1D,OAAO,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACrE,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAU,EAAE,CAChD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { VNode } from '../model/VNode';
|
|
2
|
-
interface IntersectionObserverTagProps {
|
|
3
|
-
tag: keyof HTMLElementTagNameMap;
|
|
4
|
-
className?: string;
|
|
5
|
-
anchor?: string;
|
|
6
|
-
children?: VNode;
|
|
7
|
-
observerCallback: IntersectionObserverCallback;
|
|
8
|
-
observerOptions?: IntersectionObserverInit;
|
|
9
|
-
role?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const IntersectionObserverTag: import("@redneckz/uni-jsx").UNIComponent<IntersectionObserverTagProps, any, any>;
|
|
12
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.IntersectionObserverTag = 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
|
-
exports.IntersectionObserverTag = (0, uni_jsx_1.JSX)((props) => {
|
|
7
|
-
const { tag = 'section', observerCallback, observerOptions, className = '', anchor = null, children, role, } = props;
|
|
8
|
-
const tagRef = (0, hooks_1.useRef)(null);
|
|
9
|
-
(0, hooks_1.useEffect)(() => {
|
|
10
|
-
if (!tagRef.current) {
|
|
11
|
-
return undefined;
|
|
12
|
-
}
|
|
13
|
-
const intersectionObserver = new IntersectionObserver(observerCallback, observerOptions);
|
|
14
|
-
intersectionObserver.observe(tagRef.current);
|
|
15
|
-
return () => {
|
|
16
|
-
intersectionObserver.disconnect();
|
|
17
|
-
};
|
|
18
|
-
}, [observerCallback, observerOptions]);
|
|
19
|
-
const Tag = tag;
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(Tag, { ref: tagRef, className: className, id: anchor, role: role, children: children }));
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=IntersectionObserverTag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntersectionObserverTag.js","sourceRoot":"","sources":["../../src/ui-kit/IntersectionObserverTag.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAgE;AAanD,QAAA,uBAAuB,GAAG,IAAA,aAAG,EAA+B,CAAC,KAAK,EAAE,EAAE;IACjF,MAAM,EACJ,GAAG,GAAG,SAAS,EACf,gBAAgB,EAChB,eAAe,EACf,SAAS,GAAG,EAAE,EACd,MAAM,GAAG,IAAI,EACb,QAAQ,EACR,IAAI,GACL,GAAG,KAAK,CAAC;IACV,MAAM,MAAM,GAAG,IAAA,cAAM,EAAqB,IAAI,CAAC,CAAC;IAEhD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACnB,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;QACzF,oBAAoB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE7C,OAAO,GAAG,EAAE;YACV,oBAAoB,CAAC,UAAU,EAAE,CAAC;QACpC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC,CAAC;IAExC,MAAM,GAAG,GAAG,GAAU,CAAC;IAEvB,OAAO,CACL,uBAAC,GAAG,IAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,YAC3D,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adjustValue .js","sourceRoot":"","sources":["../../../src/ui-kit/CurrencyInput/adjustValue .ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE,CACzC,UAAU,CAAC,YAAY,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAU,EAAE,CACvD,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;IAC7B,qBAAqB,EAAE,CAAC;IACxB,qBAAqB,EAAE,CAAC;CACzB,CAAC;KACC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC;KACtC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAEvB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAW,EAAU,EAAE;IAChD,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IAEvC,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AACvE,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE;IAC3C,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC;IAC/D,MAAM,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IAE1D,OAAO,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACrE,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAU,EAAE,CAChD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { VNode } from '../model/VNode';
|
|
2
|
-
interface IntersectionObserverTagProps {
|
|
3
|
-
tag: keyof HTMLElementTagNameMap;
|
|
4
|
-
className?: string;
|
|
5
|
-
anchor?: string;
|
|
6
|
-
children?: VNode;
|
|
7
|
-
observerCallback: IntersectionObserverCallback;
|
|
8
|
-
observerOptions?: IntersectionObserverInit;
|
|
9
|
-
role?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const IntersectionObserverTag: import("@redneckz/uni-jsx").UNIComponent<IntersectionObserverTagProps, any, any>;
|
|
12
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
-
export const IntersectionObserverTag = JSX((props) => {
|
|
5
|
-
const { tag = 'section', observerCallback, observerOptions, className = '', anchor = null, children, role, } = props;
|
|
6
|
-
const tagRef = useRef(null);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
if (!tagRef.current) {
|
|
9
|
-
return undefined;
|
|
10
|
-
}
|
|
11
|
-
const intersectionObserver = new IntersectionObserver(observerCallback, observerOptions);
|
|
12
|
-
intersectionObserver.observe(tagRef.current);
|
|
13
|
-
return () => {
|
|
14
|
-
intersectionObserver.disconnect();
|
|
15
|
-
};
|
|
16
|
-
}, [observerCallback, observerOptions]);
|
|
17
|
-
const Tag = tag;
|
|
18
|
-
return (_jsx(Tag, { ref: tagRef, className: className, id: anchor, role: role, children: children }));
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=IntersectionObserverTag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntersectionObserverTag.js","sourceRoot":"","sources":["../../src/ui-kit/IntersectionObserverTag.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAahE,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAA+B,CAAC,KAAK,EAAE,EAAE;IACjF,MAAM,EACJ,GAAG,GAAG,SAAS,EACf,gBAAgB,EAChB,eAAe,EACf,SAAS,GAAG,EAAE,EACd,MAAM,GAAG,IAAI,EACb,QAAQ,EACR,IAAI,GACL,GAAG,KAAK,CAAC;IACV,MAAM,MAAM,GAAG,MAAM,CAAqB,IAAI,CAAC,CAAC;IAEhD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YACnB,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;QACzF,oBAAoB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAE7C,OAAO,GAAG,EAAE;YACV,oBAAoB,CAAC,UAAU,EAAE,CAAC;QACpC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC,CAAC;IAExC,MAAM,GAAG,GAAG,GAAU,CAAC;IAEvB,OAAO,CACL,KAAC,GAAG,IAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,YAC3D,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import type { VNode } from '../model/VNode';
|
|
4
|
-
|
|
5
|
-
interface IntersectionObserverTagProps {
|
|
6
|
-
tag: keyof HTMLElementTagNameMap;
|
|
7
|
-
className?: string;
|
|
8
|
-
anchor?: string;
|
|
9
|
-
children?: VNode;
|
|
10
|
-
observerCallback: IntersectionObserverCallback;
|
|
11
|
-
observerOptions?: IntersectionObserverInit;
|
|
12
|
-
role?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const IntersectionObserverTag = JSX<IntersectionObserverTagProps>((props) => {
|
|
16
|
-
const {
|
|
17
|
-
tag = 'section',
|
|
18
|
-
observerCallback,
|
|
19
|
-
observerOptions,
|
|
20
|
-
className = '',
|
|
21
|
-
anchor = null,
|
|
22
|
-
children,
|
|
23
|
-
role,
|
|
24
|
-
} = props;
|
|
25
|
-
const tagRef = useRef<HTMLElement | null>(null);
|
|
26
|
-
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
if (!tagRef.current) {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const intersectionObserver = new IntersectionObserver(observerCallback, observerOptions);
|
|
33
|
-
intersectionObserver.observe(tagRef.current);
|
|
34
|
-
|
|
35
|
-
return () => {
|
|
36
|
-
intersectionObserver.disconnect();
|
|
37
|
-
};
|
|
38
|
-
}, [observerCallback, observerOptions]);
|
|
39
|
-
|
|
40
|
-
const Tag = tag as any;
|
|
41
|
-
|
|
42
|
-
return (
|
|
43
|
-
<Tag ref={tagRef} className={className} id={anchor} role={role}>
|
|
44
|
-
{children}
|
|
45
|
-
</Tag>
|
|
46
|
-
);
|
|
47
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import type { VNode } from '../model/VNode';
|
|
4
|
-
|
|
5
|
-
interface IntersectionObserverTagProps {
|
|
6
|
-
tag: keyof HTMLElementTagNameMap;
|
|
7
|
-
className?: string;
|
|
8
|
-
anchor?: string;
|
|
9
|
-
children?: VNode;
|
|
10
|
-
observerCallback: IntersectionObserverCallback;
|
|
11
|
-
observerOptions?: IntersectionObserverInit;
|
|
12
|
-
role?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const IntersectionObserverTag = JSX<IntersectionObserverTagProps>((props) => {
|
|
16
|
-
const {
|
|
17
|
-
tag = 'section',
|
|
18
|
-
observerCallback,
|
|
19
|
-
observerOptions,
|
|
20
|
-
className = '',
|
|
21
|
-
anchor = null,
|
|
22
|
-
children,
|
|
23
|
-
role,
|
|
24
|
-
} = props;
|
|
25
|
-
const tagRef = useRef<HTMLElement | null>(null);
|
|
26
|
-
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
if (!tagRef.current) {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const intersectionObserver = new IntersectionObserver(observerCallback, observerOptions);
|
|
33
|
-
intersectionObserver.observe(tagRef.current);
|
|
34
|
-
|
|
35
|
-
return () => {
|
|
36
|
-
intersectionObserver.disconnect();
|
|
37
|
-
};
|
|
38
|
-
}, [observerCallback, observerOptions]);
|
|
39
|
-
|
|
40
|
-
const Tag = tag as any;
|
|
41
|
-
|
|
42
|
-
return (
|
|
43
|
-
<Tag ref={tagRef} className={className} id={anchor} role={role}>
|
|
44
|
-
{children}
|
|
45
|
-
</Tag>
|
|
46
|
-
);
|
|
47
|
-
});
|