@sc-360-v2/storefront-cms-library 0.3.38 → 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.
Files changed (42) hide show
  1. package/dist/add-products-tab.scss +388 -0
  2. package/dist/badge.scss +84 -82
  3. package/dist/builder.js +1 -1
  4. package/dist/bulk-order-pad.scss +29 -34
  5. package/dist/buyForHeaders.scss +120 -2
  6. package/dist/buyForPopup.scss +41 -7
  7. package/dist/cart-details.scss +62 -65
  8. package/dist/cart-products-sidebar.scss +113 -83
  9. package/dist/cartAttributes.scss +277 -183
  10. package/dist/cartDropdownOverlay.scss +55 -27
  11. package/dist/checkout.scss +1017 -640
  12. package/dist/customization-tree.scss +42 -10
  13. package/dist/dropdownTemplate.scss +35 -25
  14. package/dist/employee-bulk-order.scss +219 -47
  15. package/dist/empty-states.scss +66 -66
  16. package/dist/functions.js +1 -1
  17. package/dist/functions.scss +7 -5
  18. package/dist/icons.js +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/item-stock.scss +27 -28
  21. package/dist/menu-v2.scss +2 -2
  22. package/dist/modal.scss +128 -75
  23. package/dist/past-orders.scss +272 -258
  24. package/dist/payment-methods.scss +70 -71
  25. package/dist/prefix-list.scss +1 -0
  26. package/dist/product-actions.scss +68 -68
  27. package/dist/product-sizechart.scss +13 -13
  28. package/dist/quick-links.scss +47 -48
  29. package/dist/quick-order-pad.scss +51 -51
  30. package/dist/quotes.scss +118 -116
  31. package/dist/review-cart.scss +196 -0
  32. package/dist/rfqs.scss +118 -116
  33. package/dist/types/builder/elements/add-products-tab/index.d.ts +46 -0
  34. package/dist/types/builder/enums/index.d.ts +2 -0
  35. package/dist/types/builder/index.d.ts +2 -1
  36. package/dist/types/builder/tools/element-edit/addProductsTab.d.ts +542 -0
  37. package/dist/types/builder/tools/element-edit/cartSummary.d.ts +1747 -38
  38. package/dist/types/builder/tools/element-edit/checkout.d.ts +793 -254
  39. package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
  40. package/dist/video.scss +16 -7
  41. package/dist/widget.scss +2 -0
  42. package/package.json +1 -1
@@ -15,7 +15,7 @@
15
15
  border-bottom: 1px solid var(--_gray-200);
16
16
 
17
17
  .dropdown-with-input-section {
18
- border: 0.5px solid var(--_gray-300);
18
+ // border: 0.5px solid var(--_gray-300);
19
19
  border-radius: 4px;
20
20
  }
21
21
  }
@@ -56,7 +56,7 @@
56
56
 
