@sc-360-v2/storefront-cms-library 0.4.42 → 0.4.47

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.
@@ -1365,7 +1365,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1365
1365
  flex-direction: column;
1366
1366
  align-items: flex-start;
1367
1367
  gap: 6px;
1368
- width: 113px;
1368
+ // width: 113px;
1369
1369
 
1370
1370
  .product_qty_container {
1371
1371
  display: flex;
@@ -1375,6 +1375,11 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1375
1375
  border: 0.5px solid #d0d5dd;
1376
1376
  background: #fff;
1377
1377
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
1378
+ margin-top: 2px;
1379
+ &:focus-within {
1380
+ outline: 2px solid var(--_gray-100);
1381
+ border: 1px solid var(--_gray-300);
1382
+ }
1378
1383
 
1379
1384
  .product_qty_label {
1380
1385
  display: flex;
@@ -1499,8 +1504,8 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1499
1504
  }
1500
1505
  & > a,
1501
1506
  & > span {
1502
- width: 24px;
1503
- height: 24px;
1507
+ width: 32px;
1508
+ height: 32px;
1504
1509
  border-radius: 4px;
1505
1510
 
1506
1511
  &:hover {
@@ -1618,6 +1618,27 @@ $dark-color: #343a40;
1618
1618
  }
1619
1619
  }
1620
1620
  }
1621
+ .sg__md__sn {
1622
+ display: flex;
1623
+ flex-wrap: wrap;
1624
+ gap: 48px;
1625
+ margin-top: 12px;
1626
+ .sg_md_gp {
1627
+ display: flex;
1628
+ flex-direction: column;
1629
+ gap: 12px;
1630
+ .sg_md_gp_lt {
1631
+ display: flex;
1632
+ flex-direction: column;
1633
+ gap: 6px;
1634
+ & > div {
1635
+ display: flex;
1636
+ align-items: center;
1637
+ gap: 6px;
1638
+ }
1639
+ }
1640
+ }
1641
+ }
1621
1642
 
1622
1643
  .chk_payment-options {
1623
1644
  form {
@@ -1806,6 +1827,35 @@ $dark-color: #343a40;
1806
1827
  }
1807
1828
  }
1808
1829
  }
1830
+
1831
+ .pmnt__md__sn {
1832
+ border: 1px solid var(--_gray-200);
1833
+ border-radius: 6px;
1834
+ .pmnt__md__sn__hr {
1835
+ display: flex;
1836
+ align-items: center;
1837
+ justify-content: space-between;
1838
+ padding: 8px 16px 0px 16px;
1839
+ border-bottom: 1px solid var(--_gray-200);
1840
+ }
1841
+ .pmnt__md__sn__body {
1842
+ display: flex;
1843
+ justify-content: space-between;
1844
+ padding: 8px 16px 16px 16px;
1845
+
1846
+ & > div {
1847
+ display: flex;
1848
+ justify-content: space-between;
1849
+ align-items: center;
1850
+ gap: 12px;
1851
+ & > div {
1852
+ display: flex;
1853
+ gap: 12px;
1854
+ width: 100%;
1855
+ }
1856
+ }
1857
+ }
1858
+ }
1809
1859
  }
1810
1860
  .gift_crd_chk_payment_option {
1811
1861
  border: 1px solid var(--_gray-300);
@@ -5360,6 +5410,13 @@ $dark-color: #343a40;
5360
5410
  margin-top: 6px;
5361
5411
  line-height: 24px;
5362
5412
  }
5413
+ .address_skeletons {
5414
+ display: flex;
5415
+ gap: 12px;
5416
+ &:not(:last-child) {
5417
+ margin-bottom: 6px;
5418
+ }
5419
+ }
5363
5420
  }
5364
5421
 
5365
5422
  .contact {
@@ -5432,6 +5489,23 @@ $dark-color: #343a40;
5432
5489
  background-color: var(--_gray-50);
5433
5490
  }
5434
5491
  }
5492
+ .summary_content_skeletons {
5493
+ display: flex;
5494
+ justify-content: space-between;
5495
+ gap: 12px;
5496
+ margin-top: 12px;
5497
+
5498
+ & > div {
5499
+ width: 100%;
5500
+ display: flex;
5501
+ flex-direction: column;
5502
+ gap: 8px;
5503
+ .address_line {
5504
+ display: flex;
5505
+ gap: 8px;
5506
+ }
5507
+ }
5508
+ }
5435
5509
  }
5436
5510
  }
5437
5511
  }
@@ -52,10 +52,6 @@
52
52
  gap: 24px;
53
53
  margin-top: 24px;
54
54
  .primary_btn {
55
- // padding: 12px 24px;
56
- // border-radius: 6px;
57
- // background-color: var(--_base-white);
58
- // color: var(--_primary-400);
59
55
  color: var(--_thm-cs-tt-ls-as);
60
56
  font-weight: 400;
61
57
  font-size: 14px;
@@ -67,22 +63,21 @@
67
63
  .empty_crt_btn {
68
64
  padding: 12px 24px;
69
65
  border-radius: 4px;
70
- // background-color: var(--_primary-400);
71
66
  font-weight: 600px;
72
67
  display: inline-flex;
73
68
  align-items: center;
74
69
  gap: 8px;
75
- &:hover {
76
- // background-color: var(--_primary-500);
70
+
71
+ span {
72
+ display: flex;
77
73
  }
74
+
78
75
  .label {
79
- // color: var(--_base-white);
80
76
  color: var(--_thm-py-bs-dt-se-tt-cr);
81
77
  font-size: 16px;
82
78
  }
83
79
  svg path {
84
80
  stroke: var(--_thm-py-bs-dt-se-tt-cr);
85
- // stroke: var(--_base-white);
86
81
  }
87
82
  }
88
83
  }
package/dist/filters.scss CHANGED
@@ -718,11 +718,6 @@ $resizeActive: '[data-cms-element-resizer="true"]';
718
718
  border-bottom: 1px solid var(--_gray-300);
719
719
  }
720
720
  li {
721
- // display: flex;
722
- // align-items: center;
723
- // justify-content: space-between;
724
- // padding-block: 6px;
725
- // font-size: 14px;
726
721
  display: flex;
727
722
  align-items: center;
728
723
  justify-content: space-between;
@@ -872,22 +867,24 @@ $resizeActive: '[data-cms-element-resizer="true"]';
872
867
  // color: var(--_primary-700);
873
868
  // }
874
869
  }
870
+ &:has(.no__results__found) {
871
+ .no__results__found {
872
+ padding: 12px;
873
+ color: var(--_gray-600);
874
+ display: flex;
875
+ justify-content: center;
876
+ background: var(--_gray-100);
877
+ padding: 12px;
878
+ border-radius: 4px;
879
+ font-weight: 600;
880
+ color: var(--_gray-600);
881
+ }
882
+ }
875
883
  }
876
884
  }
877
885
  }
878
886
  }
879
887
 
880
- .no__results__found {
881
- padding: 8px;
882
- color: var(--_gray-600);
883
- justify-content: center;
884
- background: var(--_gray-100);
885
- padding: 12px;
886
- border-radius: 4px;
887
- font-weight: 600;
888
- color: var(--_gray-600);
889
- }
890
-
891
888
  .filter__inline {
892
889
  // margin: 30px;
893
890
  display: flex;
@@ -2099,6 +2096,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
2099
2096
  // padding: 20px;
2100
2097
  width: 100%;
2101
2098
  max-width: 300px;
2099
+ padding-inline: 4px;
2102
2100
  // margin: auto;
2103
2101
  }
2104
2102
 
@@ -6,6 +6,7 @@ $editorWrapper: ".flx__txt__edt__wrapper";
6
6
  $editor: '[contenteditable="true"]';
7
7
  $suggestionsMain: ".flex__suggestions__box";
8
8
  $textElement: '[data-element-type="text"]';
9
+ $textElementV2: '[data-custom-type="custom__text"]';
9
10
  $dataBodyShowFalse: '[data-body-show="false"]';
10
11
  $titleDiv: ".ttl__dv";
11
12
  $bodyDiv: ".bd__dv";
@@ -18,7 +19,8 @@ $editorIframe: '[data-iframe-body="true"]';
18
19
  $width: 225px;
19
20
  $height: 300px;
20
21
 
21
- #{$textElement} {
22
+ #{$textElement},
23
+ #{$textElementV2} {
22
24
  #{$editorMain} {
23
25
  position: var(--_p-relative);
24
26
 
@@ -135,7 +137,7 @@ $height: 300px;
135
137
  }
136
138
  }
137
139
  }
138
- #{$macroChip}:is(#{$editorIframe} *, #{$dataDecodedV2}) {
140
+ #{$macroChip}:is(#{$editorIframe} *, #{$dataDecodedV2}, #{$textElementV2} *) {
139
141
  @extend .macro_styles;
140
142
  user-select: all;
141
143
  }
