ecomlab-components-next 0.1.159 → 0.1.162
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/dist/common/headers.js +2 -2
- package/dist/common/hooks/hooks.js +108 -0
- package/dist/common/hooks/useResetOnBaseURL.js +15 -0
- package/dist/common/img/icon-delete.svg +3 -0
- package/dist/common/img/icon-edit.svg +3 -0
- package/dist/common/img/noPhoto.png +0 -0
- package/dist/common/img/time_icon.svg +5 -0
- package/dist/common/img/view_icon.svg +5 -0
- package/dist/common/styles/svg_img.scss +290 -0
- package/dist/common/svg_img.js +238 -0
- package/dist/common/validationFunc.js +14 -0
- package/dist/components/ArticleComponent/Article.js +252 -0
- package/dist/components/ArticleComponent/Article.scss +289 -0
- package/dist/components/ArticleElements/ShortTileArticleBox/ShortTileArticleBox.stories.js +1 -1
- package/dist/components/ArticleMain/ArticleMain.js +451 -0
- package/dist/components/ArticleMain/ArticleMain.scss +220 -0
- package/dist/components/ArticleMain/img/table_icon.svg +3 -0
- package/dist/components/ArticleMain/img/tile-long_icon.svg +3 -0
- package/dist/components/ArticleMain/img/tile_icon.svg +3 -0
- package/dist/components/ButtonColumn/ButtonColumn.js +113 -0
- package/dist/components/ButtonColumn/ButtonColumn.scss +117 -0
- package/dist/components/ButtonColumn/img/column.svg +7 -0
- package/dist/components/ButtonCopy/ButtonCopy.js +37 -0
- package/dist/components/ButtonCopy/ButtonCopy.scss +43 -0
- package/dist/components/ButtonCopy/img/copy.svg +3 -0
- package/dist/components/ButtonExport/ButtonExport.js +83 -0
- package/dist/components/ButtonExport/ButtonExport.scss +111 -0
- package/dist/components/ButtonExport/img/export.svg +8 -0
- package/dist/components/ButtonExport/img/pdf.svg +12 -0
- package/dist/components/ButtonExport/img/xlc.svg +11 -0
- package/dist/components/ButtonUpload/ButtonUpload.js +24 -0
- package/dist/components/ButtonUpload/ButtonUpload.scss +45 -0
- package/dist/components/ButtonUpload/img/upload_icon.svg +8 -0
- package/dist/components/ConstructorComponents/Tariff/TariffPlan.js +8 -5
- package/dist/components/Page404/Page404.js +36 -0
- package/dist/components/Page404/Page404.scss +67 -0
- package/dist/components/Page404/img/banner-404.svg +16 -0
- package/dist/components/ShareComponent/ShareComponent.js +152 -0
- package/dist/components/ShareComponent/ShareComponent.scss +53 -0
- package/dist/components/ShareComponent/img/copy_icon.svg +5 -0
- package/dist/components/ShareComponent/img/facebook_icon.svg +5 -0
- package/dist/components/ShareComponent/img/linkedin_icon.svg +6 -0
- package/dist/components/ShareComponent/img/ok_icon.svg +5 -0
- package/dist/components/ShareComponent/img/share_icon.svg +5 -0
- package/dist/components/ShareComponent/img/tg_icon.svg +5 -0
- package/dist/components/ShareComponent/img/vk_icon.svg +5 -0
- package/dist/components/ShareComponent/img/whatsapp_icon.svg +5 -0
- package/dist/components/ShareComponent/img/x_icon.svg +5 -0
- package/dist/components/Table/TableBox/TableBox.stories.js +1 -1
- package/dist/components/TableInput/TableInput.js +103 -0
- package/dist/components/TableInput/TableInput.scss +35 -0
- package/dist/components/TableWithoutData/TableWithoutData.js +25 -0
- package/dist/components/TableWithoutData/TableWithoutData.scss +32 -0
- package/dist/components/TableWithoutData/img/doc_icon.png +0 -0
- package/dist/fonts/GolosText/GolosText-Black.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-Bold.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-ExtraBold.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-Medium.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-Regular.ttf +0 -0
- package/dist/fonts/GolosText/GolosText-SemiBold.ttf +0 -0
- package/dist/fonts/Inter/Inter-Bold.otf +0 -0
- package/dist/fonts/Inter/Inter-Light.otf +0 -0
- package/dist/fonts/Inter/Inter-Medium.otf +0 -0
- package/dist/fonts/Inter/Inter-Regular.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Black.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-BlackItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-BoldItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraBold.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraLight.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ExtraLightItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Italic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Light.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-LightItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-MediumItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-SemiBold.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-SemiBoldItalic.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-Thin.ttf +0 -0
- package/dist/fonts/Montserrat/Montserrat-ThinItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Black.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-BlackItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Bold.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-BoldItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-ExtraBold.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-ExtraBoldItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-ExtraLight.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-ExtraLightItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Italic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Light.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-LightItalic.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-Regular.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-SemiBold.ttf +0 -0
- package/dist/fonts/Nunito_Sans/NunitoSans-SemiBoldItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Black.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-BlackItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Bold.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-BoldItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-ExtraBold.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-ExtraBoldItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Italic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Light.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-LightItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Medium.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-MediumItalic.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-Regular.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-SemiBold.ttf +0 -0
- package/dist/fonts/Rubik/Rubik-SemiBoldItalic.ttf +0 -0
- package/dist/index.js +7 -0
- package/dist/main.js +14 -0
- package/dist/pages/_app.js +12 -0
- package/dist/pages/_document.js +12 -0
- package/dist/pages/index.js +92 -0
- package/dist/stories/Article/Article.scss +471 -0
- package/dist/stories/Article/ArticleElement.js +108 -0
- package/dist/stories/Article/ArticleStorybook.scss +6 -0
- package/dist/stories/Article/ArticleView.js +440 -0
- package/dist/stories/Article/ArticleView.stories.js +263 -0
- package/dist/stories/Article/Feedback/Feedback.js +58 -0
- package/dist/stories/Article/Feedback/Feedback.scss +86 -0
- package/dist/stories/Article/FormBtn/FormBtn.js +170 -0
- package/dist/stories/Article/FormBtn/FormBtn.scss +446 -0
- package/dist/stories/Article/FormBtn/img/clos_icon.svg +6 -0
- package/dist/stories/Article/FormBtn/img/close-icon.svg +3 -0
- package/dist/stories/Article/ImgArticle/ImgArticle.js +204 -0
- package/dist/stories/Article/ImgArticle/ImgArticle.scss +140 -0
- package/dist/stories/Article/ListOfContent/ListOfContent.js +41 -0
- package/dist/stories/Article/ListOfContent/ListOfContent.scss +83 -0
- package/dist/stories/Article/ListOfContent/ListOfContent.stories.js +66 -0
- package/dist/stories/Article/ListOfContent/img/time_icon.svg +3 -0
- package/dist/stories/Article/ListOfContent/img/view_icon.svg +3 -0
- package/dist/stories/Article/RecommendationList/RecommendationList.js +31 -0
- package/dist/stories/Article/RecommendationList/RecommendationList.scss +41 -0
- package/dist/stories/Article/TextArticle/TextArticle.js +129 -0
- package/dist/stories/Article/TextArticle/TextArticle.scss +43 -0
- package/dist/stories/Article/TitleText/TitleText.js +30 -0
- package/dist/stories/Article/TitleText/TitleText.scss +33 -0
- package/dist/stories/Article/YellowInformationBox/YellowInformationBox.js +30 -0
- package/dist/stories/Article/YellowInformationBox/YellowInformationBox.scss +46 -0
- package/dist/stories/Article/YellowInformationBox/img/bell.svg +9 -0
- package/dist/stories/Article/img/bell.svg +9 -0
- package/dist/stories/Article/img/btn-add-round.svg +4 -0
- package/dist/stories/Article/img/calendar_icon.svg +6 -0
- package/dist/stories/Article/img/close-round.svg +3 -0
- package/dist/stories/Article/img/close.svg +9 -0
- package/dist/stories/Article/img/copy_icon.svg +5 -0
- package/dist/stories/Article/img/info.svg +9 -0
- package/dist/stories/Article/img/ok_icon.svg +5 -0
- package/dist/stories/Article/img/share_icon.svg +5 -0
- package/dist/stories/Article/img/tg_icon.svg +5 -0
- package/dist/stories/Article/img/time_icon.svg +6 -0
- package/dist/stories/Article/img/view_icon.svg +6 -0
- package/dist/stories/Article/img/vk_icon.svg +5 -0
- package/dist/stories/Article/img/whatsapp_icon.svg +5 -0
- package/dist/stories/ArticleMainContainer/ArticleMainContainer.js +540 -0
- package/dist/stories/ArticleMainContainer/ArticleMainContainer.scss +377 -0
- package/dist/stories/ArticleMainContainer/ArticleMainContainer.stories.js +75 -0
- package/dist/stories/ArticleMainContainer/main/page.js +1 -0
- package/dist/stories/ArticleMinBox/ArticleMinBox.js +172 -0
- package/dist/stories/ArticleMinBox/ArticleMinBox.scss +38 -0
- package/dist/stories/ArticleMinBox/ArticleMinBox.stories.js +56 -0
- package/dist/stories/BasicSelection/BasicSelection.js +143 -0
- package/dist/stories/BasicSelection/BasicSelection.scss +97 -0
- package/dist/stories/BasicSelection/BasicSelection.stories.js +32 -0
- package/dist/stories/Breadcrumb/Breadcrumb.js +113 -0
- package/dist/stories/Breadcrumb/Breadcrumb.scss +92 -0
- package/dist/stories/Breadcrumb/Breadcrums.stories.js +31 -0
- package/dist/stories/Breadcrumb/img/drop-right.svg +3 -0
- package/dist/stories/Breadcrumb/img/home_icon.svg +5 -0
- package/dist/stories/ButtonBasic/ButtonBasic.js +70 -0
- package/dist/stories/ButtonBasic/ButtonBasic.scss +242 -0
- package/dist/stories/ButtonBasic/ButtonBasic.stories.js +60 -0
- package/dist/stories/Checkbox/Checkbox.js +70 -0
- package/dist/stories/Checkbox/Checkbox.scss +128 -0
- package/dist/stories/Checkbox/Checkbox.stories.js +49 -0
- package/dist/stories/Checkbox/img/check.svg +3 -0
- package/dist/stories/CheckboxToggle/CheckboxToggle.js +54 -0
- package/dist/stories/CheckboxToggle/CheckboxToggle.scss +117 -0
- package/dist/stories/CheckboxToggle/CheckboxToggle.stories.js +26 -0
- package/dist/stories/DropDownSelector/DownSelector.js +352 -0
- package/dist/stories/DropDownSelector/DownSelector.stories.js +161 -0
- package/dist/stories/DropDownSelector/DropdownSelector.scss +272 -0
- package/dist/stories/DropDownSelector/img/close_icon.svg +6 -0
- package/dist/stories/DropDownSelector/img/close_icon_disabled.svg +6 -0
- package/dist/stories/InputDinamycPlaceholder/InputDinamycPlaceholder.js +162 -0
- package/dist/stories/InputDinamycPlaceholder/InputDinamycPlaceholder.scss +475 -0
- package/dist/stories/InputDinamycPlaceholder/InputDinamycPlaceholder.stories.js +50 -0
- package/dist/stories/InputDinamycPlaceholder/img/close_grey.svg +5 -0
- package/dist/stories/InputDinamycPlaceholder/img/close_red.svg +5 -0
- package/dist/stories/InputDinamycPlaceholder/img/hide.svg +12 -0
- package/dist/stories/InputDinamycPlaceholder/img/info_tooltip.svg +12 -0
- package/dist/stories/InputDinamycPlaceholder/img/show.svg +3 -0
- package/dist/stories/InputDynamicWidth/InputDynamicWidth.js +85 -0
- package/dist/stories/InputDynamicWidth/InputDynamicWidth.scss +98 -0
- package/dist/stories/InputDynamicWidth/InputDynamicWidth.stories.js +32 -0
- package/dist/stories/InputDynamicWidth/img/close_icon.svg +3 -0
- package/dist/stories/InputDynamicWidth/img/search_icon.svg +6 -0
- package/dist/stories/LongTileArticleBox/LongTileArticleBox.js +168 -0
- package/dist/stories/LongTileArticleBox/LongTileArticleBox.scss +360 -0
- package/dist/stories/LongTileArticleBox/LongTileArticleBox.stories.js +39 -0
- package/dist/stories/LongTileArticleBox/img/arrow_blue.svg +6 -0
- package/dist/stories/LongTileArticleBox/img/calendar_icon.svg +6 -0
- package/dist/stories/LongTileArticleBox/img/copy_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/ok_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/share_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/tag_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/tg_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/time_icon.svg +6 -0
- package/dist/stories/LongTileArticleBox/img/view_icon.svg +6 -0
- package/dist/stories/LongTileArticleBox/img/vk_icon.svg +5 -0
- package/dist/stories/LongTileArticleBox/img/whatsapp_icon.svg +5 -0
- package/dist/stories/ModalArticleAddElement/ModalArticleAddElement.js +128 -0
- package/dist/stories/ModalArticleAddElement/ModalArticleAddElement.scss +124 -0
- package/dist/stories/ModalArticleAddElement/ModalArticleAddElement.stories.js +19 -0
- package/dist/stories/ModalBitrixForm/ModalBitrixForm.js +236 -0
- package/dist/stories/ModalBitrixForm/ModalBitrixForm.scss +167 -0
- package/dist/stories/ModalBitrixForm/ModalBitrixForm.stories.js +101 -0
- package/dist/stories/ModalBitrixForm/img/close_icon.svg +3 -0
- package/dist/stories/ModalBitrixForm/img/done_icon.svg +3 -0
- package/dist/stories/ModalBitrixForm/img/ozon.svg +9 -0
- package/dist/stories/ModalBitrixForm/img/ozon_bkg.svg +9 -0
- package/dist/stories/MultilevelSidebar/MultilevelSidebar.js +472 -0
- package/dist/stories/MultilevelSidebar/MultilevelSidebar.scss +237 -0
- package/dist/stories/MultilevelSidebar/MultilevelSidebar.stories.js +80 -0
- package/dist/stories/MultilevelSidebar/MultilevelSidebarStorybook.scss +7 -0
- package/dist/stories/MultilevelSidebar/img/drop.svg +3 -0
- package/dist/stories/MultilevelSidebar/img/settings.svg +4 -0
- package/dist/stories/NoArticles/NoArticles.js +29 -0
- package/dist/stories/NoArticles/NoArticles.scss +26 -0
- package/dist/stories/NoArticles/NoArticles.stories.js +20 -0
- package/dist/stories/NoArticles/img/banner.svg +266 -0
- package/dist/stories/Paginator/Paginator.js +254 -0
- package/dist/stories/Paginator/Paginator.scss +168 -0
- package/dist/stories/Paginator/Paginator.stories.js +56 -0
- package/dist/stories/Paginator/img/arrow_blue.svg +3 -0
- package/dist/stories/Paginator/img/arrow_next.svg +3 -0
- package/dist/stories/Paginator/img/arrow_prev.svg +3 -0
- package/dist/stories/ResultsFound/ResultsFound.js +269 -0
- package/dist/stories/ResultsFound/ResultsFound.scss +139 -0
- package/dist/stories/ResultsFound/ResultsFound.stories.js +25 -0
- package/dist/stories/ResultsFound/img/arrow_icon.svg +5 -0
- package/dist/stories/ResultsFound/img/no-data_img.svg +13 -0
- package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.js +160 -0
- package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.scss +827 -0
- package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.stories.js +42 -0
- package/dist/stories/ShortTileArticleBox/img/arrow_blue.svg +6 -0
- package/dist/stories/ShortTileArticleBox/img/calendar_icon.svg +6 -0
- package/dist/stories/ShortTileArticleBox/img/copy_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/ok_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/share_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/tag_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/tg_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/time_icon.svg +6 -0
- package/dist/stories/ShortTileArticleBox/img/view_icon.svg +6 -0
- package/dist/stories/ShortTileArticleBox/img/vk_icon.svg +5 -0
- package/dist/stories/ShortTileArticleBox/img/whatsapp_icon.svg +5 -0
- package/dist/stories/SliderCarousel/SliderCarousel.js +77 -0
- package/dist/stories/SliderCarousel/SliderCarousel.scss +85 -0
- package/dist/stories/SliderCarousel/SliderCarousel.stories.js +29 -0
- package/dist/stories/SliderCarousel/img/no_image.svg +3 -0
- package/dist/stories/Table/Filters/OptionsDate.js +208 -0
- package/dist/stories/Table/Filters/OptionsImage.js +92 -0
- package/dist/stories/Table/Filters/OptionsImage.scss +10 -0
- package/dist/stories/Table/Filters/OptionsList.js +244 -0
- package/dist/stories/Table/Filters/OptionsNumber.js +220 -0
- package/dist/stories/Table/Filters/OptionsNumber.scss +100 -0
- package/dist/stories/Table/Filters/OptionsText.js +165 -0
- package/dist/stories/Table/Filters/OptionsText.scss +71 -0
- package/dist/stories/Table/Filters/img/FilterDefault.js +26 -0
- package/dist/stories/Table/Filters/img/FilterReset.js +41 -0
- package/dist/stories/Table/Filters/img/dropFilters.png +0 -0
- package/dist/stories/Table/Filters/img/filterDefault.svg +3 -0
- package/dist/stories/Table/Filters/img/filter_blue.svg +3 -0
- package/dist/stories/Table/Filters/img/filter_blue_background.svg +5 -0
- package/dist/stories/Table/Filters/img/filter_reset.svg +7 -0
- package/dist/stories/Table/InputWithState/InputWithState.js +36 -0
- package/dist/stories/Table/RenderFiltersTh/RenderFiltersTh.js +140 -0
- package/dist/stories/Table/RenderTd/RenderTd.js +19 -0
- package/dist/stories/Table/RenderTh/RenderTh.js +112 -0
- package/dist/stories/Table/Table.js +1568 -0
- package/dist/stories/Table/Table.scss +1524 -0
- package/dist/stories/Table/Table.stories.js +83 -0
- package/dist/stories/Table/TableChartTd/TableChartTd.js +172 -0
- package/dist/stories/Table/TableChartTd/TableChartTd.scss +0 -0
- package/dist/stories/Table/TdDate/TdDate.js +36 -0
- package/dist/stories/Table/TdDate/TdDate.scss +0 -0
- package/dist/stories/Table/TdDate.js +34 -0
- package/dist/stories/Table/TypeTdImage.js +85 -0
- package/dist/stories/Table/img/Search.png +0 -0
- package/dist/stories/Table/img/SortArrow.js +12 -0
- package/dist/stories/Table/img/SortArrowUp.js +12 -0
- package/dist/stories/Table/img/SortTable.js +14 -0
- package/dist/stories/Table/img/close_icon.svg +7 -0
- package/dist/stories/Table/img/close_white.svg +3 -0
- package/dist/stories/Table/img/context-menu.svg +6 -0
- package/dist/stories/Table/img/contextMenuBtn.png +0 -0
- package/dist/stories/Table/img/delete_icon.svg +8 -0
- package/dist/stories/Table/img/dropFilters.png +0 -0
- package/dist/stories/Table/img/filter.png +0 -0
- package/dist/stories/Table/img/filterDefault.png +0 -0
- package/dist/stories/Table/img/filter_blue.svg +3 -0
- package/dist/stories/Table/img/filter_blue_background.svg +5 -0
- package/dist/stories/Table/img/imageNotFound.svg +3 -0
- package/dist/stories/Table/img/location.svg +3 -0
- package/dist/stories/Table/img/sort_arrow_down.svg +6 -0
- package/dist/stories/Table/img/sort_arrow_up.svg +4 -0
- package/dist/stories/Table/img/sort_table.svg +8 -0
- package/dist/stories/Table/svg_img.js +8 -0
- package/dist/stories/TableBox/TableBox.js +304 -0
- package/dist/stories/TableBox/TableBox.scss +418 -0
- package/dist/stories/TableBox/TableBox.stories.js +124 -0
- package/dist/stories/TableBox/img/delete_icon.svg +9 -0
- package/dist/stories/TableBox/img/forward_icon.svg +9 -0
- package/dist/stories/TableBox/img/more_icon.svg +10 -0
- package/dist/stories/TableBox/img_stories/tag_icon.svg +5 -0
- package/dist/stories/TextareaDynamicPlaceholder/TextareaDynamicPlaceholder.js +91 -0
- package/dist/stories/TextareaDynamicPlaceholder/TextareaDynamicPlaceholder.scss +124 -0
- package/dist/stories/TextareaDynamicPlaceholder/TextareaDynamicPlaceholder.stories.js +29 -0
- package/dist/stories/TitleContentEditable/TitleContentEditable.js +71 -0
- package/dist/stories/TitleContentEditable/TitleContentEditable.scss +69 -0
- package/dist/stories/TitleContentEditable/TitleContentEditable.stories.js +37 -0
- package/dist/stories/ViewSwitch/ViewSwitch.js +48 -0
- package/dist/stories/ViewSwitch/ViewSwitch.scss +135 -0
- package/dist/stories/ViewSwitch/ViewSwitch.stories.js +48 -0
- package/dist/stories/ViewSwitch/img/Chat.js +24 -0
- package/dist/stories/ViewSwitch/img/Table.js +21 -0
- package/dist/stories/ViewSwitch/img/Tile.js +20 -0
- package/dist/stories/ViewSwitch/img/TileLong.js +20 -0
- package/dist/styles/font.scss +93 -0
- package/dist/styles/globals.scss +66 -0
- package/package.json +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
.input-dynamic-width-bar {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
width: fit-content;
|
|
5
|
+
// overflow: hidden;
|
|
6
|
+
|
|
7
|
+
&__search,
|
|
8
|
+
&__search_active {
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 40px;
|
|
11
|
+
height: 40px;
|
|
12
|
+
border-radius: 8px;
|
|
13
|
+
padding: 10px;
|
|
14
|
+
transition-duration: 1000ms;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
background-repeat: no-repeat;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
color: transparent;
|
|
19
|
+
border: 1px solid #fff;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
background-image: url('./img/search_icon.svg');
|
|
22
|
+
background-color: white;
|
|
23
|
+
background-size: 16px;
|
|
24
|
+
background-position: left 12px center;
|
|
25
|
+
padding-left: 40px;
|
|
26
|
+
padding-right: 0;
|
|
27
|
+
transition: 0s;
|
|
28
|
+
color: #0B110B;
|
|
29
|
+
font-family: NunitoSans;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
line-height: 16px;
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
transition: 0.5s;
|
|
37
|
+
background-color: #F3F3F3;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&_active {
|
|
41
|
+
transition: 1s;
|
|
42
|
+
width: 100%;
|
|
43
|
+
max-width: 400px;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
padding-left: 16px;
|
|
46
|
+
color: #3B2C37;
|
|
47
|
+
font-family: Montserrat;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
line-height: normal;
|
|
52
|
+
outline: none;
|
|
53
|
+
padding-left: 40px;
|
|
54
|
+
padding-right: 40px;
|
|
55
|
+
box-shadow: 0px 2px 8px 0px rgba(236, 234, 249, 0.60);
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
transition: 0.5s;
|
|
59
|
+
background-color: #fff
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::placeholder {
|
|
64
|
+
color: #94A3B8;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&__btn_close {
|
|
69
|
+
border: none;
|
|
70
|
+
background-color: inherit;
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 12px;
|
|
73
|
+
right: 12px;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@keyframes showDiv {
|
|
78
|
+
|
|
79
|
+
0%,
|
|
80
|
+
99% {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
100% {
|
|
85
|
+
display: flex;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (max-width: 430px) {
|
|
92
|
+
.input-dynamic-width-bar {
|
|
93
|
+
&__search,
|
|
94
|
+
&__search_active {
|
|
95
|
+
font-size: 16px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.Default = void 0;
|
|
7
|
+
var _InputDynamicWidth = _interopRequireDefault(require("./InputDynamicWidth"));
|
|
8
|
+
var _addonActions = require("@storybook/addon-actions");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
var _default = exports["default"] = {
|
|
11
|
+
title: 'Components/InputDynamicWidth',
|
|
12
|
+
component: _InputDynamicWidth["default"],
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: 'centered'
|
|
15
|
+
},
|
|
16
|
+
args: {
|
|
17
|
+
onChange: _addonActions.action,
|
|
18
|
+
placeholder: 'Поиск'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
var Default = exports.Default = {
|
|
22
|
+
render: function render(args) {
|
|
23
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
style: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
width: '100%',
|
|
27
|
+
gap: '10px',
|
|
28
|
+
flexDirection: 'column'
|
|
29
|
+
}
|
|
30
|
+
}, /*#__PURE__*/React.createElement(_InputDynamicWidth["default"], args));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.5303 4.53033C12.8232 4.23744 12.8232 3.76256 12.5303 3.46967C12.2374 3.17678 11.7626 3.17678 11.4697 3.46967L8 6.93934L4.53033 3.46967C4.23744 3.17678 3.76256 3.17678 3.46967 3.46967C3.17678 3.76256 3.17678 4.23744 3.46967 4.53033L6.93934 8L3.46967 11.4697C3.17678 11.7626 3.17678 12.2374 3.46967 12.5303C3.76256 12.8232 4.23744 12.8232 4.53033 12.5303L8 9.06066L11.4697 12.5303C11.7626 12.8232 12.2374 12.8232 12.5303 12.5303C12.8232 12.2374 12.8232 11.7626 12.5303 11.4697L9.06066 8L12.5303 4.53033Z" fill="#0B110B"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Group 418">
|
|
3
|
+
<circle id="Ellipse 999" cx="6.5" cy="6.5" r="5.5" stroke="#0B110B" stroke-width="2"/>
|
|
4
|
+
<path id="Vector 141" d="M12.2929 14.7071C12.6834 15.0976 13.3166 15.0976 13.7071 14.7071C14.0976 14.3166 14.0976 13.6834 13.7071 13.2929L12.2929 14.7071ZM9.29289 11.7071L12.2929 14.7071L13.7071 13.2929L10.7071 10.2929L9.29289 11.7071Z" fill="#0B110B"/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _link = _interopRequireDefault(require("next/link"));
|
|
8
|
+
var _htmlReactParser = _interopRequireDefault(require("html-react-parser"));
|
|
9
|
+
var _time_icon = _interopRequireDefault(require("./img/time_icon.svg"));
|
|
10
|
+
var _view_icon = _interopRequireDefault(require("./img/view_icon.svg"));
|
|
11
|
+
var _calendar_icon = _interopRequireDefault(require("./img/calendar_icon.svg"));
|
|
12
|
+
var _SliderCarousel = _interopRequireDefault(require("../SliderCarousel/SliderCarousel"));
|
|
13
|
+
var _ShareComponent = require("../../components/ShareComponent/ShareComponent");
|
|
14
|
+
var _highlightWord = require("../../common/highlightWord ");
|
|
15
|
+
var _react = require("react");
|
|
16
|
+
require("./LongTileArticleBox.scss");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
23
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
24
|
+
var LongTileArticleBox = function LongTileArticleBox(_ref) {
|
|
25
|
+
var _tags$map, _author$, _author$2;
|
|
26
|
+
var id = _ref.id,
|
|
27
|
+
name = _ref.name,
|
|
28
|
+
annotation = _ref.annotation,
|
|
29
|
+
author = _ref.author,
|
|
30
|
+
photoPreview = _ref.photoPreview,
|
|
31
|
+
pathBread = _ref.pathBread,
|
|
32
|
+
tags = _ref.tags,
|
|
33
|
+
date = _ref.date,
|
|
34
|
+
timeToRead = _ref.timeToRead,
|
|
35
|
+
views = _ref.views,
|
|
36
|
+
statusArray = _ref.statusArray,
|
|
37
|
+
showStatus = _ref.showStatus,
|
|
38
|
+
onLinkClick = _ref.onLinkClick,
|
|
39
|
+
_ref$activeLang = _ref.activeLang,
|
|
40
|
+
activeLang = _ref$activeLang === void 0 ? 'rus' : _ref$activeLang,
|
|
41
|
+
transliter = _ref.transliter,
|
|
42
|
+
_ref$search = _ref.search,
|
|
43
|
+
search = _ref$search === void 0 ? false : _ref$search,
|
|
44
|
+
hideInfo = _ref.hideInfo,
|
|
45
|
+
BASE_ROUTE = _ref.BASE_ROUTE;
|
|
46
|
+
var _useState = (0, _react.useState)(''),
|
|
47
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
48
|
+
articleName = _useState2[0],
|
|
49
|
+
setArticleName = _useState2[1];
|
|
50
|
+
var articlePath = annotation === null || annotation === void 0 ? void 0 : annotation[1];
|
|
51
|
+
var _useState3 = (0, _react.useState)(false),
|
|
52
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
53
|
+
isDropShare = _useState4[0],
|
|
54
|
+
setIsDropShare = _useState4[1];
|
|
55
|
+
(0, _react.useEffect)(function () {
|
|
56
|
+
setArticleName(Array.isArray(name) ? name === null || name === void 0 ? void 0 : name[0] : name);
|
|
57
|
+
}, [name]);
|
|
58
|
+
var translateMin = function translateMin() {
|
|
59
|
+
if (activeLang == 'rus') return 'мин';
|
|
60
|
+
if (activeLang == 'eng') return 'min';
|
|
61
|
+
if (activeLang == 'tur') return 'dak';
|
|
62
|
+
return 'мин';
|
|
63
|
+
};
|
|
64
|
+
var translateAuthor = function translateAuthor() {
|
|
65
|
+
if (author) {
|
|
66
|
+
if (Array.isArray(author)) {
|
|
67
|
+
if (activeLang == 'eng' || activeLang == 'tur') return transliter(author !== null && author !== void 0 && author[0] ? author === null || author === void 0 ? void 0 : author[0] : '');
|
|
68
|
+
} else {
|
|
69
|
+
if (activeLang == 'eng' || activeLang == 'tur') return transliter(author ? author : '');
|
|
70
|
+
}
|
|
71
|
+
} else {
|
|
72
|
+
if (activeLang == 'rus') return 'Неизвестный автор';
|
|
73
|
+
if (activeLang == 'tur') return 'Bilinmeyen Yazar';
|
|
74
|
+
if (activeLang == 'eng') return 'Unknown_author';
|
|
75
|
+
}
|
|
76
|
+
return Array.isArray(author) ? author === null || author === void 0 ? void 0 : author[0] : author;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// Обработчик на клик вне элемента
|
|
80
|
+
(0, _react.useEffect)(function () {
|
|
81
|
+
var isDrop = function isDrop(e) {
|
|
82
|
+
var el = e.target;
|
|
83
|
+
if (!el.closest("#share-".concat(id))) {
|
|
84
|
+
setIsDropShare(false);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
document.addEventListener('click', isDrop);
|
|
88
|
+
return function () {
|
|
89
|
+
document.addEventListener('click', isDrop);
|
|
90
|
+
};
|
|
91
|
+
}, []);
|
|
92
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: "tile-long",
|
|
94
|
+
key: id + '' + name + '' + author
|
|
95
|
+
}, /*#__PURE__*/React.createElement(_link["default"], {
|
|
96
|
+
onClick: function onClick(e) {
|
|
97
|
+
return onLinkClick(e, id, articlePath);
|
|
98
|
+
},
|
|
99
|
+
href: articlePath
|
|
100
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
101
|
+
className: "article-min"
|
|
102
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
className: "img-content"
|
|
104
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
105
|
+
className: "img-box"
|
|
106
|
+
}, /*#__PURE__*/React.createElement(_SliderCarousel["default"], {
|
|
107
|
+
imgArr: photoPreview
|
|
108
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
109
|
+
className: "content-box"
|
|
110
|
+
}, tags && /*#__PURE__*/React.createElement("div", {
|
|
111
|
+
className: "tag-box"
|
|
112
|
+
}, tags && ((_tags$map = tags.map(function (t, index) {
|
|
113
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
key: t + index,
|
|
115
|
+
className: "tag"
|
|
116
|
+
}, t);
|
|
117
|
+
})) === null || _tags$map === void 0 ? void 0 : _tags$map.splice(0, 3)), (tags === null || tags === void 0 ? void 0 : tags.length) > 3 && /*#__PURE__*/React.createElement("div", {
|
|
118
|
+
className: "tag"
|
|
119
|
+
}, '+ ' + ((tags === null || tags === void 0 ? void 0 : tags.length) - 3))), /*#__PURE__*/React.createElement("h3", {
|
|
120
|
+
className: "title"
|
|
121
|
+
}, search ? (0, _highlightWord.hightlightWord)(search, articleName) : articleName), /*#__PURE__*/React.createElement("div", {
|
|
122
|
+
className: "description-content"
|
|
123
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
124
|
+
className: "text_description"
|
|
125
|
+
}, Array.isArray(annotation) ? annotation !== null && annotation !== void 0 && annotation[0] ? (0, _htmlReactParser["default"])(annotation === null || annotation === void 0 ? void 0 : annotation[0]) : '' : annotation ? (0, _htmlReactParser["default"])(annotation) : '')), /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: "text-and-info-box"
|
|
127
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
className: "top-info"
|
|
129
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
className: "author-box"
|
|
131
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
132
|
+
className: "author-avatar",
|
|
133
|
+
style: {
|
|
134
|
+
backgroundColor: author[1] ? author[1] : ''
|
|
135
|
+
}
|
|
136
|
+
}, ((_author$ = author[0]) === null || _author$ === void 0 ? void 0 : _author$.length) > 0 ? (_author$2 = author[0]) === null || _author$2 === void 0 || (_author$2 = _author$2.split(' ').map(function (str) {
|
|
137
|
+
return str[0];
|
|
138
|
+
}).reduce(function (acc, current) {
|
|
139
|
+
return acc += current;
|
|
140
|
+
}, '')) === null || _author$2 === void 0 ? void 0 : _author$2.toUpperCase() : '-', " "), /*#__PURE__*/React.createElement("p", {
|
|
141
|
+
className: "text_grey"
|
|
142
|
+
}, translateAuthor(author))), /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
className: "info-box"
|
|
144
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
145
|
+
className: "date-box"
|
|
146
|
+
}, /*#__PURE__*/React.createElement("img", _calendar_icon["default"]), /*#__PURE__*/React.createElement("p", {
|
|
147
|
+
className: "text_grey"
|
|
148
|
+
}, date.toLocaleDateString('ru-ru'))), /*#__PURE__*/React.createElement("div", {
|
|
149
|
+
className: "view-box"
|
|
150
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
151
|
+
className: "icon-box"
|
|
152
|
+
}, /*#__PURE__*/React.createElement("img", _view_icon["default"])), /*#__PURE__*/React.createElement("p", {
|
|
153
|
+
className: "text"
|
|
154
|
+
}, views)), /*#__PURE__*/React.createElement("div", {
|
|
155
|
+
className: "time-box"
|
|
156
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
157
|
+
className: "icon-box"
|
|
158
|
+
}, /*#__PURE__*/React.createElement("img", _time_icon["default"])), /*#__PURE__*/React.createElement("p", {
|
|
159
|
+
className: "text"
|
|
160
|
+
}, "".concat(timeToRead ? timeToRead : '-', " ").concat(translateMin()))))), /*#__PURE__*/React.createElement(_ShareComponent.ShareComponent, {
|
|
161
|
+
activeLang: activeLang,
|
|
162
|
+
id: id,
|
|
163
|
+
articlePath: articlePath
|
|
164
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
165
|
+
className: "bottom-info"
|
|
166
|
+
}))))));
|
|
167
|
+
};
|
|
168
|
+
var _default = exports["default"] = LongTileArticleBox;
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
.tile-long {
|
|
2
|
+
max-width: 100%;
|
|
3
|
+
width: 100%;
|
|
4
|
+
min-width: 740px;
|
|
5
|
+
|
|
6
|
+
.link-blue {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
justify-content: flex-end;
|
|
11
|
+
gap: 8px;
|
|
12
|
+
color: #4285F4;
|
|
13
|
+
font-family: Inter;
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
line-height: 22px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.article-min {
|
|
21
|
+
display: flex;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
height: auto;
|
|
25
|
+
border: 2px solid #F2F5FA;
|
|
26
|
+
//overflow: hidden;
|
|
27
|
+
border-radius: 10px;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
.content-box {
|
|
32
|
+
transition: 0.3s;
|
|
33
|
+
background-color: rgba(31, 31, 31, 0.04);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.img-box {
|
|
37
|
+
transition: 0.3s;
|
|
38
|
+
background-color: rgba(31, 31, 31, 0.04);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.img-content {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
padding: 16px;
|
|
47
|
+
min-height: calc(230px);
|
|
48
|
+
background: #F0F2F4;
|
|
49
|
+
width: 100%;
|
|
50
|
+
margin-left: auto;
|
|
51
|
+
margin-right: auto;
|
|
52
|
+
aspect-ratio: 1/0.53;
|
|
53
|
+
position: relative;
|
|
54
|
+
max-width: 348px;
|
|
55
|
+
|
|
56
|
+
.img-box {
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
border: 5px solid #fff;
|
|
60
|
+
background-color: #fff;
|
|
61
|
+
border-radius: 10px;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// border: 1px solid #AAAAAA;
|
|
66
|
+
|
|
67
|
+
.img-box {}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
img {
|
|
72
|
+
display: inline-block;
|
|
73
|
+
max-width: 100%;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
object-fit: contain;
|
|
77
|
+
border-radius: 8px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.tag-box {
|
|
82
|
+
display: flex;
|
|
83
|
+
gap: 14px;
|
|
84
|
+
align-items: flex-start;
|
|
85
|
+
flex-wrap: nowrap;
|
|
86
|
+
|
|
87
|
+
.tag {
|
|
88
|
+
display: flex;
|
|
89
|
+
gap: 4px;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
align-items: center;
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
color: #9959FC;
|
|
95
|
+
font-family: "Golos Text";
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
font-style: normal;
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
line-height: 16px;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.content-box {
|
|
106
|
+
padding: 16px;
|
|
107
|
+
height: 100%;
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
justify-content: space-between;
|
|
111
|
+
gap: 8px;
|
|
112
|
+
background-color: #fff;
|
|
113
|
+
// overflow: hidden;
|
|
114
|
+
width: calc(100% - 348px) ;
|
|
115
|
+
|
|
116
|
+
.title {
|
|
117
|
+
color: #2B2B46;
|
|
118
|
+
font-family: "Golos Text";
|
|
119
|
+
font-size: 20px;
|
|
120
|
+
font-style: normal;
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
line-height: 24px;
|
|
123
|
+
display: -webkit-box;
|
|
124
|
+
-webkit-line-clamp: 1; // количество строк
|
|
125
|
+
-webkit-box-orient: vertical;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
hyphens: auto;
|
|
128
|
+
min-height: 24px;
|
|
129
|
+
|
|
130
|
+
b {
|
|
131
|
+
background-color: #fdfd78;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.description-content {
|
|
136
|
+
margin-top: 2px;
|
|
137
|
+
|
|
138
|
+
.text_description {
|
|
139
|
+
color: #5D5D75;
|
|
140
|
+
font-family: "Golos Text";
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
font-style: normal;
|
|
143
|
+
font-weight: 400;
|
|
144
|
+
line-height: 22px;
|
|
145
|
+
display: -webkit-box;
|
|
146
|
+
-webkit-line-clamp: 4;
|
|
147
|
+
-webkit-box-orient: vertical;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
hyphens: auto;
|
|
150
|
+
min-height: 88px;
|
|
151
|
+
|
|
152
|
+
b {
|
|
153
|
+
background-color: #fdfd78;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.btn-box {
|
|
158
|
+
display: none;
|
|
159
|
+
opacity: 0;
|
|
160
|
+
visibility: hidden;
|
|
161
|
+
// transition: 0.3s;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.text_grey {
|
|
166
|
+
//white-space: nowrap;
|
|
167
|
+
text-overflow: ellipsis;
|
|
168
|
+
//overflow: hidden;
|
|
169
|
+
font-size: 14px;
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
color: #AAAAAA;
|
|
172
|
+
overflow: hidden;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.top-box {
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
gap: 12px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.bottom-box {
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
gap: 12px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.text-and-info-box {
|
|
191
|
+
display: flex;
|
|
192
|
+
flex-direction: column;
|
|
193
|
+
gap: 17px;
|
|
194
|
+
width: 100%;
|
|
195
|
+
margin-top: 37px;
|
|
196
|
+
|
|
197
|
+
.top-info,
|
|
198
|
+
.bottom-info {
|
|
199
|
+
display: flex;
|
|
200
|
+
justify-content: space-between;
|
|
201
|
+
align-items: center;
|
|
202
|
+
width: 100%;
|
|
203
|
+
|
|
204
|
+
.text,
|
|
205
|
+
.text_grey {
|
|
206
|
+
//white-space: nowrap;
|
|
207
|
+
color: #2B2B46;
|
|
208
|
+
font-family: "Golos Text";
|
|
209
|
+
font-size: 14px;
|
|
210
|
+
font-style: normal;
|
|
211
|
+
font-weight: 500;
|
|
212
|
+
line-height: 18px;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.top-info {
|
|
217
|
+
display: flex;
|
|
218
|
+
align-items: center;
|
|
219
|
+
gap: 8px;
|
|
220
|
+
overflow: hidden;
|
|
221
|
+
width: 100%;
|
|
222
|
+
|
|
223
|
+
.author-box {
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
gap: 8px;
|
|
227
|
+
overflow: hidden;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.author-avatar {
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
justify-content: center;
|
|
234
|
+
width: 24px;
|
|
235
|
+
height: 24px;
|
|
236
|
+
min-width: 24px;
|
|
237
|
+
background-color: #27BC62;
|
|
238
|
+
color: #FFF;
|
|
239
|
+
text-align: center;
|
|
240
|
+
font-family: NunitoSans;
|
|
241
|
+
border-radius: 50%;
|
|
242
|
+
font-size: 10px;
|
|
243
|
+
font-style: normal;
|
|
244
|
+
font-weight: 700;
|
|
245
|
+
line-height: 12px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.text,
|
|
249
|
+
.text_grey {
|
|
250
|
+
color: #2B2B46;
|
|
251
|
+
font-family: "Golos Text";
|
|
252
|
+
font-size: 14px;
|
|
253
|
+
font-style: normal;
|
|
254
|
+
font-weight: 500;
|
|
255
|
+
line-height: 18px;
|
|
256
|
+
display: -webkit-box;
|
|
257
|
+
-webkit-line-clamp: 1; // количество строк
|
|
258
|
+
-webkit-box-orient: vertical;
|
|
259
|
+
overflow: hidden;
|
|
260
|
+
word-break: break-word;
|
|
261
|
+
hyphens: auto;
|
|
262
|
+
overflow: hidden;
|
|
263
|
+
gap: 8px;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.date-box,
|
|
268
|
+
.time-box,
|
|
269
|
+
.view-box {
|
|
270
|
+
display: flex;
|
|
271
|
+
align-items: center;
|
|
272
|
+
gap: 6px;
|
|
273
|
+
|
|
274
|
+
.icon-box {
|
|
275
|
+
display: flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
justify-content: center;
|
|
278
|
+
border-radius: 4px;
|
|
279
|
+
// border: 1px solid #EAECEA;
|
|
280
|
+
background-color: #fff;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.info-box {
|
|
285
|
+
display: flex;
|
|
286
|
+
gap: 14px;
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
.text,
|
|
290
|
+
.text_grey {
|
|
291
|
+
white-space: nowrap;
|
|
292
|
+
color: #0B110B;
|
|
293
|
+
text-align: right;
|
|
294
|
+
font-family: NunitoSans;
|
|
295
|
+
font-size: 14px;
|
|
296
|
+
font-style: normal;
|
|
297
|
+
font-weight: 700;
|
|
298
|
+
line-height: 16px;
|
|
299
|
+
|
|
300
|
+
span {
|
|
301
|
+
color: #B4B8B4;
|
|
302
|
+
font-family: NunitoSans;
|
|
303
|
+
font-size: 14px;
|
|
304
|
+
font-style: normal;
|
|
305
|
+
font-weight: 300;
|
|
306
|
+
line-height: 16px;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.info-box {
|
|
310
|
+
display: flex;
|
|
311
|
+
flex-direction: column;
|
|
312
|
+
align-items: end;
|
|
313
|
+
gap: 4px;
|
|
314
|
+
|
|
315
|
+
.time-box,
|
|
316
|
+
.view-box {
|
|
317
|
+
display: flex;
|
|
318
|
+
align-items: center;
|
|
319
|
+
gap: 5px;
|
|
320
|
+
|
|
321
|
+
.icon-box {
|
|
322
|
+
display: flex;
|
|
323
|
+
align-items: center;
|
|
324
|
+
justify-content: center;
|
|
325
|
+
border-radius: 4px;
|
|
326
|
+
border: 1px solid #EAECEA;
|
|
327
|
+
width: 24px;
|
|
328
|
+
height: 24px;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.toolbar-bottom {
|
|
342
|
+
display: flex;
|
|
343
|
+
gap: 16px;
|
|
344
|
+
align-items: start;
|
|
345
|
+
|
|
346
|
+
.author {
|
|
347
|
+
display: flex;
|
|
348
|
+
justify-content: center;
|
|
349
|
+
align-items: center;
|
|
350
|
+
color: #888888;
|
|
351
|
+
font-size: 12px;
|
|
352
|
+
height: 23px;
|
|
353
|
+
min-height: 23px;
|
|
354
|
+
max-height: 23px;
|
|
355
|
+
white-space: nowrap;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
}
|
|
360
|
+
}
|