@sc-360-v2/storefront-cms-library 0.3.29 → 0.3.31

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 (49) hide show
  1. package/dist/animation-control.scss +23 -0
  2. package/dist/builder.js +1 -1
  3. package/dist/bulk-order-pad.scss +73 -13
  4. package/dist/cart-details.scss +573 -287
  5. package/dist/cart-summary.scss +102 -73
  6. package/dist/cartAttributes.scss +3 -0
  7. package/dist/cartDropdownOverlay.scss +11 -7
  8. package/dist/checkout.scss +1069 -944
  9. package/dist/contact-us.scss +3 -0
  10. package/dist/dropdownTemplate.scss +24 -3
  11. package/dist/employee-bulk-order.scss +36 -5
  12. package/dist/empty-states.scss +52 -0
  13. package/dist/fb-dropdown.scss +6 -2
  14. package/dist/form-preview.scss +24 -1
  15. package/dist/form-zindex-module.scss +25 -0
  16. package/dist/functions.scss +72 -2
  17. package/dist/icons.js +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/light-box-v2.scss +1 -1
  20. package/dist/modal.scss +96 -37
  21. package/dist/position-module.scss +74 -0
  22. package/dist/prefix-list.scss +55 -0
  23. package/dist/quick-order-pad.scss +49 -10
  24. package/dist/responsive-behaviour.scss +21 -0
  25. package/dist/section.scss +13 -9
  26. package/dist/shareCartSideBar.scss +17 -8
  27. package/dist/submit-quote.scss +115 -52
  28. package/dist/types/builder/elements/loader/index.d.ts +27 -0
  29. package/dist/types/builder/enums/index.d.ts +1 -0
  30. package/dist/types/builder/index.d.ts +2 -1
  31. package/dist/types/builder/interfaces/global.d.ts +13 -0
  32. package/dist/types/builder/tools/element-edit/amountEstimator.d.ts +441 -0
  33. package/dist/types/builder/tools/element-edit/buttonInstance.d.ts +364 -0
  34. package/dist/types/builder/tools/element-edit/cartSummary.d.ts +2 -2
  35. package/dist/types/builder/tools/element-edit/checkout.d.ts +8 -0
  36. package/dist/types/builder/tools/element-edit/common.d.ts +1 -0
  37. package/dist/types/builder/tools/element-edit/countdown.d.ts +384 -44
  38. package/dist/types/builder/tools/element-edit/dummy.d.ts +0 -0
  39. package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
  40. package/dist/types/builder/tools/element-edit/loader.d.ts +28 -0
  41. package/dist/types/builder/tools/element-edit/productActions.d.ts +390 -43
  42. package/dist/types/builder/tools/element-edit/quickLinks.d.ts +192 -22
  43. package/dist/types/builder/tools/element-edit/repeater.d.ts +439 -1
  44. package/dist/types/builder/tools/element-edit/table.d.ts +0 -1
  45. package/dist/types/builder/tools/element-edit/typographyInstance.d.ts +981 -0
  46. package/dist/types/builder/tools/element-edit/video.d.ts +192 -22
  47. package/dist/types/global/types.d.ts +2 -0
  48. package/dist/widget.scss +1 -0
  49. package/package.json +1 -1
@@ -30,11 +30,12 @@ $resizeActive: '[data-cms-element-resizer="true"]';
30
30
  align-items: center;
31
31
  align-self: stretch;
32
32
  border-radius: 4px;
33
- border: 0.5px solid #d0d5dd;
34
- background: #fff;
33
+ border: 1px solid var(--_gray-300);
34
+ background: var(--_base-white);
35
35
  // gap: var(--_ctm-lt-im-gp);
36
36
  padding: var(--_ctm-lt-pg);
37
37
  word-break: keep-all;
38
+ overflow: hidden;
38
39
 
39
40
  .cart_summary_heading_wrapper {
40
41
  display: flex;
@@ -49,7 +50,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
49
50
  border-width: var(--_ctm-dn-te-cr-dn-br-wh);
50
51
  box-shadow: var(--_ctm-dn-te-cr-dn-sw-ae) var(--_ctm-dn-te-cr-dn-sw-br)
51
52
  var(--_ctm-dn-te-cr-dn-sw-sd) var(--_ctm-dn-te-cr-dn-sw-cr);
52
-
53
+ border-bottom: 1px solid var(--_gray-300);
53
54
  .cart_summary_heading {
54
55
  width: 100%;
55
56
  color: var(--_ctm-dn-te-dn-cr);
@@ -124,8 +125,8 @@ $resizeActive: '[data-cms-element-resizer="true"]';
124
125
  width: 100%;
125
126
  padding: 8px 12px;
126
127
  border-radius: 8px;
127
- border: 1px solid #d0d5dd;
128
- background-color: #ffffff;
128
+ border: 1px solid var(--_gray-200);
129
+ background-color: var(--_base-white);
129
130
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
130
131
  font-size: 16px;
131
132
  line-height: 24px;
@@ -136,16 +137,19 @@ $resizeActive: '[data-cms-element-resizer="true"]';
136
137
  display: flex;
137
138
  flex: 1 0 0;
138
139
  flex-wrap: wrap;
139
- color: green;
140
+ color: var(--_success-500);
140
141
  }
141
142
 
142
143
  .error_message {
143
144
  display: flex;
144
145
  flex: 1 0 0;
145
146
  flex-wrap: wrap;
146
- color: red;
147
+ color: var(--_error-500);
147
148
  }
148
149
  }
150
+ .border_dashed {
151
+ border: 1px dashed var(--_gray-300);
152
+ }
149
153
 
150
154
  .subtotal_wrapper {
151
155
  display: flex;
@@ -205,82 +209,107 @@ $resizeActive: '[data-cms-element-resizer="true"]';
205
209
  }
206
210
 
207
211
  .cart_summary_primary_btn_wrapper {
208
- padding: var(--_ctm-lt-bn-pg) calc(var(--_ctm-lt-bn-pg) * 2);
212
+ // padding: var(--_ctm-lt-bn-pg) calc(var(--_ctm-lt-bn-pg) * 2);
213
+ // width: 100%;
214
+ // background-color: var(--_ctm-dn-py-bn-dn-dt-se-bd-cr);
215
+ // border-color: var(--_ctm-dn-py-bn-dn-dt-se-br-cr);
216
+ // border-radius: var(--_ctm-dn-py-bn-dn-dt-se-br-rs);
217
+ // border-style: var(--_ctm-dn-py-bn-dn-dt-se-br-se);
218
+ // border-width: var(--_ctm-dn-py-bn-dn-dt-se-br-wh);
219
+ // color: var(--_ctm-dn-py-bn-dn-dt-se-cr);
220
+ // font-family: var(--_ctm-dn-py-bn-dn-dt-se-ft-fy);
221
+ // font-size: var(--_ctm-dn-py-bn-dn-dt-se-ft-se);
222
+ // font-style: var(--_ctm-dn-py-bn-dn-dt-se-ft-se-ic);
223
+ // font-weight: var(--_ctm-dn-py-bn-dn-dt-se-ft-wt);
224
+ // line-height: var(--_ctm-dn-py-bn-dn-dt-se-le-ht);
225
+ // letter-spacing: var(--_ctm-dn-py-bn-dn-dt-se-lr-sg);
226
+ // box-shadow: var(--_ctm-dn-py-bn-dn-dt-se-sw-ae) var(--_ctm-dn-py-bn-dn-dt-se-sw-br)
227
+ // var(--_ctm-dn-py-bn-dn-dt-se-sw-sd) var(--_ctm-dn-py-bn-dn-dt-se-sw-cr);
228
+ // text-align: var(--_ctm-dn-py-bn-dn-dt-se-tt-an);
229
+ // text-decoration: var(--_ctm-dn-py-bn-dn-dt-se-ue);
230
+
231
+ // &:hover {
232
+ // background-color: var(--_ctm-dn-py-bn-dn-hr-se-bd-cr);
233
+ // border-color: var(--_ctm-dn-py-bn-dn-hr-se-br-cr);
234
+ // border-radius: var(--_ctm-dn-py-bn-dn-hr-se-br-rs);
235
+ // border-style: var(--_ctm-dn-py-bn-dn-hr-se-br-se);
236
+ // border-width: var(--_ctm-dn-py-bn-dn-hr-se-br-wh);
237
+ // color: var(--_ctm-dn-py-bn-dn-hr-se-cr);
238
+ // font-family: var(--_ctm-dn-py-bn-dn-hr-se-ft-fy);
239
+ // font-size: var(--_ctm-dn-py-bn-dn-hr-se-ft-se);
240
+ // font-style: var(--_ctm-dn-py-bn-dn-hr-se-ft-se-ic);
241
+ // font-weight: var(--_ctm-dn-py-bn-dn-hr-se-ft-wt);
242
+ // line-height: var(--_ctm-dn-py-bn-dn-hr-se-le-ht);
243
+ // letter-spacing: var(--_ctm-dn-py-bn-dn-hr-se-lr-sg);
244
+ // box-shadow: var(--_ctm-dn-py-bn-dn-hr-se-sw-ae) var(--_ctm-dn-py-bn-dn-hr-se-sw-br)
245
+ // var(--_ctm-dn-py-bn-dn-hr-se-sw-sd) var(--_ctm-dn-py-bn-dn-hr-se-sw-cr);
246
+ // text-align: var(--_ctm-dn-py-bn-dn-hr-se-tt-an);
247
+ // text-decoration: var(--_ctm-dn-py-bn-dn-hr-se-ue);
248
+ // }
249
+ padding: 16px 24px;
250
+ width: fit-content;
251
+ background-color: var(--_primary-400);
252
+ color: var(--_base-white);
253
+ border-radius: 4px;
254
+ margin-top: 12px;
255
+ font-weight: 600;
209
256
  width: 100%;
210
- background-color: var(--_ctm-dn-py-bn-dn-dt-se-bd-cr);
211
- border-color: var(--_ctm-dn-py-bn-dn-dt-se-br-cr);
212
- border-radius: var(--_ctm-dn-py-bn-dn-dt-se-br-rs);
213
- border-style: var(--_ctm-dn-py-bn-dn-dt-se-br-se);
214
- border-width: var(--_ctm-dn-py-bn-dn-dt-se-br-wh);
215
- color: var(--_ctm-dn-py-bn-dn-dt-se-cr);
216
- font-family: var(--_ctm-dn-py-bn-dn-dt-se-ft-fy);
217
- font-size: var(--_ctm-dn-py-bn-dn-dt-se-ft-se);
218
- font-style: var(--_ctm-dn-py-bn-dn-dt-se-ft-se-ic);
219
- font-weight: var(--_ctm-dn-py-bn-dn-dt-se-ft-wt);
220
- line-height: var(--_ctm-dn-py-bn-dn-dt-se-le-ht);
221
- letter-spacing: var(--_ctm-dn-py-bn-dn-dt-se-lr-sg);
222
- box-shadow: var(--_ctm-dn-py-bn-dn-dt-se-sw-ae) var(--_ctm-dn-py-bn-dn-dt-se-sw-br)
223
- var(--_ctm-dn-py-bn-dn-dt-se-sw-sd) var(--_ctm-dn-py-bn-dn-dt-se-sw-cr);
224
- text-align: var(--_ctm-dn-py-bn-dn-dt-se-tt-an);
225
- text-decoration: var(--_ctm-dn-py-bn-dn-dt-se-ue);
226
257
 
227
258
  &:hover {
228
- background-color: var(--_ctm-dn-py-bn-dn-hr-se-bd-cr);
229
- border-color: var(--_ctm-dn-py-bn-dn-hr-se-br-cr);
230
- border-radius: var(--_ctm-dn-py-bn-dn-hr-se-br-rs);
231
- border-style: var(--_ctm-dn-py-bn-dn-hr-se-br-se);
232
- border-width: var(--_ctm-dn-py-bn-dn-hr-se-br-wh);
233
- color: var(--_ctm-dn-py-bn-dn-hr-se-cr);
234
- font-family: var(--_ctm-dn-py-bn-dn-hr-se-ft-fy);
235
- font-size: var(--_ctm-dn-py-bn-dn-hr-se-ft-se);
236
- font-style: var(--_ctm-dn-py-bn-dn-hr-se-ft-se-ic);
237
- font-weight: var(--_ctm-dn-py-bn-dn-hr-se-ft-wt);
238
- line-height: var(--_ctm-dn-py-bn-dn-hr-se-le-ht);
239
- letter-spacing: var(--_ctm-dn-py-bn-dn-hr-se-lr-sg);
240
- box-shadow: var(--_ctm-dn-py-bn-dn-hr-se-sw-ae) var(--_ctm-dn-py-bn-dn-hr-se-sw-br)
241
- var(--_ctm-dn-py-bn-dn-hr-se-sw-sd) var(--_ctm-dn-py-bn-dn-hr-se-sw-cr);
242
- text-align: var(--_ctm-dn-py-bn-dn-hr-se-tt-an);
243
- text-decoration: var(--_ctm-dn-py-bn-dn-hr-se-ue);
259
+ background-color: var(--_primary-500);
244
260
  }
245
261
  }
246
262
 
