@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,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DEFAULT_THEME } from '../../constants';
|
|
3
|
+
export var Theme;
|
|
4
|
+
(function (Theme) {
|
|
5
|
+
Theme["Light"] = "light";
|
|
6
|
+
Theme["Dark"] = "dark";
|
|
7
|
+
})(Theme || (Theme = {}));
|
|
8
|
+
export const initialValue = {
|
|
9
|
+
theme: DEFAULT_THEME,
|
|
10
|
+
};
|
|
11
|
+
export const ThemeContext = React.createContext(initialValue);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Subtract } from 'utility-types';
|
|
3
|
+
import { ThemeContextProps } from './ThemeContext';
|
|
4
|
+
export interface WithThemeProps extends ThemeContextProps {
|
|
5
|
+
}
|
|
6
|
+
export declare function withTheme<T extends WithThemeProps>(WrappedComponent: React.ComponentType<T>): React.ComponentType<Subtract<T, WithThemeProps>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeContext } from './ThemeContext';
|
|
3
|
+
export function withTheme(WrappedComponent) {
|
|
4
|
+
var _a;
|
|
5
|
+
const componentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
6
|
+
return _a = class WithThemeComponent extends React.Component {
|
|
7
|
+
render() {
|
|
8
|
+
return React.createElement(WrappedComponent, Object.assign({}, this.props, { theme: this.context.theme }));
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
_a.displayName = `withTheme(${componentName})`,
|
|
12
|
+
_a.contextType = ThemeContext,
|
|
13
|
+
_a;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsCurrentPage: (url?: string) => boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
|
+
export const useIsCurrentPage = (url) => {
|
|
3
|
+
const [isCurrentPage, setIsCurrentPage] = React.useState(false);
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
setIsCurrentPage(Boolean(url && location.href.includes(url)));
|
|
6
|
+
}, [url]);
|
|
7
|
+
return isCurrentPage;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsIPhone(): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { DeviceContext } from '../components/Navigation/contexts/device';
|
|
3
|
+
export function useIsIPhone() {
|
|
4
|
+
const device = useContext(DeviceContext);
|
|
5
|
+
return (device === null || device === void 0 ? void 0 : device.model) === 'iPhone';
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { I18N } from '@gravity-ui/i18n';
|
|
2
|
+
import { Lang, getConfig, subscribeConfigure } from './utils/configure';
|
|
3
|
+
export const i18n = new I18N();
|
|
4
|
+
i18n.setLang(getConfig().lang || Lang.En);
|
|
5
|
+
subscribeConfigure((config) => {
|
|
6
|
+
if (config.lang) {
|
|
7
|
+
i18n.setLang(config.lang);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FocusTrapProps {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
/** @deprecated Use autoFocus instead */
|
|
5
|
+
disableAutoFocus?: boolean;
|
|
6
|
+
autoFocus?: boolean;
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
export declare function FocusTrap({ children, enabled, disableAutoFocus, autoFocus, }: FocusTrapProps): React.JSX.Element;
|
|
10
|
+
export declare function useParentFocusTrap(): ((node: HTMLElement | null) => void) | undefined;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useForkRef, useUniqId } from '@gravity-ui/uikit';
|
|
3
|
+
import { createFocusTrap } from 'focus-trap';
|
|
4
|
+
const focusTrapContext = React.createContext(undefined);
|
|
5
|
+
export function FocusTrap({ children, enabled = true, disableAutoFocus, autoFocus = true, }) {
|
|
6
|
+
const nodeRef = React.useRef(null);
|
|
7
|
+
const setAutoFocusRef = React.useRef(!disableAutoFocus && autoFocus);
|
|
8
|
+
React.useEffect(() => {
|
|
9
|
+
setAutoFocusRef.current = !disableAutoFocus && autoFocus;
|
|
10
|
+
});
|
|
11
|
+
const focusTrapRef = React.useRef();
|
|
12
|
+
const containersRef = React.useRef({});
|
|
13
|
+
const updateContainerElements = React.useCallback(() => {
|
|
14
|
+
var _a;
|
|
15
|
+
(_a = focusTrapRef.current) === null || _a === void 0 ? void 0 : _a.updateContainerElements([
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
17
|
+
nodeRef.current,
|
|
18
|
+
...Object.values(containersRef.current),
|
|
19
|
+
]);
|
|
20
|
+
}, []);
|
|
21
|
+
const actions = React.useMemo(() => ({
|
|
22
|
+
addNode(id, node) {
|
|
23
|
+
var _a;
|
|
24
|
+
if (containersRef.current[id] !== node && !((_a = nodeRef.current) === null || _a === void 0 ? void 0 : _a.contains(node))) {
|
|
25
|
+
containersRef.current[id] = node;
|
|
26
|
+
updateContainerElements();
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
removeNode(id) {
|
|
30
|
+
if (containersRef.current[id]) {
|
|
31
|
+
delete containersRef.current[id];
|
|
32
|
+
updateContainerElements();
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
}), [updateContainerElements]);
|
|
36
|
+
const handleNodeRef = React.useCallback((node) => {
|
|
37
|
+
var _a;
|
|
38
|
+
if (enabled && node) {
|
|
39
|
+
nodeRef.current = node;
|
|
40
|
+
if (!focusTrapRef.current) {
|
|
41
|
+
focusTrapRef.current = createFocusTrap([], {
|
|
42
|
+
initialFocus: () => setAutoFocusRef.current && getFocusElement(node),
|
|
43
|
+
fallbackFocus: () => node,
|
|
44
|
+
returnFocusOnDeactivate: false,
|
|
45
|
+
escapeDeactivates: false,
|
|
46
|
+
clickOutsideDeactivates: false,
|
|
47
|
+
allowOutsideClick: true,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
updateContainerElements();
|
|
51
|
+
focusTrapRef.current.activate();
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
(_a = focusTrapRef.current) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
55
|
+
nodeRef.current = null;
|
|
56
|
+
}
|
|
57
|
+
}, [enabled, updateContainerElements]);
|
|
58
|
+
const child = React.Children.only(children);
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
60
|
+
if (!React.isValidElement(child)) {
|
|
61
|
+
throw new Error('Children must contain only one valid element');
|
|
62
|
+
}
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
|
+
const childRef = child.ref;
|
|
65
|
+
const ref = useForkRef(handleNodeRef, childRef);
|
|
66
|
+
return (React.createElement(focusTrapContext.Provider, { value: actions }, React.cloneElement(child, { ref })));
|
|
67
|
+
}
|
|
68
|
+
export function useParentFocusTrap() {
|
|
69
|
+
const actions = React.useContext(focusTrapContext);
|
|
70
|
+
const id = useUniqId();
|
|
71
|
+
return React.useMemo(() => {
|
|
72
|
+
if (!actions) {
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
return (node) => {
|
|
76
|
+
if (node) {
|
|
77
|
+
actions.addNode(id, node);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
actions.removeNode(id);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}, [actions, id]);
|
|
84
|
+
}
|
|
85
|
+
function getFocusElement(root) {
|
|
86
|
+
if (!(document.activeElement instanceof HTMLElement) ||
|
|
87
|
+
!root.contains(document.activeElement)) {
|
|
88
|
+
if (!root.hasAttribute('tabIndex')) {
|
|
89
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
90
|
+
// used only in dev build
|
|
91
|
+
// eslint-disable-next-line no-console
|
|
92
|
+
console.error('@gravity-ui/uikit: focus-trap content node does node accept focus.');
|
|
93
|
+
}
|
|
94
|
+
root.setAttribute('tabIndex', '-1');
|
|
95
|
+
}
|
|
96
|
+
return root;
|
|
97
|
+
}
|
|
98
|
+
return document.activeElement;
|
|
99
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const NAMESPACE = "pc-addons-";
|
|
2
|
+
export declare const cn: import("@bem-react/classname").ClassNameInitilizer;
|
|
3
|
+
export declare const block: import("@bem-react/classname").ClassNameInitilizer;
|
|
4
|
+
export declare const rootCn: import("@bem-react/classname").ClassNameFormatter;
|
|
5
|
+
export type CnBlock = ReturnType<typeof cn>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { withNaming } from '@bem-react/classname';
|
|
2
|
+
import { UIKIT_ROOT_CLASS } from '../constants';
|
|
3
|
+
export const NAMESPACE = 'pc-addons-';
|
|
4
|
+
export const cn = withNaming({ e: '__', m: '_' });
|
|
5
|
+
export const block = withNaming({ n: NAMESPACE, e: '__', m: '_' });
|
|
6
|
+
export const rootCn = cn(UIKIT_ROOT_CLASS);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum Lang {
|
|
2
|
+
Ru = "ru",
|
|
3
|
+
En = "en"
|
|
4
|
+
}
|
|
5
|
+
interface Config {
|
|
6
|
+
lang?: Lang;
|
|
7
|
+
}
|
|
8
|
+
type Subscriber = (config: Config) => void;
|
|
9
|
+
export declare const configure: (newConfig: Config) => void;
|
|
10
|
+
export declare const subscribeConfigure: (sub: Subscriber) => () => void;
|
|
11
|
+
export declare const getConfig: () => Config;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export var Lang;
|
|
2
|
+
(function (Lang) {
|
|
3
|
+
Lang["Ru"] = "ru";
|
|
4
|
+
Lang["En"] = "en";
|
|
5
|
+
})(Lang || (Lang = {}));
|
|
6
|
+
let subs = [];
|
|
7
|
+
const config = {};
|
|
8
|
+
export const configure = (newConfig) => {
|
|
9
|
+
Object.assign(config, newConfig);
|
|
10
|
+
subs.forEach((sub) => {
|
|
11
|
+
sub(config);
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export const subscribeConfigure = (sub) => {
|
|
15
|
+
subs.push(sub);
|
|
16
|
+
return () => {
|
|
17
|
+
subs = subs.filter((item) => item !== sub);
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export const getConfig = () => config;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { i18n } from '../i18n';
|
|
2
|
+
import { Lang } from './configure';
|
|
3
|
+
type KeysData = Parameters<typeof i18n.registerKeyset>[2];
|
|
4
|
+
export declare function registerKeyset<T extends KeysData>(data: Record<Lang, T>, keysetName: string): (key: string, params?: import("@gravity-ui/i18n").Params | undefined) => string;
|
|
5
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@doyourjob/gravity-ui-page-constructor-addons",
|
|
3
|
+
"version": "2.1.8",
|
|
4
|
+
"description": "Components and plugins for @doyourjob/gravity-ui-page-constructor",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/doyourjob-agency/page-constructor-addons"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./build/esm/index.d.ts",
|
|
13
|
+
"require": "./build/cjs/index.js",
|
|
14
|
+
"import": "./build/esm/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./navigation": {
|
|
17
|
+
"types": "./build/esm/navigation/index.d.ts",
|
|
18
|
+
"require": "./build/cjs/navigation/index.js",
|
|
19
|
+
"import": "./build/esm/navigation/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./styles/*": "./styles/*"
|
|
22
|
+
},
|
|
23
|
+
"main": "./build/cjs/index.js",
|
|
24
|
+
"module": "./build/esm/index.js",
|
|
25
|
+
"types": "./build/esm/index.d.ts",
|
|
26
|
+
"typesVersions": {
|
|
27
|
+
"*": {
|
|
28
|
+
"index.d.ts": [
|
|
29
|
+
"./build/esm/index.d.ts"
|
|
30
|
+
],
|
|
31
|
+
"navigation": [
|
|
32
|
+
"./build/esm/navigation/index.d.ts"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"build",
|
|
38
|
+
"styles"
|
|
39
|
+
],
|
|
40
|
+
"sideEffects": [
|
|
41
|
+
"*.css",
|
|
42
|
+
"*.scss"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"deps:install": "npm ci",
|
|
46
|
+
"deps:truncate": "npm prune --production",
|
|
47
|
+
"lint:fix": "run-s lint:js:fix lint:styles:fix lint:prettier:fix typecheck",
|
|
48
|
+
"lint:js": "eslint '**/*.{js,jsx,ts,tsx}' --max-warnings=0",
|
|
49
|
+
"lint:js:fix": "eslint '**/*.{js,jsx,ts,tsx}' --max-warnings=0 --quiet --fix",
|
|
50
|
+
"lint:styles": "stylelint '{styles,src}/**/*.scss'",
|
|
51
|
+
"lint:styles:fix": "stylelint **/*.scss --fix",
|
|
52
|
+
"lint:prettier": "prettier --check '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md}'",
|
|
53
|
+
"lint:prettier:fix": "prettier --write '**/*.{js,jsx,ts,tsx,css,scss,json,yaml,yml,md}'",
|
|
54
|
+
"lint": "run-p lint:js lint:styles lint:prettier typecheck",
|
|
55
|
+
"typecheck": "tsc --noEmit",
|
|
56
|
+
"dev": "npm run storybook:start",
|
|
57
|
+
"storybook:start": "sb dev -p 7009",
|
|
58
|
+
"storybook:build": "sb build -c .storybook -o storybook-static",
|
|
59
|
+
"start": "node dist",
|
|
60
|
+
"clean": "gulp clean",
|
|
61
|
+
"build": "gulp",
|
|
62
|
+
"prepublishOnly": "npm run lint && npm run build",
|
|
63
|
+
"prepare": "husky install",
|
|
64
|
+
"test": "jest --passWithNoTests",
|
|
65
|
+
"test:coverage": "jest --coverage",
|
|
66
|
+
"test:watch": "jest --watchAll"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@bem-react/classname": "^1.6.0",
|
|
70
|
+
"@gravity-ui/icons": "^2.8.1",
|
|
71
|
+
"lodash": "^4.17.21",
|
|
72
|
+
"react-transition-group": "^4.4.5"
|
|
73
|
+
},
|
|
74
|
+
"peerDependencies": {
|
|
75
|
+
"@doyourjob/gravity-ui-page-constructor": "^5.31.32",
|
|
76
|
+
"@gravity-ui/uikit": "^6.23.1",
|
|
77
|
+
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@babel/preset-env": "^7.22.9",
|
|
81
|
+
"@babel/preset-react": "^7.22.5",
|
|
82
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
83
|
+
"@commitlint/cli": "^17.1.2",
|
|
84
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
85
|
+
"@gravity-ui/eslint-config": "^2.0.0",
|
|
86
|
+
"@gravity-ui/prettier-config": "^1.0.1",
|
|
87
|
+
"@gravity-ui/stylelint-config": "^1.0.0",
|
|
88
|
+
"@gravity-ui/tsconfig": "^1.0.0",
|
|
89
|
+
"@gravity-ui/uikit": "^6.23.1",
|
|
90
|
+
"@storybook/addon-actions": "^7.1.0",
|
|
91
|
+
"@storybook/addon-essentials": "^7.1.0",
|
|
92
|
+
"@storybook/addon-knobs": "^7.0.2",
|
|
93
|
+
"@storybook/addon-viewport": "^7.1.0",
|
|
94
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
95
|
+
"@storybook/react": "^7.1.0",
|
|
96
|
+
"@storybook/react-webpack5": "^7.1.0",
|
|
97
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
98
|
+
"@testing-library/react": "^13.4.0",
|
|
99
|
+
"@testing-library/user-event": "^14.4.3",
|
|
100
|
+
"@types/jest": "^29.2.4",
|
|
101
|
+
"@types/lodash": "^4.14.176",
|
|
102
|
+
"@types/react": "^18.0.27",
|
|
103
|
+
"@types/react-dom": "^18.0.10",
|
|
104
|
+
"@types/webpack-env": "^1.18.1",
|
|
105
|
+
"es5-ext": "0.10.53",
|
|
106
|
+
"eslint": "^8.34.0",
|
|
107
|
+
"eslint-plugin-no-not-accumulator-reassign": "^0.1.0",
|
|
108
|
+
"eslint-plugin-react": "^7.33.0",
|
|
109
|
+
"eslint-plugin-testing-library": "^5.9.1",
|
|
110
|
+
"gulp": "^4.0.2",
|
|
111
|
+
"gulp-dart-sass": "^1.0.2",
|
|
112
|
+
"gulp-replace": "^1.1.4",
|
|
113
|
+
"gulp-ts-alias": "^2.0.0",
|
|
114
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
115
|
+
"html-loader": "^1.3.2",
|
|
116
|
+
"htmlparser2": "^6.1.0",
|
|
117
|
+
"husky": "^7.0.4",
|
|
118
|
+
"jest": "^29.3.1",
|
|
119
|
+
"jest-environment-jsdom": "^29.3.1",
|
|
120
|
+
"jest-transform-css": "^6.0.0",
|
|
121
|
+
"lint-staged": "^11.2.6",
|
|
122
|
+
"move-file-cli": "^3.0.0",
|
|
123
|
+
"npm-run-all": "^4.1.5",
|
|
124
|
+
"postcss": "^8.4.16",
|
|
125
|
+
"postcss-preset-env": "^9.0.0",
|
|
126
|
+
"postcss-scss": "^4.0.4",
|
|
127
|
+
"prettier": "2.4.1",
|
|
128
|
+
"react": "^18.2.0",
|
|
129
|
+
"react-docgen-typescript": "^2.2.2",
|
|
130
|
+
"react-dom": "^18.2.0",
|
|
131
|
+
"rimraf": "^3.0.2",
|
|
132
|
+
"sass": "^1.63.6",
|
|
133
|
+
"storybook": "^7.1.0",
|
|
134
|
+
"stylelint": "^14.11.0",
|
|
135
|
+
"ts-jest": "^29.0.3",
|
|
136
|
+
"tslib": "^2.4.0",
|
|
137
|
+
"typescript": "^4.9.4"
|
|
138
|
+
},
|
|
139
|
+
"lint-staged": {
|
|
140
|
+
"*.{css,scss}": [
|
|
141
|
+
"stylelint --fix",
|
|
142
|
+
"prettier --write"
|
|
143
|
+
],
|
|
144
|
+
"*.{js,jsx,ts,tsx}": [
|
|
145
|
+
"eslint --fix --quiet",
|
|
146
|
+
"prettier --write"
|
|
147
|
+
],
|
|
148
|
+
"*.{json,yaml,yml,md}": [
|
|
149
|
+
"prettier --write"
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
}
|
package/styles/.gitkeep
ADDED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'node_modules/@doyourjob/gravity-ui-page-constructor/styles/mixins.scss';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.demo-container {
|
|
2
|
+
min-height: calc(100vh - 1px);
|
|
3
|
+
padding: 50px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.demo-header {
|
|
7
|
+
margin-bottom: 20px;
|
|
8
|
+
font-size: var(--g-text-body-1-font-size);
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
text-transform: uppercase;
|
|
11
|
+
color: var(--g-color-text-primary);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.demo-description {
|
|
15
|
+
margin-bottom: 25px;
|
|
16
|
+
font-size: var(--g-text-body-2-font-size);
|
|
17
|
+
line-height: var(--g-text-body-2-line-height);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.demo-markdown {
|
|
21
|
+
.markdown-body {
|
|
22
|
+
padding: 20px;
|
|
23
|
+
color: var(--g-color-text-primary);
|
|
24
|
+
|
|
25
|
+
a {
|
|
26
|
+
color: var(--g-color-text-link);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pc-page-constructor {
|
|
32
|
+
// @deprecated
|
|
33
|
+
--pc-first-block-mobile-indent: 32px;
|
|
34
|
+
// @deprecated
|
|
35
|
+
--pc-first-block-indent: 64px;
|
|
36
|
+
margin-bottom: 120px;
|
|
37
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
|
|
3
|
+
@import './common';
|
|
4
|
+
@import './palette';
|
|
5
|
+
@import './typography';
|
|
6
|
+
/**
|
|
7
|
+
* storybook-host container style overrides
|
|
8
|
+
* @see {@link https://github.com/philcockfield/storybook-host/issues/43}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
[data-css-18sl43g] {
|
|
12
|
+
font-family: inherit !important;
|
|
13
|
+
line-height: inherit !important;
|
|
14
|
+
background: none !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.docs-story {
|
|
18
|
+
// to display in docs elements with z-index less than 0
|
|
19
|
+
z-index: 0 !important;
|
|
20
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
.palette {
|
|
2
|
+
&__section {
|
|
3
|
+
margin: auto auto 40px;
|
|
4
|
+
position: relative;
|
|
5
|
+
z-index: 1;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__section-message {
|
|
9
|
+
color: var(--g-color-text-brand);
|
|
10
|
+
margin-bottom: 10px;
|
|
11
|
+
margin-top: -10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__section-content {
|
|
15
|
+
margin-left: -20px;
|
|
16
|
+
padding-left: 20px;
|
|
17
|
+
padding-bottom: 35px;
|
|
18
|
+
position: relative;
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__section-contrast-layer {
|
|
23
|
+
z-index: -5;
|
|
24
|
+
position: absolute;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
right: 0;
|
|
28
|
+
height: 135px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__color {
|
|
32
|
+
&-block {
|
|
33
|
+
&:not(:last-child) {
|
|
34
|
+
margin-right: 20px;
|
|
35
|
+
}
|
|
36
|
+
width: 118px;
|
|
37
|
+
height: 158px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-description {
|
|
41
|
+
margin-top: 8px;
|
|
42
|
+
height: 40px;
|
|
43
|
+
color: var(--g-color-text-primary);
|
|
44
|
+
font-size: 13px;
|
|
45
|
+
}
|
|
46
|
+
&-caption {
|
|
47
|
+
opacity: 0.5;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-value {
|
|
51
|
+
width: 118px;
|
|
52
|
+
height: 118px;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
|
|
57
|
+
&_border_yes {
|
|
58
|
+
border: 1px solid var(--g-color-line-generic);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&_skip_yes {
|
|
62
|
+
color: var(--g-color-text-info);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.g-root_theme_light .palette__section-contrast-layer {
|
|
69
|
+
background: #000;
|
|
70
|
+
opacity: 0.02;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.g-root_theme_dark .palette__section-contrast-layer {
|
|
74
|
+
background: #323138;
|
|
75
|
+
}
|