ecomlab-components-next 0.1.31 → 0.1.33
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/fetchUrls.js +7 -2
- package/dist/common/headers.js +2 -1
- package/dist/common/hooks/useDebounce.js +37 -0
- package/dist/common/hooks/useTextSelectionInModal.js +41 -0
- package/dist/components/Article/ArcticleWiki/ArcticleWiki.stories.js +152 -0
- package/dist/components/Article/ArcticleWiki/ArticleWiki.js +775 -0
- package/dist/components/Article/ArcticleWiki/ArticleWiki.scss +278 -0
- package/dist/components/Article/ArticleViewV2/ArticleViewV2.js +791 -0
- package/dist/components/Article/ArticleViewV2/ArticleViewV2.scss +245 -0
- package/dist/components/Article/ArticleViewV2/ArticleViewV2.stories.js +166 -0
- package/dist/components/Article/ArticleViewV2/img/bell.svg +9 -0
- package/dist/components/Article/ArticleViewV2/img/btn-add-round.svg +4 -0
- package/dist/components/Article/ArticleViewV2/img/calendar_icon.svg +6 -0
- package/dist/components/Article/ArticleViewV2/img/close-round.svg +3 -0
- package/dist/components/Article/ArticleViewV2/img/close.svg +9 -0
- package/dist/components/Article/ArticleViewV2/img/copy_icon.svg +5 -0
- package/dist/components/Article/ArticleViewV2/img/dndMenu.svg +1 -0
- package/dist/components/Article/ArticleViewV2/img/info.svg +9 -0
- package/dist/components/Article/ArticleViewV2/img/ok_icon.svg +5 -0
- package/dist/components/Article/ArticleViewV2/img/plus_circle.svg +6 -0
- package/dist/components/Article/ArticleViewV2/img/share_icon.svg +5 -0
- package/dist/components/Article/ArticleViewV2/img/tg.svg +3 -0
- package/dist/components/Article/ArticleViewV2/img/tg_icon.svg +5 -0
- package/dist/components/Article/ArticleViewV2/img/time_icon.svg +6 -0
- package/dist/components/Article/ArticleViewV2/img/view_icon.svg +6 -0
- package/dist/components/Article/ArticleViewV2/img/vk_icon.svg +5 -0
- package/dist/components/Article/ArticleViewV2/img/whatsapp_icon.svg +5 -0
- package/dist/components/Article/Breadcrumb/Breadcrumb.js +69 -0
- package/dist/components/Article/Breadcrumb/Breadcrumb.scss +96 -0
- package/dist/components/Article/Breadcrumb/img/drop-right.svg +3 -0
- package/dist/components/Article/Breadcrumb/img/home_icon.svg +5 -0
- package/dist/components/Article/EditWrapper/EditWrapper.js +108 -0
- package/dist/components/Article/EditWrapper/EditWrapper.scss +93 -0
- package/dist/components/Article/EditWrapper/img/bx-grid-vertical.svg +5 -0
- package/dist/components/Article/Editor/Editor.js +92 -0
- package/dist/components/Article/Editor/Editor.scss +35 -0
- package/dist/components/Article/Editor/img/copy.svg +6 -0
- package/dist/components/Article/FormBtn/FormBtn.js +229 -0
- package/dist/components/Article/FormBtn/FormBtn.scss +458 -0
- package/dist/components/Article/FormBtn/ModalBitrixForm/ModalBitrixForm.js +282 -0
- package/dist/components/Article/FormBtn/ModalBitrixForm/ModalBitrixForm.scss +140 -0
- package/dist/components/Article/FormBtn/ModalBitrixForm/img/close_icon.svg +3 -0
- package/dist/components/Article/FormBtn/ModalBitrixForm/img/done_icon.svg +3 -0
- package/dist/components/Article/FormBtn/ModalBitrixForm/img/ozon.svg +9 -0
- package/dist/components/Article/FormBtn/ModalBitrixForm/img/ozon_bkg.svg +9 -0
- package/dist/components/Article/FormBtn/ModalBitrixForm/validationFunc.js +14 -0
- package/dist/components/Article/FormBtn/img/clos_icon.svg +6 -0
- package/dist/components/Article/FormBtn/img/close-icon.svg +3 -0
- package/dist/components/Article/ImgArticle/ImgArticle.js +297 -0
- package/dist/components/Article/ImgArticle/ImgArticle.scss +169 -0
- package/dist/components/Article/ImgArticle/img/noPhoto.png +0 -0
- package/dist/components/Article/InformationBlock/InformationBlock.js +200 -0
- package/dist/components/Article/InformationBlock/InformationBlock.scss +89 -0
- package/dist/components/Article/InformationBlock/img/bell.svg +9 -0
- package/dist/components/Article/ListOfContent/ListOfContent.js +110 -0
- package/dist/components/Article/ListOfContent/ListOfContent.scss +115 -0
- package/dist/components/Article/ListOfContent/img/time_icon.svg +3 -0
- package/dist/components/Article/ListOfContent/img/view_icon.svg +3 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/ModalMiltilevelSidebarSettings.js +973 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/ModalMiltilevelSidebarSettings.scss +254 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/ModalMiltilevelSidebarSettings.stories.js +76 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/img/bx-cog.png +0 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/img/bx-cog.svg +4 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/img/bx-trash.png +0 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/img/bx-trash.svg +4 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/img/drop_icon.svg +5 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/img/edit_icon.svg +6 -0
- package/dist/components/Article/ModalMiltilevelSidebarSettings/img/trash_icon.svg +8 -0
- package/dist/components/Article/ModalReplaceBlock/ModalReplaceBlock.js +85 -0
- package/dist/components/Article/ModalReplaceBlock/ModalReplaceBlock.scss +72 -0
- package/dist/components/Article/SelectedBlocks/SelectedBlocks.js +281 -0
- package/dist/components/Article/SelectedBlocks/SelectedBlocks.scss +0 -0
- package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/ModalSelectionSocialMedia.js +130 -0
- package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/ModalSelectionSocialMedia.scss +65 -0
- package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/Facebook.svg +4 -0
- package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/OK.svg +4 -0
- package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/Xcom.svg +9 -0
- package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/linkedin.svg +5 -0
- package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/tg.svg +4 -0
- package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/vk.svg +4 -0
- package/dist/components/Article/SocialMedia/ModalSelectionSocialMedia/img/wtsp.svg +4 -0
- package/dist/components/Article/SocialMedia/SocialMedia.js +242 -0
- package/dist/components/Article/SocialMedia/SocialMedia.scss +57 -0
- package/dist/components/Article/SocialMedia/img/dzen.svg +4 -0
- package/dist/components/Article/SocialMedia/img/facebook.svg +4 -0
- package/dist/components/Article/SocialMedia/img/insta.svg +9 -0
- package/dist/components/Article/SocialMedia/img/linkendIn.svg +5 -0
- package/dist/components/Article/SocialMedia/img/ok.svg +4 -0
- package/dist/components/Article/SocialMedia/img/pikabu.svg +9 -0
- package/dist/components/Article/SocialMedia/img/telegram.svg +4 -0
- package/dist/components/Article/SocialMedia/img/vcru.svg +0 -0
- package/dist/components/Article/SocialMedia/img/vk.svg +4 -0
- package/dist/components/Article/SocialMedia/img/wp.svg +4 -0
- package/dist/components/Article/SocialMedia/img/x.svg +9 -0
- package/dist/components/Article/TextArticle/TextArticle.js +257 -0
- package/dist/components/Article/TextArticle/TextArticle.scss +156 -0
- package/dist/components/Article/TextArticle/img/dndMenu.svg +1 -0
- package/dist/components/Article/TitleText/TitleText.js +157 -0
- package/dist/components/Article/TitleText/TitleText.scss +74 -0
- package/dist/components/Article/VideoArticle/VideoArticle.js +248 -0
- package/dist/components/Article/VideoArticle/VideoArticle.scss +147 -0
- package/dist/components/Buttons/ButtonActionDrop/ButtonActionDrop.js +109 -0
- package/dist/components/Buttons/ButtonActionDrop/ButtonActionDrop.scss +97 -0
- package/dist/components/Buttons/ButtonActionDrop/img/bx-dots-horizontal-rounded.svg +3 -0
- package/dist/components/ConstructorComponents/MainContainer/MainContainer.js +2 -73
- package/dist/components/ConstructorComponents/MainContainer/MainContainer.stories.js +73 -3
- package/package.json +3 -2
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
.article-template {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
gap: 20px;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
|
|
7
|
+
&__content-article {
|
|
8
|
+
width: 100%;
|
|
9
|
+
position: relative;
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
.container-article {
|
|
15
|
+
width: 100%;
|
|
16
|
+
position: relative;
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
.text {
|
|
21
|
+
font-size: 22px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.yellow-information-box {
|
|
25
|
+
.text {
|
|
26
|
+
font-size: 15px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// .title__big {
|
|
32
|
+
// font-size: 29px;
|
|
33
|
+
// font-weight: 500;
|
|
34
|
+
// text-align: center;
|
|
35
|
+
// text-align: start;
|
|
36
|
+
|
|
37
|
+
// &_grey {
|
|
38
|
+
// color: #D9D9D9;
|
|
39
|
+
// font-size: 29px;
|
|
40
|
+
// font-weight: 400;
|
|
41
|
+
// text-align: center;
|
|
42
|
+
// }
|
|
43
|
+
|
|
44
|
+
// &:empty {
|
|
45
|
+
// padding-top: 0;
|
|
46
|
+
// height: 1lh;
|
|
47
|
+
|
|
48
|
+
// &::before {
|
|
49
|
+
// content: "Введите заголовок";
|
|
50
|
+
// color: #D9D9D9;
|
|
51
|
+
// }
|
|
52
|
+
// }
|
|
53
|
+
// }
|
|
54
|
+
|
|
55
|
+
// .title__big[contenteditable="true"] {
|
|
56
|
+
// outline: none;
|
|
57
|
+
// }
|
|
58
|
+
|
|
59
|
+
.line {
|
|
60
|
+
display: block;
|
|
61
|
+
width: 70%;
|
|
62
|
+
background-color: #F0F0F0;
|
|
63
|
+
height: 1px;
|
|
64
|
+
margin-bottom: 8px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.toolbar-filter {
|
|
68
|
+
display: flex;
|
|
69
|
+
column-gap: 24px;
|
|
70
|
+
row-gap: 16px;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
flex-wrap: wrap;
|
|
74
|
+
margin-bottom: 25px;
|
|
75
|
+
|
|
76
|
+
.btn-publish {
|
|
77
|
+
margin-left: auto;
|
|
78
|
+
max-width: 160px;
|
|
79
|
+
min-width: 160px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.btn__green {
|
|
83
|
+
margin: 0;
|
|
84
|
+
max-width: 200px;
|
|
85
|
+
min-width: 200px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.select-group {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
column-gap: 24px;
|
|
92
|
+
row-gap: 16px;
|
|
93
|
+
flex-wrap: wrap;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.toolbar-info-box {
|
|
98
|
+
max-width: 70%;
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: 16px;
|
|
102
|
+
margin-top: 8px;
|
|
103
|
+
|
|
104
|
+
.toolbar-top {
|
|
105
|
+
width: 100%;
|
|
106
|
+
max-width: calc(100vw - 30px - 30px - 200px - 360px - 100px - 40px);
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: space-between;
|
|
109
|
+
align-items: center;
|
|
110
|
+
gap: 24px;
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
|
|
113
|
+
.date-picker {
|
|
114
|
+
max-width: 168px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.text_grey {
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
font-size: 11px;
|
|
120
|
+
color: #888888;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.select-box {
|
|
124
|
+
display: flex;
|
|
125
|
+
gap: 16px;
|
|
126
|
+
align-items: center;
|
|
127
|
+
|
|
128
|
+
.date-picker {
|
|
129
|
+
border: 1px solid #F0F0F0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.tag-search-box {
|
|
134
|
+
display: flex;
|
|
135
|
+
gap: 24px;
|
|
136
|
+
align-items: center;
|
|
137
|
+
flex-wrap: wrap;
|
|
138
|
+
width: auto;
|
|
139
|
+
|
|
140
|
+
.btn__bej {
|
|
141
|
+
max-width: 160px;
|
|
142
|
+
min-width: 160px;
|
|
143
|
+
margin-top: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&__content {
|
|
147
|
+
gap: 16px;
|
|
148
|
+
align-items: center;
|
|
149
|
+
width: auto;
|
|
150
|
+
display: flex;
|
|
151
|
+
|
|
152
|
+
.input-field-text {
|
|
153
|
+
height: 32px;
|
|
154
|
+
max-width: 200px;
|
|
155
|
+
min-width: 200px;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.toolbar-bottom {
|
|
162
|
+
width: 100%;
|
|
163
|
+
display: flex;
|
|
164
|
+
gap: 16px;
|
|
165
|
+
|
|
166
|
+
.text_grey {
|
|
167
|
+
white-space: nowrap;
|
|
168
|
+
font-size: 11px;
|
|
169
|
+
color: #888888;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.tag-box_green {
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
width: auto;
|
|
176
|
+
padding-left: 8px;
|
|
177
|
+
padding-right: 8px;
|
|
178
|
+
background-color: #F2FFE6;
|
|
179
|
+
border-radius: 16px;
|
|
180
|
+
gap: 10px;
|
|
181
|
+
height: 20px;
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.tags-input {
|
|
190
|
+
border: 1px solid #F0F0F0;
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
background-color: white;
|
|
194
|
+
padding: 0;
|
|
195
|
+
border-radius: 1em;
|
|
196
|
+
width: 100%;
|
|
197
|
+
min-width: 200px;
|
|
198
|
+
max-width: 200px;
|
|
199
|
+
padding: 0 !important;
|
|
200
|
+
|
|
201
|
+
// todo: fix height
|
|
202
|
+
.control {
|
|
203
|
+
min-height: 32px;
|
|
204
|
+
height: auto;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.title-box {
|
|
209
|
+
display: flex;
|
|
210
|
+
gap: 12px;
|
|
211
|
+
width: 100%;
|
|
212
|
+
|
|
213
|
+
.title-input {
|
|
214
|
+
border: none;
|
|
215
|
+
outline: none;
|
|
216
|
+
width: 100%;
|
|
217
|
+
-webkit-user-modify: read-write;
|
|
218
|
+
overflow-wrap: break-word;
|
|
219
|
+
-webkit-line-break: after-white-space;
|
|
220
|
+
flex-grow: 1;
|
|
221
|
+
overflow-y: auto;
|
|
222
|
+
resize: none;
|
|
223
|
+
background-color: inherit;
|
|
224
|
+
|
|
225
|
+
&::placeholder {
|
|
226
|
+
color: #D9D9D9;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.btn-group {
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
gap: 4px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.action-panel-top {
|
|
241
|
+
display: flex;
|
|
242
|
+
justify-content: end;
|
|
243
|
+
align-items: center;
|
|
244
|
+
gap: 30px;
|
|
245
|
+
|
|
246
|
+
.btn__green {
|
|
247
|
+
margin: 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.status {
|
|
251
|
+
white-space: nowrap;
|
|
252
|
+
color: red;
|
|
253
|
+
margin-right: auto;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// Новые стили
|
|
258
|
+
|
|
259
|
+
.article-and-tabs {
|
|
260
|
+
width: 100%;
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
gap: 30px;
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
&__top-panel {
|
|
267
|
+
display: flex;
|
|
268
|
+
justify-content: end;
|
|
269
|
+
gap: 20px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&__tabs {
|
|
273
|
+
display: flex;
|
|
274
|
+
width: 100%;
|
|
275
|
+
gap: 20px;
|
|
276
|
+
justify-content: end;
|
|
277
|
+
}
|
|
278
|
+
}
|