247
263
  .submit_quotes {
248
- padding: var(--_ctm-lt-bn-pg) calc(var(--_ctm-lt-bn-pg) * 2);
264
+ // padding: var(--_ctm-lt-bn-pg) calc(var(--_ctm-lt-bn-pg) * 2);
265
+ // width: 100%;
266
+ // border-color: var(--_ctm-dn-py-bn-dn-dt-se-bd-cr);
267
+ // border-radius: var(--_ctm-dn-py-bn-dn-dt-se-br-rs);
268
+ // border-style: var(--_ctm-dn-py-bn-dn-dt-se-br-se);
269
+ // border-width: 1px;
270
+ // background: white;
271
+ // color: var(--_ctm-dn-py-bn-dn-dt-se-bd-cr);
272
+ // font-family: var(--_ctm-dn-py-bn-dn-dt-se-ft-fy);
273
+ // font-size: var(--_ctm-dn-py-bn-dn-dt-se-ft-se);
274
+ // font-style: var(--_ctm-dn-py-bn-dn-dt-se-ft-se-ic);
275
+ // font-weight: var(--_ctm-dn-py-bn-dn-dt-se-ft-wt);
276
+ // line-height: var(--_ctm-dn-py-bn-dn-dt-se-le-ht);
277
+ // letter-spacing: var(--_ctm-dn-py-bn-dn-dt-se-lr-sg);
278
+ // box-shadow: var(--_ctm-dn-py-bn-dn-dt-se-sw-ae) var(--_ctm-dn-py-bn-dn-dt-se-sw-br)
279
+ // var(--_ctm-dn-py-bn-dn-dt-se-sw-sd) var(--_ctm-dn-py-bn-dn-dt-se-sw-cr);
280
+ // text-align: var(--_ctm-dn-py-bn-dn-dt-se-tt-an);
281
+ // text-decoration: var(--_ctm-dn-py-bn-dn-dt-se-ue);
282
+
283
+ // &:hover {
284
+ // border-color: var(--_ctm-dn-py-bn-dn-hr-se-bd-cr);
285
+ // border-radius: var(--_ctm-dn-py-bn-dn-hr-se-br-rs);
286
+ // border-style: var(--_ctm-dn-py-bn-dn-hr-se-br-se);
287
+ // border-width: 1px;
288
+ // background: white;
289
+ // color: var(--_ctm-dn-py-bn-dn-hr-se-bd-cr);
290
+ // font-family: var(--_ctm-dn-py-bn-dn-hr-se-ft-fy);
291
+ // font-size: var(--_ctm-dn-py-bn-dn-hr-se-ft-se);
292
+ // font-style: var(--_ctm-dn-py-bn-dn-hr-se-ft-se-ic);
293
+ // font-weight: var(--_ctm-dn-py-bn-dn-hr-se-ft-wt);
294
+ // line-height: var(--_ctm-dn-py-bn-dn-hr-se-le-ht);
295
+ // letter-spacing: var(--_ctm-dn-py-bn-dn-hr-se-lr-sg);
296
+ // box-shadow: var(--_ctm-dn-py-bn-dn-hr-se-sw-ae) var(--_ctm-dn-py-bn-dn-hr-se-sw-br)
297
+ // var(--_ctm-dn-py-bn-dn-hr-se-sw-sd) var(--_ctm-dn-py-bn-dn-hr-se-sw-cr);
298
+ // text-align: var(--_ctm-dn-py-bn-dn-hr-se-tt-an);
299
+ // text-decoration: var(--_ctm-dn-py-bn-dn-hr-se-ue);
300
+ // }
301
+ padding: 16px 24px;
302
+ width: fit-content;
303
+ background-color: var(--_base-white);
304
+ color: var(--_gray-600);
305
+ border-radius: 4px;
306
+ font-weight: 600;
249
307
  width: 100%;
250
- border-color: var(--_ctm-dn-py-bn-dn-dt-se-bd-cr);
251
- border-radius: var(--_ctm-dn-py-bn-dn-dt-se-br-rs);
252
- border-style: var(--_ctm-dn-py-bn-dn-dt-se-br-se);
253
- border-width: 1px;
254
- background: white;
255
- color: var(--_ctm-dn-py-bn-dn-dt-se-bd-cr);
256
- font-family: var(--_ctm-dn-py-bn-dn-dt-se-ft-fy);
257
- font-size: var(--_ctm-dn-py-bn-dn-dt-se-ft-se);
258
- font-style: var(--_ctm-dn-py-bn-dn-dt-se-ft-se-ic);
259
- font-weight: var(--_ctm-dn-py-bn-dn-dt-se-ft-wt);
260
- line-height: var(--_ctm-dn-py-bn-dn-dt-se-le-ht);
261
- letter-spacing: var(--_ctm-dn-py-bn-dn-dt-se-lr-sg);
262
- box-shadow: var(--_ctm-dn-py-bn-dn-dt-se-sw-ae) var(--_ctm-dn-py-bn-dn-dt-se-sw-br)
263
- var(--_ctm-dn-py-bn-dn-dt-se-sw-sd) var(--_ctm-dn-py-bn-dn-dt-se-sw-cr);
264
- text-align: var(--_ctm-dn-py-bn-dn-dt-se-tt-an);
265
- text-decoration: var(--_ctm-dn-py-bn-dn-dt-se-ue);
308
+ border: 1px solid var(--_gray-300);
266
309
 
267
310
  &:hover {
268
- border-color: var(--_ctm-dn-py-bn-dn-hr-se-bd-cr);
269
- border-radius: var(--_ctm-dn-py-bn-dn-hr-se-br-rs);
270
- border-style: var(--_ctm-dn-py-bn-dn-hr-se-br-se);
271
- border-width: 1px;
272
- background: white;
273
- color: var(--_ctm-dn-py-bn-dn-hr-se-bd-cr);
274
- font-family: var(--_ctm-dn-py-bn-dn-hr-se-ft-fy);
275
- font-size: var(--_ctm-dn-py-bn-dn-hr-se-ft-se);
276
- font-style: var(--_ctm-dn-py-bn-dn-hr-se-ft-se-ic);
277
- font-weight: var(--_ctm-dn-py-bn-dn-hr-se-ft-wt);
278
- line-height: var(--_ctm-dn-py-bn-dn-hr-se-le-ht);
279
- letter-spacing: var(--_ctm-dn-py-bn-dn-hr-se-lr-sg);
280
- box-shadow: var(--_ctm-dn-py-bn-dn-hr-se-sw-ae) var(--_ctm-dn-py-bn-dn-hr-se-sw-br)
281
- var(--_ctm-dn-py-bn-dn-hr-se-sw-sd) var(--_ctm-dn-py-bn-dn-hr-se-sw-cr);
282
- text-align: var(--_ctm-dn-py-bn-dn-hr-se-tt-an);
283
- text-decoration: var(--_ctm-dn-py-bn-dn-hr-se-ue);
311
+ background-color: var(--_primary-50);
312
+ color: var(--_primary-500);
284
313
  }
285
314
  }
