@wizishop/img-manager 19.0.0-beta.2 → 19.0.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "19.0.0-beta.2",
3
+ "version": "19.0.0",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
Binary file
@@ -1717,6 +1717,117 @@ $tag-radius: rem(20px)!default;
1717
1717
  .trash {
1718
1718
  display: none!important;
1719
1719
  }
1720
+ .img-upload {
1721
+ position: relative;
1722
+ 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' rx='3' ry='3' stroke='%2352AECD' stroke-width='2' stroke-dasharray='4%2c 8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
1723
+ border-radius: 3px;
1724
+ &:before {
1725
+ content: '';
1726
+ display: block;
1727
+ padding-top: 110.82%;
1728
+ }
1729
+ &--small {
1730
+ &:before {
1731
+ padding-top: 202px;
1732
+ }
1733
+ .img-upload {
1734
+ &__container {
1735
+ .blueColor {
1736
+ img {
1737
+ min-width: 1.875rem;
1738
+ }
1739
+ }
1740
+ &__or {
1741
+ margin: 0.625rem 0;
1742
+ }
1743
+ &__text {
1744
+ padding: 0.5rem 1.25rem;
1745
+ }
1746
+ }
1747
+ }
1748
+ }
1749
+ &__container {
1750
+ position: absolute;
1751
+ top: 0;
1752
+ left: 0;
1753
+ width: 100%;
1754
+ height: 100%;
1755
+ display: flex;
1756
+ flex-wrap: wrap;
1757
+ flex-direction: column;
1758
+ justify-content: center;
1759
+ align-items: center;
1760
+ &__loader {
1761
+ position: absolute;
1762
+ top: 50%;
1763
+ left: 50%;
1764
+ transform: translate(-50%,-50%);
1765
+ max-width: 300px;
1766
+ max-height: 300px;
1767
+ display: flex;
1768
+ flex-wrap: wrap;
1769
+ flex-direction: column;
1770
+ justify-content: center;
1771
+ align-items: center;
1772
+ }
1773
+ &__dropImgIconDiv {
1774
+ @include media('<720px') {
1775
+ p {
1776
+ display: none;
1777
+ }
1778
+ }
1779
+ }
1780
+ &__or {
1781
+ @include media('<720px') {
1782
+ display: none;
1783
+ }
1784
+ }
1785
+ .blueColor {
1786
+ img {
1787
+ min-width: 4.0625rem;
1788
+ display: block;
1789
+ max-width: 4.0625rem;
1790
+ margin: 0 auto 0.9375rem;
1791
+ transform: translate(10px);
1792
+ }
1793
+ p {
1794
+ color: $border-upload-color;
1795
+ font-size: 1rem;
1796
+ line-height: 1.1875rem;
1797
+ font-weight: 500;
1798
+ margin: 0 auto 1.25rem;
1799
+ }
1800
+ }
1801
+ &__or {
1802
+ font-size: 0.875rem;
1803
+ line-height: 1rem;
1804
+ margin: 0 0 1.25rem !important;
1805
+ }
1806
+ &__text {
1807
+ display: flex;
1808
+ align-items: center;
1809
+ justify-content: center;
1810
+ width: auto;
1811
+ border-radius: 3px;
1812
+ padding: 0.75rem 1.25rem;
1813
+ color: $white;
1814
+ font-size: 0.875rem;
1815
+ line-height: 1rem;
1816
+ white-space: nowrap;
1817
+ background-color: $img-green-color;
1818
+ transition: .3s ease;
1819
+ font-weight: 500;
1820
+ cursor: pointer;
1821
+ i {
1822
+ margin: 0 0.375rem 0 0;
1823
+ font-weight: 500;
1824
+ }
1825
+ &:hover, &:focus {
1826
+ background-color: darken($img-green-color, 15%);
1827
+ }
1828
+ }
1829
+ }
1830
+ }
1720
1831
  //.wz-img-manager useful to keep the css priority
1721
1832
  .wz-img-manager .img-tabs {
1722
1833
  background-color: white;
@@ -1875,117 +1986,6 @@ $tag-radius: rem(20px)!default;
1875
1986
  padding: 20px 0;
1876
1987
  }
1877
1988
  }
1878
- .img-upload {
1879
- position: relative;
1880
- 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' rx='3' ry='3' stroke='%2352AECD' stroke-width='2' stroke-dasharray='4%2c 8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
1881
- border-radius: 3px;
1882
- &:before {
1883
- content: '';
1884
- display: block;
1885
- padding-top: 110.82%;
1886
- }
1887
- &--small {
1888
- &:before {
1889
- padding-top: 202px;
1890
- }
1891
- .img-upload {
1892
- &__container {
1893
- .blueColor {
1894
- img {
1895
- min-width: 1.875rem;
1896
- }
1897
- }
1898
- &__or {
1899
- margin: 0.625rem 0;
1900
- }
1901
- &__text {
1902
- padding: 0.5rem 1.25rem;
1903
- }
1904
- }
1905
- }
1906
- }
1907
- &__container {
1908
- position: absolute;
1909
- top: 0;
1910
- left: 0;
1911
- width: 100%;
1912
- height: 100%;
1913
- display: flex;
1914
- flex-wrap: wrap;
1915
- flex-direction: column;
1916
- justify-content: center;
1917
- align-items: center;
1918
- &__loader {
1919
- position: absolute;
1920
- top: 50%;
1921
- left: 50%;
1922
- transform: translate(-50%,-50%);
1923
- max-width: 300px;
1924
- max-height: 300px;
1925
- display: flex;
1926
- flex-wrap: wrap;
1927
- flex-direction: column;
1928
- justify-content: center;
1929
- align-items: center;
1930
- }
1931
- &__dropImgIconDiv {
1932
- @include media('<720px') {
1933
- p {
1934
- display: none;
1935
- }
1936
- }
1937
- }
1938
- &__or {
1939
- @include media('<720px') {
1940
- display: none;
1941
- }
1942
- }
1943
- .blueColor {
1944
- img {
1945
- min-width: 4.0625rem;
1946
- display: block;
1947
- max-width: 4.0625rem;
1948
- margin: 0 auto 0.9375rem;
1949
- transform: translate(10px);
1950
- }
1951
- p {
1952
- color: $border-upload-color;
1953
- font-size: 1rem;
1954
- line-height: 1.1875rem;
1955
- font-weight: 500;
1956
- margin: 0 auto 1.25rem;
1957
- }
1958
- }
1959
- &__or {
1960
- font-size: 0.875rem;
1961
- line-height: 1rem;
1962
- margin: 0 0 1.25rem !important;
1963
- }
1964
- &__text {
1965
- display: flex;
1966
- align-items: center;
1967
- justify-content: center;
1968
- width: auto;
1969
- border-radius: 3px;
1970
- padding: 0.75rem 1.25rem;
1971
- color: $white;
1972
- font-size: 0.875rem;
1973
- line-height: 1rem;
1974
- white-space: nowrap;
1975
- background-color: $img-green-color;
1976
- transition: .3s ease;
1977
- font-weight: 500;
1978
- cursor: pointer;
1979
- i {
1980
- margin: 0 0.375rem 0 0;
1981
- font-weight: 500;
1982
- }
1983
- &:hover, &:focus {
1984
- background-color: darken($img-green-color, 15%);
1985
- }
1986
- }
1987
- }
1988
- }
1989
1989
  //.wz-img-manager useful to keep the css priority
1990
1990
  .wz-img-manager .wz-loader {
1991
1991
  &.is-small {
@@ -3172,71 +3172,12 @@ image-cropper {
3172
3172
 
3173
3173
  .dropdownWizi:not(.is-hoverable) {
3174
3174
  cursor: not-allowed;
3175
- }$default-color-p-alert: #1e5568;
3176
- $success-color-p-alert: #11552e;
3177
- $warning-color-p-alert: #3a0505;
3178
- $primary-button: #e95656;
3179
- $link-color: #52aecd;
3180
- $green-color: #2ecc71;
3181
-
3182
- .wz-alert {
3183
- width: 100%;
3184
- background-color: transparentize($link-color, 0.85);
3185
- color: $link-color;
3186
- border-radius: 3px;
3187
- display: flex;
3188
- flex-wrap: nowrap;
3189
- justify-content: space-between;
3190
- padding: 20px;
3191
- &.success {
3192
- background-color: transparentize($green-color, 0.85);
3193
- p {
3194
- color: $success-color-p-alert;
3195
- > * {
3196
- color: $success-color-p-alert;
3197
- }
3198
- }
3199
- i {
3200
- color: $green-color;
3201
- }
3202
- }
3203
- &.warning {
3204
- background-color: transparentize($primary-button, 0.85);
3205
- p {
3206
- color: $warning-color-p-alert;
3207
- > * {
3208
- color: $warning-color-p-alert;
3209
- }
3210
- }
3211
- i {
3212
- color: $primary-button;
3213
- }
3214
- }
3215
- p {
3216
- width: 100%;
3217
- font-size: 0.875rem;
3218
- line-height: 1.5625rem;
3219
- margin: 0;
3220
- padding: 0;
3221
- color: $default-color-p-alert;
3222
- > * {
3223
- color: $default-color-p-alert;
3224
- }
3225
- }
3226
- i {
3227
- width: auto;
3228
- margin: 0 10px 0 0;
3229
- color: inherit;
3230
- font-size: 0.875rem;
3231
- line-height: 1.5625rem;
3232
- }
3233
- }
3234
- .wz-img-manager .input-search.field {
3235
- padding: 10px 20px;
3236
- background-color: $gray-background;
3237
- @include media('<tablet') {
3238
- padding: 0!important;
3239
- background-color: $white;
3175
+ }.wz-img-manager .input-search.field {
3176
+ padding: 10px 20px;
3177
+ background-color: $gray-background;
3178
+ @include media('<tablet') {
3179
+ padding: 0!important;
3180
+ background-color: $white;
3240
3181
  }
3241
3182
  &.small-padding {
3242
3183
  padding: 10px 20px;
@@ -3400,6 +3341,210 @@ $green-color: #2ecc71;
3400
3341
  }
3401
3342
  }
3402
3343
  }
3344
+ $default-color-p-alert: #1e5568;
3345
+ $success-color-p-alert: #11552e;
3346
+ $warning-color-p-alert: #3a0505;
3347
+ $primary-button: #e95656;
3348
+ $link-color: #52aecd;
3349
+ $green-color: #2ecc71;
3350
+
3351
+ .wz-alert {
3352
+ width: 100%;
3353
+ background-color: transparentize($link-color, 0.85);
3354
+ color: $link-color;
3355
+ border-radius: 3px;
3356
+ display: flex;
3357
+ flex-wrap: nowrap;
3358
+ justify-content: space-between;
3359
+ padding: 20px;
3360
+ &.success {
3361
+ background-color: transparentize($green-color, 0.85);
3362
+ p {
3363
+ color: $success-color-p-alert;
3364
+ > * {
3365
+ color: $success-color-p-alert;
3366
+ }
3367
+ }
3368
+ i {
3369
+ color: $green-color;
3370
+ }
3371
+ }
3372
+ &.warning {
3373
+ background-color: transparentize($primary-button, 0.85);
3374
+ p {
3375
+ color: $warning-color-p-alert;
3376
+ > * {
3377
+ color: $warning-color-p-alert;
3378
+ }
3379
+ }
3380
+ i {
3381
+ color: $primary-button;
3382
+ }
3383
+ }
3384
+ p {
3385
+ width: 100%;
3386
+ font-size: 0.875rem;
3387
+ line-height: 1.5625rem;
3388
+ margin: 0;
3389
+ padding: 0;
3390
+ color: $default-color-p-alert;
3391
+ > * {
3392
+ color: $default-color-p-alert;
3393
+ }
3394
+ }
3395
+ i {
3396
+ width: auto;
3397
+ margin: 0 10px 0 0;
3398
+ color: inherit;
3399
+ font-size: 0.875rem;
3400
+ line-height: 1.5625rem;
3401
+ }
3402
+ }
3403
+ .wz-img-manager .wz-table {
3404
+ width: 100%;
3405
+
3406
+ &__head {
3407
+ @include flexbox();
3408
+ @include flex-flow(row nowrap);
3409
+ width: 100%;
3410
+ border-top: 1px solid $textarea-border-color;
3411
+ border-bottom: 1px solid $textarea-border-color;
3412
+ background-color: $gray-background;
3413
+
3414
+ &__cell {
3415
+ @include flexbox();
3416
+ @include flex(1);
3417
+ padding: 15px 20px;
3418
+ font-size: 14px;
3419
+ line-height: 20px;
3420
+ color: $main-text;
3421
+ font-weight: 600;
3422
+
3423
+ &--checkbox {
3424
+ @include flex(none);
3425
+ width: 80px;
3426
+ padding: 10px 20px 6px 20px;
3427
+ > * {
3428
+ transform: translateX(15px);
3429
+ }
3430
+ }
3431
+
3432
+ &__search {
3433
+ color: $main-text;
3434
+ padding-right: 23px;
3435
+ transition: background-image 0.3s ease-in-out;
3436
+ cursor: text;
3437
+
3438
+ &:hover {
3439
+ color: $main-text;
3440
+ }
3441
+
3442
+ &--idle {
3443
+ background: transparent
3444
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort' viewBox='0 0 320 512' class='svg-inline--fa fa-sort fa-w-10 fa-7x'%3E%3Cpath fill='currentColor' d='M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z'/%3E%3C/svg%3E")
3445
+ center right / 14px 14px no-repeat;
3446
+ transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3447
+ cursor: pointer;
3448
+
3449
+ &:hover {
3450
+ transition: color 0.3s ease-in-out;
3451
+ }
3452
+ }
3453
+
3454
+ &--up {
3455
+ background: transparent
3456
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort-up' viewBox='0 0 320 512' class='svg-inline--fa fa-sort-up fa-w-10 fa-5x'%3E%3Cpath fill='currentColor' d='M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z'/%3E%3C/svg%3E")
3457
+ center right / 14px 14px no-repeat;
3458
+ transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3459
+ cursor: pointer;
3460
+
3461
+ &:hover {
3462
+ transition: color 0.3s ease-in-out;
3463
+ }
3464
+ }
3465
+
3466
+ &--down {
3467
+ background: transparent
3468
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort-down' viewBox='0 0 320 512' class='svg-inline--fa fa-sort-down fa-w-10 fa-7x'%3E%3Cpath fill='currentColor' d='M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z'/%3E%3C/svg%3E")
3469
+ center right / 14px 14px no-repeat;
3470
+ transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3471
+ cursor: pointer;
3472
+
3473
+ &:hover {
3474
+ transition: color 0.3s ease-in-out;
3475
+ }
3476
+ }
3477
+ }
3478
+
3479
+ &--center--left {
3480
+ @include align-items(center);
3481
+ @include justify-content(left);
3482
+ }
3483
+ &--center--center {
3484
+ @include align-items(center);
3485
+ @include justify-content(center);
3486
+ }
3487
+ &--center--right {
3488
+ @include align-items(center);
3489
+ @include justify-content(right);
3490
+ }
3491
+ }
3492
+ }
3493
+
3494
+ // TODO delete __search
3495
+ &__search {
3496
+ height: 100px;
3497
+ margin-top: 10px;
3498
+ }
3499
+
3500
+ &__body {
3501
+ width: 100%;
3502
+ margin-top: -10px;
3503
+
3504
+ &__loader {
3505
+ position: relative;
3506
+ min-height: 200px;
3507
+ }
3508
+
3509
+ &__line {
3510
+ @include flexbox();
3511
+ @include flex-flow(row nowrap);
3512
+ width: 100%;
3513
+ border-bottom: 1px solid $textarea-border-color;
3514
+
3515
+ &__cell {
3516
+ @include flexbox();
3517
+ @include flex(1);
3518
+ padding: 20px 20px 20px 20px;
3519
+ font-size: 14px;
3520
+ line-height: 25px;
3521
+ color: $secondary-color;
3522
+
3523
+ &--checkbox {
3524
+ @include flexbox();
3525
+ @include flex(none);
3526
+ @include justify-content(center);
3527
+ @include align-items(center);
3528
+ width: 80px;
3529
+ padding: 8px 20px;
3530
+ }
3531
+
3532
+ &--center--left {
3533
+ @include align-items(center);
3534
+ @include justify-content(left);
3535
+ }
3536
+ &--center--center {
3537
+ @include align-items(center);
3538
+ @include justify-content(center);
3539
+ }
3540
+ &--center--right {
3541
+ @include align-items(center);
3542
+ @include justify-content(right);
3543
+ }
3544
+ }
3545
+ }
3546
+ }
3547
+ }
3403
3548
 
3404
3549
 
3405
3550
  .wac {
@@ -3693,151 +3838,6 @@ $green-color: #2ecc71;
3693
3838
  }
3694
3839
  }
3695
3840
  }
3696
- .wz-img-manager .wz-table {
3697
- width: 100%;
3698
-
3699
- &__head {
3700
- @include flexbox();
3701
- @include flex-flow(row nowrap);
3702
- width: 100%;
3703
- border-top: 1px solid $textarea-border-color;
3704
- border-bottom: 1px solid $textarea-border-color;
3705
- background-color: $gray-background;
3706
-
3707
- &__cell {
3708
- @include flexbox();
3709
- @include flex(1);
3710
- padding: 15px 20px;
3711
- font-size: 14px;
3712
- line-height: 20px;
3713
- color: $main-text;
3714
- font-weight: 600;
3715
-
3716
- &--checkbox {
3717
- @include flex(none);
3718
- width: 80px;
3719
- padding: 10px 20px 6px 20px;
3720
- > * {
3721
- transform: translateX(15px);
3722
- }
3723
- }
3724
-
3725
- &__search {
3726
- color: $main-text;
3727
- padding-right: 23px;
3728
- transition: background-image 0.3s ease-in-out;
3729
- cursor: text;
3730
-
3731
- &:hover {
3732
- color: $main-text;
3733
- }
3734
-
3735
- &--idle {
3736
- background: transparent
3737
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort' viewBox='0 0 320 512' class='svg-inline--fa fa-sort fa-w-10 fa-7x'%3E%3Cpath fill='currentColor' d='M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z'/%3E%3C/svg%3E")
3738
- center right / 14px 14px no-repeat;
3739
- transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3740
- cursor: pointer;
3741
-
3742
- &:hover {
3743
- transition: color 0.3s ease-in-out;
3744
- }
3745
- }
3746
-
3747
- &--up {
3748
- background: transparent
3749
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort-up' viewBox='0 0 320 512' class='svg-inline--fa fa-sort-up fa-w-10 fa-5x'%3E%3Cpath fill='currentColor' d='M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z'/%3E%3C/svg%3E")
3750
- center right / 14px 14px no-repeat;
3751
- transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3752
- cursor: pointer;
3753
-
3754
- &:hover {
3755
- transition: color 0.3s ease-in-out;
3756
- }
3757
- }
3758
-
3759
- &--down {
3760
- background: transparent
3761
- url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' data-prefix='fas' data-icon='sort-down' viewBox='0 0 320 512' class='svg-inline--fa fa-sort-down fa-w-10 fa-7x'%3E%3Cpath fill='currentColor' d='M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z'/%3E%3C/svg%3E")
3762
- center right / 14px 14px no-repeat;
3763
- transition: background-image 0.3s ease-in-out, color 0.3s ease-in-out;
3764
- cursor: pointer;
3765
-
3766
- &:hover {
3767
- transition: color 0.3s ease-in-out;
3768
- }
3769
- }
3770
- }
3771
-
3772
- &--center--left {
3773
- @include align-items(center);
3774
- @include justify-content(left);
3775
- }
3776
- &--center--center {
3777
- @include align-items(center);
3778
- @include justify-content(center);
3779
- }
3780
- &--center--right {
3781
- @include align-items(center);
3782
- @include justify-content(right);
3783
- }
3784
- }
3785
- }
3786
-
3787
- // TODO delete __search
3788
- &__search {
3789
- height: 100px;
3790
- margin-top: 10px;
3791
- }
3792
-
3793
- &__body {
3794
- width: 100%;
3795
- margin-top: -10px;
3796
-
3797
- &__loader {
3798
- position: relative;
3799
- min-height: 200px;
3800
- }
3801
-
3802
- &__line {
3803
- @include flexbox();
3804
- @include flex-flow(row nowrap);
3805
- width: 100%;
3806
- border-bottom: 1px solid $textarea-border-color;
3807
-
3808
- &__cell {
3809
- @include flexbox();
3810
- @include flex(1);
3811
- padding: 20px 20px 20px 20px;
3812
- font-size: 14px;
3813
- line-height: 25px;
3814
- color: $secondary-color;
3815
-
3816
- &--checkbox {
3817
- @include flexbox();
3818
- @include flex(none);
3819
- @include justify-content(center);
3820
- @include align-items(center);
3821
- width: 80px;
3822
- padding: 8px 20px;
3823
- }
3824
-
3825
- &--center--left {
3826
- @include align-items(center);
3827
- @include justify-content(left);
3828
- }
3829
- &--center--center {
3830
- @include align-items(center);
3831
- @include justify-content(center);
3832
- }
3833
- &--center--right {
3834
- @include align-items(center);
3835
- @include justify-content(right);
3836
- }
3837
- }
3838
- }
3839
- }
3840
- }
3841
3841
  $card-img-size: 100%;
3842
3842
  $card-img-size-small: 140px;
3843
3843