benivo-ui-library 1.2.8 → 1.3.2

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": "benivo-ui-library",
3
- "version": "1.2.8",
3
+ "version": "1.3.2",
4
4
  "description": "Benivo UI library",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
@@ -52,7 +52,7 @@
52
52
  "react-router-dom": "^5.2.0",
53
53
  "react-select": "^4.3.1",
54
54
  "rimraf": "^3.0.2",
55
- "swiper": "4.3.3",
55
+ "swiper": "^6.8.3",
56
56
  "terser-webpack-plugin": "^4.2.3"
57
57
  }
58
58
  }
package/swiper-a11y.less CHANGED
@@ -1,5 +1,5 @@
1
1
  /* a11y */
2
- .swiper-container .swiper-notification {
2
+ .swiper .swiper-notification {
3
3
  position: absolute;
4
4
  left: 0;
5
5
  top: 0;
@@ -1,50 +1,66 @@
1
- .swiper-container-cube {
1
+ .swiper-cube {
2
2
  overflow: visible;
3
+
3
4
  .swiper-slide {
4
- pointer-events: none;
5
- backface-visibility: hidden;
6
- z-index: 1;
7
- visibility: hidden;
8
- transform-origin: 0 0;
9
- width: 100%;
10
- height: 100%;
11
- .swiper-slide {
12
5
  pointer-events: none;
13
- }
6
+ backface-visibility: hidden;
7
+ z-index: 1;
8
+ visibility: hidden;
9
+ transform-origin: 0 0;
10
+ width: 100%;
11
+ height: 100%;
12
+
13
+ .swiper-slide {
14
+ pointer-events: none;
15
+ }
14
16
  }
15
- &.swiper-container-rtl .swiper-slide {
16
- transform-origin: 100% 0;
17
+
18
+ &.swiper-rtl .swiper-slide {
19
+ transform-origin: 100% 0;
17
20
  }
21
+
18
22
  .swiper-slide-active {
19
- &,
20
- & .swiper-slide-active {
21
- pointer-events: auto;
22
- }
23
+ &,
24
+ & .swiper-slide-active {
25
+ pointer-events: auto;
26
+ }
23
27
  }
28
+
24
29
  .swiper-slide-active,
25
30
  .swiper-slide-next,
26
31
  .swiper-slide-prev,
27
32
  .swiper-slide-next + .swiper-slide {
28
- pointer-events: auto;
29
- visibility: visible;
33
+ pointer-events: auto;
34
+ visibility: visible;
30
35
  }
36
+
31
37
  .swiper-slide-shadow-top,
32
38
  .swiper-slide-shadow-bottom,
33
39
  .swiper-slide-shadow-left,
34
40
  .swiper-slide-shadow-right {
35
- z-index: 0;
36
- backface-visibility: hidden;
41
+ z-index: 0;
42
+ backface-visibility: hidden;
37
43
  }
44
+
38
45
  .swiper-cube-shadow {
39
- position: absolute;
40
- left: 0;
41
- bottom: 0px;
42
- width: 100%;
43
- height: 100%;
44
- background: #000;
45
- opacity: 0.6;
46
- -webkit-filter: blur(50px);
47
- filter: blur(50px);
48
- z-index: 0;
46
+ position: absolute;
47
+ left: 0;
48
+ bottom: 0px;
49
+ width: 100%;
50
+ height: 100%;
51
+ opacity: 0.6;
52
+ z-index: 0;
53
+
54
+ &:before {
55
+ content: '';
56
+ background: #000;
57
+ position: absolute;
58
+ left: 0;
59
+ top: 0;
60
+ bottom: 0;
61
+ right: 0;
62
+ -webkit-filter: blur(50px);
63
+ filter: blur(50px);
64
+ }
49
65
  }
50
- }
66
+ }
@@ -1,5 +1,5 @@
1
- .swiper-container-fade {
2
- &.swiper-container-free-mode {
1
+ .swiper-fade {
2
+ &.swiper-free-mode {
3
3
  .swiper-slide {
4
4
  transition-timing-function: ease-out;
5
5
  }
@@ -15,7 +15,6 @@
15
15
  }
16
16
 
17
17
  .swiper-slide-active {
18
-
19
18
  &,
20
19
  & .swiper-slide-active {
21
20
  pointer-events: auto;
@@ -1,4 +1,4 @@
1
- .swiper-container-flip {
1
+ .swiper-flip {
2
2
  overflow: visible;
3
3
 
4
4
  .swiper-slide {
@@ -12,7 +12,6 @@
12
12
  }
13
13
 
14
14
  .swiper-slide-active {
15
-
16
15
  &,
17
16
  & .swiper-slide-active {
18
17
  pointer-events: auto;
package/swiper-lazy.less CHANGED
@@ -1,10 +1,10 @@
1
1
  /* Preloader */
2
2
  :root {
3
3
  /*
4
- --swiper-preloader-color: var(--swiper-theme-color);
5
- */
6
- }
7
- .swiper-lazy-preloader {
4
+ --swiper-preloader-color: var(--swiper-theme-color);
5
+ */
6
+ }
7
+ .swiper-lazy-preloader {
8
8
  width: 42px;
9
9
  height: 42px;
10
10
  position: absolute;
@@ -19,16 +19,16 @@
19
19
  border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
20
20
  border-radius: 50%;
21
21
  border-top-color: transparent;
22
- }
23
-
24
- .swiper-lazy-preloader-white {
22
+ }
23
+
24
+ .swiper-lazy-preloader-white {
25
25
  --swiper-preloader-color: #fff;
26
- }
27
- .swiper-lazy-preloader-black {
26
+ }
27
+ .swiper-lazy-preloader-black {
28
28
  --swiper-preloader-color: #000;
29
- }
30
- @keyframes swiper-preloader-spin {
29
+ }
30
+ @keyframes swiper-preloader-spin {
31
31
  100% {
32
- transform: rotate(360deg);
32
+ transform: rotate(360deg);
33
33
  }
34
- }
34
+ }
@@ -9,20 +9,20 @@
9
9
  .looper( @index + 1 );
10
10
  }
11
11
  }
12
-
13
- :root {
12
+
13
+ :root {
14
14
  --swiper-navigation-size: 44px;
15
15
  /*
16
- --swiper-navigation-color: var(--swiper-theme-color);
17
- */
18
- }
16
+ --swiper-navigation-color: var(--swiper-theme-color);
17
+ */
18
+ }
19
19
  .swiper-button-prev,
20
20
  .swiper-button-next {
21
21
  position: absolute;
22
22
  top: 50%;
23
23
  width: calc(var(--swiper-navigation-size) / 44 * 27);
24
24
  height: var(--swiper-navigation-size);
25
- margin-top: calc(-1 * var(--swiper-navigation-size) / 2);
25
+ margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
26
26
  z-index: 10;
27
27
  cursor: pointer;
28
28
  display: flex;
@@ -45,58 +45,28 @@
45
45
  font-variant: initial;
46
46
  line-height: 1;
47
47
  }
48
-
49
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
50
- width: 13px;
51
- height: 8px;
52
- background-position: center;
53
- background-size: cover;
54
- z-index: 11;
55
- background-image: url("https://gpresource.blob.core.windows.net/assets/img/icons/arrow-up-gray.png");
56
- }
57
48
  }
49
+
58
50
  .swiper-button-prev,
59
- .swiper-container-rtl .swiper-button-next {
51
+ .swiper-rtl .swiper-button-next {
60
52
  &:after {
61
53
  content: 'prev';
62
54
  }
63
55
 
64
56
  left: 10px;
65
57
  right: auto;
66
-
67
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
68
- -webkit-transform: rotate(-90deg);
69
- -moz-transform: rotate(-90deg);
70
- -ms-transform: rotate(-90deg);
71
- -o-transform: rotate(-90deg);
72
- transform: rotate(-90deg);
73
- }
74
58
  }
59
+
75
60
  .swiper-button-next,
76
- .swiper-container-rtl .swiper-button-prev {
61
+ .swiper-rtl .swiper-button-prev {
77
62
  &:after {
78
63
  content: 'next';
79
64
  }
80
65
 
81
66
  right: 10px;
82
67
  left: auto;
83
-
84
- @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
85
- -webkit-transform: rotate(90deg);
86
- -moz-transform: rotate(90deg);
87
- -ms-transform: rotate(90deg);
88
- -o-transform: rotate(90deg);
89
- transform: rotate(90deg);
90
- }
91
68
  }
92
- .navigation-color-loop({
93
- .swiper-button-prev,
94
- .swiper-button-next {
95
- &.swiper-button-@{navColorName} {
96
- --swiper-navigation-color: @navColorValue;
97
- }
98
- }
99
- });
100
- .swiper-button-lock {
69
+
70
+ .swiper-button-lock {
101
71
  display: none;
102
- }
72
+ }
@@ -9,63 +9,83 @@
9
9
  .looper( @index + 1 );
10
10
  }
11
11
  }
12
-
13
- :root {
12
+
13
+ :root {
14
14
  /*
15
- --swiper-pagination-color: var(--swiper-theme-color);
16
- */
17
- }
18
- .swiper-pagination {
15
+ --swiper-pagination-color: var(--swiper-theme-color);
16
+ --swiper-pagination-bullet-size: 8px;
17
+ --swiper-pagination-bullet-width: 8px;
18
+ --swiper-pagination-bullet-height: 8px;
19
+ --swiper-pagination-bullet-inactive-color: #000;
20
+ --swiper-pagination-bullet-inactive-opacity: 0.2;
21
+ --swiper-pagination-bullet-opacity: 1;
22
+ --swiper-pagination-bullet-horizontal-gap: 4px;
23
+ --swiper-pagination-bullet-vertical-gap: 6px;
24
+ */
25
+ }
26
+
27
+ .swiper-pagination {
19
28
  position: absolute;
20
29
  text-align: center;
21
30
  transition: 300ms opacity;
22
31
  transform: translate3d(0, 0, 0);
23
32
  z-index: 10;
33
+
24
34
  &.swiper-pagination-hidden {
25
- opacity: 0;
35
+ opacity: 0;
26
36
  }
27
- }
28
- /* Common Styles */
29
- .swiper-pagination-fraction,
30
- .swiper-pagination-custom,
31
- .swiper-container-horizontal > .swiper-pagination-bullets {
37
+ }
38
+ /* Common Styles */
39
+ .swiper-pagination-fraction,
40
+ .swiper-pagination-custom,
41
+ .swiper-horizontal > .swiper-pagination-bullets,
42
+ .swiper-pagination-bullets.swiper-pagination-horizontal {
32
43
  bottom: 10px;
33
44
  left: 0;
34
45
  width: 100%;
35
- }
36
- /* Bullets */
37
- .swiper-pagination-bullets-dynamic {
46
+ }
47
+ /* Bullets */
48
+ .swiper-pagination-bullets-dynamic {
38
49
  overflow: hidden;
39
50
  font-size: 0;
51
+
40
52
  .swiper-pagination-bullet {
41
- transform: scale(0.33);
42
- position: relative;
53
+ transform: scale(0.33);
54
+ position: relative;
43
55
  }
56
+
44
57
  .swiper-pagination-bullet-active {
45
- transform: scale(1);
58
+ transform: scale(1);
46
59
  }
60
+
47
61
  .swiper-pagination-bullet-active-main {
48
- transform: scale(1);
62
+ transform: scale(1);
49
63
  }
64
+
50
65
  .swiper-pagination-bullet-active-prev {
51
- transform: scale(0.66);
66
+ transform: scale(0.66);
52
67
  }
68
+
53
69
  .swiper-pagination-bullet-active-prev-prev {
54
- transform: scale(0.33);
70
+ transform: scale(0.33);
55
71
  }
72
+
56
73
  .swiper-pagination-bullet-active-next {
57
- transform: scale(0.66);
74
+ transform: scale(0.66);
58
75
  }
76
+
59
77
  .swiper-pagination-bullet-active-next-next {
60
- transform: scale(0.33);
78
+ transform: scale(0.33);
61
79
  }
62
- }
80
+ }
81
+
63
82
  .swiper-pagination-bullet {
64
- width: 8px;
65
- height: 8px;
83
+ width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
84
+ height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
66
85
  display: inline-block;
67
- border-radius: 100%;
68
- background: #ced0da;
86
+ border-radius: 50%;
87
+ background: var(--swiper-pagination-bullet-inactive-color, #000);
88
+ opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
69
89
 
70
90
  button& {
71
91
  border: none;
@@ -78,87 +98,101 @@
78
98
  .swiper-pagination-clickable & {
79
99
  cursor: pointer;
80
100
  }
101
+
102
+ &:only-child {
103
+ display: none !important;
104
+ }
81
105
  }
82
- .swiper-pagination-bullet-active {
83
- opacity: 1;
106
+
107
+ .swiper-pagination-bullet-active {
108
+ opacity: var(--swiper-pagination-bullet-opacity, 1);
84
109
  background: var(--swiper-pagination-color, var(--swiper-theme-color));
85
- }
86
-
87
- .swiper-container-vertical {
88
- > .swiper-pagination-bullets {
89
- right: 10px;
90
- top: 50%;
91
- transform: translate3d(0px, -50%, 0);
92
- .swiper-pagination-bullet {
93
- margin: 6px 0;
110
+ }
111
+
112
+ .swiper-vertical > .swiper-pagination-bullets,
113
+ .swiper-pagination-vertical.swiper-pagination-bullets {
114
+ right: 10px;
115
+ top: 50%;
116
+ transform: translate3d(0px, -50%, 0);
117
+
118
+ .swiper-pagination-bullet {
119
+ margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
94
120
  display: block;
95
- }
96
- &.swiper-pagination-bullets-dynamic {
121
+ }
122
+
123
+ &.swiper-pagination-bullets-dynamic {
97
124
  top: 50%;
98
125
  transform: translateY(-50%);
99
126
  width: 8px;
127
+
100
128
  .swiper-pagination-bullet {
101
- display: inline-block;
102
- transition: 200ms transform, 200ms top;
129
+ display: inline-block;
130
+ transition: 200ms transform, 200ms top;
103
131
  }
104
- }
105
132
  }
106
- }
107
- .swiper-container-horizontal {
108
- > .swiper-pagination-bullets {
109
- .swiper-pagination-bullet {
110
- margin: 0 4px;
111
- }
112
- &.swiper-pagination-bullets-dynamic {
133
+ }
134
+
135
+ .swiper-horizontal > .swiper-pagination-bullets,
136
+ .swiper-pagination-horizontal.swiper-pagination-bullets {
137
+ .swiper-pagination-bullet {
138
+ margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
139
+ }
140
+
141
+ &.swiper-pagination-bullets-dynamic {
113
142
  left: 50%;
114
143
  transform: translateX(-50%);
115
144
  white-space: nowrap;
145
+
116
146
  .swiper-pagination-bullet {
117
- transition: 200ms transform, 200ms left;
147
+ transition: 200ms transform, 200ms left;
118
148
  }
119
- }
120
- }
121
- &.swiper-container-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
122
- transition: 200ms transform, 200ms right;
123
149
  }
124
- }
125
- /* Progress */
126
- .swiper-pagination-progressbar {
150
+ }
151
+
152
+ .swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
153
+ transition: 200ms transform, 200ms right;
154
+ }
155
+ /* Progress */
156
+ .swiper-pagination-progressbar {
127
157
  background: rgba(0, 0, 0, 0.25);
128
158
  position: absolute;
159
+
129
160
  .swiper-pagination-progressbar-fill {
130
- background: var(--swiper-pagination-color, var(--swiper-theme-color));
131
- position: absolute;
132
- left: 0;
133
- top: 0;
134
- width: 100%;
135
- height: 100%;
136
- transform: scale(0);
137
- transform-origin: left top;
138
- }
139
- .swiper-container-rtl & .swiper-pagination-progressbar-fill {
140
- transform-origin: right top;
141
- }
142
- .swiper-container-horizontal > &,
143
- .swiper-container-vertical > &.swiper-pagination-progressbar-opposite {
144
- width: 100%;
145
- height: 4px;
146
- left: 0;
147
- top: 0;
148
- }
149
- .swiper-container-vertical > &,
150
- .swiper-container-horizontal > &.swiper-pagination-progressbar-opposite {
151
- width: 4px;
152
- height: 100%;
153
- left: 0;
154
- top: 0;
161
+ background: var(--swiper-pagination-color, var(--swiper-theme-color));
162
+ position: absolute;
163
+ left: 0;
164
+ top: 0;
165
+ width: 100%;
166
+ height: 100%;
167
+ transform: scale(0);
168
+ transform-origin: left top;
155
169
  }
156
- }
157
- .pagination-color-loop({
158
- .swiper-pagination-@{paginationColorName} {
159
- --swiper-pagination-color: @paginationColorValue;
170
+
171
+ .swiper-rtl & .swiper-pagination-progressbar-fill {
172
+ transform-origin: right top;
160
173
  }
161
- });
162
- .swiper-pagination-lock {
174
+
175
+ .swiper-horizontal > &,
176
+ &.swiper-pagination-horizontal,
177
+ .swiper-vertical > &.swiper-pagination-progressbar-opposite,
178
+ &.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {
179
+ width: 100%;
180
+ height: 4px;
181
+ left: 0;
182
+ top: 0;
183
+ }
184
+
185
+ .swiper-vertical > &,
186
+ &.swiper-pagination-vertical,
187
+ .swiper-horizontal > &.swiper-pagination-progressbar-opposite,
188
+ &.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {
189
+ width: 4px;
190
+ height: 100%;
191
+ left: 0;
192
+ top: 0;
193
+ }
194
+ }
195
+
196
+ .swiper-pagination-lock {
163
197
  display: none;
164
- }
198
+ }
@@ -4,24 +4,27 @@
4
4
  position: relative;
5
5
  -ms-touch-action: none;
6
6
  background: rgba(0, 0, 0, 0.1);
7
- .swiper-container-horizontal > & {
8
- position: absolute;
9
- left: 1%;
10
- bottom: 3px;
11
- z-index: 50;
12
- height: 5px;
13
- width: 98%;
7
+
8
+ .swiper-horizontal > & {
9
+ position: absolute;
10
+ left: 1%;
11
+ bottom: 3px;
12
+ z-index: 50;
13
+ height: 5px;
14
+ width: 98%;
14
15
  }
15
- .swiper-container-vertical > & {
16
- position: absolute;
17
- right: 3px;
18
- top: 1%;
19
- z-index: 50;
20
- width: 5px;
21
- height: 98%;
16
+
17
+ .swiper-vertical > & {
18
+ position: absolute;
19
+ right: 3px;
20
+ top: 1%;
21
+ z-index: 50;
22
+ width: 5px;
23
+ height: 98%;
22
24
  }
23
- }
24
- .swiper-scrollbar-drag {
25
+ }
26
+
27
+ .swiper-scrollbar-drag {
25
28
  height: 100%;
26
29
  width: 100%;
27
30
  position: relative;
@@ -29,10 +32,12 @@
29
32
  border-radius: 10px;
30
33
  left: 0;
31
34
  top: 0;
32
- }
33
- .swiper-scrollbar-cursor-drag {
35
+ }
36
+
37
+ .swiper-scrollbar-cursor-drag {
34
38
  cursor: move;
35
- }
36
- .swiper-scrollbar-lock {
39
+ }
40
+
41
+ .swiper-scrollbar-lock {
37
42
  display: none;
38
- }
43
+ }
package/swiper-thumb.less CHANGED
@@ -1,5 +1,5 @@
1
- .swiper-container-thumbs {
1
+ .swiper-thumbs {
2
2
  .swiper-slide-thumb-active {
3
- // Styles for active thumb slide
3
+ // Styles for active thumb slide
4
4
  }
5
- }
5
+ }
package/swiper-zoom.less CHANGED
@@ -5,16 +5,16 @@
5
5
  justify-content: center;
6
6
  align-items: center;
7
7
  text-align: center;
8
-
8
+
9
9
  > img,
10
10
  > svg,
11
11
  > canvas {
12
- max-width: 100%;
13
- max-height: 100%;
14
- object-fit: contain;
12
+ max-width: 100%;
13
+ max-height: 100%;
14
+ object-fit: contain;
15
15
  }
16
- }
17
-
18
- .swiper-slide-zoomed {
16
+ }
17
+
18
+ .swiper-slide-zoomed {
19
19
  cursor: move;
20
- }
20
+ }
package/swiper.less CHANGED
@@ -150,7 +150,7 @@
150
150
  }
151
151
  }
152
152
 
153
- .swiper-container-vertical.swiper-container-css-mode {
153
+ .swiper-vertical.swiper-css-mode {
154
154
  >.swiper-wrapper {
155
155
  scroll-snap-type: y mandatory;
156
156
  }