286
315
 
@@ -73,6 +73,7 @@
73
73
  display: flex;
74
74
  flex-wrap: wrap;
75
75
  gap: 16px;
76
+ margin-top: 20px;
76
77
  .attribute {
77
78
  width: 100%;
78
79
  .label {
@@ -83,6 +84,8 @@
83
84
  margin-bottom: 0.5rem;
84
85
  letter-spacing: var(--_ctm-dn-ct-as-is-ll-lr-sg);
85
86
  line-height: var(--_ctm-dn-ct-as-is-ll-le-ht);
87
+ margin-bottom: 10px;
88
+ display: block;
86
89
  &.required::after {
87
90
  content: " *";
88
91
  color: var(--_error-500);
@@ -67,17 +67,17 @@ $button-padding: 6px 12px;
67
67
  }
68
68
 
69
69
  .overlay-panel {
70
- position: absolute;
70
+ position: fixed;
71
71
  // top: 100%;
72
72
  // left: -160px;
73
73
  background: $background-color;
74
74
  box-shadow: $shadow;
75
75
  border-radius: $border-radius;
76
76
  padding: $spacing-sm;
77
- z-index: 1000;
77
+ z-index: 20;
78
78
  display: flex;
79
79
  flex-direction: column;
80
- // width: 220px;
80
+ width: 260px;
81
81
  .header-template {
82
82
  display: flex;
83
83
  align-items: center;
@@ -111,11 +111,13 @@ $button-padding: 6px 12px;
111
111
  .option {
112
112
  display: flex;
113
113
  align-items: center;
114
- padding: 8px $spacing-md;
114
+ padding: 12px;
115
115
  cursor: pointer;
116
116
  font-size: $font-size;
117
- min-height: 48px;
118
117
  border-radius: 4px;
118
+ &:not(:last-child) {
119
+ margin-bottom: 2px;
120
+ }
119
121
 
120
122
  &.disabled {
121
123
  .label-content {
@@ -131,7 +133,8 @@ $button-padding: 6px 12px;
131
133
  }
132
134
 
133
135
  &:hover {
134
- background-color: var(--_gray-100);
136
+ background-color: var(--_primary-25);
137
+ color: var(--_primary-500);
135
138
  }
136
139
 
137
140
  input {
@@ -145,7 +148,8 @@ $button-padding: 6px 12px;
145
148
  }
146
149
 
147
150
  &:has(input[type="radio"]:checked) {
148
- background-color: var(--_gray-200);
151
+ background-color: var(--_primary-25);
152
+ color: $primary-color;
149
153
  }
150
154
  }
151
155