@times-components/ts-components 1.146.2-be27d508c972211ad80599875cd69c63bf67d4b1.45 → 1.146.2-e5795a0ef59e2adb61ba52aeb7332fda4405cb7a.4

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 (156) hide show
  1. package/dist/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.d.ts +10 -0
  2. package/dist/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.js +69 -0
  3. package/dist/components/opta/football/opta-match-stats/matchday-live/MobileWidget.d.ts +12 -0
  4. package/dist/components/opta/football/opta-match-stats/matchday-live/MobileWidget.js +90 -0
  5. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.d.ts +12 -0
  6. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.js +10 -0
  7. package/dist/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.js +24 -0
  8. package/dist/components/opta/football/opta-match-stats/matchday-live/__tests__/MobileWidget.test.js +57 -0
  9. package/dist/components/{carousel-component/__tests__/DefaultPageDot.test.d.ts → opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.d.ts} +1 -0
  10. package/dist/components/opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.js +48 -0
  11. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.d.ts +1 -0
  12. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.js +19 -0
  13. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.d.ts +12 -0
  14. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.js +67 -0
  15. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.d.ts +6 -0
  16. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.js +736 -0
  17. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/NavigationWrapper.test.js +33 -0
  18. package/dist/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/WidgetContainer.test.js +36 -0
  19. package/dist/components/opta/football/opta-match-stats/shared/styles.js +8 -1
  20. package/dist/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.js +2 -2
  21. package/dist/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.stories.js +1 -1
  22. package/dist/components/opta/football/opta-match-stats/summary/WidgetContainer.js +19 -5
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +2 -2
  25. package/package.json +3 -3
  26. package/rnw.js +1 -1
  27. package/src/components/opta/football/opta-match-stats/commentary/__tests__/__snapshots__/OptaMatchStatsCommentary.test.tsx.snap +1 -1
  28. package/src/components/opta/football/opta-match-stats/matchday-live/DesktopWidget.tsx +108 -0
  29. package/src/components/opta/football/opta-match-stats/matchday-live/MobileWidget.tsx +158 -0
  30. package/src/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.tsx +38 -0
  31. package/src/components/opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.tsx +23 -0
  32. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/MobileWidget.test.tsx +69 -0
  33. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/OptaMatchStatsMatchdayLive.test.tsx +61 -0
  34. package/src/components/opta/football/opta-match-stats/matchday-live/__tests__/__snapshots__/OptaMatchStatsMatchdayLive.test.tsx.snap +61 -0
  35. package/src/components/opta/football/opta-match-stats/matchday-live/styles/MatchdayLiveController.tsx +19 -0
  36. package/src/components/opta/football/opta-match-stats/matchday-live/styles/NavigationWrapper.tsx +81 -0
  37. package/src/components/opta/football/opta-match-stats/matchday-live/styles/WidgetContainer.tsx +767 -0
  38. package/src/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/NavigationWrapper.test.tsx +67 -0
  39. package/src/components/opta/football/opta-match-stats/matchday-live/styles/__tests__/WidgetContainer.test.tsx +64 -0
  40. package/src/components/opta/football/opta-match-stats/shared/styles.ts +8 -0
  41. package/src/components/opta/football/opta-match-stats/stats-graphs/__tests__/__snapshots__/OptaMatchStatsGraphs.test.tsx.snap +1 -1
  42. package/src/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.stories.tsx +1 -1
  43. package/src/components/opta/football/opta-match-stats/summary/OptaMatchStatsSummary.tsx +1 -1
  44. package/src/components/opta/football/opta-match-stats/summary/WidgetContainer.tsx +18 -4
  45. package/src/components/opta/football/opta-match-stats/summary/__tests__/__snapshots__/OptaMatchStatsSummary.test.tsx.snap +1 -1
  46. package/src/index.ts +3 -2
  47. package/dist/components/carousel-component/CarouselComponent.stories.js +0 -146
  48. package/dist/components/carousel-component/CarouselItem.d.ts +0 -3
  49. package/dist/components/carousel-component/CarouselItem.js +0 -12
  50. package/dist/components/carousel-component/DefaultNavigationArrow.d.ts +0 -8
  51. package/dist/components/carousel-component/DefaultNavigationArrow.js +0 -6
  52. package/dist/components/carousel-component/DefaultPageDot.d.ts +0 -8
  53. package/dist/components/carousel-component/DefaultPageDot.js +0 -4
  54. package/dist/components/carousel-component/__tests__/CarouselComponent.test.js +0 -163
  55. package/dist/components/carousel-component/__tests__/CarouselItem.test.js +0 -80
  56. package/dist/components/carousel-component/__tests__/DefaultNavigationArrow.test.js +0 -62
  57. package/dist/components/carousel-component/__tests__/DefaultPageDot.test.js +0 -68
  58. package/dist/components/carousel-component/hooks/__tests__/useCarousel.test.d.ts +0 -1
  59. package/dist/components/carousel-component/hooks/__tests__/useCarousel.test.js +0 -459
  60. package/dist/components/carousel-component/hooks/useCarousel.d.ts +0 -2
  61. package/dist/components/carousel-component/hooks/useCarousel.js +0 -167
  62. package/dist/components/carousel-component/index.d.ts +0 -4
  63. package/dist/components/carousel-component/index.js +0 -20
  64. package/dist/components/carousel-component/styles.d.ts +0 -28
  65. package/dist/components/carousel-component/styles.js +0 -172
  66. package/dist/components/carousel-component/types.d.ts +0 -53
  67. package/dist/components/carousel-component/types.js +0 -2
  68. package/dist/components/trip-cards/SkeletonCard.d.ts +0 -7
  69. package/dist/components/trip-cards/SkeletonCard.js +0 -22
  70. package/dist/components/trip-cards/TripCard.d.ts +0 -3
  71. package/dist/components/trip-cards/TripCard.js +0 -49
  72. package/dist/components/trip-cards/TripCards.stories.d.ts +0 -1
  73. package/dist/components/trip-cards/TripCards.stories.js +0 -159
  74. package/dist/components/trip-cards/TripCardsLayout.d.ts +0 -3
  75. package/dist/components/trip-cards/TripCardsLayout.js +0 -56
  76. package/dist/components/trip-cards/__tests__/SkeletonCard.test.d.ts +0 -1
  77. package/dist/components/trip-cards/__tests__/SkeletonCard.test.js +0 -139
  78. package/dist/components/trip-cards/__tests__/TripCard.test.d.ts +0 -1
  79. package/dist/components/trip-cards/__tests__/TripCard.test.js +0 -95
  80. package/dist/components/trip-cards/__tests__/TripCardsLayout.test.d.ts +0 -1
  81. package/dist/components/trip-cards/__tests__/TripCardsLayout.test.js +0 -314
  82. package/dist/components/trip-cards/__tests__/assets.test.d.ts +0 -1
  83. package/dist/components/trip-cards/__tests__/assets.test.js +0 -165
  84. package/dist/components/trip-cards/__tests__/helpers.test.d.ts +0 -1
  85. package/dist/components/trip-cards/__tests__/helpers.test.js +0 -220
  86. package/dist/components/trip-cards/__tests__/index.test.d.ts +0 -1
  87. package/dist/components/trip-cards/__tests__/index.test.js +0 -478
  88. package/dist/components/trip-cards/__tests__/mockData.test.d.ts +0 -1
  89. package/dist/components/trip-cards/__tests__/mockData.test.js +0 -57
  90. package/dist/components/trip-cards/__tests__/skeletonStyles.test.d.ts +0 -1
  91. package/dist/components/trip-cards/__tests__/skeletonStyles.test.js +0 -194
  92. package/dist/components/trip-cards/assets/BoatIcon.d.ts +0 -1
  93. package/dist/components/trip-cards/assets/BoatIcon.js +0 -4
  94. package/dist/components/trip-cards/assets/CalendarIcon.d.ts +0 -1
  95. package/dist/components/trip-cards/assets/CalendarIcon.js +0 -4
  96. package/dist/components/trip-cards/assets/ChevronRightIcon.d.ts +0 -1
  97. package/dist/components/trip-cards/assets/ChevronRightIcon.js +0 -4
  98. package/dist/components/trip-cards/assets/LocationIcon.d.ts +0 -1
  99. package/dist/components/trip-cards/assets/LocationIcon.js +0 -4
  100. package/dist/components/trip-cards/assets/MoonIcon.d.ts +0 -1
  101. package/dist/components/trip-cards/assets/MoonIcon.js +0 -4
  102. package/dist/components/trip-cards/assets/index.d.ts +0 -6
  103. package/dist/components/trip-cards/assets/index.js +0 -7
  104. package/dist/components/trip-cards/helpers.d.ts +0 -11
  105. package/dist/components/trip-cards/helpers.js +0 -138
  106. package/dist/components/trip-cards/index.d.ts +0 -4
  107. package/dist/components/trip-cards/index.js +0 -68
  108. package/dist/components/trip-cards/mockData.d.ts +0 -3
  109. package/dist/components/trip-cards/mockData.js +0 -317
  110. package/dist/components/trip-cards/skeletonStyles.d.ts +0 -9
  111. package/dist/components/trip-cards/skeletonStyles.js +0 -37
  112. package/dist/components/trip-cards/styles.d.ts +0 -43
  113. package/dist/components/trip-cards/styles.js +0 -404
  114. package/dist/components/trip-cards/types.d.ts +0 -119
  115. package/dist/components/trip-cards/types.js +0 -2
  116. package/src/components/carousel-component/CarouselComponent.stories.tsx +0 -220
  117. package/src/components/carousel-component/CarouselItem.tsx +0 -26
  118. package/src/components/carousel-component/DefaultNavigationArrow.tsx +0 -37
  119. package/src/components/carousel-component/DefaultPageDot.tsx +0 -20
  120. package/src/components/carousel-component/__tests__/CarouselComponent.test.tsx +0 -259
  121. package/src/components/carousel-component/__tests__/CarouselItem.test.tsx +0 -140
  122. package/src/components/carousel-component/__tests__/DefaultNavigationArrow.test.tsx +0 -153
  123. package/src/components/carousel-component/__tests__/DefaultPageDot.test.tsx +0 -105
  124. package/src/components/carousel-component/hooks/__tests__/useCarousel.test.ts +0 -625
  125. package/src/components/carousel-component/hooks/useCarousel.ts +0 -229
  126. package/src/components/carousel-component/index.tsx +0 -92
  127. package/src/components/carousel-component/styles.ts +0 -188
  128. package/src/components/carousel-component/types.ts +0 -62
  129. package/src/components/trip-cards/SkeletonCard.tsx +0 -64
  130. package/src/components/trip-cards/TripCard.tsx +0 -140
  131. package/src/components/trip-cards/TripCards.stories.tsx +0 -224
  132. package/src/components/trip-cards/TripCardsLayout.tsx +0 -145
  133. package/src/components/trip-cards/__tests__/SkeletonCard.test.tsx +0 -169
  134. package/src/components/trip-cards/__tests__/TripCard.test.tsx +0 -120
  135. package/src/components/trip-cards/__tests__/TripCardsLayout.test.tsx +0 -583
  136. package/src/components/trip-cards/__tests__/assets.test.tsx +0 -206
  137. package/src/components/trip-cards/__tests__/helpers.test.ts +0 -272
  138. package/src/components/trip-cards/__tests__/index.test.tsx +0 -550
  139. package/src/components/trip-cards/__tests__/mockData.test.ts +0 -67
  140. package/src/components/trip-cards/__tests__/skeletonStyles.test.tsx +0 -256
  141. package/src/components/trip-cards/assets/BoatIcon.tsx +0 -17
  142. package/src/components/trip-cards/assets/CalendarIcon.tsx +0 -17
  143. package/src/components/trip-cards/assets/ChevronRightIcon.tsx +0 -20
  144. package/src/components/trip-cards/assets/LocationIcon.tsx +0 -17
  145. package/src/components/trip-cards/assets/MoonIcon.tsx +0 -17
  146. package/src/components/trip-cards/assets/index.ts +0 -7
  147. package/src/components/trip-cards/helpers.ts +0 -176
  148. package/src/components/trip-cards/index.tsx +0 -119
  149. package/src/components/trip-cards/mockData.ts +0 -345
  150. package/src/components/trip-cards/skeletonStyles.ts +0 -46
  151. package/src/components/trip-cards/styles.ts +0 -450
  152. package/src/components/trip-cards/types.ts +0 -128
  153. /package/dist/components/{carousel-component/CarouselComponent.stories.d.ts → opta/football/opta-match-stats/matchday-live/OptaMatchStatsMatchdayLive.stories.d.ts} +0 -0
  154. /package/dist/components/{carousel-component/__tests__/CarouselComponent.test.d.ts → opta/football/opta-match-stats/matchday-live/__tests__/MobileWidget.test.d.ts} +0 -0
  155. /package/dist/components/{carousel-component/__tests__/CarouselItem.test.d.ts → opta/football/opta-match-stats/matchday-live/styles/__tests__/NavigationWrapper.test.d.ts} +0 -0
  156. /package/dist/components/{carousel-component/__tests__/DefaultNavigationArrow.test.d.ts → opta/football/opta-match-stats/matchday-live/styles/__tests__/WidgetContainer.test.d.ts} +0 -0
@@ -1,345 +0,0 @@
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
- };
@@ -1,46 +0,0 @@
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
- `;