@wizishop/angular-components 0.0.226 → 0.0.227

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.
@@ -394,163 +394,74 @@ $wac-subtitle-color: #7A87A1!default;
394
394
  }
395
395
  }
396
396
  }
397
-
398
-
399
397
  .wac {
400
- &-select {
401
- width: 100%;
398
+ &-select-in-text {
399
+ width: auto;
402
400
  position: relative;
403
- height: 40px;
404
- border: 1px solid $wac-border-form;
405
- margin: 0;
406
- border-radius: 3px;
407
- z-index: 2;
408
- background-color: $wac-white;
409
- max-width: 100%;
401
+ display: flex;
402
+ align-items: center;
403
+ padding: 20px 0;
410
404
  &:hover,
411
405
  &:focus {
412
406
  z-index: 4;
413
407
  }
414
- &__label {
415
- padding: 0;
408
+ &__prepend,
409
+ &__after {
416
410
  font-size: rem(14);
417
411
  line-height: rem(16);
418
- margin: 0 0 rem(12);
419
- font-weight: 500;
412
+ color: $wac-main-text;
413
+ }
414
+ &__prepend {
415
+ margin: 0 rem(4) 0 0;
416
+ }
417
+ &__after {
418
+ margin: 0 0 0 rem(4);
420
419
  }
421
420
  &__current {
422
421
  display: flex;
423
- width: 100%;
424
- height: 38px;
422
+ width: auto;
425
423
  justify-content: space-between;
426
424
  align-items: center;
427
425
  align-content: center;
428
- padding: 0 0 0 20px;
429
- color: $wac-color-text-grey;
430
426
  font-size: rem(14);
431
427
  line-height: rem(16);
428
+ color: $wac-main-text;
432
429
  cursor: pointer;
433
430
  white-space: nowrap;
434
431
  text-overflow: ellipsis;
435
- max-width: 100%;
436
- overflow: hidden;
437
- &--withSearch {
438
- padding: 0;
439
- span {
440
- &:not(.icon):not(:last-child) {
441
- display: block;
442
- width: 100%;
443
- height: rem(38);
444
- line-height: rem(38);
445
- padding: 0 20px;
446
- }
447
- &.icon {
448
- & + span {
449
- padding: 0;
450
- }
451
- }
452
- &:last-child {
453
- margin: 0;
454
- }
455
- }
456
- &.open-search {
457
- span {
458
- &:not(.icon):not(:last-child) {
459
- display: none;
460
- }
461
- &.icon {
462
- display: none;
463
- }
464
- }
465
- }
466
- }
467
- span.icon {
468
- max-width: 24px;
469
- margin: 0 10px 0 0;
470
- i {
471
- font-size: rem(17);
472
- }
473
- img {
432
+ font-weight: 500;
433
+ position: relative;
434
+ span {
435
+ position: relative;
436
+ white-space: nowrap;
437
+ &:before {
438
+ content: '';
474
439
  display: block;
475
- max-width: rem(24);
476
- }
477
- &:empty {
478
- display: none;
479
- }
480
- }
481
- > span:not([class]):not(:last-child) {
482
- width: 100%;
483
- text-align: left;
484
- max-width: calc(100% - 58px);
485
- overflow: hidden;
486
- text-overflow: ellipsis;
487
- }
488
- span:last-child {
489
- width: 38px;
490
- min-width: 38px;
491
- height: 38px;
492
- margin: 0 0 0 20px;
493
- display: flex;
494
- justify-content: center;
495
- align-items: center;
496
- align-content: center;
497
- background-color: $wac-select-icon-background;
498
- border-radius: 0 3px 3px 0;
499
- z-index: 3;
500
- i {
501
- font-size: rem(12);
502
- color: $wac-second-color;
440
+ position: absolute;
441
+ bottom: -3px;
442
+ left: 0;
443
+ width: 100%;
444
+ height: 1.5px;
445
+ background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23e95656' stroke-width='1' stroke-dasharray='3%2c 6' stroke-dashoffset='4' stroke-linecap='square'/%3e%3c/svg%3e");
446
+ background-position: left top;
503
447
  }
504
- }
505
- &__search {
506
- position: relative;
507
- top: 0;
508
- left: 0;
509
- width: 100%;
510
- height: rem(38);
511
- display: flex;
512
- align-items: center;
513
- align-content: center;
514
- z-index: 2;
515
- padding: 0 0 0 rem(20);
516
- input {
517
- border: none;
448
+ &:after {
449
+ content: '';
450
+ display: block;
451
+ position: absolute;
452
+ top: 100%;
453
+ left: 0;
518
454
  width: 100%;
519
- box-shadow: none;
520
- margin: 0 0 0 rem(10);
521
- padding: 0;
522
- height: rem(38);
523
- line-height: rem(38);
524
- &:focus {
525
- &::-webkit-input-placeholder { /* Chrome/Opera/Safari */
526
- opacity: 0;
527
- }
528
- &::-moz-placeholder { /* Firefox 19+ */
529
- opacity: 0;
530
- }
531
- &:-ms-input-placeholder { /* IE 10+ */
532
- opacity: 0;
533
- }
534
- &:-moz-placeholder { /* Firefox 18- */
535
- opacity: 0;
536
- }
537
-
538
- }
455
+ height: 14px;
539
456
  }
540
457
  }
541
458
  }
542
- .select-disabled {
543
- background-color: #f5f8fa;
544
- cursor: not-allowed;
545
- }
546
459
  &__content {
547
460
  position: absolute;
548
461
  top: 100%;
549
462
  margin-top: rem(14);
550
- left: -1px;
463
+ left: 0;
551
464
  width: auto;
552
- min-width: calc(100% - 38px);
553
- max-width: calc(100% + 2px);
554
465
  border: 1px solid $wac-border-light;
555
466
  border-radius: 3px;
556
467
  display: flex;
@@ -558,18 +469,11 @@ $wac-subtitle-color: #7A87A1!default;
558
469
  justify-content: flex-start;
559
470
  align-items: flex-start;
560
471
  background-color: $wac-white;
561
- max-height: 260px;
472
+ max-height: 400px;
562
473
  height: auto;
563
474
  visibility: visible;
564
475
  opacity: 1;
565
476
  box-shadow: 3px 3px 20px $wac-select-box-shadow;
566
- padding: 10px;
567
- .to-top & {
568
- top: auto;
569
- bottom: 100%;
570
- margin-top: 0;
571
- margin-bottom: rem(14);
572
- }
573
477
  &.hidden {
574
478
  visibility: hidden;
575
479
  opacity: 0;
@@ -578,9 +482,6 @@ $wac-subtitle-color: #7A87A1!default;
578
482
  transition: 0s;
579
483
  }
580
484
  }
581
- .ps {
582
- max-height: 240px;
583
- }
584
485
  &.open,
585
486
  &.open.hidden {
586
487
  position: relative;
@@ -594,45 +495,10 @@ $wac-subtitle-color: #7A87A1!default;
594
495
  transition: 0s;
595
496
  }
596
497
  }
597
- &__cta {
598
- background-color: $wac-color-CTA-select;
599
- border: 1px solid $wac-border-CTA-select;
600
- color: $wac-main-text;
601
- font-size: rem(14);
602
- min-height: rem(40);
603
- display: flex;
604
- align-items: center;
605
- align-content: center;
606
- width: 100%;
607
- border-radius: 3px;
608
- cursor: pointer;
609
- transition: 0.3s ease;
610
- margin: 0 0 rem(10);
611
- padding: 0 20px;
612
- > div {
613
- display: flex;
614
- align-items: center;
615
- align-content: center;
616
- justify-content: flex-start;
617
- width: 100%;
618
- i {
619
- color: $wac-wizishop-blue;
620
- margin: 0 8px 0 0;
621
- }
622
- strong {
623
- display: inline-block;
624
- margin: 0 20px 0 0;
625
- }
626
- }
627
- &:hover,
628
- &:focus {
629
- background-color: darken($wac-color-CTA-select, 10%);
630
- }
631
- }
632
498
  &__item {
633
499
  width: 100%;
634
500
  font-size: rem(14);
635
- line-height: rem(30);
501
+ line-height: rem(40);
636
502
  cursor: pointer;
637
503
  transition: 0.3s ease;
638
504
  position: relative;
@@ -640,21 +506,18 @@ $wac-subtitle-color: #7A87A1!default;
640
506
  justify-content: flex-start;
641
507
  align-content: center;
642
508
  align-items: center;
643
- color: $wac-second-color;
509
+ font-weight: 400;
644
510
  > div {
645
- width: 100%;
646
- display: flex;
647
- align-items: center;
648
- align-content: center;
511
+ padding: 0 20px;
512
+ min-width: 100%;
513
+ &.selected {
514
+ background-color: $wac-hover-multiple-search;
515
+ color: $wac-main-text;
516
+ }
649
517
  }
650
518
  .icon {
651
519
  width: 24px;
652
520
  margin: 0 10px 0 0;
653
- height: auto;
654
- max-height: 24px;
655
- }
656
- &:not(:last-child) {
657
- margin: 0 0 rem(10);
658
521
  }
659
522
  &:empty {
660
523
  display: none;
@@ -667,28 +530,6 @@ $wac-subtitle-color: #7A87A1!default;
667
530
  background-color: $wac-gray-background;
668
531
  color: $wac-main-text;
669
532
  }
670
- > div {
671
- padding: 0 10px;
672
- &.selected {
673
- background-color: $wac-gray-background;
674
- color: $wac-main-text;
675
- }
676
- }
677
- }
678
- &__empty {
679
- display: flex;
680
- width: 100%;
681
- justify-content: center;
682
- align-items: center;
683
- padding: 10px;
684
- span {
685
- font-size: rem(16);
686
- font-weight: 400;
687
- text-align: center;
688
- color: $wac-second-color;
689
- display: inline-block;
690
- line-height: rem(25);
691
- }
692
533
  }
693
534
  }
694
535
  }
@@ -1426,8 +1267,21 @@ $wac-subtitle-color: #7A87A1!default;
1426
1267
  &:before {
1427
1268
  background-color: $wac-wizishop-blue;
1428
1269
  }
1270
+ &:hover, &:focus {
1271
+ .round {
1272
+ background-color: $wac-wizishop-blue;
1273
+ border-color: $wac-wizishop-blue;
1274
+ > span, > i {
1275
+ color: $wac-white;
1276
+ }
1277
+ }
1278
+ .name {
1279
+ color: $wac-wizishop-blue;
1280
+ }
1281
+ }
1429
1282
  }
1430
1283
 
1284
+
1431
1285
  &.current {
1432
1286
  &:before {
1433
1287
  height: 5px;
@@ -1471,21 +1325,9 @@ $wac-subtitle-color: #7A87A1!default;
1471
1325
  font-size: rem(14);
1472
1326
  font-weight: 500;
1473
1327
  color: $wac-second-color;
1474
- line-height: 1;
1475
- transition: .3s ease;
1476
- &.valid, &.current {
1477
- color: $wac-wizishop-blue;
1478
- }
1479
- }
1480
- &:hover:not(.valid), &:focus:not(.valid) {
1481
- .round {
1482
- background-color: $wac-wizishop-blue;
1483
- border-color: $wac-wizishop-blue;
1484
- > span, > i {
1485
- color: $wac-white;
1486
- }
1487
- }
1488
- .name {
1328
+ line-height: 1;
1329
+ transition: .3s ease;
1330
+ &.valid, &.current {
1489
1331
  color: $wac-wizishop-blue;
1490
1332
  }
1491
1333
  }
@@ -6508,74 +6350,163 @@ h4.wac-h4 {
6508
6350
  }
6509
6351
  }
6510
6352
  }
6353
+
6354
+
6511
6355
  .wac {
6512
- &-select-in-text {
6513
- width: auto;
6356
+ &-select {
6357
+ width: 100%;
6514
6358
  position: relative;
6515
- display: flex;
6516
- align-items: center;
6517
- padding: 20px 0;
6359
+ height: 40px;
6360
+ border: 1px solid $wac-border-form;
6361
+ margin: 0;
6362
+ border-radius: 3px;
6363
+ z-index: 2;
6364
+ background-color: $wac-white;
6365
+ max-width: 100%;
6518
6366
  &:hover,
6519
6367
  &:focus {
6520
6368
  z-index: 4;
6521
6369
  }
6522
- &__prepend,
6523
- &__after {
6370
+ &__label {
6371
+ padding: 0;
6524
6372
  font-size: rem(14);
6525
6373
  line-height: rem(16);
6526
- color: $wac-main-text;
6527
- }
6528
- &__prepend {
6529
- margin: 0 rem(4) 0 0;
6530
- }
6531
- &__after {
6532
- margin: 0 0 0 rem(4);
6374
+ margin: 0 0 rem(12);
6375
+ font-weight: 500;
6533
6376
  }
6534
6377
  &__current {
6535
6378
  display: flex;
6536
- width: auto;
6379
+ width: 100%;
6380
+ height: 38px;
6537
6381
  justify-content: space-between;
6538
6382
  align-items: center;
6539
6383
  align-content: center;
6384
+ padding: 0 0 0 20px;
6385
+ color: $wac-color-text-grey;
6540
6386
  font-size: rem(14);
6541
6387
  line-height: rem(16);
6542
- color: $wac-main-text;
6543
6388
  cursor: pointer;
6544
6389
  white-space: nowrap;
6545
6390
  text-overflow: ellipsis;
6546
- font-weight: 500;
6547
- position: relative;
6548
- span {
6549
- position: relative;
6550
- white-space: nowrap;
6551
- &:before {
6552
- content: '';
6553
- display: block;
6554
- position: absolute;
6555
- bottom: -3px;
6556
- left: 0;
6557
- width: 100%;
6558
- height: 1.5px;
6559
- background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23e95656' stroke-width='1' stroke-dasharray='3%2c 6' stroke-dashoffset='4' stroke-linecap='square'/%3e%3c/svg%3e");
6560
- background-position: left top;
6391
+ max-width: 100%;
6392
+ overflow: hidden;
6393
+ &--withSearch {
6394
+ padding: 0;
6395
+ span {
6396
+ &:not(.icon):not(:last-child) {
6397
+ display: block;
6398
+ width: 100%;
6399
+ height: rem(38);
6400
+ line-height: rem(38);
6401
+ padding: 0 20px;
6402
+ }
6403
+ &.icon {
6404
+ & + span {
6405
+ padding: 0;
6406
+ }
6407
+ }
6408
+ &:last-child {
6409
+ margin: 0;
6410
+ }
6561
6411
  }
6562
- &:after {
6563
- content: '';
6412
+ &.open-search {
6413
+ span {
6414
+ &:not(.icon):not(:last-child) {
6415
+ display: none;
6416
+ }
6417
+ &.icon {
6418
+ display: none;
6419
+ }
6420
+ }
6421
+ }
6422
+ }
6423
+ span.icon {
6424
+ max-width: 24px;
6425
+ margin: 0 10px 0 0;
6426
+ i {
6427
+ font-size: rem(17);
6428
+ }
6429
+ img {
6564
6430
  display: block;
6565
- position: absolute;
6566
- top: 100%;
6567
- left: 0;
6431
+ max-width: rem(24);
6432
+ }
6433
+ &:empty {
6434
+ display: none;
6435
+ }
6436
+ }
6437
+ > span:not([class]):not(:last-child) {
6438
+ width: 100%;
6439
+ text-align: left;
6440
+ max-width: calc(100% - 58px);
6441
+ overflow: hidden;
6442
+ text-overflow: ellipsis;
6443
+ }
6444
+ span:last-child {
6445
+ width: 38px;
6446
+ min-width: 38px;
6447
+ height: 38px;
6448
+ margin: 0 0 0 20px;
6449
+ display: flex;
6450
+ justify-content: center;
6451
+ align-items: center;
6452
+ align-content: center;
6453
+ background-color: $wac-select-icon-background;
6454
+ border-radius: 0 3px 3px 0;
6455
+ z-index: 3;
6456
+ i {
6457
+ font-size: rem(12);
6458
+ color: $wac-second-color;
6459
+ }
6460
+ }
6461
+ &__search {
6462
+ position: relative;
6463
+ top: 0;
6464
+ left: 0;
6465
+ width: 100%;
6466
+ height: rem(38);
6467
+ display: flex;
6468
+ align-items: center;
6469
+ align-content: center;
6470
+ z-index: 2;
6471
+ padding: 0 0 0 rem(20);
6472
+ input {
6473
+ border: none;
6568
6474
  width: 100%;
6569
- height: 14px;
6475
+ box-shadow: none;
6476
+ margin: 0 0 0 rem(10);
6477
+ padding: 0;
6478
+ height: rem(38);
6479
+ line-height: rem(38);
6480
+ &:focus {
6481
+ &::-webkit-input-placeholder { /* Chrome/Opera/Safari */
6482
+ opacity: 0;
6483
+ }
6484
+ &::-moz-placeholder { /* Firefox 19+ */
6485
+ opacity: 0;
6486
+ }
6487
+ &:-ms-input-placeholder { /* IE 10+ */
6488
+ opacity: 0;
6489
+ }
6490
+ &:-moz-placeholder { /* Firefox 18- */
6491
+ opacity: 0;
6492
+ }
6493
+
6494
+ }
6570
6495
  }
6571
6496
  }
6572
6497
  }
6498
+ .select-disabled {
6499
+ background-color: #f5f8fa;
6500
+ cursor: not-allowed;
6501
+ }
6573
6502
  &__content {
6574
6503
  position: absolute;
6575
6504
  top: 100%;
6576
6505
  margin-top: rem(14);
6577
- left: 0;
6506
+ left: -1px;
6578
6507
  width: auto;
6508
+ min-width: calc(100% - 38px);
6509
+ max-width: calc(100% + 2px);
6579
6510
  border: 1px solid $wac-border-light;
6580
6511
  border-radius: 3px;
6581
6512
  display: flex;
@@ -6583,11 +6514,18 @@ h4.wac-h4 {
6583
6514
  justify-content: flex-start;
6584
6515
  align-items: flex-start;
6585
6516
  background-color: $wac-white;
6586
- max-height: 400px;
6517
+ max-height: 260px;
6587
6518
  height: auto;
6588
6519
  visibility: visible;
6589
6520
  opacity: 1;
6590
6521
  box-shadow: 3px 3px 20px $wac-select-box-shadow;
6522
+ padding: 10px;
6523
+ .to-top & {
6524
+ top: auto;
6525
+ bottom: 100%;
6526
+ margin-top: 0;
6527
+ margin-bottom: rem(14);
6528
+ }
6591
6529
  &.hidden {
6592
6530
  visibility: hidden;
6593
6531
  opacity: 0;
@@ -6596,6 +6534,9 @@ h4.wac-h4 {
6596
6534
  transition: 0s;
6597
6535
  }
6598
6536
  }
6537
+ .ps {
6538
+ max-height: 240px;
6539
+ }
6599
6540
  &.open,
6600
6541
  &.open.hidden {
6601
6542
  position: relative;
@@ -6609,10 +6550,45 @@ h4.wac-h4 {
6609
6550
  transition: 0s;
6610
6551
  }
6611
6552
  }
6553
+ &__cta {
6554
+ background-color: $wac-color-CTA-select;
6555
+ border: 1px solid $wac-border-CTA-select;
6556
+ color: $wac-main-text;
6557
+ font-size: rem(14);
6558
+ min-height: rem(40);
6559
+ display: flex;
6560
+ align-items: center;
6561
+ align-content: center;
6562
+ width: 100%;
6563
+ border-radius: 3px;
6564
+ cursor: pointer;
6565
+ transition: 0.3s ease;
6566
+ margin: 0 0 rem(10);
6567
+ padding: 0 20px;
6568
+ > div {
6569
+ display: flex;
6570
+ align-items: center;
6571
+ align-content: center;
6572
+ justify-content: flex-start;
6573
+ width: 100%;
6574
+ i {
6575
+ color: $wac-wizishop-blue;
6576
+ margin: 0 8px 0 0;
6577
+ }
6578
+ strong {
6579
+ display: inline-block;
6580
+ margin: 0 20px 0 0;
6581
+ }
6582
+ }
6583
+ &:hover,
6584
+ &:focus {
6585
+ background-color: darken($wac-color-CTA-select, 10%);
6586
+ }
6587
+ }
6612
6588
  &__item {
6613
6589
  width: 100%;
6614
6590
  font-size: rem(14);
6615
- line-height: rem(40);
6591
+ line-height: rem(30);
6616
6592
  cursor: pointer;
6617
6593
  transition: 0.3s ease;
6618
6594
  position: relative;
@@ -6620,18 +6596,21 @@ h4.wac-h4 {
6620
6596
  justify-content: flex-start;
6621
6597
  align-content: center;
6622
6598
  align-items: center;
6623
- font-weight: 400;
6599
+ color: $wac-second-color;
6624
6600
  > div {
6625
- padding: 0 20px;
6626
- min-width: 100%;
6627
- &.selected {
6628
- background-color: $wac-hover-multiple-search;
6629
- color: $wac-main-text;
6630
- }
6601
+ width: 100%;
6602
+ display: flex;
6603
+ align-items: center;
6604
+ align-content: center;
6631
6605
  }
6632
6606
  .icon {
6633
6607
  width: 24px;
6634
6608
  margin: 0 10px 0 0;
6609
+ height: auto;
6610
+ max-height: 24px;
6611
+ }
6612
+ &:not(:last-child) {
6613
+ margin: 0 0 rem(10);
6635
6614
  }
6636
6615
  &:empty {
6637
6616
  display: none;
@@ -6644,6 +6623,28 @@ h4.wac-h4 {
6644
6623
  background-color: $wac-gray-background;
6645
6624
  color: $wac-main-text;
6646
6625
  }
6626
+ > div {
6627
+ padding: 0 10px;
6628
+ &.selected {
6629
+ background-color: $wac-gray-background;
6630
+ color: $wac-main-text;
6631
+ }
6632
+ }
6633
+ }
6634
+ &__empty {
6635
+ display: flex;
6636
+ width: 100%;
6637
+ justify-content: center;
6638
+ align-items: center;
6639
+ padding: 10px;
6640
+ span {
6641
+ font-size: rem(16);
6642
+ font-weight: 400;
6643
+ text-align: center;
6644
+ color: $wac-second-color;
6645
+ display: inline-block;
6646
+ line-height: rem(25);
6647
+ }
6647
6648
  }
6648
6649
  }
6649
6650
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/angular-components",
3
- "version": "0.0.226",
3
+ "version": "0.0.227",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^11.2.12",
6
6
  "@angular/core": "^11.2.12",