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

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.
@@ -433,6 +433,7 @@
433
433
  border-radius: 4px;
434
434
  max-width: 320px;
435
435
  background: #fff;
436
+
436
437
  }
437
438
  }
438
439
 
@@ -481,6 +482,7 @@
481
482
  align-items: center;
482
483
  margin-top: 40px;
483
484
 
485
+
484
486
  .vertical_vector {
485
487
  height: 100%;
486
488
  width: 1px;
@@ -517,7 +519,7 @@
517
519
 
518
520
  }
519
521
  .title {
520
- padding: 6px;
522
+ padding-inline: 10px;
521
523
  }
522
524
  }
523
525
 
@@ -314,8 +314,8 @@ $resizeActive: '[data-cms-element-resizer="true"]';
314
314
  font-weight: var(--_ctm-dn-sy-bn-dn-dt-se-ft-wt);
315
315
  line-height: var(--_ctm-dn-sy-bn-dn-dt-se-le-ht);
316
316
  letter-spacing: var(--_ctm-dn-sy-bn-dn-dt-se-lr-sg);
317
- box-shadow: var(--_ctm-dn-sy-bn-dn-dt-se-sw-ae) var(--_ctm-dn-sy-bn-dn-dt-se-sw-br)
318
- var(--_ctm-dn-sy-bn-dn-dt-se-sw-sd) var(--_ctm-dn-sy-bn-dn-dt-se-sw-cr);
317
+ box-shadow: var(--_ctm-dn-sy-bn-dn-dt-se-sw-ae) var(--_ctm-dn-sy-bn-dn-dt-se-sw-br);
318
+ // var(--_ctm-dn-sy-bn-dn-dt-se-sw-sd) var(--_ctm-dn-sy-bn-dn-dt-se-sw-cr);
319
319
  text-align: var(--_ctm-dn-sy-bn-dn-dt-se-tt-an);
320
320
  text-decoration: var(--_ctm-dn-sy-bn-dn-dt-se-ue);
321
321
  color: var(--_primary-400);
@@ -428,3 +428,4 @@
428
428
  background: #fff;
429
429
  }
430
430
  }
431
+
@@ -1,8 +1,8 @@
1
1
  .dropdown-with-input-section {
2
2
  display: grid;
3
3
  gap: 2px;
4
- width: max-content;
5
- &:focus-within {
4
+ width: 100%;
5
+ &:focus-within {
6
6
  border: 1px solid var(--_primary-300);
7
7
  outline: 2px solid var(--_primary-50);
8
8
  }
@@ -72,25 +72,9 @@
72
72
  font-weight: 600;
73
73
  font-size: 14px;
74
74
  text-align: center;
75
- height: 40px;
76
- display: flex;
77
- align-items: center;
78
- justify-content: right;
79
- padding: 0 12px;
80
- .employee_product_actions_sec {
81
- width: 50%;
82
- display: flex;
83
- justify-content: right;
84
- gap: 12px;
85
- .employee_product_action {
86
- padding: 8px;
87
- color: #667085;
88
- }
89
-
90
- .employee_product_action_save {
91
- color: #243dc6;
92
- }
93
- }
75
+ height: 36px;
76
+ display: grid;
77
+ align-items: anchor-center;
94
78
  }
95
79
  .employee-content-section {
96
80
  display: flex;
@@ -262,49 +246,12 @@
262
246
  border-top: 0;
263
247
  .em_product-data {
264
248
  width: 100%;
249
+ // height: 177px;
265
250
  border-bottom: 1px solid #d0d5dd;
266
251
  .em_product-info {
267
252
  height: 88px;
268
253
  border-bottom: 1px solid #d0d5dd;
269
254
  }
270
- .selecte_variants_for_cart {
271
- height: 68px;
272
- overflow: auto;
273
- cursor: pointer;
274
- .variantOptionValues {
275
- height: 24px;
276
- color: #475467;
277
- font-size: 14px;
278
- padding: 0 8px;
279
- margin-bottom: 1px;
280
- display: flex;
281
- justify-content: space-between;
282
- align-items: center;
283
- &:hover {
284
- background: #e6f0ff;
285
- .variantOptionValues_acttions {
286
- opacity: 1;
287
- }
288
- }
289
- .variantOptionValues_text {
290
- width: calc(100% - 40px);
291
- padding-right: 4px;
292
- }
293
- .variantOptionValues_acttions {
294
- display: flex;
295
- gap: 8px;
296
- align-items: center;
297
- width: 40px;
298
- opacity: 0;
299
- .svg_icon {
300
- display: flex;
301
- }
302
- }
303
- }
304
- .active_vr {
305
- background: #e6f0ff;
306
- }
307
- }
308
255
  .em_product-variant,
309
256
  .em_product-info {
310
257
  // height: 50%;
@@ -338,7 +285,7 @@
338
285
  }
339
286
  }
340
287
  .product-option-details {
341
- height: calc(100% - 214px);
288
+ height: calc(100% - 204px);
342
289
  width: 100%;
343
290
  overflow: auto;
344
291
  .em_p_variant_options {
@@ -362,8 +309,6 @@
362
309
  }
363
310
  .em_opt_val.selected {
364
311
  border: 1px solid #243dc6;
365
- color: #243dc6;
366
- font-weight: 600;
367
312
  }
368
313
  .em_opt_val.not-avl {
369
314
  position: relative;
@@ -415,62 +360,50 @@
415
360
  }
416
361
  }
417
362
  .product-qty-section {
418
- height: 56.74px;
419
- display: flex;
420
- gap: 8px;
421
- padding: 8px;
422
- border-top: 1px solid #dde0e6;
363
+ height: 46px;
364
+ position: relative;
423
365
  input {
424
366
  height: 100%;
425
- width: 50%;
367
+ width: 100%;
426
368
  border: 1px solid #d0d5dd;
427
- border-radius: 4px;
369
+ /* border-radius: 4px; */
370
+ border-left: 0;
371
+ border-right: 0;
372
+ padding: 0 64px;
428
373
  text-align: center;
429
- font-weight: 600;
430
- font-size: 16px;
431
- color: #101828;
432
374
  }
433
- .add_to_cart_btn_for_employee_bulk {
375
+ .qty-action {
376
+ position: absolute;
377
+ top: 0;
434
378
  height: 100%;
435
- width: 50%;
436
- background: #243dc6;
437
- border-radius: 4px;
438
- color: #fff;
439
- font-weight: 600;
440
- font-size: 16px;
441
- }
442
- // .qty-action {
443
- // position: absolute;
444
- // top: 0;
445
- // height: 100%;
446
- // width: 64px;
447
- // display: grid;
448
- // // align-items: anchor-center;
449
- // // text-align: center;
450
- // background: #e6f0ff;
451
- // cursor: pointer;
452
- // &:hover {
453
- // background: #c3dbff;
454
- // }
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
+ }
455
388
 
456
- // .svg_icon {
457
- // display: flex;
458
- // align-items: center;
459
- // justify-self: center;
460
- // cursor: pointer;
461
- // }
462
- // }
463
- // .qty-action.decrease {
464
- // left: 0;
465
- // }
466
- // .qty-action.increase {
467
- // right: 1px;
468
- // }
469
- // .qty_action_disabled {
470
- // pointer-events: none;
471
- // opacity: 0.8;
472
- // cursor: default;
473
- // }
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;
406
+ }
474
407
  }
475
408
  .invalid_qty {
476
409
  border: #f51605 1px solid !important;
@@ -518,15 +451,6 @@
518
451
  position: absolute;
519
452
  right: -8px;
520
453
  }
521
-
522
- .single_checkout_sec_opt {
523
- display: flex;
524
- gap: 8px;
525
- }
526
-
527
- .disabled {
528
- opacity: 0.4;
529
- }
530
454
  }
531
455
  .action_item {
532
456
  cursor: pointer;
package/dist/loader.scss CHANGED
@@ -35,58 +35,3 @@
35
35
  }
36
36
  }
37
37
  }
38
-
39
-
40
- // fetch data loader
41
- .fetch-data-loader {
42
- display: flex;
43
- flex-direction: column;
44
- gap: 6px;
45
- background-color: var(--_base-white);
46
- border-radius: 50%;
47
- padding: 16px;
48
- width: 60px;
49
- height: 60px;
50
- border: 1px solid var(--_gray-200);
51
- margin: 0 auto;
52
- }
53
-
54
- .line {
55
- width: 0%;
56
- height: 8px;
57
- background-color: var(--_primary-400);
58
- border-radius: 4px;
59
- animation: expand-line 1.2s ease-in-out infinite;
60
- }
61
-
62
- .line:nth-child(1) {
63
- animation-delay: 0s;
64
- }
65
-
66
- .line:nth-child(2) {
67
- animation-delay: 0.3s;
68
- }
69
-
70
- .line:nth-child(3) {
71
- animation-delay: 0.6s;
72
- }
73
-
74
- .line:nth-child(4) {
75
- animation-delay: 0.9s;
76
- }
77
-
78
- @keyframes expand-line {
79
- 0% {
80
- width: 0%;
81
- opacity: 0.2;
82
- }
83
- 50% {
84
- width: 100%;
85
- opacity: 1;
86
- }
87
- 100% {
88
- width: 0%;
89
- opacity: 0.2;
90
- }
91
- }
92
-
@@ -12,43 +12,42 @@ $overflow: (
12
12
  maxHeight: "data-max-height",
13
13
  displayScrollbar: "data-scrollbar",
14
14
  ),
15
- directions: (
16
- vertical: (
17
- property: "overflow-y",
18
- value: "scroll",
19
- ),
20
- horizontal: (
21
- property: "overflow-x",
22
- value: "scroll",
23
- ),
24
- ),
15
+ );
16
+
17
+ $overflowValues: (
18
+ scroll: scroll,
19
+ hidden: hidden,
20
+ visible: visible,
21
+ // auto: auto,
22
+ // clip: clip,
25
23
  );
26
24
 
27
25
  @mixin FlexOverflowModuleStyles() {
28
26
  $cls: map.get($overflow, class);
29
27
  $attrs: map.get($overflow, attributes);
30
- $dirs: map.get($overflow, directions);
31
28
 
32
29
  :is(.#{map.get($cls, scrollable)}) {
33
- // overflow-x / overflow-y per direction
34
- @each $key, $config in $dirs {
35
- $prop: map.get($config, property);
36
- $val: map.get($config, value);
37
- $attr: map.get($attrs, $key);
38
-
39
- &[#{$attr}="#{$val}"] {
40
- #{$prop}: #{$val};
30
+ // Loop through both directions
31
+ @each $dir in (vertical, horizontal) {
32
+ $prop: if($dir == vertical, overflow-y, overflow-x);
33
+ $attr: map.get($attrs, $dir);
34
+
35
+ // For each possible overflow value (scroll, auto, hidden, etc.)
36
+ @each $dataVal, $cssVal in $overflowValues {
37
+ &[#{$attr}="#{$dataVal}"] {
38
+ #{$prop}: #{$cssVal};
39
+ }
41
40
  }
42
41
  }
43
42
 
44
- // max-height only when vertical scroll is active
43
+ // Apply max-height if vertical is scroll and max-height is set
45
44
  &[#{map.get($attrs, vertical)}="scroll"] {
46
45
  &[#{map.get($attrs, maxHeight)}] {
47
- max-height: var(--cms-max-height);
46
+ max-height: var(--cms-max-height) !important;
48
47
  }
49
48
  }
50
49
 
51
- // scrollbar styling only when data-scrollbar=true
50
+ // Scrollbar styles only if enabled
52
51
  &[#{map.get($attrs, displayScrollbar)}="true"] {
53
52
  &::-webkit-scrollbar {
54
53
  width: var(--cms-scrollbar-width, 8px);
@@ -291,8 +291,7 @@
291
291
  var(--_ctm-tab-dn-gy-wt-se-cr, var(--_ctm-dn-gy-wt-se-cr))
292
292
  );
293
293
 
294
- font-family:
295
- var(
294
+ font-family: var(
296
295
  --_ctm-mob-dn-gy-wt-se-ft-fy,
297
296
  var(--_ctm-tab-dn-gy-wt-se-ft-fy, var(--_ctm-dn-gy-wt-se-ft-fy))
298
297
  ),
@@ -340,8 +339,7 @@
340
339
  var(--_ctm-tab-dn-gy-wt-se-cr-dc, var(--_ctm-dn-gy-wt-se-cr-dc))
341
340
  );
342
341
 
343
- font-family:
344
- var(
342
+ font-family: var(
345
343
  --_ctm-mob-dn-gy-wt-se-ft-fy-dc,
346
344
  var(--_ctm-tab-dn-gy-wt-se-ft-fy-dc, var(--_ctm-dn-gy-wt-se-ft-fy-dc))
347
345
  ),
@@ -1104,8 +1102,7 @@
1104
1102
 
1105
1103
  & h3 {
1106
1104
  color: var(--_ctm-mob-dn-im-se-cr, var(--_ctm-tab-dn-im-se-cr, var(--_ctm-dn-im-se-cr)));
1107
- font-family:
1108
- var(
1105
+ font-family: var(
1109
1106
  --_ctm-mob-dn-im-se-ft-fy,
1110
1107
  var(--_ctm-tab-dn-im-se-ft-fy, var(--_ctm-dn-im-se-ft-fy))
1111
1108
  ),
@@ -1145,8 +1142,7 @@
1145
1142
  --_ctm-mob-dn-im-se-cr-dc,
1146
1143
  var(--_ctm-tab-dn-im-se-cr-dc, var(--_ctm-dn-im-se-cr-dc))
1147
1144
  );
1148
- font-family:
1149
- var(
1145
+ font-family: var(
1150
1146
  --_ctm-mob-dn-im-se-ft-fy-dc,
1151
1147
  var(--_ctm-tab-dn-im-se-ft-fy-dc, var(--_ctm-dn-im-se-ft-fy-dc))
1152
1148
  ),
package/dist/widget.scss CHANGED
@@ -117,4 +117,3 @@
117
117
  @use "./cartAttributes.scss";
118
118
  @use "./language-selector.scss";
119
119
  @use "./loader.scss";
120
- @use "./empty-states.scss"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.3.37",
3
+ "version": "0.3.38",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {