@sc-360-v2/storefront-cms-library 0.3.37 → 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.
Files changed (42) hide show
  1. package/dist/add-order.scss +234 -24
  2. package/dist/add-products-tab.scss +388 -0
  3. package/dist/allocationDetails copy.scss +757 -0
  4. package/dist/allocationDetails.scss +405 -35
  5. package/dist/badge.scss +84 -82
  6. package/dist/builder.js +1 -1
  7. package/dist/bulk-order-pad.scss +29 -32
  8. package/dist/cart-details.scss +54 -57
  9. package/dist/cart-products-sidebar.scss +113 -83
  10. package/dist/cart-summary.scss +2 -2
  11. package/dist/cartAttributes.scss +180 -182
  12. package/dist/cartDropdownOverlay.scss +49 -27
  13. package/dist/checkout.scss +127 -38
  14. package/dist/customization-tree.scss +42 -10
  15. package/dist/dropdownTemplate.scss +36 -26
  16. package/dist/employee-bulk-order.scss +101 -5
  17. package/dist/empty-states.scss +66 -66
  18. package/dist/functions.scss +7 -5
  19. package/dist/icons.js +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/item-stock.scss +27 -28
  22. package/dist/loader.scss +0 -55
  23. package/dist/menu-v2.scss +2 -2
  24. package/dist/modal.scss +104 -75
  25. package/dist/overflow-module.scss +21 -22
  26. package/dist/past-orders.scss +272 -258
  27. package/dist/payment-methods.scss +70 -71
  28. package/dist/prefix-list.scss +1 -0
  29. package/dist/product-actions.scss +68 -68
  30. package/dist/product-image.scss +4 -8
  31. package/dist/product-sizechart.scss +13 -13
  32. package/dist/quick-links.scss +47 -48
  33. package/dist/quick-order-pad.scss +51 -51
  34. package/dist/quotes.scss +118 -116
  35. package/dist/rfqs.scss +118 -116
  36. package/dist/types/builder/elements/add-products-tab/index.d.ts +46 -0
  37. package/dist/types/builder/enums/index.d.ts +2 -0
  38. package/dist/types/builder/index.d.ts +2 -1
  39. package/dist/types/builder/tools/element-edit/addProductsTab.d.ts +418 -0
  40. package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
  41. package/dist/widget.scss +1 -1
  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,28 +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
- }
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
438
 
439
439
  .dropdown-options {
440
440
  display: flex;
441
- flex-direction: column;
442
- gap: 6px;
441
+ width: 600px;
442
+ gap: 12px;
443
443
 
444
444
  .dropdown-with-input-section {
445
445
  gap: 6px;
@@ -454,13 +454,11 @@
454
454
  .dropdown-input-section {
455
455
  border: 1px solid var(--_gray-300);
456
456
  border-radius: 4px;
457
- max-width: 320px;
458
- background: #fff;
457
+ max-width: 280px;
458
+ background: var(--_base-white);
459
459
  }
460
460
  }
461
461
  }
462
-
463
-
464
462
  }
465
463
 
466
464
  .bulkOrderPad-content-container {
@@ -514,11 +512,10 @@
514
512
  width: 100%;
515
513
  height: 1px;
516
514
  background: #f0f0f0;
517
-
518
515
  }
519
516
  .title {
520
- padding: 6px;
521
- }
517
+ padding-inline: 10px;
518
+ }
522
519
  }
523
520
 
524
521
  table {
@@ -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;
@@ -277,32 +277,28 @@ $resizeActive: '[data-cms-element-resizer="true"]';
277
277
  gap: 8px;
278
278
  max-width: 400px;
279
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
- }
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
+ // }
306
302
  }
307
303
 
308
304
  .checkbox-wrapper {
@@ -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
+ }
@@ -12,7 +12,7 @@ $hint-color: #7d7d7d;
12
12
  $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
13
13
 
14
14
  // Sidebar Overlay
15
- .sidebar__overlay {
15
+ .minicart__overlay {
16
16
  position: fixed;
17
17
  width: 100%;
18
18
  height: 100%;
@@ -21,11 +21,11 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
21
21
  z-index: 9999;
22
22
  }
23
23
 
24
- .sidebar__container {
24
+ .minicart_container {
25
25
  position: fixed;
26
26
  top: 0;
27
27
  right: 0;
28
- width: 220px;
28
+ width: 125px;
29
29
  max-width: 100%;
30
30
  height: 100vh;
31
31
  background: $background-color;
@@ -36,6 +36,9 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
36
36
  animation: slide-in 0.3s ease-out;
37
37
  overflow-y: auto;
38
38
 
39
+ display: flex;
40
+ flex-direction: column;
41
+
39
42
  @keyframes slide-in {
40
43
  from {
41
44
  transform: translateX(100%);
@@ -47,15 +50,33 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
47
50
  }
48
51
 
49
52
  // Sidebar Header
50
- .sidebar__header {
51
- display: flex;
52
- justify-content: flex-end;
53
- align-items: center;
54
- padding: 8px 16px;
53
+ .minicart_header {
54
+ // display: flex;
55
+ // justify-content: flex-end;
56
+ // align-items: center;
57
+ padding-top: 6px;
55
58
  position: sticky;
56
59
  top: 0;
57
60
  background: #fff;
58
61
  z-index: 1;
62
+ .mincart_close_btn {
63
+ display: flex;
64
+ justify-content: flex-end;
65
+ width: 100%;
66
+ svg {
67
+ margin-right: 8px;
68
+ width: 18px;
69
+ height: 18px;
70
+ path {
71
+ stroke: var(--_gray-600);
72
+ }
73
+ }
74
+ &:hover {
75
+ svg path {
76
+ stroke: var(--_gray-900);
77
+ }
78
+ }
79
+ }
59
80
 
60
81
  h2 {
61
82
  font-size: 18px;
@@ -76,6 +97,71 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
76
97
  height: 24px;
77
98
  }
78
99
  }
100
+ .text_label {
101
+ padding: 6px 16px;
102
+ background-color: var(--_gray-100);
103
+ color: var(--_gray-600);
104
+ width: 100%;
105
+ text-align: center;
106
+ }
107
+ }
108
+
109
+ .mincart_items {
110
+ flex-grow: 1;
111
+ overflow-y: auto;
112
+ // Cart Popup
113
+ .cart_popup {
114
+ background-color: #fff;
115
+ border-radius: 8px;
116
+ }
117
+
118
+ .cart_item {
119
+ display: flex;
120
+ flex-direction: column;
121
+ align-items: center;
122
+ margin-bottom: 8px;
123
+ text-align: center;
124
+ padding: 12px;
125
+ border-bottom: 1px solid var(--_base-white);
126
+ &:hover {
127
+ background-color: var(--_gray-50);
128
+ }
129
+
130
+ .item_info {
131
+ margin-top: 10px;
132
+ text-align: center;
133
+ }
134
+
135
+ .item_title {
136
+ font-size: 12px;
137
+ font-weight: 500;
138
+ color: var(--_gray-600);
139
+ margin-bottom: 5px;
140
+ }
141
+
142
+ .item_price {
143
+ font-size: 12px;
144
+ font-weight: 700;
145
+ color: var(--_gray-900);
146
+ }
147
+
148
+ .item_image {
149
+ max-width: 100%;
150
+ height: auto;
151
+ border-radius: 4px;
152
+ }
153
+ .item_action_btn {
154
+ padding: 12px 16px;
155
+ color: var(--_primary-400);
156
+ margin-top: 8px;
157
+ border-radius: 6px;
158
+
159
+ &:hover {
160
+ background-color: var(--_primary-50);
161
+ color: var(--_primary-500);
162
+ }
163
+ }
164
+ }
79
165
  }
80
166
 
81
167
  // Sidebar Footer
@@ -113,89 +199,33 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
113
199
  }
114
200
  }
115
201
 
116
- // Cart Popup
117
- .cart__popup {
118
- padding: 12px;
119
- background-color: #fff;
120
- border-radius: 8px;
121
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
122
- }
123
-
124
- .cart__header {
202
+ .minicart_info {
125
203
  display: flex;
126
204
  flex-direction: column;
127
205
  align-items: center;
128
- margin-bottom: 20px;
129
- }
130
-
131
- .total__label {
132
- font-size: 16px;
133
- font-weight: normal;
134
- color: #333;
135
- }
136
-
137
- .total__price {
138
- font-size: 20px;
139
- font-weight: bold;
140
- color: black;
141
- }
142
-
143
- .view-cart__btn {
144
- padding: 10px 15px;
145
- background-color: #007bff;
146
- color: #fff;
147
- border: none;
148
- border-radius: 4px;
149
- cursor: pointer;
150
- margin-top: 15px;
151
-
152
- &:hover {
153
- background-color: #0056b3;
206
+ .total_label {
207
+ font-size: 16px;
208
+ font-weight: normal;
209
+ color: var(--_gray-600);
154
210
  }
155
- }
156
211
 
157
- // Cart Content
158
- .cart__content {
159
- .cart__list-title {
160
- font-size: 18px;
161
- font-weight: bold;
162
- margin-bottom: 10px;
163
- text-align: center;
212
+ .total_price {
213
+ font-size: 20px;
214
+ font-weight: 600;
215
+ color: var(--_gray-900);
164
216
  }
165
217
 
166
- .cart__items {
167
- .cart__item {
168
- display: flex;
169
- flex-direction: column;
170
- align-items: center;
171
- margin-bottom: 20px;
172
- text-align: center;
173
- padding: 10px;
174
- border-bottom: 1px solid #eee;
175
-
176
- .item__info {
177
- margin-top: 10px;
178
- text-align: center;
179
- }
180
-
181
- .item__title {
182
- font-size: 16px;
183
- font-weight: normal;
184
- color: #333;
185
- margin-bottom: 5px;
186
- }
187
-
188
- .item__price {
189
- font-size: 18px;
190
- font-weight: bold;
191
- color: black;
192
- }
218
+ .view_cart_btn {
219
+ padding: 10px 15px;
220
+ background-color: var(--_primary-400);
221
+ color: var(--_base-white);
222
+ border: none;
223
+ border-radius: 4px;
224
+ cursor: pointer;
225
+ margin-block: 16px;
193
226
 
194
- .item__image {
195
- max-width: 150px;
196
- height: auto;
197
- border-radius: 4px;
198
- }
227
+ &:hover {
228
+ background-color: var(--_primary-500);
199
229
  }
200
230
  }
201
231
  }
@@ -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);