@sc-360-v2/storefront-cms-library 0.2.98 → 0.2.100
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/amount-estimator.scss +291 -226
- package/dist/builder.js +1 -1
- package/dist/bundleDetails.scss +808 -678
- package/dist/cartDropdownOverlay.scss +0 -13
- package/dist/faq.scss +20 -24
- package/dist/item-stock.scss +38 -76
- package/dist/map.scss +35 -35
- package/dist/menu-item.scss +19 -0
- package/dist/modal.scss +320 -0
- package/dist/order-status.scss +483 -0
- package/dist/payment-methods.scss +71 -1
- package/dist/pickup-locations.scss +22 -19
- package/dist/product-basic-elements.scss +285 -132
- package/dist/product-options.scss +118 -76
- package/dist/quick-links.scss +186 -143
- package/dist/quotes.scss +1 -0
- package/dist/repeater-item.scss +1 -0
- package/dist/section.scss +29 -78
- package/dist/stack.scss +16 -61
- package/dist/store-locations.scss +21 -20
- package/dist/table-common.scss +510 -0
- package/dist/text-temp-v2.scss +2 -0
- package/dist/types/builder/elements/bundle-details/index.d.ts +30 -0
- package/dist/types/builder/enums/index.d.ts +1 -0
- package/dist/types/builder/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/bundleDetails.d.ts +627 -10
- package/dist/types/builder/tools/element-edit/itemStock.d.ts +11 -0
- package/dist/types/builder/tools/element-edit/paymentMethods.d.ts +94 -1
- package/dist/uom-selector.scss +929 -1416
- package/dist/variant-picker.scss +613 -138
- package/dist/volume-pricing copy.scss +1092 -0
- package/dist/volume-pricing.scss +1007 -606
- package/dist/widget.scss +2 -0
- package/package.json +1 -1
package/dist/modal.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//modalv1
|
|
1
2
|
// Variables
|
|
2
3
|
$modal_background_color: white;
|
|
3
4
|
$backdrop_color: rgba(0, 0, 0, 0.2);
|
|
@@ -144,3 +145,322 @@ $active_btn_text_color: #fff;
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
}
|
|
148
|
+
|
|
149
|
+
//modalv2 css
|
|
150
|
+
// Colors
|
|
151
|
+
$white: var(--_white);
|
|
152
|
+
$black: var(--base-black);
|
|
153
|
+
$gray-100: #f9fafb;
|
|
154
|
+
$gray-300: #e5e7eb;
|
|
155
|
+
$gray-400: #ccc;
|
|
156
|
+
$gray-600: #737373;
|
|
157
|
+
$gray-700: #6b7280;
|
|
158
|
+
$gray-800: #444;
|
|
159
|
+
$gray-900: #111827;
|
|
160
|
+
|
|
161
|
+
$primary: var(--_primary-400);
|
|
162
|
+
$primary-hover: var(--_primary-500);
|
|
163
|
+
$text-dark: #222;
|
|
164
|
+
$text-medium: #374151;
|
|
165
|
+
$text-light: #666;
|
|
166
|
+
|
|
167
|
+
// Typography
|
|
168
|
+
$font-base: "Segoe UI", sans-serif;
|
|
169
|
+
$font-size-base: 14px;
|
|
170
|
+
$font-size-sm: 12px;
|
|
171
|
+
$font-size-md: 15px;
|
|
172
|
+
$font-size-lg: 18px;
|
|
173
|
+
|
|
174
|
+
// Spacing & Sizes
|
|
175
|
+
$radius: 6px;
|
|
176
|
+
$radius-lg: 8px;
|
|
177
|
+
$input-height: 32px;
|
|
178
|
+
$input-padding: 10px 12px;
|
|
179
|
+
|
|
180
|
+
// Z-Index
|
|
181
|
+
$z-index-modal: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 10);
|
|
182
|
+
$z-index-backdrop: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 11);
|
|
183
|
+
$z-index-wrapper: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 9);
|
|
184
|
+
$z-index-minimized: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 12);
|
|
185
|
+
$z-index-min-cart: calc(
|
|
186
|
+
var(--_higher-zIndex) + var(--_cs-et-zIndex) + 13
|
|
187
|
+
); // Higher z-index for min cart
|
|
188
|
+
|
|
189
|
+
// Shadows
|
|
190
|
+
$shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
191
|
+
|
|
192
|
+
.modalV2-main {
|
|
193
|
+
.modalV2-wrapper {
|
|
194
|
+
position: fixed;
|
|
195
|
+
bottom: 5%;
|
|
196
|
+
left: 50%;
|
|
197
|
+
transform: translate(-50%, 0%);
|
|
198
|
+
transition:
|
|
199
|
+
all 0.4s ease-in-out,
|
|
200
|
+
transform 0.4s ease-in-out;
|
|
201
|
+
background: $white;
|
|
202
|
+
border-radius: $radius-lg;
|
|
203
|
+
padding: 20px;
|
|
204
|
+
width: 850px;
|
|
205
|
+
font-family: $font-base;
|
|
206
|
+
box-shadow: $shadow-md;
|
|
207
|
+
z-index: $z-index-wrapper;
|
|
208
|
+
max-height: 70vh;
|
|
209
|
+
overflow: scroll;
|
|
210
|
+
display: flex;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
|
|
213
|
+
&.fullscreen {
|
|
214
|
+
transition:
|
|
215
|
+
all 0.5s ease-in-out,
|
|
216
|
+
transform 0.5s ease-in-out;
|
|
217
|
+
top: 50%;
|
|
218
|
+
left: 50%;
|
|
219
|
+
width: 95vw;
|
|
220
|
+
height: 95vh;
|
|
221
|
+
border-radius: $radius-lg;
|
|
222
|
+
transform: translate(-50%, -50%);
|
|
223
|
+
padding: 24px 32px;
|
|
224
|
+
box-shadow: none;
|
|
225
|
+
z-index: $z-index-modal;
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
max-height: 100vh;
|
|
229
|
+
|
|
230
|
+
.product-list {
|
|
231
|
+
flex: 1;
|
|
232
|
+
overflow-y: auto;
|
|
233
|
+
margin-top: 24px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.footer-bar {
|
|
237
|
+
border-top: 1px solid $gray-300;
|
|
238
|
+
padding-top: 16px;
|
|
239
|
+
margin-top: 24px;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.top-bar {
|
|
244
|
+
position: sticky;
|
|
245
|
+
top: 0;
|
|
246
|
+
background: $white;
|
|
247
|
+
z-index: 1;
|
|
248
|
+
padding-bottom: 12px;
|
|
249
|
+
.title-bar {
|
|
250
|
+
display: flex;
|
|
251
|
+
justify-content: space-between;
|
|
252
|
+
align-items: center;
|
|
253
|
+
margin-bottom: 16px;
|
|
254
|
+
|
|
255
|
+
.left-col {
|
|
256
|
+
display: flex;
|
|
257
|
+
gap: 10px;
|
|
258
|
+
align-items: center;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.title {
|
|
262
|
+
font-size: $font-size-lg;
|
|
263
|
+
font-weight: 600;
|
|
264
|
+
display: flex;
|
|
265
|
+
align-items: center;
|
|
266
|
+
gap: 8px;
|
|
267
|
+
|
|
268
|
+
.count {
|
|
269
|
+
font-weight: 700;
|
|
270
|
+
color: $gray-600;
|
|
271
|
+
background-color: #f2f4f7;
|
|
272
|
+
border-radius: 50%;
|
|
273
|
+
font-size: $font-size-sm;
|
|
274
|
+
width: 25px;
|
|
275
|
+
height: 25px;
|
|
276
|
+
display: flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
justify-content: center;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.actions span {
|
|
283
|
+
margin-left: 14px;
|
|
284
|
+
cursor: pointer;
|
|
285
|
+
font-size: 16px;
|
|
286
|
+
color: $text-light;
|
|
287
|
+
transition: color 0.2s;
|
|
288
|
+
|
|
289
|
+
&:hover {
|
|
290
|
+
color: $black;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.input-group {
|
|
296
|
+
display: flex;
|
|
297
|
+
gap: 12px;
|
|
298
|
+
|
|
299
|
+
.qty-input {
|
|
300
|
+
padding: $input-padding;
|
|
301
|
+
border: 1px solid $gray-400;
|
|
302
|
+
border-radius: $radius;
|
|
303
|
+
font-size: $font-size-base;
|
|
304
|
+
transition: border 0.2s;
|
|
305
|
+
width: 120px;
|
|
306
|
+
|
|
307
|
+
&:focus {
|
|
308
|
+
border-color: $primary;
|
|
309
|
+
outline: none;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.or-text {
|
|
314
|
+
align-self: center;
|
|
315
|
+
font-weight: 600;
|
|
316
|
+
color: $gray-800;
|
|
317
|
+
font-size: $font-size-base;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.add-btn {
|
|
321
|
+
background-color: $primary;
|
|
322
|
+
color: $white;
|
|
323
|
+
padding: 10px 16px;
|
|
324
|
+
border-radius: $radius;
|
|
325
|
+
font-weight: 600;
|
|
326
|
+
font-size: $font-size-base;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
transition: background-color 0.2s;
|
|
329
|
+
|
|
330
|
+
&:hover {
|
|
331
|
+
background-color: $primary-hover;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.footer-bar {
|
|
338
|
+
position: sticky;
|
|
339
|
+
bottom: 0;
|
|
340
|
+
display: flex;
|
|
341
|
+
justify-content: space-between;
|
|
342
|
+
padding-top: 16px;
|
|
343
|
+
border-top: 1px solid $gray-300;
|
|
344
|
+
margin-top: 24px;
|
|
345
|
+
font-size: $font-size-base;
|
|
346
|
+
|
|
347
|
+
.summary span {
|
|
348
|
+
margin-right: 18px;
|
|
349
|
+
font-weight: 500;
|
|
350
|
+
color: $text-medium;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.footer-actions {
|
|
354
|
+
display: flex;
|
|
355
|
+
gap: 10px;
|
|
356
|
+
|
|
357
|
+
.cancel-btn {
|
|
358
|
+
border-radius: $radius;
|
|
359
|
+
padding: 10px 14px;
|
|
360
|
+
font-weight: 500;
|
|
361
|
+
font-size: $font-size-base;
|
|
362
|
+
color: #333;
|
|
363
|
+
cursor: pointer;
|
|
364
|
+
transition: background 0.2s;
|
|
365
|
+
|
|
366
|
+
&:hover {
|
|
367
|
+
background: $gray-300;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.cart-btn {
|
|
372
|
+
background: $primary;
|
|
373
|
+
color: $white;
|
|
374
|
+
border-radius: $radius;
|
|
375
|
+
padding: 10px 20px;
|
|
376
|
+
font-weight: 600;
|
|
377
|
+
font-size: $font-size-base;
|
|
378
|
+
display: flex;
|
|
379
|
+
align-items: center;
|
|
380
|
+
gap: 8px;
|
|
381
|
+
cursor: pointer;
|
|
382
|
+
transition: background 0.2s;
|
|
383
|
+
|
|
384
|
+
&:hover {
|
|
385
|
+
background: $primary-hover;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.modalV2-backdrop {
|
|
393
|
+
position: fixed;
|
|
394
|
+
inset: 0;
|
|
395
|
+
background: rgba(0, 0, 0, 0.4);
|
|
396
|
+
z-index: $z-index-backdrop;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.modalV2-min {
|
|
400
|
+
position: fixed;
|
|
401
|
+
transition:
|
|
402
|
+
all 0.4s ease-in-out,
|
|
403
|
+
transform 0.4s ease-in-out;
|
|
404
|
+
right: 20px;
|
|
405
|
+
bottom: 20px;
|
|
406
|
+
padding: 0; /* Remove padding from the main min container */
|
|
407
|
+
border-radius: $radius;
|
|
408
|
+
box-shadow: $shadow-md;
|
|
409
|
+
z-index: $z-index-minimized;
|
|
410
|
+
display: none;
|
|
411
|
+
flex-direction: row; /* Align items in a row */
|
|
412
|
+
align-items: center;
|
|
413
|
+
gap: 10px; /* Adjust gap between elements */
|
|
414
|
+
font-size: $font-size-base;
|
|
415
|
+
background-color: transparent; /* Make the main container transparent */
|
|
416
|
+
|
|
417
|
+
.min-toolbar {
|
|
418
|
+
background-color: $white;
|
|
419
|
+
display: flex;
|
|
420
|
+
align-items: center; /* Align items vertically in the toolbar */
|
|
421
|
+
padding: 12px 16px; /* Add padding to the toolbar */
|
|
422
|
+
border-radius: $radius 0 0 $radius; /* Rounded left corners */
|
|
423
|
+
gap: 16px;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
&.active {
|
|
427
|
+
display: flex;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.cart-btn {
|
|
431
|
+
background: $primary;
|
|
432
|
+
color: $white;
|
|
433
|
+
border: none; /* Remove border */
|
|
434
|
+
border-radius: 0 $radius $radius 0; /* Rounded right corners */
|
|
435
|
+
padding: 12px 16px;
|
|
436
|
+
font-weight: 600;
|
|
437
|
+
font-size: $font-size-sm;
|
|
438
|
+
display: flex;
|
|
439
|
+
align-items: center;
|
|
440
|
+
gap: 4px;
|
|
441
|
+
cursor: pointer;
|
|
442
|
+
transition: background 0.2s;
|
|
443
|
+
z-index: $z-index-min-cart;
|
|
444
|
+
|
|
445
|
+
&:hover {
|
|
446
|
+
background: $primary-hover;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.actions {
|
|
451
|
+
display: flex;
|
|
452
|
+
gap: 8px;
|
|
453
|
+
|
|
454
|
+
span {
|
|
455
|
+
cursor: pointer;
|
|
456
|
+
font-size: 16px;
|
|
457
|
+
color: $text-light;
|
|
458
|
+
transition: color 0.2s;
|
|
459
|
+
|
|
460
|
+
&:hover {
|
|
461
|
+
color: $black;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|