@times-components/ts-components 1.145.1-76ee0965069e2a17bc1f8dcf02d24e8fefd6869a.0 → 1.145.1-7e7a12feaf05c514789e802bf49cadca92e6a2b9.10

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.
Files changed (143) hide show
  1. package/dist/components/carousel-component/CarouselComponent.stories.js +146 -0
  2. package/dist/components/carousel-component/CarouselItem.d.ts +3 -0
  3. package/dist/components/carousel-component/CarouselItem.js +11 -0
  4. package/dist/components/carousel-component/DefaultNavigationArrow.d.ts +8 -0
  5. package/dist/components/carousel-component/DefaultNavigationArrow.js +6 -0
  6. package/dist/components/carousel-component/DefaultPageDot.d.ts +8 -0
  7. package/dist/components/carousel-component/DefaultPageDot.js +4 -0
  8. package/dist/components/{opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.d.ts → carousel-component/__tests__/CarouselComponent.test.d.ts} +0 -1
  9. package/dist/components/carousel-component/__tests__/CarouselComponent.test.js +163 -0
  10. package/dist/components/carousel-component/__tests__/CarouselItem.test.d.ts +1 -0
  11. package/dist/components/carousel-component/__tests__/CarouselItem.test.js +80 -0
  12. package/dist/components/carousel-component/__tests__/DefaultNavigationArrow.test.d.ts +1 -0
  13. package/dist/components/carousel-component/__tests__/DefaultNavigationArrow.test.js +62 -0
  14. package/dist/components/carousel-component/__tests__/DefaultPageDot.test.d.ts +1 -0
  15. package/dist/components/carousel-component/__tests__/DefaultPageDot.test.js +68 -0
  16. package/dist/components/carousel-component/hooks/__tests__/useCarousel.test.d.ts +1 -0
  17. package/dist/components/carousel-component/hooks/__tests__/useCarousel.test.js +459 -0
  18. package/dist/components/carousel-component/hooks/useCarousel.d.ts +2 -0
  19. package/dist/components/carousel-component/hooks/useCarousel.js +175 -0
  20. package/dist/components/carousel-component/index.d.ts +4 -0
  21. package/dist/components/carousel-component/index.js +20 -0
  22. package/dist/components/carousel-component/styles.d.ts +27 -0
  23. package/dist/components/carousel-component/styles.js +169 -0
  24. package/dist/components/carousel-component/types.d.ts +53 -0
  25. package/dist/components/carousel-component/types.js +2 -0
  26. package/dist/components/opta/football/opta-match-stats/shared/styles.js +1 -8
  27. package/dist/components/trip-cards/SkeletonCard.d.ts +6 -0
  28. package/dist/components/trip-cards/SkeletonCard.js +21 -0
  29. package/dist/components/trip-cards/TripCard.d.ts +3 -0
  30. package/dist/components/trip-cards/TripCard.js +49 -0
  31. package/dist/components/trip-cards/TripCards.stories.d.ts +1 -0
  32. package/dist/components/trip-cards/TripCards.stories.js +189 -0
  33. package/dist/components/trip-cards/TripCardsLayout.d.ts +3 -0
  34. package/dist/components/trip-cards/TripCardsLayout.js +37 -0
  35. package/dist/components/trip-cards/__tests__/SkeletonCard.test.d.ts +1 -0
  36. package/dist/components/trip-cards/__tests__/SkeletonCard.test.js +139 -0
  37. package/dist/components/trip-cards/__tests__/TripCard.test.d.ts +1 -0
  38. package/dist/components/trip-cards/__tests__/TripCard.test.js +95 -0
  39. package/dist/components/trip-cards/__tests__/TripCardsLayout.test.d.ts +1 -0
  40. package/dist/components/trip-cards/__tests__/TripCardsLayout.test.js +277 -0
  41. package/dist/components/trip-cards/__tests__/assets.test.d.ts +1 -0
  42. package/dist/components/trip-cards/__tests__/assets.test.js +165 -0
  43. package/dist/components/trip-cards/__tests__/helpers.test.d.ts +1 -0
  44. package/dist/components/trip-cards/__tests__/helpers.test.js +216 -0
  45. package/dist/components/trip-cards/__tests__/index.test.d.ts +1 -0
  46. package/dist/components/trip-cards/__tests__/index.test.js +433 -0
  47. package/dist/components/trip-cards/__tests__/mockData.test.d.ts +1 -0
  48. package/dist/components/trip-cards/__tests__/mockData.test.js +57 -0
  49. package/dist/components/trip-cards/__tests__/skeletonStyles.test.d.ts +1 -0
  50. package/dist/components/trip-cards/__tests__/skeletonStyles.test.js +194 -0
  51. package/dist/components/trip-cards/assets/BoatIcon.d.ts +1 -0
  52. package/dist/components/trip-cards/assets/BoatIcon.js +4 -0
  53. package/dist/components/trip-cards/assets/CalendarIcon.d.ts +1 -0
  54. package/dist/components/trip-cards/assets/CalendarIcon.js +4 -0
  55. package/dist/components/trip-cards/assets/ChevronRightIcon.d.ts +1 -0
  56. package/dist/components/trip-cards/assets/ChevronRightIcon.js +4 -0
  57. package/dist/components/trip-cards/assets/LocationIcon.d.ts +1 -0
  58. package/dist/components/trip-cards/assets/LocationIcon.js +4 -0
  59. package/dist/components/trip-cards/assets/MoonIcon.d.ts +1 -0
  60. package/dist/components/trip-cards/assets/MoonIcon.js +4 -0
  61. package/dist/components/trip-cards/assets/index.d.ts +6 -0
  62. package/dist/components/trip-cards/assets/index.js +7 -0
  63. package/dist/components/trip-cards/helpers.d.ts +4 -0
  64. package/dist/components/trip-cards/helpers.js +115 -0
  65. package/dist/components/trip-cards/index.d.ts +4 -0
  66. package/dist/components/trip-cards/index.js +70 -0
  67. package/dist/components/trip-cards/mockData.d.ts +3 -0
  68. package/dist/components/trip-cards/mockData.js +317 -0
  69. package/dist/components/trip-cards/skeletonStyles.d.ts +9 -0
  70. package/dist/components/trip-cards/skeletonStyles.js +37 -0
  71. package/dist/components/trip-cards/styles.d.ts +38 -0
  72. package/dist/components/trip-cards/styles.js +401 -0
  73. package/dist/components/trip-cards/types.d.ts +119 -0
  74. package/dist/components/trip-cards/types.js +2 -0
  75. package/dist/index.d.ts +1 -0
  76. package/dist/index.js +2 -4
  77. package/package.json +3 -3
  78. package/rnw.js +1 -1
  79. package/src/components/carousel-component/CarouselComponent.stories.tsx +220 -0
  80. package/src/components/carousel-component/CarouselItem.tsx +25 -0
  81. package/src/components/carousel-component/DefaultNavigationArrow.tsx +37 -0
  82. package/src/components/carousel-component/DefaultPageDot.tsx +20 -0
  83. package/src/components/carousel-component/__tests__/CarouselComponent.test.tsx +259 -0
  84. package/src/components/carousel-component/__tests__/CarouselItem.test.tsx +140 -0
  85. package/src/components/carousel-component/__tests__/DefaultNavigationArrow.test.tsx +153 -0
  86. package/src/components/carousel-component/__tests__/DefaultPageDot.test.tsx +105 -0
  87. package/src/components/carousel-component/hooks/__tests__/useCarousel.test.ts +625 -0
  88. package/src/components/carousel-component/hooks/useCarousel.ts +231 -0
  89. package/src/components/carousel-component/index.tsx +92 -0
  90. package/src/components/carousel-component/styles.ts +185 -0
  91. package/src/components/carousel-component/types.ts +62 -0
  92. package/src/components/opta/football/opta-match-stats/commentary/__tests__/__snapshots__/OptaMatchStatsCommentary.test.tsx.snap +1 -1
  93. package/src/components/opta/football/opta-match-stats/shared/styles.ts +0 -8
  94. package/src/components/opta/football/opta-match-stats/stats-graphs/__tests__/__snapshots__/OptaMatchStatsGraphs.test.tsx.snap +1 -1
  95. package/src/components/trip-cards/SkeletonCard.tsx +62 -0
  96. package/src/components/trip-cards/TripCard.tsx +143 -0
  97. package/src/components/trip-cards/TripCards.stories.tsx +254 -0
  98. package/src/components/trip-cards/TripCardsLayout.tsx +108 -0
  99. package/src/components/trip-cards/__tests__/SkeletonCard.test.tsx +169 -0
  100. package/src/components/trip-cards/__tests__/TripCard.test.tsx +120 -0
  101. package/src/components/trip-cards/__tests__/TripCardsLayout.test.tsx +532 -0
  102. package/src/components/trip-cards/__tests__/assets.test.tsx +206 -0
  103. package/src/components/trip-cards/__tests__/helpers.test.ts +266 -0
  104. package/src/components/trip-cards/__tests__/index.test.tsx +495 -0
  105. package/src/components/trip-cards/__tests__/mockData.test.ts +67 -0
  106. package/src/components/trip-cards/__tests__/skeletonStyles.test.tsx +256 -0
  107. package/src/components/trip-cards/assets/BoatIcon.tsx +17 -0
  108. package/src/components/trip-cards/assets/CalendarIcon.tsx +17 -0
  109. package/src/components/trip-cards/assets/ChevronRightIcon.tsx +20 -0
  110. package/src/components/trip-cards/assets/LocationIcon.tsx +17 -0
  111. package/src/components/trip-cards/assets/MoonIcon.tsx +17 -0
  112. package/src/components/trip-cards/assets/index.ts +7 -0
  113. package/src/components/trip-cards/helpers.ts +150 -0
  114. package/src/components/trip-cards/index.tsx +119 -0
  115. package/src/components/trip-cards/mockData.ts +345 -0
  116. package/src/components/trip-cards/skeletonStyles.ts +46 -0
  117. package/src/components/trip-cards/styles.ts +446 -0
  118. package/src/components/trip-cards/types.ts +128 -0
  119. package/src/index.ts +2 -3
  120. package/dist/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.d.ts +0 -10
  121. package/dist/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.js +0 -69
  122. package/dist/components/opta/football/opta-match-stats/matchday-live/MobileWidget.d.ts +0 -12
  123. package/dist/components/opta/football/opta-match-stats/matchday-live/MobileWidget.js +0 -90
  124. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.d.ts +0 -12
  125. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.js +0 -10
  126. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.js +0 -24
  127. package/dist/components/opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.js +0 -48
  128. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.d.ts +0 -1
  129. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.js +0 -19
  130. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.d.ts +0 -12
  131. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.js +0 -67
  132. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.d.ts +0 -6
  133. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.js +0 -714
  134. package/src/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.tsx +0 -108
  135. package/src/components/opta/football/opta-match-stats/matchday-live/MobileWidget.tsx +0 -158
  136. package/src/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.tsx +0 -38
  137. package/src/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.tsx +0 -23
  138. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.tsx +0 -61
  139. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/__snapshots__/OptaMatchStatsMatchdayLive.test.tsx.snap +0 -61
  140. package/src/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.tsx +0 -19
  141. package/src/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.tsx +0 -81
  142. package/src/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.tsx +0 -745
  143. /package/dist/components/{opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.d.ts → carousel-component/CarouselComponent.stories.d.ts} +0 -0
