@doyourjob/gravity-ui-page-constructor-addons 2.1.8
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/LICENSE +21 -0
- package/README.md +31 -0
- package/build/cjs/components/EnrichedLink/EnrichedLink.css +94 -0
- package/build/cjs/components/EnrichedLink/EnrichedLink.d.ts +17 -0
- package/build/cjs/components/EnrichedLink/EnrichedLink.js +38 -0
- package/build/cjs/components/Navigation/components/ButtonsContainer/ButtonsContainer.css +12 -0
- package/build/cjs/components/Navigation/components/ButtonsContainer/ButtonsContainer.d.ts +15 -0
- package/build/cjs/components/Navigation/components/ButtonsContainer/ButtonsContainer.js +17 -0
- package/build/cjs/components/Navigation/components/LangSwitch/LangSwitch.css +62 -0
- package/build/cjs/components/Navigation/components/LangSwitch/LangSwitchPopup/LangSwitchPopup.css +62 -0
- package/build/cjs/components/Navigation/components/LangSwitch/LangSwitchPopup/LangSwitchPopup.d.ts +7 -0
- package/build/cjs/components/Navigation/components/LangSwitch/LangSwitchPopup/LangSwitchPopup.js +23 -0
- package/build/cjs/components/Navigation/components/LangSwitch/index.d.ts +17 -0
- package/build/cjs/components/Navigation/components/LangSwitch/index.js +27 -0
- package/build/cjs/components/Navigation/components/Logo/Logo.css +53 -0
- package/build/cjs/components/Navigation/components/Logo/Logo.d.ts +9 -0
- package/build/cjs/components/Navigation/components/Logo/Logo.js +15 -0
- package/build/cjs/components/Navigation/components/Logo/i18n/en.json +4 -0
- package/build/cjs/components/Navigation/components/Logo/i18n/index.d.ts +2 -0
- package/build/cjs/components/Navigation/components/Logo/i18n/index.js +8 -0
- package/build/cjs/components/Navigation/components/Logo/i18n/ru.json +4 -0
- package/build/cjs/components/Navigation/components/MobileNavigation/MobileNavigation.css +47 -0
- package/build/cjs/components/Navigation/components/MobileNavigation/MobileNavigation.d.ts +16 -0
- package/build/cjs/components/Navigation/components/MobileNavigation/MobileNavigation.js +26 -0
- package/build/cjs/components/Navigation/components/MobileNavigation/MobileNavigationItem/MobileNavigationItem.css +75 -0
- package/build/cjs/components/Navigation/components/MobileNavigation/MobileNavigationItem/MobileNavigationItem.d.ts +7 -0
- package/build/cjs/components/Navigation/components/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +45 -0
- package/build/cjs/components/Navigation/components/MobileNavigation/MobileNavigationPopup/MobileNavigationPopup.css +55 -0
- package/build/cjs/components/Navigation/components/MobileNavigation/MobileNavigationPopup/MobileNavigationPopup.d.ts +9 -0
- package/build/cjs/components/Navigation/components/MobileNavigation/MobileNavigationPopup/MobileNavigationPopup.js +47 -0
- package/build/cjs/components/Navigation/components/Navigation/Navigation.css +28 -0
- package/build/cjs/components/Navigation/components/Navigation/Navigation.d.ts +13 -0
- package/build/cjs/components/Navigation/components/Navigation/Navigation.js +74 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationItem/NavigationItem.css +81 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationItem/NavigationItem.d.ts +14 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationItem/NavigationItem.js +57 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationItemsList/NavigationItemsList.d.ts +12 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationItemsList/NavigationItemsList.js +11 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationPopup/NavigationPopup.css +20 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationPopup/NavigationPopup.d.ts +11 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationPopup/NavigationPopup.js +20 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationPopupItem/NavigationPopupItem.css +111 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationPopupItem/NavigationPopupItem.d.ts +12 -0
- package/build/cjs/components/Navigation/components/Navigation/NavigationPopupItem/NavigationPopupItem.js +46 -0
- package/build/cjs/components/Navigation/components/SearchNotFound/SearchNotFound.css +7 -0
- package/build/cjs/components/Navigation/components/SearchNotFound/SearchNotFound.d.ts +8 -0
- package/build/cjs/components/Navigation/components/SearchNotFound/SearchNotFound.js +22 -0
- package/build/cjs/components/Navigation/components/SearchNotFound/i18n/en.json +4 -0
- package/build/cjs/components/Navigation/components/SearchNotFound/i18n/index.d.ts +2 -0
- package/build/cjs/components/Navigation/components/SearchNotFound/i18n/index.js +8 -0
- package/build/cjs/components/Navigation/components/SearchNotFound/i18n/ru.json +4 -0
- package/build/cjs/components/Navigation/components/SearchResult/SearchResult.css +8 -0
- package/build/cjs/components/Navigation/components/SearchResult/SearchResult.d.ts +10 -0
- package/build/cjs/components/Navigation/components/SearchResult/SearchResult.js +25 -0
- package/build/cjs/components/Navigation/components/SearchResult/i18n/en.json +12 -0
- package/build/cjs/components/Navigation/components/SearchResult/i18n/index.d.ts +2 -0
- package/build/cjs/components/Navigation/components/SearchResult/i18n/index.js +8 -0
- package/build/cjs/components/Navigation/components/SearchResult/i18n/ru.json +11 -0
- package/build/cjs/components/Navigation/components/Tag/Tag.css +21 -0
- package/build/cjs/components/Navigation/components/Tag/Tag.d.ts +6 -0
- package/build/cjs/components/Navigation/components/Tag/Tag.js +22 -0
- package/build/cjs/components/Navigation/components/popups/LargePopup/LargePopup.css +71 -0
- package/build/cjs/components/Navigation/components/popups/LargePopup/LargePopup.d.ts +6 -0
- package/build/cjs/components/Navigation/components/popups/LargePopup/LargePopup.js +78 -0
- package/build/cjs/components/Navigation/components/popups/MediumPopup/MediumPopup.css +6 -0
- package/build/cjs/components/Navigation/components/popups/MediumPopup/MediumPopup.d.ts +7 -0
- package/build/cjs/components/Navigation/components/popups/MediumPopup/MediumPopup.js +16 -0
- package/build/cjs/components/Navigation/components/popups/MediumPopupWithCategories/MediumPopupWithCategories.css +37 -0
- package/build/cjs/components/Navigation/components/popups/MediumPopupWithCategories/MediumPopupWithCategories.d.ts +7 -0
- package/build/cjs/components/Navigation/components/popups/MediumPopupWithCategories/MediumPopupWithCategories.js +54 -0
- package/build/cjs/components/Navigation/components/popups/MediumPopupWithFloors/MediumPopupWithFloors.css +7 -0
- package/build/cjs/components/Navigation/components/popups/MediumPopupWithFloors/MediumPopupWithFloors.d.ts +7 -0
- package/build/cjs/components/Navigation/components/popups/MediumPopupWithFloors/MediumPopupWithFloors.js +18 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupCategory/PopupCategory.css +43 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupCategory/PopupCategory.d.ts +9 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupCategory/PopupCategory.js +13 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupGroup/PopupGroup.css +27 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupGroup/PopupGroup.d.ts +11 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupGroup/PopupGroup.js +21 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupSecondaryGroup/PopupSecondaryGroup.css +17 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupSecondaryGroup/PopupSecondaryGroup.d.ts +8 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupSecondaryGroup/PopupSecondaryGroup.js +20 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupTitle/PopupTitle.d.ts +4 -0
- package/build/cjs/components/Navigation/components/popups/components/PopupTitle/PopupTitle.js +19 -0
- package/build/cjs/components/Navigation/components/popups/components/Search/Search.css +38 -0
- package/build/cjs/components/Navigation/components/popups/components/Search/Search.d.ts +17 -0
- package/build/cjs/components/Navigation/components/popups/components/Search/Search.js +47 -0
- package/build/cjs/components/Navigation/components/popups/components/Search/i18n/en.json +5 -0
- package/build/cjs/components/Navigation/components/popups/components/Search/i18n/index.d.ts +2 -0
- package/build/cjs/components/Navigation/components/popups/components/Search/i18n/index.js +8 -0
- package/build/cjs/components/Navigation/components/popups/components/Search/i18n/ru.json +5 -0
- package/build/cjs/components/Navigation/constants.d.ts +7 -0
- package/build/cjs/components/Navigation/constants.js +11 -0
- package/build/cjs/components/Navigation/containers/Footer/Footer.css +104 -0
- package/build/cjs/components/Navigation/containers/Footer/Footer.d.ts +3 -0
- package/build/cjs/components/Navigation/containers/Footer/Footer.js +58 -0
- package/build/cjs/components/Navigation/containers/Footer/GroupLinks/GroupLinks.css +68 -0
- package/build/cjs/components/Navigation/containers/Footer/GroupLinks/GroupLinks.d.ts +12 -0
- package/build/cjs/components/Navigation/containers/Footer/GroupLinks/GroupLinks.js +15 -0
- package/build/cjs/components/Navigation/containers/Footer/index.d.ts +3 -0
- package/build/cjs/components/Navigation/containers/Footer/index.js +6 -0
- package/build/cjs/components/Navigation/containers/Footer/models.d.ts +23 -0
- package/build/cjs/components/Navigation/containers/Footer/models.js +2 -0
- package/build/cjs/components/Navigation/containers/Footer/variables.css +7 -0
- package/build/cjs/components/Navigation/containers/Header/Header.css +172 -0
- package/build/cjs/components/Navigation/containers/Header/Header.d.ts +18 -0
- package/build/cjs/components/Navigation/containers/Header/Header.js +116 -0
- package/build/cjs/components/Navigation/containers/Header/index.d.ts +15 -0
- package/build/cjs/components/Navigation/containers/Header/index.js +25 -0
- package/build/cjs/components/Navigation/contexts/analytics.d.ts +6 -0
- package/build/cjs/components/Navigation/contexts/analytics.js +6 -0
- package/build/cjs/components/Navigation/contexts/device.d.ts +5 -0
- package/build/cjs/components/Navigation/contexts/device.js +6 -0
- package/build/cjs/components/Navigation/contexts/location.d.ts +9 -0
- package/build/cjs/components/Navigation/contexts/location.js +6 -0
- package/build/cjs/components/Navigation/contexts/mobile.d.ts +3 -0
- package/build/cjs/components/Navigation/contexts/mobile.js +6 -0
- package/build/cjs/components/Navigation/contexts/navigation-section.d.ts +3 -0
- package/build/cjs/components/Navigation/contexts/navigation-section.js +6 -0
- package/build/cjs/components/Navigation/contexts/route-change.d.ts +3 -0
- package/build/cjs/components/Navigation/contexts/route-change.js +6 -0
- package/build/cjs/components/Navigation/contexts/theme.d.ts +4 -0
- package/build/cjs/components/Navigation/contexts/theme.js +7 -0
- package/build/cjs/components/Navigation/index.d.ts +4 -0
- package/build/cjs/components/Navigation/index.js +7 -0
- package/build/cjs/components/Navigation/models.d.ts +89 -0
- package/build/cjs/components/Navigation/models.js +22 -0
- package/build/cjs/components/Navigation/styles/mixins.css +0 -0
- package/build/cjs/components/Navigation/styles/variables.css +14 -0
- package/build/cjs/components/Navigation/utils.d.ts +18 -0
- package/build/cjs/components/Navigation/utils.js +32 -0
- package/build/cjs/components/index.d.ts +2 -0
- package/build/cjs/components/index.js +5 -0
- package/build/cjs/constants.d.ts +3 -0
- package/build/cjs/constants.js +6 -0
- package/build/cjs/context/mobileContext/MobileContext.d.ts +2 -0
- package/build/cjs/context/mobileContext/MobileContext.js +6 -0
- package/build/cjs/context/mobileContext/index.d.ts +1 -0
- package/build/cjs/context/mobileContext/index.js +4 -0
- package/build/cjs/context/theme/ThemeContext.d.ts +10 -0
- package/build/cjs/context/theme/ThemeContext.js +15 -0
- package/build/cjs/context/theme/index.d.ts +3 -0
- package/build/cjs/context/theme/index.js +6 -0
- package/build/cjs/context/theme/useTheme.d.ts +2 -0
- package/build/cjs/context/theme/useTheme.js +11 -0
- package/build/cjs/context/theme/withTheme.d.ts +6 -0
- package/build/cjs/context/theme/withTheme.js +19 -0
- package/build/cjs/hooks/useIsCurrentPage.d.ts +1 -0
- package/build/cjs/hooks/useIsCurrentPage.js +13 -0
- package/build/cjs/hooks/useIsIPhone.d.ts +1 -0
- package/build/cjs/hooks/useIsIPhone.js +10 -0
- package/build/cjs/i18n.d.ts +2 -0
- package/build/cjs/i18n.js +12 -0
- package/build/cjs/index.d.ts +2 -0
- package/build/cjs/index.js +8 -0
- package/build/cjs/models/index.d.ts +3 -0
- package/build/cjs/models/index.js +2 -0
- package/build/cjs/utils/FocusTrap.d.ts +10 -0
- package/build/cjs/utils/FocusTrap.js +105 -0
- package/build/cjs/utils/cn.d.ts +5 -0
- package/build/cjs/utils/cn.js +9 -0
- package/build/cjs/utils/configure.d.ts +12 -0
- package/build/cjs/utils/configure.js +26 -0
- package/build/cjs/utils/registerKeyset.d.ts +5 -0
- package/build/cjs/utils/registerKeyset.js +9 -0
- package/build/esm/components/EnrichedLink/EnrichedLink.css +94 -0
- package/build/esm/components/EnrichedLink/EnrichedLink.d.ts +18 -0
- package/build/esm/components/EnrichedLink/EnrichedLink.js +34 -0
- package/build/esm/components/Navigation/components/ButtonsContainer/ButtonsContainer.css +12 -0
- package/build/esm/components/Navigation/components/ButtonsContainer/ButtonsContainer.d.ts +16 -0
- package/build/esm/components/Navigation/components/ButtonsContainer/ButtonsContainer.js +13 -0
- package/build/esm/components/Navigation/components/LangSwitch/LangSwitch.css +62 -0
- package/build/esm/components/Navigation/components/LangSwitch/LangSwitchPopup/LangSwitchPopup.css +62 -0
- package/build/esm/components/Navigation/components/LangSwitch/LangSwitchPopup/LangSwitchPopup.d.ts +8 -0
- package/build/esm/components/Navigation/components/LangSwitch/LangSwitchPopup/LangSwitchPopup.js +19 -0
- package/build/esm/components/Navigation/components/LangSwitch/index.d.ts +18 -0
- package/build/esm/components/Navigation/components/LangSwitch/index.js +23 -0
- package/build/esm/components/Navigation/components/Logo/Logo.css +53 -0
- package/build/esm/components/Navigation/components/Logo/Logo.d.ts +10 -0
- package/build/esm/components/Navigation/components/Logo/Logo.js +13 -0
- package/build/esm/components/Navigation/components/Logo/i18n/en.json +4 -0
- package/build/esm/components/Navigation/components/Logo/i18n/index.d.ts +2 -0
- package/build/esm/components/Navigation/components/Logo/i18n/index.js +5 -0
- package/build/esm/components/Navigation/components/Logo/i18n/ru.json +4 -0
- package/build/esm/components/Navigation/components/MobileNavigation/MobileNavigation.css +47 -0
- package/build/esm/components/Navigation/components/MobileNavigation/MobileNavigation.d.ts +17 -0
- package/build/esm/components/Navigation/components/MobileNavigation/MobileNavigation.js +22 -0
- package/build/esm/components/Navigation/components/MobileNavigation/MobileNavigationItem/MobileNavigationItem.css +75 -0
- package/build/esm/components/Navigation/components/MobileNavigation/MobileNavigationItem/MobileNavigationItem.d.ts +8 -0
- package/build/esm/components/Navigation/components/MobileNavigation/MobileNavigationItem/MobileNavigationItem.js +41 -0
- package/build/esm/components/Navigation/components/MobileNavigation/MobileNavigationPopup/MobileNavigationPopup.css +55 -0
- package/build/esm/components/Navigation/components/MobileNavigation/MobileNavigationPopup/MobileNavigationPopup.d.ts +10 -0
- package/build/esm/components/Navigation/components/MobileNavigation/MobileNavigationPopup/MobileNavigationPopup.js +43 -0
- package/build/esm/components/Navigation/components/Navigation/Navigation.css +28 -0
- package/build/esm/components/Navigation/components/Navigation/Navigation.d.ts +14 -0
- package/build/esm/components/Navigation/components/Navigation/Navigation.js +70 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationItem/NavigationItem.css +81 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationItem/NavigationItem.d.ts +15 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationItem/NavigationItem.js +53 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationItemsList/NavigationItemsList.d.ts +12 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationItemsList/NavigationItemsList.js +6 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationPopup/NavigationPopup.css +20 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationPopup/NavigationPopup.d.ts +12 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationPopup/NavigationPopup.js +16 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationPopupItem/NavigationPopupItem.css +111 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationPopupItem/NavigationPopupItem.d.ts +13 -0
- package/build/esm/components/Navigation/components/Navigation/NavigationPopupItem/NavigationPopupItem.js +42 -0
- package/build/esm/components/Navigation/components/SearchNotFound/SearchNotFound.css +7 -0
- package/build/esm/components/Navigation/components/SearchNotFound/SearchNotFound.d.ts +9 -0
- package/build/esm/components/Navigation/components/SearchNotFound/SearchNotFound.js +18 -0
- package/build/esm/components/Navigation/components/SearchNotFound/i18n/en.json +4 -0
- package/build/esm/components/Navigation/components/SearchNotFound/i18n/index.d.ts +2 -0
- package/build/esm/components/Navigation/components/SearchNotFound/i18n/index.js +5 -0
- package/build/esm/components/Navigation/components/SearchNotFound/i18n/ru.json +4 -0
- package/build/esm/components/Navigation/components/SearchResult/SearchResult.css +8 -0
- package/build/esm/components/Navigation/components/SearchResult/SearchResult.d.ts +11 -0
- package/build/esm/components/Navigation/components/SearchResult/SearchResult.js +21 -0
- package/build/esm/components/Navigation/components/SearchResult/i18n/en.json +12 -0
- package/build/esm/components/Navigation/components/SearchResult/i18n/index.d.ts +2 -0
- package/build/esm/components/Navigation/components/SearchResult/i18n/index.js +5 -0
- package/build/esm/components/Navigation/components/SearchResult/i18n/ru.json +11 -0
- package/build/esm/components/Navigation/components/Tag/Tag.css +21 -0
- package/build/esm/components/Navigation/components/Tag/Tag.d.ts +7 -0
- package/build/esm/components/Navigation/components/Tag/Tag.js +18 -0
- package/build/esm/components/Navigation/components/popups/LargePopup/LargePopup.css +71 -0
- package/build/esm/components/Navigation/components/popups/LargePopup/LargePopup.d.ts +7 -0
- package/build/esm/components/Navigation/components/popups/LargePopup/LargePopup.js +74 -0
- package/build/esm/components/Navigation/components/popups/MediumPopup/MediumPopup.css +6 -0
- package/build/esm/components/Navigation/components/popups/MediumPopup/MediumPopup.d.ts +8 -0
- package/build/esm/components/Navigation/components/popups/MediumPopup/MediumPopup.js +12 -0
- package/build/esm/components/Navigation/components/popups/MediumPopupWithCategories/MediumPopupWithCategories.css +37 -0
- package/build/esm/components/Navigation/components/popups/MediumPopupWithCategories/MediumPopupWithCategories.d.ts +8 -0
- package/build/esm/components/Navigation/components/popups/MediumPopupWithCategories/MediumPopupWithCategories.js +50 -0
- package/build/esm/components/Navigation/components/popups/MediumPopupWithFloors/MediumPopupWithFloors.css +7 -0
- package/build/esm/components/Navigation/components/popups/MediumPopupWithFloors/MediumPopupWithFloors.d.ts +8 -0
- package/build/esm/components/Navigation/components/popups/MediumPopupWithFloors/MediumPopupWithFloors.js +14 -0
- package/build/esm/components/Navigation/components/popups/components/PopupCategory/PopupCategory.css +43 -0
- package/build/esm/components/Navigation/components/popups/components/PopupCategory/PopupCategory.d.ts +10 -0
- package/build/esm/components/Navigation/components/popups/components/PopupCategory/PopupCategory.js +9 -0
- package/build/esm/components/Navigation/components/popups/components/PopupGroup/PopupGroup.css +27 -0
- package/build/esm/components/Navigation/components/popups/components/PopupGroup/PopupGroup.d.ts +12 -0
- package/build/esm/components/Navigation/components/popups/components/PopupGroup/PopupGroup.js +18 -0
- package/build/esm/components/Navigation/components/popups/components/PopupSecondaryGroup/PopupSecondaryGroup.css +17 -0
- package/build/esm/components/Navigation/components/popups/components/PopupSecondaryGroup/PopupSecondaryGroup.d.ts +9 -0
- package/build/esm/components/Navigation/components/popups/components/PopupSecondaryGroup/PopupSecondaryGroup.js +17 -0
- package/build/esm/components/Navigation/components/popups/components/PopupTitle/PopupTitle.d.ts +4 -0
- package/build/esm/components/Navigation/components/popups/components/PopupTitle/PopupTitle.js +14 -0
- package/build/esm/components/Navigation/components/popups/components/Search/Search.css +38 -0
- package/build/esm/components/Navigation/components/popups/components/Search/Search.d.ts +18 -0
- package/build/esm/components/Navigation/components/popups/components/Search/Search.js +45 -0
- package/build/esm/components/Navigation/components/popups/components/Search/i18n/en.json +5 -0
- package/build/esm/components/Navigation/components/popups/components/Search/i18n/index.d.ts +2 -0
- package/build/esm/components/Navigation/components/popups/components/Search/i18n/index.js +5 -0
- package/build/esm/components/Navigation/components/popups/components/Search/i18n/ru.json +5 -0
- package/build/esm/components/Navigation/constants.d.ts +7 -0
- package/build/esm/components/Navigation/constants.js +8 -0
- package/build/esm/components/Navigation/containers/Footer/Footer.css +104 -0
- package/build/esm/components/Navigation/containers/Footer/Footer.d.ts +4 -0
- package/build/esm/components/Navigation/containers/Footer/Footer.js +54 -0
- package/build/esm/components/Navigation/containers/Footer/GroupLinks/GroupLinks.css +68 -0
- package/build/esm/components/Navigation/containers/Footer/GroupLinks/GroupLinks.d.ts +13 -0
- package/build/esm/components/Navigation/containers/Footer/GroupLinks/GroupLinks.js +13 -0
- package/build/esm/components/Navigation/containers/Footer/index.d.ts +3 -0
- package/build/esm/components/Navigation/containers/Footer/index.js +3 -0
- package/build/esm/components/Navigation/containers/Footer/models.d.ts +23 -0
- package/build/esm/components/Navigation/containers/Footer/models.js +1 -0
- package/build/esm/components/Navigation/containers/Footer/variables.css +7 -0
- package/build/esm/components/Navigation/containers/Header/Header.css +172 -0
- package/build/esm/components/Navigation/containers/Header/Header.d.ts +19 -0
- package/build/esm/components/Navigation/containers/Header/Header.js +113 -0
- package/build/esm/components/Navigation/containers/Header/index.d.ts +15 -0
- package/build/esm/components/Navigation/containers/Header/index.js +21 -0
- package/build/esm/components/Navigation/contexts/analytics.d.ts +6 -0
- package/build/esm/components/Navigation/contexts/analytics.js +2 -0
- package/build/esm/components/Navigation/contexts/device.d.ts +5 -0
- package/build/esm/components/Navigation/contexts/device.js +2 -0
- package/build/esm/components/Navigation/contexts/location.d.ts +9 -0
- package/build/esm/components/Navigation/contexts/location.js +2 -0
- package/build/esm/components/Navigation/contexts/mobile.d.ts +3 -0
- package/build/esm/components/Navigation/contexts/mobile.js +2 -0
- package/build/esm/components/Navigation/contexts/navigation-section.d.ts +3 -0
- package/build/esm/components/Navigation/contexts/navigation-section.js +2 -0
- package/build/esm/components/Navigation/contexts/route-change.d.ts +3 -0
- package/build/esm/components/Navigation/contexts/route-change.js +2 -0
- package/build/esm/components/Navigation/contexts/theme.d.ts +4 -0
- package/build/esm/components/Navigation/contexts/theme.js +3 -0
- package/build/esm/components/Navigation/index.d.ts +4 -0
- package/build/esm/components/Navigation/index.js +4 -0
- package/build/esm/components/Navigation/models.d.ts +89 -0
- package/build/esm/components/Navigation/models.js +19 -0
- package/build/esm/components/Navigation/styles/mixins.css +0 -0
- package/build/esm/components/Navigation/styles/variables.css +14 -0
- package/build/esm/components/Navigation/utils.d.ts +18 -0
- package/build/esm/components/Navigation/utils.js +25 -0
- package/build/esm/components/index.d.ts +2 -0
- package/build/esm/components/index.js +2 -0
- package/build/esm/constants.d.ts +3 -0
- package/build/esm/constants.js +3 -0
- package/build/esm/context/mobileContext/MobileContext.d.ts +2 -0
- package/build/esm/context/mobileContext/MobileContext.js +2 -0
- package/build/esm/context/mobileContext/index.d.ts +1 -0
- package/build/esm/context/mobileContext/index.js +1 -0
- package/build/esm/context/theme/ThemeContext.d.ts +10 -0
- package/build/esm/context/theme/ThemeContext.js +11 -0
- package/build/esm/context/theme/index.d.ts +3 -0
- package/build/esm/context/theme/index.js +3 -0
- package/build/esm/context/theme/useTheme.d.ts +2 -0
- package/build/esm/context/theme/useTheme.js +6 -0
- package/build/esm/context/theme/withTheme.d.ts +6 -0
- package/build/esm/context/theme/withTheme.js +14 -0
- package/build/esm/hooks/useIsCurrentPage.d.ts +1 -0
- package/build/esm/hooks/useIsCurrentPage.js +8 -0
- package/build/esm/hooks/useIsIPhone.d.ts +1 -0
- package/build/esm/hooks/useIsIPhone.js +6 -0
- package/build/esm/i18n.d.ts +2 -0
- package/build/esm/i18n.js +9 -0
- package/build/esm/index.d.ts +2 -0
- package/build/esm/index.js +3 -0
- package/build/esm/models/index.d.ts +3 -0
- package/build/esm/models/index.js +1 -0
- package/build/esm/utils/FocusTrap.d.ts +10 -0
- package/build/esm/utils/FocusTrap.js +99 -0
- package/build/esm/utils/cn.d.ts +5 -0
- package/build/esm/utils/cn.js +6 -0
- package/build/esm/utils/configure.d.ts +12 -0
- package/build/esm/utils/configure.js +20 -0
- package/build/esm/utils/registerKeyset.d.ts +5 -0
- package/build/esm/utils/registerKeyset.js +5 -0
- package/package.json +152 -0
- package/styles/.gitkeep +0 -0
- package/styles/mixins.scss +1 -0
- package/styles/storybook/common.scss +37 -0
- package/styles/storybook/index.scss +20 -0
- package/styles/storybook/palette.scss +75 -0
- package/styles/storybook/typography.scss +139 -0
- package/styles/styles.css +1 -0
- package/styles/styles.scss +1 -0
- package/styles/variables.scss +3 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MediumPopupWithCategories = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const cn_1 = require("../../../../../utils/cn");
|
|
8
|
+
const NavigationPopupItem_1 = require("../../Navigation/NavigationPopupItem/NavigationPopupItem");
|
|
9
|
+
const b = (0, cn_1.block)('medium-popup-with-categories');
|
|
10
|
+
const MediumPopupWithCategories = ({ data }) => {
|
|
11
|
+
const breakpoint = (0, gravity_ui_page_constructor_1.useWindowBreakpoint)();
|
|
12
|
+
const itemsArrays = data.groups.map((dataItem) => dataItem.items.map((item) => (Object.assign(Object.assign({}, item), { imageSize: dataItem.imageSize }))));
|
|
13
|
+
const isDesktop = breakpoint > gravity_ui_page_constructor_1.BREAKPOINTS.lg;
|
|
14
|
+
const maxLength = Math.max(...itemsArrays.map((item) => item.length));
|
|
15
|
+
const desktopItemsArray = (0, react_1.useMemo)(() => {
|
|
16
|
+
const itemsArray = [];
|
|
17
|
+
for (let i = 0; i < maxLength; i += 2) {
|
|
18
|
+
for (let j = 0; j < 2; j++) {
|
|
19
|
+
itemsArray.push(itemsArrays[j][i]);
|
|
20
|
+
itemsArray.push(itemsArrays[j][i + 1]);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return itemsArray;
|
|
24
|
+
}, [itemsArrays, maxLength]);
|
|
25
|
+
return (react_1.default.createElement(gravity_ui_page_constructor_1.Row, { className: b() },
|
|
26
|
+
data.groups.map(({ title, items, imageSize }) => (react_1.default.createElement(gravity_ui_page_constructor_1.Col, { key: title, className: b('col'), sizes: {
|
|
27
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Xl]: 6,
|
|
28
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Lg]: 12,
|
|
29
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
30
|
+
} },
|
|
31
|
+
title && (react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
32
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b('title') },
|
|
33
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Title, { title: { text: title, textSize: 'xs' } })))),
|
|
34
|
+
!isDesktop && (react_1.default.createElement("div", null,
|
|
35
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, items.map((item) => (react_1.default.createElement(NavigationPopupItem_1.NavigationPopupItem, Object.assign({}, item, { hover: true, imageSize: imageSize, sizes: {
|
|
36
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Lg]: 6,
|
|
37
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 4,
|
|
38
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 4,
|
|
39
|
+
}, key: item.title })))))))))),
|
|
40
|
+
isDesktop && (react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b('items') },
|
|
41
|
+
react_1.default.createElement("div", null,
|
|
42
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, null, desktopItemsArray.map((item, index) => {
|
|
43
|
+
return typeof item === 'undefined' ? (react_1.default.createElement(gravity_ui_page_constructor_1.Col, { sizes: {
|
|
44
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Xl]: 3,
|
|
45
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 4,
|
|
46
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
47
|
+
}, key: index })) : (react_1.default.createElement(NavigationPopupItem_1.NavigationPopupItem, Object.assign({}, item, { key: item.title, hover: true, sizes: {
|
|
48
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Xl]: 3,
|
|
49
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Md]: 4,
|
|
50
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
51
|
+
} })));
|
|
52
|
+
})))))));
|
|
53
|
+
};
|
|
54
|
+
exports.MediumPopupWithCategories = MediumPopupWithCategories;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MediumPopupWithFloors = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const cn_1 = require("../../../../../utils/cn");
|
|
8
|
+
const PopupGroup_1 = require("../components/PopupGroup/PopupGroup");
|
|
9
|
+
const b = (0, cn_1.block)('medium-popup-with-floors');
|
|
10
|
+
const DefaultItemSizes = {
|
|
11
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Lg]: 3,
|
|
12
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Sm]: 4,
|
|
13
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
14
|
+
};
|
|
15
|
+
const MediumPopupWithFloors = ({ data }) => {
|
|
16
|
+
return (react_1.default.createElement("div", { className: b() }, data.groups.map((group, index) => (react_1.default.createElement(PopupGroup_1.PopupGroup, Object.assign({}, group, { key: group.title || group.url || index, sizes: DefaultItemSizes, withFixItems: true, withPadding: true }))))));
|
|
17
|
+
};
|
|
18
|
+
exports.MediumPopupWithFloors = MediumPopupWithFloors;
|
package/build/cjs/components/Navigation/components/popups/components/PopupCategory/PopupCategory.css
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-popup-category {
|
|
4
|
+
margin-bottom: 4px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pc-addons-popup-category__button {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
font: inherit;
|
|
12
|
+
border: none;
|
|
13
|
+
outline: none;
|
|
14
|
+
color: inherit;
|
|
15
|
+
background: none;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
padding: 8px 12px;
|
|
18
|
+
width: 100%;
|
|
19
|
+
text-align: initial;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
border-radius: var(--g-border-radius-l);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pc-addons-popup-category__button:focus {
|
|
25
|
+
outline: 2px solid var(--g-color-line-focus);
|
|
26
|
+
outline-offset: -2px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pc-addons-popup-category__button:focus:not(:focus-visible) {
|
|
30
|
+
outline: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pc-addons-popup-category__button:hover {
|
|
34
|
+
background-color: var(--g-color-base-simple-hover);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pc-addons-popup-category__button_active {
|
|
38
|
+
background-color: var(--g-color-base-selection);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pc-addons-popup-category__button_active:hover {
|
|
42
|
+
background-color: var(--g-color-base-selection-hover);
|
|
43
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CategoryData } from '../../../../models';
|
|
3
|
+
interface ExtraPopupCategoryProps {
|
|
4
|
+
data: CategoryData;
|
|
5
|
+
onClick: (category: CategoryData) => void;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const PopupCategory: ({ data, onClick, isActive }: ExtraPopupCategoryProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
package/build/cjs/components/Navigation/components/popups/components/PopupCategory/PopupCategory.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PopupCategory = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const cn_1 = require("../../../../../../utils/cn");
|
|
7
|
+
const b = (0, cn_1.block)('popup-category');
|
|
8
|
+
const PopupCategory = ({ data, onClick, isActive }) => {
|
|
9
|
+
const { title } = data;
|
|
10
|
+
return (react_1.default.createElement("li", { className: b(), key: title, "aria-current": isActive || undefined },
|
|
11
|
+
react_1.default.createElement("button", { className: b('button', { active: isActive }), onClick: () => onClick(data) }, title)));
|
|
12
|
+
};
|
|
13
|
+
exports.PopupCategory = PopupCategory;
|
package/build/cjs/components/Navigation/components/popups/components/PopupGroup/PopupGroup.css
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.pc-addons-popup-group {
|
|
2
|
+
margin-left: -12px;
|
|
3
|
+
padding-left: 12px;
|
|
4
|
+
border-radius: var(--g-border-radius-xl);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pc-addons-popup-group + .pc-addons-popup-group {
|
|
8
|
+
margin-top: 12px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pc-addons-popup-group__title {
|
|
12
|
+
margin-bottom: 8px;
|
|
13
|
+
padding: var(--pc-addons-navigation-popup-padding) 12px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pc-addons-popup-group__items.row.row.row {
|
|
17
|
+
margin-left: -16px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pc-addons-popup-group__items_fix.row.row.row {
|
|
21
|
+
margin-left: -12px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pc-addons-popup-group__padding {
|
|
25
|
+
padding-top: 8px;
|
|
26
|
+
padding-bottom: 8px;
|
|
27
|
+
}
|
package/build/cjs/components/Navigation/components/popups/components/PopupGroup/PopupGroup.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridColumnSizesType } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { CategoryGroupData } from '../../../../models';
|
|
4
|
+
type PopupGroupProps = CategoryGroupData & {
|
|
5
|
+
section?: string;
|
|
6
|
+
sizes?: GridColumnSizesType;
|
|
7
|
+
withFixItems?: boolean;
|
|
8
|
+
withPadding?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const PopupGroup: ({ sizes, section, withFixItems, withPadding, ...group }: PopupGroupProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PopupGroup = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const cn_1 = require("../../../../../../utils/cn");
|
|
8
|
+
const NavigationItemsList_1 = require("../../../Navigation/NavigationItemsList/NavigationItemsList");
|
|
9
|
+
const PopupTitle_1 = require("../PopupTitle/PopupTitle");
|
|
10
|
+
const b = (0, cn_1.block)('popup-group');
|
|
11
|
+
const PopupGroup = (_a) => {
|
|
12
|
+
var { sizes, section, withFixItems, withPadding } = _a, group = tslib_1.__rest(_a, ["sizes", "section", "withFixItems", "withPadding"]);
|
|
13
|
+
const items = (0, react_1.useMemo)(() => group.items.map((item) => (Object.assign(Object.assign({}, item), { description: group.showItemDescriptions === 'no' ? undefined : item.description, icon: group.showItemIcons === 'no' ? undefined : item.icon, image: group.showItemIcons === 'no' ? undefined : item.image }))), [group.items, group.showItemDescriptions, group.showItemIcons]);
|
|
14
|
+
return (react_1.default.createElement("div", { className: withPadding ? [b(), b('padding')].join(' ') : b(), style: { backgroundColor: group.backgroundColor } },
|
|
15
|
+
group.title && (react_1.default.createElement(gravity_ui_page_constructor_1.Row, null,
|
|
16
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b('title') },
|
|
17
|
+
react_1.default.createElement(PopupTitle_1.PopupTitle, Object.assign({}, group))))),
|
|
18
|
+
react_1.default.createElement("div", null,
|
|
19
|
+
react_1.default.createElement(NavigationItemsList_1.NavigationItemsList, { items: items, section: section, sizes: sizes, className: withFixItems ? [b('items'), b('items_fix')].join(' ') : b('items') }))));
|
|
20
|
+
};
|
|
21
|
+
exports.PopupGroup = PopupGroup;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.pc-addons-popup-secondary-group {
|
|
2
|
+
width: calc(100% + 12px);
|
|
3
|
+
margin-top: 32px;
|
|
4
|
+
margin-left: -12px;
|
|
5
|
+
padding-top: 14px;
|
|
6
|
+
padding-bottom: 16px;
|
|
7
|
+
border-radius: var(--g-border-radius-xl);
|
|
8
|
+
background-color: var(--g-color-base-generic-ultralight);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pc-addons-popup-secondary-group__title {
|
|
12
|
+
margin: 0 0 15px 16px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pc-addons-popup-secondary-group__items.row.row {
|
|
16
|
+
margin-left: -4px;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridColumnSizesType } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { CategoryGroupData } from '../../../../models';
|
|
4
|
+
type PopupSecondaryGroupProps = CategoryGroupData & {
|
|
5
|
+
sizes?: GridColumnSizesType;
|
|
6
|
+
};
|
|
7
|
+
export declare const PopupSecondaryGroup: ({ sizes, ...props }: PopupSecondaryGroupProps) => React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PopupSecondaryGroup = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const cn_1 = require("../../../../../../utils/cn");
|
|
8
|
+
const NavigationPopupItem_1 = require("../../../Navigation/NavigationPopupItem/NavigationPopupItem");
|
|
9
|
+
const PopupTitle_1 = require("../PopupTitle/PopupTitle");
|
|
10
|
+
const b = (0, cn_1.block)('popup-secondary-group');
|
|
11
|
+
const PopupSecondaryGroup = (_a) => {
|
|
12
|
+
var { sizes } = _a, props = tslib_1.__rest(_a, ["sizes"]);
|
|
13
|
+
return (react_1.default.createElement("div", { className: b() },
|
|
14
|
+
react_1.default.createElement(PopupTitle_1.PopupTitle, Object.assign({}, props, { className: b('title') })),
|
|
15
|
+
react_1.default.createElement("div", null,
|
|
16
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, { className: b('items') }, Object.values(props.items).map(({ title: popupTitle, icon, url: itemUrl }) => {
|
|
17
|
+
return (react_1.default.createElement(NavigationPopupItem_1.NavigationPopupItem, { key: popupTitle, url: itemUrl, image: icon, title: popupTitle, padding: "s", imageSize: "s", sizes: sizes }));
|
|
18
|
+
})))));
|
|
19
|
+
};
|
|
20
|
+
exports.PopupSecondaryGroup = PopupSecondaryGroup;
|
package/build/cjs/components/Navigation/components/popups/components/PopupTitle/PopupTitle.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ClassNameProps } from '@doyourjob/gravity-ui-page-constructor';
|
|
3
|
+
import { CategoryGroupData } from '../../../../models';
|
|
4
|
+
export declare const PopupTitle: ({ title, url, className }: CategoryGroupData & ClassNameProps) => React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PopupTitle = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const PopupTitle = ({ title, url, className }) => {
|
|
8
|
+
const titleProps = (0, react_1.useMemo)(() => {
|
|
9
|
+
return title
|
|
10
|
+
? {
|
|
11
|
+
text: title,
|
|
12
|
+
textSize: 'xs',
|
|
13
|
+
url: url,
|
|
14
|
+
}
|
|
15
|
+
: undefined;
|
|
16
|
+
}, [title, url]);
|
|
17
|
+
return react_1.default.createElement(gravity_ui_page_constructor_1.Title, { title: titleProps, className: className });
|
|
18
|
+
};
|
|
19
|
+
exports.PopupTitle = PopupTitle;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-addons-popup-search {
|
|
4
|
+
font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
|
|
5
|
+
line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: flex-end;
|
|
10
|
+
max-width: 376px;
|
|
11
|
+
height: 44px;
|
|
12
|
+
transition: width 0.3s;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.pc-addons-popup-search__close-button, .pc-addons-popup-search__search-button {
|
|
16
|
+
position: absolute;
|
|
17
|
+
z-index: 2;
|
|
18
|
+
right: 10px;
|
|
19
|
+
color: var(--g-color-text-hint);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.pc-addons-popup-search__search-button:hover {
|
|
23
|
+
color: var(--g-color-text-secondary);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pc-addons-popup-search__search-suggest-container {
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.pc-addons-popup-search__search-suggest .yc-text-input__control {
|
|
31
|
+
padding-right: 32px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pc-addons-popup-search_size_s {
|
|
35
|
+
height: 36px;
|
|
36
|
+
width: 352px;
|
|
37
|
+
max-width: 100%;
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconData } from '@gravity-ui/uikit';
|
|
3
|
+
import { ClassNameProps } from '../../../../../../models';
|
|
4
|
+
export type SearchSize = 's' | 'm';
|
|
5
|
+
interface SearchProps extends ClassNameProps {
|
|
6
|
+
value?: string;
|
|
7
|
+
initialValue: string;
|
|
8
|
+
onSubmit: (value: string) => void;
|
|
9
|
+
debounce?: number;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
size?: SearchSize;
|
|
12
|
+
autoFocus?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
customSearchIcon?: IconData;
|
|
15
|
+
}
|
|
16
|
+
declare const Search: (props: SearchProps) => React.JSX.Element;
|
|
17
|
+
export default Search;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
5
|
+
const icons_1 = require("@gravity-ui/icons");
|
|
6
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
|
|
8
|
+
const useIsIPhone_1 = require("../../../../../../hooks/useIsIPhone");
|
|
9
|
+
const cn_1 = require("../../../../../../utils/cn");
|
|
10
|
+
const i18n_1 = tslib_1.__importDefault(require("./i18n"));
|
|
11
|
+
const b = (0, cn_1.block)('popup-search');
|
|
12
|
+
const Search = (props) => {
|
|
13
|
+
const { className, initialValue, onSubmit, debounce: debounceTime = 300, placeholder = (0, i18n_1.default)('search'), size = 'm', autoFocus = false, value: externalValue, customSearchIcon, } = props;
|
|
14
|
+
const [value, setValue] = (0, react_1.useState)(initialValue);
|
|
15
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
16
|
+
const onChangeDebounce = (0, react_1.useCallback)((0, debounce_1.default)(onSubmit, debounceTime), []);
|
|
17
|
+
const inputRef = (0, react_1.useRef)(null);
|
|
18
|
+
const isIPhone = (0, useIsIPhone_1.useIsIPhone)();
|
|
19
|
+
(0, react_1.useEffect)(() => {
|
|
20
|
+
if (externalValue !== undefined) {
|
|
21
|
+
setValue(externalValue);
|
|
22
|
+
}
|
|
23
|
+
}, [externalValue]);
|
|
24
|
+
(0, react_1.useEffect)(() => {
|
|
25
|
+
if (autoFocus && !isIPhone) {
|
|
26
|
+
setTimeout(() => { var _a; return (_a = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true }); }, 0);
|
|
27
|
+
}
|
|
28
|
+
}, [autoFocus, inputRef, isIPhone]);
|
|
29
|
+
return (react_1.default.createElement("div", { className: b({ size }, className) },
|
|
30
|
+
react_1.default.createElement("div", { className: b('search-suggest-container'), "data-qa": "search-suggest-container" },
|
|
31
|
+
react_1.default.createElement(uikit_1.TextInput, { value: value, onUpdate: (query) => {
|
|
32
|
+
setValue(query);
|
|
33
|
+
onChangeDebounce(query);
|
|
34
|
+
}, placeholder: placeholder, className: b('search-suggest'), size: size === 'm' ? 'xl' : 'l', controlRef: inputRef })),
|
|
35
|
+
value ? (react_1.default.createElement(uikit_1.Button, { className: b('close-button'), size: "xs", onClick: () => {
|
|
36
|
+
onChangeDebounce.cancel();
|
|
37
|
+
setValue('');
|
|
38
|
+
onSubmit('');
|
|
39
|
+
}, view: "flat", extraProps: { 'aria-label': (0, i18n_1.default)('clear-button-label') } },
|
|
40
|
+
react_1.default.createElement(uikit_1.Icon, { data: icons_1.Xmark, size: 18 }))) : (react_1.default.createElement(uikit_1.Button, { className: b('search-button'), size: "xs", disabled: true, onClick: () => {
|
|
41
|
+
onChangeDebounce.cancel();
|
|
42
|
+
setValue('');
|
|
43
|
+
onSubmit('');
|
|
44
|
+
}, view: "flat", extraProps: { 'aria-label': (0, i18n_1.default)('search-button-label') } },
|
|
45
|
+
react_1.default.createElement(uikit_1.Icon, { data: customSearchIcon || icons_1.Magnifier, size: 16 })))));
|
|
46
|
+
};
|
|
47
|
+
exports.default = Search;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const registerKeyset_1 = require("../../../../../../../utils/registerKeyset");
|
|
5
|
+
const en_json_1 = tslib_1.__importDefault(require("./en.json"));
|
|
6
|
+
const ru_json_1 = tslib_1.__importDefault(require("./ru.json"));
|
|
7
|
+
const COMPONENT = 'Search';
|
|
8
|
+
exports.default = (0, registerKeyset_1.registerKeyset)({ en: en_json_1.default, ru: ru_json_1.default }, COMPONENT);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DefaultCategorizedItemSizes = exports.NO_MENU_TAB_SELECTED = exports.SWITCH_MENU_TAB_TIMEOUT = void 0;
|
|
4
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
5
|
+
exports.SWITCH_MENU_TAB_TIMEOUT = 200;
|
|
6
|
+
exports.NO_MENU_TAB_SELECTED = -1;
|
|
7
|
+
exports.DefaultCategorizedItemSizes = {
|
|
8
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Lg]: 4,
|
|
9
|
+
[gravity_ui_page_constructor_1.GridColumnSize.Sm]: 6,
|
|
10
|
+
[gravity_ui_page_constructor_1.GridColumnSize.All]: 12,
|
|
11
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
:root {
|
|
4
|
+
--footer-margin-xs: 12px;
|
|
5
|
+
--footer-margin-s: 16px;
|
|
6
|
+
--footer-margin-m: 24px;
|
|
7
|
+
--footer-margin-l: 32px;
|
|
8
|
+
--footer-margin-xl: 48px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pc-addons-footer {
|
|
12
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
13
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pc-addons-footer_type_default .pc-addons-footer__container-fluid {
|
|
17
|
+
padding-top: var(--footer-margin-xl);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pc-addons-footer_type_simple {
|
|
21
|
+
margin: 0 40px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pc-addons-footer__group-wrapper + .pc-addons-footer__group-wrapper {
|
|
25
|
+
margin-top: var(--footer-margin-xl);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.pc-addons-footer__underline {
|
|
29
|
+
border-top: 1px solid var(--g-color-line-generic);
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
width: 100%;
|
|
33
|
+
padding: var(--footer-margin-l) 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.pc-addons-footer__column_underline:not(:only-child) {
|
|
37
|
+
margin-top: var(--footer-margin-xl);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.pc-addons-footer__underline-links {
|
|
41
|
+
display: flex;
|
|
42
|
+
color: var(--g-color-text-primary);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pc-addons-footer__item:focus {
|
|
46
|
+
outline: 2px solid var(--g-color-line-focus);
|
|
47
|
+
outline-offset: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.pc-addons-footer__item:focus:not(:focus-visible) {
|
|
51
|
+
outline: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pc-addons-footer__item_underline:not(:last-child) {
|
|
55
|
+
margin-right: var(--footer-margin-m);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.pc-addons-footer__item_lang-switch {
|
|
59
|
+
top: -3px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pc-addons-footer__copyright {
|
|
63
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
64
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
65
|
+
color: var(--g-color-text-primary);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mobile .pc-addons-footer_type_simple {
|
|
69
|
+
margin: 0 20px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (max-width: 1081px) {
|
|
73
|
+
.pc-addons-footer__underline {
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
}
|
|
76
|
+
.pc-addons-footer__underline-links:not(:last-child) {
|
|
77
|
+
margin-bottom: var(--footer-margin-s);
|
|
78
|
+
}
|
|
79
|
+
.pc-addons-footer__project {
|
|
80
|
+
margin: 0 var(--footer-margin-m) 0 0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
@media (max-width: 769px) {
|
|
84
|
+
.pc-addons-footer__underline-links {
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
}
|
|
87
|
+
.pc-addons-footer__item_underline:not(:last-child) {
|
|
88
|
+
margin-bottom: var(--footer-margin-s);
|
|
89
|
+
}
|
|
90
|
+
.pc-addons-footer__project {
|
|
91
|
+
margin: 0 0 var(--footer-margin-s) 0;
|
|
92
|
+
}
|
|
93
|
+
.pc-addons-footer__column {
|
|
94
|
+
margin-top: var(--footer-margin-xl);
|
|
95
|
+
}
|
|
96
|
+
.pc-addons-footer_type_simple {
|
|
97
|
+
margin: 0 20px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
@media (min-width: 577px) and (max-width: 769px) {
|
|
101
|
+
.pc-addons-footer__column_underline {
|
|
102
|
+
padding: 0 8px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Footer = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const gravity_ui_page_constructor_1 = require("@doyourjob/gravity-ui-page-constructor");
|
|
7
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
8
|
+
const cn_1 = require("../../../../utils/cn");
|
|
9
|
+
const EnrichedLink_1 = require("../../../EnrichedLink/EnrichedLink");
|
|
10
|
+
const LangSwitch_1 = require("../../components/LangSwitch");
|
|
11
|
+
const GroupLinks_1 = tslib_1.__importDefault(require("./GroupLinks/GroupLinks"));
|
|
12
|
+
const b = (0, cn_1.block)('footer');
|
|
13
|
+
const columnSize = {
|
|
14
|
+
all: 6,
|
|
15
|
+
sm: 3,
|
|
16
|
+
md: 2,
|
|
17
|
+
};
|
|
18
|
+
const Footer = (props) => {
|
|
19
|
+
const { type = 'default', underline, columns, media, customItems } = props;
|
|
20
|
+
const isMobile = (0, uikit_1.useMobile)();
|
|
21
|
+
const mediaContent = (0, react_1.useMemo)(() => {
|
|
22
|
+
if (!media) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return react_1.default.createElement(gravity_ui_page_constructor_1.Col, { sizes: { all: 12, md: media.md || 6 } }, media.item);
|
|
26
|
+
}, [media]);
|
|
27
|
+
const groupLinks = (0, react_1.useMemo)(() => {
|
|
28
|
+
if (!(columns === null || columns === void 0 ? void 0 : columns.length)) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, columns.map((groups, index) => (react_1.default.createElement(gravity_ui_page_constructor_1.Col, { key: index, className: b('column'), sizes: columnSize }, groups.map((group, groupIndex) => (react_1.default.createElement(GroupLinks_1.default, { key: groupIndex, columnGroup: group, className: b('group-wrapper') }))))))));
|
|
32
|
+
}, [columns]);
|
|
33
|
+
const isSimple = type === 'simple';
|
|
34
|
+
const underlineBlock = (0, react_1.useMemo)(() => {
|
|
35
|
+
var _a, _b;
|
|
36
|
+
if (!underline) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
const itemClass = b('item', { underline: true });
|
|
40
|
+
return (react_1.default.createElement("div", { className: b('underline') },
|
|
41
|
+
react_1.default.createElement("div", { className: b('underline-links') },
|
|
42
|
+
underline.langSwitch && (react_1.default.createElement(LangSwitch_1.LangSwitch, Object.assign({}, underline.langSwitch, { className: b('item', { underline: true, 'lang-switch': true }), direction: ['top-start', 'top', 'top-end'], size: "m", iconSize: 16, isMobile: isMobile }))),
|
|
43
|
+
!isSimple &&
|
|
44
|
+
((_a = underline.leftItems) === null || _a === void 0 ? void 0 : _a.map((item) => (react_1.default.createElement(EnrichedLink_1.EnrichedLink, Object.assign({ key: item.title, className: itemClass }, item)))))),
|
|
45
|
+
react_1.default.createElement("div", { className: b('underline-links') }, (_b = underline.rightItems) === null || _b === void 0 ? void 0 :
|
|
46
|
+
_b.map((item) => (react_1.default.createElement(EnrichedLink_1.EnrichedLink, Object.assign({ key: item.title, className: itemClass }, item)))),
|
|
47
|
+
underline.copyright && (react_1.default.createElement("div", { className: b('copyright') }, underline.copyright)))));
|
|
48
|
+
}, [underline, isSimple, isMobile]);
|
|
49
|
+
const isRightMedia = (media === null || media === void 0 ? void 0 : media.position) === 'right';
|
|
50
|
+
return (react_1.default.createElement("footer", { className: b({ type }) }, isSimple ? (underlineBlock) : (react_1.default.createElement(gravity_ui_page_constructor_1.Grid, { containerClass: b('container-fluid') },
|
|
51
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Row, { className: b('wrapper') },
|
|
52
|
+
!isRightMedia && mediaContent,
|
|
53
|
+
groupLinks,
|
|
54
|
+
isRightMedia && mediaContent,
|
|
55
|
+
customItems,
|
|
56
|
+
react_1.default.createElement(gravity_ui_page_constructor_1.Col, { className: b('column', { underline: true }), sizes: { all: 12 } }, underlineBlock))))));
|
|
57
|
+
};
|
|
58
|
+
exports.Footer = Footer;
|