57
57
  .bulkOrderPad-grid {
58
58
  height: 100%;
59
-
59
+
60
60
  .bulkOrderPad-content {
61
61
  height: calc(100% - 92px);
62
62
  .bulkOrderPad-section {
@@ -263,8 +263,8 @@
263
263
  border-radius: 4px;
264
264
  overflow: hidden;
265
265
  img {
266
- width: 100%;
267
- height: 100%;
266
+ width: 100%;
267
+ height: 100%;
268
268
  }
269
269
  }
270
270
 
@@ -358,7 +358,7 @@
358
358
  }
359
359
 
360
360
  .discard {
361
- padding: 10px 18px;
361
+ padding: 12px 16px;
362
362
  border-radius: 4px;
363
363
  color: var(--_gray-600);
364
364
  font-weight: 600;
@@ -367,14 +367,14 @@
367
367
  line-height: 24px;
368
368
 
369
369
  &:hover {
370
- border: 1px solid var(--_gray-600);
370
+ background-color: var(--_gray-50);
371
+ color: var(--_gray-900);
371
372
  }
372
373
  }
373
374
 
374
375
  .add-tocart {
375
376
  padding: 10px 18px;
376
377
  border-radius: 4px;
377
- border: 1px solid var(--_primary-500);
378
378
  color: #fff;
379
379
  font-weight: 600;
380
380
  font-size: 16px;
@@ -382,7 +382,7 @@
382
382
  display: flex;
383
383
  align-items: center;
384
384
  gap: 8px;
385
- background: var(--_primary-500);
385
+ background: var(--_primary-400);
386
386
 
387
387
  svg {
388
388
  width: 20px;
@@ -418,29 +418,28 @@
418
418
  overflow-x: auto;
419
419
  }
420
420
 
421
- .dropdown-with-input-section {
422
- gap: 6px;
421
+ // .dropdown-with-input-section {
422
+ // gap: 6px;
423
423
 
424
- label {
425
- font-size: 14px;
426
- line-height: 20px;
427
- color: var(--_gray-700);
428
- font-family: "Lato";
429
- }
424
+ // label {
425
+ // font-size: 14px;
426
+ // line-height: 20px;
427
+ // color: var(--_gray-700);
428
+ // font-family: "Lato";
429
+ // }
430
430
 
431
- .dropdown-input-section {
432
- border: 1px solid var(--_gray-300);
433
- border-radius: 4px;
434
- max-width: 320px;
435
- background: #fff;
436
-
437
- }
438
- }
431
+ // .dropdown-input-section {
432
+ // border: 1px solid var(--_gray-300);
433
+ // border-radius: 4px;
434
+ // max-width: 320px;
435
+ // background: #fff;
436
+ // }
437
+ // }
439
438
 
440
439
  .dropdown-options {
441
440
  display: flex;
442
- flex-direction: column;
443
- gap: 6px;
441
+ width: 600px;
442
+ gap: 12px;
444
443
 
445
444
  .dropdown-with-input-section {
446
445
  gap: 6px;
@@ -455,13 +454,11 @@
455
454
  .dropdown-input-section {
456
455
  border: 1px solid var(--_gray-300);
457
456
  border-radius: 4px;
458
- max-width: 320px;
459
- background: #fff;
457
+ max-width: 280px;
458
+ background: var(--_base-white);
460
459
  }
461
460
  }
462
461
  }
463
-
464
-
465
462
  }
466
463
 
467
464
  .bulkOrderPad-content-container {
@@ -482,7 +479,6 @@
482
479
  align-items: center;
483
480
  margin-top: 40px;
484
481
 
485
-
486
482
  .vertical_vector {
487
483
  height: 100%;
488
484
  width: 1px;
@@ -516,11 +512,10 @@
516
512
  width: 100%;
517
513
  height: 1px;
518
514
  background: #f0f0f0;
519
-
520
515
  }
521
516
  .title {
522
- padding-inline: 10px;
523
- }
517
+ padding-inline: 10px;
518
+ }
524
519
  }
525
520
 
526
521
  table {
@@ -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
- flex-wrap: wrap;
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
+ }
@@ -12,24 +12,47 @@
12
12
  .popup_container {
13
13
  width: 90%;
14
14
  max-width: 600px;
15
- background: #ffffff;
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: 600;
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
- outline: none;
89
- border-color: #007bff;
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: 50vh;
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: 4px;
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;
@@ -201,7 +201,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
201
201
  display: flex;
202
202
  flex-direction: column;
203
203
  // gap: 1rem; //cart template modal issue
204
- padding: 10px 16px;
204
+ // padding: 10px 16px;
205
205
  width: 100%;
206
206
  overflow-y: auto;
207
207
 
@@ -221,7 +221,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
221
221
  font-weight: 700;
222
222
  }
223
223
 
224
- input,
224
+ input[type="radio"],
225
225
  textarea {
226
226
  width: 100%;
227
227
  padding: 0.5rem 0.75rem;
@@ -270,40 +270,36 @@ $resizeActive: '[data-cms-element-resizer="true"]';
270
270
  align-items: center;
271
271
  gap: 1rem;
272
272
 
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
- padding: 0rem;
282
- border: 1px solid #d1d5db;
283
- border-radius: 0.375px;
284
-
285
- &:focus {
286
- &:focus {
287
- border-color: #2563eb;
288
- box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
289
- }
290
- }
291
-
292
- .dropdown-input-section {
293
- padding: 0.5rem;
294
-
295
- .input-field {
296
- border: none;
297
- box-shadow: none;
298
- padding: 0px;
299
- }
300
-
301
- .dropdown-menu {
302
- top: 40px;
303
- }
304
- }
305
- }
306
- }
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
+ // }
307
303
 
