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

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.
@@ -158,13 +158,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
158
158
  --_ctm-mob-dn-ct-an-ss-cr,
159
159
  var(--_ctm-tab-dn-ct-an-ss-cr, var(--_ctm-dn-ct-an-ss-cr))
160
160
  );
161
- font-family: var(
162
- --_sf-hr-ff,
163
- var(
164
- --_ctm-mob-dn-ct-an-ss-ft-fy,
165
- var(--_ctm-tab-dn-ct-an-ss-ft-fy, var(--_ctm-dn-ct-an-ss-ft-fy))
166
- )
167
- );
161
+
168
162
  font-size: var(
169
163
  --_ctm-mob-dn-ct-an-ss-ft-se,
170
164
  var(--_ctm-tab-dn-ct-an-ss-ft-se, var(--_ctm-dn-ct-an-ss-ft-se))
@@ -574,10 +568,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
574
568
  --_ctm-mob-dn-pt-ne-ss-tt-an,
575
569
  var(--_ctm-tab-dn-pt-ne-ss-tt-an, var(--_ctm-dn-pt-ne-ss-tt-an))
576
570
  );
577
- letter-spacing: var(
578
- --_ctm-mob-dn-pt-ne-ss-lr-sg,
579
- var(--_ctm-tab-dn-pt-ne-ss-lr-sg, var(--_ctm-dn-pt-ne-ss-lr-sg))
580
- );
571
+
581
572
  line-height: var(
582
573
  --_ctm-mob-dn-pt-ne-ss-le-ht,
583
574
  var(--_ctm-tab-dn-pt-ne-ss-le-ht, var(--_ctm-dn-pt-ne-ss-le-ht))
@@ -6564,7 +6564,9 @@ $dark-color: #343a40;
6564
6564
 
6565
6565
  .gc_tertiary_btn {
6566
6566
  color: var(--_primary-400);
6567
+
6567
6568
  font-size: 14px;
6569
+ line-height: auto;
6568
6570
 
6569
6571
  &:hover {
6570
6572
  color: var(--_primary-500);
@@ -33,7 +33,6 @@
33
33
  }
34
34
 
35
35
  .empty_msg_title {
36
- font-family: "Lato";
37
36
  font-weight: 700;
38
37
  font-size: 24px;
39
38
  color: var(--_gray-900);
package/dist/modal.scss CHANGED
@@ -1,6 +1,6 @@
1
1
  //modalv1
2
2
  // Variables
3
- $modal_background_color: white;
3
+ $modal_background_color: var(--_base-white);
4
4
  $backdrop_color: rgba(0, 0, 0, 0.2);
5
5
  $box_shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
6
6
  $modal_width: 618px;
@@ -133,245 +133,244 @@ $active_btn_text_color: #fff;
133
133
  bottom: 0;
134
134
  width: 100%;
135
135
  margin-top: 24px;
136
+ }
137
+ .modal-footer-wrapper {
138
+ display: flex;
139
+ width: 100%;
140
+ gap: 12px;
136
141
 
137
- .modal-footer-wrapper {
138
- display: flex;
142
+ .wishlist_button_wrapper {
143
+ position: relative;
139
144
  width: 100%;
140
- gap: 12px;
141
-
142
- .wishlist_btn_wrapper {
143
- position: relative;
145
+ .wishlist_btn {
144
146
  width: 100%;
145
- .wishlist_btn {
146
- width: 100%;
147
+ display: flex;
148
+ justify-content: center;
149
+ align-items: center;
150
+ color: var(--_primary-400);
151
+ height: 100%;
152
+ &:hover {
153
+ text-decoration: underline;
154
+ color: var(--_primary-500);
155
+ }
156
+ }
157
+ .wishlist_list_overlay {
158
+ position: absolute;
159
+ z-index: 10;
160
+ top: 44px;
161
+ left: 41px;
162
+ min-height: 80px;
163
+ max-height: 190px;
164
+ width: 250px;
165
+ overflow-y: auto;
166
+ border-radius: 4px;
167
+ background-color: var(--_base-white);
168
+ box-shadow: 0px 0px 4px rgb(0, 0, 0, 0.1);
169
+ border: 1px solid var(--_gray-200);
170
+
171
+ .empty_message {
172
+ height: 200px;
147
173
  display: flex;
148
174
  justify-content: center;
149
175
  align-items: center;
150
- color: var(--_primary-400);
151
- height: 100%;
152
- &:hover {
153
- text-decoration: underline;
154
- color: var(--_primary-500);
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;
155
187
  }
156
- }
157
- .wishlist_overlay {
158
- position: absolute;
159
- z-index: 10;
160
- top: 44px;
161
- left: 41px;
162
- min-height: 80px;
163
- max-height: 190px;
164
- width: 250px;
165
- overflow-y: auto;
166
- border-radius: 4px;
167
- background-color: var(--_base-white);
168
- box-shadow: 0px 0px 4px rgb(0, 0, 0, 0.1);
169
- border: 1px solid var(--_gray-200);
170
188
 
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
- }
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
+ }
188
197
 
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
- }
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
+ }
197
207
 
198
- .dots span:nth-child(1) {
199
- animation-delay: 0s;
200
- }
201
- .dots span:nth-child(2) {
202
- animation-delay: 0.3s;
208
+ @keyframes blink {
209
+ 0% {
210
+ opacity: 0;
203
211
  }
204
- .dots span:nth-child(3) {
205
- animation-delay: 0.6s;
212
+ 50% {
213
+ opacity: 1;
206
214
  }
207
-
208
- @keyframes blink {
209
- 0% {
210
- opacity: 0;
211
- }
212
- 50% {
213
- opacity: 1;
214
- }
215
- 100% {
216
- opacity: 0;
217
- }
215
+ 100% {
216
+ opacity: 0;
218
217
  }
219
218
  }
220
- .wishlist_overlay_header {
219
+ }
220
+ .wishlist_overlay_header {
221
+ display: flex;
222
+ justify-content: space-between;
223
+ align-items: center;
224
+ padding: 12px;
225
+ font-size: 14px;
226
+ font-weight: 600;
227
+ }
228
+ .wishlist_list_items {
229
+ display: flex;
230
+ flex-direction: column;
231
+
232
+ .wishlist_item {
221
233
  display: flex;
222
- justify-content: space-between;
223
234
  align-items: center;
235
+ gap: 8px;
236
+ color: var(--_gray-700);
224
237
  padding: 12px;
225
- font-size: 14px;
226
- font-weight: 600;
227
- }
228
- .wishlist_items {
229
- display: flex;
230
- flex-direction: column;
231
-
232
- .wishlist_item {
233
- display: flex;
234
- align-items: center;
235
- gap: 8px;
236
- color: var(--_gray-700);
237
- padding: 12px;
238
- border-radius: 4px;
239
- cursor: pointer;
240
- position: relative;
241
- margin: 4px;
242
- &.active {
243
- color: var(--_primary-400);
244
- }
238
+ border-radius: 4px;
239
+ cursor: pointer;
240
+ position: relative;
241
+ margin: 4px;
242
+ &.active {
243
+ color: var(--_primary-400);
244
+ }
245
245
 
246
- &:not(:last-child) {
247
- margin-bottom: 2px;
248
- }
246
+ &:not(:last-child) {
247
+ margin-bottom: 2px;
248
+ }
249
249
 
250
- &:hover {
251
- background-color: var(--_primary-25);
252
- color: var(--_primary-400);
253
- }
250
+ &:hover {
251
+ background-color: var(--_primary-25);
252
+ color: var(--_primary-400);
253
+ }
254
254
 
255
- input {
256
- display: none; // hide default checkbox
257
- }
255
+ input {
256
+ display: none; // hide default checkbox
257
+ }
258
258
 
259
- .custom_checkbox {
260
- width: 18px;
261
- height: 18px;
262
- border: 2px solid var(--_gray-400);
263
- border-radius: 4px;
264
- display: inline-flex;
265
- align-items: center;
266
- justify-content: center;
267
- transition: all 0.2s ease-in-out;
268
- background-color: #fff;
259
+ .custom_checkbox {
260
+ width: 18px;
261
+ height: 18px;
262
+ border: 2px solid var(--_gray-400);
263
+ border-radius: 4px;
264
+ display: inline-flex;
265
+ align-items: center;
266
+ justify-content: center;
267
+ transition: all 0.2s ease-in-out;
268
+ background-color: #fff;
269
269
 
270
- &::after {
271
- content: "";
272
- width: 8px;
273
- height: 4px;
274
- border-left: 2px solid #fff;
275
- border-bottom: 2px solid #fff;
276
- transform: rotate(-45deg);
277
- opacity: 0;
278
- transition: opacity 0.2s ease-in-out;
279
- margin-bottom: 4px;
280
- }
270
+ &::after {
271
+ content: "";
272
+ width: 8px;
273
+ height: 4px;
274
+ border-left: 2px solid #fff;
275
+ border-bottom: 2px solid #fff;
276
+ transform: rotate(-45deg);
277
+ opacity: 0;
278
+ transition: opacity 0.2s ease-in-out;
279
+ margin-bottom: 4px;
281
280
  }
281
+ }
282
282
 
283
- input:checked + .custom_checkbox {
284
- background-color: var(--_primary-400);
285
- border-color: var(--_primary-400);
283
+ input:checked + .custom_checkbox {
284
+ background-color: var(--_primary-400);
285
+ border-color: var(--_primary-400);
286
286
 
287
- &::after {
288
- opacity: 1; // show tick mark
289
- }
287
+ &::after {
288
+ opacity: 1; // show tick mark
290
289
  }
290
+ }
291
291
 
292
- .label_text {
293
- font-size: 14px;
294
- font-weight: 500;
295
- }
292
+ .label_text {
293
+ font-size: 14px;
294
+ font-weight: 500;
296
295
  }
297
296
  }
297
+ }
298
298
 
299
- .wishlist_overlay_footer {
300
- display: flex;
301
- justify-content: space-between;
302
- align-items: center;
303
- padding: 8px;
304
- font-size: 14px;
305
- font-weight: 600;
306
- border-top: 1px solid var(--_gray-200);
307
- padding: 8px;
299
+ .wishlist_overlay_footer {
300
+ display: flex;
301
+ justify-content: space-between;
302
+ align-items: center;
303
+ padding: 8px;
304
+ font-size: 14px;
305
+ font-weight: 600;
306
+ border-top: 1px solid var(--_gray-200);
307
+ padding: 8px;
308
308
 
309
- .btn {
310
- padding: 8px 12px;
311
- width: 100%;
312
- border-radius: 4px;
313
- text-align: center;
314
- width: 100%;
315
- font-weight: 500;
316
- text-decoration: none !important;
317
- &.primary {
318
- background-color: var(--_primary-400);
319
- color: var(--_base-white);
320
- font-size: 14px;
321
- }
322
- &.secondary {
323
- color: var(--_gray-700);
324
- &:hover {
325
- color: var(--_gray-900);
309
+ .btn {
310
+ padding: 8px 12px;
311
+ width: 100%;
312
+ border-radius: 4px;
313
+ text-align: center;
314
+ width: 100%;
315
+ font-weight: 500;
316
+ text-decoration: none !important;
317
+ &.primary {
318
+ background-color: var(--_primary-400);
319
+ color: var(--_base-white);
320
+ font-size: 14px;
321
+ }
322
+ &.secondary {
323
+ color: var(--_gray-700);
324
+ &:hover {
325
+ color: var(--_gray-900);
326
326
 
327
- background-color: var(--_gray-100);
328
- }
327
+ background-color: var(--_gray-100);
329
328
  }
330
329
  }
331
330
  }
331
+ }
332
332
 
333
- .no_wishlist,
334
- .loading_state {
335
- min-height: 80px;
336
- display: flex;
337
- justify-content: center;
338
- align-items: center;
339
- font-size: 14px;
340
- font-weight: 700;
341
- color: var(--_gray-700);
342
- }
333
+ .no_wishlist,
334
+ .loading_state {
335
+ min-height: 80px;
336
+ display: flex;
337
+ justify-content: center;
338
+ align-items: center;
339
+ font-size: 14px;
340
+ font-weight: 700;
341
+ color: var(--_gray-700);
343
342
  }
344
343
  }
344
+ }
345
345
 
346
- .modal-footer-white-btn {
347
- padding: 12px 24px;
348
- border-radius: 4px;
349
- background-color: var(--_base-white);
350
- color: var(--_primary-400);
351
- font-weight: 500;
352
- width: 100%;
353
- display: flex;
354
- justify-content: center;
355
- &:hover {
356
- text-decoration: underline;
357
- }
346
+ .modal-footer-secondary-btn {
347
+ padding: 12px 24px;
348
+ border-radius: 4px;
349
+ background-color: var(--_base-white);
350
+ color: var(--_primary-400);
351
+ font-weight: 500;
352
+ width: 100%;
353
+ display: flex;
354
+ justify-content: center;
355
+ &:hover {
356
+ text-decoration: underline;
358
357
  }
358
+ }
359
359
 
360
- .modal-footer-danger-btn {
361
- padding: 12px 24px;
362
- border-radius: 4px;
363
- background-color: #d92d20;
364
- color: #fff;
365
- font-weight: 600;
366
- width: 100%;
367
- display: flex;
368
- border: 1px solid #d92d20;
369
- justify-content: center;
360
+ .modal-footer-danger-btn {
361
+ padding: 12px 24px;
362
+ border-radius: 4px;
363
+ background-color: #d92d20;
364
+ color: #fff;
365
+ font-weight: 600;
366
+ width: 100%;
367
+ display: flex;
368
+ border: 1px solid #d92d20;
369
+ justify-content: center;
370
370
 
371
- &:hover {
372
- // background-color: darken(#d92d20, 5%);
373
- background-color: color-mix(in srgb, #d92d20 95%, var(--_base-black) 5%);
374
- }
371
+ &:hover {
372
+ // background-color: darken(#d92d20, 5%);
373
+ background-color: color-mix(in srgb, #d92d20 95%, var(--_base-black) 5%);
375
374
  }
376
375
  }
377
376
  }
@@ -83,6 +83,7 @@
83
83
  }
84
84
 
85
85
  .btn__with__text[data-btn-name="addToCart"] {
86
+ justify-content: center;
86
87
  &[data-show-shadow="false"] {
87
88
  --_show-shadow: none;
88
89
  }
@@ -95,6 +96,9 @@
95
96
  &[data-icon-position="center"] {
96
97
  --_sf-fd-bn: row;
97
98
  }
99
+ &:has(p) {
100
+ width: auto;
101
+ }
98
102
 
99
103
  &:hover {
100
104
  --_sf-hr-bd-cr: var(
package/dist/widget.scss CHANGED
@@ -130,3 +130,4 @@
130
130
  @use "./option-bar.scss";
131
131
  @use "./my-templates.scss";
132
132
  @use "./request-for-quotes.scss";
133
+ @use "./checkbox-radio.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.3.65",
3
+ "version": "0.3.66",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {