@sc-360-v2/storefront-cms-library 0.4.61 → 0.4.62

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.
@@ -62,9 +62,9 @@ $pos2: (
62
62
  & > .wrapper {
63
63
  width: 100%;
64
64
  // gap: prepareMediaVariable(--_ctm-lt-im-gp);
65
- row-gap: prepareMediaVariable(--_ctm-lt-rw-gp);
66
- column-gap: prepareMediaVariable(--_ctm-lt-cn-gp);
67
- padding: prepareMediaVariable(--_ctm-lt-pg);
65
+ row-gap: prepareMediaVariable(--_ctm-lt-rw-gp, 0px);
66
+ column-gap: prepareMediaVariable(--_ctm-lt-cn-gp, 0px);
67
+ padding: prepareMediaVariable(--_ctm-lt-pg, 0px);
68
68
  display: var(--_d-flex) !important;
69
69
 
70
70
  &.hrz {
@@ -73,13 +73,13 @@ $pos2: (
73
73
  align-items: prepareMediaVariable(--_ctm-lt-an-is);
74
74
  justify-content: prepareMediaVariable(--_ctm-lt-jy-ct);
75
75
  flex-wrap: prepareMediaVariable(--_ctm-lt-fx-wp);
76
- --_ctm-custom-lt-im-gp: #{prepareMediaVariable(--_ctm-lt-cn-gp)};
76
+ --_ctm-custom-lt-im-gp: #{prepareMediaVariable(--_ctm-lt-cn-gp, 0px)};
77
77
  }
78
78
  &.vtl {
79
79
  flex-direction: column;
80
80
  justify-content: prepareMediaVariable(--_ctm-lt-an-is);
81
81
  align-items: prepareMediaVariable(--_ctm-lt-jy-ct);
82
- --_ctm-custom-lt-im-gp: #{prepareMediaVariable(--_ctm-lt-rw-gp)};
82
+ --_ctm-custom-lt-im-gp: #{prepareMediaVariable(--_ctm-lt-rw-gp, 0px)};
83
83
  }
84
84
 
85
85
  &[data-show-border="true"] {
@@ -146,10 +146,10 @@ $pos2: (
146
146
 
147
147
  & > .#{$item} {
148
148
  display: var(--_d-flex);
149
- gap: var(--_in_hr-gp, prepareMediaVariable(--_ctm-dn-in-dt-se-in-gp));
149
+ gap: var(--_in_hr-gp, prepareMediaVariable(--_ctm-dn-in-dt-se-in-gp, 0px));
150
150
 
151
151
  &:hover {
152
- --_in_hr-gp: #{prepareMediaVariable(--_ctm-dn-in-hr-se-in-gp)};
152
+ --_in_hr-gp: #{prepareMediaVariable(--_ctm-dn-in-hr-se-in-gp, 0px)};
153
153
  --_in-hr-sz: #{prepareMediaVariable(--_ctm-dn-in-hr-se-in-se)};
154
154
  --_in-hr-as: #{prepareMediaVariable(--_ctm-dn-in-hr-se-vl-at)};
155
155
  --_in-hr-cr: #{prepareMediaVariable(--_ctm-dn-in-hr-se-in-c1)};
@@ -188,14 +188,14 @@ $pos2: (
188
188
  flex-direction: column;
189
189
  align-self: prepareMediaVariable(--_ctm-dn-tt-cr-vl-at);
190
190
  padding: prepareMediaVariable(--_ctm-dn-tt-cr-pg);
191
- row-gap: prepareMediaVariable(--_ctm-dn-tt-cr-im-gp);
191
+ row-gap: prepareMediaVariable(--_ctm-dn-tt-cr-im-gp, 0px);
192
192
  &[data-show-divider="true"] {
193
193
  // margin-inline-start: calc(
194
194
  // #{prepareMediaVariable(--_ctm-dn-lt-lt-gp)} +
195
195
  // #{prepareMediaVariable(--_ctm-dn-lt-dr-wt)}
196
196
  // );
197
197
  margin-inline-start: calc(
198
- var(--_in_hr-gp, prepareMediaVariable(--_ctm-dn-in-dt-se-in-gp)) +
198
+ var(--_in_hr-gp, prepareMediaVariable(--_ctm-dn-in-dt-se-in-gp, 0px)) +
199
199
  var(
200
200
  --_ctm-mob-dn-tt-cr-dr-wt,
201
201
  var(--_ctm-tab-dn-tt-cr-dr-wt, var(--_ctm-dn-tt-cr-dr-wt, inherit))
@@ -229,7 +229,7 @@ $pos2: (
229
229
  --_ctm-mob-dn-tt-cr-dr-wt,
230
230
  var(--_ctm-tab-dn-tt-cr-dr-wt, var(--_ctm-dn-tt-cr-dr-wt, inherit))
231
231
  )
232
- ) - var(--_in_hr-gp, prepareMediaVariable(--_ctm-dn-in-dt-se-in-gp))
232
+ ) - var(--_in_hr-gp, prepareMediaVariable(--_ctm-dn-in-dt-se-in-gp, 0px))
233
233
  );
234
234
  width: prepareMediaVariable(--_ctm-dn-tt-cr-dr-wt);
235
235
  height: prepareMediaVariable(--_ctm-dn-tt-cr-dr-wh);
@@ -12,7 +12,9 @@ $isFlexboxElementChild: ".flx > .wrapper > *";
12
12
  &[data-element-type="brandImage"],
13
13
  &[data-element-type="categoryImage"],
14
14
  &[data-element-type="productBrandImage"] {
15
- cursor: pointer;
15
+ &:has(a) {
16
+ cursor: pointer;
17
+ }
16
18
  // width: var(--_lt-wh);
17
19
  // height: var(--_lt-ht);
18
20
  // margin: var(--_lt-mn);
@@ -153,7 +153,7 @@ $sliderControlDragging: "[flex-slider-control-moving='true']";
153
153
  display: flex !important;
154
154
  --_embla-slide-space: var(
155
155
  --_ctm-mob-lay-lt-im-gp,
156
- var(--_ctm-tab-lay-lt-im-gp, var(--_ctm-lay-lt-im-gp))
156
+ var(--_ctm-tab-lay-lt-im-gp, var(--_ctm-lay-lt-im-gp, 0px))
157
157
  );
158
158
  --_embla-col-count: var(
159
159
  --_ctm-mob-lay-lt-st-is-pr-se,
@@ -206,11 +206,11 @@ $sliderControlDragging: "[flex-slider-control-moving='true']";
206
206
  // --_ctm-mob-lay-lt-im-gp,
207
207
  // var(--_ctm-tab-lay-lt-im-gp, var(--_ctm-lay-lt-im-gp, 0px))
208
208
  // );
209
- gap: #{prepareMediaVariable(--_ctm-lay-lt-im-gp)};
209
+ gap: #{prepareMediaVariable(--_ctm-lay-lt-im-gp, 0px)};
210
210
  }
211
211
  &:is(.grd > *) {
212
- column-gap: #{prepareMediaVariable(--_ctm-lay-lt-cn-gp)};
213
- row-gap: #{prepareMediaVariable(--_ctm-lay-lt-rw-gp)};
212
+ column-gap: #{prepareMediaVariable(--_ctm-lay-lt-cn-gp, 0px)};
213
+ row-gap: #{prepareMediaVariable(--_ctm-lay-lt-rw-gp, 0px)};
214
214
  }
215
215
  // width: 100%;
216
216
  // grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
@@ -1,58 +1,58 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
-
4
- $selector: ".repeater__view__toggle";
5
- $wrapper: ".tgl__wrapper";
6
-
7
- @mixin FlexRepeaterGridToggleCSS() {
8
- #{$selector} {
9
- position: var(--_p-absolute);
10
- z-index: calc(var(--_higher-zIndex, 99999) - 2);
11
- left: var(--_sf-rp-gt-t3-left-vl, 0px);
12
- right: var(--_sf-rp-gt-t3-right-vl, auto);
13
- bottom: var(--_sf-rp-gt-t3-bottom-vl, auto);
14
- top: var(--_sf-rp-gt-t3-top-vl, 0px);
15
-
16
- & > div {
17
- &#{$wrapper} {
18
- display: var(--_d-flex);
19
- align-items: center;
20
- border: 1px solid var(--_primary-100);
21
- --_br-6: 6px;
22
- --_width-40: 40px;
23
- border-radius: var(--_br-6);
24
- background-color: var(--_base-white);
25
-
26
- & > button {
27
- display: var(--_d-flex);
28
- $size: var(--_width-40);
29
- width: $size;
30
- height: $size;
31
- align-items: center;
32
- justify-content: center;
33
-
34
- &:first-of-type {
35
- border-radius: 4px 0 0 4px;
36
- }
37
- &:last-of-type {
38
- border-radius: 0 4px 4px 0;
39
- }
40
-
41
- &[data-style-active="true"] {
42
- --_sf-at-pt-cl: var(--_primary-500);
43
- background: var(--_primary-100);
44
- }
45
-
46
- svg {
47
- width: calc(#{$size} * 0.5);
48
- height: calc(#{$size} * 0.5);
49
-
50
- path {
51
- stroke: var(--_sf-at-pt-cl, var(--_gray-500));
52
- }
53
- }
54
- }
55
- }
56
- }
57
- }
58
- }
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ $selector: ".repeater__view__toggle";
5
+ $wrapper: ".tgl__wrapper";
6
+
7
+ @mixin FlexRepeaterGridToggleCSS() {
8
+ #{$selector} {
9
+ position: var(--_p-absolute);
10
+ z-index: calc(var(--_higher-zIndex, 99999) - 2);
11
+ left: var(--_sf-rp-gt-t3-left-vl, 0px);
12
+ right: var(--_sf-rp-gt-t3-right-vl, auto);
13
+ bottom: var(--_sf-rp-gt-t3-bottom-vl, auto);
14
+ top: var(--_sf-rp-gt-t3-top-vl, 0px);
15
+
16
+ & > div {
17
+ &#{$wrapper} {
18
+ display: var(--_d-flex);
19
+ align-items: center;
20
+ border: 1px solid var(--_gray-200);
21
+ --_br-6: 6px;
22
+ --_width-40: 40px;
23
+ border-radius: var(--_br-6);
24
+ background-color: var(--_base-white);
25
+
26
+ & > button {
27
+ display: var(--_d-flex);
28
+ $size: var(--_width-40);
29
+ width: $size;
30
+ height: $size;
31
+ align-items: center;
32
+ justify-content: center;
33
+
34
+ &:first-of-type {
35
+ border-radius: 4px 0 0 4px;
36
+ }
37
+ &:last-of-type {
38
+ border-radius: 0 4px 4px 0;
39
+ }
40
+
41
+ &[data-style-active="true"] {
42
+ --_sf-at-pt-cl: var(--_gray-800);
43
+ background: var(--_gray-200);
44
+ }
45
+
46
+ svg {
47
+ width: calc(#{$size} * 0.5);
48
+ height: calc(#{$size} * 0.5);
49
+
50
+ path {
51
+ stroke: var(--_sf-at-pt-cl, var(--_gray-500));
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
@@ -102,7 +102,7 @@ $rai: "repeater-advertise-item";
102
102
  & > div {
103
103
  &.wrapper {
104
104
  display: var(--_d-grid);
105
- row-gap: prepareMediaVariable(--_ctm-rep-lt-im-gp-lt);
105
+ row-gap: prepareMediaVariable(--_ctm-rep-lt-im-gp-lt, 0px);
106
106
  grid-template-columns: 100%;
107
107
  // grid-template-rows: repeat(
108
108
  // auto-fit,
@@ -213,7 +213,7 @@ $rai: "repeater-advertise-item";
213
213
  // --_ctm-mob-rep-lt-im-gp,
214
214
  // var(--_ctm-tab-rep-lt-im-gp, var(--_ctm-rep-lt-im-gp, 0px))
215
215
  // );
216
- --_col-gap: #{prepareMediaVariable(--_ctm-rep-lt-cn-gp)};
216
+ --_col-gap: #{prepareMediaVariable(--_ctm-rep-lt-cn-gp, 0px)};
217
217
  width: calc(
218
218
  (100% / var(--_col-count)) -
219
219
  (((var(--_col-count) - 1) * var(--_col-gap)) / (var(--_col-count)))
@@ -276,7 +276,7 @@ $rai: "repeater-advertise-item";
276
276
  display: flex !important;
277
277
  --_embla-slide-space: var(
278
278
  --_ctm-mob-rep-lt-im-gp,
279
- var(--_ctm-tab-rep-lt-im-gp, var(--_ctm-rep-lt-im-gp))
279
+ var(--_ctm-tab-rep-lt-im-gp, var(--_ctm-rep-lt-im-gp, 0px))
280
280
  );
281
281
  min-height: 100px !important;
282
282
  --_embla-col-count: var(
@@ -319,11 +319,11 @@ $rai: "repeater-advertise-item";
319
319
  & > div {
320
320
  &.wrapper {
321
321
  &:is(.sld > *) {
322
- gap: #{prepareMediaVariable(--_ctm-rep-lt-im-gp)};
322
+ gap: #{prepareMediaVariable(--_ctm-rep-lt-im-gp, 0px)};
323
323
  }
324
324
  &:is(:not(.sld > *)) {
325
- column-gap: #{prepareMediaVariable(--_ctm-rep-lt-cn-gp)};
326
- row-gap: #{prepareMediaVariable(--_ctm-rep-lt-rw-gp)};
325
+ column-gap: #{prepareMediaVariable(--_ctm-rep-lt-cn-gp, 0px)};
326
+ row-gap: #{prepareMediaVariable(--_ctm-rep-lt-rw-gp, 0px)};
327
327
  }
328
328
  // width: 100%;
329
329
  // grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
@@ -1645,6 +1645,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1645
1645
  )
1646
1646
  );
1647
1647
  white-space: nowrap;
1648
+ line-height: 0;
1648
1649
 
1649
1650
  color: var(
1650
1651
  --_ctm-mob-dn-ur-sy-io-dn-ct-ct-cr,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.4.61",
3
+ "version": "0.4.62",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {