@wizishop/angular-components 0.0.57 → 0.0.58

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.
@@ -1472,7 +1472,8 @@ $wac-color-success-popup-alert: #6DCC95!default;
1472
1472
  }
1473
1473
  }
1474
1474
  }
1475
- .wac-delete {
1475
+ .wac-dropdown {
1476
+ display: inline-block;
1476
1477
  width: 40px;
1477
1478
  height: 40px;
1478
1479
 
@@ -1482,24 +1483,74 @@ $wac-color-success-popup-alert: #6DCC95!default;
1482
1483
  @include align-items(center);
1483
1484
  width: 100%;
1484
1485
  height: 100%;
1485
- border-radius: 3px;
1486
- background-color: transparent;
1487
- transition: background-color 0.3s ease-in-out;
1486
+ position: relative;
1488
1487
 
1489
- i {
1490
- color: $wac-border-form;
1491
- font-size: 14px;
1492
- line-height: 23px;
1493
- transition: color 0.3s ease-in-out;
1488
+ &__icon {
1489
+ font-size: 30px;
1490
+ line-height: 18px;
1491
+ color: $wac-second-color;
1492
+ transition: color 0.3s ease, transform 0.3s ease;
1493
+ }
1494
+
1495
+ &__sublevel {
1496
+ position: absolute;
1497
+ width: 160px;
1498
+ top: 100%;
1499
+ right: 0;
1500
+ z-index: -1;
1501
+ opacity: 0;
1502
+ background-color: $wac-white;
1503
+ border-radius: rem(3);
1504
+ box-shadow: 0px 2px 5px $wac-info-box-shadow;
1505
+ visibility: hidden;
1506
+ transition: opacity 0.15s ease, z-index 0.15s ease, visibility 0s linear .16s;
1507
+
1508
+ &__container {
1509
+ padding: 10px 10px;
1510
+ border: 1px solid $wac-border-color;
1511
+
1512
+ &__item {
1513
+ padding: 5.7px 10px;
1514
+ font-size: 14px;
1515
+ line-height: 24px;
1516
+ color: $wac-second-color;
1517
+ cursor: pointer;
1518
+ transition: background-color 0.3s ease, color 0.3s ease;
1519
+ display: flex;
1520
+ justify-content: flex-start;
1521
+ align-items: center;
1522
+ align-content: center;
1523
+
1524
+ i {
1525
+ min-width: 15px;
1526
+ margin-right: 5px;
1527
+ text-align: center;
1528
+ }
1529
+ span {
1530
+ white-space: nowrap;
1531
+ }
1532
+
1533
+ &:hover {
1534
+ background-color: $wac-gray-background;
1535
+ transition: background-color 0.3s ease, color 0.3s ease;
1536
+ color: $wac-input-active-color;
1537
+ }
1538
+ }
1539
+ }
1494
1540
  }
1495
1541
 
1496
1542
  &:hover {
1497
- background-color: $wac-primary-button;
1498
- transition: background-color 0.3s ease-in-out;
1543
+ .wac-dropdown__wrapper__icon {
1544
+ color: $wac-wizishop-blue;
1545
+ transform: rotate(90deg);
1546
+ transition: color 0.3s ease, transform 0.3s ease;
1547
+ }
1499
1548
 
1500
- i {
1501
- color: $wac-white;
1502
- transition: color 0.3s ease-in-out;
1549
+ .wac-dropdown__wrapper__sublevel {
1550
+ visibility: visible;
1551
+ opacity: 1;
1552
+ z-index: 2;
1553
+ transition: visibility 0s ease 0s, opacity 0.3s ease .1s;
1503
1554
  }
1504
1555
  }
1505
1556
  }
@@ -3668,6 +3719,12 @@ span.wac-tooltip {
3668
3719
  min-width: rem(40);
3669
3720
  min-height: rem(40);
3670
3721
 
3722
+ &.alone {
3723
+ display: flex;
3724
+ align-items: center;
3725
+ justify-content: center;
3726
+ }
3727
+
3671
3728
  &.is-success {
3672
3729
  i {
3673
3730
  color: $wac-green-color!important;
@@ -3712,88 +3769,155 @@ span.wac-tooltip {
3712
3769
  }
3713
3770
  }
3714
3771
  }
3715
- .wac-dropdown {
3716
- display: inline-block;
3717
- width: 40px;
3718
- height: 40px;
3719
-
3720
- &__wrapper {
3721
- @include flexbox();
3722
- @include justify-content(center);
3723
- @include align-items(center);
3724
- width: 100%;
3725
- height: 100%;
3726
- position: relative;
3772
+ .wac-field-checkbox {
3773
+ &__row {
3774
+ min-width: 100%;
3775
+ margin: 0;
3776
+ }
3777
+ &--nowrap {
3778
+ display: inline-block;
3779
+ width: auto;
3780
+ min-width: 0;
3781
+ margin: 0 10px 10px 0;
3782
+ .field {
3783
+ &__row {
3784
+ width: auto;
3785
+ display: inline-block;
3786
+ margin: 0;
3787
+ }
3788
+ }
3789
+ }
3727
3790
 
3728
- &__icon {
3729
- font-size: 30px;
3730
- line-height: 18px;
3731
- color: $wac-second-color;
3732
- transition: color 0.3s ease, transform 0.3s ease;
3791
+ input[type='text'] {
3792
+ height: 40px;
3793
+ max-height: 40px;
3794
+ padding: 0 20px;
3795
+ line-height: 40px;
3796
+ border: 1px solid $wac-border-form;
3797
+ border-radius: 3px;
3798
+ margin: 15px 0 10px !important;
3799
+ font-size: rem(14) !important;
3800
+ color: $wac-main-text;
3801
+ &:focus {
3802
+ border-color: $wac-wizishop-blue !important;
3803
+ box-shadow: 0px 0px 4px $wac-checkbox-shadow !important;
3804
+ &::-webkit-input-placeholder {
3805
+ /* Chrome/Opera/Safari */
3806
+ opacity: 0;
3807
+ }
3808
+ &::-moz-placeholder {
3809
+ /* Firefox 19+ */
3810
+ opacity: 0;
3811
+ }
3812
+ &:-ms-input-placeholder {
3813
+ /* IE 10+ */
3814
+ opacity: 0;
3815
+ }
3816
+ &:-moz-placeholder {
3817
+ /* Firefox 18- */
3818
+ opacity: 0;
3819
+ }
3733
3820
  }
3821
+ }
3822
+ &.alone {
3823
+ .is-checkradio[type='checkbox'] {
3824
+ & + label {
3825
+ padding-left: 9px;
3826
+ margin-right: 0px;
3734
3827
 
3735
- &__sublevel {
3736
- position: absolute;
3737
- width: 160px;
3738
- top: 100%;
3739
- right: 0;
3740
- z-index: -1;
3741
- opacity: 0;
3742
- background-color: $wac-white;
3743
- border-radius: rem(3);
3744
- box-shadow: 0px 2px 5px $wac-info-box-shadow;
3745
- visibility: hidden;
3746
- transition: opacity 0.15s ease, z-index 0.15s ease, visibility 0s linear .16s;
3828
+ &:before {
3829
+ border-width: 1px;
3830
+ width: 16px;
3831
+ height: 16px;
3832
+ border-radius: 2px;
3833
+ }
3834
+ }
3835
+ &:checked + label {
3836
+ &:after {
3837
+ top: 7px;
3838
+ transform: scale(1.1) translateY(1px) translateX(6px) rotate(45deg);
3839
+ }
3840
+ }
3841
+ }
3842
+ }
3747
3843
 
3748
- &__container {
3749
- padding: 10px 10px;
3844
+ .is-checkradio[type='checkbox'] {
3845
+ outline: 0 !important;
3846
+ & + label {
3847
+ font-size: rem(14);
3848
+ line-height: 0;
3849
+ color: $wac-input-radio-color-label;
3850
+ white-space: nowrap;
3851
+ padding: 0 8px;
3852
+ margin-right: 0;
3853
+ outline: 0 !important;
3854
+ &:before {
3855
+ width: 16px;
3856
+ height: 16px;
3750
3857
  border: 1px solid $wac-border-color;
3751
-
3752
- &__item {
3753
- padding: 5.7px 10px;
3754
- font-size: 14px;
3755
- line-height: 24px;
3756
- color: $wac-second-color;
3757
- cursor: pointer;
3758
- transition: background-color 0.3s ease, color 0.3s ease;
3759
- display: flex;
3760
- justify-content: flex-start;
3761
- align-items: center;
3762
- align-content: center;
3763
-
3764
- i {
3765
- min-width: 15px;
3766
- margin-right: 5px;
3767
- text-align: center;
3768
- }
3769
- span {
3770
- white-space: nowrap;
3771
- }
3772
-
3773
- &:hover {
3774
- background-color: $wac-gray-background;
3775
- transition: background-color 0.3s ease, color 0.3s ease;
3776
- color: $wac-input-active-color;
3777
- }
3858
+ top: 0;
3859
+ transition: all 0.3s ease-in-out;
3860
+ }
3861
+ &:after {
3862
+ top: 2.3px !important;
3863
+ left: 3px !important;
3864
+ width: 10px;
3865
+ height: 12px;
3866
+ border: none !important;
3867
+ background: transparent
3868
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='check' viewBox='0 0 512 512' class='svg-inline--fa fa-check fa-w-16 fa-5x'%3E%3Cpath fill='%23ffffff' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E")
3869
+ center center / 8px 8px no-repeat;
3870
+ transform: scale(1) translateY(0px) translateX(0px) rotate(0deg) !important;
3871
+ transition: all 0.3s ease-in-out;
3872
+ }
3873
+ span {
3874
+ margin: 0 0 0 rem(16);
3875
+ display: inline-block;
3876
+ }
3877
+ &:hover,
3878
+ &:focus {
3879
+ &:before {
3880
+ border-color: $wac-input-active-color !important;
3778
3881
  }
3779
3882
  }
3883
+ &:before,
3884
+ &:after {
3885
+ outline: 0 !important;
3886
+ }
3780
3887
  }
3781
-
3782
3888
  &:hover {
3783
- .wac-dropdown__wrapper__icon {
3784
- color: $wac-wizishop-blue;
3785
- transform: rotate(90deg);
3786
- transition: color 0.3s ease, transform 0.3s ease;
3889
+ & + label {
3890
+ color: $wac-input-radio-color-active-label;
3891
+ &:before {
3892
+ border-color: $wac-input-active-color !important;
3893
+ }
3894
+ &:after {
3895
+ border-color: $wac-white !important;
3896
+ }
3787
3897
  }
3788
-
3789
- .wac-dropdown__wrapper__sublevel {
3790
- visibility: visible;
3791
- opacity: 1;
3792
- z-index: 2;
3793
- transition: visibility 0s ease 0s, opacity 0.3s ease .1s;
3898
+ &:not([disabled]) {
3899
+ & + label {
3900
+ &:before {
3901
+ border-color: $wac-input-active-color !important;
3902
+ }
3903
+ }
3904
+ }
3905
+ }
3906
+ &:checked + label {
3907
+ color: $wac-input-radio-color-active-label;
3908
+ &:before {
3909
+ border: 1px solid $wac-input-active-color;
3910
+ background-color: $wac-input-active-color;
3911
+ transition: all 0.3s ease-in-out;
3912
+ }
3913
+ &:after {
3914
+ left: 7px;
3915
+ top: 8px;
3916
+ transition: all 0.3s ease-in-out;
3794
3917
  }
3795
3918
  }
3796
3919
  }
3920
+
3797
3921
  }
3798
3922
  h1.wac-h1 {
3799
3923
  font-size: rem(30);
@@ -5331,155 +5455,37 @@ div.wac-field-input-search {
5331
5455
  }
5332
5456
  }
5333
5457
  }
5334
- .wac-field-checkbox {
5335
- &__row {
5336
- min-width: 100%;
5337
- margin: 0;
5338
- }
5339
- &--nowrap {
5340
- display: inline-block;
5341
- width: auto;
5342
- min-width: 0;
5343
- margin: 0 10px 10px 0;
5344
- .field {
5345
- &__row {
5346
- width: auto;
5347
- display: inline-block;
5348
- margin: 0;
5349
- }
5350
- }
5351
- }
5458
+ .wac-delete {
5459
+ width: 40px;
5460
+ height: 40px;
5352
5461
 
5353
- input[type='text'] {
5354
- height: 40px;
5355
- max-height: 40px;
5356
- padding: 0 20px;
5357
- line-height: 40px;
5358
- border: 1px solid $wac-border-form;
5462
+ &__wrapper {
5463
+ @include flexbox();
5464
+ @include justify-content(center);
5465
+ @include align-items(center);
5466
+ width: 100%;
5467
+ height: 100%;
5359
5468
  border-radius: 3px;
5360
- margin: 15px 0 10px !important;
5361
- font-size: rem(14) !important;
5362
- color: $wac-main-text;
5363
- &:focus {
5364
- border-color: $wac-wizishop-blue !important;
5365
- box-shadow: 0px 0px 4px $wac-checkbox-shadow !important;
5366
- &::-webkit-input-placeholder {
5367
- /* Chrome/Opera/Safari */
5368
- opacity: 0;
5369
- }
5370
- &::-moz-placeholder {
5371
- /* Firefox 19+ */
5372
- opacity: 0;
5373
- }
5374
- &:-ms-input-placeholder {
5375
- /* IE 10+ */
5376
- opacity: 0;
5377
- }
5378
- &:-moz-placeholder {
5379
- /* Firefox 18- */
5380
- opacity: 0;
5381
- }
5382
- }
5383
- }
5384
- &.alone {
5385
- .is-checkradio[type='checkbox'] {
5386
- & + label {
5387
- padding-left: 9px;
5388
- margin-right: 0px;
5469
+ background-color: transparent;
5470
+ transition: background-color 0.3s ease-in-out;
5389
5471
 
5390
- &:before {
5391
- border-width: 1px;
5392
- width: 16px;
5393
- height: 16px;
5394
- border-radius: 2px;
5395
- }
5396
- }
5397
- &:checked + label {
5398
- &:after {
5399
- top: 7px;
5400
- transform: scale(1.1) translateY(1px) translateX(6px) rotate(45deg);
5401
- }
5402
- }
5472
+ i {
5473
+ color: $wac-border-form;
5474
+ font-size: 14px;
5475
+ line-height: 23px;
5476
+ transition: color 0.3s ease-in-out;
5403
5477
  }
5404
- }
5405
5478
 
5406
- .is-checkradio[type='checkbox'] {
5407
- outline: 0 !important;
5408
- & + label {
5409
- font-size: rem(14);
5410
- line-height: 0;
5411
- color: $wac-input-radio-color-label;
5412
- white-space: nowrap;
5413
- padding: 0 8px;
5414
- margin-right: 0;
5415
- outline: 0 !important;
5416
- &:before {
5417
- width: 16px;
5418
- height: 16px;
5419
- border: 1px solid $wac-border-color;
5420
- top: 0;
5421
- transition: all 0.3s ease-in-out;
5422
- }
5423
- &:after {
5424
- top: 2.3px !important;
5425
- left: 3px !important;
5426
- width: 10px;
5427
- height: 12px;
5428
- border: none !important;
5429
- background: transparent
5430
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='check' viewBox='0 0 512 512' class='svg-inline--fa fa-check fa-w-16 fa-5x'%3E%3Cpath fill='%23ffffff' d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E")
5431
- center center / 8px 8px no-repeat;
5432
- transform: scale(1) translateY(0px) translateX(0px) rotate(0deg) !important;
5433
- transition: all 0.3s ease-in-out;
5434
- }
5435
- span {
5436
- margin: 0 0 0 rem(16);
5437
- display: inline-block;
5438
- }
5439
- &:hover,
5440
- &:focus {
5441
- &:before {
5442
- border-color: $wac-input-active-color !important;
5443
- }
5444
- }
5445
- &:before,
5446
- &:after {
5447
- outline: 0 !important;
5448
- }
5449
- }
5450
5479
  &:hover {
5451
- & + label {
5452
- color: $wac-input-radio-color-active-label;
5453
- &:before {
5454
- border-color: $wac-input-active-color !important;
5455
- }
5456
- &:after {
5457
- border-color: $wac-white !important;
5458
- }
5459
- }
5460
- &:not([disabled]) {
5461
- & + label {
5462
- &:before {
5463
- border-color: $wac-input-active-color !important;
5464
- }
5465
- }
5466
- }
5467
- }
5468
- &:checked + label {
5469
- color: $wac-input-radio-color-active-label;
5470
- &:before {
5471
- border: 1px solid $wac-input-active-color;
5472
- background-color: $wac-input-active-color;
5473
- transition: all 0.3s ease-in-out;
5474
- }
5475
- &:after {
5476
- left: 7px;
5477
- top: 8px;
5478
- transition: all 0.3s ease-in-out;
5480
+ background-color: $wac-primary-button;
5481
+ transition: background-color 0.3s ease-in-out;
5482
+
5483
+ i {
5484
+ color: $wac-white;
5485
+ transition: color 0.3s ease-in-out;
5479
5486
  }
5480
5487
  }
5481
5488
  }
5482
-
5483
5489
  }
5484
5490
  .wac-free {
5485
5491
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/angular-components",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^11.2.12",
6
6
  "@angular/core": "^11.2.12",