@sc-360-v2/storefront-cms-library 0.3.39 → 0.3.40
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/builder.js +1 -1
- package/dist/buyForHeaders.scss +120 -2
- package/dist/buyForPopup.scss +41 -7
- package/dist/cart-details.scss +30 -30
- package/dist/cartAttributes.scss +97 -0
- package/dist/cartDropdownOverlay.scss +6 -0
- package/dist/checkout.scss +1007 -719
- package/dist/functions.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/modal.scss +24 -0
- package/dist/review-cart.scss +196 -0
- package/dist/types/builder/tools/element-edit/addProductsTab.d.ts +412 -288
- package/dist/types/builder/tools/element-edit/cartSummary.d.ts +1747 -38
- package/dist/types/builder/tools/element-edit/checkout.d.ts +793 -254
- package/dist/video.scss +16 -7
- package/dist/widget.scss +1 -0
- package/package.json +1 -1
package/dist/buyForHeaders.scss
CHANGED
|
@@ -8,6 +8,17 @@
|
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
align-items: center;
|
|
10
10
|
margin-bottom: 1rem;
|
|
11
|
+
.buy-for-header-subtitle {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 12px;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
color: var(--_gray-600);
|
|
18
|
+
svg path {
|
|
19
|
+
stroke: var(--_gray-600);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
11
22
|
|
|
12
23
|
h1 {
|
|
13
24
|
font-size: var(--_ctm-buy-dn-pe-te-ss-ft-se);
|
|
@@ -20,6 +31,8 @@
|
|
|
20
31
|
letter-spacing: var(--_ctm-buy-dn-pe-te-ss-lr-sg);
|
|
21
32
|
line-height: var(--_ctm-buy-dn-pe-te-ss-le-ht);
|
|
22
33
|
text-decoration: var(--_ctm-buy-dn-pe-te-ss-ue);
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 12px;
|
|
23
36
|
|
|
24
37
|
.separator {
|
|
25
38
|
margin: 0 0.5rem;
|
|
@@ -41,6 +54,7 @@
|
|
|
41
54
|
display: flex;
|
|
42
55
|
align-items: center;
|
|
43
56
|
gap: 1rem;
|
|
57
|
+
text-wrap: nowrap;
|
|
44
58
|
|
|
45
59
|
.impersonate-text {
|
|
46
60
|
background: #f3f5f7;
|
|
@@ -59,6 +73,7 @@
|
|
|
59
73
|
text-decoration: var(--_ctm-buy-dn-me-es-ll-ss-ue);
|
|
60
74
|
letter-spacing: var(--_ctm-buy-dn-me-es-ll-ss-lr-sg);
|
|
61
75
|
line-height: var(--_ctm-buy-dn-me-es-ll-ss-le-ht);
|
|
76
|
+
cursor: pointer;
|
|
62
77
|
}
|
|
63
78
|
|
|
64
79
|
.employee-switch {
|
|
@@ -88,15 +103,40 @@
|
|
|
88
103
|
|
|
89
104
|
.employee-info {
|
|
90
105
|
border-top: 1px solid #eee;
|
|
91
|
-
padding-top: 1rem;
|
|
92
106
|
.employee-details-section {
|
|
93
107
|
display: flex;
|
|
94
108
|
justify-content: space-between;
|
|
109
|
+
padding-block: 24px;
|
|
110
|
+
.employee-meta-info {
|
|
111
|
+
display: flex;
|
|
112
|
+
li {
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
gap: 8px;
|
|
116
|
+
&:not(:last-child)::after {
|
|
117
|
+
content: "";
|
|
118
|
+
width: 6px;
|
|
119
|
+
height: 6px;
|
|
120
|
+
margin-inline-end: 8px;
|
|
121
|
+
display: inline-block;
|
|
122
|
+
background-color: var(--_gray-200);
|
|
123
|
+
border-radius: 50%;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
95
127
|
.employee-details {
|
|
96
128
|
display: flex;
|
|
97
129
|
justify-content: space-between;
|
|
98
130
|
align-items: center;
|
|
99
|
-
|
|
131
|
+
gap: 12px;
|
|
132
|
+
|
|
133
|
+
.employee-info-status {
|
|
134
|
+
font-size: 14px;
|
|
135
|
+
color: var(--_success-600);
|
|
136
|
+
background: var(--_success-50);
|
|
137
|
+
padding: 4px 8px 6px 8px;
|
|
138
|
+
border-radius: 6px;
|
|
139
|
+
}
|
|
100
140
|
|
|
101
141
|
.employee-name {
|
|
102
142
|
font-size: var(--_ctm-buy-dn-ee-ne-ss-ft-se);
|
|
@@ -266,3 +306,81 @@
|
|
|
266
306
|
}
|
|
267
307
|
}
|
|
268
308
|
}
|
|
309
|
+
|
|
310
|
+
.buy-for-address-block {
|
|
311
|
+
display: flex;
|
|
312
|
+
gap: 24px;
|
|
313
|
+
border-block: 1px solid var(--_gray-200);
|
|
314
|
+
padding-block: 24px;
|
|
315
|
+
.buy-for-shipping-address {
|
|
316
|
+
display: grid;
|
|
317
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
318
|
+
gap: 24px;
|
|
319
|
+
width: 100%;
|
|
320
|
+
align-items: flex-start;
|
|
321
|
+
|
|
322
|
+
.buy-for-shipping {
|
|
323
|
+
display: flex;
|
|
324
|
+
flex-direction: column;
|
|
325
|
+
gap: 4px;
|
|
326
|
+
position: relative;
|
|
327
|
+
&:not(:first-child)::before {
|
|
328
|
+
content: "";
|
|
329
|
+
width: 1px;
|
|
330
|
+
height: 40px;
|
|
331
|
+
background-color: var(--_gray-200);
|
|
332
|
+
display: inline-block;
|
|
333
|
+
position: absolute;
|
|
334
|
+
margin-left: -12px;
|
|
335
|
+
top: 4px;
|
|
336
|
+
}
|
|
337
|
+
h6 {
|
|
338
|
+
color: var(--_gray-500);
|
|
339
|
+
font-weight: 400;
|
|
340
|
+
font-size: 14px;
|
|
341
|
+
line-height: 20px;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.buy-for-shipping-details {
|
|
345
|
+
font-size: 14px;
|
|
346
|
+
font-weight: 600;
|
|
347
|
+
color: var(--_gray-900);
|
|
348
|
+
line-height: 20px;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
.buy-for-cart-main {
|
|
353
|
+
width: 130px;
|
|
354
|
+
display: flex;
|
|
355
|
+
align-items: center;
|
|
356
|
+
gap: 12px;
|
|
357
|
+
height: 40px;
|
|
358
|
+
border-left: 1px solid var(--_gray-200);
|
|
359
|
+
padding-left: 12px;
|
|
360
|
+
|
|
361
|
+
.cart-icon {
|
|
362
|
+
position: relative;
|
|
363
|
+
|
|
364
|
+
.badge {
|
|
365
|
+
position: absolute;
|
|
366
|
+
top: -9px;
|
|
367
|
+
background: #ffd700;
|
|
368
|
+
border-radius: 4px;
|
|
369
|
+
left: 12px;
|
|
370
|
+
padding: 2px 4px;
|
|
371
|
+
line-height: normal;
|
|
372
|
+
color: var(--_gray-900);
|
|
373
|
+
font-weight: 400;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.buy-for-cart-content {
|
|
378
|
+
.cart-amount {
|
|
379
|
+
color: var(--_gray-900);
|
|
380
|
+
font-size: 14px;
|
|
381
|
+
font-weight: 600;
|
|
382
|
+
line-height: 20px;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
package/dist/buyForPopup.scss
CHANGED
|
@@ -12,24 +12,47 @@
|
|
|
12
12
|
.popup_container {
|
|
13
13
|
width: 90%;
|
|
14
14
|
max-width: 600px;
|
|
15
|
-
background:
|
|
15
|
+
background: var(--_base-white);
|
|
16
16
|
border-radius: 12px;
|
|
17
17
|
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
max-height: 83vh;
|
|
21
|
-
overflow-y: auto;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
.popup_header {
|
|
25
24
|
display: flex;
|
|
26
25
|
justify-content: space-between;
|
|
26
|
+
align-items: center;
|
|
27
27
|
border-bottom: 1px solid var(--_gray-200);
|
|
28
28
|
padding: 16px 24px;
|
|
29
|
+
gap: 4px;
|
|
30
|
+
|
|
31
|
+
.close-icon {
|
|
32
|
+
width: 32px;
|
|
33
|
+
height: 32px;
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
align-items: center;
|
|
37
|
+
border-radius: 4px;
|
|
38
|
+
svg {
|
|
39
|
+
width: 18px;
|
|
40
|
+
height: 18px;
|
|
41
|
+
path {
|
|
42
|
+
stroke: var(--_gray-600);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
&:hover {
|
|
46
|
+
background-color: var(--_gray-100);
|
|
47
|
+
svg path {
|
|
48
|
+
stroke: var(--_gray-900);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
29
52
|
|
|
30
53
|
h2 {
|
|
31
54
|
font-size: 18px;
|
|
32
|
-
font-weight:
|
|
55
|
+
font-weight: normal;
|
|
33
56
|
margin: 0;
|
|
34
57
|
line-height: 28px;
|
|
35
58
|
}
|
|
@@ -48,6 +71,7 @@
|
|
|
48
71
|
gap: 12px;
|
|
49
72
|
font-size: 14px;
|
|
50
73
|
color: var(--_gray-600);
|
|
74
|
+
list-style: none;
|
|
51
75
|
|
|
52
76
|
li {
|
|
53
77
|
&::after {
|
|
@@ -71,6 +95,7 @@
|
|
|
71
95
|
|
|
72
96
|
.popup_body {
|
|
73
97
|
padding: 24px;
|
|
98
|
+
flex-grow: 1;
|
|
74
99
|
}
|
|
75
100
|
|
|
76
101
|
.search_input {
|
|
@@ -85,8 +110,8 @@
|
|
|
85
110
|
border: 1px solid var(--_gray-200) !important;
|
|
86
111
|
|
|
87
112
|
&:focus {
|
|
88
|
-
|
|
89
|
-
|
|
113
|
+
border: 1px solid var(--_primary-200) !important;
|
|
114
|
+
outline: 2px solid var(--_primary-50);
|
|
90
115
|
}
|
|
91
116
|
}
|
|
92
117
|
|
|
@@ -95,7 +120,7 @@
|
|
|
95
120
|
flex-direction: column;
|
|
96
121
|
gap: 16px;
|
|
97
122
|
overflow-y: auto;
|
|
98
|
-
max-height:
|
|
123
|
+
max-height: 30vh;
|
|
99
124
|
}
|
|
100
125
|
|
|
101
126
|
.group_section {
|
|
@@ -178,15 +203,24 @@
|
|
|
178
203
|
padding: 16px 24px;
|
|
179
204
|
border-top: 1px solid var(--_gray-200);
|
|
180
205
|
justify-content: end;
|
|
206
|
+
gap: 12px;
|
|
181
207
|
|
|
182
208
|
button {
|
|
183
209
|
padding: 10px 16px;
|
|
184
|
-
border-radius:
|
|
210
|
+
border-radius: 6px;
|
|
185
211
|
font-size: 14px;
|
|
186
212
|
font-weight: 500;
|
|
187
213
|
cursor: pointer;
|
|
188
214
|
border: none;
|
|
189
215
|
transition: background 0.2s ease;
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
&[aria-label="Discard"] {
|
|
219
|
+
&:hover {
|
|
220
|
+
background-color: var(--_gray-100);
|
|
221
|
+
color: var(--_gray-900);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
190
224
|
|
|
191
225
|
&:first-child {
|
|
192
226
|
// background: #f3f3f3;
|
package/dist/cart-details.scss
CHANGED
|
@@ -270,36 +270,36 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
270
270
|
align-items: center;
|
|
271
271
|
gap: 1rem;
|
|
272
272
|
|
|
273
|
-
.dropdown {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}
|
|
273
|
+
// .dropdown {
|
|
274
|
+
// flex: 1;
|
|
275
|
+
// display: flex;
|
|
276
|
+
// flex-direction: column;
|
|
277
|
+
// gap: 8px;
|
|
278
|
+
// max-width: 400px;
|
|
279
|
+
|
|
280
|
+
// .quick-order-product-dropdown-section {
|
|
281
|
+
// &:focus {
|
|
282
|
+
// &:focus {
|
|
283
|
+
// border-color: #2563eb;
|
|
284
|
+
// box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
|
|
285
|
+
// }
|
|
286
|
+
// }
|
|
287
|
+
|
|
288
|
+
// .dropdown-input-section {
|
|
289
|
+
// // padding: 0.5rem;
|
|
290
|
+
|
|
291
|
+
// .input-field {
|
|
292
|
+
// border: none;
|
|
293
|
+
// box-shadow: none;
|
|
294
|
+
// padding: 0px;
|
|
295
|
+
// }
|
|
296
|
+
|
|
297
|
+
// .dropdown-menu {
|
|
298
|
+
// top: 40px;
|
|
299
|
+
// }
|
|
300
|
+
// }
|
|
301
|
+
// }
|
|
302
|
+
// }
|
|
303
303
|
|
|
304
304
|
.checkbox-wrapper {
|
|
305
305
|
display: flex;
|
package/dist/cartAttributes.scss
CHANGED
|
@@ -354,6 +354,103 @@
|
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
+
// toggle styles
|
|
358
|
+
.input_toggle_switch {
|
|
359
|
+
position: relative;
|
|
360
|
+
display: inline-block;
|
|
361
|
+
width: 50px;
|
|
362
|
+
height: 28px;
|
|
363
|
+
|
|
364
|
+
input[type="checkbox"] {
|
|
365
|
+
opacity: 0;
|
|
366
|
+
width: 0;
|
|
367
|
+
height: 0;
|
|
368
|
+
|
|
369
|
+
&:checked + .slider {
|
|
370
|
+
background-color: #4caf50;
|
|
371
|
+
|
|
372
|
+
&::before {
|
|
373
|
+
transform: translateX(22px);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.slider {
|
|
379
|
+
position: absolute;
|
|
380
|
+
cursor: pointer;
|
|
381
|
+
top: 0;
|
|
382
|
+
left: 0;
|
|
383
|
+
right: 0;
|
|
384
|
+
bottom: 0;
|
|
385
|
+
background-color: #ccc;
|
|
386
|
+
transition: 0.4s;
|
|
387
|
+
border-radius: 28px;
|
|
388
|
+
|
|
389
|
+
&::before {
|
|
390
|
+
position: absolute;
|
|
391
|
+
content: "";
|
|
392
|
+
height: 22px;
|
|
393
|
+
width: 22px;
|
|
394
|
+
left: 3px;
|
|
395
|
+
bottom: 3px;
|
|
396
|
+
background-color: white;
|
|
397
|
+
border-radius: 50%;
|
|
398
|
+
transition: 0.4s;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// input radio styles
|
|
404
|
+
.input_radio_a {
|
|
405
|
+
position: relative;
|
|
406
|
+
display: inline-flex;
|
|
407
|
+
align-items: center;
|
|
408
|
+
cursor: pointer;
|
|
409
|
+
height: 20px;
|
|
410
|
+
width: 20px;
|
|
411
|
+
|
|
412
|
+
input[type="radio"] {
|
|
413
|
+
opacity: 0;
|
|
414
|
+
width: 0;
|
|
415
|
+
height: 0;
|
|
416
|
+
|
|
417
|
+
&:checked + .custom_radio::after {
|
|
418
|
+
display: block;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.custom_radio {
|
|
423
|
+
height: 18px;
|
|
424
|
+
width: 18px;
|
|
425
|
+
border-radius: 50%;
|
|
426
|
+
background-color: var(--_base-white);
|
|
427
|
+
border: 2px solid var(--_gray-600);
|
|
428
|
+
position: relative;
|
|
429
|
+
transition: border-color 0.3s ease;
|
|
430
|
+
|
|
431
|
+
&::after {
|
|
432
|
+
content: "";
|
|
433
|
+
position: absolute;
|
|
434
|
+
top: 3px;
|
|
435
|
+
left: 3px;
|
|
436
|
+
width: 8px;
|
|
437
|
+
height: 8px;
|
|
438
|
+
border-radius: 50%;
|
|
439
|
+
background-color: var(--_primary-400);
|
|
440
|
+
display: none;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
input[type="radio"]:checked + .custom_radio {
|
|
445
|
+
border-color: var(--_primary-400);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
&.disabled {
|
|
449
|
+
opacity: 0.5;
|
|
450
|
+
pointer-events: none;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
357
454
|
.custom-upload {
|
|
358
455
|
// text-align: center;
|
|
359
456
|
// border: 1px solid var(--_gray-200);
|
|
@@ -130,6 +130,7 @@ $button-padding: 6px 12px;
|
|
|
130
130
|
.label-content {
|
|
131
131
|
width: 100%;
|
|
132
132
|
align-items: center;
|
|
133
|
+
cursor: auto;
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
|
|
@@ -208,6 +209,11 @@ $button-padding: 6px 12px;
|
|
|
208
209
|
flex: 1 0 0;
|
|
209
210
|
margin: $spacing-md 0px;
|
|
210
211
|
|
|
212
|
+
&.disabled {
|
|
213
|
+
opacity: 0.5;
|
|
214
|
+
pointer-events: none;
|
|
215
|
+
}
|
|
216
|
+
|
|
211
217
|
&:hover {
|
|
212
218
|
// background-color: lighten($primary-color, $amount: 5%);
|
|
213
219
|
background-color: color-mix(in srgb, #{$primary-color} 95%, var(--_base-white));
|