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,475 @@
|
|
|
1
|
+
.input-box,
|
|
2
|
+
.input-box__err {
|
|
3
|
+
width: 100%;
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
.input-dynamic {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 56px;
|
|
10
|
+
padding: var(--space-x2, 8px) var(--space-x5, 12px);
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--space-x2, 8px);
|
|
13
|
+
align-self: stretch;
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
border: 1px solid #E0E7F2;
|
|
16
|
+
background: var(--white, #FFF);
|
|
17
|
+
color: #020617;
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
|
|
21
|
+
&:-webkit-autofill,
|
|
22
|
+
&:-webkit-autofill:hover,
|
|
23
|
+
&:-webkit-autofill:focus {
|
|
24
|
+
-webkit-box-shadow: 0 0 0px 1000px rgb(255, 255, 255) inset;
|
|
25
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:auto-fill {
|
|
29
|
+
box-shadow: inset 0 0 0 100px var(--background-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&::-webkit-outer-spin-button,
|
|
33
|
+
&::-webkit-inner-spin-button {
|
|
34
|
+
-webkit-appearance: none;
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:focus {
|
|
39
|
+
outline: none;
|
|
40
|
+
border: 1px solid #57CC6A;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
border: 1px solid #57CC6A;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
border: 1px solid #64748B;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.placeholder-dinamyc,
|
|
53
|
+
.placeholder-dinamyc_min,
|
|
54
|
+
.placeholder-dinamyc_min-blue {
|
|
55
|
+
width: 100%;
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: calc(50% - 8px);
|
|
58
|
+
left: 14px;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
|
|
61
|
+
label {
|
|
62
|
+
position: absolute;
|
|
63
|
+
color: #64748B;
|
|
64
|
+
font-family: Inter;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
font-style: normal;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
line-height: 16px;
|
|
69
|
+
z-index: 1;
|
|
70
|
+
transition: 0.3s;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&_min,
|
|
74
|
+
&_min-blue {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
top: -5px;
|
|
77
|
+
z-index: 1;
|
|
78
|
+
left: 8px;
|
|
79
|
+
|
|
80
|
+
label {
|
|
81
|
+
position: absolute;
|
|
82
|
+
z-index: 0;
|
|
83
|
+
color: #53616E;
|
|
84
|
+
font-family: Inter;
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
font-style: normal;
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
line-height: 10px;
|
|
89
|
+
transition: 0.3s;
|
|
90
|
+
padding-left: 6px;
|
|
91
|
+
padding-right: 6px;
|
|
92
|
+
|
|
93
|
+
&:after {
|
|
94
|
+
content: '';
|
|
95
|
+
display: inline-block;
|
|
96
|
+
position: absolute;
|
|
97
|
+
margin-top: 5px;
|
|
98
|
+
left: 0;
|
|
99
|
+
top: 0;
|
|
100
|
+
width: 100%;
|
|
101
|
+
height: 6px;
|
|
102
|
+
background-color: white;
|
|
103
|
+
z-index: -1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&_min-blue {
|
|
109
|
+
label {
|
|
110
|
+
color: #0B110B;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&__err {
|
|
116
|
+
.input-dynamic {
|
|
117
|
+
background-color: #FFF5F5;
|
|
118
|
+
border: 1px solid #FFD8D8;
|
|
119
|
+
border-radius: 8px;
|
|
120
|
+
|
|
121
|
+
&:focus,
|
|
122
|
+
&:hover {
|
|
123
|
+
border: 1px solid #FFD8D8;
|
|
124
|
+
-webkit-box-shadow: none;
|
|
125
|
+
-moz-box-shadow: none;
|
|
126
|
+
box-shadow: none;
|
|
127
|
+
|
|
128
|
+
&:hover {
|
|
129
|
+
border: 1px solid #FFD8D8;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.placeholder-dinamyc_min {
|
|
135
|
+
label {
|
|
136
|
+
&:after {
|
|
137
|
+
background-color: #FFF5F5;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.err {
|
|
144
|
+
position: absolute;
|
|
145
|
+
max-height: 30px;
|
|
146
|
+
height: 100%;
|
|
147
|
+
overflow-x: auto;
|
|
148
|
+
top: calc(100% + 2px);
|
|
149
|
+
display: flex;
|
|
150
|
+
gap: 4px;
|
|
151
|
+
align-items: flex-start;
|
|
152
|
+
|
|
153
|
+
// .btn__err {
|
|
154
|
+
// width: 16px;
|
|
155
|
+
// height: 16px;
|
|
156
|
+
// border: none;
|
|
157
|
+
// background-color: inherit;
|
|
158
|
+
// background-image: url('./img/close_red.svg');
|
|
159
|
+
// background-repeat: no-repeat;
|
|
160
|
+
// background-size: 16px;
|
|
161
|
+
// background-position: center;
|
|
162
|
+
// }
|
|
163
|
+
|
|
164
|
+
.text_tooltip {
|
|
165
|
+
padding-left: 8px;
|
|
166
|
+
color: #94A3B8;
|
|
167
|
+
height: 16px;
|
|
168
|
+
font-family: "Inter";
|
|
169
|
+
font-size: 12px;
|
|
170
|
+
height: auto;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.text_red {
|
|
174
|
+
color: #FF4D4F;
|
|
175
|
+
font-size: 12px;
|
|
176
|
+
margin: 0;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&__clean-value {
|
|
181
|
+
display: flex;
|
|
182
|
+
gap: 12px;
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: calc(50% - 8px);
|
|
185
|
+
right: 10px;
|
|
186
|
+
display: flex;
|
|
187
|
+
gap: 4px;
|
|
188
|
+
align-items: flex-start;
|
|
189
|
+
|
|
190
|
+
.btn__clean {
|
|
191
|
+
width: 16px;
|
|
192
|
+
height: 16px;
|
|
193
|
+
border: none;
|
|
194
|
+
background-color: inherit;
|
|
195
|
+
background-image: url('./img/close_grey.svg');
|
|
196
|
+
background-repeat: no-repeat;
|
|
197
|
+
background-size: 16px;
|
|
198
|
+
background-position: center;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.btn__show,
|
|
202
|
+
.btn__hide {
|
|
203
|
+
width: 16px;
|
|
204
|
+
height: 16px;
|
|
205
|
+
border: none;
|
|
206
|
+
background-color: inherit;
|
|
207
|
+
background-image: url('./img/show.svg');
|
|
208
|
+
background-repeat: no-repeat;
|
|
209
|
+
background-size: 16px;
|
|
210
|
+
background-position: center;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.btn__hide {
|
|
214
|
+
background-image: url('./img/hide.svg');
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&__info {
|
|
219
|
+
display: flex;
|
|
220
|
+
position: absolute;
|
|
221
|
+
// top: calc(50% - 8px);
|
|
222
|
+
width: auto;
|
|
223
|
+
height: auto;
|
|
224
|
+
right: 20px;
|
|
225
|
+
gap: 4px;
|
|
226
|
+
align-items: flex-start;
|
|
227
|
+
z-index: 10000;
|
|
228
|
+
|
|
229
|
+
&:hover {
|
|
230
|
+
.tooltip {
|
|
231
|
+
display: flex;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.tooltip {
|
|
236
|
+
padding: 14px;
|
|
237
|
+
position: absolute;
|
|
238
|
+
min-width: 200px;
|
|
239
|
+
max-width: 200px;
|
|
240
|
+
left: -92px;
|
|
241
|
+
border: 2px solid #B2DAFF;
|
|
242
|
+
fill: #FFF;
|
|
243
|
+
stroke-width: 2px #B2DAFF solid;
|
|
244
|
+
margin-top: 8px;
|
|
245
|
+
z-index: 100000;
|
|
246
|
+
width: fit-content;
|
|
247
|
+
border-radius: 8px;
|
|
248
|
+
height: auto;
|
|
249
|
+
// position: absolute;
|
|
250
|
+
background-color: #fff;
|
|
251
|
+
display: none;
|
|
252
|
+
flex-direction: column;
|
|
253
|
+
gap: 4px;
|
|
254
|
+
|
|
255
|
+
.title {
|
|
256
|
+
color: var(--main-menu-primary-text, #020617);
|
|
257
|
+
font-family: Inter;
|
|
258
|
+
font-size: 14px;
|
|
259
|
+
font-style: normal;
|
|
260
|
+
font-weight: 500;
|
|
261
|
+
line-height: normal;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.text {
|
|
265
|
+
color: var(--main-menu-teritary-text, #94A3B8);
|
|
266
|
+
/* Button link/Medium */
|
|
267
|
+
font-family: Inter;
|
|
268
|
+
font-size: 14px;
|
|
269
|
+
font-style: normal;
|
|
270
|
+
font-weight: 400;
|
|
271
|
+
line-height: 16px;
|
|
272
|
+
/* 114.286% */
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&::after,
|
|
276
|
+
&::before {
|
|
277
|
+
content: '';
|
|
278
|
+
position: absolute;
|
|
279
|
+
background: rgb(255, 255, 255);
|
|
280
|
+
top: 40px;
|
|
281
|
+
left: calc(50% - 5px);
|
|
282
|
+
top: -6px;
|
|
283
|
+
width: 10px;
|
|
284
|
+
height: 10px;
|
|
285
|
+
border: 2px solid #B2DAFF;
|
|
286
|
+
border-right: none;
|
|
287
|
+
border-bottom: none;
|
|
288
|
+
transform: rotate(45deg);
|
|
289
|
+
-webkit-transform: rotate(45deg);
|
|
290
|
+
z-index: 0;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.btn__info {
|
|
296
|
+
width: 16px;
|
|
297
|
+
height: 16px;
|
|
298
|
+
border: none;
|
|
299
|
+
background-color: inherit;
|
|
300
|
+
background-image: url('./img/info_tooltip.svg');
|
|
301
|
+
background-repeat: no-repeat;
|
|
302
|
+
background-size: 16px;
|
|
303
|
+
background-position: center;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.text_red {
|
|
307
|
+
color: #FF4D4F;
|
|
308
|
+
font-size: 12px;
|
|
309
|
+
margin: 0;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// .autorization__input-field {
|
|
314
|
+
// width: 100%;
|
|
315
|
+
// min-height: 56px;
|
|
316
|
+
// height: 100%;
|
|
317
|
+
// font-family: 'Inter';
|
|
318
|
+
// font-size: 14px;
|
|
319
|
+
// padding: 0px;
|
|
320
|
+
// margin-top: 24px;
|
|
321
|
+
// border-radius: 16px;
|
|
322
|
+
// border-radius: 0px;
|
|
323
|
+
// border: none;
|
|
324
|
+
// background: none;
|
|
325
|
+
|
|
326
|
+
// .css-e4w4as-MuiFormLabel-root-MuiInputLabel-root {
|
|
327
|
+
// color: #94A3B8;
|
|
328
|
+
// font-size: 14px;
|
|
329
|
+
// padding-left: 8px;
|
|
330
|
+
|
|
331
|
+
// &:focus {
|
|
332
|
+
// color: #94A3B8;
|
|
333
|
+
// }
|
|
334
|
+
// }
|
|
335
|
+
|
|
336
|
+
// .css-o943dk-MuiFormLabel-root-MuiInputLabel-root {
|
|
337
|
+
// color: #94A3B8;
|
|
338
|
+
// }
|
|
339
|
+
|
|
340
|
+
// div {
|
|
341
|
+
// border: none;
|
|
342
|
+
// background: none;
|
|
343
|
+
// border: 1px solid #F0F0F0;
|
|
344
|
+
// border-radius: 8px;
|
|
345
|
+
|
|
346
|
+
// &::after {
|
|
347
|
+
// display: none;
|
|
348
|
+
// }
|
|
349
|
+
|
|
350
|
+
// &::before {
|
|
351
|
+
// display: none;
|
|
352
|
+
// }
|
|
353
|
+
// }
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
// input {
|
|
357
|
+
// background-color: white;
|
|
358
|
+
// border-radius: 8px;
|
|
359
|
+
// font-size: 14px;
|
|
360
|
+
|
|
361
|
+
// &::-webkit-outer-spin-button,
|
|
362
|
+
// &::-webkit-inner-spin-button {
|
|
363
|
+
// -webkit-appearance: none;
|
|
364
|
+
// margin: 0;
|
|
365
|
+
// }
|
|
366
|
+
|
|
367
|
+
// &:focus {
|
|
368
|
+
// border: 1px solid rgba(24, 144, 255, 1);
|
|
369
|
+
// -webkit-box-shadow: 0px 0px 9px -3px rgba(24, 144, 255, 1);
|
|
370
|
+
// -moz-box-shadow: 0px 0px 9px -3px rgba(24, 144, 255, 1);
|
|
371
|
+
// box-shadow: 0px 0px 9px -3px rgba(24, 144, 255, 1);
|
|
372
|
+
// }
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
// }
|
|
376
|
+
|
|
377
|
+
// input:-webkit-autofill,
|
|
378
|
+
// input:-webkit-autofill:hover,
|
|
379
|
+
// input:-webkit-autofill:focus input:-webkit-autofill,
|
|
380
|
+
// textarea:-webkit-autofill,
|
|
381
|
+
// textarea:-webkit-autofill:hover textarea:-webkit-autofill:focus,
|
|
382
|
+
// select:-webkit-autofill,
|
|
383
|
+
// select:-webkit-autofill:hover,
|
|
384
|
+
// select:-webkit-autofill:focus {
|
|
385
|
+
// // -webkit-text-fill-color: rgb(0, 0, 0);
|
|
386
|
+
// -webkit-box-shadow: 0 0 0px 1000px transparent inset;
|
|
387
|
+
// transition: background-color 5000s ease-in-out 0s;
|
|
388
|
+
// background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(0, 174, 255, 0.04) 50%, rgba(255, 255, 255, 0) 51%, rgba(0, 174, 255, 0.03) 100%);
|
|
389
|
+
// }
|
|
390
|
+
|
|
391
|
+
// &::placeholder {
|
|
392
|
+
// font-size: 14px;
|
|
393
|
+
// font-family: "Inter";
|
|
394
|
+
// color: #020617;
|
|
395
|
+
// }
|
|
396
|
+
|
|
397
|
+
// &_err {
|
|
398
|
+
// border: 1px solid #FF4D4F;
|
|
399
|
+
|
|
400
|
+
// }
|
|
401
|
+
// }
|
|
402
|
+
|
|
403
|
+
// &__err {
|
|
404
|
+
// position: absolute;
|
|
405
|
+
// top: calc(100%);
|
|
406
|
+
// display: flex;
|
|
407
|
+
// gap: 4px;
|
|
408
|
+
// align-items: flex-start;
|
|
409
|
+
|
|
410
|
+
// &:hover {
|
|
411
|
+
// border: none;
|
|
412
|
+
// }
|
|
413
|
+
|
|
414
|
+
// .btn__err {
|
|
415
|
+
// width: 16px;
|
|
416
|
+
// height: 16px;
|
|
417
|
+
// border: none;
|
|
418
|
+
// background-color: inherit;
|
|
419
|
+
// background-image: url('./img/close_red.svg');
|
|
420
|
+
// background-repeat: no-repeat;
|
|
421
|
+
// background-size: 16px;
|
|
422
|
+
// background-position: center;
|
|
423
|
+
// }
|
|
424
|
+
|
|
425
|
+
// .text_red {
|
|
426
|
+
// color: #FF4D4F;
|
|
427
|
+
// font-size: 12px;
|
|
428
|
+
// margin: 0;
|
|
429
|
+
// }
|
|
430
|
+
// }
|
|
431
|
+
|
|
432
|
+
.input-err {
|
|
433
|
+
div {
|
|
434
|
+
border: 2px solid #FFD8D8;
|
|
435
|
+
border-radius: 8px;
|
|
436
|
+
|
|
437
|
+
input {
|
|
438
|
+
background-color: #FFF5F5;
|
|
439
|
+
|
|
440
|
+
&:focus,
|
|
441
|
+
&:hover {
|
|
442
|
+
border: none;
|
|
443
|
+
-webkit-box-shadow: none;
|
|
444
|
+
-moz-box-shadow: none;
|
|
445
|
+
box-shadow: none;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.size-s {
|
|
453
|
+
.input-dynamic {
|
|
454
|
+
height: 40px;
|
|
455
|
+
|
|
456
|
+
&__err {}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.size-l {
|
|
461
|
+
.input-dynamic {
|
|
462
|
+
height: 56px;
|
|
463
|
+
|
|
464
|
+
&__err {}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.text_tooltip-mui {
|
|
469
|
+
padding-left: 8px;
|
|
470
|
+
color: #94A3B8;
|
|
471
|
+
height: 16px;
|
|
472
|
+
font-family: "Inter";
|
|
473
|
+
font-size: 12px;
|
|
474
|
+
height: auto;
|
|
475
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.Default = void 0;
|
|
7
|
+
var _InputDinamycPlaceholder = _interopRequireDefault(require("./InputDinamycPlaceholder.js"));
|
|
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/InputDinamycPlaceholder',
|
|
12
|
+
component: _InputDinamycPlaceholder["default"],
|
|
13
|
+
parametrs: {
|
|
14
|
+
layout: 'centered'
|
|
15
|
+
},
|
|
16
|
+
tags: ['autodocs'],
|
|
17
|
+
argTypes: {
|
|
18
|
+
date: {
|
|
19
|
+
control: 'date'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
args: {
|
|
23
|
+
tooltip: 'Подсказка',
|
|
24
|
+
tooltipStatic: false,
|
|
25
|
+
rows: false,
|
|
26
|
+
value: false,
|
|
27
|
+
changeValue: 'some text',
|
|
28
|
+
setChangeValue: false,
|
|
29
|
+
setValue: _addonActions.action,
|
|
30
|
+
classname: false,
|
|
31
|
+
placeholder: 'Value',
|
|
32
|
+
type: 'password',
|
|
33
|
+
onChange: _addonActions.action,
|
|
34
|
+
passwordTooltip: true,
|
|
35
|
+
err: false,
|
|
36
|
+
textErr: false,
|
|
37
|
+
infoHeader: 'Ttle',
|
|
38
|
+
info: false,
|
|
39
|
+
autoComplete: false,
|
|
40
|
+
disabled: false,
|
|
41
|
+
showClearIndicator: true,
|
|
42
|
+
multiline: false,
|
|
43
|
+
maxLength: false,
|
|
44
|
+
autoFocus: false,
|
|
45
|
+
variant: 'filled',
|
|
46
|
+
size: 'l',
|
|
47
|
+
required: true
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var Default = exports.Default = {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z" stroke="#C5CCD3" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M10 6L6 10" stroke="#C5CCD3" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M6 6L10 10" stroke="#C5CCD3" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z" stroke="#FF4D4F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M10 6L6 10" stroke="#FF4D4F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M6 6L10 10" stroke="#FF4D4F" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_6026_10547)">
|
|
3
|
+
<path d="M11.1955 9.06673C11.3232 8.72564 11.3879 8.36424 11.3866 8.00006C11.3866 7.19145 11.0654 6.41595 10.4936 5.84417C9.92187 5.27239 9.14637 4.95117 8.33776 4.95117C7.97806 4.95159 7.62134 5.01631 7.28442 5.14228L7.99998 5.88006C8.10875 5.86266 8.21871 5.85374 8.32887 5.85339C8.90062 5.8522 9.44961 6.07728 9.85598 6.47948C10.2623 6.88168 10.4931 7.42833 10.4978 8.00006C10.4974 8.11022 10.4885 8.22017 10.4711 8.32895L11.1955 9.06673Z" fill="#C5CCD3"/>
|
|
4
|
+
<path d="M14.8778 7.71976C13.4571 4.77935 10.9658 3 8.2089 3C7.45827 3.00197 6.71269 3.13739 6 3.40118L6.67869 4.16578C7.17858 4.02114 7.69259 3.94662 8.2089 3.94395C10.5822 3.94395 12.7405 5.42596 14.0262 7.92271C13.5546 8.84902 12.9293 9.666 12.1841 10.3298L12.7827 11C13.6452 10.2209 14.3615 9.2585 14.8904 8.16814L15 7.94159L14.8778 7.71976Z" fill="#C5CCD3"/>
|
|
5
|
+
<path d="M2.07185 1.75855L3.99172 4.02909C2.77821 4.95315 1.78641 6.2313 1.11192 7.74036L1 7.97964L1.11192 8.224C2.56258 11.3956 5.10662 13.3149 7.92185 13.3149C9.02068 13.3146 10.1052 13.0205 11.0944 12.4545L13.2467 15L14 14.2364L2.80795 1L2.07185 1.75855ZM6.26887 6.72218L9.13146 10.1076C8.80802 10.3444 8.43568 10.4712 8.0553 10.4742C7.77891 10.4742 7.50525 10.4096 7.25006 10.284C6.99487 10.1585 6.7632 9.97447 6.56836 9.74263C6.37353 9.51079 6.21938 9.23567 6.11479 8.9331C6.0102 8.63054 5.95724 8.3065 5.95894 7.97964C5.96379 7.53498 6.07093 7.10027 6.26887 6.72218ZM5.6447 5.984C5.24197 6.65569 5.05321 7.47426 5.11184 8.29476C5.17046 9.11526 5.47269 9.88475 5.96501 10.467C6.45733 11.0492 7.10798 11.4067 7.80176 11.476C8.49553 11.5453 9.18768 11.3221 9.75563 10.8458L10.4444 11.6604C9.64706 12.0634 8.78895 12.2712 7.92185 12.2713C5.49834 12.2713 3.29437 10.6727 1.98146 7.97964C2.61153 6.66018 3.51895 5.55545 4.61589 4.77236L5.6447 5.984Z" fill="#C5CCD3"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_6026_10547">
|
|
9
|
+
<rect width="16" height="16" fill="white"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_5656_80367)">
|
|
3
|
+
<path d="M10.7598 14.667L5.23984 14.667L1.33317 10.7603L1.33317 5.24033L5.23984 1.33366L10.7598 1.33366L14.6665 5.24033L14.6665 10.7603L10.7598 14.667Z" stroke="#70808F" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M8 10.667V8.00033" stroke="#70808F" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M8 5.33301H7.99333" stroke="#70808F" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_5656_80367">
|
|
9
|
+
<rect width="16" height="16" fill="white" transform="matrix(-1 0 0 -1 16 16)"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
|
@@ -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 d="M14.9598 7.7975C14.9393 7.74813 14.4453 6.57375 13.3468 5.39687C11.8833 3.82875 10.0347 3 8 3C5.96533 3 4.11675 3.82875 2.65316 5.39687C1.55474 6.57375 1.05833 7.75 1.04024 7.7975C1.01371 7.86144 1 7.93064 1 8.00062C1 8.0706 1.01371 8.1398 1.04024 8.20375C1.06066 8.25312 1.55474 9.42688 2.65316 10.6038C4.11675 12.1713 5.96533 13 8 13C10.0347 13 11.8833 12.1713 13.3468 10.6038C14.4453 9.42688 14.9393 8.25312 14.9598 8.20375C14.9863 8.1398 15 8.0706 15 8.00062C15 7.93064 14.9863 7.86144 14.9598 7.7975ZM8 12C6.2045 12 4.63591 11.3006 3.33741 9.92188C2.80462 9.35418 2.35134 8.70685 1.99166 8C2.35124 7.29309 2.80454 6.64574 3.33741 6.07812C4.63591 4.69938 6.2045 4 8 4C9.7955 4 11.3641 4.69938 12.6626 6.07812C13.1964 6.6456 13.6507 7.29295 14.0113 8C13.5907 8.84125 11.7584 12 8 12ZM8 5C7.44621 5 6.90486 5.17595 6.4444 5.50559C5.98394 5.83524 5.62506 6.30377 5.41314 6.85195C5.20121 7.40013 5.14576 8.00333 5.2538 8.58527C5.36184 9.16721 5.62851 9.70176 6.0201 10.1213C6.41169 10.5409 6.9106 10.8266 7.45375 10.9424C7.99689 11.0581 8.55988 10.9987 9.07151 10.7716C9.58315 10.5446 10.0204 10.1601 10.3281 9.66671C10.6358 9.17336 10.8 8.59334 10.8 8C10.7992 7.2046 10.504 6.44202 9.97905 5.87959C9.45411 5.31716 8.74237 5.00083 8 5ZM8 10C7.63081 10 7.26991 9.8827 6.96294 9.66294C6.65596 9.44318 6.41671 9.13082 6.27542 8.76537C6.13414 8.39991 6.09717 7.99778 6.1692 7.60982C6.24123 7.22186 6.41901 6.86549 6.68007 6.58579C6.94112 6.30608 7.27373 6.1156 7.63583 6.03843C7.99793 5.96126 8.37325 6.00087 8.71434 6.15224C9.05543 6.30362 9.34697 6.55996 9.55208 6.88886C9.75719 7.21776 9.86667 7.60444 9.86667 8C9.86667 8.53043 9.67 9.03914 9.31993 9.41421C8.96987 9.78929 8.49507 10 8 10Z" fill="#C5CCD3"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _close_icon = _interopRequireDefault(require("./img/close_icon.svg"));
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
require("./InputDynamicWidth.scss");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
12
|
+
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."); }
|
|
13
|
+
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; } }
|
|
14
|
+
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; }
|
|
15
|
+
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; } }
|
|
16
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17
|
+
var InputDynamicWidth = function InputDynamicWidth(_ref) {
|
|
18
|
+
var onChange = _ref.onChange,
|
|
19
|
+
_ref$placeholder = _ref.placeholder,
|
|
20
|
+
placeholder = _ref$placeholder === void 0 ? 'Поиск' : _ref$placeholder,
|
|
21
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
22
|
+
maxWidth = _ref$maxWidth === void 0 ? false : _ref$maxWidth,
|
|
23
|
+
_ref$position = _ref.position,
|
|
24
|
+
position = _ref$position === void 0 ? 'right' : _ref$position,
|
|
25
|
+
_ref$isOpen = _ref.isOpen,
|
|
26
|
+
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
|
|
27
|
+
value = _ref.value;
|
|
28
|
+
var _useState = (0, _react.useState)(value ? value : ''),
|
|
29
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
30
|
+
valueInside = _useState2[0],
|
|
31
|
+
setValueInside = _useState2[1];
|
|
32
|
+
var _useState3 = (0, _react.useState)(isOpen ? true : false),
|
|
33
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
34
|
+
isFocus = _useState4[0],
|
|
35
|
+
setIsFocus = _useState4[1];
|
|
36
|
+
(0, _react.useEffect)(function () {
|
|
37
|
+
if (onChange) {
|
|
38
|
+
onChange(valueInside);
|
|
39
|
+
}
|
|
40
|
+
}, [valueInside]);
|
|
41
|
+
(0, _react.useEffect)(function () {
|
|
42
|
+
setValueInside(value);
|
|
43
|
+
}, [value]);
|
|
44
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "input-dynamic-width-bar",
|
|
46
|
+
style: {
|
|
47
|
+
justifyContent: position == 'left' ? 'end' : ''
|
|
48
|
+
},
|
|
49
|
+
onClick: function onClick(e) {
|
|
50
|
+
setIsFocus(true);
|
|
51
|
+
}
|
|
52
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
53
|
+
type: "text",
|
|
54
|
+
inputMode: "text",
|
|
55
|
+
placeholder: placeholder ? placeholder : 'Поиск',
|
|
56
|
+
className: isFocus ? "input-dynamic-width-bar__search_active" : "input-dynamic-width-bar__search",
|
|
57
|
+
readOnly: !isFocus,
|
|
58
|
+
autoComplete: 'off',
|
|
59
|
+
onBlur: function onBlur(e) {
|
|
60
|
+
if (valueInside === '') {
|
|
61
|
+
if (!isOpen) {
|
|
62
|
+
setIsFocus(false);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
value: valueInside,
|
|
67
|
+
onChange: function onChange(e) {
|
|
68
|
+
setValueInside(e.target.value);
|
|
69
|
+
},
|
|
70
|
+
style: {
|
|
71
|
+
maxWidth: maxWidth ? maxWidth : ''
|
|
72
|
+
}
|
|
73
|
+
}), ((valueInside === null || valueInside === void 0 ? void 0 : valueInside.length) && isFocus) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: "input-dynamic-width-bar__btn_close",
|
|
75
|
+
type: "button",
|
|
76
|
+
onClick: function onClick(e) {
|
|
77
|
+
e.stopPropagation(e);
|
|
78
|
+
setValueInside('');
|
|
79
|
+
if (!isOpen) {
|
|
80
|
+
setIsFocus(false);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, /*#__PURE__*/React.createElement("img", _close_icon["default"])));
|
|
84
|
+
};
|
|
85
|
+
var _default = exports["default"] = InputDynamicWidth;
|