@gravity-ui/page-constructor 8.13.1 → 8.13.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/build/cjs/_vendor/swiper-modules.js +187 -136
- package/build/cjs/_vendor/swiper-modules.js.map +3 -3
- package/build/cjs/_vendor/swiper-react.js +770 -481
- package/build/cjs/_vendor/swiper-react.js.map +3 -3
- package/build/cjs/_vendor/swiper.js +693 -404
- package/build/cjs/_vendor/swiper.js.map +3 -3
- package/build/cjs/node_modules/swiper/modules/index.js +187 -136
- package/build/cjs/node_modules/swiper/modules/pagination.css +108 -104
- package/build/cjs/node_modules/swiper/package.json +1 -1
- package/build/cjs/node_modules/swiper/swiper-react.d.ts +5 -0
- package/build/cjs/node_modules/swiper/swiper-react.js +770 -481
- package/build/cjs/node_modules/swiper/swiper.css +124 -102
- package/build/cjs/node_modules/swiper/swiper.js +693 -404
- package/build/cjs/node_modules/swiper/types/modules/index.d.ts +0 -2
- package/package.json +3 -2
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
transition: 300ms opacity;
|
|
26
26
|
transform: translate3d(0, 0, 0);
|
|
27
27
|
z-index: 10;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
&.swiper-pagination-hidden {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
.swiper-pagination-disabled > &,
|
|
32
|
+
&.swiper-pagination-disabled {
|
|
33
|
+
display: none !important;
|
|
34
|
+
}
|
|
35
35
|
}
|
|
36
36
|
/* Common Styles */
|
|
37
37
|
.swiper-pagination-fraction,
|
|
@@ -47,28 +47,28 @@
|
|
|
47
47
|
.swiper-pagination-bullets-dynamic {
|
|
48
48
|
overflow: hidden;
|
|
49
49
|
font-size: 0;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
50
|
+
.swiper-pagination-bullet {
|
|
51
|
+
transform: scale(0.33);
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
.swiper-pagination-bullet-active {
|
|
55
|
+
transform: scale(1);
|
|
56
|
+
}
|
|
57
|
+
.swiper-pagination-bullet-active-main {
|
|
58
|
+
transform: scale(1);
|
|
59
|
+
}
|
|
60
|
+
.swiper-pagination-bullet-active-prev {
|
|
61
|
+
transform: scale(0.66);
|
|
62
|
+
}
|
|
63
|
+
.swiper-pagination-bullet-active-prev-prev {
|
|
64
|
+
transform: scale(0.33);
|
|
65
|
+
}
|
|
66
|
+
.swiper-pagination-bullet-active-next {
|
|
67
|
+
transform: scale(0.66);
|
|
68
|
+
}
|
|
69
|
+
.swiper-pagination-bullet-active-next-next {
|
|
70
|
+
transform: scale(0.33);
|
|
71
|
+
}
|
|
72
72
|
}
|
|
73
73
|
.swiper-pagination-bullet {
|
|
74
74
|
width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
|
|
@@ -77,64 +77,68 @@
|
|
|
77
77
|
border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
|
|
78
78
|
background: var(--swiper-pagination-bullet-inactive-color, #000);
|
|
79
79
|
opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
80
|
+
button& {
|
|
81
|
+
border: none;
|
|
82
|
+
margin: 0;
|
|
83
|
+
padding: 0;
|
|
84
|
+
box-shadow: none;
|
|
85
|
+
appearance: none;
|
|
86
|
+
}
|
|
87
|
+
.swiper-pagination-clickable & {
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:only-child {
|
|
92
|
+
display: none !important;
|
|
93
|
+
}
|
|
94
94
|
}
|
|
95
95
|
.swiper-pagination-bullet-active {
|
|
96
96
|
opacity: var(--swiper-pagination-bullet-opacity, 1);
|
|
97
97
|
background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
|
98
98
|
}
|
|
99
|
+
|
|
99
100
|
.swiper-vertical > .swiper-pagination-bullets,
|
|
100
101
|
.swiper-pagination-vertical.swiper-pagination-bullets {
|
|
101
102
|
right: var(--swiper-pagination-right, 8px);
|
|
102
103
|
left: var(--swiper-pagination-left, auto);
|
|
103
104
|
top: 50%;
|
|
104
105
|
transform: translate3d(0px, -50%, 0);
|
|
106
|
+
.swiper-pagination-bullet {
|
|
107
|
+
margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
|
|
108
|
+
display: block;
|
|
109
|
+
}
|
|
110
|
+
&.swiper-pagination-bullets-dynamic {
|
|
111
|
+
top: 50%;
|
|
112
|
+
transform: translateY(-50%);
|
|
113
|
+
width: 8px;
|
|
114
|
+
.swiper-pagination-bullet {
|
|
115
|
+
display: inline-block;
|
|
116
|
+
transition:
|
|
117
|
+
200ms transform,
|
|
118
|
+
200ms top;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
105
121
|
}
|
|
106
|
-
.swiper-
|
|
107
|
-
.swiper-pagination-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
|
|
123
|
-
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
|
|
124
|
-
margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
|
|
125
|
-
}
|
|
126
|
-
.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
|
|
127
|
-
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
|
|
128
|
-
left: 50%;
|
|
129
|
-
transform: translateX(-50%);
|
|
130
|
-
white-space: nowrap;
|
|
131
|
-
}
|
|
132
|
-
.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
|
|
133
|
-
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
|
134
|
-
transition: 200ms transform, 200ms left;
|
|
122
|
+
.swiper-horizontal > .swiper-pagination-bullets,
|
|
123
|
+
.swiper-pagination-horizontal.swiper-pagination-bullets {
|
|
124
|
+
.swiper-pagination-bullet {
|
|
125
|
+
margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
|
|
126
|
+
}
|
|
127
|
+
&.swiper-pagination-bullets-dynamic {
|
|
128
|
+
left: 50%;
|
|
129
|
+
transform: translateX(-50%);
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
.swiper-pagination-bullet {
|
|
132
|
+
transition:
|
|
133
|
+
200ms transform,
|
|
134
|
+
200ms left;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
135
137
|
}
|
|
136
138
|
.swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
|
137
|
-
transition:
|
|
139
|
+
transition:
|
|
140
|
+
200ms transform,
|
|
141
|
+
200ms right;
|
|
138
142
|
}
|
|
139
143
|
/* Fraction */
|
|
140
144
|
.swiper-pagination-fraction {
|
|
@@ -144,37 +148,37 @@ button.swiper-pagination-bullet {
|
|
|
144
148
|
.swiper-pagination-progressbar {
|
|
145
149
|
background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));
|
|
146
150
|
position: absolute;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
.swiper-pagination-progressbar
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
.swiper-pagination-progressbar
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
151
|
+
.swiper-pagination-progressbar-fill {
|
|
152
|
+
background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
|
153
|
+
position: absolute;
|
|
154
|
+
left: 0;
|
|
155
|
+
top: 0;
|
|
156
|
+
width: 100%;
|
|
157
|
+
height: 100%;
|
|
158
|
+
transform: scale(0);
|
|
159
|
+
transform-origin: left top;
|
|
160
|
+
}
|
|
161
|
+
.swiper-rtl & .swiper-pagination-progressbar-fill {
|
|
162
|
+
transform-origin: right top;
|
|
163
|
+
}
|
|
164
|
+
.swiper-horizontal > &,
|
|
165
|
+
&.swiper-pagination-horizontal,
|
|
166
|
+
.swiper-vertical > &.swiper-pagination-progressbar-opposite,
|
|
167
|
+
&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {
|
|
168
|
+
width: 100%;
|
|
169
|
+
height: var(--swiper-pagination-progressbar-size, 4px);
|
|
170
|
+
left: 0;
|
|
171
|
+
top: 0;
|
|
172
|
+
}
|
|
173
|
+
.swiper-vertical > &,
|
|
174
|
+
&.swiper-pagination-vertical,
|
|
175
|
+
.swiper-horizontal > &.swiper-pagination-progressbar-opposite,
|
|
176
|
+
&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {
|
|
177
|
+
width: var(--swiper-pagination-progressbar-size, 4px);
|
|
178
|
+
height: 100%;
|
|
179
|
+
left: 0;
|
|
180
|
+
top: 0;
|
|
181
|
+
}
|
|
178
182
|
}
|
|
179
183
|
.swiper-pagination-lock {
|
|
180
184
|
display: none;
|
|
@@ -160,6 +160,10 @@ type SwiperProps = Omit<
|
|
|
160
160
|
*/
|
|
161
161
|
onBeforeDestroy?: (swiper: SwiperClass) => void;
|
|
162
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Event will be fired after slides and their sizes are calculated and updated
|
|
165
|
+
*/
|
|
166
|
+
onSlidesUpdated?: (swiper: SwiperClass) => void;
|
|
163
167
|
/**
|
|
164
168
|
* Event will be fired when currently active slide is changed
|
|
165
169
|
*/
|
|
@@ -432,6 +436,7 @@ type SwiperProps = Omit<
|
|
|
432
436
|
interface SlideData {
|
|
433
437
|
isActive: boolean;
|
|
434
438
|
isVisible: boolean;
|
|
439
|
+
isFullyVisible: boolean;
|
|
435
440
|
isPrev: boolean;
|
|
436
441
|
isNext: boolean;
|
|
437
442
|
}
|