@@ -1,15 +1,15 @@
1
1
  .product_img {
2
- background-color: var(--_base-white);
2
+ // background-color: var(--_base-white);
3
3
  border-radius: 6px;
4
4
  display: flex;
5
5
  justify-content: center;
6
6
  align-items: center;
7
- border: 1px solid var(--_gray-200);
7
+ // border: 1px solid var(--_gray-200);
8
8
  overflow: hidden;
9
9
  img {
10
10
  max-height: 100%;
11
11
  object-fit: contain;
12
- padding: 4px;
12
+ // padding: 4px;
13
13
  }
14
14
  .no_image {
15
15
  padding: 16px;
@@ -444,8 +444,8 @@
444
444
  }
445
445
 
446
446
  .est__dropdown__icon {
447
- position: absolute;
448
- right: 0;
447
+ // position: absolute;
448
+ // right: 0;
449
449
  transition: transform 0.4s ease-in-out;
450
450
  display: flex;
451
451
  &.rotate__180 {
@@ -478,6 +478,7 @@
478
478
  top: 100%;
479
479
  left: 0;
480
480
  width: 100%;
481
+ padding: 4px;
481
482
  background-color: #fff;
482
483
  border-radius: prepareMediaVariable(--_ctm-dn-wt-dn-br-rs);
483
484
  z-index: var(--_higher-zIndex);
@@ -502,6 +503,9 @@
502
503
 
503
504
  .option {
504
505
  cursor: pointer;
506
+ &:not(:last-child) {
507
+ margin-bottom: 2px;
508
+ }
505
509
  // padding: 4px;
506
510
  // &:hover {
507
511
  // background: var(--_gray-100);
@@ -0,0 +1,217 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="productHighlights"] {
6
+ // width: var(--_lt-wh);
7
+ // height: var(--_lt-ht);
8
+ // margin: var(--_lt-mn);
9
+ // padding: var(--_lt-pg);
10
+ // width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
11
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
12
+ width: var(
13
+ --_sf-el-wh-st-mx,
14
+ calc(
15
+ 1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))
16
+ )
17
+ );
18
+ margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
19
+ // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
20
+ // height: ;
21
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
22
+ // --_aspect-ratio: calc(
23
+ // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
24
+ // );
25
+
26
+ & > .wrapper {
27
+ width: 100%;
28
+ // height: 100%;
29
+ }
30
+ &[data-show-shadow="false"] {
31
+ --_show-shadow: none;
32
+ }
33
+ &[data-overflow-items="Scroll"] {
34
+ .horizontal {
35
+ width: 100%;
36
+ overflow-x: auto;
37
+ .item {
38
+ width: 100%;
39
+ flex-shrink: 0;
40
+ }
41
+ }
42
+ .vertical {
43
+ overflow-y: auto;
44
+ max-height: 30%;
45
+ }
46
+ }
47
+ .text-element {
48
+ color: #333;
49
+ font-family: Lato;
50
+ font-size: 12px;
51
+ font-style: normal;
52
+ font-weight: 400;
53
+ line-height: 18px;
54
+ margin-bottom: 6px;
55
+ }
56
+ .highlights__container {
57
+ background-color: var(
58
+ --_ctm-mob-dn-wt-se-bd-cr,
59
+ var(--_ctm-tab-dn-wt-se-bd-cr, var(--_ctm-dn-wt-se-bd-cr))
60
+ );
61
+
62
+ border-color: var(
63
+ --_ctm-mob-dn-wt-se-br-cr,
64
+ var(--_ctm-tab-dn-wt-se-br-cr, var(--_ctm-dn-wt-se-br-cr))
65
+ );
66
+
67
+ border-style: var(
68
+ --_ctm-mob-dn-wt-se-br-se,
69
+ var(--_ctm-tab-dn-wt-se-br-se, var(--_ctm-dn-wt-se-br-se))
70
+ );
71
+
72
+ border-width: var(
73
+ --_ctm-mob-dn-wt-se-br-wh,
74
+ var(--_ctm-tab-dn-wt-se-br-wh, var(--_ctm-dn-wt-se-br-wh))
75
+ );
76
+
77
+ border-radius: var(
78
+ --_ctm-mob-dn-wt-se-br-rs,
79
+ var(--_ctm-tab-dn-wt-se-br-rs, var(--_ctm-dn-wt-se-br-rs))
80
+ );
81
+
82
+ box-shadow: var(
83
+ --_show-shadow,
84
+ var(--_ctm-mob-dn-wt-se-sw-ae, var(--_ctm-tab-dn-wt-se-sw-ae, var(--_ctm-dn-wt-se-sw-ae)))
85
+ var(--_ctm-mob-dn-wt-se-sw-br, var(--_ctm-tab-dn-wt-se-sw-br, var(--_ctm-dn-wt-se-sw-br)))
86
+ var(--_ctm-mob-dn-wt-se-sw-sd, var(--_ctm-tab-dn-wt-se-sw-sd, var(--_ctm-dn-wt-se-sw-sd)))
87
+ var(--_ctm-mob-dn-wt-se-sw-cr, var(--_ctm-tab-dn-wt-se-sw-cr, var(--_ctm-dn-wt-se-sw-cr)))
88
+ );
89
+
90
+ padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
91
+ padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
92
+ .stacK {
93
+ display: flex;
94
+ flex-direction: column;
95
+ .static {
96
+ font-size: 14px;
97
+ color: var(--_gray-700);
98
+ }
99
+ .horizontal {
100
+ display: flex;
101
+ gap: var(--_ctm-mob-lt-im-sg, var(--_ctm-tab-lt-im-sg, var(--_ctm-lt-im-sg, 10px)));
102
+
103
+ .item {
104
+ padding: var(--_ctm-mob-lt-im-pg, var(--_ctm-tab-lt-im-pg, var(--_ctm-lt-im-pg)));
105
+
106
+ // border: 1px solid #000;
107
+ max-width: 65px;
108
+ img {
109
+ width: 100%;
110
+ height: 100%;
111
+ object-fit: cover;
112
+ }
113
+ }
114
+ &[data-overflow-items="Wrap"] {
115
+ flex-wrap: wrap;
116
+ .item {
117
+ img {
118
+ object-fit: contain;
119
+ }
120
+ }
121
+ }
122
+ &[data-overflow-items="Scroll"] {
123
+ width: 100%;
124
+ overflow-x: auto;
125
+ .item {
126
+ width: 100%;
127
+ }
128
+ }
129
+ &[divider-between-items="true"] {
130
+ .item {
131
+ &:not(:last-child) {
132
+ border-right: 1px solid var(--_gray-400);
133
+ }
134
+ }
135
+ }
136
+
137
+ &[items-content-alignement="right"] {
138
+ justify-content: flex-end;
139
+ }
140
+ &[items-content-alignement="left"] {
141
+ justify-content: flex-start;
142
+ }
143
+ &[items-content-alignement="center"] {
144
+ justify-content: center;
145
+ }
146
+ }
147
+ .vertical {
148
+ display: flex;
149
+ flex-direction: column;
150
+ gap: var(--_ctm-mob-lt-im-sg, var(--_ctm-tab-lt-im-sg, var(--_ctm-lt-im-sg)));
151
+ .item {
152
+ padding: var(--_ctm-mob-lt-im-pg, var(--_ctm-tab-lt-im-pg, var(--_ctm-lt-im-pg)));
153
+
154
+ // border: 1px solid #000;
155
+ max-width: 65px;
156
+ img {
157
+ width: 100%;
158
+ height: 100%;
159
+ object-fit: contain;
160
+ }
161
+ }
162
+ &[data-overflow-items="Scroll"] {
163
+ overflow-y: auto;
164
+ }
165
+ &[divider-between-items="true"] {
166
+ .item {
167
+ &:not(:last-child) {
168
+ border-bottom: 1px solid var(--_gray-400);
169
+ }
170
+ }
171
+ }
172
+ &[items-content-alignement="right"] {
173
+ align-items: flex-end;
174
+ }
175
+ &[items-content-alignement="left"] {
176
+ align-items: flex-start;
177
+ }
178
+ &[items-content-alignement="center"] {
179
+ align-items: center;
180
+ }
181
+ }
182
+ .grid {
183
+ display: grid;
184
+ grid-template-columns: repeat(var(--_ctm-lt-is-pr-rw), minmax(auto, 1fr));
185
+ grid-template-columns: repeat(
186
+ var(--_ctm-mob-lt-is-pr-rw, var(--_ctm-tab-lt-is-pr-rw, var(--_ctm-lt-is-pr-rw))),
187
+ minmax(auto, 1fr)
188
+ );
189
+
190
+ &[data-overflow-items="Scroll"] {
191
+ height: 200px;
192
+ overflow-y: auto;
193
+ }
194
+ .item {
195
+ height: 65px;
196
+ width: 100%;
197
+ border: 1px solid #000;
198
+ display: flex;
199
+ justify-content: center;
200
+ align-items: center;
201
+ padding: var(--_ctm-mob-lt-im-pg, var(--_ctm-tab-lt-im-pg, var(--_ctm-lt-im-pg)));
202
+
203
+ border-right: 1px solid #666;
204
+ &:nth-child(6n) {
205
+ border-right: none; /* Remove the border for the last column */
206
+ }
207
+ img {
208
+ max-width: 100%;
209
+ max-height: 100%;
210
+ object-fit: contain;
211
+ }
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
217
+ }