@gravity-ui/blog-constructor 1.0.0-aplha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +231 -0
- package/LICENSE +21 -0
- package/README.md +14 -0
- package/build/cjs/blocks/Author/Author.css +31 -0
- package/build/cjs/blocks/Author/Author.d.ts +3 -0
- package/build/cjs/blocks/Author/Author.js +60 -0
- package/build/cjs/blocks/Banner/Banner.css +58 -0
- package/build/cjs/blocks/Banner/Banner.d.ts +3 -0
- package/build/cjs/blocks/Banner/Banner.js +51 -0
- package/build/cjs/blocks/CTA/CTA.css +56 -0
- package/build/cjs/blocks/CTA/CTA.d.ts +3 -0
- package/build/cjs/blocks/CTA/CTA.js +44 -0
- package/build/cjs/blocks/ColoredText/ColoredText.css +28 -0
- package/build/cjs/blocks/ColoredText/ColoredText.d.ts +3 -0
- package/build/cjs/blocks/ColoredText/ColoredText.js +37 -0
- package/build/cjs/blocks/Feed/Feed.d.ts +3 -0
- package/build/cjs/blocks/Feed/Feed.js +183 -0
- package/build/cjs/blocks/Feed/reducer.d.ts +65 -0
- package/build/cjs/blocks/Feed/reducer.js +40 -0
- package/build/cjs/blocks/Header/Header.d.ts +3 -0
- package/build/cjs/blocks/Header/Header.js +63 -0
- package/build/cjs/blocks/Layout/Layout.css +22 -0
- package/build/cjs/blocks/Layout/Layout.d.ts +3 -0
- package/build/cjs/blocks/Layout/Layout.js +78 -0
- package/build/cjs/blocks/Media/Media.css +41 -0
- package/build/cjs/blocks/Media/Media.d.ts +3 -0
- package/build/cjs/blocks/Media/Media.js +38 -0
- package/build/cjs/blocks/Meta/Meta.css +7 -0
- package/build/cjs/blocks/Meta/Meta.d.ts +3 -0
- package/build/cjs/blocks/Meta/Meta.js +66 -0
- package/build/cjs/blocks/Suggest/Suggest.d.ts +12 -0
- package/build/cjs/blocks/Suggest/Suggest.js +61 -0
- package/build/cjs/blocks/YFM/YFM.d.ts +3 -0
- package/build/cjs/blocks/YFM/YFM.js +24 -0
- package/build/cjs/blocks/constants.d.ts +8 -0
- package/build/cjs/blocks/constants.js +8 -0
- package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
- package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.d.ts +12 -0
- package/build/cjs/components/ButtonWithIcon/ButtonWithIcon.js +13 -0
- package/build/cjs/components/FeedHeader/FeedHeader.css +54 -0
- package/build/cjs/components/FeedHeader/FeedHeader.d.ts +8 -0
- package/build/cjs/components/FeedHeader/FeedHeader.js +24 -0
- package/build/cjs/components/FeedHeader/components/Controls/Controls.css +107 -0
- package/build/cjs/components/FeedHeader/components/Controls/Controls.d.ts +16 -0
- package/build/cjs/components/FeedHeader/components/Controls/Controls.js +106 -0
- package/build/cjs/components/FeedHeader/components/Controls/customRenders.d.ts +11 -0
- package/build/cjs/components/FeedHeader/components/Controls/customRenders.js +22 -0
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.d.ts +8 -0
- package/build/cjs/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js +13 -0
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.d.ts +11 -0
- package/build/cjs/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js +47 -0
- package/build/cjs/components/MetaWrapper/MetaWrapper.d.ts +10 -0
- package/build/cjs/components/MetaWrapper/MetaWrapper.js +18 -0
- package/build/cjs/components/Paginator/Paginator.css +54 -0
- package/build/cjs/components/Paginator/Paginator.d.ts +2 -0
- package/build/cjs/components/Paginator/Paginator.js +118 -0
- package/build/cjs/components/Paginator/components/NavigationButton.d.ts +6 -0
- package/build/cjs/components/Paginator/components/NavigationButton.js +13 -0
- package/build/cjs/components/Paginator/components/PaginatorItem.d.ts +2 -0
- package/build/cjs/components/Paginator/components/PaginatorItem.js +15 -0
- package/build/cjs/components/Paginator/types.d.ts +29 -0
- package/build/cjs/components/Paginator/types.js +8 -0
- package/build/cjs/components/Paginator/utils.d.ts +3 -0
- package/build/cjs/components/Paginator/utils.js +32 -0
- package/build/cjs/components/PostCard/PostCard.css +85 -0
- package/build/cjs/components/PostCard/PostCard.d.ts +12 -0
- package/build/cjs/components/PostCard/PostCard.js +60 -0
- package/build/cjs/components/PostInfo/PostInfo.css +88 -0
- package/build/cjs/components/PostInfo/PostInfo.d.ts +28 -0
- package/build/cjs/components/PostInfo/PostInfo.js +55 -0
- package/build/cjs/components/PostInfo/SuggestPostInfo.d.ts +27 -0
- package/build/cjs/components/PostInfo/SuggestPostInfo.js +41 -0
- package/build/cjs/components/PostInfo/components/Date.d.ts +7 -0
- package/build/cjs/components/PostInfo/components/Date.js +36 -0
- package/build/cjs/components/PostInfo/components/ReadingTime.d.ts +7 -0
- package/build/cjs/components/PostInfo/components/ReadingTime.js +18 -0
- package/build/cjs/components/PostInfo/components/Save.d.ts +25 -0
- package/build/cjs/components/PostInfo/components/Save.js +73 -0
- package/build/cjs/components/PostInfo/components/Sharing.d.ts +7 -0
- package/build/cjs/components/PostInfo/components/Sharing.js +54 -0
- package/build/cjs/components/Posts/Posts.css +28 -0
- package/build/cjs/components/Posts/Posts.d.ts +19 -0
- package/build/cjs/components/Posts/Posts.js +32 -0
- package/build/cjs/components/PostsEmpty/PostsEmpty.css +25 -0
- package/build/cjs/components/PostsEmpty/PostsEmpty.d.ts +2 -0
- package/build/cjs/components/PostsEmpty/PostsEmpty.js +14 -0
- package/build/cjs/components/PostsError/PostError.css +30 -0
- package/build/cjs/components/PostsError/PostsError.d.ts +6 -0
- package/build/cjs/components/PostsError/PostsError.js +20 -0
- package/build/cjs/components/Search/Search.css +33 -0
- package/build/cjs/components/Search/Search.d.ts +15 -0
- package/build/cjs/components/Search/Search.js +67 -0
- package/build/cjs/components/Wrapper/Wrapper.css +32 -0
- package/build/cjs/components/Wrapper/Wrapper.d.ts +10 -0
- package/build/cjs/components/Wrapper/Wrapper.js +17 -0
- package/build/cjs/configure.d.ts +5 -0
- package/build/cjs/configure.js +8 -0
- package/build/cjs/constants.d.ts +27 -0
- package/build/cjs/constants.js +34 -0
- package/build/cjs/constructor/BlogConstructorProvider.d.ts +16 -0
- package/build/cjs/constructor/BlogConstructorProvider.js +46 -0
- package/build/cjs/constructor/blocksMap.d.ts +18 -0
- package/build/cjs/constructor/blocksMap.js +30 -0
- package/build/cjs/containers/BlogPage/BlogPage.css +21 -0
- package/build/cjs/containers/BlogPage/BlogPage.d.ts +15 -0
- package/build/cjs/containers/BlogPage/BlogPage.js +30 -0
- package/build/cjs/containers/BlogPostPage/BlogPostPage.css +251 -0
- package/build/cjs/containers/BlogPostPage/BlogPostPage.d.ts +18 -0
- package/build/cjs/containers/BlogPostPage/BlogPostPage.js +42 -0
- package/build/cjs/contexts/DeviceContext.d.ts +4 -0
- package/build/cjs/contexts/DeviceContext.js +8 -0
- package/build/cjs/contexts/FeedContext.d.ts +13 -0
- package/build/cjs/contexts/FeedContext.js +8 -0
- package/build/cjs/contexts/LikesContext.d.ts +7 -0
- package/build/cjs/contexts/LikesContext.js +8 -0
- package/build/cjs/contexts/LocaleContext.d.ts +6 -0
- package/build/cjs/contexts/LocaleContext.js +16 -0
- package/build/cjs/contexts/MobileContext.d.ts +2 -0
- package/build/cjs/contexts/MobileContext.js +8 -0
- package/build/cjs/contexts/PostPageContext.d.ts +14 -0
- package/build/cjs/contexts/PostPageContext.js +8 -0
- package/build/cjs/contexts/RouterContext.d.ts +9 -0
- package/build/cjs/contexts/RouterContext.js +8 -0
- package/build/cjs/contexts/UserContext.d.ts +18 -0
- package/build/cjs/contexts/UserContext.js +8 -0
- package/build/cjs/contexts/theme/ThemeContext.d.ts +8 -0
- package/build/cjs/contexts/theme/ThemeContext.js +13 -0
- package/build/cjs/contexts/theme/ThemeProvider.d.ts +23 -0
- package/build/cjs/contexts/theme/ThemeProvider.js +51 -0
- package/build/cjs/contexts/theme/ThemeValueContext.d.ts +7 -0
- package/build/cjs/contexts/theme/ThemeValueContext.js +11 -0
- package/build/cjs/contexts/theme/index.d.ts +6 -0
- package/build/cjs/contexts/theme/index.js +22 -0
- package/build/cjs/contexts/theme/useTheme.d.ts +2 -0
- package/build/cjs/contexts/theme/useTheme.js +13 -0
- package/build/cjs/contexts/theme/useThemeValue.d.ts +2 -0
- package/build/cjs/contexts/theme/useThemeValue.js +13 -0
- package/build/cjs/contexts/theme/withTheme.d.ts +6 -0
- package/build/cjs/contexts/theme/withTheme.js +21 -0
- package/build/cjs/contexts/theme/withThemeValue.d.ts +6 -0
- package/build/cjs/contexts/theme/withThemeValue.js +21 -0
- package/build/cjs/counters/metrika.d.ts +59 -0
- package/build/cjs/counters/metrika.js +170 -0
- package/build/cjs/counters/utils.d.ts +5 -0
- package/build/cjs/counters/utils.js +9 -0
- package/build/cjs/hooks/useIsIPhone.d.ts +1 -0
- package/build/cjs/hooks/useIsIPhone.js +10 -0
- package/build/cjs/hooks/useLikes.d.ts +15 -0
- package/build/cjs/hooks/useLikes.js +35 -0
- package/build/cjs/i18n/index.d.ts +22 -0
- package/build/cjs/i18n/index.js +74 -0
- package/build/cjs/icons/Close.d.ts +2 -0
- package/build/cjs/icons/Close.js +11 -0
- package/build/cjs/icons/DropdownArrow.d.ts +2 -0
- package/build/cjs/icons/DropdownArrow.js +11 -0
- package/build/cjs/icons/Save.d.ts +2 -0
- package/build/cjs/icons/Save.js +11 -0
- package/build/cjs/icons/SaveFilled.d.ts +2 -0
- package/build/cjs/icons/SaveFilled.js +11 -0
- package/build/cjs/icons/SearchIcon.d.ts +2 -0
- package/build/cjs/icons/SearchIcon.js +11 -0
- package/build/cjs/icons/ShareArrowUp.d.ts +2 -0
- package/build/cjs/icons/ShareArrowUp.js +11 -0
- package/build/cjs/icons/Time.d.ts +2 -0
- package/build/cjs/icons/Time.js +11 -0
- package/build/cjs/index.d.ts +7 -0
- package/build/cjs/index.js +29 -0
- package/build/cjs/internal-typings/bem-cn-lite.d.ts +17 -0
- package/build/cjs/internal-typings/global.d.ts +5 -0
- package/build/cjs/models/blocks.d.ts +84 -0
- package/build/cjs/models/blocks.js +2 -0
- package/build/cjs/models/common.d.ts +151 -0
- package/build/cjs/models/common.js +22 -0
- package/build/cjs/models/locale.d.ts +29 -0
- package/build/cjs/models/locale.js +14 -0
- package/build/cjs/models/paddings.d.ts +16 -0
- package/build/cjs/models/paddings.js +10 -0
- package/build/cjs/utils/cn.d.ts +4 -0
- package/build/cjs/utils/cn.js +12 -0
- package/build/cjs/utils/common.d.ts +42 -0
- package/build/cjs/utils/common.js +120 -0
- package/build/cjs/utils/date.d.ts +13 -0
- package/build/cjs/utils/date.js +59 -0
- package/build/cjs/utils/svg.d.ts +3 -0
- package/build/cjs/utils/svg.js +7 -0
- package/build/esm/blocks/Author/Author.css +31 -0
- package/build/esm/blocks/Author/Author.d.ts +4 -0
- package/build/esm/blocks/Author/Author.js +34 -0
- package/build/esm/blocks/Banner/Banner.css +58 -0
- package/build/esm/blocks/Banner/Banner.d.ts +4 -0
- package/build/esm/blocks/Banner/Banner.js +45 -0
- package/build/esm/blocks/CTA/CTA.css +56 -0
- package/build/esm/blocks/CTA/CTA.d.ts +4 -0
- package/build/esm/blocks/CTA/CTA.js +38 -0
- package/build/esm/blocks/ColoredText/ColoredText.css +28 -0
- package/build/esm/blocks/ColoredText/ColoredText.d.ts +4 -0
- package/build/esm/blocks/ColoredText/ColoredText.js +31 -0
- package/build/esm/blocks/Feed/Feed.d.ts +3 -0
- package/build/esm/blocks/Feed/Feed.js +153 -0
- package/build/esm/blocks/Feed/reducer.d.ts +65 -0
- package/build/esm/blocks/Feed/reducer.js +36 -0
- package/build/esm/blocks/Header/Header.d.ts +3 -0
- package/build/esm/blocks/Header/Header.js +36 -0
- package/build/esm/blocks/Layout/Layout.css +22 -0
- package/build/esm/blocks/Layout/Layout.d.ts +4 -0
- package/build/esm/blocks/Layout/Layout.js +52 -0
- package/build/esm/blocks/Media/Media.css +41 -0
- package/build/esm/blocks/Media/Media.d.ts +4 -0
- package/build/esm/blocks/Media/Media.js +32 -0
- package/build/esm/blocks/Meta/Meta.css +7 -0
- package/build/esm/blocks/Meta/Meta.d.ts +4 -0
- package/build/esm/blocks/Meta/Meta.js +40 -0
- package/build/esm/blocks/Suggest/Suggest.d.ts +12 -0
- package/build/esm/blocks/Suggest/Suggest.js +34 -0
- package/build/esm/blocks/YFM/YFM.d.ts +3 -0
- package/build/esm/blocks/YFM/YFM.js +17 -0
- package/build/esm/blocks/constants.d.ts +8 -0
- package/build/esm/blocks/constants.js +5 -0
- package/build/esm/components/ButtonWithIcon/ButtonWithIcon.css +76 -0
- package/build/esm/components/ButtonWithIcon/ButtonWithIcon.d.ts +13 -0
- package/build/esm/components/ButtonWithIcon/ButtonWithIcon.js +7 -0
- package/build/esm/components/FeedHeader/FeedHeader.css +54 -0
- package/build/esm/components/FeedHeader/FeedHeader.d.ts +9 -0
- package/build/esm/components/FeedHeader/FeedHeader.js +18 -0
- package/build/esm/components/FeedHeader/components/Controls/Controls.css +107 -0
- package/build/esm/components/FeedHeader/components/Controls/Controls.d.ts +17 -0
- package/build/esm/components/FeedHeader/components/Controls/Controls.js +77 -0
- package/build/esm/components/FeedHeader/components/Controls/customRenders.d.ts +12 -0
- package/build/esm/components/FeedHeader/components/Controls/customRenders.js +14 -0
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.css +14 -0
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.d.ts +9 -0
- package/build/esm/components/FeedHeader/components/CustomSelectOption/CustomSelectOption.js +7 -0
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.css +53 -0
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.d.ts +12 -0
- package/build/esm/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.js +21 -0
- package/build/esm/components/MetaWrapper/MetaWrapper.d.ts +10 -0
- package/build/esm/components/MetaWrapper/MetaWrapper.js +11 -0
- package/build/esm/components/Paginator/Paginator.css +54 -0
- package/build/esm/components/Paginator/Paginator.d.ts +3 -0
- package/build/esm/components/Paginator/Paginator.js +89 -0
- package/build/esm/components/Paginator/components/NavigationButton.d.ts +7 -0
- package/build/esm/components/Paginator/components/NavigationButton.js +7 -0
- package/build/esm/components/Paginator/components/PaginatorItem.d.ts +3 -0
- package/build/esm/components/Paginator/components/PaginatorItem.js +9 -0
- package/build/esm/components/Paginator/types.d.ts +29 -0
- package/build/esm/components/Paginator/types.js +5 -0
- package/build/esm/components/Paginator/utils.d.ts +3 -0
- package/build/esm/components/Paginator/utils.js +27 -0
- package/build/esm/components/PostCard/PostCard.css +85 -0
- package/build/esm/components/PostCard/PostCard.d.ts +13 -0
- package/build/esm/components/PostCard/PostCard.js +34 -0
- package/build/esm/components/PostInfo/PostInfo.css +88 -0
- package/build/esm/components/PostInfo/PostInfo.d.ts +29 -0
- package/build/esm/components/PostInfo/PostInfo.js +29 -0
- package/build/esm/components/PostInfo/SuggestPostInfo.d.ts +28 -0
- package/build/esm/components/PostInfo/SuggestPostInfo.js +35 -0
- package/build/esm/components/PostInfo/components/Date.d.ts +8 -0
- package/build/esm/components/PostInfo/components/Date.js +10 -0
- package/build/esm/components/PostInfo/components/ReadingTime.d.ts +8 -0
- package/build/esm/components/PostInfo/components/ReadingTime.js +12 -0
- package/build/esm/components/PostInfo/components/Save.d.ts +26 -0
- package/build/esm/components/PostInfo/components/Save.js +44 -0
- package/build/esm/components/PostInfo/components/Sharing.d.ts +8 -0
- package/build/esm/components/PostInfo/components/Sharing.js +25 -0
- package/build/esm/components/Posts/Posts.css +28 -0
- package/build/esm/components/Posts/Posts.d.ts +20 -0
- package/build/esm/components/Posts/Posts.js +26 -0
- package/build/esm/components/PostsEmpty/PostsEmpty.css +25 -0
- package/build/esm/components/PostsEmpty/PostsEmpty.d.ts +3 -0
- package/build/esm/components/PostsEmpty/PostsEmpty.js +8 -0
- package/build/esm/components/PostsError/PostError.css +30 -0
- package/build/esm/components/PostsError/PostsError.d.ts +7 -0
- package/build/esm/components/PostsError/PostsError.js +14 -0
- package/build/esm/components/Search/Search.css +33 -0
- package/build/esm/components/Search/Search.d.ts +16 -0
- package/build/esm/components/Search/Search.js +41 -0
- package/build/esm/components/Wrapper/Wrapper.css +32 -0
- package/build/esm/components/Wrapper/Wrapper.d.ts +11 -0
- package/build/esm/components/Wrapper/Wrapper.js +11 -0
- package/build/esm/configure.d.ts +5 -0
- package/build/esm/configure.js +4 -0
- package/build/esm/constants.d.ts +27 -0
- package/build/esm/constants.js +31 -0
- package/build/esm/constructor/BlogConstructorProvider.d.ts +16 -0
- package/build/esm/constructor/BlogConstructorProvider.js +19 -0
- package/build/esm/constructor/blocksMap.d.ts +18 -0
- package/build/esm/constructor/blocksMap.js +28 -0
- package/build/esm/containers/BlogPage/BlogPage.css +21 -0
- package/build/esm/containers/BlogPage/BlogPage.d.ts +16 -0
- package/build/esm/containers/BlogPage/BlogPage.js +24 -0
- package/build/esm/containers/BlogPostPage/BlogPostPage.css +251 -0
- package/build/esm/containers/BlogPostPage/BlogPostPage.d.ts +19 -0
- package/build/esm/containers/BlogPostPage/BlogPostPage.js +36 -0
- package/build/esm/contexts/DeviceContext.d.ts +4 -0
- package/build/esm/contexts/DeviceContext.js +2 -0
- package/build/esm/contexts/FeedContext.d.ts +13 -0
- package/build/esm/contexts/FeedContext.js +2 -0
- package/build/esm/contexts/LikesContext.d.ts +7 -0
- package/build/esm/contexts/LikesContext.js +2 -0
- package/build/esm/contexts/LocaleContext.d.ts +6 -0
- package/build/esm/contexts/LocaleContext.js +10 -0
- package/build/esm/contexts/MobileContext.d.ts +2 -0
- package/build/esm/contexts/MobileContext.js +2 -0
- package/build/esm/contexts/PostPageContext.d.ts +14 -0
- package/build/esm/contexts/PostPageContext.js +2 -0
- package/build/esm/contexts/RouterContext.d.ts +9 -0
- package/build/esm/contexts/RouterContext.js +2 -0
- package/build/esm/contexts/UserContext.d.ts +18 -0
- package/build/esm/contexts/UserContext.js +2 -0
- package/build/esm/contexts/theme/ThemeContext.d.ts +8 -0
- package/build/esm/contexts/theme/ThemeContext.js +7 -0
- package/build/esm/contexts/theme/ThemeProvider.d.ts +23 -0
- package/build/esm/contexts/theme/ThemeProvider.js +44 -0
- package/build/esm/contexts/theme/ThemeValueContext.d.ts +7 -0
- package/build/esm/contexts/theme/ThemeValueContext.js +5 -0
- package/build/esm/contexts/theme/index.d.ts +6 -0
- package/build/esm/contexts/theme/index.js +6 -0
- package/build/esm/contexts/theme/useTheme.d.ts +2 -0
- package/build/esm/contexts/theme/useTheme.js +6 -0
- package/build/esm/contexts/theme/useThemeValue.d.ts +2 -0
- package/build/esm/contexts/theme/useThemeValue.js +6 -0
- package/build/esm/contexts/theme/withTheme.d.ts +6 -0
- package/build/esm/contexts/theme/withTheme.js +14 -0
- package/build/esm/contexts/theme/withThemeValue.d.ts +6 -0
- package/build/esm/contexts/theme/withThemeValue.js +14 -0
- package/build/esm/counters/metrika.d.ts +59 -0
- package/build/esm/counters/metrika.js +166 -0
- package/build/esm/counters/utils.d.ts +5 -0
- package/build/esm/counters/utils.js +6 -0
- package/build/esm/hooks/useIsIPhone.d.ts +1 -0
- package/build/esm/hooks/useIsIPhone.js +6 -0
- package/build/esm/hooks/useLikes.d.ts +15 -0
- package/build/esm/hooks/useLikes.js +31 -0
- package/build/esm/i18n/index.d.ts +22 -0
- package/build/esm/i18n/index.js +71 -0
- package/build/esm/icons/Close.d.ts +2 -0
- package/build/esm/icons/Close.js +4 -0
- package/build/esm/icons/DropdownArrow.d.ts +2 -0
- package/build/esm/icons/DropdownArrow.js +4 -0
- package/build/esm/icons/Save.d.ts +2 -0
- package/build/esm/icons/Save.js +4 -0
- package/build/esm/icons/SaveFilled.d.ts +2 -0
- package/build/esm/icons/SaveFilled.js +4 -0
- package/build/esm/icons/SearchIcon.d.ts +2 -0
- package/build/esm/icons/SearchIcon.js +4 -0
- package/build/esm/icons/ShareArrowUp.d.ts +2 -0
- package/build/esm/icons/ShareArrowUp.js +4 -0
- package/build/esm/icons/Time.d.ts +2 -0
- package/build/esm/icons/Time.js +4 -0
- package/build/esm/index.d.ts +7 -0
- package/build/esm/index.js +7 -0
- package/build/esm/internal-typings/bem-cn-lite.d.ts +17 -0
- package/build/esm/internal-typings/global.d.ts +5 -0
- package/build/esm/models/blocks.d.ts +84 -0
- package/build/esm/models/blocks.js +1 -0
- package/build/esm/models/common.d.ts +151 -0
- package/build/esm/models/common.js +19 -0
- package/build/esm/models/locale.d.ts +29 -0
- package/build/esm/models/locale.js +11 -0
- package/build/esm/models/paddings.d.ts +16 -0
- package/build/esm/models/paddings.js +7 -0
- package/build/esm/utils/cn.d.ts +4 -0
- package/build/esm/utils/cn.js +5 -0
- package/build/esm/utils/common.d.ts +42 -0
- package/build/esm/utils/common.js +107 -0
- package/build/esm/utils/date.d.ts +13 -0
- package/build/esm/utils/date.js +55 -0
- package/build/esm/utils/svg.d.ts +3 -0
- package/build/esm/utils/svg.js +4 -0
- package/package.json +140 -0
- package/server/data/config.d.ts +32 -0
- package/server/data/config.js +39 -0
- package/server/data/contentFilter.d.ts +27 -0
- package/server/data/contentFilter.js +61 -0
- package/server/data/createReadableContent.d.ts +17 -0
- package/server/data/createReadableContent.js +47 -0
- package/server/data/sanitizeMeta.d.ts +24 -0
- package/server/data/sanitizeMeta.js +18 -0
- package/server/data/transformPageContent.d.ts +21 -0
- package/server/data/transformPageContent.js +35 -0
- package/server/data/transformPost.d.ts +11 -0
- package/server/data/transformPost.js +34 -0
- package/server/index.d.ts +4 -0
- package/server/index.js +11 -0
- package/server/models/blocks.d.ts +84 -0
- package/server/models/blocks.js +2 -0
- package/server/models/common.d.ts +151 -0
- package/server/models/common.js +22 -0
- package/server/models/locale.d.ts +29 -0
- package/server/models/locale.js +14 -0
- package/server/models/paddings.d.ts +16 -0
- package/server/models/paddings.js +10 -0
- package/styles/fonts.css +195 -0
- package/styles/fonts.scss +223 -0
- package/styles/mixins.css +2 -0
- package/styles/mixins.scss +59 -0
- package/styles/root.css +21 -0
- package/styles/root.scss +25 -0
- package/styles/storybook/common.scss +29 -0
- package/styles/storybook/index.scss +21 -0
- package/styles/storybook/palette.scss +75 -0
- package/styles/storybook/typography.scss +139 -0
- package/styles/styles.css +196 -0
- package/styles/styles.scss +2 -0
- package/styles/variables.css +0 -0
- package/styles/variables.scss +7 -0
- package/styles/yfm.css +103 -0
- package/styles/yfm.scss +123 -0
@@ -0,0 +1,151 @@
|
|
1
|
+
import { IDevice, IBrowser } from 'ua-parser-js';
|
2
|
+
import { ReactNode } from 'react';
|
3
|
+
import { HeaderBlockProps as PageConstructorHeaderBlockProps } from '@gravity-ui/page-constructor';
|
4
|
+
import { Locale } from '../models/locale';
|
5
|
+
export declare enum Theme {
|
6
|
+
Light = "light",
|
7
|
+
Dark = "dark"
|
8
|
+
}
|
9
|
+
export interface ClassNameProps {
|
10
|
+
className?: string;
|
11
|
+
}
|
12
|
+
export type Author = {
|
13
|
+
id: number;
|
14
|
+
avatar: string | null;
|
15
|
+
createdAt: string;
|
16
|
+
updatedAt: string;
|
17
|
+
firstName: string | null;
|
18
|
+
secondName: string | null;
|
19
|
+
description: string | null;
|
20
|
+
fullDescription: string | null;
|
21
|
+
} & {
|
22
|
+
[x: string]: string | null;
|
23
|
+
};
|
24
|
+
export type Service = {
|
25
|
+
id: number;
|
26
|
+
slug: string;
|
27
|
+
name: string;
|
28
|
+
} & {
|
29
|
+
[x: string]: string | null;
|
30
|
+
};
|
31
|
+
export type Query = Record<string, number | string | null>;
|
32
|
+
export interface Menu {
|
33
|
+
title: string;
|
34
|
+
}
|
35
|
+
export interface WithDeviceProps {
|
36
|
+
device: IDevice;
|
37
|
+
browser: IBrowser;
|
38
|
+
isRobot: boolean;
|
39
|
+
}
|
40
|
+
export interface PostsProps {
|
41
|
+
posts: PostData[];
|
42
|
+
count: number;
|
43
|
+
totalCount: number;
|
44
|
+
pinnedPost?: PostData;
|
45
|
+
}
|
46
|
+
export type Tag = {
|
47
|
+
slug: string;
|
48
|
+
name: string;
|
49
|
+
createdAt?: string;
|
50
|
+
updatedAt?: string;
|
51
|
+
icon?: string;
|
52
|
+
isDeleted?: boolean;
|
53
|
+
locale?: string;
|
54
|
+
blogTagId?: number;
|
55
|
+
count?: number;
|
56
|
+
};
|
57
|
+
export interface PostData {
|
58
|
+
author?: string;
|
59
|
+
authors?: Author[];
|
60
|
+
blogPostId?: number;
|
61
|
+
content?: string;
|
62
|
+
date: string;
|
63
|
+
description?: string;
|
64
|
+
hasUserLike: boolean;
|
65
|
+
htmlTitle: string;
|
66
|
+
id: number;
|
67
|
+
image: string;
|
68
|
+
isPublished?: boolean;
|
69
|
+
sharedImage?: string;
|
70
|
+
likes: number;
|
71
|
+
locale: Locale;
|
72
|
+
metaDescription?: string | null;
|
73
|
+
metaTitle?: string | null;
|
74
|
+
readingTime?: number;
|
75
|
+
shareDescription?: string;
|
76
|
+
shareImage?: string;
|
77
|
+
shareTitle?: string;
|
78
|
+
slug: string;
|
79
|
+
keywords?: string[];
|
80
|
+
tags: Tag[];
|
81
|
+
textTitle: string;
|
82
|
+
title: string;
|
83
|
+
url: string;
|
84
|
+
noIndex?: boolean;
|
85
|
+
}
|
86
|
+
export declare enum BlockType {
|
87
|
+
Header = "blog-header-block",
|
88
|
+
YFM = "blog-yfm-block",
|
89
|
+
Layout = "blog-layout-block",
|
90
|
+
Media = "blog-media-block",
|
91
|
+
Banner = "blog-banner-block",
|
92
|
+
CTA = "blog-cta-block",
|
93
|
+
ColoredText = "blog-colored-text-block",
|
94
|
+
Author = "blog-author-block",
|
95
|
+
Suggest = "blog-suggest-block",
|
96
|
+
Meta = "blog-meta-block",
|
97
|
+
Feed = "blog-feed-block"
|
98
|
+
}
|
99
|
+
export type MetaProps = {
|
100
|
+
metaComponent: JSX.Element;
|
101
|
+
needHelmetWrapper: boolean;
|
102
|
+
};
|
103
|
+
export type MetaOrganizationType = {
|
104
|
+
url: string;
|
105
|
+
appTitle: string;
|
106
|
+
legalName: string;
|
107
|
+
supportEmail: string;
|
108
|
+
};
|
109
|
+
export interface PostMetaProps {
|
110
|
+
title: string;
|
111
|
+
date: string;
|
112
|
+
image: string;
|
113
|
+
canonicalUrl: string;
|
114
|
+
content?: string;
|
115
|
+
description?: string;
|
116
|
+
sharing: {
|
117
|
+
shareTitle: string;
|
118
|
+
shareDescription: string;
|
119
|
+
shareImage: string;
|
120
|
+
shareGenImage: string;
|
121
|
+
shareGenTitle: string;
|
122
|
+
};
|
123
|
+
keywords?: string[];
|
124
|
+
noIndex?: boolean;
|
125
|
+
authors?: Author[];
|
126
|
+
tags?: Tag[];
|
127
|
+
organization: MetaOrganizationType;
|
128
|
+
}
|
129
|
+
export type ToggleLikeCallbackType = ({ postId, hasLike, }: {
|
130
|
+
postId?: number;
|
131
|
+
hasLike?: boolean;
|
132
|
+
}) => void;
|
133
|
+
export interface HeaderBlockProps extends PageConstructorHeaderBlockProps {
|
134
|
+
backLink?: {
|
135
|
+
url: string;
|
136
|
+
title: ReactNode;
|
137
|
+
};
|
138
|
+
}
|
139
|
+
export type GetPostsRequest = {
|
140
|
+
tags: string | undefined;
|
141
|
+
page: number;
|
142
|
+
perPage: number;
|
143
|
+
savedOnly: boolean;
|
144
|
+
search: string | undefined;
|
145
|
+
services: string | undefined;
|
146
|
+
};
|
147
|
+
export type GetPostsType = (query: GetPostsRequest) => Promise<PostsProps>;
|
148
|
+
export type HandleChangeQueryParams = (params: Query) => void;
|
149
|
+
export type SetQueryType = (params: Query, options?: {
|
150
|
+
[y: string]: boolean;
|
151
|
+
}) => Promise<void> | void;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BlockType = exports.Theme = void 0;
|
4
|
+
var Theme;
|
5
|
+
(function (Theme) {
|
6
|
+
Theme["Light"] = "light";
|
7
|
+
Theme["Dark"] = "dark";
|
8
|
+
})(Theme = exports.Theme || (exports.Theme = {}));
|
9
|
+
var BlockType;
|
10
|
+
(function (BlockType) {
|
11
|
+
BlockType["Header"] = "blog-header-block";
|
12
|
+
BlockType["YFM"] = "blog-yfm-block";
|
13
|
+
BlockType["Layout"] = "blog-layout-block";
|
14
|
+
BlockType["Media"] = "blog-media-block";
|
15
|
+
BlockType["Banner"] = "blog-banner-block";
|
16
|
+
BlockType["CTA"] = "blog-cta-block";
|
17
|
+
BlockType["ColoredText"] = "blog-colored-text-block";
|
18
|
+
BlockType["Author"] = "blog-author-block";
|
19
|
+
BlockType["Suggest"] = "blog-suggest-block";
|
20
|
+
BlockType["Meta"] = "blog-meta-block";
|
21
|
+
BlockType["Feed"] = "blog-feed-block";
|
22
|
+
})(BlockType = exports.BlockType || (exports.BlockType = {}));
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export declare enum Lang {
|
2
|
+
Ru = "ru",
|
3
|
+
En = "en"
|
4
|
+
}
|
5
|
+
export declare enum Currency {
|
6
|
+
RUB = "RUB",
|
7
|
+
USD = "USD",
|
8
|
+
KZT = "KZT"
|
9
|
+
}
|
10
|
+
export interface LangData {
|
11
|
+
lang: Lang;
|
12
|
+
langName: string;
|
13
|
+
regions: Record<string, RegionData>;
|
14
|
+
pathPrefix: string;
|
15
|
+
}
|
16
|
+
export interface RegionData {
|
17
|
+
regionName: string;
|
18
|
+
tld: string;
|
19
|
+
currency: string;
|
20
|
+
order: number;
|
21
|
+
default: boolean;
|
22
|
+
local: boolean;
|
23
|
+
}
|
24
|
+
export interface LocaleData extends Pick<LangData, 'lang'>, Omit<RegionData, 'regionName'> {
|
25
|
+
code: string;
|
26
|
+
region: string;
|
27
|
+
}
|
28
|
+
export interface Locale extends Partial<Pick<LangData, 'langName'>>, Pick<LangData, 'lang'>, Partial<Pick<LangData, 'pathPrefix'>>, Partial<Pick<LocaleData, 'code'>> {
|
29
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Currency = exports.Lang = void 0;
|
4
|
+
var Lang;
|
5
|
+
(function (Lang) {
|
6
|
+
Lang["Ru"] = "ru";
|
7
|
+
Lang["En"] = "en";
|
8
|
+
})(Lang = exports.Lang || (exports.Lang = {}));
|
9
|
+
var Currency;
|
10
|
+
(function (Currency) {
|
11
|
+
Currency["RUB"] = "RUB";
|
12
|
+
Currency["USD"] = "USD";
|
13
|
+
Currency["KZT"] = "KZT";
|
14
|
+
})(Currency = exports.Currency || (exports.Currency = {}));
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare enum PaddingsDirections {
|
2
|
+
top = "top",
|
3
|
+
bottom = "bottom",
|
4
|
+
left = "left",
|
5
|
+
right = "right"
|
6
|
+
}
|
7
|
+
export type PaddingSize = 'xs' | 's' | 'm' | 'l' | 'xl';
|
8
|
+
export type Paddings = {
|
9
|
+
[key in PaddingsDirections]?: PaddingSize;
|
10
|
+
};
|
11
|
+
export type PaddingsYFMProps = {
|
12
|
+
paddingTop?: PaddingSize;
|
13
|
+
paddingBottom?: PaddingSize;
|
14
|
+
paddingRight?: PaddingSize;
|
15
|
+
paddingLeft?: PaddingSize;
|
16
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PaddingsDirections = void 0;
|
4
|
+
var PaddingsDirections;
|
5
|
+
(function (PaddingsDirections) {
|
6
|
+
PaddingsDirections["top"] = "top";
|
7
|
+
PaddingsDirections["bottom"] = "bottom";
|
8
|
+
PaddingsDirections["left"] = "left";
|
9
|
+
PaddingsDirections["right"] = "right";
|
10
|
+
})(PaddingsDirections = exports.PaddingsDirections || (exports.PaddingsDirections = {}));
|
package/styles/fonts.css
ADDED
@@ -0,0 +1,195 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: "YS Display";
|
3
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff") format("woff");
|
4
|
+
font-weight: 100;
|
5
|
+
font-style: normal;
|
6
|
+
font-display: swap;
|
7
|
+
}
|
8
|
+
@font-face {
|
9
|
+
font-family: "YS Display";
|
10
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-light.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-light.woff") format("woff");
|
11
|
+
font-weight: 300;
|
12
|
+
font-style: normal;
|
13
|
+
font-display: swap;
|
14
|
+
}
|
15
|
+
@font-face {
|
16
|
+
font-family: "YS Display";
|
17
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff") format("woff");
|
18
|
+
font-weight: 400;
|
19
|
+
font-style: normal;
|
20
|
+
font-display: swap;
|
21
|
+
}
|
22
|
+
@font-face {
|
23
|
+
font-family: "YS Display";
|
24
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff") format("woff");
|
25
|
+
font-weight: 500;
|
26
|
+
font-style: normal;
|
27
|
+
font-display: swap;
|
28
|
+
}
|
29
|
+
@font-face {
|
30
|
+
font-family: "YS Display";
|
31
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff") format("woff");
|
32
|
+
font-weight: 700;
|
33
|
+
font-style: normal;
|
34
|
+
font-display: swap;
|
35
|
+
}
|
36
|
+
@font-face {
|
37
|
+
font-family: "YS Display";
|
38
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff") format("woff");
|
39
|
+
font-weight: 900;
|
40
|
+
font-style: normal;
|
41
|
+
font-display: swap;
|
42
|
+
}
|
43
|
+
@font-face {
|
44
|
+
font-family: "YS Text";
|
45
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-light.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-light.woff") format("woff");
|
46
|
+
font-weight: 300;
|
47
|
+
font-style: normal;
|
48
|
+
font-display: swap;
|
49
|
+
}
|
50
|
+
@font-face {
|
51
|
+
font-family: "YS Text";
|
52
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff") format("woff");
|
53
|
+
font-weight: 300;
|
54
|
+
font-style: italic;
|
55
|
+
font-display: swap;
|
56
|
+
}
|
57
|
+
@font-face {
|
58
|
+
font-family: "YS Text";
|
59
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff") format("woff");
|
60
|
+
font-weight: 400;
|
61
|
+
font-style: normal;
|
62
|
+
font-display: swap;
|
63
|
+
}
|
64
|
+
@font-face {
|
65
|
+
font-family: "YS Text";
|
66
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff") format("woff");
|
67
|
+
font-weight: 400;
|
68
|
+
font-style: italic;
|
69
|
+
font-display: swap;
|
70
|
+
}
|
71
|
+
@font-face {
|
72
|
+
font-family: "YS Text";
|
73
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff") format("woff");
|
74
|
+
font-weight: 500;
|
75
|
+
font-style: normal;
|
76
|
+
font-display: swap;
|
77
|
+
}
|
78
|
+
@font-face {
|
79
|
+
font-family: "YS Text";
|
80
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff") format("woff");
|
81
|
+
font-weight: 500;
|
82
|
+
font-style: italic;
|
83
|
+
font-display: swap;
|
84
|
+
}
|
85
|
+
@font-face {
|
86
|
+
font-family: "YS Text";
|
87
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff") format("woff");
|
88
|
+
font-weight: 700;
|
89
|
+
font-style: normal;
|
90
|
+
font-display: swap;
|
91
|
+
}
|
92
|
+
@font-face {
|
93
|
+
font-family: "YS Text";
|
94
|
+
src: url("https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff2") format("woff2"), url("https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff") format("woff");
|
95
|
+
font-weight: 700;
|
96
|
+
font-style: italic;
|
97
|
+
font-display: swap;
|
98
|
+
}
|
99
|
+
.YSDisplay-Thin {
|
100
|
+
font-family: "YS Display", sans-serif;
|
101
|
+
font-weight: 100;
|
102
|
+
font-style: normal;
|
103
|
+
font-stretch: normal;
|
104
|
+
}
|
105
|
+
|
106
|
+
.YSDisplay-Light {
|
107
|
+
font-family: "YS Display", sans-serif;
|
108
|
+
font-weight: 300;
|
109
|
+
font-style: normal;
|
110
|
+
font-stretch: normal;
|
111
|
+
}
|
112
|
+
|
113
|
+
.YSDisplay-Regular {
|
114
|
+
font-family: "YS Display", sans-serif;
|
115
|
+
font-weight: 400;
|
116
|
+
font-style: normal;
|
117
|
+
font-stretch: normal;
|
118
|
+
}
|
119
|
+
|
120
|
+
.YSDisplay-Medium {
|
121
|
+
font-family: "YS Display", sans-serif;
|
122
|
+
font-weight: 500;
|
123
|
+
font-style: normal;
|
124
|
+
font-stretch: normal;
|
125
|
+
}
|
126
|
+
|
127
|
+
.YSDisplay-Bold {
|
128
|
+
font-family: "YS Display", sans-serif;
|
129
|
+
font-weight: 700;
|
130
|
+
font-style: normal;
|
131
|
+
font-stretch: normal;
|
132
|
+
}
|
133
|
+
|
134
|
+
.YSDisplay-Heavy {
|
135
|
+
font-family: "YS Display", sans-serif;
|
136
|
+
font-weight: 900;
|
137
|
+
font-style: normal;
|
138
|
+
font-stretch: normal;
|
139
|
+
}
|
140
|
+
|
141
|
+
.YSText-Light {
|
142
|
+
font-family: "YS Text", sans-serif;
|
143
|
+
font-weight: 300;
|
144
|
+
font-style: normal;
|
145
|
+
font-stretch: normal;
|
146
|
+
}
|
147
|
+
|
148
|
+
.YSText-LightItalic {
|
149
|
+
font-family: "YS Text", sans-serif;
|
150
|
+
font-weight: 300;
|
151
|
+
font-style: italic;
|
152
|
+
font-stretch: normal;
|
153
|
+
}
|
154
|
+
|
155
|
+
.YSText-Regular {
|
156
|
+
font-family: "YS Text", sans-serif;
|
157
|
+
font-weight: 400;
|
158
|
+
font-style: normal;
|
159
|
+
font-stretch: normal;
|
160
|
+
}
|
161
|
+
|
162
|
+
.YSText-RegularItalic {
|
163
|
+
font-family: "YS Text", sans-serif;
|
164
|
+
font-weight: 400;
|
165
|
+
font-style: italic;
|
166
|
+
font-stretch: normal;
|
167
|
+
}
|
168
|
+
|
169
|
+
.YSText-Medium {
|
170
|
+
font-family: "YS Text", sans-serif;
|
171
|
+
font-weight: 500;
|
172
|
+
font-style: normal;
|
173
|
+
font-stretch: normal;
|
174
|
+
}
|
175
|
+
|
176
|
+
.YSText-MediumItalic {
|
177
|
+
font-family: "YS Text", sans-serif;
|
178
|
+
font-weight: 500;
|
179
|
+
font-style: italic;
|
180
|
+
font-stretch: normal;
|
181
|
+
}
|
182
|
+
|
183
|
+
.YSText-Bold {
|
184
|
+
font-family: "YS Text", sans-serif;
|
185
|
+
font-weight: 700;
|
186
|
+
font-style: normal;
|
187
|
+
font-stretch: normal;
|
188
|
+
}
|
189
|
+
|
190
|
+
.YSText-BoldItalic {
|
191
|
+
font-family: "YS Text", sans-serif;
|
192
|
+
font-weight: 700;
|
193
|
+
font-style: italic;
|
194
|
+
font-stretch: normal;
|
195
|
+
}
|
@@ -0,0 +1,223 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: 'YS Display';
|
3
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff2') format('woff2'),
|
4
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/display-thin.woff') format('woff');
|
5
|
+
font-weight: 100;
|
6
|
+
font-style: normal;
|
7
|
+
font-display: swap;
|
8
|
+
}
|
9
|
+
|
10
|
+
@font-face {
|
11
|
+
font-family: 'YS Display';
|
12
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/display-light.woff2') format('woff2'),
|
13
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/display-light.woff') format('woff');
|
14
|
+
font-weight: 300;
|
15
|
+
font-style: normal;
|
16
|
+
font-display: swap;
|
17
|
+
}
|
18
|
+
|
19
|
+
@font-face {
|
20
|
+
font-family: 'YS Display';
|
21
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff2') format('woff2'),
|
22
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/display-regular.woff') format('woff');
|
23
|
+
font-weight: 400;
|
24
|
+
font-style: normal;
|
25
|
+
font-display: swap;
|
26
|
+
}
|
27
|
+
|
28
|
+
@font-face {
|
29
|
+
font-family: 'YS Display';
|
30
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff2') format('woff2'),
|
31
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/display-medium.woff') format('woff');
|
32
|
+
font-weight: 500;
|
33
|
+
font-style: normal;
|
34
|
+
font-display: swap;
|
35
|
+
}
|
36
|
+
|
37
|
+
@font-face {
|
38
|
+
font-family: 'YS Display';
|
39
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff2') format('woff2'),
|
40
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/display-bold.woff') format('woff');
|
41
|
+
font-weight: 700;
|
42
|
+
font-style: normal;
|
43
|
+
font-display: swap;
|
44
|
+
}
|
45
|
+
|
46
|
+
@font-face {
|
47
|
+
font-family: 'YS Display';
|
48
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff2') format('woff2'),
|
49
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/display-heavy.woff') format('woff');
|
50
|
+
font-weight: 900;
|
51
|
+
font-style: normal;
|
52
|
+
font-display: swap;
|
53
|
+
}
|
54
|
+
|
55
|
+
@font-face {
|
56
|
+
font-family: 'YS Text';
|
57
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/text-light.woff2') format('woff2'),
|
58
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/text-light.woff') format('woff');
|
59
|
+
font-weight: 300;
|
60
|
+
font-style: normal;
|
61
|
+
font-display: swap;
|
62
|
+
}
|
63
|
+
|
64
|
+
@font-face {
|
65
|
+
font-family: 'YS Text';
|
66
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff2') format('woff2'),
|
67
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/text-light-italic.woff') format('woff');
|
68
|
+
font-weight: 300;
|
69
|
+
font-style: italic;
|
70
|
+
font-display: swap;
|
71
|
+
}
|
72
|
+
|
73
|
+
@font-face {
|
74
|
+
font-family: 'YS Text';
|
75
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff2') format('woff2'),
|
76
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/text-regular.woff') format('woff');
|
77
|
+
font-weight: 400;
|
78
|
+
font-style: normal;
|
79
|
+
font-display: swap;
|
80
|
+
}
|
81
|
+
|
82
|
+
@font-face {
|
83
|
+
font-family: 'YS Text';
|
84
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff2') format('woff2'),
|
85
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/text-regular-italic.woff') format('woff');
|
86
|
+
font-weight: 400;
|
87
|
+
font-style: italic;
|
88
|
+
font-display: swap;
|
89
|
+
}
|
90
|
+
|
91
|
+
@font-face {
|
92
|
+
font-family: 'YS Text';
|
93
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff2') format('woff2'),
|
94
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff') format('woff');
|
95
|
+
font-weight: 500;
|
96
|
+
font-style: normal;
|
97
|
+
font-display: swap;
|
98
|
+
}
|
99
|
+
|
100
|
+
@font-face {
|
101
|
+
font-family: 'YS Text';
|
102
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff2') format('woff2'),
|
103
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/text-medium-italic.woff') format('woff');
|
104
|
+
font-weight: 500;
|
105
|
+
font-style: italic;
|
106
|
+
font-display: swap;
|
107
|
+
}
|
108
|
+
|
109
|
+
@font-face {
|
110
|
+
font-family: 'YS Text';
|
111
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff2') format('woff2'),
|
112
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/text-bold.woff') format('woff');
|
113
|
+
font-weight: 700;
|
114
|
+
font-style: normal;
|
115
|
+
font-display: swap;
|
116
|
+
}
|
117
|
+
|
118
|
+
@font-face {
|
119
|
+
font-family: 'YS Text';
|
120
|
+
src: url('https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff2') format('woff2'),
|
121
|
+
url('https://yastatic.net/s3/home/fonts/ys/1/text-bold-italic.woff') format('woff');
|
122
|
+
font-weight: 700;
|
123
|
+
font-style: italic;
|
124
|
+
font-display: swap;
|
125
|
+
}
|
126
|
+
|
127
|
+
.YSDisplay-Thin {
|
128
|
+
font-family: 'YS Display', sans-serif;
|
129
|
+
font-weight: 100;
|
130
|
+
font-style: normal;
|
131
|
+
font-stretch: normal;
|
132
|
+
}
|
133
|
+
|
134
|
+
.YSDisplay-Light {
|
135
|
+
font-family: 'YS Display', sans-serif;
|
136
|
+
font-weight: 300;
|
137
|
+
font-style: normal;
|
138
|
+
font-stretch: normal;
|
139
|
+
}
|
140
|
+
|
141
|
+
.YSDisplay-Regular {
|
142
|
+
font-family: 'YS Display', sans-serif;
|
143
|
+
font-weight: 400;
|
144
|
+
font-style: normal;
|
145
|
+
font-stretch: normal;
|
146
|
+
}
|
147
|
+
|
148
|
+
.YSDisplay-Medium {
|
149
|
+
font-family: 'YS Display', sans-serif;
|
150
|
+
font-weight: 500;
|
151
|
+
font-style: normal;
|
152
|
+
font-stretch: normal;
|
153
|
+
}
|
154
|
+
|
155
|
+
.YSDisplay-Bold {
|
156
|
+
font-family: 'YS Display', sans-serif;
|
157
|
+
font-weight: 700;
|
158
|
+
font-style: normal;
|
159
|
+
font-stretch: normal;
|
160
|
+
}
|
161
|
+
|
162
|
+
.YSDisplay-Heavy {
|
163
|
+
font-family: 'YS Display', sans-serif;
|
164
|
+
font-weight: 900;
|
165
|
+
font-style: normal;
|
166
|
+
font-stretch: normal;
|
167
|
+
}
|
168
|
+
|
169
|
+
.YSText-Light {
|
170
|
+
font-family: 'YS Text', sans-serif;
|
171
|
+
font-weight: 300;
|
172
|
+
font-style: normal;
|
173
|
+
font-stretch: normal;
|
174
|
+
}
|
175
|
+
|
176
|
+
.YSText-LightItalic {
|
177
|
+
font-family: 'YS Text', sans-serif;
|
178
|
+
font-weight: 300;
|
179
|
+
font-style: italic;
|
180
|
+
font-stretch: normal;
|
181
|
+
}
|
182
|
+
|
183
|
+
.YSText-Regular {
|
184
|
+
font-family: 'YS Text', sans-serif;
|
185
|
+
font-weight: 400;
|
186
|
+
font-style: normal;
|
187
|
+
font-stretch: normal;
|
188
|
+
}
|
189
|
+
|
190
|
+
.YSText-RegularItalic {
|
191
|
+
font-family: 'YS Text', sans-serif;
|
192
|
+
font-weight: 400;
|
193
|
+
font-style: italic;
|
194
|
+
font-stretch: normal;
|
195
|
+
}
|
196
|
+
|
197
|
+
.YSText-Medium {
|
198
|
+
font-family: 'YS Text', sans-serif;
|
199
|
+
font-weight: 500;
|
200
|
+
font-style: normal;
|
201
|
+
font-stretch: normal;
|
202
|
+
}
|
203
|
+
|
204
|
+
.YSText-MediumItalic {
|
205
|
+
font-family: 'YS Text', sans-serif;
|
206
|
+
font-weight: 500;
|
207
|
+
font-style: italic;
|
208
|
+
font-stretch: normal;
|
209
|
+
}
|
210
|
+
|
211
|
+
.YSText-Bold {
|
212
|
+
font-family: 'YS Text', sans-serif;
|
213
|
+
font-weight: 700;
|
214
|
+
font-style: normal;
|
215
|
+
font-stretch: normal;
|
216
|
+
}
|
217
|
+
|
218
|
+
.YSText-BoldItalic {
|
219
|
+
font-family: 'YS Text', sans-serif;
|
220
|
+
font-weight: 700;
|
221
|
+
font-style: italic;
|
222
|
+
font-stretch: normal;
|
223
|
+
}
|