@redneckz/wildless-cms-uni-blocks 0.8.28 → 0.8.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.8.29.js +41 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +127 -97
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/bundle/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/bundle/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/bundle/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
- package/bundle/hooks/useLink.d.ts +1 -1
- package/bundle/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/bundle/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/bundle/services/{sitemap/search → search}/search.d.ts +0 -0
- package/bundle/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/bundle/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/{dist/services/sitemap → bundle/services/search}/useSearch.d.ts +1 -1
- package/bundle/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/bundle/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/bundle/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/bundle/ui-kit/Location/LocationProps.d.ts +2 -2
- package/bundle/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/bundle/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/bundle/{components/Footer → ui-kit/Sitemap}/Sitemap.d.ts +2 -2
- package/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/Blocks.js +0 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Footer/Footer.fallback.js +1 -1
- package/dist/components/Footer/Footer.fallback.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -21
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Header/Header.fallback.js +1 -1
- package/dist/components/Header/Header.fallback.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/dist/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/dist/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
- package/dist/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
- package/dist/hooks/fallbackWCMSResource.js.map +1 -0
- package/dist/hooks/useLink.d.ts +1 -1
- package/dist/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/dist/services/{sitemap/search → search}/jaroWinklerDistance.js +0 -0
- package/dist/services/search/jaroWinklerDistance.js.map +1 -0
- package/dist/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/dist/services/{sitemap/search → search}/joinMaps.js +0 -0
- package/dist/services/search/joinMaps.js.map +1 -0
- package/dist/services/{sitemap/search → search}/search.d.ts +0 -0
- package/{mobile/dist/services/sitemap → dist/services}/search/search.js +2 -2
- package/dist/services/search/search.js.map +1 -0
- package/dist/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/{mobile/dist/services/sitemap → dist/services}/search/textRank.js +2 -2
- package/dist/services/search/textRank.js.map +1 -0
- package/dist/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/dist/services/{sitemap/search → search}/tokenize.js +0 -0
- package/dist/services/search/tokenize.js.map +1 -0
- package/{lib/services/sitemap → dist/services/search}/useSearch.d.ts +1 -1
- package/{mobile/dist/services/sitemap → dist/services/search}/useSearch.js +1 -1
- package/dist/services/search/useSearch.js.map +1 -0
- package/dist/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/dist/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/dist/ui-kit/Dialog/CloseButton.js +8 -0
- package/dist/ui-kit/Dialog/CloseButton.js.map +1 -0
- package/dist/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/dist/ui-kit/Dialog/Dialog.js +26 -0
- package/dist/ui-kit/Dialog/Dialog.js.map +1 -0
- package/dist/ui-kit/Location/Location.js +9 -11
- package/dist/ui-kit/Location/Location.js.map +1 -1
- package/dist/ui-kit/Location/LocationProps.d.ts +2 -2
- package/dist/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/dist/{model → ui-kit}/PreventableEvent.js +0 -0
- package/dist/ui-kit/PreventableEvent.js.map +1 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/dist/ui-kit/SearchBar/SearchBarInner.js +46 -14
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/dist/ui-kit/SearchBar/SearchBarInput.js +14 -0
- package/dist/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
- package/{lib/components/Footer → dist/ui-kit/Sitemap}/Sitemap.d.ts +2 -2
- package/dist/ui-kit/Sitemap/Sitemap.js +23 -0
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -0
- package/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/groupBy.js +6 -6
- package/dist/utils/groupBy.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/Blocks.js +0 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Footer/Footer.fallback.js +1 -1
- package/lib/components/Footer/Footer.fallback.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -21
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Header/Header.fallback.js +1 -1
- package/lib/components/Header/Header.fallback.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/lib/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/lib/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
- package/lib/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
- package/lib/hooks/fallbackWCMSResource.js.map +1 -0
- package/lib/hooks/useLink.d.ts +1 -1
- package/lib/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/lib/services/{sitemap/search → search}/jaroWinklerDistance.js +0 -0
- package/lib/services/search/jaroWinklerDistance.js.map +1 -0
- package/lib/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/lib/services/{sitemap/search → search}/joinMaps.js +0 -0
- package/lib/services/search/joinMaps.js.map +1 -0
- package/lib/services/{sitemap/search → search}/search.d.ts +0 -0
- package/lib/services/{sitemap/search → search}/search.js +2 -2
- package/lib/services/search/search.js.map +1 -0
- package/lib/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/{mobile/lib/services/sitemap → lib/services}/search/textRank.js +2 -2
- package/lib/services/search/textRank.js.map +1 -0
- package/lib/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/lib/services/{sitemap/search → search}/tokenize.js +0 -0
- package/lib/services/search/tokenize.js.map +1 -0
- package/{mobile/bundle/services/sitemap → lib/services/search}/useSearch.d.ts +1 -1
- package/lib/services/{sitemap → search}/useSearch.js +1 -1
- package/lib/services/search/useSearch.js.map +1 -0
- package/lib/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/lib/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/lib/ui-kit/Dialog/CloseButton.js +6 -0
- package/lib/ui-kit/Dialog/CloseButton.js.map +1 -0
- package/lib/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/lib/ui-kit/Dialog/Dialog.js +24 -0
- package/lib/ui-kit/Dialog/Dialog.js.map +1 -0
- package/lib/ui-kit/Location/Location.js +9 -11
- package/lib/ui-kit/Location/Location.js.map +1 -1
- package/lib/ui-kit/Location/LocationProps.d.ts +2 -2
- package/lib/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/lib/{model → ui-kit}/PreventableEvent.js +0 -0
- package/lib/ui-kit/PreventableEvent.js.map +1 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/lib/ui-kit/SearchBar/SearchBarInner.js +46 -14
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/lib/ui-kit/SearchBar/SearchBarInput.js +12 -0
- package/lib/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
- package/{mobile/bundle/components/Footer → lib/ui-kit/Sitemap}/Sitemap.d.ts +2 -2
- package/lib/ui-kit/Sitemap/Sitemap.js +21 -0
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -0
- package/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/groupBy.js +6 -6
- package/lib/utils/groupBy.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +248 -13
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/mobile/bundle/{services/sitemap → hooks}/fallbackWCMSResource.d.ts +1 -1
- package/mobile/bundle/hooks/useLink.d.ts +1 -1
- package/mobile/bundle/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/mobile/bundle/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/mobile/bundle/services/{sitemap/search → search}/search.d.ts +0 -0
- package/mobile/bundle/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/mobile/bundle/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/{bundle/services/sitemap → mobile/bundle/services/search}/useSearch.d.ts +1 -1
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/mobile/bundle/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/mobile/bundle/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/mobile/bundle/ui-kit/Location/LocationProps.d.ts +2 -2
- package/mobile/bundle/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/mobile/bundle/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/{dist/components/Footer → mobile/bundle/ui-kit/Sitemap}/Sitemap.d.ts +2 -2
- package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.fallback.js +1 -1
- package/mobile/dist/components/Footer/Footer.fallback.js.map +1 -1
- package/mobile/dist/components/Header/Header.fallback.js +1 -1
- package/mobile/dist/components/Header/Header.fallback.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/mobile/dist/hooks/fallbackWCMSResource.d.ts +2 -0
- package/mobile/dist/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
- package/mobile/dist/hooks/fallbackWCMSResource.js.map +1 -0
- package/mobile/dist/hooks/useLink.d.ts +1 -1
- package/mobile/dist/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/mobile/dist/services/{sitemap/search → search}/jaroWinklerDistance.js +0 -0
- package/mobile/dist/services/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/dist/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/mobile/dist/services/{sitemap/search → search}/joinMaps.js +0 -0
- package/mobile/dist/services/search/joinMaps.js.map +1 -0
- package/mobile/dist/services/{sitemap/search → search}/search.d.ts +0 -0
- package/{dist/services/sitemap → mobile/dist/services}/search/search.js +2 -2
- package/mobile/dist/services/search/search.js.map +1 -0
- package/mobile/dist/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/{dist/services/sitemap → mobile/dist/services}/search/textRank.js +2 -2
- package/mobile/dist/services/search/textRank.js.map +1 -0
- package/mobile/dist/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/mobile/dist/services/{sitemap/search → search}/tokenize.js +0 -0
- package/mobile/dist/services/search/tokenize.js.map +1 -0
- package/mobile/dist/services/search/useSearch.d.ts +8 -0
- package/{dist/services/sitemap → mobile/dist/services/search}/useSearch.js +1 -1
- package/mobile/dist/services/search/useSearch.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/mobile/dist/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/mobile/dist/ui-kit/Dialog/CloseButton.js +8 -0
- package/mobile/dist/ui-kit/Dialog/CloseButton.js.map +1 -0
- package/mobile/dist/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/mobile/dist/ui-kit/Dialog/Dialog.js +26 -0
- package/mobile/dist/ui-kit/Dialog/Dialog.js.map +1 -0
- package/mobile/dist/ui-kit/Location/Location.js +9 -11
- package/mobile/dist/ui-kit/Location/Location.js.map +1 -1
- package/mobile/dist/ui-kit/Location/LocationProps.d.ts +2 -2
- package/mobile/dist/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/mobile/dist/{model → ui-kit}/PreventableEvent.js +0 -0
- package/mobile/dist/ui-kit/PreventableEvent.js.map +1 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +46 -14
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInput.js +14 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
- package/mobile/dist/ui-kit/Sitemap/Sitemap.d.ts +6 -0
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +23 -0
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -0
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/groupBy.js +6 -6
- package/mobile/dist/utils/groupBy.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.fallback.js +1 -1
- package/mobile/lib/components/Footer/Footer.fallback.js.map +1 -1
- package/mobile/lib/components/Header/Header.fallback.js +1 -1
- package/mobile/lib/components/Header/Header.fallback.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -3
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +4 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -3
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +2 -7
- package/mobile/lib/hooks/fallbackWCMSResource.d.ts +2 -0
- package/mobile/lib/{services/sitemap → hooks}/fallbackWCMSResource.js +0 -0
- package/mobile/lib/hooks/fallbackWCMSResource.js.map +1 -0
- package/mobile/lib/hooks/useLink.d.ts +1 -1
- package/mobile/lib/services/{sitemap/search → search}/jaroWinklerDistance.d.ts +0 -0
- package/mobile/lib/services/{sitemap/search → search}/jaroWinklerDistance.js +0 -0
- package/mobile/lib/services/search/jaroWinklerDistance.js.map +1 -0
- package/mobile/lib/services/{sitemap/search → search}/joinMaps.d.ts +0 -0
- package/mobile/lib/services/{sitemap/search → search}/joinMaps.js +0 -0
- package/mobile/lib/services/search/joinMaps.js.map +1 -0
- package/mobile/lib/services/{sitemap/search → search}/search.d.ts +0 -0
- package/mobile/lib/services/{sitemap/search → search}/search.js +2 -2
- package/mobile/lib/services/search/search.js.map +1 -0
- package/mobile/lib/services/{sitemap/search → search}/textRank.d.ts +0 -0
- package/{lib/services/sitemap → mobile/lib/services}/search/textRank.js +2 -2
- package/mobile/lib/services/search/textRank.js.map +1 -0
- package/mobile/lib/services/{sitemap/search → search}/tokenize.d.ts +0 -0
- package/mobile/lib/services/{sitemap/search → search}/tokenize.js +0 -0
- package/mobile/lib/services/search/tokenize.js.map +1 -0
- package/mobile/lib/services/search/useSearch.d.ts +8 -0
- package/mobile/lib/services/{sitemap → search}/useSearch.js +1 -1
- package/mobile/lib/services/search/useSearch.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +2 -3
- package/mobile/lib/ui-kit/Dialog/CloseButton.d.ts +7 -0
- package/mobile/lib/ui-kit/Dialog/CloseButton.js +6 -0
- package/mobile/lib/ui-kit/Dialog/CloseButton.js.map +1 -0
- package/mobile/lib/ui-kit/Dialog/Dialog.d.ts +7 -0
- package/mobile/lib/ui-kit/Dialog/Dialog.js +24 -0
- package/mobile/lib/ui-kit/Dialog/Dialog.js.map +1 -0
- package/mobile/lib/ui-kit/Location/Location.js +9 -11
- package/mobile/lib/ui-kit/Location/Location.js.map +1 -1
- package/mobile/lib/ui-kit/Location/LocationProps.d.ts +2 -2
- package/mobile/lib/{model → ui-kit}/PreventableEvent.d.ts +0 -0
- package/mobile/lib/{model → ui-kit}/PreventableEvent.js +0 -0
- package/mobile/lib/ui-kit/PreventableEvent.js.map +1 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +2 -3
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +46 -14
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInput.d.ts +9 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInput.js +12 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInput.js.map +1 -0
- package/mobile/lib/ui-kit/Sitemap/Sitemap.d.ts +6 -0
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +21 -0
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -0
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/groupBy.js +6 -6
- package/mobile/lib/utils/groupBy.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +1 -1
- package/mobile/src/components/Footer/Footer.fallback.ts +1 -1
- package/mobile/src/components/Header/Header.fallback.ts +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +2 -2
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +2 -1
- package/mobile/src/components/ImgBlock/ImgBlockContent.ts +1 -1
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +4 -1
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +4 -3
- package/mobile/src/components/TextBlock/TextBlockContent.ts +3 -8
- package/mobile/src/{services/sitemap → hooks}/fallbackWCMSResource.ts +1 -1
- package/mobile/src/hooks/useLink.ts +1 -1
- package/mobile/src/services/{sitemap/search → search}/jaroWinklerDistance.ts +0 -0
- package/mobile/src/services/{sitemap/search → search}/joinMaps.ts +0 -0
- package/mobile/src/services/{sitemap/search → search}/search.ts +2 -2
- package/mobile/src/services/{sitemap/search → search}/textRank.ts +2 -2
- package/mobile/src/services/{sitemap/search → search}/tokenize.ts +0 -0
- package/{src/services/sitemap → mobile/src/services/search}/useSearch.ts +1 -1
- package/mobile/src/ui-kit/Button/ButtonProps.ts +2 -1
- package/mobile/src/ui-kit/Dialog/CloseButton.tsx +22 -0
- package/mobile/src/ui-kit/Dialog/Dialog.tsx +54 -0
- package/mobile/src/ui-kit/Location/Location.tsx +36 -44
- package/mobile/src/ui-kit/Location/LocationProps.ts +2 -2
- package/mobile/src/{model → ui-kit}/PreventableEvent.ts +0 -0
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +100 -63
- package/mobile/src/ui-kit/SearchBar/SearchBarInput.tsx +46 -0
- package/mobile/src/{components/Footer → ui-kit/Sitemap}/Sitemap.tsx +12 -8
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/mobile/src/utils/groupBy.ts +8 -7
- package/package.json +2 -2
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +1 -1
- package/src/components/Blocks.ts +0 -2
- package/src/components/Footer/Footer.fallback.ts +1 -1
- package/src/components/Footer/Footer.tsx +3 -31
- package/src/components/Header/Header.fallback.ts +1 -1
- package/src/components/Header/HeaderSecondaryMenu.tsx +2 -2
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +2 -1
- package/src/components/ImgBlock/ImgBlockContent.ts +1 -1
- package/src/components/StepsBlock/StepsBlockContent.ts +4 -1
- package/src/components/TariffsTable/TariffsTableContent.ts +4 -3
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +11 -20
- package/src/components/TextBlock/TextBlockContent.ts +3 -8
- package/src/{services/sitemap → hooks}/fallbackWCMSResource.ts +1 -1
- package/src/hooks/useLink.ts +1 -1
- package/src/services/{sitemap/search → search}/jaroWinklerDistance.ts +0 -0
- package/src/services/{sitemap/search → search}/joinMaps.ts +0 -0
- package/src/services/{sitemap/search → search}/search.ts +2 -2
- package/src/services/{sitemap/search → search}/textRank.ts +2 -2
- package/src/services/{sitemap/search → search}/tokenize.ts +0 -0
- package/{mobile/src/services/sitemap → src/services/search}/useSearch.ts +1 -1
- package/src/ui-kit/Button/ButtonProps.ts +2 -1
- package/src/ui-kit/Dialog/CloseButton.tsx +22 -0
- package/src/ui-kit/Dialog/Dialog.tsx +54 -0
- package/src/ui-kit/Location/Location.fixture.tsx +1 -1
- package/src/ui-kit/Location/Location.tsx +36 -44
- package/src/ui-kit/Location/LocationProps.ts +2 -2
- package/src/{model → ui-kit}/PreventableEvent.ts +0 -0
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +100 -63
- package/src/ui-kit/SearchBar/SearchBarInput.tsx +46 -0
- package/src/{components/Footer → ui-kit/Sitemap}/Sitemap.tsx +12 -8
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/src/utils/groupBy.ts +8 -7
- package/bundle/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/bundle/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/bundle/model/SitemapProps.d.ts +0 -24
- package/dist/components/Footer/Sitemap.js +0 -22
- package/dist/components/Footer/Sitemap.js.map +0 -1
- package/dist/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/dist/components/OtherProducts/OtherProducts.js +0 -9
- package/dist/components/OtherProducts/OtherProducts.js.map +0 -1
- package/dist/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/dist/components/OtherProducts/OtherProductsContent.js +0 -2
- package/dist/components/OtherProducts/OtherProductsContent.js.map +0 -1
- package/dist/model/PreventableEvent.js.map +0 -1
- package/dist/model/SitemapProps.d.ts +0 -24
- package/dist/model/SitemapProps.js +0 -2
- package/dist/model/SitemapProps.js.map +0 -1
- package/dist/services/sitemap/fallbackWCMSResource.js.map +0 -1
- package/dist/services/sitemap/search/jaroWinklerDistance.js.map +0 -1
- package/dist/services/sitemap/search/joinMaps.js.map +0 -1
- package/dist/services/sitemap/search/search.js.map +0 -1
- package/dist/services/sitemap/search/textRank.js.map +0 -1
- package/dist/services/sitemap/search/tokenize.js.map +0 -1
- package/dist/services/sitemap/useSearch.js.map +0 -1
- package/lib/components/Footer/Sitemap.js +0 -20
- package/lib/components/Footer/Sitemap.js.map +0 -1
- package/lib/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +0 -8
- package/lib/components/OtherProducts/OtherProducts.js +0 -7
- package/lib/components/OtherProducts/OtherProducts.js.map +0 -1
- package/lib/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/lib/components/OtherProducts/OtherProductsContent.js +0 -2
- package/lib/components/OtherProducts/OtherProductsContent.js.map +0 -1
- package/lib/model/PreventableEvent.js.map +0 -1
- package/lib/model/SitemapProps.d.ts +0 -24
- package/lib/model/SitemapProps.js +0 -2
- package/lib/model/SitemapProps.js.map +0 -1
- package/lib/services/sitemap/fallbackWCMSResource.js.map +0 -1
- package/lib/services/sitemap/search/jaroWinklerDistance.js.map +0 -1
- package/lib/services/sitemap/search/joinMaps.js.map +0 -1
- package/lib/services/sitemap/search/search.js.map +0 -1
- package/lib/services/sitemap/search/textRank.js.map +0 -1
- package/lib/services/sitemap/search/tokenize.js.map +0 -1
- package/lib/services/sitemap/useSearch.js.map +0 -1
- package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/mobile/bundle/model/SitemapProps.d.ts +0 -24
- package/mobile/dist/components/Footer/Sitemap.d.ts +0 -6
- package/mobile/dist/components/Footer/Sitemap.js +0 -22
- package/mobile/dist/components/Footer/Sitemap.js.map +0 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/mobile/dist/components/OtherProducts/OtherProducts.js +0 -9
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +0 -1
- package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/mobile/dist/components/OtherProducts/OtherProductsContent.js +0 -2
- package/mobile/dist/components/OtherProducts/OtherProductsContent.js.map +0 -1
- package/mobile/dist/model/PreventableEvent.js.map +0 -1
- package/mobile/dist/model/SitemapProps.d.ts +0 -24
- package/mobile/dist/model/SitemapProps.js +0 -2
- package/mobile/dist/model/SitemapProps.js.map +0 -1
- package/mobile/dist/services/sitemap/fallbackWCMSResource.d.ts +0 -2
- package/mobile/dist/services/sitemap/fallbackWCMSResource.js.map +0 -1
- package/mobile/dist/services/sitemap/search/jaroWinklerDistance.js.map +0 -1
- package/mobile/dist/services/sitemap/search/joinMaps.js.map +0 -1
- package/mobile/dist/services/sitemap/search/search.js.map +0 -1
- package/mobile/dist/services/sitemap/search/textRank.js.map +0 -1
- package/mobile/dist/services/sitemap/search/tokenize.js.map +0 -1
- package/mobile/dist/services/sitemap/useSearch.d.ts +0 -8
- package/mobile/dist/services/sitemap/useSearch.js.map +0 -1
- package/mobile/lib/components/Footer/Sitemap.d.ts +0 -6
- package/mobile/lib/components/Footer/Sitemap.js +0 -20
- package/mobile/lib/components/Footer/Sitemap.js.map +0 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.d.ts +0 -5
- package/mobile/lib/components/OtherProducts/OtherProducts.js +0 -7
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +0 -1
- package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +0 -8
- package/mobile/lib/components/OtherProducts/OtherProductsContent.js +0 -2
- package/mobile/lib/components/OtherProducts/OtherProductsContent.js.map +0 -1
- package/mobile/lib/model/PreventableEvent.js.map +0 -1
- package/mobile/lib/model/SitemapProps.d.ts +0 -24
- package/mobile/lib/model/SitemapProps.js +0 -2
- package/mobile/lib/model/SitemapProps.js.map +0 -1
- package/mobile/lib/services/sitemap/fallbackWCMSResource.d.ts +0 -2
- package/mobile/lib/services/sitemap/fallbackWCMSResource.js.map +0 -1
- package/mobile/lib/services/sitemap/search/jaroWinklerDistance.js.map +0 -1
- package/mobile/lib/services/sitemap/search/joinMaps.js.map +0 -1
- package/mobile/lib/services/sitemap/search/search.js.map +0 -1
- package/mobile/lib/services/sitemap/search/textRank.js.map +0 -1
- package/mobile/lib/services/sitemap/search/tokenize.js.map +0 -1
- package/mobile/lib/services/sitemap/useSearch.d.ts +0 -8
- package/mobile/lib/services/sitemap/useSearch.js.map +0 -1
- package/mobile/src/components/OtherProducts/OtherProducts.example.json +0 -30
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +0 -17
- package/mobile/src/components/OtherProducts/OtherProducts.ui.json +0 -1
- package/mobile/src/components/OtherProducts/OtherProductsContent.ts +0 -9
- package/mobile/src/model/SitemapProps.ts +0 -27
- package/src/components/OtherProducts/OtherProducts.example.json +0 -30
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +0 -88
- package/src/components/OtherProducts/OtherProducts.tsx +0 -17
- package/src/components/OtherProducts/OtherProducts.ui.json +0 -1
- package/src/components/OtherProducts/OtherProductsContent.ts +0 -9
- package/src/model/SitemapProps.ts +0 -27
|
@@ -2,20 +2,21 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
4
|
import { projectSettings } from '../../ProjectSettings';
|
|
5
|
-
import type {
|
|
5
|
+
import type { TopMenuItem } from '../../services/sitemap/SitemapData';
|
|
6
|
+
import { style } from '../../utils/style';
|
|
6
7
|
import { joinPath } from '../../utils/url';
|
|
7
8
|
|
|
8
9
|
export interface SitemapProps {
|
|
9
10
|
className?: string;
|
|
10
|
-
|
|
11
|
+
topItems?: TopMenuItem[];
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
export const Sitemap = JSX<SitemapProps>(({ className
|
|
14
|
+
export const Sitemap = JSX<SitemapProps>(({ className, topItems }) => {
|
|
14
15
|
const link = useLink(true);
|
|
15
16
|
|
|
16
17
|
return (
|
|
17
|
-
<div className={
|
|
18
|
-
{
|
|
18
|
+
<div className={style('flex items-start justify-between', className)}>
|
|
19
|
+
{topItems?.map(link).map(renderColumn)}
|
|
19
20
|
</div>
|
|
20
21
|
);
|
|
21
22
|
});
|
|
@@ -24,9 +25,9 @@ const renderColumn = (menuItem: TopMenuItem & { onClick: () => void }, index: nu
|
|
|
24
25
|
const { text, items, href, target, onClick } = menuItem;
|
|
25
26
|
|
|
26
27
|
return (
|
|
27
|
-
<div key={String(index)} className="flex flex-col
|
|
28
|
+
<div key={String(index)} className="flex flex-col gap-3.5 w-1/4">
|
|
28
29
|
<a
|
|
29
|
-
className="
|
|
30
|
+
className="leading-5 text-l text-primary-text hover:text-primary-main no-underline"
|
|
30
31
|
href={href}
|
|
31
32
|
target={target || '_self'}
|
|
32
33
|
onClick={onClick}
|
|
@@ -54,7 +55,10 @@ const ColumnItem = JSX<ColumnItemProps>(({ text, index, basePath, ...rest }) =>
|
|
|
54
55
|
|
|
55
56
|
return (
|
|
56
57
|
<a
|
|
57
|
-
className=
|
|
58
|
+
className={style(
|
|
59
|
+
'text-l-light text-secondary-text hover:text-primary-main no-underline',
|
|
60
|
+
'overflow-x-hidden overflow-ellipsis whitespace-nowrap',
|
|
61
|
+
)}
|
|
58
62
|
href={isAnotherPortal ? joinPath(basePath, href) : href}
|
|
59
63
|
target={target || '_self'}
|
|
60
64
|
onClick={onClick}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useLink } from '../../hooks/useLink';
|
|
3
3
|
import type { LinkProps } from '../../model/LinkProps';
|
|
4
|
-
import type { PreventableEvent } from '../../model/PreventableEvent';
|
|
5
4
|
import { style } from '../../utils/style';
|
|
5
|
+
import type { PreventableEvent } from '../PreventableEvent';
|
|
6
6
|
|
|
7
7
|
export interface TopItemContent extends LinkProps {
|
|
8
8
|
active?: boolean;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export const groupBy = <K, V>(list:
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
export const groupBy = <K, V>(list: V[], keyGetter: (input: V) => K): Map<K, V[]> => {
|
|
2
|
+
const result = new Map<K, V[]>();
|
|
3
|
+
|
|
4
|
+
for (const item of list) {
|
|
4
5
|
const key = keyGetter(item);
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
const group = result.get(key) || [];
|
|
7
|
+
result.set(key, [...group, item]);
|
|
8
|
+
}
|
|
8
9
|
|
|
9
|
-
return
|
|
10
|
+
return result;
|
|
10
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"path": "lib/common.css"
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
|
-
"limit": "
|
|
191
|
+
"limit": "53 kB",
|
|
192
192
|
"path": "bundle/bundle.umd.min.js"
|
|
193
193
|
}
|
|
194
194
|
],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import type { PreventableEvent } from '../../model/PreventableEvent';
|
|
4
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
4
|
import { Input } from '../../ui-kit/Input/Input';
|
|
5
|
+
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
6
6
|
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
7
7
|
import { ACQUIRING_TYPES } from './acquiringTypes';
|
|
8
8
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import type { Region } from '../../hooks/useRegions';
|
|
4
|
-
import type { PreventableEvent } from '../../
|
|
4
|
+
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
5
5
|
import { Input } from '../../ui-kit/Input/Input';
|
|
6
6
|
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
7
7
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useBranches } from '../../hooks/useBranches';
|
|
4
|
-
import type { PreventableEvent } from '../../model/PreventableEvent';
|
|
5
4
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
|
+
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
6
6
|
import { useGetRegions } from '../SafeDepositRental/useGetRegions';
|
|
7
7
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
8
8
|
import { MIN_CREDIT_AMOUNT, MIN_CREDIT_TERM } from './CreditParameters';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import type { PreventableEvent } from '../../model/PreventableEvent';
|
|
4
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
4
|
import { Input } from '../../ui-kit/Input/Input';
|
|
5
|
+
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
6
6
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
7
7
|
import { Footnote } from './Footnote';
|
|
8
8
|
import type { HandleFormStateChange } from './models';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import type { PreventableEvent } from '../../model/PreventableEvent';
|
|
4
3
|
import { Heading } from '../../ui-kit/Heading/Heading';
|
|
5
4
|
import { Input } from '../../ui-kit/Input/Input';
|
|
5
|
+
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
6
6
|
import type { ApplicationFormsProps } from './ApplicationFormsProps';
|
|
7
7
|
import { Footnote } from './Footnote';
|
|
8
8
|
import type { HandleFormStateChange } from './models';
|
package/src/components/Blocks.ts
CHANGED
|
@@ -35,7 +35,6 @@ import { LinkDocs } from './LinkDocs/LinkDocs';
|
|
|
35
35
|
import { MobileAppTile } from './MobileAppTile/MobileAppTile';
|
|
36
36
|
import { OfficeMap } from './OfficeMap/OfficeMap';
|
|
37
37
|
import { OfficeServicesBlock } from './OfficeServicesBlock/OfficeServicesBlock';
|
|
38
|
-
import { OtherProducts } from './OtherProducts/OtherProducts';
|
|
39
38
|
import { ParagraphBlock } from './ParagraphBlock/ParagraphBlock';
|
|
40
39
|
import { PictureText } from './PictureText/PictureText';
|
|
41
40
|
import { Placeholder } from './Placeholder/Placeholder';
|
|
@@ -93,7 +92,6 @@ export const Blocks: BlocksRegistry = {
|
|
|
93
92
|
MobileAppTile,
|
|
94
93
|
OfficeMap,
|
|
95
94
|
OfficeServicesBlock,
|
|
96
|
-
OtherProducts,
|
|
97
95
|
ParagraphBlock,
|
|
98
96
|
PictureText,
|
|
99
97
|
Placeholder,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { fallbackWCMSResource } from '../../hooks/fallbackWCMSResource';
|
|
1
2
|
import type { FallbackMap } from '../../model/Fallback';
|
|
2
3
|
import { projectSettings } from '../../ProjectSettings';
|
|
3
|
-
import { fallbackWCMSResource } from '../../services/sitemap/fallbackWCMSResource';
|
|
4
4
|
|
|
5
5
|
export const fallback = (): FallbackMap => ({
|
|
6
6
|
...fallbackWCMSResource(projectSettings.SITEMAP || 'sitemap'),
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import { useSWRResource } from '../../hooks/useSWRResource';
|
|
4
3
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
5
4
|
import { projectSettings } from '../../ProjectSettings';
|
|
6
5
|
import type { SitemapData } from '../../services/sitemap/SitemapData';
|
|
7
|
-
import { useSearch, type SearchResult } from '../../services/sitemap/useSearch';
|
|
8
6
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper';
|
|
9
7
|
import { Logo } from '../../ui-kit/Logo/Logo';
|
|
10
8
|
import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
|
|
11
|
-
import {
|
|
9
|
+
import { Sitemap } from '../../ui-kit/Sitemap/Sitemap';
|
|
12
10
|
import { Contacts } from './Contacts';
|
|
13
11
|
import type { FooterContent } from './FooterContent';
|
|
14
12
|
import type { FooterDataProps } from './FooterDataProps';
|
|
15
13
|
import { HorizontalNavigation } from './HorizontalNavigation';
|
|
16
|
-
import { Sitemap } from './Sitemap';
|
|
17
14
|
import { SocialMedia } from './SocialMedia';
|
|
18
15
|
import { TextInformation } from './TextInformation';
|
|
19
16
|
|
|
@@ -28,18 +25,11 @@ export const Footer = JSX<FooterProps>(({ className = '', ...rest }) => {
|
|
|
28
25
|
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } =
|
|
29
26
|
useSWRResource<FooterDataProps>(projectSettings.FOOTER || 'footer', fallback);
|
|
30
27
|
|
|
31
|
-
const basePathList = sitemap?.topItems?.map((_) => _.href || '/');
|
|
32
|
-
const [searchResult, searchInputProps] = useSearch(basePathList);
|
|
33
|
-
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
printSearchResult(sitemap, searchResult); // Temp
|
|
36
|
-
}, [sitemap, searchResult]);
|
|
37
|
-
|
|
38
28
|
return (
|
|
39
29
|
<BlockWrapper tag="footer" className={`p-9 ${className}`} {...rest}>
|
|
40
30
|
<div className="flex items-stretch gap-[54px] pb-[30px] xl:gap-8">
|
|
41
31
|
<Logo className={LEFT_COL_WIDTH_FULL_HD} logo={logo} />
|
|
42
|
-
<SearchBar className="grow" {
|
|
32
|
+
<SearchBar className="grow" topItems={sitemap?.topItems} />
|
|
43
33
|
</div>
|
|
44
34
|
<div className="flex items-stretch gap-[54px] xl:gap-8">
|
|
45
35
|
<div className={`${LEFT_COL_WIDTH_FULL_HD} flex flex-col shrink-0 overflow-hidden`}>
|
|
@@ -49,28 +39,10 @@ export const Footer = JSX<FooterProps>(({ className = '', ...rest }) => {
|
|
|
49
39
|
Мобильное приложение
|
|
50
40
|
</SocialMedia>
|
|
51
41
|
</div>
|
|
52
|
-
<Sitemap className="
|
|
42
|
+
<Sitemap className="flex-grow" topItems={sitemap?.topItems} />
|
|
53
43
|
</div>
|
|
54
44
|
<HorizontalNavigation className="mt-[98px]" links={relatedEnterprises} />
|
|
55
45
|
<TextInformation links={documents} />
|
|
56
46
|
</BlockWrapper>
|
|
57
47
|
);
|
|
58
48
|
});
|
|
59
|
-
|
|
60
|
-
// Temp
|
|
61
|
-
function printSearchResult(
|
|
62
|
-
sitemap: SitemapData | null | undefined,
|
|
63
|
-
searchResult: SearchResult | null | undefined,
|
|
64
|
-
) {
|
|
65
|
-
if (!sitemap?.topItems?.length || !searchResult?.length) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
for (const [{ text }, portalSearchResult] of zip(sitemap.topItems, searchResult).filter(
|
|
70
|
-
([, _]) => _?.length,
|
|
71
|
-
)) {
|
|
72
|
-
console.group(text);
|
|
73
|
-
console.table(portalSearchResult, ['title', 'uri']);
|
|
74
|
-
console.groupEnd();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { fallbackWCMSResource } from '../../hooks/fallbackWCMSResource';
|
|
1
2
|
import { projectSettings } from '../../ProjectSettings';
|
|
2
|
-
import { fallbackWCMSResource } from '../../services/sitemap/fallbackWCMSResource';
|
|
3
3
|
|
|
4
4
|
export const fallback = () => fallbackWCMSResource(projectSettings.SITEMAP || 'sitemap');
|
|
@@ -4,10 +4,10 @@ import { useBool } from '../../hooks/useBool';
|
|
|
4
4
|
import { useLocation } from '../../hooks/useLocation';
|
|
5
5
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
6
6
|
import type { IconVersion } from '../../model/IconVersion';
|
|
7
|
-
import type { PreventableEvent } from '../../model/PreventableEvent';
|
|
8
7
|
import { projectSettings } from '../../ProjectSettings';
|
|
9
8
|
import type { ForeignOffice } from '../../services/sitemap/SitemapData';
|
|
10
9
|
import { Location } from '../../ui-kit/Location/Location';
|
|
10
|
+
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
11
11
|
import { TopItem } from '../../ui-kit/TopItem/TopItem';
|
|
12
12
|
import { style } from '../../utils/style';
|
|
13
13
|
import { HeaderChatBotButton } from './HeaderChatBotButton';
|
|
@@ -64,7 +64,7 @@ export const HeaderSecondaryMenu = JSX<HeaderSecondaryMenuProps>(
|
|
|
64
64
|
currentLocation={location}
|
|
65
65
|
foreignOffices={foreignOffices}
|
|
66
66
|
onChangeLocation={onChangeLocation}
|
|
67
|
-
|
|
67
|
+
onClose={hideLocationModal}
|
|
68
68
|
/>
|
|
69
69
|
) : null}
|
|
70
70
|
</div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Img } from '../../ui-kit/Img/Img';
|
|
3
3
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
4
|
+
import type { PreventableEvent } from '../../ui-kit/PreventableEvent';
|
|
4
5
|
import { style } from '../../utils/style';
|
|
5
6
|
|
|
6
7
|
export interface HeaderSecondaryMenuButtonProps extends ImageContent {
|
|
@@ -8,7 +9,7 @@ export interface HeaderSecondaryMenuButtonProps extends ImageContent {
|
|
|
8
9
|
isRounded?: boolean;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
ariaLabel?: string;
|
|
11
|
-
onClick?: (ev?:
|
|
12
|
+
onClick?: (ev?: PreventableEvent) => void;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const HeaderSecondaryMenuButton = JSX<HeaderSecondaryMenuButtonProps>(
|
|
@@ -9,7 +9,7 @@ import type { RichTextItem } from '../../model/RichTextItem';
|
|
|
9
9
|
import type { SizeVersion } from '../../model/SizeVersion';
|
|
10
10
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
11
11
|
|
|
12
|
-
type StepCommonProps = IconProps & ButtonCommonIconProps & BulletsProps & ListContent
|
|
12
|
+
type StepCommonProps = IconProps & ButtonCommonIconProps & BulletsProps & ListContent;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @title Стандартный
|
|
@@ -23,6 +23,9 @@ type RichTextStep = RichTextItem & IconProps;
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @title Шаг
|
|
26
|
+
* @default {
|
|
27
|
+
* "type": "default"
|
|
28
|
+
* }
|
|
26
29
|
*/
|
|
27
30
|
export type Step = DefaultStep | RichTextStep;
|
|
28
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
2
2
|
import type { DescriptionProps, LabelProps, TitleProps } from '../../model/HeadlineType';
|
|
3
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
import type { UniBlockContent, UniBlockProps } from '../../model/JSXBlock';
|
|
4
4
|
import type { ListOrientation } from '../../model/ListOrientation';
|
|
5
5
|
import type { IconProps } from '../../model/Picture';
|
|
6
6
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
@@ -43,7 +43,7 @@ export type Data = {
|
|
|
43
43
|
/**
|
|
44
44
|
* @title Параметр
|
|
45
45
|
*/
|
|
46
|
-
export type TariffsTableRowHeader = TitleProps & IconProps
|
|
46
|
+
export type TariffsTableRowHeader = TitleProps & IconProps;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* @title Изображение
|
|
@@ -112,7 +112,8 @@ export interface TariffsTableColumn {
|
|
|
112
112
|
/**
|
|
113
113
|
* @title Таблица тарифов
|
|
114
114
|
*/
|
|
115
|
-
export type TariffsTableContent =
|
|
115
|
+
export type TariffsTableContent = UniBlockContent &
|
|
116
|
+
TitleProps &
|
|
116
117
|
DescriptionProps & {
|
|
117
118
|
/** @title Колонки */
|
|
118
119
|
tariffsColumns?: TariffsTableColumn[];
|
|
@@ -30,31 +30,24 @@ export default {
|
|
|
30
30
|
<div className="container grid grid-cols-12">
|
|
31
31
|
<div className="col-span-12">
|
|
32
32
|
<div className="flex flex-col gap-1.5" data-theme="pc">
|
|
33
|
-
<TextBlock {...TEXT_BLOCK}
|
|
34
|
-
<TextBlock {...TEXT_BLOCK}
|
|
35
|
-
<TextBlock {...TEXT_BLOCK}
|
|
33
|
+
<TextBlock {...TEXT_BLOCK} version="primary" iconVersion="small" />
|
|
34
|
+
<TextBlock {...TEXT_BLOCK} version="primary" iconVersion="big" image={image} />
|
|
35
|
+
<TextBlock {...TEXT_BLOCK} version="primary" iconVersion="none" />
|
|
36
36
|
<TextBlock
|
|
37
37
|
description="Если не планируете поездку за границу, продолжайте пользоваться картой Своя. Для поездок за границу"
|
|
38
|
-
|
|
38
|
+
version="primary"
|
|
39
39
|
/>
|
|
40
|
-
<TextBlock title="Все карты Россельхозбанка работают"
|
|
40
|
+
<TextBlock title="Все карты Россельхозбанка работают" version="primary" />
|
|
41
41
|
<TextBlock
|
|
42
42
|
title="Все карты Россельхозбанка работают"
|
|
43
|
-
|
|
43
|
+
version="primary"
|
|
44
44
|
iconVersion="small"
|
|
45
45
|
items={items}
|
|
46
46
|
/>
|
|
47
47
|
<TextBlock
|
|
48
48
|
title="Все карты Россельхозбанка работают"
|
|
49
49
|
description="Если не планируете поездку за границу, продолжайте пользоваться картой Своя. Для поездок за границу"
|
|
50
|
-
|
|
51
|
-
iconVersion="small"
|
|
52
|
-
items={items}
|
|
53
|
-
/>
|
|
54
|
-
<TextBlock
|
|
55
|
-
title="Все карты Россельхозбанка работают"
|
|
56
|
-
description="Если не планируете поездку за границу, продолжайте пользоваться картой Своя. Для поездок за границу"
|
|
57
|
-
blockVersion="secondary-light"
|
|
50
|
+
version="secondary"
|
|
58
51
|
iconVersion="small"
|
|
59
52
|
items={items}
|
|
60
53
|
/>
|
|
@@ -69,11 +62,10 @@ export default {
|
|
|
69
62
|
<TextBlock
|
|
70
63
|
className="flex flex-col"
|
|
71
64
|
{...TEXT_BLOCK}
|
|
72
|
-
|
|
65
|
+
version="primary"
|
|
73
66
|
iconVersion="small"
|
|
74
67
|
/>
|
|
75
|
-
<TextBlock {...TEXT_BLOCK} iconVersion="small"
|
|
76
|
-
<TextBlock {...TEXT_BLOCK} iconVersion="small" blockVersion="secondary-light" />
|
|
68
|
+
<TextBlock {...TEXT_BLOCK} iconVersion="small" version="secondary" />
|
|
77
69
|
</div>
|
|
78
70
|
</div>
|
|
79
71
|
</div>
|
|
@@ -82,9 +74,8 @@ export default {
|
|
|
82
74
|
<div className="container grid grid-cols-12">
|
|
83
75
|
<div className="col-span-12">
|
|
84
76
|
<div className="flex flex-col gap-1.5" data-theme="eo">
|
|
85
|
-
<TextBlock {...TEXT_BLOCK} iconVersion="small"
|
|
86
|
-
<TextBlock {...TEXT_BLOCK} iconVersion="small"
|
|
87
|
-
<TextBlock {...TEXT_BLOCK} iconVersion="small" blockVersion="secondary-light" />
|
|
77
|
+
<TextBlock {...TEXT_BLOCK} iconVersion="small" version="primary" />
|
|
78
|
+
<TextBlock {...TEXT_BLOCK} iconVersion="small" version="secondary" />
|
|
88
79
|
</div>
|
|
89
80
|
</div>
|
|
90
81
|
</div>
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import type { BulletsProps } from '../../model/Bullets';
|
|
2
2
|
import type { HeadlineCommonProps } from '../../model/HeadlineType';
|
|
3
|
+
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
4
|
import type { ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
4
5
|
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
5
6
|
import type { RichTextProps } from '../../ui-kit/RichText/RichTextProps';
|
|
6
7
|
|
|
7
|
-
/**
|
|
8
|
-
* @title Цвет блока
|
|
9
|
-
* @enumNames ["Основная", "Второстепенная", "Второстепенная прозрачная"]
|
|
10
|
-
*/
|
|
11
|
-
export type TextBlockVersion = 'primary' | 'secondary' | 'secondary-light';
|
|
12
|
-
|
|
13
8
|
/**
|
|
14
9
|
* @title Размер иконки
|
|
15
10
|
* @enumNames ["Нет", "Маленькая", "Большая"]
|
|
@@ -19,11 +14,11 @@ type TextBlockIconVersion = 'none' | 'small' | 'big';
|
|
|
19
14
|
/**
|
|
20
15
|
* @title Текстовый блок
|
|
21
16
|
*/
|
|
22
|
-
export type TextBlockContent =
|
|
17
|
+
export type TextBlockContent = UniBlockContent &
|
|
18
|
+
HeadlineCommonProps &
|
|
23
19
|
RichTextProps &
|
|
24
20
|
ImageContent &
|
|
25
21
|
ListContent &
|
|
26
22
|
BulletsProps & {
|
|
27
23
|
iconVersion?: TextBlockIconVersion;
|
|
28
|
-
blockVersion?: TextBlockVersion;
|
|
29
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { readFile } from 'fs/promises';
|
|
2
|
-
import type { FallbackMap } from '
|
|
2
|
+
import type { FallbackMap } from '../model/Fallback';
|
|
3
3
|
|
|
4
4
|
export const fallbackWCMSResource = (filename: string): FallbackMap => ({
|
|
5
5
|
[`/wcms-resources/${filename}.json`]: async () =>
|
package/src/hooks/useLink.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from '../model/LinkProps';
|
|
2
|
-
import type { PreventableEvent } from '../
|
|
2
|
+
import type { PreventableEvent } from '../ui-kit/PreventableEvent';
|
|
3
3
|
import { adjustHref } from '../utils/adjustHref';
|
|
4
4
|
import { isLocalURL } from '../utils/url';
|
|
5
5
|
import { handlerDecorator } from './handlerDecorator';
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { compareBy, desc } from '
|
|
2
|
-
import { zip } from '
|
|
1
|
+
import { compareBy, desc } from '../../utils/Comparator';
|
|
2
|
+
import { zip } from '../../utils/zip';
|
|
3
3
|
import { jaroWinklerDistance } from './jaroWinklerDistance';
|
|
4
4
|
import { joinMaps } from './joinMaps';
|
|
5
5
|
import { textRank } from './textRank';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { max } from '
|
|
2
|
-
import { sum } from '
|
|
1
|
+
import { max } from '../../utils/maxBy';
|
|
2
|
+
import { sum } from '../../utils/sum';
|
|
3
3
|
import { jaroWinklerDistance } from './jaroWinklerDistance';
|
|
4
4
|
import { tokenize } from './tokenize';
|
|
5
5
|
|
|
File without changes
|
|
@@ -2,7 +2,7 @@ import { useCallback, useEffect, useMemo, useState } from '@redneckz/uni-jsx/lib
|
|
|
2
2
|
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
3
3
|
import { fetchJSON } from '../../utils/fetchJSON';
|
|
4
4
|
import { joinPath } from '../../utils/url';
|
|
5
|
-
import { CorpusItem, search, SearchIndex } from './search
|
|
5
|
+
import { CorpusItem, search, SearchIndex } from './search';
|
|
6
6
|
|
|
7
7
|
const SEARCH_INDEX_FILENAME = 'search.index.json';
|
|
8
8
|
|
|
@@ -2,6 +2,7 @@ import type { ButtonVersion } from '../../model/ButtonVersion';
|
|
|
2
2
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
3
|
import type { IconProps, Picture } from '../../model/Picture';
|
|
4
4
|
import type { VNode } from '../../model/VNode';
|
|
5
|
+
import type { PreventableEvent } from '../PreventableEvent';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
@@ -11,7 +12,7 @@ export interface ButtonAdditionalProps {
|
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
rel?: string;
|
|
13
14
|
ariaLabel?: string;
|
|
14
|
-
onClick?: (ev?:
|
|
15
|
+
onClick?: (ev?: PreventableEvent) => void;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
3
|
+
import { Img } from '../Img/Img';
|
|
4
|
+
import type { PreventableEvent } from '../PreventableEvent';
|
|
5
|
+
|
|
6
|
+
interface CloseButtonProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
onClick?: (ev: PreventableEvent) => void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const CloseButton = JSX<CloseButtonProps>(({ className, onClick }) => (
|
|
12
|
+
<button
|
|
13
|
+
className={style(
|
|
14
|
+
'visible peer-placeholder-shown:invisible w-6 h-6 p-1 bg-transparent border-none',
|
|
15
|
+
className,
|
|
16
|
+
)}
|
|
17
|
+
onClick={onClick}
|
|
18
|
+
title="Закрыть"
|
|
19
|
+
>
|
|
20
|
+
<Img image={{ icon: 'CloseIcon' }} width="24" height="24" />
|
|
21
|
+
</button>
|
|
22
|
+
));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import type { VNode } from '../../model/VNode';
|
|
4
|
+
import { style } from '../../utils/style';
|
|
5
|
+
import type { PreventableEvent } from '../PreventableEvent';
|
|
6
|
+
import { CloseButton } from './CloseButton';
|
|
7
|
+
|
|
8
|
+
export interface DialogProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
head?: VNode;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Dialog = JSX<DialogProps>(({ className, head, children, onClose }) => {
|
|
15
|
+
const handleClose = useCallback(
|
|
16
|
+
(ev: PreventableEvent) => {
|
|
17
|
+
ev.preventDefault();
|
|
18
|
+
onClose && onClose();
|
|
19
|
+
},
|
|
20
|
+
[onClose],
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
const handleEscape = ({ key }: { key: string }) => {
|
|
25
|
+
if (key === 'Escape') {
|
|
26
|
+
onClose && onClose();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
globalThis.document?.addEventListener('keydown', handleEscape);
|
|
31
|
+
|
|
32
|
+
return () => {
|
|
33
|
+
globalThis.document?.removeEventListener('keydown', handleEscape);
|
|
34
|
+
};
|
|
35
|
+
}, [onClose]);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div
|
|
39
|
+
className={style(
|
|
40
|
+
'fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar',
|
|
41
|
+
className,
|
|
42
|
+
)}
|
|
43
|
+
role="dialog"
|
|
44
|
+
>
|
|
45
|
+
<div className="relative container pb-12 min-h-full">
|
|
46
|
+
<div className="sticky bg-white pt-6 top-0">
|
|
47
|
+
<CloseButton className="absolute top-3 -right-6" onClick={handleClose} />
|
|
48
|
+
{head}
|
|
49
|
+
</div>
|
|
50
|
+
{children}
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
});
|