308
304
  .checkbox-wrapper {
309
305
  display: flex;
@@ -364,9 +360,10 @@ $resizeActive: '[data-cms-element-resizer="true"]';
364
360
 
365
361
  .delete-icon {
366
362
  cursor: pointer;
363
+ display: flex;
367
364
  svg {
368
- width: 20px;
369
- height: 20px;
365
+ width: 24px;
366
+ height: 24px;
370
367
  path {
371
368
  stroke: #6b7280; // gray-500
372
369
  }
@@ -408,14 +405,16 @@ $resizeActive: '[data-cms-element-resizer="true"]';
408
405
  .discard-btn {
409
406
  background: none;
410
407
  border: none;
411
- padding: 12px 24px;
412
- color: #374151;
413
- font-size: 0.875rem;
408
+ padding: 8px 16px;
409
+ color: var(--_gray-600);
410
+ font-size: 16px;
414
411
  cursor: pointer;
415
412
  line-height: 24px;
413
+ border-radius: 6px;
416
414
 
417
415
  &:hover {
418
- text-decoration: underline;
416
+ background-color: var(--_gray-50);
417
+ color: var(--_gray-900);
419
418
  }
420
419
  }
421
420
  }
@@ -428,8 +427,8 @@ $resizeActive: '[data-cms-element-resizer="true"]';
428
427
  .cart_products_wrapper,
429
428
  .infinite-list-container {
430
429
  flex: 1 1 auto;
431
- overflow-y: auto;
432
- // padding: 1rem;
430
+ overflow-y: auto;
431
+ // padding: 1rem;
433
432
 
434
433
  .cart_item_wrapper {
435
434
  border-radius: 4px;
@@ -498,10 +497,11 @@ $resizeActive: '[data-cms-element-resizer="true"]';
498
497
  font-size: 18px;
499
498
  font-weight: 700;
500
499
  line-height: 28px;
501
- width: 380px;
500
+ width: 380px;
502
501
  white-space: nowrap;
503
502
  overflow: hidden;
504
- text-overflow: ellipsis; }
503
+ text-overflow: ellipsis;
504
+ }
505
505
 
506
506
  .product_code {
507
507
  display: flex;
@@ -575,8 +575,8 @@ width: 380px;
575
575
  font-size: 14px;
576
576
  font-weight: 400;
577
577
  line-height: 20px;
578
- .attr_val_info_detail{
579
- b{
578
+ .attr_val_info_detail {
579
+ b {
580
580
  margin-right: 4px;
581
581
  }
582
582
  }
@@ -590,18 +590,18 @@ width: 380px;
590
590
  width: 18px;
591
591
  height: 18px;
592
592
  margin-top: 2px;
593
- transition: transform 400ms linear;
593
+ transition: transform 400ms linear;
594
594
  }
595
595
  }
596
596
  }
597
- .svg_icon svg{
597
+ .svg_icon svg {
598
598
  vertical-align: middle;
599
599
  }
600
600
  .svg_icon.down svg {
601
601
  transform: rotate(180deg);
602
- transition: transform 400ms linear;
602
+ transition: transform 400ms linear;
603
603
  // width: 20px;
604
- // height: 20px;
604
+ // height: 20px;
605
605
  }
606
606
  .customizationInfo_button {
607
607
  display: flex;
@@ -709,7 +709,6 @@ width: 380px;
709
709
  border-left: 1px solid #d0d5dd;
710
710
  max-width: 80px;
711
711
  text-align: center;
712
-
713
712
  }
714
713
  }
715
714
  }
@@ -737,30 +736,28 @@ width: 380px;
737
736
  }
738
737
  &:hover {
739
738
  svg {
740
- path {
741
- stroke: var(--_error-700);
739
+ path {
740
+ stroke: var(--_error-700);
741
+ }
742
742
  }
743
743
  }
744
- }
745
744
  }
746
745
  .svg_icon {
747
746
  display: flex;
748
747
  justify-content: center;
749
748
  align-items: center;
750
-
749
+
751
750
  &:hover {
752
751
  svg {
753
- path {
754
- stroke: var(--_gray-900);
752
+ path {
753
+ stroke: var(--_gray-900);
754
+ }
755
755
  }
756
756
  }
757
-
758
- }
759
757
  svg {
760
758
  path {
761
759
  stroke: var(--_gray-600);
762
760
  }
763
-
764
761
  }
765
762
  }
766
763
  .product_action_button {
@@ -1400,10 +1397,10 @@ width: 380px;
1400
1397
  // }
1401
1398
  // }
1402
1399
 
1403
- .cart-item-attr-grid {
1400
+ .cart-item-attr-grid {
1404
1401
  display: grid;
1405
1402
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
1406
- gap: 1rem;
1403
+ gap: 1rem;
1407
1404
  margin-top: 24px;
1408
1405
 
1409
1406
  .attr-grid-item {
@@ -1412,4 +1409,4 @@ width: 380px;
1412
1409
  border-radius: 6px;
1413
1410
  background-color: var(--_base-white);
1414
1411
  }
1415
- }
1412
+ }