@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
@@ -1,8 +1,6 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
- @function ctm-var($base) {
4
- @return unquote("var(--_ctm-mob-#{$base}, var(--_ctm-tab-#{$base}, var(--_ctm-#{$base})))");
5
- }
3
+ @use "./functions.scss" as *;
6
4
 
7
5
  [data-div-type="element"] {
8
6
  &[data-element-type="itemStock"] {
@@ -37,15 +35,15 @@
37
35
  .item__stock__heading {
38
36
  position: relative;
39
37
  .item__stock__text {
40
- font-family: ctm-var(dn-im-sk-tt-ft-fy);
41
- font-size: ctm-var(dn-im-sk-tt-ft-se);
42
- color: ctm-var(dn-im-sk-tt-cr);
43
- font-weight: ctm-var(dn-im-sk-tt-ft-wt);
44
- font-style: ctm-var(dn-im-sk-tt-ft-se-ic);
45
- text-decoration: ctm-var(dn-im-sk-tt-ue);
46
- text-align: ctm-var(dn-im-sk-tt-tt-an);
47
- letter-spacing: ctm-var(dn-im-sk-tt-lr-sg);
48
- line-height: ctm-var(dn-im-sk-tt-le-ht);
38
+ font-family: prepareMediaVariable(dn-im-sk-tt-ft-fy);
39
+ font-size: prepareMediaVariable(dn-im-sk-tt-ft-se);
40
+ color: prepareMediaVariable(dn-im-sk-tt-cr);
41
+ font-weight: prepareMediaVariable(dn-im-sk-tt-ft-wt);
42
+ font-style: prepareMediaVariable(dn-im-sk-tt-ft-se-ic);
43
+ text-decoration: prepareMediaVariable(dn-im-sk-tt-ue);
44
+ text-align: prepareMediaVariable(dn-im-sk-tt-tt-an);
45
+ letter-spacing: prepareMediaVariable(dn-im-sk-tt-lr-sg);
46
+ line-height: prepareMediaVariable(dn-im-sk-tt-le-ht);
49
47
  }
50
48
  .stock_message_conatainer {
51
49
  display: flex;
@@ -53,24 +51,25 @@
53
51
  align-items: center;
54
52
  gap: 4px;
55
53
  mix-blend-mode: multiply;
56
- background-color: ctm-var(dn-im-sk-tt-bd-cr);
57
- border-width: ctm-var(dn-im-sk-tt-br-wh);
58
- border-color: ctm-var(dn-im-sk-tt-br-cr);
59
- border-style: ctm-var(dn-im-sk-tt-br-se);
60
- border-radius: ctm-var(dn-im-sk-tt-br-rs);
61
- box-shadow: ctm-var(dn-im-sk-tt-sw-ae) ctm-var(dn-im-sk-tt-sw-br)
62
- ctm-var(dn-im-sk-tt-sw-sd) ctm-var(dn-im-sk-tt-sw-cr);
54
+ background-color: prepareMediaVariable(dn-im-sk-tt-bd-cr);
55
+ border-width: prepareMediaVariable(dn-im-sk-tt-br-wh);
56
+ border-color: prepareMediaVariable(dn-im-sk-tt-br-cr);
57
+ border-style: prepareMediaVariable(dn-im-sk-tt-br-se);
58
+ border-radius: prepareMediaVariable(dn-im-sk-tt-br-rs);
59
+ box-shadow: prepareMediaVariable(dn-im-sk-tt-sw-ae)
60
+ prepareMediaVariable(dn-im-sk-tt-sw-br) prepareMediaVariable(dn-im-sk-tt-sw-sd)
61
+ prepareMediaVariable(dn-im-sk-tt-sw-cr);
63
62
 
64
63
  .stock_messages {
65
- font-family: ctm-var(dn-im-sk-tt-ft-fy);
66
- font-size: ctm-var(dn-im-sk-tt-ft-se);
67
- color: ctm-var(dn-im-sk-tt-cr);
68
- font-weight: ctm-var(dn-im-sk-tt-ft-wt);
69
- font-style: ctm-var(dn-im-sk-tt-ft-se-ic);
70
- text-decoration: ctm-var(dn-im-sk-tt-ue);
71
- text-align: ctm-var(dn-im-sk-tt-tt-an);
72
- letter-spacing: ctm-var(dn-im-sk-tt-lr-sg);
73
- line-height: ctm-var(dn-im-sk-tt-le-ht);
64
+ font-family: prepareMediaVariable(dn-im-sk-tt-ft-fy);
65
+ font-size: prepareMediaVariable(dn-im-sk-tt-ft-se);
66
+ color: prepareMediaVariable(dn-im-sk-tt-cr);
67
+ font-weight: prepareMediaVariable(dn-im-sk-tt-ft-wt);
68
+ font-style: prepareMediaVariable(dn-im-sk-tt-ft-se-ic);
69
+ text-decoration: prepareMediaVariable(dn-im-sk-tt-ue);
70
+ text-align: prepareMediaVariable(dn-im-sk-tt-tt-an);
71
+ letter-spacing: prepareMediaVariable(dn-im-sk-tt-lr-sg);
72
+ line-height: prepareMediaVariable(dn-im-sk-tt-le-ht);
74
73
  }
75
74
  }
76
75
  }
package/dist/menu-v2.scss CHANGED
@@ -74,10 +74,10 @@ $defaultValues: (
74
74
 
75
75
  [data-div-type="element"] {
76
76
  &[data-element-type="menu-v2"] {
77
- @include prepareMediaQueries($defaultValues);
78
77
  width: calc(1% * #{prepareMediaVariable(--_ctm-ele-nw-wh-vl)});
79
- // var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl, auto)))
80
78
  margin: prepareMediaVariable(--_ctm-lt-mn);
79
+ @include prepareMediaQueries($defaultValues);
80
+ // var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl, auto)))
81
81
 
82
82
  & > div {
83
83
  &.wrapper {
package/dist/modal.scss CHANGED
@@ -109,14 +109,13 @@ $active_btn_text_color: #fff;
109
109
  justify-content: center;
110
110
  border-radius: 4px;
111
111
  span {
112
- display: flex;
113
- svg {
114
- width: 20px;
115
- height: 20px;
116
- }
112
+ display: flex;
113
+ svg {
114
+ width: 20px;
115
+ height: 20px;
116
+ }
117
117
  }
118
118
 
119
-
120
119
  &:hover {
121
120
  background-color: var(--_gray-100);
122
121
  }
@@ -227,6 +226,8 @@ $z-index-min-cart: calc(
227
226
  $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
228
227
 
229
228
  .modalV2-main {
229
+ position: fixed;
230
+ z-index: 30;
230
231
  .modalV2-wrapper {
231
232
  overflow: hidden !important;
232
233
  position: fixed;
@@ -249,6 +250,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
249
250
  .modal-body {
250
251
  height: auto;
251
252
  display: flex;
253
+ flex-direction: column;
252
254
  width: 100%;
253
255
  flex: 1 1 auto;
254
256
  overflow-y: auto;
@@ -256,31 +258,63 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
256
258
  .wishlist-modal {
257
259
  display: flex;
258
260
  flex-direction: column;
259
- padding: 16px;
260
261
  width: 100%;
261
262
  .wishlist-modal-section {
263
+ padding: 16px 24px 24px 24px;
262
264
  gap: 16px !important;
263
- overflow: scroll;
264
- padding: 12px !important;
265
265
  overflow-x: hidden;
266
266
  display: flex;
267
267
  flex-direction: column;
268
+ input[type="text"] {
269
+ height: 40px;
270
+ border: 1px solid var(--_gray-300);
271
+ border-radius: 6px;
272
+ padding-inline: 16px;
273
+ }
274
+ }
275
+ }
276
+ .action-buttons {
277
+ display: flex;
278
+ gap: 1rem;
279
+ align-items: center;
280
+ justify-content: flex-end;
281
+ flex: 1 1 auto;
282
+ padding: 16px 24px;
283
+ border-top: 1px solid var(--_gray-200);
284
+ gap: 12px;
285
+ button {
286
+ padding: 12px 16px;
287
+ border-radius: 6px;
268
288
  }
269
- .action-buttons {
289
+ .create-btn {
270
290
  display: flex;
271
- gap: 1rem;
272
- align-items: flex-end;
273
- justify-content: flex-end;
274
- flex: 1 1 auto;
275
- padding: 10px 16px;
276
- gap: 0px;
277
- .create-btn {
278
- display: flex;
279
- height: 44px;
280
- padding: 8px 14px;
281
- justify-content: center;
282
- align-items: center;
283
- gap: 8px;
291
+ justify-content: center;
292
+ align-items: center;
293
+ gap: 8px;
294
+ background-color: var(--_primary-400);
295
+ color: var(--_base-white);
296
+ &.disabled {
297
+ opacity: 0.5;
298
+ pointer-events: none;
299
+ }
300
+ .loader {
301
+ animation: rotate-icon 1s linear infinite;
302
+ display: inline-block;
303
+ transform-origin: center;
304
+
305
+ svg path {
306
+ stroke: var(--_primary-200);
307
+ }
308
+ }
309
+
310
+ &:hover {
311
+ background-color: var(--_primary-500);
312
+ }
313
+ }
314
+ .discard-btn {
315
+ &:hover {
316
+ background-color: var(--_gray-50);
317
+ color: var(--_gray-900);
284
318
  }
285
319
  }
286
320
  }
@@ -302,7 +336,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
302
336
  // max-height: 100vh;
303
337
  // max-width: 1200px;
304
338
  max-height: calc(100vw - 24px);
305
- max-width: calc(100vw - 24px);
339
+ max-width: calc(100vw - 24px);
306
340
 
307
341
  .product-list {
308
342
  flex: 1;
@@ -346,61 +380,62 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
346
380
  padding: 16px;
347
381
 
348
382
  .left-col {
349
-
350
- .title {
351
- color: var(--_gray-900, #101828);
352
- font-size: 16px;
353
- font-weight: 700;
354
- line-height: 24px;
355
- text-transform: capitalize;
356
- display: flex;
357
- gap: 10px;
358
- align-items: center;
359
- // font-size: $font-size-lg;
360
- // font-weight: 600;
361
- // display: flex;
362
- // align-items: center;
363
- // gap: 6px;
364
- // color: var(--_gray-900);
365
- // line-height: 24px;
366
-
367
- .modal_heading_icon {
368
- width: 36px;
369
- height: 36px;
383
+ .title {
384
+ color: var(--_gray-900, #101828);
385
+ font-size: 16px;
386
+ font-weight: 700;
387
+ line-height: 24px;
388
+ text-transform: capitalize;
370
389
  display: flex;
390
+ gap: 10px;
371
391
  align-items: center;
372
- justify-content: center;
373
-
374
- svg {
375
- width: 20px;
376
- height: 20px;
392
+ // font-size: $font-size-lg;
393
+ // font-weight: 600;
394
+ // display: flex;
395
+ // align-items: center;
396
+ // gap: 6px;
397
+ // color: var(--_gray-900);
398
+ // line-height: 24px;
399
+
400
+ .modal_heading_icon {
401
+ width: 36px;
402
+ height: 36px;
403
+ display: flex;
404
+ align-items: center;
405
+ justify-content: center;
406
+
407
+ svg {
408
+ width: 20px;
409
+ height: 20px;
410
+ }
377
411
  }
378
- }
379
412
 
380
- .count {
381
- font-weight: 700;
382
- color: $gray-600;
383
- background-color: #f2f4f7;
384
- border-radius: 6px;
385
- font-size: $font-size-sm;
386
- // width: 25px;
387
- height: 25px;
388
- padding: 0 8px;
389
- display: flex;
390
- // align-items: center;
391
- justify-content: center;
413
+ .count {
414
+ font-weight: 700;
415
+ color: $gray-600;
416
+ background-color: #f2f4f7;
417
+ border-radius: 6px;
418
+ font-size: $font-size-sm;
419
+ // width: 25px;
420
+ height: 25px;
421
+ padding: 0 8px;
422
+ display: flex;
423
+ // align-items: center;
424
+ justify-content: center;
425
+ }
392
426
  }
393
427
  }
394
-
395
-
396
- }
397
- .actions {
428
+ .actions {
398
429
  display: flex;
399
430
  align-items: center;
400
431
  gap: 12px;
432
+ margin-left: 12px;
401
433
  svg {
402
434
  width: 16px;
403
435
  height: 16px;
436
+ path {
437
+ stroke: var(--_gray-600);
438
+ }
404
439
  }
405
440
  span {
406
441
  width: 32px;
@@ -412,11 +447,23 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
412
447
  display: flex;
413
448
  align-items: center;
414
449
  justify-content: center;
450
+ &[title="Enter Fullscreen"] {
451
+ svg {
452
+ width: 14px;
453
+ height: 14px;
454
+ path {
455
+ stroke: var(--_gray-500);
456
+ }
457
+ }
458
+ }
415
459
 
416
460
  &:hover {
417
461
  color: var(--_gray-900);
418
462
  background-color: var(--_gray-100);
419
463
  border-radius: 4px;
464
+ svg path {
465
+ stroke: var(--_gray-900);
466
+ }
420
467
  }
421
468
  }
422
469
  .sc_modal-close svg {
@@ -424,8 +471,6 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
424
471
  height: 20px !important;
425
472
  }
426
473
  }
427
-
428
-
429
474
  }
430
475
 
431
476
  .input-group {
@@ -597,9 +642,8 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
597
642
  .actions {
598
643
  display: flex;
599
644
  gap: 8px;
600
-
601
645
 
602
- span {
646
+ span {
603
647
  cursor: pointer;
604
648
  font-size: 16px;
605
649
  color: $text-light;
@@ -613,20 +657,20 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
613
657
  background-color: var(--_gray-50);
614
658
  border-radius: 4px;
615
659
  svg path {
616
- stroke: var(--_gray-900)
617
- }
660
+ stroke: var(--_gray-900);
661
+ }
618
662
  }
619
663
  &[title="Maximize"] {
620
664
  svg {
621
665
  width: 14px;
622
- height: 14px;
666
+ height: 14px;
623
667
  }
624
668
  }
625
669
 
626
670
  &[title="close"] {
627
671
  svg {
628
672
  width: 20px;
629
- height: 20px;
673
+ height: 20px;
630
674
  }
631
675
  }
632
676
 
@@ -642,3 +686,12 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
642
686
  }
643
687
  }
644
688
  }
689
+
690
+ @keyframes rotate-icon {
691
+ 0% {
692
+ transform: rotate(0deg);
693
+ }
694
+ 100% {
695
+ transform: rotate(360deg);
696
+ }
697
+ }