@sc-360-v2/storefront-cms-library 0.4.35 → 0.4.37
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.scss +9 -1
- package/dist/builder.js +1 -1
- package/dist/buyForHeaders.scss +1 -1
- package/dist/cart-details.scss +83 -77
- package/dist/confirm-modal.scss +351 -0
- package/dist/coupon.scss +801 -63
- package/dist/dropdownTemplate.scss +38 -0
- package/dist/embroider-template-1-v2.scss +238 -19
- package/dist/gallery-slider-temp.scss +7 -0
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/login.scss +11 -3
- package/dist/product-actions.scss +12 -4
- package/dist/product-image.scss +4 -0
- package/dist/static-global.scss +88 -0
- package/dist/types/builder/tools/element-edit/icon-list.d.ts +1 -0
- package/dist/widget.scss +2 -0
- package/package.json +1 -1
|
@@ -18,6 +18,44 @@
|
|
|
18
18
|
line-height: 40px;
|
|
19
19
|
outline: 2px solid var(--_base-white);
|
|
20
20
|
border: 1px solid var(--_gray-300);
|
|
21
|
+
|
|
22
|
+
.selected-display {
|
|
23
|
+
.selected-item {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 4px;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
line-height: 20px;
|
|
30
|
+
color: #344054;
|
|
31
|
+
.svg_icon {
|
|
32
|
+
vertical-align: middle;
|
|
33
|
+
display: flex;
|
|
34
|
+
svg {
|
|
35
|
+
width: 12px;
|
|
36
|
+
height: 12px;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
vertical-align: middle;
|
|
39
|
+
g {
|
|
40
|
+
path {
|
|
41
|
+
stroke: #98a2b3;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.multi-selected-display {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 8px;
|
|
51
|
+
.selected-item {
|
|
52
|
+
border: 1px solid var(--_gray-300);
|
|
53
|
+
border-radius: 4px;
|
|
54
|
+
padding: 2px 4px;
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
21
59
|
&:focus-within {
|
|
22
60
|
outline: 2px solid var(--_primary-400);
|
|
23
61
|
outline-offset: 0;
|
|
@@ -14,9 +14,13 @@ $tmpDsWrapper: ".emb__tmp1__ds__wrapper";
|
|
|
14
14
|
$previewMain: ".emb__preview__me";
|
|
15
15
|
$previewMainWrapper: ".emb__preview__me__wrapper";
|
|
16
16
|
$previewMainOuput: ".output__ele__v1";
|
|
17
|
+
$maxWidth: "350px";
|
|
18
|
+
$minWidth: "200px";
|
|
17
19
|
|
|
18
20
|
$defaultValues: (
|
|
19
21
|
--_sf-plp-flx-drt: getListOfResponsive(row, column),
|
|
22
|
+
--_sf-prv-psn-vlu: getListOfResponsive(sticky, static),
|
|
23
|
+
--_sf-prv-prt-gap: getListOfResponsive(32px, 12px),
|
|
20
24
|
);
|
|
21
25
|
|
|
22
26
|
@mixin EmbroideryTemplate1StylesV2() {
|
|
@@ -76,7 +80,7 @@ $defaultValues: (
|
|
|
76
80
|
& > #{$pacListParent} {
|
|
77
81
|
display: var(--_d-flex);
|
|
78
82
|
flex-direction: var(--_sf-plp-flx-drt);
|
|
79
|
-
gap:
|
|
83
|
+
gap: var(--_sf-prv-prt-gap);
|
|
80
84
|
|
|
81
85
|
// Header
|
|
82
86
|
& > #{$positionHeader} {
|
|
@@ -93,7 +97,7 @@ $defaultValues: (
|
|
|
93
97
|
font-weight: prepareMediaVariable(--_ctm-dn-te-ft-wt, 500);
|
|
94
98
|
line-height: prepareMediaVariable(--_ctm-dn-te-le-ht, 125%);
|
|
95
99
|
font-style: prepareMediaVariable(--_ctm-dn-te-ft-se-ic, normal);
|
|
96
|
-
font-family: prepareMediaVariable(--_ctm-dn-te-ft-fy)
|
|
100
|
+
font-family: prepareMediaVariable(--_ctm-dn-te-ft-fy);
|
|
97
101
|
text-decoration: prepareMediaVariable(--_ctm-dn-te-ue);
|
|
98
102
|
letter-spacing: prepareMediaVariable(--_ctm-dn-te-lr-sg);
|
|
99
103
|
text-align: prepareMediaVariable(--_ctm-dn-te-tt-an);
|
|
@@ -130,6 +134,11 @@ $defaultValues: (
|
|
|
130
134
|
flex-direction: column;
|
|
131
135
|
row-gap: 16px;
|
|
132
136
|
width: 100%;
|
|
137
|
+
|
|
138
|
+
.mandatory__label__v1 {
|
|
139
|
+
font-size: 14px;
|
|
140
|
+
color: #666666;
|
|
141
|
+
}
|
|
133
142
|
}
|
|
134
143
|
|
|
135
144
|
// Preview
|
|
@@ -158,7 +167,7 @@ $defaultValues: (
|
|
|
158
167
|
flex-direction: column;
|
|
159
168
|
row-gap: 6px;
|
|
160
169
|
|
|
161
|
-
position:
|
|
170
|
+
position: var(--_sf-prv-psn-vlu);
|
|
162
171
|
top: 0;
|
|
163
172
|
align-self: flex-start;
|
|
164
173
|
|
|
@@ -274,7 +283,7 @@ $defaultValues: (
|
|
|
274
283
|
display: var(--_d-flex);
|
|
275
284
|
color: var(--_sp-color, #{prepareMediaVariable(--_ctm-dn-dt-tt-cr, #475467)});
|
|
276
285
|
font-size: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se, 16px);
|
|
277
|
-
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy)
|
|
286
|
+
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy);
|
|
278
287
|
font-style: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se-ic, normal);
|
|
279
288
|
font-weight: var(--_fw-wt, prepareMediaVariable(--_ctm-dn-dt-tt-ft-wt, 400));
|
|
280
289
|
line-height: prepareMediaVariable(--_ctm-dn-dt-tt-le-ht, 24px);
|
|
@@ -319,7 +328,7 @@ $defaultValues: (
|
|
|
319
328
|
|
|
320
329
|
& > label {
|
|
321
330
|
color: prepareMediaVariable(--_ctm-dn-dt-tt-cr, #475467);
|
|
322
|
-
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy)
|
|
331
|
+
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy);
|
|
323
332
|
font-style: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se-ic, normal);
|
|
324
333
|
font-size: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se, 16px);
|
|
325
334
|
font-weight: 500;
|
|
@@ -327,13 +336,29 @@ $defaultValues: (
|
|
|
327
336
|
}
|
|
328
337
|
|
|
329
338
|
// Image Upload
|
|
330
|
-
|
|
331
339
|
& > .img__div {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
340
|
+
--_sp-iu-clr: var(
|
|
341
|
+
--_ctm-mob-dn-ae-tt-cr,
|
|
342
|
+
var(--_ctm-tab-dn-ae-tt-cr, var(--_ctm-dn-ae-tt-cr, #243dc6))
|
|
343
|
+
);
|
|
344
|
+
background: color-mix(in srgb, var(--_sp-iu-clr, transparent) 6%, transparent 94%);
|
|
345
|
+
height: 75px;
|
|
346
|
+
width: min(#{$maxWidth}, 100%);
|
|
347
|
+
border-radius: 4px;
|
|
348
|
+
--_perc-clr-bb: 50%;
|
|
349
|
+
border: 0.5px dashed
|
|
350
|
+
var(
|
|
351
|
+
--_sp-iu-clr,
|
|
352
|
+
color-mix(
|
|
353
|
+
in srgb,
|
|
354
|
+
var(
|
|
355
|
+
--_ctm-mob-dn-dt-tt-cr,
|
|
356
|
+
var(--_ctm-tab-dn-dt-tt-cr, var(--_ctm-dn-dt-tt-cr, #475467))
|
|
357
|
+
)
|
|
358
|
+
calc(100% - var(--_perc-clr-bb)),
|
|
359
|
+
transparent var(--_perc-clr-bb)
|
|
360
|
+
)
|
|
361
|
+
);
|
|
337
362
|
position: var(--_p-relative);
|
|
338
363
|
cursor: pointer;
|
|
339
364
|
|
|
@@ -362,13 +387,32 @@ $defaultValues: (
|
|
|
362
387
|
left: 50%;
|
|
363
388
|
top: 50%;
|
|
364
389
|
transform: translate(-50%, -50%);
|
|
365
|
-
font-size: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se, 12px);
|
|
366
|
-
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy), sans-serif;
|
|
367
|
-
text-transform: uppercase;
|
|
368
|
-
line-height: 1;
|
|
369
390
|
cursor: pointer;
|
|
370
391
|
visibility: var(--_sf-vt-im, visible);
|
|
371
392
|
opacity: var(--_sf-op-im, 1);
|
|
393
|
+
|
|
394
|
+
display: var(--_d-flex);
|
|
395
|
+
align-items: center;
|
|
396
|
+
gap: 4px;
|
|
397
|
+
|
|
398
|
+
& > span {
|
|
399
|
+
display: var(--_d-flex);
|
|
400
|
+
svg {
|
|
401
|
+
width: 18px;
|
|
402
|
+
height: 18px;
|
|
403
|
+
|
|
404
|
+
path {
|
|
405
|
+
stroke: var(--_sp-iu-clr);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
&:nth-of-type(2) {
|
|
409
|
+
font-size: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se, 12px);
|
|
410
|
+
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy);
|
|
411
|
+
text-transform: uppercase;
|
|
412
|
+
line-height: 1;
|
|
413
|
+
color: var(--_sp-iu-clr);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
372
416
|
}
|
|
373
417
|
}
|
|
374
418
|
|
|
@@ -400,7 +444,7 @@ $defaultValues: (
|
|
|
400
444
|
padding: 8px 12px;
|
|
401
445
|
|
|
402
446
|
&:has(input) {
|
|
403
|
-
width: min(
|
|
447
|
+
width: min(#{$maxWidth}, 100%);
|
|
404
448
|
}
|
|
405
449
|
|
|
406
450
|
&:has(:focus) {
|
|
@@ -410,7 +454,7 @@ $defaultValues: (
|
|
|
410
454
|
& > input {
|
|
411
455
|
color: prepareMediaVariable(--_ctm-dn-dt-tt-cr, #475467);
|
|
412
456
|
font-size: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se, 16px);
|
|
413
|
-
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy)
|
|
457
|
+
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy);
|
|
414
458
|
font-style: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se-ic, normal);
|
|
415
459
|
font-weight: var(--_fw-wt, prepareMediaVariable(--_ctm-dn-dt-tt-ft-wt, 400));
|
|
416
460
|
line-height: prepareMediaVariable(--_ctm-dn-dt-tt-le-ht, 24px);
|
|
@@ -424,8 +468,35 @@ $defaultValues: (
|
|
|
424
468
|
}
|
|
425
469
|
}
|
|
426
470
|
|
|
427
|
-
|
|
471
|
+
& > .config__div__v2 {
|
|
472
|
+
display: var(--_d-flex);
|
|
473
|
+
flex-direction: column;
|
|
474
|
+
row-gap: 6px;
|
|
475
|
+
& > .err__msg__v2 {
|
|
476
|
+
color: #d32f2f;
|
|
477
|
+
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy);
|
|
478
|
+
font-size: 14px;
|
|
479
|
+
line-height: 1.5;
|
|
480
|
+
}
|
|
481
|
+
ul {
|
|
482
|
+
display: flex;
|
|
483
|
+
flex-direction: column;
|
|
484
|
+
row-gap: 6px;
|
|
485
|
+
margin-inline-start: 16px;
|
|
428
486
|
|
|
487
|
+
& > li {
|
|
488
|
+
list-style-type: disc;
|
|
489
|
+
|
|
490
|
+
font-size: 12px;
|
|
491
|
+
color: prepareMediaVariable(--_ctm-dn-dt-tt-cr, #475467);
|
|
492
|
+
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy);
|
|
493
|
+
font-style: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se-ic, normal);
|
|
494
|
+
line-height: 1.4;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// Common Dropdown
|
|
429
500
|
& > .cmn__drp__parent__v2 {
|
|
430
501
|
& > ul {
|
|
431
502
|
display: var(--_d-flex);
|
|
@@ -488,7 +559,7 @@ $defaultValues: (
|
|
|
488
559
|
&.list__text {
|
|
489
560
|
color: var(--_sp-color, #{prepareMediaVariable(--_ctm-dn-dt-tt-cr, #475467)});
|
|
490
561
|
font-size: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se, 16px);
|
|
491
|
-
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy)
|
|
562
|
+
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy);
|
|
492
563
|
font-style: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se-ic, normal);
|
|
493
564
|
font-weight: var(--_fw-wt, prepareMediaVariable(--_ctm-dn-dt-tt-ft-wt, 400));
|
|
494
565
|
line-height: prepareMediaVariable(--_ctm-dn-dt-tt-le-ht, 24px);
|
|
@@ -547,6 +618,154 @@ $defaultValues: (
|
|
|
547
618
|
}
|
|
548
619
|
}
|
|
549
620
|
}
|
|
621
|
+
|
|
622
|
+
// Font Family
|
|
623
|
+
|
|
624
|
+
.cmn__drp__parent__v1 {
|
|
625
|
+
display: var(--_d-flex);
|
|
626
|
+
flex-direction: column;
|
|
627
|
+
row-gap: 4px;
|
|
628
|
+
width: clamp(#{$minWidth}, 100%, #{$maxWidth});
|
|
629
|
+
|
|
630
|
+
& > button {
|
|
631
|
+
display: var(--_d-flex);
|
|
632
|
+
align-items: center;
|
|
633
|
+
gap: 12px;
|
|
634
|
+
justify-content: space-between;
|
|
635
|
+
padding: 8px 12px;
|
|
636
|
+
border: 0.5px solid
|
|
637
|
+
var(
|
|
638
|
+
--_fcs-clr,
|
|
639
|
+
color-mix(
|
|
640
|
+
in srgb,
|
|
641
|
+
var(
|
|
642
|
+
--_ctm-mob-dn-dt-tt-cr,
|
|
643
|
+
var(--_ctm-tab-dn-dt-tt-cr, var(--_ctm-dn-dt-tt-cr, #475467))
|
|
644
|
+
)
|
|
645
|
+
calc(100% - var(--_perc-clr-bb)),
|
|
646
|
+
transparent var(--_perc-clr-bb)
|
|
647
|
+
)
|
|
648
|
+
);
|
|
649
|
+
border-radius: 6px;
|
|
650
|
+
overflow: clip;
|
|
651
|
+
background: var(--_sf-scd-clr);
|
|
652
|
+
--_perc-clr-bb: 50%;
|
|
653
|
+
|
|
654
|
+
& > span {
|
|
655
|
+
display: var(--_d-flex);
|
|
656
|
+
color: #{prepareMediaVariable(--_ctm-dn-dt-tt-cr, #475467)};
|
|
657
|
+
font-size: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se, 16px);
|
|
658
|
+
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy);
|
|
659
|
+
font-style: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se-ic, normal);
|
|
660
|
+
font-weight: prepareMediaVariable(--_ctm-dn-dt-tt-ft-wt, 400);
|
|
661
|
+
line-height: prepareMediaVariable(--_ctm-dn-dt-tt-le-ht, 24px);
|
|
662
|
+
letter-spacing: prepareMediaVariable(--_ctm-dn-dt-tt-lr-sg);
|
|
663
|
+
@include restrictToLinesShow(1);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
& > ul {
|
|
668
|
+
&.dropdown__list__v1 {
|
|
669
|
+
// position: var(--_p-absolute);
|
|
670
|
+
// z-index: 2;/
|
|
671
|
+
// right: 0;
|
|
672
|
+
// top: calc(100% + var(--_height-1));
|
|
673
|
+
max-height: 200px;
|
|
674
|
+
min-width: 100%;
|
|
675
|
+
overflow-y: auto;
|
|
676
|
+
background: var(--_base-white);
|
|
677
|
+
border: 1px solid var(--_gray-200);
|
|
678
|
+
// box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
|
|
679
|
+
box-shadow: var(--_shadow-x1);
|
|
680
|
+
border-radius: 6px;
|
|
681
|
+
transform: translateY(-5px);
|
|
682
|
+
opacity: 0;
|
|
683
|
+
animation: anim var(--_transition-duration) var(--_transition-timing-function) 1
|
|
684
|
+
alternate forwards;
|
|
685
|
+
|
|
686
|
+
@keyframes anim {
|
|
687
|
+
to {
|
|
688
|
+
transform: translateY(0px);
|
|
689
|
+
opacity: 1;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
& > li:not(.srch__li__v1) {
|
|
694
|
+
padding: 10px;
|
|
695
|
+
display: var(--_d-flex);
|
|
696
|
+
align-items: center;
|
|
697
|
+
justify-content: space-between;
|
|
698
|
+
gap: 4px;
|
|
699
|
+
background: color-mix(in srgb, var(--_sp-color, transparent) 6%, transparent 94%);
|
|
700
|
+
cursor: pointer;
|
|
701
|
+
|
|
702
|
+
&.active__v1 {
|
|
703
|
+
--_sp-color: #{prepareMediaVariable(--_ctm-dn-ae-tt-cr, #243dc6)};
|
|
704
|
+
--_fw-wt: #{prepareMediaVariable(--_ctm-dn-ae-tt-ft-wt, 600)};
|
|
705
|
+
|
|
706
|
+
--_sf-at-bg: var(--_primary-25);
|
|
707
|
+
--_sf-ic-op: 1;
|
|
708
|
+
--_sf-ic-vt: visible;
|
|
709
|
+
--_sf-at-br-cr: var(--_gray-200);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
& > span {
|
|
713
|
+
&.list__text__v1 {
|
|
714
|
+
color: var(--_sp-color, #{prepareMediaVariable(--_ctm-dn-dt-tt-cr, #475467)});
|
|
715
|
+
font-size: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se, 16px);
|
|
716
|
+
font-family: prepareMediaVariable(--_ctm-dn-dt-tt-ft-fy);
|
|
717
|
+
font-style: prepareMediaVariable(--_ctm-dn-dt-tt-ft-se-ic, normal);
|
|
718
|
+
font-weight: var(--_fw-wt, prepareMediaVariable(--_ctm-dn-dt-tt-ft-wt, 400));
|
|
719
|
+
line-height: prepareMediaVariable(--_ctm-dn-dt-tt-le-ht, 24px);
|
|
720
|
+
letter-spacing: prepareMediaVariable(--_ctm-dn-dt-tt-lr-sg);
|
|
721
|
+
text-align: start;
|
|
722
|
+
text-transform: capitalize;
|
|
723
|
+
@include restrictToLinesShow(1);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
&.list__icon__v1 {
|
|
727
|
+
display: var(--_d-flex);
|
|
728
|
+
opacity: var(--_sf-ic-op, 1);
|
|
729
|
+
visibility: var(--_sf-ic-vt, hidden);
|
|
730
|
+
svg {
|
|
731
|
+
width: 16px;
|
|
732
|
+
height: 16px;
|
|
733
|
+
|
|
734
|
+
path {
|
|
735
|
+
stroke: var(
|
|
736
|
+
--_sp-color,
|
|
737
|
+
var(
|
|
738
|
+
--_ctm-mob-dn-dt-tt-cr,
|
|
739
|
+
var(--_ctm-tab-dn-dt-tt-cr, var(--_ctm-dn-dt-tt-cr, #475467))
|
|
740
|
+
)
|
|
741
|
+
);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.srch__li__v1 {
|
|
749
|
+
padding: 6px;
|
|
750
|
+
position: var(--_p-sticky);
|
|
751
|
+
top: 0;
|
|
752
|
+
background: var(--_base-white);
|
|
753
|
+
border-block-end: 1px solid var(--_gray-100);
|
|
754
|
+
z-index: 2;
|
|
755
|
+
flex-direction: column;
|
|
756
|
+
& > input {
|
|
757
|
+
border: 1px solid var(--_gray-300);
|
|
758
|
+
// box-shadow: var(--_shadow-xs);
|
|
759
|
+
height: 32px;
|
|
760
|
+
border-radius: 4px;
|
|
761
|
+
font-size: 14px;
|
|
762
|
+
padding-inline: 8px;
|
|
763
|
+
color: var(--_gray-600);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
550
769
|
}
|
|
551
770
|
}
|
|
552
771
|
}
|