@@ -0,0 +1,345 @@
1
+ import { TripCardApiData, ApiCruiseResult } from './types';
2
+ import { transformApiResult } from './helpers';
3
+
4
+ export const mockApiResults: ApiCruiseResult[] = [
5
+ {
6
+ post_id: 34246,
7
+ cruise_id: 2074350,
8
+ cruise_title: 'Mediterranean from Barcelona',
9
+ cruise_line: {
10
+ name: 'MSC Cruises',
11
+ link:
12
+ 'https://www.staging-thetimes.com/holidays/cruise-lines/msc-cruises/',
13
+ logo:
14
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/MSC.png'
15
+ },
16
+ ship: {
17
+ name: 'MSC Seaside',
18
+ link: 'https://www.staging-thetimes.com/holidays/ships/msc-seaside/',
19
+ image:
20
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/1595507284-scaled-1024x683.jpg'
21
+ },
22
+ departs: '2025-10-21',
23
+ ends: '2025-10-28',
24
+ date_label: 'Oct 21 - Oct 28, 2025',
25
+ destination: ['Mediterranean'],
26
+ duration: 7,
27
+ itinerary: [
28
+ 'Barcelona',
29
+ 'La Goulette',
30
+ 'Palermo (Monreale), Italy',
31
+ 'Naples (Pompeii), Italy',
32
+ 'Livorno(Florence), Italy',
33
+ 'Marseille (Provence), France'
34
+ ],
35
+ prices: {
36
+ cheapest_price: 2000,
37
+ inside: 'Enquire now',
38
+ outside: 'Enquire now',
39
+ balcony: '2000',
40
+ suite: 'Enquire now'
41
+ },
42
+ was_prices: {
43
+ inside: 0,
44
+ outside: 0,
45
+ balcony: 2500,
46
+ suite: 0
47
+ },
48
+ link:
49
+ 'https://www.staging-thetimes.com/holidays/cruises/mediterranean-from-barcelona-msc-seaside-2025-10-21/',
50
+ campaigns: [],
51
+ extras: {
52
+ date: 'Oct 2025 - Oct 2025',
53
+ duration: 'Seven Days',
54
+ destination: 'Mediterranean',
55
+ info: 'Seven nights onboard a four-star ship'
56
+ }
57
+ },
58
+ {
59
+ post_id: 37835,
60
+ cruise_id: 2140335,
61
+ cruise_title: 'Mediterranean from Genoa',
62
+ cruise_line: {
63
+ name: 'MSC Cruises',
64
+ link:
65
+ 'https://www.staging-thetimes.com/holidays/cruise-lines/msc-cruises/',
66
+ logo:
67
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/MSC.png'
68
+ },
69
+ ship: {
70
+ name: 'MSC Poesia',
71
+ link: 'https://www.staging-thetimes.com/holidays/ships/msc-poesia/',
72
+ image:
73
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/1595507127-scaled-1024x518.jpg'
74
+ },
75
+ departs: '2025-10-21',
76
+ ends: '2025-10-25',
77
+ date_label: 'Oct 21 - Oct 25, 2025',
78
+ destination: ['Mediterranean'],
79
+ duration: 4,
80
+ itinerary: [
81
+ 'Genoa (Portofino), Italy',
82
+ 'Barcelona',
83
+ 'Marseille (Provence), France'
84
+ ],
85
+ prices: {
86
+ cheapest_price: 0,
87
+ inside: 'Enquire now',
88
+ outside: 'Enquire now',
89
+ balcony: 'Enquire now',
90
+ suite: 'Enquire now'
91
+ },
92
+ was_prices: {
93
+ inside: 0,
94
+ outside: 0,
95
+ balcony: 0,
96
+ suite: 0
97
+ },
98
+ link:
99
+ 'https://www.staging-thetimes.com/holidays/cruises/mediterranean-from-genoa-msc-poesia-2025-10-21/',
100
+ campaigns: [],
101
+ extras: {
102
+ date: 'Oct 2025 - Oct 2025',
103
+ duration: 'Four Days',
104
+ destination: 'Mediterranean',
105
+ info: 'Four nights onboard a four-star ship'
106
+ }
107
+ },
108
+ {
109
+ post_id: 41162,
110
+ cruise_id: 2177685,
111
+ cruise_title: 'MSC Grand Voyages from Barcelona',
112
+ cruise_line: {
113
+ name: 'MSC Cruises',
114
+ link:
115
+ 'https://www.staging-thetimes.com/holidays/cruise-lines/msc-cruises/',
116
+ logo:
117
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/MSC.png'
118
+ },
119
+ ship: {
120
+ name: 'MSC Euribia',
121
+ link: 'https://www.staging-thetimes.com/holidays/ships/msc-euribia/',
122
+ image:
123
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/1650819843-1024x579.jpg'
124
+ },
125
+ departs: '2025-10-21',
126
+ ends: '2025-11-12',
127
+ date_label: 'Oct 21 - Nov 12, 2025',
128
+ destination: [
129
+ 'Mediterranean',
130
+ 'Iberian Peninsula',
131
+ 'Dubai & Emirates',
132
+ 'Egypt & Red Sea'
133
+ ],
134
+ duration: 22,
135
+ itinerary: [
136
+ 'Barcelona',
137
+ 'Marseille (Provence), France',
138
+ 'Civitavecchia (Rome), Italy',
139
+ 'Alexandria',
140
+ 'Suez Canal Transit',
141
+ 'Aqaba',
142
+ 'Muscat',
143
+ 'Doha, Qatar',
144
+ 'Dubai',
145
+ 'Bahrain',
146
+ 'Abu Dhabi'
147
+ ],
148
+ prices: {
149
+ cheapest_price: 0,
150
+ inside: 'Enquire now',
151
+ outside: 'Enquire now',
152
+ balcony: 'Enquire now',
153
+ suite: 'Enquire now'
154
+ },
155
+ was_prices: {
156
+ inside: 0,
157
+ outside: 0,
158
+ balcony: 0,
159
+ suite: 0
160
+ },
161
+ link:
162
+ 'https://www.staging-thetimes.com/holidays/cruises/msc-grand-voyages-from-barcelona-msc-euribia-2025-10-21/',
163
+ campaigns: [],
164
+ extras: {
165
+ date: 'Oct 2025 - Nov 2025',
166
+ duration: 'Twenty-two Days',
167
+ destination:
168
+ 'Mediterranean, Iberian Peninsula, Dubai & Emirates, Egypt & Red Sea',
169
+ info: 'Twenty-two nights onboard a five-star ship'
170
+ }
171
+ },
172
+ {
173
+ post_id: 34246,
174
+ cruise_id: 2074351,
175
+ cruise_title: 'Mediterranean from Barcelona',
176
+ cruise_line: {
177
+ name: 'MSC Cruises',
178
+ link:
179
+ 'https://www.staging-thetimes.com/holidays/cruise-lines/msc-cruises/',
180
+ logo:
181
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/MSC.png'
182
+ },
183
+ ship: {
184
+ name: 'MSC Seaside',
185
+ link: 'https://www.staging-thetimes.com/holidays/ships/msc-seaside/',
186
+ image:
187
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/1595507284-scaled-1024x683.jpg'
188
+ },
189
+ departs: '2025-10-21',
190
+ ends: '2025-10-28',
191
+ date_label: 'Oct 21 - Oct 28, 2025',
192
+ destination: ['Mediterranean'],
193
+ duration: 7,
194
+ itinerary: [
195
+ 'Barcelona',
196
+ 'La Goulette',
197
+ 'Palermo (Monreale), Italy',
198
+ 'Naples (Pompeii), Italy',
199
+ 'Livorno(Florence), Italy',
200
+ 'Marseille (Provence), France'
201
+ ],
202
+ prices: {
203
+ cheapest_price: 4550,
204
+ inside: 'Enquire now',
205
+ outside: 'Enquire now',
206
+ balcony: '4550',
207
+ suite: 'Enquire now'
208
+ },
209
+ was_prices: {
210
+ inside: 0,
211
+ outside: 0,
212
+ balcony: 0,
213
+ suite: 0
214
+ },
215
+ link:
216
+ 'https://www.staging-thetimes.com/holidays/cruises/mediterranean-from-barcelona-msc-seaside-2025-10-21/',
217
+ campaigns: [],
218
+ extras: {
219
+ date: 'Oct 2025 - Oct 2025',
220
+ duration: 'Seven Days',
221
+ destination: 'Mediterranean',
222
+ info: 'Seven nights onboard a four-star ship'
223
+ }
224
+ },
225
+ {
226
+ post_id: 37835,
227
+ cruise_id: 2140336,
228
+ cruise_title: 'Mediterranean from Genoa',
229
+ cruise_line: {
230
+ name: 'MSC Cruises',
231
+ link:
232
+ 'https://www.staging-thetimes.com/holidays/cruise-lines/msc-cruises/',
233
+ logo:
234
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/MSC.png'
235
+ },
236
+ ship: {
237
+ name: 'MSC Poesia',
238
+ link: 'https://www.staging-thetimes.com/holidays/ships/msc-poesia/',
239
+ image:
240
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/1595507127-scaled-1024x518.jpg'
241
+ },
242
+ departs: '2025-10-21',
243
+ ends: '2025-10-25',
244
+ date_label: 'Oct 21 - Oct 25, 2025',
245
+ destination: ['Mediterranean'],
246
+ duration: 4,
247
+ itinerary: [
248
+ 'Genoa (Portofino), Italy',
249
+ 'Barcelona',
250
+ 'Marseille (Provence), France'
251
+ ],
252
+ prices: {
253
+ cheapest_price: 0,
254
+ inside: 'Enquire now',
255
+ outside: 'Enquire now',
256
+ balcony: 'Enquire now',
257
+ suite: 'Enquire now'
258
+ },
259
+ was_prices: {
260
+ inside: 0,
261
+ outside: 0,
262
+ balcony: 0,
263
+ suite: 0
264
+ },
265
+ link:
266
+ 'https://www.staging-thetimes.com/holidays/cruises/mediterranean-from-genoa-msc-poesia-2025-10-21/',
267
+ campaigns: [],
268
+ extras: {
269
+ date: 'Oct 2025 - Oct 2025',
270
+ duration: 'Four Days',
271
+ destination: 'Mediterranean',
272
+ info: 'Four nights onboard a four-star ship'
273
+ }
274
+ },
275
+ {
276
+ post_id: 41162,
277
+ cruise_id: 2177686,
278
+ cruise_title: 'MSC Grand Voyages from Barcelona',
279
+ cruise_line: {
280
+ name: 'MSC Cruises',
281
+ link:
282
+ 'https://www.staging-thetimes.com/holidays/cruise-lines/msc-cruises/',
283
+ logo:
284
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/MSC.png'
285
+ },
286
+ ship: {
287
+ name: 'MSC Euribia',
288
+ link: 'https://www.staging-thetimes.com/holidays/ships/msc-euribia/',
289
+ image:
290
+ 'https://www.staging-thetimes.com/holidays/wp-content/uploads/2025/05/1650819843-1024x579.jpg'
291
+ },
292
+ departs: '2025-10-21',
293
+ ends: '2025-11-12',
294
+ date_label: 'Oct 21 - Nov 12, 2025',
295
+ destination: [
296
+ 'Mediterranean',
297
+ 'Iberian Peninsula',
298
+ 'Dubai & Emirates',
299
+ 'Egypt & Red Sea'
300
+ ],
301
+ duration: 22,
302
+ itinerary: [
303
+ 'Barcelona',
304
+ 'Marseille (Provence), France',
305
+ 'Civitavecchia (Rome), Italy',
306
+ 'Alexandria',
307
+ 'Suez Canal Transit',
308
+ 'Aqaba',
309
+ 'Muscat',
310
+ 'Doha, Qatar',
311
+ 'Dubai',
312
+ 'Bahrain',
313
+ 'Abu Dhabi'
314
+ ],
315
+ prices: {
316
+ cheapest_price: 0,
317
+ inside: 'Enquire now',
318
+ outside: 'Enquire now',
319
+ balcony: 'Enquire now',
320
+ suite: 'Enquire now'
321
+ },
322
+ was_prices: {
323
+ inside: 0,
324
+ outside: 0,
325
+ balcony: 0,
326
+ suite: 0
327
+ },
328
+ link:
329
+ 'https://www.staging-thetimes.com/holidays/cruises/msc-grand-voyages-from-barcelona-msc-euribia-2025-10-21/',
330
+ campaigns: [],
331
+ extras: {
332
+ date: 'Oct 2025 - Nov 2025',
333
+ duration: 'Twenty-two Days',
334
+ destination:
335
+ 'Mediterranean, Iberian Peninsula, Dubai & Emirates, Egypt & Red Sea',
336
+ info: 'Twenty-two nights onboard a five-star ship'
337
+ }
338
+ }
339
+ ];
340
+
341
+ // Get mock data already transformed
342
+ export const getMockTripCards = (count?: number): TripCardApiData[] => {
343
+ const allCards = mockApiResults.map(transformApiResult);
344
+ return count ? allCards.slice(0, count) : allCards;
345
+ };
@@ -0,0 +1,46 @@
1
+ import styled, { css } from 'styled-components';
2
+ import { CTAButton } from './styles';
3
+
4
+ const skeletonBase = css`
5
+ background: linear-gradient(
6
+ to right,
7
+ #f0f0f0 0%,
8
+ #f5f2f2 20%,
9
+ #f0f0f0 40%,
10
+ #f0f0f0 100%
11
+ );
12
+ background-size: 800px 104px;
13
+ `;
14
+
15
+ interface SkeletonLineProps {
16
+ width?: string;
17
+ marginBottom?: string;
18
+ }
19
+
20
+ export const SkeletonLine = styled.div<SkeletonLineProps>`
21
+ ${skeletonBase} height: 16px;
22
+ width: ${props => props.width || '100%'};
23
+ margin-bottom: ${props => props.marginBottom || '0'};
24
+ `;
25
+
26
+ export const SkeletonHeadline = styled.div`
27
+ ${skeletonBase} height: 48px;
28
+ width: 100%;
29
+ margin-bottom: 16px;
30
+ `;
31
+
32
+ export const SkeletonPrice = styled.div`
33
+ ${skeletonBase} height: 28px;
34
+ width: 120px;
35
+ `;
36
+
37
+ export const SkeletonButton = styled(CTAButton)`
38
+ ${skeletonBase} height: 48px;
39
+ width: 100%;
40
+ pointer-events: none;
41
+ border: none;
42
+
43
+ &:hover {
44
+ transform: none;
45
+ }
46
+ `;