@royaloperahouse/harmonic 0.2.3-e → 0.2.3-g
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/dist/components/Typography/Typography.d.ts +1 -0
- package/dist/components/molecules/Swipe/helper.d.ts +0 -2
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.d.ts +0 -1
- package/dist/harmonic.cjs.development.css +105 -105
- package/dist/harmonic.cjs.development.js +29 -33
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +60 -64
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -1
- package/dist/types/editorial.d.ts +2 -2
- package/dist/types/information.d.ts +2 -2
- package/dist/types/typography.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IGenericTypographyProps, IHarmonicHeaderProps } from '../../types/typography';
|
|
3
|
+
import './styles.css';
|
|
3
4
|
export declare const DisplayHeader: ({ children, size, em, color, serif, className }: IGenericTypographyProps) => React.JSX.Element;
|
|
4
5
|
export declare const HarmonicHeader: ({ children, size, em, color, serif, hierarchy: Tag, className, }: IHarmonicHeaderProps) => React.JSX.Element;
|
|
5
6
|
export declare const HarmonicSubtitle: ({ children, size, color, className }: IGenericTypographyProps) => React.JSX.Element;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export declare const disableTabbingInside: (element: HTMLElement | null, shouldDisable: boolean) => void;
|
|
2
|
-
export declare const isCloneSlide: (index: number, clonesCount: number, childrenLength: number, infinite: boolean) => boolean;
|
|
3
1
|
export declare const getVisibleIndexes: (currentIndex: number, slideWidths: number[], containerWidth: number, slidesLength: number) => number[];
|
|
4
2
|
export declare const getMovedSlides: (delta: number, slideWidths: number[]) => number;
|
package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ declare type Props = {
|
|
|
7
7
|
setCurrentSlide: React.Dispatch<React.SetStateAction<number>>;
|
|
8
8
|
carouselRef: React.RefObject<SwipeRef>;
|
|
9
9
|
hasMultipleSlides: boolean;
|
|
10
|
-
carouselTitle: string | undefined;
|
|
11
10
|
};
|
|
12
11
|
declare const SwipeCarousel: FunctionComponent<Props>;
|
|
13
12
|
export default SwipeCarousel;
|
|
@@ -1,234 +1,192 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'GreyLLTT';
|
|
3
|
-
src: url('https://static.roh.org.uk/fonts/harmonic/GreyLLTT-Regular.woff2') format('woff2');
|
|
4
|
-
font-weight: 400;
|
|
5
|
-
font-style: normal;
|
|
6
|
-
font-display: swap;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: 'GreyLLTT';
|
|
11
|
-
src: url('https://static.roh.org.uk/fonts/harmonic/GreyLLTT-Medium.woff2') format('woff2');
|
|
12
|
-
font-weight: 500;
|
|
13
|
-
font-style: normal;
|
|
14
|
-
font-display: swap;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@font-face {
|
|
18
|
-
font-family: 'GreyLLTT';
|
|
19
|
-
src: url('https://static.roh.org.uk/fonts/harmonic/GreyLLTT-Bold.woff2') format('woff2');
|
|
20
|
-
font-weight: 700;
|
|
21
|
-
font-style: normal;
|
|
22
|
-
font-display: swap;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@font-face {
|
|
26
|
-
font-family: 'VictorSerif';
|
|
27
|
-
src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-Medium.woff2')
|
|
28
|
-
format('woff2');
|
|
29
|
-
font-weight: 500;
|
|
30
|
-
font-style: normal;
|
|
31
|
-
font-display: swap;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@font-face {
|
|
35
|
-
font-family: 'VictorSerif';
|
|
36
|
-
src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-MediumItalic.woff2')
|
|
37
|
-
format('woff2');
|
|
38
|
-
font-weight: 500;
|
|
39
|
-
font-style: italic;
|
|
40
|
-
font-display: swap;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
1
|
/* ~~~~~ General Styling Classes ~~~~~ */
|
|
44
|
-
.
|
|
2
|
+
.styles_color-primary__UYod1 {
|
|
45
3
|
color: var(--color-primary);
|
|
46
4
|
}
|
|
47
5
|
|
|
48
|
-
.
|
|
6
|
+
.styles_color-black__a05Fo {
|
|
49
7
|
color: var(--color-base-black);
|
|
50
8
|
}
|
|
51
9
|
|
|
52
|
-
.
|
|
10
|
+
.styles_color-white__HiYDT {
|
|
53
11
|
color: var(--color-base-white);
|
|
54
12
|
}
|
|
55
13
|
|
|
56
|
-
.
|
|
14
|
+
.styles_color-red__zwTZW {
|
|
57
15
|
color: var(--color-primary-red);
|
|
58
16
|
}
|
|
59
17
|
|
|
60
|
-
.
|
|
18
|
+
.styles_color-grey__Gc0wv {
|
|
61
19
|
color: var(--color-base-dark-grey);
|
|
62
20
|
}
|
|
63
21
|
|
|
64
|
-
.
|
|
22
|
+
.styles_color-inherit__Y12df {
|
|
65
23
|
color: inherit;
|
|
66
24
|
}
|
|
67
25
|
|
|
68
|
-
.
|
|
26
|
+
.styles_em__v4FoO {
|
|
69
27
|
font-style: italic;
|
|
70
28
|
}
|
|
71
29
|
/* ~~~ */
|
|
72
30
|
|
|
73
31
|
/* Display Headers */
|
|
74
|
-
.
|
|
32
|
+
.styles_display__VgnTB {
|
|
75
33
|
margin: 0;
|
|
76
34
|
font-family: var(--font-family-sans);
|
|
77
35
|
line-height: 100%;
|
|
78
36
|
|
|
79
|
-
&.
|
|
37
|
+
&.styles_large__vqVxY {
|
|
80
38
|
font-size: 96px;
|
|
81
39
|
font-weight: 700;
|
|
82
40
|
letter-spacing: -5px;
|
|
83
41
|
}
|
|
84
42
|
|
|
85
|
-
&.
|
|
43
|
+
&.styles_small__e7YDe {
|
|
86
44
|
font-size: 68px;
|
|
87
45
|
font-weight: 500;
|
|
88
46
|
letter-spacing: -3px;
|
|
89
47
|
}
|
|
90
48
|
|
|
91
49
|
/* Serif and Italic styles */
|
|
92
|
-
&.
|
|
93
|
-
&.
|
|
50
|
+
&.styles_serif__b-ZjM,
|
|
51
|
+
&.styles_em__v4FoO {
|
|
94
52
|
font-family: var(--font-family-serif);
|
|
95
53
|
font-weight: 500;
|
|
96
54
|
}
|
|
97
55
|
|
|
98
56
|
/* Serif and Italic adjustments */
|
|
99
|
-
&.
|
|
100
|
-
&.
|
|
57
|
+
&.styles_large__vqVxY.styles_serif__b-ZjM,
|
|
58
|
+
&.styles_large__vqVxY.styles_em__v4FoO {
|
|
101
59
|
letter-spacing: -3px;
|
|
102
60
|
}
|
|
103
61
|
|
|
104
|
-
&.
|
|
105
|
-
&.
|
|
62
|
+
&.styles_small__e7YDe.styles_serif__b-ZjM,
|
|
63
|
+
&.styles_small__e7YDe.styles_em__v4FoO {
|
|
106
64
|
letter-spacing: -2px;
|
|
107
65
|
}
|
|
108
66
|
|
|
109
67
|
@media (max-width: 699px) {
|
|
110
|
-
&.
|
|
68
|
+
&.styles_large__vqVxY {
|
|
111
69
|
font-size: 38px;
|
|
112
70
|
letter-spacing: -1.5px;
|
|
113
71
|
}
|
|
114
72
|
|
|
115
|
-
&.
|
|
73
|
+
&.styles_small__e7YDe {
|
|
116
74
|
font-size: 32px;
|
|
117
75
|
letter-spacing: -1.5px;
|
|
118
76
|
}
|
|
119
77
|
|
|
120
|
-
&.
|
|
121
|
-
&.
|
|
122
|
-
&.
|
|
123
|
-
&.
|
|
78
|
+
&.styles_large__vqVxY.styles_serif__b-ZjM,
|
|
79
|
+
&.styles_large__vqVxY.styles_em__v4FoO,
|
|
80
|
+
&.styles_small__e7YDe.styles_serif__b-ZjM,
|
|
81
|
+
&.styles_small__e7YDe.styles_em__v4FoO {
|
|
124
82
|
letter-spacing: -0.5px;
|
|
125
83
|
}
|
|
126
84
|
}
|
|
127
85
|
}
|
|
128
86
|
|
|
129
87
|
/* Headers */
|
|
130
|
-
.
|
|
88
|
+
.styles_header__UDH-H {
|
|
131
89
|
margin: 0;
|
|
132
90
|
font-family: var(--font-family-sans);
|
|
133
91
|
font-weight: 500;
|
|
134
92
|
|
|
135
|
-
&.
|
|
93
|
+
&.styles_large__vqVxY {
|
|
136
94
|
font-size: 44px;
|
|
137
95
|
line-height: 48px;
|
|
138
96
|
letter-spacing: -1.5px;
|
|
139
97
|
}
|
|
140
98
|
|
|
141
|
-
&.
|
|
99
|
+
&.styles_medium__WQPZj {
|
|
142
100
|
font-size: 34px;
|
|
143
101
|
line-height: 40px;
|
|
144
102
|
letter-spacing: -1px;
|
|
145
103
|
}
|
|
146
104
|
|
|
147
|
-
&.
|
|
105
|
+
&.styles_small__e7YDe {
|
|
148
106
|
font-size: 26px;
|
|
149
107
|
line-height: 32px;
|
|
150
108
|
letter-spacing: -0.5px;
|
|
151
109
|
}
|
|
152
110
|
|
|
153
111
|
/* Serif and Italic styles */
|
|
154
|
-
&.
|
|
155
|
-
&.
|
|
112
|
+
&.styles_serif__b-ZjM,
|
|
113
|
+
&.styles_em__v4FoO {
|
|
156
114
|
font-family: var(--font-family-serif);
|
|
157
115
|
}
|
|
158
116
|
|
|
159
117
|
/* Serif and Italic letter-spacing overrides */
|
|
160
|
-
&.
|
|
161
|
-
&.
|
|
118
|
+
&.styles_large__vqVxY.styles_serif__b-ZjM,
|
|
119
|
+
&.styles_large__vqVxY.styles_em__v4FoO {
|
|
162
120
|
letter-spacing: -0.5px;
|
|
163
121
|
}
|
|
164
122
|
|
|
165
|
-
&.
|
|
166
|
-
&.
|
|
123
|
+
&.styles_medium__WQPZj.styles_serif__b-ZjM,
|
|
124
|
+
&.styles_medium__WQPZj.styles_em__v4FoO {
|
|
167
125
|
letter-spacing: -0.5px;
|
|
168
126
|
}
|
|
169
127
|
|
|
170
|
-
&.
|
|
171
|
-
&.
|
|
128
|
+
&.styles_small__e7YDe.styles_serif__b-ZjM,
|
|
129
|
+
&.styles_small__e7YDe.styles_em__v4FoO {
|
|
172
130
|
letter-spacing: -0.5px;
|
|
173
131
|
}
|
|
174
132
|
|
|
175
133
|
@media (max-width: 699px) {
|
|
176
|
-
&.
|
|
134
|
+
&.styles_large__vqVxY {
|
|
177
135
|
font-size: 28px;
|
|
178
136
|
line-height: 34px;
|
|
179
137
|
letter-spacing: -1.5px;
|
|
180
138
|
}
|
|
181
139
|
|
|
182
|
-
&.
|
|
140
|
+
&.styles_medium__WQPZj {
|
|
183
141
|
font-size: 24px;
|
|
184
142
|
line-height: 28px;
|
|
185
143
|
letter-spacing: -1px;
|
|
186
144
|
}
|
|
187
145
|
|
|
188
|
-
&.
|
|
146
|
+
&.styles_small__e7YDe {
|
|
189
147
|
font-size: 20px;
|
|
190
148
|
line-height: 26px;
|
|
191
149
|
letter-spacing: -0.75px;
|
|
192
150
|
}
|
|
193
151
|
|
|
194
152
|
/* Mobile overrides for serif/italic letter-spacing */
|
|
195
|
-
&.
|
|
196
|
-
&.
|
|
197
|
-
&.
|
|
198
|
-
&.
|
|
199
|
-
&.
|
|
200
|
-
&.
|
|
153
|
+
&.styles_large__vqVxY.styles_serif__b-ZjM,
|
|
154
|
+
&.styles_large__vqVxY.styles_em__v4FoO,
|
|
155
|
+
&.styles_medium__WQPZj.styles_serif__b-ZjM,
|
|
156
|
+
&.styles_medium__WQPZj.styles_em__v4FoO,
|
|
157
|
+
&.styles_small__e7YDe.styles_serif__b-ZjM,
|
|
158
|
+
&.styles_small__e7YDe.styles_em__v4FoO {
|
|
201
159
|
letter-spacing: -0.5px;
|
|
202
160
|
}
|
|
203
161
|
}
|
|
204
162
|
}
|
|
205
163
|
|
|
206
164
|
/* Subtitle */
|
|
207
|
-
.
|
|
165
|
+
.styles_subtitle__os3DH {
|
|
208
166
|
margin: 0;
|
|
209
167
|
font-family: var(--font-family-sans);
|
|
210
168
|
font-weight: 500;
|
|
211
169
|
|
|
212
|
-
&.
|
|
170
|
+
&.styles_large__vqVxY {
|
|
213
171
|
font-size: 19px;
|
|
214
172
|
line-height: 26px;
|
|
215
173
|
letter-spacing: -0.5px;
|
|
216
174
|
}
|
|
217
175
|
|
|
218
|
-
&.
|
|
176
|
+
&.styles_small__e7YDe {
|
|
219
177
|
font-size: 17px;
|
|
220
178
|
line-height: 24px;
|
|
221
179
|
letter-spacing: -0.5px;
|
|
222
180
|
}
|
|
223
181
|
|
|
224
182
|
@media (max-width: 699px) {
|
|
225
|
-
&.
|
|
183
|
+
&.styles_large__vqVxY {
|
|
226
184
|
font-size: 17px;
|
|
227
185
|
line-height: 24px;
|
|
228
186
|
letter-spacing: -0.5px;
|
|
229
187
|
}
|
|
230
188
|
|
|
231
|
-
&.
|
|
189
|
+
&.styles_small__e7YDe {
|
|
232
190
|
font-size: 14px;
|
|
233
191
|
line-height: 20px;
|
|
234
192
|
letter-spacing: -0.2px;
|
|
@@ -237,43 +195,43 @@
|
|
|
237
195
|
}
|
|
238
196
|
|
|
239
197
|
/* Body Copy */
|
|
240
|
-
.
|
|
198
|
+
.styles_bodycopy__uEx9r {
|
|
241
199
|
margin: 0;
|
|
242
200
|
font-family: var(--font-family-sans);
|
|
243
201
|
font-weight: 400;
|
|
244
202
|
|
|
245
|
-
&.
|
|
203
|
+
&.styles_large__vqVxY {
|
|
246
204
|
font-size: 19px;
|
|
247
205
|
line-height: 26px;
|
|
248
206
|
letter-spacing: -0.5px;
|
|
249
207
|
}
|
|
250
208
|
|
|
251
|
-
&.
|
|
209
|
+
&.styles_medium__WQPZj {
|
|
252
210
|
font-size: 17px;
|
|
253
211
|
line-height: 24px;
|
|
254
212
|
letter-spacing: -0.5px;
|
|
255
213
|
}
|
|
256
214
|
|
|
257
|
-
&.
|
|
215
|
+
&.styles_small__e7YDe {
|
|
258
216
|
font-size: 14px;
|
|
259
217
|
line-height: 20px;
|
|
260
218
|
letter-spacing: -0.5px;
|
|
261
219
|
}
|
|
262
220
|
|
|
263
221
|
@media (max-width: 699px) {
|
|
264
|
-
&.
|
|
222
|
+
&.styles_large__vqVxY {
|
|
265
223
|
font-size: 17px;
|
|
266
224
|
line-height: 24px;
|
|
267
225
|
letter-spacing: -0.5px;
|
|
268
226
|
}
|
|
269
227
|
|
|
270
|
-
&.
|
|
228
|
+
&.styles_medium__WQPZj {
|
|
271
229
|
font-size: 14px;
|
|
272
230
|
line-height: 20px;
|
|
273
231
|
letter-spacing: -0.2px;
|
|
274
232
|
}
|
|
275
233
|
|
|
276
|
-
&.
|
|
234
|
+
&.styles_small__e7YDe {
|
|
277
235
|
font-size: 11px;
|
|
278
236
|
line-height: 16px;
|
|
279
237
|
letter-spacing: -0.2px;
|
|
@@ -282,31 +240,31 @@
|
|
|
282
240
|
}
|
|
283
241
|
|
|
284
242
|
/* Overline */
|
|
285
|
-
.
|
|
243
|
+
.styles_overline__5xGDa {
|
|
286
244
|
margin: 0;
|
|
287
245
|
font-family: var(--font-family-sans);
|
|
288
246
|
font-weight: 500;
|
|
289
247
|
text-transform: uppercase;
|
|
290
248
|
|
|
291
|
-
&.
|
|
249
|
+
&.styles_large__vqVxY {
|
|
292
250
|
font-size: 14px;
|
|
293
251
|
line-height: 18px;
|
|
294
252
|
letter-spacing: 0.3px;
|
|
295
253
|
}
|
|
296
254
|
|
|
297
|
-
&.
|
|
255
|
+
&.styles_small__e7YDe {
|
|
298
256
|
font-size: 12px;
|
|
299
257
|
line-height: 14px;
|
|
300
258
|
letter-spacing: 0.2px;
|
|
301
259
|
}
|
|
302
260
|
|
|
303
261
|
@media (max-width: 699px) {
|
|
304
|
-
&.
|
|
262
|
+
&.styles_large__vqVxY {
|
|
305
263
|
line-height: 17px;
|
|
306
264
|
letter-spacing: 0.3px; /* Added to ensure it stays */
|
|
307
265
|
}
|
|
308
266
|
|
|
309
|
-
&.
|
|
267
|
+
&.styles_small__e7YDe {
|
|
310
268
|
line-height: 14px;
|
|
311
269
|
letter-spacing: 0.3px;
|
|
312
270
|
}
|
|
@@ -314,7 +272,7 @@
|
|
|
314
272
|
}
|
|
315
273
|
|
|
316
274
|
/* Button Text */
|
|
317
|
-
.
|
|
275
|
+
.styles_buttontext__UPumF {
|
|
318
276
|
margin: 0;
|
|
319
277
|
font-family: var(--font-family-sans);
|
|
320
278
|
font-size: 17px;
|
|
@@ -329,7 +287,7 @@
|
|
|
329
287
|
}
|
|
330
288
|
|
|
331
289
|
/* Caption Text */
|
|
332
|
-
.
|
|
290
|
+
.styles_captiontext__-TA6x {
|
|
333
291
|
margin: 0;
|
|
334
292
|
font-family: var(--font-family-sans);
|
|
335
293
|
font-weight: 400;
|
|
@@ -345,7 +303,7 @@
|
|
|
345
303
|
}
|
|
346
304
|
|
|
347
305
|
/* Navigation Text */
|
|
348
|
-
.
|
|
306
|
+
.styles_navigationtext__qnnIo {
|
|
349
307
|
margin: 0;
|
|
350
308
|
font-family: var(--font-family-sans);
|
|
351
309
|
font-size: 19px;
|
|
@@ -359,6 +317,48 @@
|
|
|
359
317
|
}
|
|
360
318
|
}
|
|
361
319
|
|
|
320
|
+
@font-face {
|
|
321
|
+
font-family: 'GreyLLTT';
|
|
322
|
+
src: url('https://static.roh.org.uk/fonts/harmonic/GreyLLTT-Regular.woff2') format('woff2');
|
|
323
|
+
font-weight: 400;
|
|
324
|
+
font-style: normal;
|
|
325
|
+
font-display: swap;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
@font-face {
|
|
329
|
+
font-family: 'GreyLLTT';
|
|
330
|
+
src: url('https://static.roh.org.uk/fonts/harmonic/GreyLLTT-Medium.woff2') format('woff2');
|
|
331
|
+
font-weight: 500;
|
|
332
|
+
font-style: normal;
|
|
333
|
+
font-display: swap;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
@font-face {
|
|
337
|
+
font-family: 'GreyLLTT';
|
|
338
|
+
src: url('https://static.roh.org.uk/fonts/harmonic/GreyLLTT-Bold.woff2') format('woff2');
|
|
339
|
+
font-weight: 700;
|
|
340
|
+
font-style: normal;
|
|
341
|
+
font-display: swap;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
@font-face {
|
|
345
|
+
font-family: 'VictorSerif';
|
|
346
|
+
src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-Medium.woff2')
|
|
347
|
+
format('woff2');
|
|
348
|
+
font-weight: 500;
|
|
349
|
+
font-style: normal;
|
|
350
|
+
font-display: swap;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
@font-face {
|
|
354
|
+
font-family: 'VictorSerif';
|
|
355
|
+
src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-MediumItalic.woff2')
|
|
356
|
+
format('woff2');
|
|
357
|
+
font-weight: 500;
|
|
358
|
+
font-style: italic;
|
|
359
|
+
font-display: swap;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
362
|
.core-theme-module_coreTheme__pWxYB {
|
|
363
363
|
/* RBO Red */
|
|
364
364
|
/* Primary Palette */
|
|
@@ -7449,17 +7449,6 @@ var generateDomElementId = function generateDomElementId() {
|
|
|
7449
7449
|
return randomPart + "-" + datePart;
|
|
7450
7450
|
};
|
|
7451
7451
|
|
|
7452
|
-
var DISABLED_TABBING_TAGS = 'a, button';
|
|
7453
|
-
var disableTabbingInside = function disableTabbingInside(element, shouldDisable) {
|
|
7454
|
-
if (!element) return;
|
|
7455
|
-
var focusables = element.querySelectorAll(DISABLED_TABBING_TAGS);
|
|
7456
|
-
focusables.forEach(function (el) {
|
|
7457
|
-
if (shouldDisable) el.setAttribute('tabindex', '-1');
|
|
7458
|
-
});
|
|
7459
|
-
};
|
|
7460
|
-
var isCloneSlide = function isCloneSlide(index, clonesCount, childrenLength, infinite) {
|
|
7461
|
-
return infinite && (index < clonesCount || index >= childrenLength + clonesCount);
|
|
7462
|
-
};
|
|
7463
7452
|
var getVisibleIndexes = function getVisibleIndexes(currentIndex, slideWidths, containerWidth, slidesLength) {
|
|
7464
7453
|
var widthSoFar = 0;
|
|
7465
7454
|
var visible = [];
|
|
@@ -7723,13 +7712,11 @@ var Swipe = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7723
7712
|
var visibleIndexes = getVisibleIndexes(currentIndex, slideWidths, containerWidth, slides.length);
|
|
7724
7713
|
return /*#__PURE__*/React__default.createElement(SwipeContainer, Object.assign({
|
|
7725
7714
|
ref: containerRef,
|
|
7726
|
-
className: "swipe",
|
|
7727
7715
|
onTouchStart: handleTouchStart,
|
|
7728
7716
|
onTouchMove: handleTouchMove,
|
|
7729
7717
|
onTouchEnd: handleTouchEnd,
|
|
7730
7718
|
onMouseDown: handleMouseDown,
|
|
7731
|
-
|
|
7732
|
-
role: "list"
|
|
7719
|
+
className: "swipe"
|
|
7733
7720
|
}, props), /*#__PURE__*/React__default.createElement(SwipeTrack, {
|
|
7734
7721
|
className: "swipe-track-wrapper",
|
|
7735
7722
|
translateX: dragTranslateX !== null ? dragTranslateX : getTranslateX(),
|
|
@@ -7737,21 +7724,17 @@ var Swipe = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7737
7724
|
onTransitionEnd: handleTransitionEnd
|
|
7738
7725
|
}, slides.map(function (child, index) {
|
|
7739
7726
|
var isVisible = visibleIndexes.includes(index);
|
|
7740
|
-
|
|
7741
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
7727
|
+
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
7742
7728
|
key: "swipe-slide-" + uniqueIdRef.current + "-" + index,
|
|
7729
|
+
ariaHidden: !isVisible,
|
|
7743
7730
|
className: SWIPE_SLIDE_CLASS_NAME,
|
|
7744
|
-
"aria-hidden": !isVisible,
|
|
7745
|
-
"aria-roledescription": "slide",
|
|
7746
|
-
role: "listitem",
|
|
7747
7731
|
ref: function ref(el) {
|
|
7748
7732
|
childRefs.current[index] = el;
|
|
7749
|
-
disableTabbingInside(el, isClone);
|
|
7750
7733
|
},
|
|
7751
7734
|
onFocus: function onFocus() {
|
|
7752
7735
|
return onSlideFocus(isVisible, index);
|
|
7753
7736
|
}
|
|
7754
|
-
}
|
|
7737
|
+
});
|
|
7755
7738
|
})));
|
|
7756
7739
|
});
|
|
7757
7740
|
Swipe.displayName = 'Swipe';
|
|
@@ -7866,8 +7849,15 @@ var Carousel = function Carousel(_ref) {
|
|
|
7866
7849
|
"data-testid": "carousel-swipe",
|
|
7867
7850
|
ref: swipeRef,
|
|
7868
7851
|
infinite: infinite,
|
|
7869
|
-
slidesOffsetBefore: slidesOffsetBefore
|
|
7870
|
-
|
|
7852
|
+
slidesOffsetBefore: slidesOffsetBefore,
|
|
7853
|
+
role: "list",
|
|
7854
|
+
"aria-roledescription": "carousel"
|
|
7855
|
+
}, React__default.Children.toArray(children).map(function (child, index) {
|
|
7856
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
7857
|
+
key: "carousel-slide-" + index,
|
|
7858
|
+
"aria-roledescription": "slide"
|
|
7859
|
+
}, child);
|
|
7860
|
+
})))));
|
|
7871
7861
|
};
|
|
7872
7862
|
|
|
7873
7863
|
var _templateObject$P, _templateObject2$C, _templateObject3$p, _templateObject4$k, _templateObject5$f, _templateObject6$d, _templateObject7$8, _templateObject8$6, _templateObject9$3, _templateObject10$3, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16, _templateObject17;
|
|
@@ -9204,7 +9194,7 @@ var TitleWrapper$3 = /*#__PURE__*/styled__default.div(_templateObject10$5 || (_t
|
|
|
9204
9194
|
var isButtonPresent = _ref6.isButtonPresent;
|
|
9205
9195
|
return isButtonPresent ? '20px' : '0';
|
|
9206
9196
|
});
|
|
9207
|
-
var ContentWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject11$3 || (_templateObject11$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n min-height: 70px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n @media ", " {\n
|
|
9197
|
+
var ContentWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject11$3 || (_templateObject11$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n min-height: 70px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n @media ", " {\n height: auto;\n flex-direction: column;\n justify-content: start;\n }\n"])), devices.mobile);
|
|
9208
9198
|
|
|
9209
9199
|
var PageHeadingPromoBadge;
|
|
9210
9200
|
(function (PageHeadingPromoBadge) {
|
|
@@ -10369,7 +10359,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
10369
10359
|
}, title), subtitle ? /*#__PURE__*/React__default.createElement(HarmonicSubtitleWithWrapper, {
|
|
10370
10360
|
size: "medium"
|
|
10371
10361
|
}, subtitle) : null, /*#__PURE__*/React__default.createElement(BodyCopyHarmonicWithWrapper, {
|
|
10372
|
-
size: "
|
|
10362
|
+
size: "large",
|
|
10373
10363
|
dangerouslySetInnerHTML: {
|
|
10374
10364
|
__html: text
|
|
10375
10365
|
}
|
|
@@ -10377,7 +10367,11 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
10377
10367
|
"data-testid": "buttons-wrapper",
|
|
10378
10368
|
primaryButtonTextLength: primaryButtonText.length,
|
|
10379
10369
|
tertiaryButtonTextLength: tertiaryButtonText.length
|
|
10380
|
-
}, primaryButton ? /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({
|
|
10370
|
+
}, primaryButton ? (/*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({
|
|
10371
|
+
target: "_blank"
|
|
10372
|
+
}, restPrimaryButton), primaryButtonTextTruncate)) : null, tertiaryButton ? (/*#__PURE__*/React__default.createElement(TertiaryButton, Object.assign({
|
|
10373
|
+
target: "_blank"
|
|
10374
|
+
}, restTertiaryButton), tertiaryButtonTextTruncate)) : null)) : null));
|
|
10381
10375
|
};
|
|
10382
10376
|
|
|
10383
10377
|
var _templateObject$1a;
|
|
@@ -12241,18 +12235,21 @@ var SwipeCarousel = function SwipeCarousel(_ref2) {
|
|
|
12241
12235
|
currentSlide = _ref2.currentSlide,
|
|
12242
12236
|
carouselRef = _ref2.carouselRef,
|
|
12243
12237
|
hasMultipleSlides = _ref2.hasMultipleSlides,
|
|
12244
|
-
setCurrentSlide = _ref2.setCurrentSlide
|
|
12245
|
-
carouselTitle = _ref2.carouselTitle;
|
|
12238
|
+
setCurrentSlide = _ref2.setCurrentSlide;
|
|
12246
12239
|
var hasOnlyImageSlides = slidesMedia.every(function (slide) {
|
|
12247
12240
|
return !isVideoSlide(slide);
|
|
12248
12241
|
});
|
|
12249
12242
|
return /*#__PURE__*/React__default.createElement(Swipe, {
|
|
12250
12243
|
ref: carouselRef,
|
|
12251
12244
|
infinite: hasMultipleSlides && hasOnlyImageSlides,
|
|
12252
|
-
onIndexChange: setCurrentSlide
|
|
12245
|
+
onIndexChange: setCurrentSlide,
|
|
12246
|
+
"aria-roledescription": "carousel"
|
|
12253
12247
|
}, slidesMedia.map(function (mediaContent, index) {
|
|
12254
12248
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12255
|
-
|
|
12249
|
+
className: "swiper-slide",
|
|
12250
|
+
key: mediaContent.key,
|
|
12251
|
+
"aria-hidden": index !== currentSlide,
|
|
12252
|
+
"aria-roledescription": "slide"
|
|
12256
12253
|
}, /*#__PURE__*/React__default.createElement(ImageAspectRatioWrapper, {
|
|
12257
12254
|
aspectRatio: exports.AspectRatio['4:3']
|
|
12258
12255
|
}, isVideoSlide(mediaContent) ? (/*#__PURE__*/React__default.createElement(VideoSlide, {
|
|
@@ -12336,7 +12333,6 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
12336
12333
|
availablePrev: hasOnlyImageSlides || currentSlide !== 0,
|
|
12337
12334
|
availableNext: hasOnlyImageSlides || currentSlide !== slidesMedia.length - 1
|
|
12338
12335
|
}))), /*#__PURE__*/React__default.createElement(SwipeCarousel, {
|
|
12339
|
-
carouselTitle: carouselTitle,
|
|
12340
12336
|
slidesMedia: slidesMedia,
|
|
12341
12337
|
hasMultipleSlides: hasMultipleSlides,
|
|
12342
12338
|
carouselRef: carouselRef,
|
|
@@ -13437,7 +13433,7 @@ var GlobalStyles = /*#__PURE__*/styled.createGlobalStyle(_templateObject$1p || (
|
|
|
13437
13433
|
}, devices.desktop, devices.largeDesktop);
|
|
13438
13434
|
|
|
13439
13435
|
/* ~~~~~~~ new harmonic types ~~~~~~~ */
|
|
13440
|
-
var
|
|
13436
|
+
var HarmonicSize = {
|
|
13441
13437
|
Small: 'small',
|
|
13442
13438
|
Medium: 'medium',
|
|
13443
13439
|
Large: 'large'
|
|
@@ -13464,7 +13460,7 @@ exports.Footer = Footer;
|
|
|
13464
13460
|
exports.GlobalStyles = GlobalStyles;
|
|
13465
13461
|
exports.Grid = Grid;
|
|
13466
13462
|
exports.GridItem = GridItem;
|
|
13467
|
-
exports.
|
|
13463
|
+
exports.HarmonicSize = HarmonicSize;
|
|
13468
13464
|
exports.HarmonicThemeProvider = HarmonicThemeProvider;
|
|
13469
13465
|
exports.Header = Header;
|
|
13470
13466
|
exports.HighlightsCarousel = HighlightsCarousel;
|