@sc-360-v2/storefront-cms-library 0.3.62 → 0.3.64
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.
- package/dist/add-products-tab copy.scss +9 -8
- package/dist/add-products-tab.scss +9 -8
- package/dist/badge.scss +87 -83
- package/dist/builder.js +1 -1
- package/dist/cart-details.scss +82 -22
- package/dist/cart-summary.scss +18 -144
- package/dist/cart-wrapper.scss +127 -0
- package/dist/cartDropdownOverlay.scss +58 -4
- package/dist/checkbox-radio.scss +105 -0
- package/dist/checkout.scss +96 -573
- package/dist/dropdownTemplate.scss +58 -4
- package/dist/icon-list.scss +25 -19
- package/dist/icons.js +1 -1
- package/dist/image-for-product.scss +19 -0
- package/dist/index.js +1 -1
- package/dist/item-stock.scss +27 -26
- package/dist/mega-menu-container.scss +96 -0
- package/dist/mega-menu.scss +832 -0
- package/dist/menu-v2.scss +30 -5
- package/dist/modal.scss +218 -8
- package/dist/myTemplates.scss +345 -20
- package/dist/order-status.scss +18 -15
- package/dist/past-orders.scss +279 -271
- package/dist/payment-methods.scss +72 -69
- package/dist/position-module.scss +2 -1
- package/dist/prefix-list.scss +3 -0
- package/dist/quick-links.scss +49 -46
- package/dist/quick-order-pad.scss +3 -0
- package/dist/quotes.scss +123 -117
- package/dist/rfqs.scss +123 -117
- package/dist/simple-list.scss +264 -0
- package/dist/submit-quote.scss +81 -113
- package/dist/templates.scss +299 -0
- package/dist/types/builder/elements/cart-wrapper/index.d.ts +44 -0
- package/dist/types/builder/elements/mega-menu/index.d.ts +47 -0
- package/dist/types/builder/elements/mega-menu-container/index.d.ts +44 -0
- package/dist/types/builder/elements/simple-list/index.d.ts +47 -0
- package/dist/types/builder/enums/index.d.ts +10 -1
- package/dist/types/builder/index.d.ts +5 -1
- package/dist/types/builder/tools/element-edit/cart-wrapper.d.ts +16 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +8 -1
- package/dist/types/builder/tools/element-edit/mega-menu.d.ts +41 -0
- package/dist/types/builder/tools/element-edit/megaMenuContainer.d.ts +9 -0
- package/dist/types/builder/tools/element-edit/my-templates.d.ts +23 -0
- package/dist/types/builder/tools/element-edit/optionBar.d.ts +23 -0
- package/dist/types/builder/tools/element-edit/quickLinks.d.ts +111 -50
- package/dist/types/builder/tools/element-edit/request-for-quote.d.ts +23 -0
- package/dist/types/builder/tools/element-edit/simple-list.d.ts +37 -0
- package/dist/types/website/constants/data-connectors.d.ts +18 -0
- package/dist/website.js +1 -1
- package/dist/widget.scss +7 -0
- package/package.json +1 -1
package/dist/menu-v2.scss
CHANGED
|
@@ -13,6 +13,19 @@ $vtl: "[data-element-type='menu-v2'] > .vtl";
|
|
|
13
13
|
$hamburger: ".flex__menu__hamburger";
|
|
14
14
|
$hamburgerActive: "[data-hamburger-active='true']";
|
|
15
15
|
|
|
16
|
+
$wrapperData: (
|
|
17
|
+
start: (
|
|
18
|
+
left: prepareMediaVariable(--_ctm-meg-dn-hr-os-cr-ot-x, 0px),
|
|
19
|
+
),
|
|
20
|
+
end: (
|
|
21
|
+
right: prepareMediaVariable(--_ctm-meg-dn-hr-os-cr-ot-x, 0px),
|
|
22
|
+
),
|
|
23
|
+
center: (
|
|
24
|
+
left: calc(50% + #{prepareMediaVariable(--_ctm-meg-dn-hr-os-cr-ot-x, 0px)}),
|
|
25
|
+
transform: translateX(-50%),
|
|
26
|
+
),
|
|
27
|
+
);
|
|
28
|
+
|
|
16
29
|
$defaultValues: (
|
|
17
30
|
--_min-submenu-height: getListOfResponsive(650px, 400px, 550px),
|
|
18
31
|
);
|
|
@@ -24,9 +37,10 @@ $defaultValues: (
|
|
|
24
37
|
& > div {
|
|
25
38
|
&#{$wrapper} {
|
|
26
39
|
position: absolute;
|
|
27
|
-
left:
|
|
28
|
-
width: 100%;
|
|
29
|
-
|
|
40
|
+
// left: var(--_sf-hm-mc-lt-vl-v2, 0px);
|
|
41
|
+
// width: 100%;
|
|
42
|
+
// width: 100vw;
|
|
43
|
+
top: calc(100% + prepareMediaVariable(--_ctm-dn-hr-os-cr-ot-y, 0px));
|
|
30
44
|
z-index: 2;
|
|
31
45
|
visibility: hidden;
|
|
32
46
|
opacity: 0;
|
|
@@ -36,17 +50,27 @@ $defaultValues: (
|
|
|
36
50
|
flex-direction: column;
|
|
37
51
|
gap: prepareMediaVariable(--_ctm-lt-im-gp);
|
|
38
52
|
|
|
53
|
+
@each $key, $val in $wrapperData {
|
|
54
|
+
&[data-position="#{$key}"] {
|
|
55
|
+
@each $k, $v in $val {
|
|
56
|
+
#{$k}: #{$v};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
39
61
|
&:is([data-hamburger-active="true"] > *) {
|
|
40
62
|
// animation: animThree var(--_transition-duration) var(--_transition-timing-function) 1
|
|
41
63
|
// forwards alternate;
|
|
42
64
|
visibility: visible;
|
|
43
65
|
opacity: 1;
|
|
66
|
+
width: prepareMediaVariable(--_ctm-dn-hr-os-cr-wh, 100%);
|
|
44
67
|
max-height: var(--_min-submenu-height, 650px);
|
|
45
68
|
overflow-y: auto;
|
|
46
69
|
}
|
|
47
70
|
|
|
48
71
|
& > #{$menuItem} {
|
|
49
72
|
align-items: flex-start;
|
|
73
|
+
width: 100%;
|
|
50
74
|
flex-direction: column;
|
|
51
75
|
gap: #{prepareMediaVariable(--_ctm-dn-sb-mu-cr-cr-ot-y)};
|
|
52
76
|
& > #{$subMenuContainer} {
|
|
@@ -104,6 +128,7 @@ $defaultValues: (
|
|
|
104
128
|
flex-direction: row;
|
|
105
129
|
gap: prepareMediaVariable(--_ctm-lt-im-gp);
|
|
106
130
|
justify-content: prepareMediaVariable(--_ctm-lt-jy-ct);
|
|
131
|
+
align-items: center;
|
|
107
132
|
|
|
108
133
|
& > p {
|
|
109
134
|
&#{$nodatap} {
|
|
@@ -131,12 +156,12 @@ $defaultValues: (
|
|
|
131
156
|
background: prepareMediaVariable(--_ctm-dn-mu-cr-bd-cr);
|
|
132
157
|
border-radius: prepareMediaVariable(--_ctm-dn-mu-cr-br-rs);
|
|
133
158
|
|
|
134
|
-
|
|
159
|
+
&:is([data-show-border="true"] > *) {
|
|
135
160
|
border-color: prepareMediaVariable(--_ctm-dn-mu-cr-br-cr);
|
|
136
161
|
border-width: prepareMediaVariable(--_ctm-dn-mu-cr-br-wh);
|
|
137
162
|
border-style: prepareMediaVariable(--_ctm-dn-mu-cr-br-se);
|
|
138
163
|
}
|
|
139
|
-
|
|
164
|
+
&:is([data-show-boxshadow="true"] > *) {
|
|
140
165
|
box-shadow: prepareMediaVariable(--_ctm-dn-mu-cr-sw-ae)
|
|
141
166
|
prepareMediaVariable(--_ctm-dn-mu-cr-sw-br)
|
|
142
167
|
prepareMediaVariable(--_ctm-dn-mu-cr-sw-sd)
|
package/dist/modal.scss
CHANGED
|
@@ -60,7 +60,6 @@ $active_btn_text_color: #fff;
|
|
|
60
60
|
border-radius: $border_radius;
|
|
61
61
|
display: flex;
|
|
62
62
|
flex-direction: column;
|
|
63
|
-
gap: $gap_between_elements;
|
|
64
63
|
z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 10);
|
|
65
64
|
cursor: auto;
|
|
66
65
|
|
|
@@ -83,6 +82,7 @@ $active_btn_text_color: #fff;
|
|
|
83
82
|
display: flex;
|
|
84
83
|
align-items: center;
|
|
85
84
|
justify-content: space-between;
|
|
85
|
+
padding-bottom: 6px;
|
|
86
86
|
|
|
87
87
|
h2 {
|
|
88
88
|
font-size: $header_font_size;
|
|
@@ -132,25 +132,228 @@ $active_btn_text_color: #fff;
|
|
|
132
132
|
flex-wrap: wrap;
|
|
133
133
|
bottom: 0;
|
|
134
134
|
width: 100%;
|
|
135
|
+
margin-top: 24px;
|
|
135
136
|
|
|
136
137
|
.modal-footer-wrapper {
|
|
137
138
|
display: flex;
|
|
138
139
|
width: 100%;
|
|
139
140
|
gap: 12px;
|
|
140
141
|
|
|
142
|
+
.wishlist_btn_wrapper {
|
|
143
|
+
position: relative;
|
|
144
|
+
width: 100%;
|
|
145
|
+
.wishlist_btn {
|
|
146
|
+
width: 100%;
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
align-items: center;
|
|
150
|
+
color: var(--_primary-400);
|
|
151
|
+
height: 100%;
|
|
152
|
+
&:hover {
|
|
153
|
+
text-decoration: underline;
|
|
154
|
+
color: var(--_primary-500);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
.wishlist_overlay {
|
|
158
|
+
position: absolute;
|
|
159
|
+
z-index: 10;
|
|
160
|
+
top: 44px;
|
|
161
|
+
left: 41px;
|
|
162
|
+
min-height: 80px;
|
|
163
|
+
max-height: 190px;
|
|
164
|
+
width: 250px;
|
|
165
|
+
overflow-y: auto;
|
|
166
|
+
border-radius: 4px;
|
|
167
|
+
background-color: var(--_base-white);
|
|
168
|
+
box-shadow: 0px 0px 4px rgb(0, 0, 0, 0.1);
|
|
169
|
+
border: 1px solid var(--_gray-200);
|
|
170
|
+
|
|
171
|
+
.empty_message {
|
|
172
|
+
height: 200px;
|
|
173
|
+
display: flex;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
align-items: center;
|
|
176
|
+
padding: 24px;
|
|
177
|
+
font-size: 16px;
|
|
178
|
+
font-weight: 500;
|
|
179
|
+
text-align: center;
|
|
180
|
+
.dots {
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
width: 20px; /* fixed space so text doesn’t shift */
|
|
183
|
+
justify-content: space-between;
|
|
184
|
+
align-items: flex-end;
|
|
185
|
+
margin-left: 6px;
|
|
186
|
+
margin-bottom: -9px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.dots span {
|
|
190
|
+
animation: blink 1.5s infinite;
|
|
191
|
+
opacity: 0;
|
|
192
|
+
width: 2px;
|
|
193
|
+
height: 2px;
|
|
194
|
+
border-radius: 50%;
|
|
195
|
+
background-color: var(--_gray-700);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.dots span:nth-child(1) {
|
|
199
|
+
animation-delay: 0s;
|
|
200
|
+
}
|
|
201
|
+
.dots span:nth-child(2) {
|
|
202
|
+
animation-delay: 0.3s;
|
|
203
|
+
}
|
|
204
|
+
.dots span:nth-child(3) {
|
|
205
|
+
animation-delay: 0.6s;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@keyframes blink {
|
|
209
|
+
0% {
|
|
210
|
+
opacity: 0;
|
|
211
|
+
}
|
|
212
|
+
50% {
|
|
213
|
+
opacity: 1;
|
|
214
|
+
}
|
|
215
|
+
100% {
|
|
216
|
+
opacity: 0;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
.wishlist_overlay_header {
|
|
221
|
+
display: flex;
|
|
222
|
+
justify-content: space-between;
|
|
223
|
+
align-items: center;
|
|
224
|
+
padding: 12px;
|
|
225
|
+
font-size: 14px;
|
|
226
|
+
font-weight: 600;
|
|
227
|
+
}
|
|
228
|
+
.wishlist_items {
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-direction: column;
|
|
231
|
+
|
|
232
|
+
.wishlist_item {
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
gap: 8px;
|
|
236
|
+
color: var(--_gray-700);
|
|
237
|
+
padding: 12px;
|
|
238
|
+
border-radius: 4px;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
position: relative;
|
|
241
|
+
margin: 4px;
|
|
242
|
+
&.active {
|
|
243
|
+
color: var(--_primary-400);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&:not(:last-child) {
|
|
247
|
+
margin-bottom: 2px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&:hover {
|
|
251
|
+
background-color: var(--_primary-25);
|
|
252
|
+
color: var(--_primary-400);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
input {
|
|
256
|
+
display: none; // hide default checkbox
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.custom_checkbox {
|
|
260
|
+
width: 18px;
|
|
261
|
+
height: 18px;
|
|
262
|
+
border: 2px solid var(--_gray-400);
|
|
263
|
+
border-radius: 4px;
|
|
264
|
+
display: inline-flex;
|
|
265
|
+
align-items: center;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
transition: all 0.2s ease-in-out;
|
|
268
|
+
background-color: #fff;
|
|
269
|
+
|
|
270
|
+
&::after {
|
|
271
|
+
content: "";
|
|
272
|
+
width: 8px;
|
|
273
|
+
height: 4px;
|
|
274
|
+
border-left: 2px solid #fff;
|
|
275
|
+
border-bottom: 2px solid #fff;
|
|
276
|
+
transform: rotate(-45deg);
|
|
277
|
+
opacity: 0;
|
|
278
|
+
transition: opacity 0.2s ease-in-out;
|
|
279
|
+
margin-bottom: 4px;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
input:checked + .custom_checkbox {
|
|
284
|
+
background-color: var(--_primary-400);
|
|
285
|
+
border-color: var(--_primary-400);
|
|
286
|
+
|
|
287
|
+
&::after {
|
|
288
|
+
opacity: 1; // show tick mark
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.label_text {
|
|
293
|
+
font-size: 14px;
|
|
294
|
+
font-weight: 500;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.wishlist_overlay_footer {
|
|
300
|
+
display: flex;
|
|
301
|
+
justify-content: space-between;
|
|
302
|
+
align-items: center;
|
|
303
|
+
padding: 8px;
|
|
304
|
+
font-size: 14px;
|
|
305
|
+
font-weight: 600;
|
|
306
|
+
border-top: 1px solid var(--_gray-200);
|
|
307
|
+
padding: 8px;
|
|
308
|
+
|
|
309
|
+
.btn {
|
|
310
|
+
padding: 8px 12px;
|
|
311
|
+
width: 100%;
|
|
312
|
+
border-radius: 4px;
|
|
313
|
+
text-align: center;
|
|
314
|
+
width: 100%;
|
|
315
|
+
font-weight: 500;
|
|
316
|
+
text-decoration: none !important;
|
|
317
|
+
&.primary {
|
|
318
|
+
background-color: var(--_primary-400);
|
|
319
|
+
color: var(--_base-white);
|
|
320
|
+
font-size: 14px;
|
|
321
|
+
}
|
|
322
|
+
&.secondary {
|
|
323
|
+
color: var(--_gray-700);
|
|
324
|
+
&:hover {
|
|
325
|
+
color: var(--_gray-900);
|
|
326
|
+
|
|
327
|
+
background-color: var(--_gray-100);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.no_wishlist,
|
|
334
|
+
.loading_state {
|
|
335
|
+
min-height: 80px;
|
|
336
|
+
display: flex;
|
|
337
|
+
justify-content: center;
|
|
338
|
+
align-items: center;
|
|
339
|
+
font-size: 14px;
|
|
340
|
+
font-weight: 700;
|
|
341
|
+
color: var(--_gray-700);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
141
346
|
.modal-footer-white-btn {
|
|
142
347
|
padding: 12px 24px;
|
|
143
348
|
border-radius: 4px;
|
|
144
|
-
background-color:
|
|
145
|
-
color:
|
|
146
|
-
font-weight:
|
|
349
|
+
background-color: var(--_base-white);
|
|
350
|
+
color: var(--_primary-400);
|
|
351
|
+
font-weight: 500;
|
|
147
352
|
width: 100%;
|
|
148
|
-
border: 1px solid #fff;
|
|
149
353
|
display: flex;
|
|
150
354
|
justify-content: center;
|
|
151
|
-
|
|
152
355
|
&:hover {
|
|
153
|
-
|
|
356
|
+
text-decoration: underline;
|
|
154
357
|
}
|
|
155
358
|
}
|
|
156
359
|
|
|
@@ -231,6 +434,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
231
434
|
z-index: 9999;
|
|
232
435
|
inset: 0;
|
|
233
436
|
background: rgba(0, 0, 0, 0.4);
|
|
437
|
+
|
|
234
438
|
.modalV2-wrapper {
|
|
235
439
|
overflow: hidden !important;
|
|
236
440
|
position: fixed;
|
|
@@ -899,7 +1103,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
899
1103
|
transition: background 0.2s;
|
|
900
1104
|
|
|
901
1105
|
&:hover {
|
|
902
|
-
background:
|
|
1106
|
+
background: var(--_gray-100);
|
|
903
1107
|
}
|
|
904
1108
|
}
|
|
905
1109
|
|
|
@@ -915,6 +1119,12 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
915
1119
|
gap: 8px;
|
|
916
1120
|
cursor: pointer;
|
|
917
1121
|
transition: background 0.2s;
|
|
1122
|
+
span {
|
|
1123
|
+
display: flex;
|
|
1124
|
+
}
|
|
1125
|
+
svg path {
|
|
1126
|
+
stroke: var(--_base-white);
|
|
1127
|
+
}
|
|
918
1128
|
|
|
919
1129
|
&:hover {
|
|
920
1130
|
background: $primary-hover;
|