@textback/notification-widget 2.0.6 → 3.0.0-dev.0
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/.gitlab-ci.yml +9 -2
- package/build/index.js +3 -3
- package/build/sdk.js +1 -1
- package/package.json +1 -1
- package/server.js +1 -1
- package/src/sdk/widget/widget.js +7 -17
- package/src/widget/components/tb-nw-wahunter/index.js +3 -23
- package/src/widget/components/tb-nw-wahunter/styles.scss +38 -30
@@ -1,13 +1,15 @@
|
|
1
1
|
$base-class-name: tb-nw-wahunter;
|
2
|
-
$font-family: 'Montserrat',
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
$font-family: 'Montserrat',
|
3
|
+
'Open Sans',
|
4
|
+
'Droid Sans',
|
5
|
+
Arial,
|
6
|
+
sans-serif;
|
7
|
+
|
8
|
+
$color-green: #25D366;
|
9
|
+
$color-light-gray: #F2F2F2;
|
6
10
|
$color-dark-gray: darken($color-light-gray, 5%);
|
7
11
|
|
8
|
-
tb-notification-widget
|
9
|
-
#tb-notification-widget-inner.tb-notification-widget-inner
|
10
|
-
tb-nw-wahunter {
|
12
|
+
tb-notification-widget #tb-notification-widget-inner.tb-notification-widget-inner tb-nw-wahunter {
|
11
13
|
font-size: 12px;
|
12
14
|
font-family: $font-family;
|
13
15
|
|
@@ -37,9 +39,9 @@ tb-notification-widget
|
|
37
39
|
}
|
38
40
|
}
|
39
41
|
|
40
|
-
|
41
|
-
|
42
|
-
|
42
|
+
|
43
|
+
tb-notification-widget #tb-notification-widget-inner.tb-notification-widget-inner .tb-nw-wahunter {
|
44
|
+
|
43
45
|
/**** All modes ****/
|
44
46
|
&__headline {
|
45
47
|
font-weight: 600;
|
@@ -50,6 +52,8 @@ tb-notification-widget
|
|
50
52
|
margin-bottom: 1.4em;
|
51
53
|
}
|
52
54
|
|
55
|
+
|
56
|
+
|
53
57
|
/**** Popup mode only ****/
|
54
58
|
&__top-img {
|
55
59
|
padding: 20% 0;
|
@@ -81,6 +85,7 @@ tb-notification-widget
|
|
81
85
|
}
|
82
86
|
|
83
87
|
&_without-image {
|
88
|
+
|
84
89
|
.#{$base-class-name}__top-img,
|
85
90
|
.#{$base-class-name}__img {
|
86
91
|
display: none;
|
@@ -98,6 +103,8 @@ tb-notification-widget
|
|
98
103
|
}
|
99
104
|
}
|
100
105
|
|
106
|
+
|
107
|
+
|
101
108
|
/**** Inline mode only ****/
|
102
109
|
&_mode_inline {
|
103
110
|
display: flex;
|
@@ -125,19 +132,18 @@ tb-notification-widget
|
|
125
132
|
justify-content: center;
|
126
133
|
}
|
127
134
|
|
135
|
+
|
136
|
+
|
128
137
|
/**** Corner-popup mode only ****/
|
129
138
|
&_mode_corner-popup {
|
130
139
|
.#{$base-class-name}__headline {
|
131
140
|
font-size: 1.7em;
|
132
141
|
margin-bottom: 0.4em;
|
133
142
|
}
|
134
|
-
|
135
|
-
.#{$base-class-name}__agreement-text {
|
136
|
-
width: 93%;
|
137
|
-
align-items: flex-start;
|
138
|
-
}
|
139
143
|
}
|
140
144
|
|
145
|
+
|
146
|
+
|
141
147
|
/**** Submit-form ****/
|
142
148
|
&__submit-form {
|
143
149
|
padding: 0;
|
@@ -157,7 +163,7 @@ tb-notification-widget
|
|
157
163
|
&__phone-input {
|
158
164
|
font-size: 14px;
|
159
165
|
margin-bottom: 12px;
|
160
|
-
background: #
|
166
|
+
background: #F2F2F2;
|
161
167
|
border: 1px solid $color-dark-gray;
|
162
168
|
letter-spacing: 1px;
|
163
169
|
color: #333;
|
@@ -205,9 +211,10 @@ tb-notification-widget
|
|
205
211
|
|
206
212
|
&__agreement {
|
207
213
|
display: flex;
|
214
|
+
align-items: center;
|
208
215
|
}
|
209
216
|
|
210
|
-
&__agreement input[type=
|
217
|
+
&__agreement input[type="checkbox"] {
|
211
218
|
-webkit-appearance: none;
|
212
219
|
-moz-appearance: none;
|
213
220
|
-o-appearance: none;
|
@@ -239,8 +246,6 @@ tb-notification-widget
|
|
239
246
|
|
240
247
|
&__agreement-text {
|
241
248
|
margin-left: 5px;
|
242
|
-
align-items: center;
|
243
|
-
text-align: left;
|
244
249
|
}
|
245
250
|
|
246
251
|
&__agreement-wa-icon {
|
@@ -258,10 +263,6 @@ tb-notification-widget
|
|
258
263
|
}
|
259
264
|
}
|
260
265
|
|
261
|
-
&__agreement-personal-data a {
|
262
|
-
color: rgba(13, 99, 143, 1);
|
263
|
-
}
|
264
|
-
|
265
266
|
&__state-report {
|
266
267
|
display: none;
|
267
268
|
flex-direction: column;
|
@@ -296,8 +297,10 @@ tb-notification-widget
|
|
296
297
|
text-decoration: underline;
|
297
298
|
}
|
298
299
|
|
300
|
+
|
301
|
+
|
299
302
|
/**** Submit-form state management ****/
|
300
|
-
&__submit-form:not([data-state=
|
303
|
+
&__submit-form:not([data-state="initial"]) {
|
301
304
|
.#{$base-class-name}__submit-form-controls {
|
302
305
|
display: none;
|
303
306
|
}
|
@@ -307,14 +310,15 @@ tb-notification-widget
|
|
307
310
|
}
|
308
311
|
}
|
309
312
|
|
310
|
-
&__submit-form[data-state=
|
313
|
+
&__submit-form[data-state="success"] {
|
311
314
|
#tb-notification-brand-badge {
|
312
315
|
display: inline-flex;
|
313
316
|
}
|
314
317
|
}
|
315
318
|
|
316
|
-
&__submit-form[data-state=
|
317
|
-
&__submit-form[data-state=
|
319
|
+
&__submit-form[data-state="error"],
|
320
|
+
&__submit-form[data-state="notFound"] {
|
321
|
+
|
318
322
|
.#{$base-class-name}__state-report-message {
|
319
323
|
font-weight: normal;
|
320
324
|
}
|
@@ -324,13 +328,15 @@ tb-notification-widget
|
|
324
328
|
}
|
325
329
|
}
|
326
330
|
|
331
|
+
|
332
|
+
|
327
333
|
@media only screen and (min-device-width: 481px) {
|
328
334
|
font-size: 13px;
|
329
335
|
|
330
336
|
&:not(.tb-nw-wahunter_mode_corner-popup) {
|
331
337
|
.#{$base-class-name}__phone-input-container {
|
332
338
|
padding: 5px;
|
333
|
-
background: #
|
339
|
+
background: #F2F2F2;
|
334
340
|
border-radius: 22px;
|
335
341
|
display: flex;
|
336
342
|
justify-content: space-between;
|
@@ -385,6 +391,8 @@ tb-notification-widget
|
|
385
391
|
}
|
386
392
|
}
|
387
393
|
|
394
|
+
|
395
|
+
|
388
396
|
@media only screen and (min-device-width: 768px) {
|
389
397
|
font-size: 14px;
|
390
398
|
|
@@ -426,8 +434,8 @@ tb-notification-widget
|
|
426
434
|
margin-right: 10px;
|
427
435
|
}
|
428
436
|
|
429
|
-
.#{$base-class-name}__submit-form[data-state=
|
430
|
-
.#{$base-class-name}__submit-form[data-state=
|
437
|
+
.#{$base-class-name}__submit-form[data-state="notFound"],
|
438
|
+
.#{$base-class-name}__submit-form[data-state="error"] {
|
431
439
|
.#{$base-class-name}__state-report {
|
432
440
|
align-items: flex-start;
|
433
441
|
}
|