@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
@@ -14,17 +14,17 @@ $link-color: #243dc6;
14
14
  line-height: 28px;
15
15
  margin-bottom: 12px;
16
16
  }
17
- .treeNode {
18
- position: relative;
19
- &::after {
20
- content: "";
21
- position: absolute;
22
- bottom: 0;
23
- left: 0;
24
- width: 100%;
25
- border-bottom:1px dotted var(--_gray-300);
17
+ .treeNode {
18
+ position: relative;
19
+ &::after {
20
+ content: "";
21
+ position: absolute;
22
+ bottom: 0;
23
+ left: 0;
24
+ width: 100%;
25
+ border-bottom: 1px dotted var(--_gray-300);
26
+ }
26
27
  }
27
- }
28
28
  .treeNode,
29
29
  .treeItem {
30
30
  position: relative;
@@ -105,3 +105,35 @@ $link-color: #243dc6;
105
105
  }
106
106
  }
107
107
  }
108
+
109
+ // customization tree
110
+ .lightbox-overlay {
111
+ background: red;
112
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
113
+ border-radius: 6px;
114
+ padding: 10px;
115
+ min-width: 200px;
116
+ height: 100px;
117
+ transition: all 0.3s ease;
118
+
119
+ &.top {
120
+ transform-origin: bottom;
121
+ }
122
+
123
+ &.bottom {
124
+ transform-origin: top;
125
+ }
126
+
127
+ .custom_attr_lb_img img {
128
+ max-width: 100%;
129
+ height: auto;
130
+ display: block;
131
+ }
132
+
133
+ .custom_attr_lb_footer {
134
+ margin-top: 8px;
135
+ font-size: 12px;
136
+ text-align: center;
137
+ color: #555;
138
+ }
139
+ }
@@ -2,10 +2,6 @@
2
2
  display: grid;
3
3
  gap: 2px;
4
4
  width: 100%;
5
- &:focus-within {
6
- border: 1px solid var(--_primary-300);
7
- outline: 2px solid var(--_primary-50);
8
- }
9
5
 
10
6
  .dropdown-disabled {
11
7
  opacity: 0.6;
@@ -22,11 +18,17 @@
22
18
  position: relative;
23
19
  display: flex;
24
20
  justify-content: space-between;
25
- padding: 8px 12px;
21
+ padding: 0px 12px;
26
22
  border: 1px solid var(--_gray-300);
23
+ background-color: var(--_base-white);
27
24
  border-radius: 6px;
28
25
  width: 100%;
29
26
  align-items: center;
27
+ height: 40px;
28
+ &:focus-within {
29
+ border: 1px solid var(--_primary-300);
30
+ outline: 2px solid var(--_primary-50);
31
+ }
30
32
  .dropdown-chips {
31
33
  display: flex;
32
34
  // flex-wrap: wrap;
@@ -73,7 +75,7 @@
73
75
  .dropdown__clear__icon,
74
76
  .dropdown__icon {
75
77
  .icon {
76
- display: flex;
78
+ display: flex;
77
79
  }
78
80
  cursor: pointer;
79
81
  .icon svg {
@@ -95,7 +97,7 @@
95
97
  right: 24px;
96
98
  background: white;
97
99
  border: 1px solid #ddd;
98
- border-radius: 4px;
100
+ border-radius: 6px;
99
101
  max-height: 200px;
100
102
  overflow-y: auto;
101
103
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
@@ -104,6 +106,13 @@
104
106
  max-height: 300px;
105
107
  padding: 4px;
106
108
 
109
+ .dropdown_menu_ul {
110
+ max-height: 200px;
111
+ display: flex;
112
+ flex-direction: column;
113
+ gap: 4px;
114
+ }
115
+
107
116
  .dropdown-opt {
108
117
  font-size: 14px;
109
118
  cursor: pointer;
@@ -124,7 +133,8 @@
124
133
  max-height: 52px;
125
134
  border-radius: 4px;
126
135
  &:hover {
127
- background-color: #f4f4f4;
136
+ background-color: var(--_primary-25);
137
+ color: var(--_primary-400);
128
138
  }
129
139
 
130
140
  .item-image {
@@ -149,7 +159,7 @@
149
159
  }
150
160
  .selected {
151
161
  background-color: var(--_primary-25);
152
- font-weight: bold;
162
+ font-weight: normal;
153
163
  color: var(--_primary-500);
154
164
  }
155
165
  }
@@ -221,18 +231,18 @@
221
231
  padding: 0;
222
232
  }
223
233
  }
224
- .dropdown-with-input-section.full-width {
225
- width: auto;
226
- .dropdown-input-section {
227
- width: 100%;
228
- border-radius: 6px;
229
-
230
- &:focus-within {
231
- border: 1px solid var(--_primary-300);
232
- outline: 2px solid var(--_primary-50);
233
- }
234
- }
235
- }
234
+ // .dropdown-with-input-section.full-width {
235
+ // width: auto;
236
+ // .dropdown-input-section {
237
+ // width: 100%;
238
+ // border-radius: 6px;
239
+
240
+ // &:focus-within {
241
+ // border: 1px solid var(--_primary-300);
242
+ // outline: 2px solid var(--_primary-50);
243
+ // }
244
+ // }
245
+ // }
236
246
 
237
247
  .icon_with_label_section {
238
248
  display: flex;
@@ -251,8 +261,8 @@
251
261
  white-space: nowrap;
252
262
  }
253
263
  .no_data_found {
254
- position: absolute;
255
- top: 50%;
256
- left: 50%;
257
- transform: translate(-50%, -50%);
264
+ padding: 24px;
265
+ text-align: center;
266
+ font-weight: 600;
267
+ font-size: 16px;
258
268
  }
@@ -72,9 +72,30 @@
72
72
  font-weight: 600;
73
73
  font-size: 14px;
74
74
  text-align: center;
75
- height: 36px;
76
- display: grid;
77
- align-items: anchor-center;
75
+ height: 40px;
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: right;
79
+ padding: 0 12px;
80
+ .products_header {
81
+ display: flex;
82
+ align-items: center;
83
+ gap: 12px;
84
+ }
85
+ .employee_product_actions_sec {
86
+ width: 50%;
87
+ display: flex;
88
+ justify-content: right;
89
+ gap: 12px;
90
+ .employee_product_action {
91
+ padding: 8px;
92
+ color: #667085;
93
+ }
94
+
95
+ .employee_product_action_save {
96
+ color: #243dc6;
97
+ }
98
+ }
78
99
  }
79
100
  .employee-content-section {
80
101
  display: flex;
@@ -246,12 +267,49 @@
246
267
  border-top: 0;
247
268
  .em_product-data {
248
269
  width: 100%;
249
- // height: 177px;
250
270
  border-bottom: 1px solid #d0d5dd;
251
271
  .em_product-info {
252
272
  height: 88px;
253
273
  border-bottom: 1px solid #d0d5dd;
254
274
  }
275
+ .selecte_variants_for_cart {
276
+ height: 68px;
277
+ overflow: auto;
278
+ cursor: pointer;
279
+ .variantOptionValues {
280
+ height: 24px;
281
+ color: #475467;
282
+ font-size: 14px;
283
+ padding: 0 8px;
284
+ margin-bottom: 1px;
285
+ display: flex;
286
+ justify-content: space-between;
287
+ align-items: center;
288
+ &:hover {
289
+ background: #e6f0ff;
290
+ .variantOptionValues_acttions {
291
+ opacity: 1;
292
+ }
293
+ }
294
+ .variantOptionValues_text {
295
+ width: calc(100% - 40px);
296
+ padding-right: 4px;
297
+ }
298
+ .variantOptionValues_acttions {
299
+ display: flex;
300
+ gap: 8px;
301
+ align-items: center;
302
+ width: 40px;
303
+ opacity: 0;
304
+ .svg_icon {
305
+ display: flex;
306
+ }
307
+ }
308
+ }
309
+ .active_vr {
310
+ background: #e6f0ff;
311
+ }
312
+ }
255
313
  .em_product-variant,
256
314
  .em_product-info {
257
315
  // height: 50%;
@@ -285,7 +343,7 @@
285
343
  }
286
344
  }
287
345
  .product-option-details {
288
- height: calc(100% - 204px);
346
+ height: calc(100% - 214px);
289
347
  width: 100%;
290
348
  overflow: auto;
291
349
  .em_p_variant_options {
@@ -309,6 +367,8 @@
309
367
  }
310
368
  .em_opt_val.selected {
311
369
  border: 1px solid #243dc6;
370
+ color: #243dc6;
371
+ font-weight: 600;
312
372
  }
313
373
  .em_opt_val.not-avl {
314
374
  position: relative;
@@ -360,50 +420,62 @@
360
420
  }
361
421
  }
362
422
  .product-qty-section {
363
- height: 46px;
364
- position: relative;
423
+ height: 56.74px;
424
+ display: flex;
425
+ gap: 8px;
426
+ padding: 8px;
427
+ border-top: 1px solid #dde0e6;
365
428
  input {
366
429
  height: 100%;
367
- width: 100%;
430
+ width: 50%;
368
431
  border: 1px solid #d0d5dd;
369
- /* border-radius: 4px; */
370
- border-left: 0;
371
- border-right: 0;
372
- padding: 0 64px;
432
+ border-radius: 4px;
373
433
  text-align: center;
434
+ font-weight: 600;
435
+ font-size: 16px;
436
+ color: #101828;
374
437
  }
375
- .qty-action {
376
- position: absolute;
377
- top: 0;
438
+ .add_to_cart_btn_for_employee_bulk {
378
439
  height: 100%;
379
- width: 64px;
380
- display: grid;
381
- // align-items: anchor-center;
382
- // text-align: center;
383
- background: #e6f0ff;
384
- cursor: pointer;
385
- &:hover {
386
- background: #c3dbff;
387
- }
388
-
389
- .svg_icon {
390
- display: flex;
391
- align-items: center;
392
- justify-self: center;
393
- cursor: pointer;
394
- }
395
- }
396
- .qty-action.decrease {
397
- left: 0;
398
- }
399
- .qty-action.increase {
400
- right: 1px;
401
- }
402
- .qty_action_disabled {
403
- pointer-events: none;
404
- opacity: 0.8;
405
- cursor: default;
440
+ width: 50%;
441
+ background: #243dc6;
442
+ border-radius: 4px;
443
+ color: #fff;
444
+ font-weight: 600;
445
+ font-size: 16px;
406
446
  }
447
+ // .qty-action {
448
+ // position: absolute;
449
+ // top: 0;
450
+ // height: 100%;
451
+ // width: 64px;
452
+ // display: grid;
453
+ // // align-items: anchor-center;
454
+ // // text-align: center;
455
+ // background: #e6f0ff;
456
+ // cursor: pointer;
457
+ // &:hover {
458
+ // background: #c3dbff;
459
+ // }
460
+
461
+ // .svg_icon {
462
+ // display: flex;
463
+ // align-items: center;
464
+ // justify-self: center;
465
+ // cursor: pointer;
466
+ // }
467
+ // }
468
+ // .qty-action.decrease {
469
+ // left: 0;
470
+ // }
471
+ // .qty-action.increase {
472
+ // right: 1px;
473
+ // }
474
+ // .qty_action_disabled {
475
+ // pointer-events: none;
476
+ // opacity: 0.8;
477
+ // cursor: default;
478
+ // }
407
479
  }
408
480
  .invalid_qty {
409
481
  border: #f51605 1px solid !important;
@@ -417,13 +489,14 @@
417
489
  }
418
490
  }
419
491
 
420
- .heade-body {
421
- position: absolute;
422
- right: 84px;
492
+ .right_col {
493
+ display: flex;
494
+ align-items: center;
495
+ gap: 12px;
423
496
  .employee_bulk_order_header {
424
497
  display: flex;
425
498
  justify-self: end;
426
- gap: 16px;
499
+ gap: 24px;
427
500
  .single_payment_action {
428
501
  display: flex;
429
502
  align-items: center;
@@ -449,7 +522,106 @@
449
522
  height: 24px;
450
523
  background: #d0d5dd;
451
524
  position: absolute;
452
- right: -8px;
525
+ right: -12px;
526
+ }
527
+
528
+ .single_checkout_sec_opt {
529
+ display: flex;
530
+ gap: 8px;
531
+ }
532
+
533
+ .disabled {
534
+ opacity: 0.4;
535
+ }
536
+ }
537
+ .emp_options_wrapper {
538
+ display: flex;
539
+ align-items: center;
540
+ .user_icon {
541
+ width: 40px;
542
+ height: 40px;
543
+ display: flex;
544
+ justify-content: center;
545
+ align-items: center;
546
+ border-radius: 4px;
547
+ cursor: pointer;
548
+ &.active {
549
+ background-color: var(--_gray-200);
550
+ }
551
+ & > span {
552
+ display: flex;
553
+ }
554
+ &:hover {
555
+ background-color: var(--_gray-200);
556
+ }
557
+ }
558
+ .emp_options {
559
+ position: absolute;
560
+ top: 65px;
561
+ width: 200px;
562
+ background-color: var(--_base-white);
563
+ border: 1px solid var(--_gray-200);
564
+ border-radius: 4px;
565
+ .emp_options_header {
566
+ padding: 12px 16px;
567
+ font-size: 14px;
568
+ font-weight: 600;
569
+ color: var(--_gray-600);
570
+ border-bottom: 1px solid var(--_gray-200);
571
+ }
572
+ .emp_options_list {
573
+ .emp_options_list_item {
574
+ padding: 12px 16px;
575
+ display: flex;
576
+ justify-content: space-between;
577
+ align-items: center;
578
+ &:hover {
579
+ background-color: var(--_primary-25);
580
+ color: var(--_primary-400);
581
+ }
582
+ }
583
+ }
584
+ .emp_options_footer {
585
+ display: flex;
586
+ border-top: 1px solid var(--_gray-200);
587
+ & > div {
588
+ flex-basis: 50%;
589
+ display: flex;
590
+ justify-content: center;
591
+ align-items: center;
592
+ padding: 16px;
593
+ cursor: pointer;
594
+ &:hover {
595
+ background-color: var(--_primary-25);
596
+ svg path {
597
+ stroke: var(--_primary-400);
598
+ }
599
+ }
600
+ }
601
+ }
602
+ }
603
+ }
604
+ .emp_review_cart_btn {
605
+ padding: 8px 16px;
606
+ border: 1px solid var(--_gray-300);
607
+ border-radius: 6px;
608
+ color: var(--_gray-700);
609
+ cursor: pointer;
610
+ &:hover {
611
+ background-color: var(--_gray-50);
612
+ }
613
+ }
614
+ .emp_discard_btn {
615
+ padding: 8px 16px;
616
+ border-radius: 6px;
617
+ color: var(--_gray-700);
618
+ cursor: pointer;
619
+ &.disabled {
620
+ pointer-events: none;
621
+ opacity: 0.8;
622
+ }
623
+ &:hover {
624
+ background-color: var(--_gray-50);
453
625
  }
454
626
  }
455
627
  .action_item {
@@ -1,84 +1,84 @@
1
1
  .empty_template {
2
- display: flex;
3
- flex-direction: column;
4
- justify-content: center;
5
- align-items: center;
6
- height: 100%;
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ align-items: center;
6
+ height: 100%;
7
+ width: 100%;
7
8
 
8
- h3 {
9
+ h3 {
9
10
  font-size: 16px;
10
11
  color: var(--_gray-900);
11
12
  font-weight: 600;
12
13
  margin-bottom: 10px;
13
- }
14
- p {
14
+ }
15
+ p {
15
16
  font-size: 12px;
16
17
  color: var(--_gray-600);
17
- }
18
+ }
18
19
  }
19
20
 
20
21
  .empty_cart_wrapper {
21
- display: flex;
22
- flex-direction: column;
23
- align-items: center;
24
- justify-content: center;
25
- width: 100%;
26
- gap: 6px;
27
- margin-top: 24px;
28
- img {
29
- max-width: 100px;
30
- max-height: 100px;
31
- }
22
+ display: flex;
23
+ flex-direction: column;
24
+ align-items: center;
25
+ justify-content: center;
26
+ width: 100%;
27
+ gap: 6px;
28
+ margin-top: 24px;
29
+ img {
30
+ max-width: 100px;
31
+ max-height: 100px;
32
+ }
32
33
 
33
- .empty_msg_title {
34
- font-family: "Lato";
35
- font-weight: 700;
36
- font-size: 24px;
37
- color: var(--_gray-900);
38
- line-height: 32px;
39
- margin-top: 24px;
40
- }
34
+ .empty_msg_title {
35
+ font-family: "Lato";
36
+ font-weight: 700;
37
+ font-size: 24px;
38
+ color: var(--_gray-900);
39
+ line-height: 32px;
40
+ margin-top: 24px;
41
+ }
41
42
 
42
- .empty_msg_desc {
43
- font-family: "Lato";
44
- font-size: 14px;
45
- line-height: 20px;
46
- color: var(--_gray-900);
47
- }
48
- .emtpy_cart_btn {
43
+ .empty_msg_desc {
44
+ font-family: "Lato";
45
+ font-size: 14px;
46
+ line-height: 20px;
47
+ color: var(--_gray-900);
48
+ }
49
+ .emtpy_cart_btn {
50
+ display: flex;
51
+ gap: 12px;
52
+ margin-top: 24px;
53
+ .empty_crt_btn {
54
+ padding: 12px 24px;
55
+ border-radius: 6px;
56
+ background-color: var(--_primary-400);
57
+ font-weight: 600px;
49
58
  display: flex;
50
- gap: 12px;
51
- margin-top: 24px;
52
- .empty_crt_btn {
53
- padding: 12px 24px;
54
- border-radius: 6px;
55
- background-color: var(--_primary-400);
56
- font-weight: 600px;
57
- display: flex;
58
- align-items: center;
59
- gap: 8px;
60
- &:hover {
61
- background-color: var(--_primary-500);
62
- }
63
- .label {
64
- color: var(--_base-white);
65
- font-size: 16px;
66
- }
67
- svg path {
68
- stroke: var(--_base-white);
69
- }
59
+ align-items: center;
60
+ gap: 8px;
61
+ &:hover {
62
+ background-color: var(--_primary-500);
70
63
  }
71
- .empty_wl_btn {
72
- padding: 12px 24px;
73
- border-radius: 6px;
74
- background-color: var(--_base-white);
75
- color: var(--_primary-400);
76
- font-weight: 500;
64
+ .label {
65
+ color: var(--_base-white);
77
66
  font-size: 16px;
78
- &:hover {
79
- background-color: var(--_gray-50);
80
- }
81
67
  }
82
-
68
+ svg path {
69
+ stroke: var(--_base-white);
70
+ }
71
+ }
72
+ .empty_wl_btn {
73
+ padding: 12px 24px;
74
+ border-radius: 6px;
75
+ background-color: var(--_base-white);
76
+ color: var(--_primary-400);
77
+ font-weight: 500;
78
+ font-size: 16px;
79
+ &:hover {
80
+ background-color: var(--_gray-50);
81
+ }
83
82
  }
84
- }
83
+ }
84
+ }