@sc-360-v2/storefront-cms-library 0.3.63 → 0.3.65

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.
@@ -258,8 +258,10 @@ $resizeActive: '[data-cms-element-resizer="true"]';
258
258
  gap: 8px;
259
259
  cursor: pointer;
260
260
  width: fit-content;
261
+
261
262
  span {
262
263
  color: var(--_gray-500);
264
+
263
265
  span {
264
266
  color: var(--_gray-900);
265
267
  font-weight: 500;
@@ -272,6 +274,29 @@ $resizeActive: '[data-cms-element-resizer="true"]';
272
274
  min-height: 100px;
273
275
  resize: vertical;
274
276
  }
277
+
278
+ .global-can-edit {
279
+ display: flex;
280
+ flex-direction: column;
281
+ align-items: flex-start;
282
+ margin-left: 20px;
283
+ margin-top: 6px;
284
+ gap: 6px;
285
+
286
+ input[type="checkbox"] {
287
+ margin: 0;
288
+ width: 16px;
289
+ height: 16px;
290
+ cursor: pointer;
291
+ }
292
+
293
+ span {
294
+ font-size: 0.875rem;
295
+ font-weight: 600;
296
+ color: var(--_gray-900);
297
+ margin-left: -15px;
298
+ }
299
+ }
275
300
  }
276
301
 
277
302
  .employee-row-wrapper {
@@ -1713,3 +1738,37 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1713
1738
  background-color: var(--_base-white);
1714
1739
  }
1715
1740
  }
1741
+
1742
+ // cart wrapper styles
1743
+
1744
+ .wrapper {
1745
+ &[data-div-type="cms-cart-element-wrapper"] {
1746
+ background-color: var(--_base-white);
1747
+ }
1748
+ }
1749
+ .cart_wrapper_container {
1750
+ display: flex;
1751
+ flex-direction: column;
1752
+ gap: 24px;
1753
+ height: 400px;
1754
+ background-color: var(--_base-white);
1755
+ h2 {
1756
+ margin-bottom: 24px;
1757
+ }
1758
+ .cart_wrapper_empty_styles {
1759
+ height: 400px;
1760
+ display: flex;
1761
+ justify-content: center;
1762
+ align-items: center;
1763
+ font-size: 20px;
1764
+ color: var(--_gray-900);
1765
+ }
1766
+ .cart_wrapper_loading {
1767
+ height: 400px;
1768
+ display: flex;
1769
+ justify-content: center;
1770
+ align-items: center;
1771
+ font-size: 20px;
1772
+ color: var(--_gray-900);
1773
+ }
1774
+ }
@@ -266,7 +266,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
266
266
  display: flex;
267
267
  flex-direction: column;
268
268
  gap: 4px;
269
- width: 184px;
269
+ width: 100%;
270
270
  // gap: calc(var(--_ctm-lt-im-gp) / 4);
271
271
 
272
272
  .cart_summary_product_content {
@@ -124,17 +124,52 @@ $button-padding: 6px 12px;
124
124
  display: flex;
125
125
  flex-direction: column;
126
126
  gap: 2px;
127
- &.empty_message {
127
+ .empty_message {
128
+ height: 200px;
128
129
  display: flex;
129
- align-items: center;
130
130
  justify-content: center;
131
- font-size: 14px;
131
+ align-items: center;
132
+ padding: 24px;
133
+ font-size: 16px;
132
134
  font-weight: 500;
133
- height: 100%;
134
- .option {
135
- cursor: auto;
136
- &:hover {
137
- background-color: none !important;
135
+ text-align: center;
136
+ .dots {
137
+ display: inline-flex;
138
+ width: 20px; /* fixed space so text doesn’t shift */
139
+ justify-content: space-between;
140
+ align-items: flex-end;
141
+ margin-left: 6px;
142
+ margin-bottom: -9px;
143
+ }
144
+
145
+ .dots span {
146
+ animation: blink 1.5s infinite;
147
+ opacity: 0;
148
+ width: 2px;
149
+ height: 2px;
150
+ border-radius: 50%;
151
+ background-color: var(--_gray-700);
152
+ }
153
+
154
+ .dots span:nth-child(1) {
155
+ animation-delay: 0s;
156
+ }
157
+ .dots span:nth-child(2) {
158
+ animation-delay: 0.3s;
159
+ }
160
+ .dots span:nth-child(3) {
161
+ animation-delay: 0.6s;
162
+ }
163
+
164
+ @keyframes blink {
165
+ 0% {
166
+ opacity: 0;
167
+ }
168
+ 50% {
169
+ opacity: 1;
170
+ }
171
+ 100% {
172
+ opacity: 0;
138
173
  }
139
174
  }
140
175
  }
@@ -0,0 +1,105 @@
1
+ .checkbox_container {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: 8px;
5
+ cursor: pointer;
6
+ position: relative;
7
+
8
+ &.disabled {
9
+ opacity: 0.6;
10
+ cursor: not-allowed;
11
+ }
12
+
13
+ .checkbox_input {
14
+ position: absolute;
15
+ opacity: 0;
16
+ cursor: pointer;
17
+ }
18
+
19
+ .checkbox_custom {
20
+ width: 16px;
21
+ height: 16px;
22
+ border: 2px solid #797583;
23
+ border-radius: 4px; // use 50% for circle
24
+ display: inline-block;
25
+ position: relative;
26
+ transition: all 0.2s ease;
27
+ }
28
+
29
+ // checked state
30
+ .checkbox_input:checked + .checkbox_custom {
31
+ background-color: var(--_primary-400);
32
+ border-color: var(--_primary-400);
33
+
34
+ &::after {
35
+ content: "";
36
+ position: absolute;
37
+ left: 4px;
38
+ top: 0px;
39
+ width: 3px;
40
+ height: 7px;
41
+ border: solid white;
42
+ border-width: 0 2px 2px 0;
43
+ transform: rotate(45deg);
44
+ }
45
+ }
46
+
47
+ .checkbox_label {
48
+ font-size: 14px;
49
+ color: var(--_gray-600);
50
+ }
51
+ }
52
+
53
+ // radio button
54
+ .radio_container {
55
+ display: flex;
56
+ align-items: center;
57
+ gap: 8px;
58
+ cursor: pointer;
59
+ position: relative;
60
+
61
+ &.disabled {
62
+ opacity: 0.6;
63
+ cursor: not-allowed;
64
+ }
65
+
66
+ .radio_input {
67
+ position: absolute;
68
+ opacity: 0;
69
+ cursor: pointer;
70
+ }
71
+
72
+ .radio_custom {
73
+ width: 16px;
74
+ height: 16px;
75
+ border: 2px solid #999;
76
+ border-radius: 50%; // round for radio
77
+ display: inline-block;
78
+ position: relative;
79
+ transition: all 0.2s ease;
80
+ }
81
+
82
+ // checked state
83
+ .radio_input:checked + .radio_custom {
84
+ background-color: var(--_primary-400);
85
+ border: 2px solid var(--_primary-400);
86
+
87
+ &::after {
88
+ content: "";
89
+ content: "";
90
+ position: absolute;
91
+ top: 50%;
92
+ left: 50%;
93
+ width: 8px;
94
+ height: 8px;
95
+ border-radius: 50%;
96
+ background: #fff;
97
+ transform: translate(-50%, -50%);
98
+ }
99
+ }
100
+
101
+ .radio_label {
102
+ font-size: 14px;
103
+ color: var(--_gray-600);
104
+ }
105
+ }
@@ -70,7 +70,7 @@
70
70
  font-size: 24px;
71
71
  color: var(--_gray-900);
72
72
  line-height: 32px;
73
- margin-top: 24px;
73
+ // margin-top: 24px;
74
74
  }
75
75
 
76
76
  .empty_msg_desc {
@@ -38,7 +38,7 @@
38
38
  font-size: 24px;
39
39
  color: var(--_gray-900);
40
40
  line-height: 32px;
41
- margin-top: 24px;
41
+ // margin-top: 24px;
42
42
  }
43
43
 
44
44
  .empty_msg_desc {
@@ -4,7 +4,7 @@
4
4
  display: flex;
5
5
  justify-content: center;
6
6
  align-items: center;
7
- border: 1px solid var(--_gray-100);
7
+ border: 1px solid var(--_gray-200);
8
8
  img {
9
9
  max-height: 100%;
10
10
  object-fit: contain;
package/dist/modal.scss CHANGED
@@ -167,6 +167,56 @@ $active_btn_text_color: #fff;
167
167
  background-color: var(--_base-white);
168
168
  box-shadow: 0px 0px 4px rgb(0, 0, 0, 0.1);
169
169
  border: 1px solid var(--_gray-200);
170
+
171
+ .empty_message {
172
+ height: 200px;
173
+ display: flex;
174
+ justify-content: center;
175
+ align-items: center;
176
+ padding: 24px;
177
+ font-size: 16px;
178
+ font-weight: 500;
179
+ text-align: center;
180
+ .dots {
181
+ display: inline-flex;
182
+ width: 20px; /* fixed space so text doesn’t shift */
183
+ justify-content: space-between;
184
+ align-items: flex-end;
185
+ margin-left: 6px;
186
+ margin-bottom: -9px;
187
+ }
188
+
189
+ .dots span {
190
+ animation: blink 1.5s infinite;
191
+ opacity: 0;
192
+ width: 2px;
193
+ height: 2px;
194
+ border-radius: 50%;
195
+ background-color: var(--_gray-700);
196
+ }
197
+
198
+ .dots span:nth-child(1) {
199
+ animation-delay: 0s;
200
+ }
201
+ .dots span:nth-child(2) {
202
+ animation-delay: 0.3s;
203
+ }
204
+ .dots span:nth-child(3) {
205
+ animation-delay: 0.6s;
206
+ }
207
+
208
+ @keyframes blink {
209
+ 0% {
210
+ opacity: 0;
211
+ }
212
+ 50% {
213
+ opacity: 1;
214
+ }
215
+ 100% {
216
+ opacity: 0;
217
+ }
218
+ }
219
+ }
170
220
  .wishlist_overlay_header {
171
221
  display: flex;
172
222
  justify-content: space-between;
@@ -0,0 +1,84 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="myTemplates"] {
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: 50%;
12
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
13
+ width: var(
14
+ --_sf-el-wh-st-mx,
15
+ calc(
16
+ 1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))
17
+ )
18
+ );
19
+ margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
20
+
21
+ // height: clamp(var(--_ctm-lt-ht, 50px), 100px, auto) !important;
22
+ // height: var(--_ctm-lt-ht);
23
+ // height: ;
24
+ // height: auto;
25
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
26
+ // --_aspect-ratio: calc(
27
+ // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
28
+ // );
29
+
30
+ // &[data-element-sub-child="true"] {
31
+ // // width: max(var(--_sf-nw-wh, var(--_tst-lt-wh)));
32
+ // width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
33
+ // }
34
+
35
+ & > .wrapper {
36
+ // width: 100%;
37
+ // height: 100%;
38
+ }
39
+ &[data-show-shadow="false"] {
40
+ --_show-shadow: none;
41
+ }
42
+
43
+ .accordion-element {
44
+ background-color: var(
45
+ --_ctm-mob-dn-fq-wt-bd-cr,
46
+ var(--_ctm-tab-dn-fq-wt-bd-cr, var(--_ctm-dn-fq-wt-bd-cr))
47
+ );
48
+ padding: var(--_ctm-mob-lt-pg, var(--_ctm-tab-lt-pg, var(--_ctm-lt-pg)));
49
+ display: flex;
50
+ flex-direction: column;
51
+ --_sf-gp: var(
52
+ --_ctm-mob-lt-im-sg,
53
+ var(--_ctm-tab-lt-im-sg, var(--_ctm-lt-im-sg, var(--_ctm-lt-im-sg), 16px))
54
+ );
55
+ --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
56
+ row-gap: var(--_sf-gp);
57
+ width: 100%;
58
+ // height: 100%;
59
+ border-color: var(
60
+ --_ctm-mob-dn-fq-wt-br-cr,
61
+ var(--_ctm-tab-dn-fq-wt-br-cr, var(--_ctm-dn-fq-wt-br-cr))
62
+ );
63
+ border-style: var(
64
+ --_ctm-mob-dn-fq-wt-br-se,
65
+ var(--_ctm-tab-dn-fq-wt-br-se, var(--_ctm-dn-fq-wt-br-se))
66
+ );
67
+ border-width: var(
68
+ --_ctm-mob-dn-fq-wt-br-wh,
69
+ var(--_ctm-tab-dn-fq-wt-br-wh, var(--_ctm-dn-fq-wt-br-wh))
70
+ );
71
+ border-radius: var(
72
+ --_ctm-mob-dn-fq-wt-br-rs,
73
+ var(--_ctm-tab-dn-fq-wt-br-rs, var(--_ctm-dn-fq-wt-br-rs))
74
+ );
75
+ box-shadow: var(
76
+ --_show-shadow,
77
+ var(--_ctm-mob-dn-fq-wt-sw-ae, var(--_ctm-tab-dn-fq-wt-sw-ae, var(--_ctm-dn-fq-wt-sw-ae)))
78
+ var(--_ctm-mob-dn-fq-wt-sw-br, var(--_ctm-tab-dn-fq-wt-sw-br, var(--_ctm-dn-fq-wt-sw-br)))
79
+ var(--_ctm-mob-dn-fq-wt-sw-sd, var(--_ctm-tab-dn-fq-wt-sw-sd, var(--_ctm-dn-fq-wt-sw-sd)))
80
+ var(--_ctm-mob-dn-fq-wt-sw-cr, var(--_ctm-tab-dn-fq-wt-sw-cr, var(--_ctm-dn-fq-wt-sw-cr)))
81
+ );
82
+ }
83
+ }
84
+ }