@sc-360-v2/storefront-cms-library 0.1.95 → 0.1.97

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.
@@ -24,6 +24,12 @@
24
24
  &[data-show-shadow="false"] {
25
25
  --_show-shadow: none;
26
26
  }
27
+ .text-element {
28
+ background: #6d96e4;
29
+ padding: 10px;
30
+ font-weight: 600;
31
+ color: rgba(75, 69, 70, 1);
32
+ }
27
33
  .variant__container {
28
34
  display: flex;
29
35
  flex-direction: column;
@@ -296,171 +302,70 @@
296
302
  }
297
303
  }
298
304
  //Dropdown
299
- .dropdown__main {
305
+ .est__dropdown__main {
300
306
  position: relative;
301
- cursor: pointer;
302
- // z-index: 101;
307
+ width: 100%;
308
+ margin-top: 10px;
303
309
 
304
- &.dropdown__outline {
305
- // border: 1px solid var(--_primary-300);
306
- // border-radius: var(--_br-6);
307
- .dropdown__header {
308
- border: 0;
309
- background-color: transparent;
310
- }
310
+ label {
311
+ font-size: 14px;
312
+ color: var(--_gray-700);
313
+ margin-bottom: 8px;
314
+ display: block;
311
315
  }
312
316
 
313
- .selected__value {
314
- display: flex;
315
- align-items: center;
316
- gap: 4px;
317
- font-weight: 500;
318
- color: var(--_gray-900);
319
- &::placeholder {
320
- color: var(--_gray-500);
321
- }
322
- .selected__text {
323
- margin-top: -2px;
324
- }
325
- &.updated__values {
326
- background-color: var();
327
- }
328
- }
317
+ .est__dropdown {
318
+ cursor: pointer;
319
+ position: relative;
320
+ color: var(--_gray-700);
329
321
 
330
- .dropdown__header {
331
322
  border-radius: 6px;
332
- border: 1px solid var(--_gray-300);
333
- height: 40px;
334
- // line-height: 40px;
335
323
  background-color: #fff;
336
- padding: 0 8px 0 14px;
337
324
  display: flex;
338
- align-items: center;
339
325
  justify-content: space-between;
340
- background-color: #fff;
341
-
342
- gap: 10px;
343
-
344
- &.remove__radius {
345
- border-radius: 0;
346
- }
347
-
348
- &.pl__0 {
349
- padding-left: 0px;
350
- }
351
- &.primary__btn {
352
- background-color: var(--_primary-500);
353
- color: var(--_base-white);
354
- .selected__value {
355
- color: var(--_base-white);
356
- }
357
- svg {
358
- width: var(--_width-20);
359
- height: var(--height-20);
360
- path {
361
- stroke: var(--_base-white);
362
- }
363
- }
326
+ align-items: center;
327
+ width: 100%;
328
+ .value__selected {
329
+ width: 100%;
364
330
  }
365
331
 
366
- .dropdown__arrow {
367
- // margin-left: 10px;
368
- margin-top: var(--_mt-3);
369
- margin-left: -3px;
370
- margin-top: 2px;
371
- &[data-attr="chevron-down"] {
372
- margin-top: -3px;
373
- svg {
374
- width: var(--_width-18);
375
- height: var(--height-18);
376
- path {
377
- stroke: var(--_gray-700);
378
- }
379
- }
380
- }
381
- svg {
382
- width: var(--_width-20);
383
- height: var(--_height-20);
384
- }
385
- }
386
- .close__btn {
387
- svg {
388
- width: var(--_width-18);
389
- height: var(--_height-18);
390
- }
332
+ &.open .list {
333
+ display: flex;
391
334
  }
392
- }
393
335
 
394
- .dropdown__list {
395
- display: flex;
396
- left: 0;
397
- position: absolute;
398
- z-index: var(--_higher-zIndex);
399
- // margin-top: var(--_mt-4);
400
- flex-direction: var(--_f-column);
401
- // width: max-content;
402
- border-radius: var(--_br-8);
403
- border: 1px solid var(--_border-light-color);
404
- background: var(--_base-white);
405
- // min-width: 130px;
406
- // max-width: 200px;
407
- width: 100%;
408
- gap: var(--_ctm-lt-dn-dy-se-dn-os-sg);
409
- // box-shadow:
410
- // 0px 4px 6px -2px rgba(16, 24, 40, 0.03),
411
- // 0px 12px 16px -4px rgba(16, 24, 40, 0.08);
412
- padding: var(--_ctm-lt-dn-dy-se-dn-os-pg);
413
- max-height: 200px;
414
- overflow-y: auto;
415
- .no__content {
416
- padding: 10px;
417
- text-align: center;
418
- }
419
- .dropdown__option {
420
- padding: var(--_ctm-lt-dn-dy-se-dn-lt-im-pg);
421
- border-bottom: 1px solid var(--_gray-200);
422
- display: var(--_d-flex);
423
- justify-content: var(--_justify-between);
424
- background-color: var(--_base-white);
425
- gap: var(--_ctm-lt-dn-dy-se-dn-lt-im-sg);
426
- &[data-list="true"] {
427
- pointer-events: none;
428
- opacity: 0.3;
429
- // border: 1px solid red;
430
- }
431
- span {
432
- display: inline-block;
433
- @include restrictToLinesShow(1);
434
- white-space: normal;
435
- text-overflow: ellipsis;
436
- // width: 140px;
437
- button {
438
- display: var(--_d-flex);
439
- }
440
- }
336
+ .list {
337
+ display: none;
338
+ flex-direction: column;
339
+ border: 1px solid var(--_gray-200);
340
+ border-radius: 6px;
341
+ position: absolute;
342
+ top: 100%;
343
+ left: 0;
344
+ width: 100%;
345
+ background-color: #fff;
346
+ border-radius: 4px;
347
+ z-index: var(--_higher-zIndex);
348
+ max-height: 200px;
349
+ overflow-y: auto;
441
350
 
442
- &:hover {
443
- background-color: var(--_primary-25);
351
+ &.top {
352
+ bottom: 100%;
353
+ top: auto;
444
354
  }
445
355
 
446
- &.selected {
447
- background-color: var(--_primary-25);
448
- color: var(--_primary-500);
449
- // font-weight: medium;
356
+ .list__option {
357
+ padding: 12px;
358
+ cursor: pointer;
450
359
 
451
- svg {
452
- path {
453
- stroke: var(--_primary-500);
454
- }
360
+ &:hover {
361
+ background-color: var(--_primary-25);
362
+ color: var(--_primary-400);
455
363
  }
456
364
  }
457
-
458
- &:last-child {
459
- border-bottom: none;
460
- }
461
365
  }
462
366
  }
463
367
  }
368
+
464
369
  // variant dropdown selection
465
370
  .var__drop__selection {
466
371
  display: flex;
@@ -24,7 +24,12 @@
24
24
  &[data-show-shadow="false"] {
25
25
  --_show-shadow: none;
26
26
  }
27
-
27
+ .text-element {
28
+ background: #6d96e4;
29
+ padding: 10px;
30
+ font-weight: 600;
31
+ color: rgba(75, 69, 70, 1);
32
+ }
28
33
  .volume__container {
29
34
  padding: var(--_ctm-lt-pg);
30
35
  .stack {
package/dist/widget.scss CHANGED
@@ -33,6 +33,7 @@
33
33
  @import "./cart.scss";
34
34
  @import "./profile.scss";
35
35
  @import "./product.scss";
36
+ @import "./productDetails.scss";
36
37
  @import "./menu.scss";
37
38
  @import "./product-options.scss";
38
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.1.95",
3
+ "version": "0.1.97",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {