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

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.
@@ -1,160 +1,161 @@
1
- $Gray-900: #101828;
2
- $border-color: #a5a5a5;
3
- $Gray-600: #475467;
4
- $link-color: #243dc6;
5
-
6
- .customTreeWrapper {
7
- padding: 20px 20px 20px 145px;
8
-
9
- h3 {
10
- color: $Gray-900;
11
- font-size: 18px;
12
- font-weight: 700;
13
- line-height: 28px;
14
- margin-bottom: 12px;
15
- }
16
- .treeNode {
17
- position: relative;
18
- &::after {
19
- content: "";
20
- position: absolute;
21
- bottom: 0;
22
- left: 0;
23
- width: 100%;
24
- border-bottom: 1px dotted var(--_gray-300);
25
- }
26
- }
27
- .treeNode,
28
- .treeItem {
29
- position: relative;
30
- padding-left: 16px;
31
- border-left: 1px dotted var(--_gray-300);
32
- margin: 24px 0;
33
- }
34
-
35
- .dotLine {
36
- position: absolute;
37
- left: -5px;
38
- }
39
-
40
- // Base dot
41
- .dot {
42
- background-color: #7c90ab;
43
- border-radius: 50%;
44
- display: inline-block;
45
-
46
- &.default {
47
- width: 8px;
48
- height: 8px;
49
- margin-bottom: 6px;
50
- }
51
-
52
- &.small {
53
- width: 6px;
54
- height: 6px;
55
- margin: 6px 0 0 2px;
56
- }
57
- }
58
-
59
- .itemDetails {
60
- margin: 15px 0;
61
- p {
62
- color: $Gray-600;
63
- font-size: 12px;
64
- font-weight: 500;
65
- line-height: 18px;
66
- }
67
- }
68
-
69
- .category {
70
- color: $Gray-900;
71
- font-size: 12px;
72
- font-weight: 700;
73
- line-height: 18px;
74
- }
75
-
76
- .type {
77
- font-size: 12px;
78
- color: #555;
79
- margin-bottom: 2px;
80
- }
81
-
82
- .value {
83
- font-size: 14px;
84
- color: #333;
85
- max-width: 400px;
86
- word-break: break-word;
87
- }
88
- .itemValue {
89
- display: flex;
90
- color: var(--_gray-900);
91
- font-size: 14px;
92
- font-weight: 500;
93
- line-height: 20px;
94
- & > span {
95
- font-weight: 500;
96
- color: var(--_gray-900);
97
- }
98
- .link {
99
- color: $link-color;
100
- font-size: 14px;
101
- font-weight: 400;
102
- line-height: 20px;
103
- white-space: nowrap;
104
- display: inline-block;
105
- margin-left: 8px;
106
-
107
- &:hover {
108
- text-decoration: underline;
109
- }
110
- }
111
- }
112
- }
113
-
114
- // customization tree
115
-
116
- .modal-overlay-main-element {
117
- .modal-overlay-backdrop {
118
- position: fixed;
119
- top: 0;
120
- left: 0;
121
- width: 100%;
122
- height: 100%;
123
- background-color: rgba(0, 0, 0, 0.2);
124
- z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 9);
125
- animation: fadeIn 0.4s forwards;
126
- cursor: auto;
127
- }
128
- .modal-overlay-container {
129
- position: fixed;
130
- top: 50%;
131
- left: 50%;
132
- transform: translate(-50%, -50%);
133
- background-color: var(--_base-white);
134
- width: var(--_sf-ml-wh, 450px);
135
- max-width: 250px;
136
- height: 300px;
137
- padding: 12px;
138
- border-radius: 6px;
139
- display: flex;
140
- flex-direction: column;
141
- gap: 12px;
142
- z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 10);
143
- cursor: auto;
144
- .custom_image_overlay {
145
- .custom_image_container {
146
- height: 230px;
147
- width: 100%;
148
- background-color: var(--_gray-200);
149
- }
150
- .custom_image_footer {
151
- width: 100%;
152
- background-color: var(-_base-white);
153
- display: flex;
154
- justify-content: space-between;
155
- align-items: center;
156
- padding: 16px;
157
- }
158
- }
159
- }
160
- }
1
+ $Gray-900: #101828;
2
+ $border-color: #a5a5a5;
3
+ $Gray-600: #475467;
4
+ $link-color: #243dc6;
5
+
6
+ .customTreeWrapper {
7
+ // padding: 20px 20px 20px 145px;
8
+ padding: 0 20px;
9
+
10
+ h3 {
11
+ color: $Gray-900;
12
+ font-size: 18px;
13
+ font-weight: 700;
14
+ line-height: 28px;
15
+ margin-bottom: 12px;
16
+ }
17
+ .treeNode {
18
+ position: relative;
19
+ &::after {
20
+ content: "";
21
+ position: absolute;
22
+ bottom: 0;
23
+ left: 0;
24
+ width: 100%;
25
+ border-bottom: 1px dotted var(--_gray-300);
26
+ }
27
+ }
28
+ .treeNode,
29
+ .treeItem {
30
+ position: relative;
31
+ padding-left: 16px;
32
+ border-left: 1px dotted var(--_gray-300);
33
+ margin: 24px 0;
34
+ }
35
+
36
+ .dotLine {
37
+ position: absolute;
38
+ left: -5px;
39
+ }
40
+
41
+ // Base dot
42
+ .dot {
43
+ background-color: #7c90ab;
44
+ border-radius: 50%;
45
+ display: inline-block;
46
+
47
+ &.default {
48
+ width: 8px;
49
+ height: 8px;
50
+ margin-bottom: 6px;
51
+ }
52
+
53
+ &.small {
54
+ width: 6px;
55
+ height: 6px;
56
+ margin: 6px 0 0 2px;
57
+ }
58
+ }
59
+
60
+ .itemDetails {
61
+ margin: 15px 0;
62
+ p {
63
+ color: $Gray-600;
64
+ font-size: 12px;
65
+ font-weight: 500;
66
+ line-height: 18px;
67
+ }
68
+ }
69
+
70
+ .category {
71
+ color: $Gray-900;
72
+ font-size: 12px;
73
+ font-weight: 700;
74
+ line-height: 18px;
75
+ }
76
+
77
+ .type {
78
+ font-size: 12px;
79
+ color: #555;
80
+ margin-bottom: 2px;
81
+ }
82
+
83
+ .value {
84
+ font-size: 14px;
85
+ color: #333;
86
+ max-width: 400px;
87
+ word-break: break-word;
88
+ }
89
+ .itemValue {
90
+ // display: flex;
91
+ color: var(--_gray-900);
92
+ font-size: 14px;
93
+ font-weight: 500;
94
+ line-height: 20px;
95
+ & > span {
96
+ font-weight: 500;
97
+ color: var(--_gray-900);
98
+ }
99
+ .link {
100
+ color: $link-color;
101
+ font-size: 14px;
102
+ font-weight: 400;
103
+ line-height: 20px;
104
+ white-space: nowrap;
105
+ display: inline-block;
106
+ margin-left: 8px;
107
+
108
+ &:hover {
109
+ text-decoration: underline;
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ // customization tree
116
+
117
+ .modal-overlay-main-element {
118
+ .modal-overlay-backdrop {
119
+ position: fixed;
120
+ top: 0;
121
+ left: 0;
122
+ width: 100%;
123
+ height: 100%;
124
+ background-color: rgba(0, 0, 0, 0.2);
125
+ z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 9);
126
+ animation: fadeIn 0.4s forwards;
127
+ cursor: auto;
128
+ }
129
+ .modal-overlay-container {
130
+ position: fixed;
131
+ top: 50%;
132
+ left: 50%;
133
+ transform: translate(-50%, -50%);
134
+ background-color: var(--_base-white);
135
+ width: var(--_sf-ml-wh, 450px);
136
+ max-width: 250px;
137
+ height: 300px;
138
+ padding: 12px;
139
+ border-radius: 6px;
140
+ display: flex;
141
+ flex-direction: column;
142
+ gap: 12px;
143
+ z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 10);
144
+ cursor: auto;
145
+ .custom_image_overlay {
146
+ .custom_image_container {
147
+ height: 230px;
148
+ width: 100%;
149
+ background-color: var(--_gray-200);
150
+ }
151
+ .custom_image_footer {
152
+ width: 100%;
153
+ background-color: var(-_base-white);
154
+ display: flex;
155
+ justify-content: space-between;
156
+ align-items: center;
157
+ padding: 16px;
158
+ }
159
+ }
160
+ }
161
+ }
@@ -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.63",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {