@sc-360-v2/storefront-cms-library 0.3.38 → 0.3.39

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.
@@ -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
+ }
@@ -1,5 +1,7 @@
1
1
  @use "sass:list";
2
2
  @use "sass:map";
3
+ @use "sass:meta";
4
+ @use "sass:string";
3
5
 
4
6
  // $breakPoints: (
5
7
  // desktop: (
@@ -36,7 +38,7 @@ $breakPointsV2: (
36
38
  );
37
39
 
38
40
  @function safe-map-get($map, $key) {
39
- @if $map != null and type-of($map) == "map" and map-has-key($map, $key) {
41
+ @if $map != null and meta.type-of($map) == "map" and map.has-key($map, $key) {
40
42
  @return map.get($map, $key);
41
43
  }
42
44
  @return null;
@@ -91,14 +93,14 @@ $breakPointsV2: (
91
93
  mobile: $mobile,
92
94
  );
93
95
  @if ($laptop != "optional") {
94
- $list: map-merge(
96
+ $list: map.merge(
95
97
  $list,
96
98
  (
97
99
  laptop: $laptop,
98
100
  )
99
101
  );
100
102
  } @else {
101
- $list: map-merge(
103
+ $list: map.merge(
102
104
  $list,
103
105
  (
104
106
  laptop: $desktop,
@@ -131,7 +133,7 @@ $breakPointsV2: (
131
133
  justify-content: space-between,
132
134
  gap: var(--_default-row-gap) var(--_default-col-gap),
133
135
  );
134
- $css: map-merge($css, $props);
136
+ $css: map.merge($css, $props);
135
137
  @return $css;
136
138
  }
137
139
 
@@ -197,7 +199,7 @@ $breakPointsV2: (
197
199
 
198
200
  @function prepareMediaVariable($full-var, $common: inherit) {
199
201
  $prefix: "--_ctm-";
200
- $core-name: str-slice($full-var, str-length($prefix) + 1); // removes --_ctm-
202
+ $core-name: string.slice($full-var, string.length($prefix) + 1); // removes --_ctm-
201
203
 
202
204
  $default-var: var(#{$full-var}, #{$common});
203
205
  $tab-var: var(#{$prefix}tab-#{$core-name}, #{$default-var});