@sc-360-v2/storefront-cms-library 0.3.71 → 0.3.73

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.
@@ -159,9 +159,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
159
159
  // --_ctm-mob-dn-ct-an-ss-cr,
160
160
  // var(--_ctm-tab-dn-ct-an-ss-cr, var(--_ctm-dn-ct-an-ss-cr))
161
161
  // );
162
-
163
162
  color: var(--_thm-cs-tt-ls-as);
164
-
165
163
  font-size: var(
166
164
  --_ctm-mob-dn-ct-an-ss-ft-se,
167
165
  var(--_ctm-tab-dn-ct-an-ss-ft-se, var(--_ctm-dn-ct-an-ss-ft-se))
@@ -28,7 +28,7 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
28
28
  width: 125px;
29
29
  max-width: 100%;
30
30
  height: 100vh;
31
- background: $background-color;
31
+ background: var(--_base-white);
32
32
  box-shadow: $shadow;
33
33
  z-index: 1001;
34
34
  display: flex;
@@ -162,7 +162,7 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
162
162
  }
163
163
  .item_action_btn {
164
164
  padding: 8px;
165
- color: var(--_primary-400);
165
+ color: #243dc6;
166
166
  // margin-top: 4px;
167
167
  border-radius: 4px;
168
168
  font-size: 14px;
@@ -171,7 +171,7 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
171
171
 
172
172
  &:hover {
173
173
  background-color: var(--_primary-50);
174
- color: var(--_primary-500);
174
+ color: #243dc6;
175
175
  }
176
176
  }
177
177
  }
@@ -207,7 +207,7 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
207
207
 
208
208
  &:hover {
209
209
  // background: darken($primary-color, 5%);
210
- background: color-mix(in srgb, #{$primary-color} 95%, transparent 5%);
210
+ background: color-mix(in srgb, #243dc6 95%, transparent 5%);
211
211
  }
212
212
  }
213
213
  }
@@ -233,7 +233,7 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
233
233
 
234
234
  .view_cart_btn {
235
235
  padding: 10px 15px;
236
- background-color: var(--_primary-400);
236
+ background-color: #243dc6;
237
237
  color: var(--_base-white);
238
238
  border: none;
239
239
  border-radius: 4px;
@@ -241,7 +241,7 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
241
241
  margin-bottom: 12px;
242
242
 
243
243
  &:hover {
244
- background-color: var(--_primary-500);
244
+ background-color: #2237ac;
245
245
  }
246
246
  }
247
247
  }
@@ -502,10 +502,11 @@
502
502
  --_ctm-mob-dn-as-cr-us-ft-fy,
503
503
  var(--_ctm-tab-dn-as-cr-us-ft-fy, var(--_ctm-dn-as-cr-us-ft-fy))
504
504
  );
505
- color: var(
506
- --_ctm-mob-dn-as-cr-us-cr,
507
- var(--_ctm-tab-dn-as-cr-us-cr, var(--_ctm-dn-as-cr-us-cr))
508
- );
505
+ // color: var(
506
+ // --_ctm-mob-dn-as-cr-us-cr,
507
+ // var(--_ctm-tab-dn-as-cr-us-cr, var(--_ctm-dn-as-cr-us-cr))
508
+ // );
509
+ color: var(--_thm-cs-tt-ls-as);
509
510
  font-weight: var(
510
511
  --_ctm-mob-dn-as-cr-us-ft-wt,
511
512
  var(--_ctm-tab-dn-as-cr-us-ft-wt, var(--_ctm-dn-as-cr-us-ft-wt))
@@ -681,7 +682,9 @@
681
682
  }
682
683
  }
683
684
  .input_toggle_switch_text {
684
- gap: 2px;
685
+ gap: 4px;
686
+ display: flex;
687
+ flex-direction: column;
685
688
  .checkbox_title {
686
689
  font-family: var(
687
690
  --_ctm-mob-dn-as-cr-as-bs-ft-fy,
@@ -2,6 +2,8 @@
2
2
  @use "sass:list";
3
3
  @use "./functions.scss" as *;
4
4
  $activeElementSelector: "[data-has-clicked='true']";
5
+ $resizerId: "[data-cms-tool='cms-element-resizer']";
6
+ $resizeActive: '[data-cms-element-resizer="true"]';
5
7
  [data-div-type="element"] {
6
8
  &[data-element-type="categoryGroups"] {
7
9
  // width: var(--_sf-catego-nw-wh);
@@ -111,6 +113,12 @@ $activeElementSelector: "[data-has-clicked='true']";
111
113
  }
112
114
  }
113
115
 
116
+ .loading_view {
117
+ width: 100%;
118
+ display: flex;
119
+ justify-content: center;
120
+ }
121
+
114
122
  // &[data-view-state="full"] {
115
123
  // width: auto;
116
124
  // margin: 0;
@@ -0,0 +1,267 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ $editorMain: ".flex__text__editor__main";
5
+ $editorWrapper: ".flx__txt__edt__wrapper";
6
+ $editor: '[contenteditable="true"]';
7
+ $suggestionsMain: ".flex__suggestions__box";
8
+ $textElement: '[data-element-type="text"]';
9
+ $dataBodyShowFalse: '[data-body-show="false"]';
10
+ $titleDiv: ".ttl__dv";
11
+ $bodyDiv: ".bd__dv";
12
+ $macroDiv: ".mcr__dv";
13
+ $macroChip: ".macro__chip__v2";
14
+ $previewMode: '[data-text-type="preview-mode"]';
15
+ $dataDecoded: '[data-decoded="true"]';
16
+ $editorIframe: '[data-iframe-body="true"]';
17
+ $width: 225px;
18
+ $height: 300px;
19
+
20
+ #{$textElement} {
21
+ #{$editorMain} {
22
+ position: var(--_p-relative);
23
+
24
+ #{$editor} {
25
+ word-wrap: break-word;
26
+ }
27
+ #{$suggestionsMain} {
28
+ position: var(--_p-fixed);
29
+ left: var(--_sf-lt-vl-sg);
30
+ top: var(--_sf-tp-vl-sg);
31
+ z-index: calc(var(--_higher-zIndex) + var(--_it-gl-zIndex) + 1);
32
+ border: 1px solid var(--_gray-200);
33
+ background: var(--_base-white);
34
+ box-shadow: 0px 1px 6px -2px var(--_gray-300);
35
+ border-radius: 6px;
36
+ width: $width;
37
+ max-height: var(--_sf-ht-vl-sg, $height);
38
+ overflow-y: auto;
39
+ transform: translateY(8px);
40
+
41
+ & > ul {
42
+ display: var(--_d-flex);
43
+ flex-direction: column;
44
+ width: 100%;
45
+
46
+ & > li {
47
+ display: var(--_d-flex);
48
+ flex-direction: column;
49
+ width: 100%;
50
+
51
+ &#{$dataBodyShowFalse} {
52
+ --_sf-db-bd-dp: var(--_d-none);
53
+ --_sf-sv-ic-rt: -90deg;
54
+ }
55
+
56
+ & > div {
57
+ &#{$titleDiv} {
58
+ padding: 8px 12px 8px 12px;
59
+ display: var(--_d-flex);
60
+ justify-content: space-between;
61
+ background-color: var(--_gray-50);
62
+ cursor: pointer;
63
+ border-bottom: 1px solid var(--_gray-200);
64
+ gap: 10px;
65
+
66
+ & > .left {
67
+ display: var(--_d-flex);
68
+ align-items: center;
69
+ gap: 4px;
70
+
71
+ & > span {
72
+ display: var(--_d-flex);
73
+ align-content: center;
74
+
75
+ &:nth-of-type(2) {
76
+ font-weight: 600;
77
+ font-size: 12px;
78
+ color: var(--_gray-600);
79
+ }
80
+ &:nth-of-type(1) {
81
+ svg {
82
+ width: 10px;
83
+ height: 10px;
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ & > span {
90
+ display: var(--_d-flex);
91
+ align-items: center;
92
+ transition: transform 0.45s ease;
93
+ transform: rotate(var(--_sf-sv-ic-rt, 0deg));
94
+
95
+ svg {
96
+ width: 10px;
97
+ height: 10px;
98
+ }
99
+ }
100
+ }
101
+
102
+ &#{$bodyDiv} {
103
+ display: var(--_sf-db-bd-dp, var(--_d-flex));
104
+ transition: display 0.45s ease;
105
+ flex-wrap: wrap;
106
+ gap: 8px;
107
+ padding: 12px;
108
+
109
+ & > div {
110
+ &#{$macroDiv} {
111
+ margin: 1px;
112
+ background-color: var(--_sf-hr-cr, var(--_gray-100));
113
+ border-radius: 6px;
114
+ padding: 6px 10px;
115
+ color: var(--_gray-600);
116
+ font-size: 14px;
117
+ font-weight: 500;
118
+ max-width: 150px;
119
+ text-overflow: ellipsis;
120
+ white-space: nowrap;
121
+ overflow: hidden;
122
+ transition: all 0.2s ease-in-out;
123
+ cursor: pointer;
124
+
125
+ &:hover {
126
+ --_sf-hr-cr: var(--_primary-50);
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ #{$macroChip}:is(#{$editorIframe} *) {
138
+ @extend .macro_styles;
139
+ }
140
+
141
+ #{$macroChip}:not(#{$dataDecoded}) {
142
+ &:is(#{$previewMode} *) {
143
+ @extend .macro_styles;
144
+ position: var(--_p-relative);
145
+ width: 62px;
146
+ display: var(--_d-inline-flex);
147
+ flex-direction: row-reverse;
148
+ align-items: center;
149
+ justify-content: center;
150
+ gap: 4px;
151
+ overflow: clip;
152
+
153
+ & > span {
154
+ display: var(--_d-none);
155
+ }
156
+ &::before {
157
+ font-size: 12px !important;
158
+ color: var(--_primary-400) !important;
159
+ content: "Loading";
160
+ }
161
+
162
+ &::after {
163
+ content: "";
164
+ // width: 6px;
165
+ // height: 6px;
166
+ // border: 1px solid var(--_primary-400);
167
+ // border-top-color: var(--_primary-100);
168
+ // border-radius: 50%;
169
+ // animation: spin 2s linear infinite;
170
+
171
+ width: 100%;
172
+ height: 100%;
173
+ background: linear-gradient(
174
+ 90deg,
175
+ rgba(255, 255, 255, 0) 0%,
176
+ rgba(255, 255, 255, 0.6) 50%,
177
+ rgba(255, 255, 255, 0) 100%
178
+ );
179
+ position: var(--_p-absolute);
180
+ animation: skeleton-shimmer 1.5s infinite cubic-bezier(0.02, 0.02, 1, 1.01);
181
+ }
182
+
183
+ @keyframes skeleton-shimmer {
184
+ 0% {
185
+ transform: translateX(-100%);
186
+ }
187
+ 100% {
188
+ transform: translateX(100%);
189
+ }
190
+ }
191
+
192
+ @keyframes spin {
193
+ to {
194
+ transform: rotate(360deg);
195
+ }
196
+ }
197
+ }
198
+ }
199
+ .macro_styles {
200
+ background: var(--_primary-50);
201
+ border-radius: 4px;
202
+ display: inline-flex;
203
+ padding-inline: 2px;
204
+ & > span {
205
+ color: var(--_primary-400) !important;
206
+ font-weight: 600 !important;
207
+ font-size: 12px !important;
208
+ line-height: 1.4 !important;
209
+ }
210
+ }
211
+
212
+ // Popup
213
+ .custom__attribute__popup__v2 {
214
+ background: var(--_base-white);
215
+ padding: 8px;
216
+ border-radius: 4px;
217
+ width: 200px;
218
+ box-shadow: var(--_shadow-x3);
219
+ display: flex;
220
+ flex-direction: column;
221
+ row-gap: 8px;
222
+ // transform: translate(50%, 50px);
223
+
224
+ & > div {
225
+ &.body__div {
226
+ display: flex;
227
+ flex-direction: column;
228
+ gap: 6px;
229
+
230
+ & > p {
231
+ font-size: 12px;
232
+ font-weight: 600;
233
+ word-break: break-all;
234
+ color: var(--_gray-900);
235
+ }
236
+
237
+ & > input {
238
+ border: 1px solid var(--_gray-200);
239
+ padding: 2px 4px;
240
+ border-radius: 4px;
241
+ font-size: 12px;
242
+ max-width: 100%;
243
+ width: 100%;
244
+ }
245
+ }
246
+
247
+ &.footer__div {
248
+ display: flex;
249
+ align-items: center;
250
+ gap: 8px;
251
+
252
+ & > button {
253
+ display: flex;
254
+ padding: 4px 8px;
255
+ font-size: 14px;
256
+ line-height: 1.4;
257
+ font-weight: 400;
258
+ border-radius: 4px;
259
+
260
+ &[data-type="submit"] {
261
+ background: var(--_primary-500);
262
+ color: #fff;
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
@@ -7,6 +7,7 @@ $mgc: '[data-element-type="mgContainer"]';
7
7
  $smp: '[data-element-type="simple-list"]';
8
8
  $wrapper: ".flex__menu__list__wrapper";
9
9
  $menuItem: ".flex__menu__item";
10
+ $activeMg: '[data-show-mg="true"]';
10
11
  // $subMenuContainer: ".flex__submenu__container";
11
12
  // $subMenuItem: ".flex__sub__menu__item";
12
13
  // $subMenuItemText: ".flex__sub__menu__item__text";
@@ -407,6 +408,12 @@ $defaultValues: (
407
408
  top: var(--_sf-mg-dm-ps-vl, 0px);
408
409
  }
409
410
  }
411
+
412
+ display: var(--_sf-bm-es-at-dp-vl, var(--_d-none)) !important;
413
+
414
+ &:is(#{$activeMg} > *) {
415
+ --_sf-bm-es-at-dp-vl: var(--_d-grid) !important;
416
+ }
410
417
  }
411
418
 
412
419
  // Sub Item Container
@@ -0,0 +1,17 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="myWishlist"] {
6
+ width: 100% !important;
7
+
8
+ & > .wrapper {
9
+ .template_wrapper {
10
+ width: 100%;
11
+ }
12
+ }
13
+ &[data-show-shadow="false"] {
14
+ --_show-shadow: none;
15
+ }
16
+ }
17
+ }