ecomlab-components-next 0.1.237 → 0.1.239
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/components/Buttons/ButtonBasicV2/ButtonBasicV2.js +85 -0
- package/dist/components/Buttons/ButtonBasicV2/ButtonBasicV2.scss +55 -0
- package/dist/components/Buttons/{SignUpButton/ButtonSignUp.stories.js → ButtonBasicV2/ButtonBasicV2stories.js} +42 -29
- package/dist/components/ConstructorComponents/ArticlesBlockV2/ArticlesBlockV2.js +153 -0
- package/dist/components/ConstructorComponents/ArticlesBlockV2/ArticlesBlockV2.module.scss +214 -0
- package/dist/components/ConstructorComponents/BlocksInfo/BlocksInfo.scss +0 -1
- package/dist/components/ConstructorComponents/BlocksInfoV2/BlocksInfoV2.js +210 -0
- package/dist/components/ConstructorComponents/BlocksInfoV2/BlocksInfoV2.scss +236 -0
- package/dist/components/ConstructorComponents/BlocksInfoV2/BlocksInfoV2.stories.js +57 -0
- package/dist/components/ConstructorComponents/BlocksInfoV2/img/develop.png +0 -0
- package/dist/components/ConstructorComponents/CardsInfo/CardsInfo.js +15 -29
- package/dist/components/ConstructorComponents/CardsServicesV2/CardsServicesV2.js +164 -0
- package/dist/components/ConstructorComponents/CardsServicesV2/CardsServicesV2.scss +333 -0
- package/dist/components/ConstructorComponents/CardsV2/CardsV2.js +51 -0
- package/dist/components/ConstructorComponents/CardsV2/CardsV2.scss +158 -0
- package/dist/components/ConstructorComponents/CardsV2/CardsV2.stories.js +16 -0
- package/dist/components/ConstructorComponents/ClientsAboutUsV2/ClientsAboutUsV2.js +83 -0
- package/dist/components/ConstructorComponents/ClientsAboutUsV2/ClientsAboutUsV2.scss +312 -0
- package/dist/components/ConstructorComponents/ClientsAboutUsV2/ClientsAboutUsV2.stories.js +25 -0
- package/dist/components/ConstructorComponents/FeaturesGridV2/FeaturesGridV2.js +102 -0
- package/dist/components/ConstructorComponents/FeaturesGridV2/FeaturesGridV2.scss +145 -0
- package/dist/components/ConstructorComponents/FeaturesGridV2/FeaturesGridV2.stories.js +36 -0
- package/dist/components/ConstructorComponents/FormV2/FormV2.js +139 -0
- package/dist/components/ConstructorComponents/FormV2/FormV2.scss +153 -0
- package/dist/components/ConstructorComponents/FormV2/FormWithBtn.stories.js +16 -0
- package/dist/components/ConstructorComponents/Header/Header.js +1 -1
- package/dist/components/ConstructorComponents/HeaderV2/HeaderV2.js +127 -0
- package/dist/components/ConstructorComponents/HeaderV2/HeaderV2.scss +227 -0
- package/dist/components/ConstructorComponents/HeaderV2/HeaderV2.stories.js +24 -0
- package/dist/components/ConstructorComponents/HeaderV2/img/Ozon.svg +20 -0
- package/dist/components/ConstructorComponents/HeaderV2/img/WB.svg +15 -0
- package/dist/components/ConstructorComponents/HeaderV2/img/Yandex Market.svg +14 -0
- package/dist/components/ConstructorComponents/MainContainer/MainContainer.js +4 -2
- package/dist/components/ConstructorComponents/MainContainer/MainContainer.scss +24 -0
- package/dist/components/ConstructorComponents/MainContainer/MainContainerV2.stories.js +199 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/MarqueImgsV2.js +48 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/MarqueImgsV2.scss +66 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/MarqueImgsV2.stories.js +16 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_1.svg +4 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_10.svg +9 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_11.svg +10 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_12.svg +11 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_13.svg +9 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_2.svg +10 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_3.svg +10 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_4.svg +28 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_5.svg +9 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_6.svg +26 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_7.png +0 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_7.svg +17 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_8.svg +9 -0
- package/dist/components/ConstructorComponents/MarqueImgsV2/img/brand_9.svg +9 -0
- package/dist/components/ConstructorComponents/PhoneBlockV2/PhoneBlockV2.js +40 -0
- package/dist/components/ConstructorComponents/PhoneBlockV2/PhoneBlockV2.scss +302 -0
- package/dist/components/ConstructorComponents/PhoneBlockV2/PhoneBlockV2.stories.js +19 -0
- package/dist/components/ConstructorComponents/PhoneBlockV2/img/phone.png +0 -0
- package/dist/components/ConstructorComponents/PointsListV2/PointsListV2.js +45 -0
- package/dist/components/ConstructorComponents/PointsListV2/PointsListV2.scss +151 -0
- package/dist/components/ConstructorComponents/PointsListV2/PointsListV2.stories.js +43 -0
- package/dist/components/ConstructorComponents/PointsListV2/img/bx-right-arrow-alt.svg +5 -0
- package/dist/components/ConstructorComponents/QuestionsV2/QuestionsV2.js +72 -0
- package/dist/components/ConstructorComponents/QuestionsV2/QuestionsV2.scss +179 -0
- package/dist/components/ConstructorComponents/QuestionsV2/QuestionsV2.stories.js +57 -0
- package/dist/components/ConstructorComponents/QuestionsV2/img/ar_down.svg +5 -0
- package/dist/components/ConstructorComponents/QuestionsV2/img/ar_up.svg +5 -0
- package/dist/components/ConstructorComponents/ServicesSectionV2/ServicesSectionV2.js +161 -0
- package/dist/components/ConstructorComponents/ServicesSectionV2/ServicesSectionV2.scss +245 -0
- package/dist/components/ConstructorComponents/StatisticCardV2/StatisticCardV2.js +44 -0
- package/dist/components/ConstructorComponents/StatisticCardV2/StatisticCardV2.module.scss +156 -0
- package/dist/components/ConstructorComponents/StatisticCardV2/StatisticCardV2.stories.js +32 -0
- package/dist/components/ConstructorComponents/StepsV2/StepsV2.js +86 -0
- package/dist/components/ConstructorComponents/StepsV2/StepsV2.module.scss +226 -0
- package/dist/components/ConstructorComponents/StepsV2/StepsV2.stories.js +30 -0
- package/dist/components/ConstructorComponents/variables.scss +50 -0
- package/dist/components/Slider/SliderCarousel/SliderCarousel.js +4 -6
- package/dist/index.js +84 -0
- package/dist/stories/LongTileArticleBox/LongTileArticleBox.js +1 -1
- package/dist/stories/ShortTileArticleBox/ShortTileArticleBox.js +1 -1
- package/package.json +1 -1
- package/dist/components/Buttons/SignUpButton/ButtonSignUp.js +0 -75
- package/dist/components/Buttons/SignUpButton/ButtonSignUp.module.scss +0 -92
- package/dist/components/Buttons/SignUpButton/calendar.svg +0 -14
- package/dist/components/Checkbox/Checkbox/Checkbox.js +0 -83
- package/dist/components/Checkbox/Checkbox/Checkbox.scss +0 -136
- package/dist/components/Checkbox/Checkbox/Checkbox.stories.js +0 -46
- package/dist/components/Checkbox/Checkbox/img/check.svg +0 -3
- package/dist/main.js +0 -14
- package/dist/stories/InputDynamicWidth/InputDynamicWidth.js +0 -85
- package/dist/stories/InputDynamicWidth/InputDynamicWidth.scss +0 -98
- package/dist/stories/InputDynamicWidth/InputDynamicWidth.stories.js +0 -32
- package/dist/stories/InputDynamicWidth/img/close_icon.svg +0 -3
- package/dist/stories/InputDynamicWidth/img/search_icon.svg +0 -6
- package/dist/stories/NoArticles/NoArticles.js +0 -29
- package/dist/stories/NoArticles/NoArticles.scss +0 -26
- package/dist/stories/NoArticles/NoArticles.stories.js +0 -20
- package/dist/stories/NoArticles/img/banner.svg +0 -266
- package/dist/stories/ViewSwitch/ViewSwitch.js +0 -48
- package/dist/stories/ViewSwitch/ViewSwitch.scss +0 -135
- package/dist/stories/ViewSwitch/ViewSwitch.stories.js +0 -48
- package/dist/stories/ViewSwitch/img/Chat.js +0 -24
- package/dist/stories/ViewSwitch/img/Table.js +0 -21
- package/dist/stories/ViewSwitch/img/Tile.js +0 -20
- package/dist/stories/ViewSwitch/img/TileLong.js +0 -20
- package/dist/storybook-static/167.1ab9d45b.iframe.bundle.js +0 -1
- package/dist/storybook-static/294.029a22c7.iframe.bundle.js +0 -1
- package/dist/storybook-static/364.41fcb7af.iframe.bundle.js +0 -1
- package/dist/storybook-static/54.0740a2d0.iframe.bundle.js +0 -2
- package/dist/storybook-static/54.0740a2d0.iframe.bundle.js.LICENSE.txt +0 -1
- package/dist/storybook-static/735.329871ea.iframe.bundle.js +0 -2
- package/dist/storybook-static/735.329871ea.iframe.bundle.js.LICENSE.txt +0 -9
- package/dist/storybook-static/844.4c57ff93.iframe.bundle.js +0 -94
- package/dist/storybook-static/844.4c57ff93.iframe.bundle.js.map +0 -1
- package/dist/storybook-static/869.a718104a.iframe.bundle.js +0 -1
- package/dist/storybook-static/908.c53199b4.iframe.bundle.js +0 -1
- package/dist/storybook-static/939.72503e72.iframe.bundle.js +0 -405
- package/dist/storybook-static/939.72503e72.iframe.bundle.js.LICENSE.txt +0 -54
- package/dist/storybook-static/939.72503e72.iframe.bundle.js.map +0 -1
- package/dist/storybook-static/components-Button-stories.6b7204e5.iframe.bundle.js +0 -1
- package/dist/storybook-static/favicon.svg +0 -1
- package/dist/storybook-static/file.svg +0 -1
- package/dist/storybook-static/globe.svg +0 -1
- package/dist/storybook-static/iframe.html +0 -511
- package/dist/storybook-static/index.html +0 -185
- package/dist/storybook-static/index.json +0 -1
- package/dist/storybook-static/main.456a86f5.iframe.bundle.js +0 -1
- package/dist/storybook-static/next.svg +0 -1
- package/dist/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/dist/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/dist/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/dist/storybook-static/project.json +0 -1
- package/dist/storybook-static/runtime~main.8e4a98c9.iframe.bundle.js +0 -1
- package/dist/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +0 -331
- package/dist/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +0 -51
- package/dist/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +0 -3
- package/dist/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +0 -12
- package/dist/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +0 -391
- package/dist/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +0 -230
- package/dist/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +0 -3
- package/dist/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +0 -3
- package/dist/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js +0 -3
- package/dist/storybook-static/sb-addons/essentials-toolbars-7/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +0 -3
- package/dist/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/interactions-11/manager-bundle.js +0 -210
- package/dist/storybook-static/sb-addons/interactions-11/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/onboarding-1/manager-bundle.js +0 -127
- package/dist/storybook-static/sb-addons/onboarding-1/manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/dist/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/dist/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/dist/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/dist/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/dist/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/dist/storybook-static/sb-manager/globals-module-info.js +0 -1037
- package/dist/storybook-static/sb-manager/globals-runtime.js +0 -41107
- package/dist/storybook-static/sb-manager/globals.js +0 -48
- package/dist/storybook-static/sb-manager/runtime.js +0 -11960
- package/dist/storybook-static/sb-preview/globals.js +0 -33
- package/dist/storybook-static/sb-preview/runtime.js +0 -7247
- package/dist/storybook-static/static/media/accessibility.b812909c.png +0 -0
- package/dist/storybook-static/static/media/addon-library.7d60eaf1.png +0 -0
- package/dist/storybook-static/static/media/assets.74434bfb.png +0 -0
- package/dist/storybook-static/static/media/context.0aaeed46.png +0 -0
- package/dist/storybook-static/static/media/discord.c13ab8cc.svg +0 -1
- package/dist/storybook-static/static/media/docs.78ff2c00.png +0 -0
- package/dist/storybook-static/static/media/figma-plugin.92feae99.png +0 -0
- package/dist/storybook-static/static/media/github.bf1215e7.svg +0 -1
- package/dist/storybook-static/static/media/share.b661f220.png +0 -0
- package/dist/storybook-static/static/media/styling.6ea0e96c.png +0 -0
- package/dist/storybook-static/static/media/testing.6f11ce8b.png +0 -0
- package/dist/storybook-static/static/media/theming.3ca117fd.png +0 -0
- package/dist/storybook-static/static/media/tutorials.f9b22f92.svg +0 -1
- package/dist/storybook-static/static/media/youtube.0220385a.svg +0 -1
- package/dist/storybook-static/stories-Button-stories.a157a598.iframe.bundle.js +0 -1
- package/dist/storybook-static/stories-Configure-mdx.ad43dce3.iframe.bundle.js +0 -1
- package/dist/storybook-static/stories-Header-stories.813bf6ef.iframe.bundle.js +0 -1
- package/dist/storybook-static/stories-Page-stories.9918ddc0.iframe.bundle.js +0 -1
- package/dist/storybook-static/vercel.svg +0 -1
- package/dist/storybook-static/window.svg +0 -1
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
.buttonSignUp {
|
|
2
|
-
align-items: center;
|
|
3
|
-
background: #fff;
|
|
4
|
-
border: 1px solid #c6e7c9;
|
|
5
|
-
border-radius: 12px;
|
|
6
|
-
color: #042b8f;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
display: flex;
|
|
9
|
-
gap: 8px;
|
|
10
|
-
justify-content: space-between;
|
|
11
|
-
line-height: 16px;
|
|
12
|
-
min-height: 56px;
|
|
13
|
-
max-width: 188px;
|
|
14
|
-
padding: 0 16px;
|
|
15
|
-
transition: background 0.3s, box-shadow 0.3s;
|
|
16
|
-
|
|
17
|
-
&:hover, &:focus {
|
|
18
|
-
opacity: none;
|
|
19
|
-
background: #225df4;
|
|
20
|
-
box-shadow: inset 0 0 24px 0 rgba(27, 54, 123, 0.16);
|
|
21
|
-
|
|
22
|
-
.primaryText {
|
|
23
|
-
display: none;
|
|
24
|
-
opacity: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.secondaryText {
|
|
28
|
-
display: block;
|
|
29
|
-
opacity: 1;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.small {
|
|
35
|
-
max-width: 146px;
|
|
36
|
-
min-height: 32px;
|
|
37
|
-
padding: 16px;
|
|
38
|
-
|
|
39
|
-
&:hover .secondaryText {
|
|
40
|
-
color: #fff;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.secondaryText {
|
|
44
|
-
display: block;
|
|
45
|
-
color: inherit;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.imageWrapper {
|
|
50
|
-
align-items: center;
|
|
51
|
-
display: flex;
|
|
52
|
-
height: 22px;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
width: 22px;
|
|
55
|
-
position: relative;
|
|
56
|
-
|
|
57
|
-
&::after {
|
|
58
|
-
content: '';
|
|
59
|
-
width: 12px;
|
|
60
|
-
height: 12px;
|
|
61
|
-
position: absolute;
|
|
62
|
-
z-index: 1;
|
|
63
|
-
top: var(--after-top);
|
|
64
|
-
left: var(--after-left);
|
|
65
|
-
background-color: #57cc6a;
|
|
66
|
-
border-radius: 50%;
|
|
67
|
-
border: 2px solid #9ae0a6;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
img {
|
|
71
|
-
min-height: 100%;
|
|
72
|
-
min-width: 100%;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.primaryText,
|
|
77
|
-
.secondaryText {
|
|
78
|
-
font-family: 'Open Sans', sans-serif;
|
|
79
|
-
font-size: 13px;
|
|
80
|
-
font-style: normal;
|
|
81
|
-
font-weight: 700;
|
|
82
|
-
text-align: center;
|
|
83
|
-
line-height: 16px;
|
|
84
|
-
display: inline-block;
|
|
85
|
-
width: 100%;
|
|
86
|
-
transition: opacity 0.3s, color 0.3s;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.secondaryText {
|
|
90
|
-
display: none;
|
|
91
|
-
color: #fff;
|
|
92
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 30 30" fill="none">
|
|
2
|
-
<path
|
|
3
|
-
d="M9 0.5C4.30558 0.5 0.5 4.30558 0.5 9V21C0.5 25.6944 4.30558 29.5 9 29.5H21C25.6944 29.5 29.5 25.6944 29.5 21V9C29.5 4.30558 25.6944 0.5 21 0.5H9Z"
|
|
4
|
-
fill="#225DF4" />
|
|
5
|
-
<path
|
|
6
|
-
d="M9 0.5C4.30558 0.5 0.5 4.30558 0.5 9V21C0.5 25.6944 4.30558 29.5 9 29.5H21C25.6944 29.5 29.5 25.6944 29.5 21V9C29.5 4.30558 25.6944 0.5 21 0.5H9Z" />
|
|
7
|
-
<path
|
|
8
|
-
d="M18.0625 8.67V7.5C18.0625 7.1925 17.8075 6.9375 17.5 6.9375C17.1925 6.9375 16.9375 7.1925 16.9375 7.5V8.625H12.0625V7.5C12.0625 7.1925 11.8075 6.9375 11.5 6.9375C11.1925 6.9375 10.9375 7.1925 10.9375 7.5V8.67C8.9125 8.8575 7.93 10.065 7.78 11.8575C7.765 12.075 7.945 12.255 8.155 12.255H20.845C21.0625 12.255 21.2425 12.0675 21.22 11.8575C21.07 10.065 20.0875 8.8575 18.0625 8.67Z"
|
|
9
|
-
fill="white" />
|
|
10
|
-
<path
|
|
11
|
-
d="M20.5 13.38H8.5C8.0875 13.38 7.75 13.7175 7.75 14.13V18.75C7.75 21 8.875 22.5 11.5 22.5H17.5C20.125 22.5 21.25 21 21.25 18.75V14.13C21.25 13.7175 20.9125 13.38 20.5 13.38ZM12.4075 19.6575C12.3325 19.725 12.25 19.7775 12.16 19.815C12.07 19.8525 11.9725 19.875 11.875 19.875C11.7775 19.875 11.68 19.8525 11.59 19.815C11.5 19.7775 11.4175 19.725 11.3425 19.6575C11.2075 19.515 11.125 19.32 11.125 19.125C11.125 18.93 11.2075 18.735 11.3425 18.5925C11.4175 18.525 11.5 18.4725 11.59 18.435C11.77 18.36 11.98 18.36 12.16 18.435C12.25 18.4725 12.3325 18.525 12.4075 18.5925C12.5425 18.735 12.625 18.93 12.625 19.125C12.625 19.32 12.5425 19.515 12.4075 19.6575ZM12.565 16.785C12.5275 16.875 12.475 16.9575 12.4075 17.0325C12.3325 17.1 12.25 17.1525 12.16 17.19C12.07 17.2275 11.9725 17.25 11.875 17.25C11.7775 17.25 11.68 17.2275 11.59 17.19C11.5 17.1525 11.4175 17.1 11.3425 17.0325C11.275 16.9575 11.2225 16.875 11.185 16.785C11.1475 16.695 11.125 16.5975 11.125 16.5C11.125 16.4025 11.1475 16.305 11.185 16.215C11.2225 16.125 11.275 16.0425 11.3425 15.9675C11.4175 15.9 11.5 15.8475 11.59 15.81C11.77 15.735 11.98 15.735 12.16 15.81C12.25 15.8475 12.3325 15.9 12.4075 15.9675C12.475 16.0425 12.5275 16.125 12.565 16.215C12.6025 16.305 12.625 16.4025 12.625 16.5C12.625 16.5975 12.6025 16.695 12.565 16.785ZM15.0325 17.0325C14.9575 17.1 14.875 17.1525 14.785 17.19C14.695 17.2275 14.5975 17.25 14.5 17.25C14.4025 17.25 14.305 17.2275 14.215 17.19C14.125 17.1525 14.0425 17.1 13.9675 17.0325C13.8325 16.89 13.75 16.695 13.75 16.5C13.75 16.305 13.8325 16.11 13.9675 15.9675C14.0425 15.9 14.125 15.8475 14.215 15.81C14.395 15.7275 14.605 15.7275 14.785 15.81C14.875 15.8475 14.9575 15.9 15.0325 15.9675C15.1675 16.11 15.25 16.305 15.25 16.5C15.25 16.695 15.1675 16.89 15.0325 17.0325Z"
|
|
12
|
-
fill="white" />
|
|
13
|
-
<script xmlns="" />
|
|
14
|
-
</svg>
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
|
|
4
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
require("./Checkbox.scss");
|
|
11
|
-
var _excluded = ["id", "value", "onChange", "containerClassName", "inputClassName", "className", "children", "green", "yellow", "red", "grey", "disabled", "stopPropagation"];
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
14
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
15
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
|
-
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."); }
|
|
17
|
-
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; } }
|
|
18
|
-
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; }
|
|
19
|
-
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; } }
|
|
20
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
22
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
23
|
-
var Checkbox = function Checkbox(_ref) {
|
|
24
|
-
var id = _ref.id,
|
|
25
|
-
value = _ref.value,
|
|
26
|
-
onChange = _ref.onChange,
|
|
27
|
-
containerClassName = _ref.containerClassName,
|
|
28
|
-
inputClassName = _ref.inputClassName,
|
|
29
|
-
className = _ref.className,
|
|
30
|
-
children = _ref.children,
|
|
31
|
-
_ref$green = _ref.green,
|
|
32
|
-
green = _ref$green === void 0 ? false : _ref$green,
|
|
33
|
-
_ref$yellow = _ref.yellow,
|
|
34
|
-
yellow = _ref$yellow === void 0 ? false : _ref$yellow,
|
|
35
|
-
_ref$red = _ref.red,
|
|
36
|
-
red = _ref$red === void 0 ? false : _ref$red,
|
|
37
|
-
_ref$grey = _ref.grey,
|
|
38
|
-
grey = _ref$grey === void 0 ? false : _ref$grey,
|
|
39
|
-
_ref$disabled = _ref.disabled,
|
|
40
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
41
|
-
_ref$stopPropagation = _ref.stopPropagation,
|
|
42
|
-
stopPropagation = _ref$stopPropagation === void 0 ? true : _ref$stopPropagation,
|
|
43
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
44
|
-
var _useState = (0, _react.useState)(value),
|
|
45
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
46
|
-
_value = _useState2[0],
|
|
47
|
-
set_value = _useState2[1];
|
|
48
|
-
var _onChange = function _onChange(e) {
|
|
49
|
-
set_value(e.target.checked);
|
|
50
|
-
if (onChange) {
|
|
51
|
-
onChange(e.target.checked);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
var colorCheckbox = function colorCheckbox() {
|
|
55
|
-
if (green) return 'checkbox-container_green';
|
|
56
|
-
if (red) return 'checkbox-container_red';
|
|
57
|
-
if (grey) return 'checkbox-container_grey';
|
|
58
|
-
if (yellow) return 'checkbox-container_yellow';
|
|
59
|
-
};
|
|
60
|
-
(0, _react.useEffect)(function () {
|
|
61
|
-
set_value(value);
|
|
62
|
-
}, [value]);
|
|
63
|
-
return /*#__PURE__*/_react["default"].createElement("label", {
|
|
64
|
-
onClick: function onClick(e) {
|
|
65
|
-
if (stopPropagation) {
|
|
66
|
-
e.stopPropagation();
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
className: "checkbox-container ".concat(colorCheckbox() || '', " ").concat(containerClassName ? containerClassName : "")
|
|
70
|
-
}, /*#__PURE__*/_react["default"].createElement("input", _extends({
|
|
71
|
-
type: "checkbox",
|
|
72
|
-
disabled: disabled,
|
|
73
|
-
id: id,
|
|
74
|
-
className: "checkbox " + (inputClassName ? inputClassName : ""),
|
|
75
|
-
checked: _value,
|
|
76
|
-
onChange: _onChange
|
|
77
|
-
}, props)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
|
-
className: "checkbox-element " + (className ? className : "")
|
|
79
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
-
className: "checkbox-container__text"
|
|
81
|
-
}, " ", children));
|
|
82
|
-
};
|
|
83
|
-
var _default = exports["default"] = Checkbox;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
.checkbox-container,
|
|
2
|
-
.checkbox-container_green,
|
|
3
|
-
.checkbox-container_red,
|
|
4
|
-
.checkbox-container_yellow,
|
|
5
|
-
.checkbox-container_grey {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
gap: 8px;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
|
|
12
|
-
&__text {
|
|
13
|
-
color: #0B110B;
|
|
14
|
-
font-family: NunitoSans;
|
|
15
|
-
font-size: 13px;
|
|
16
|
-
font-style: normal;
|
|
17
|
-
font-weight: 600;
|
|
18
|
-
line-height: 15px;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.checkbox-element {
|
|
23
|
-
display: inline-block;
|
|
24
|
-
font-family: 'Montserrat';
|
|
25
|
-
font-style: normal;
|
|
26
|
-
font-weight: 400;
|
|
27
|
-
font-size: 11px;
|
|
28
|
-
line-height: 15px;
|
|
29
|
-
vertical-align: middle;
|
|
30
|
-
|
|
31
|
-
&::before {
|
|
32
|
-
content: "";
|
|
33
|
-
display: inline-block;
|
|
34
|
-
width: 16px;
|
|
35
|
-
height: 16px;
|
|
36
|
-
left: 344px;
|
|
37
|
-
top: 321px;
|
|
38
|
-
// authorization box differences
|
|
39
|
-
border: none;
|
|
40
|
-
border: 1px solid #C5D3C5;
|
|
41
|
-
background-color: #fff;
|
|
42
|
-
border-radius: 4px;
|
|
43
|
-
vertical-align: middle;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.checkbox {
|
|
48
|
-
opacity: 0;
|
|
49
|
-
position: fixed;
|
|
50
|
-
width: 1px;
|
|
51
|
-
height: 1px;
|
|
52
|
-
clip: rect(1px, 1px, 1px, 1px);
|
|
53
|
-
|
|
54
|
-
&:checked~.checkbox-element::before {
|
|
55
|
-
background-image: url('./img/check.svg');
|
|
56
|
-
background-position: center;
|
|
57
|
-
background-size: 10px;
|
|
58
|
-
background-color: #0009E8;
|
|
59
|
-
vertical-align: middle;
|
|
60
|
-
background-repeat: no-repeat;
|
|
61
|
-
background-position: center;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Green checkbox
|
|
67
|
-
.checkbox-container_green {
|
|
68
|
-
|
|
69
|
-
.checkbox-element {
|
|
70
|
-
&::before {
|
|
71
|
-
border: 1px solid #83E38C;
|
|
72
|
-
background-color: #F0FFF1;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.checkbox {
|
|
77
|
-
|
|
78
|
-
&:checked~.checkbox-element::before {
|
|
79
|
-
background-color: #83E38C;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Grey checkbox
|
|
85
|
-
.checkbox-container_grey {
|
|
86
|
-
|
|
87
|
-
.checkbox-element {
|
|
88
|
-
&::before {
|
|
89
|
-
border: 1px solid #9199A5;
|
|
90
|
-
background-color: #F0F2F4;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.checkbox {
|
|
95
|
-
|
|
96
|
-
&:checked~.checkbox-element::before {
|
|
97
|
-
background-color: #9199A5;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Red checkbox
|
|
103
|
-
.checkbox-container_red {
|
|
104
|
-
|
|
105
|
-
.checkbox-element {
|
|
106
|
-
&::before {
|
|
107
|
-
border: 1px solid #FF7E7E;
|
|
108
|
-
background-color: #FFF0F0;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.checkbox {
|
|
113
|
-
|
|
114
|
-
&:checked~.checkbox-element::before {
|
|
115
|
-
background-color: #FF7E7E;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Yellow checkbox
|
|
121
|
-
.checkbox-container_yellow {
|
|
122
|
-
|
|
123
|
-
.checkbox-element {
|
|
124
|
-
&::before {
|
|
125
|
-
border: 1px solid #FFDC75;
|
|
126
|
-
background-color: #FFFDF0;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.checkbox {
|
|
131
|
-
|
|
132
|
-
&:checked~.checkbox-element::before {
|
|
133
|
-
background-color: #FFDC75;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = exports.Default = void 0;
|
|
7
|
-
var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
8
|
-
var _addonActions = require("@storybook/addon-actions");
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
|
-
var _default = exports["default"] = {
|
|
12
|
-
title: 'Checkbox',
|
|
13
|
-
component: _Checkbox["default"],
|
|
14
|
-
args: {
|
|
15
|
-
id: 1,
|
|
16
|
-
value: true,
|
|
17
|
-
onChange: (0, _addonActions.action)('onChange'),
|
|
18
|
-
containerClassName: 'test-c',
|
|
19
|
-
inputClassName: 'test-i',
|
|
20
|
-
className: 'test',
|
|
21
|
-
children: /*#__PURE__*/React.createElement("span", null, "test"),
|
|
22
|
-
uncontrolled: false
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
var Default = exports.Default = {
|
|
26
|
-
render: function render(args) {
|
|
27
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
style: {
|
|
29
|
-
display: 'flex',
|
|
30
|
-
gap: '10px',
|
|
31
|
-
flexDirection: 'column',
|
|
32
|
-
justifyContent: 'center',
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
height: '100%'
|
|
35
|
-
}
|
|
36
|
-
}, /*#__PURE__*/React.createElement(_Checkbox["default"], args), /*#__PURE__*/React.createElement(_Checkbox["default"], _extends({
|
|
37
|
-
green: true
|
|
38
|
-
}, args)), /*#__PURE__*/React.createElement(_Checkbox["default"], _extends({
|
|
39
|
-
grey: true
|
|
40
|
-
}, args)), /*#__PURE__*/React.createElement(_Checkbox["default"], _extends({
|
|
41
|
-
yellow: true
|
|
42
|
-
}, args)), /*#__PURE__*/React.createElement(_Checkbox["default"], _extends({
|
|
43
|
-
red: true
|
|
44
|
-
}, args)));
|
|
45
|
-
}
|
|
46
|
-
};
|
package/dist/main.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
-
* This devtool is neither made for production nor for readable output files.
|
|
4
|
-
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
-
* or disable the default devtool with "devtool: false".
|
|
7
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
-
*/
|
|
9
|
-
/******/ (() => { // webpackBootstrap
|
|
10
|
-
/******/ "use strict";
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/ })()
|
|
14
|
-
;
|
|
@@ -1,85 +0,0 @@
|
|
|
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;
|
|
@@ -1,98 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
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>
|
|
@@ -1,6 +0,0 @@
|
|
|
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>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _banner = _interopRequireDefault(require("./img/banner.svg"));
|
|
8
|
-
require("./NoArticles.scss");
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
|
-
var NoArticles = function NoArticles() {
|
|
12
|
-
var lang = localStorage.getItem('lang');
|
|
13
|
-
|
|
14
|
-
// Перевод
|
|
15
|
-
var translateContent = function translateContent() {
|
|
16
|
-
if (lang == 'rus') return 'Совсем скоро здесь будут статьи';
|
|
17
|
-
if (lang == 'eng') return 'More articles will be here very soon';
|
|
18
|
-
if (lang == 'tur') return "Makaleler Türkçe'ye çevrilme aşamasında olup, İngilizce versiyonlarını web sitesinde okuyabilirsiniz.";
|
|
19
|
-
return 'Совсем скоро здесь будут статьи';
|
|
20
|
-
};
|
|
21
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
className: "no-articles"
|
|
23
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
24
|
-
className: "text_articles"
|
|
25
|
-
}, translateContent()), /*#__PURE__*/React.createElement("img", _extends({
|
|
26
|
-
className: "img_banner"
|
|
27
|
-
}, _banner["default"])));
|
|
28
|
-
};
|
|
29
|
-
var _default = exports["default"] = NoArticles;
|