@skyscanner/backpack-web 15.1.0 → 16.1.0

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 (285) hide show
  1. package/bpk-component-card/README.md +29 -0
  2. package/bpk-component-card/index.js +3 -0
  3. package/bpk-component-card/src/BpkDividedCard.js +95 -0
  4. package/bpk-component-card/src/BpkDividedCard.module.css +18 -0
  5. package/bpk-component-card/src/BpkDividedCard.module.scss +62 -0
  6. package/bpk-component-icon/sm/accessibility.js +3 -3
  7. package/bpk-component-icon/sm/account--add.js +3 -3
  8. package/bpk-component-icon/sm/account--female.js +3 -3
  9. package/bpk-component-icon/sm/account--id-card.js +3 -3
  10. package/bpk-component-icon/sm/account--name.js +3 -3
  11. package/bpk-component-icon/sm/account--permit.js +3 -3
  12. package/bpk-component-icon/sm/account-circle.js +3 -3
  13. package/bpk-component-icon/sm/account.js +3 -3
  14. package/bpk-component-icon/sm/add-circle.js +3 -3
  15. package/bpk-component-icon/sm/adult.js +3 -3
  16. package/bpk-component-icon/sm/aircon.js +3 -3
  17. package/bpk-component-icon/sm/aircraft.js +3 -3
  18. package/bpk-component-icon/sm/airline--multiple.js +3 -3
  19. package/bpk-component-icon/sm/airline.js +3 -3
  20. package/bpk-component-icon/sm/airports.js +3 -3
  21. package/bpk-component-icon/sm/alert--active.js +3 -3
  22. package/bpk-component-icon/sm/alert--add.js +3 -3
  23. package/bpk-component-icon/sm/alert--expired.js +3 -3
  24. package/bpk-component-icon/sm/alert--remove.js +3 -3
  25. package/bpk-component-icon/sm/arrow-down.js +3 -3
  26. package/bpk-component-icon/sm/arrow-left.js +3 -3
  27. package/bpk-component-icon/sm/arrow-right.js +3 -3
  28. package/bpk-component-icon/sm/arrow-up.js +3 -3
  29. package/bpk-component-icon/sm/award.js +3 -3
  30. package/bpk-component-icon/sm/baby-carriage.js +3 -3
  31. package/bpk-component-icon/sm/baggage--add.js +3 -3
  32. package/bpk-component-icon/sm/baggage--remove.js +3 -3
  33. package/bpk-component-icon/sm/baggage-cabin-add.js +3 -3
  34. package/bpk-component-icon/sm/baggage-cabin-not-included.js +3 -3
  35. package/bpk-component-icon/sm/baggage-cabin.js +3 -3
  36. package/bpk-component-icon/sm/baggage-checked-add.js +3 -3
  37. package/bpk-component-icon/sm/baggage-checked-not-included.js +3 -3
  38. package/bpk-component-icon/sm/baggage-checked.js +3 -3
  39. package/bpk-component-icon/sm/baggage-cross.js +3 -3
  40. package/bpk-component-icon/sm/baggage-generic.js +3 -3
  41. package/bpk-component-icon/sm/baggage-tick.js +3 -3
  42. package/bpk-component-icon/sm/baggage.js +3 -3
  43. package/bpk-component-icon/sm/bar.js +3 -3
  44. package/bpk-component-icon/sm/beach.js +3 -3
  45. package/bpk-component-icon/sm/beer.js +3 -3
  46. package/bpk-component-icon/sm/breakfast-cross.js +3 -3
  47. package/bpk-component-icon/sm/breakfast-tick.js +3 -3
  48. package/bpk-component-icon/sm/bus.js +3 -3
  49. package/bpk-component-icon/sm/business.js +3 -3
  50. package/bpk-component-icon/sm/cafe.js +3 -3
  51. package/bpk-component-icon/sm/calendar.js +3 -3
  52. package/bpk-component-icon/sm/call-back.js +3 -3
  53. package/bpk-component-icon/sm/camera.js +3 -3
  54. package/bpk-component-icon/sm/camper-van.js +3 -3
  55. package/bpk-component-icon/sm/car-door.js +3 -3
  56. package/bpk-component-icon/sm/car-wash.js +3 -3
  57. package/bpk-component-icon/sm/cars-flexible.js +3 -3
  58. package/bpk-component-icon/sm/cars.js +3 -3
  59. package/bpk-component-icon/sm/center-location.js +3 -3
  60. package/bpk-component-icon/sm/chart.js +3 -3
  61. package/bpk-component-icon/sm/chauffeur.js +3 -3
  62. package/bpk-component-icon/sm/chevron-down.js +3 -3
  63. package/bpk-component-icon/sm/chevron-left.js +3 -3
  64. package/bpk-component-icon/sm/chevron-right.js +3 -3
  65. package/bpk-component-icon/sm/chevron-up.js +3 -3
  66. package/bpk-component-icon/sm/child-seat.js +3 -3
  67. package/bpk-component-icon/sm/child.js +3 -3
  68. package/bpk-component-icon/sm/city-center.js +3 -3
  69. package/bpk-component-icon/sm/city.js +3 -3
  70. package/bpk-component-icon/sm/clean-policy.js +3 -3
  71. package/bpk-component-icon/sm/clean.js +3 -3
  72. package/bpk-component-icon/sm/cleaning-medical.js +3 -3
  73. package/bpk-component-icon/sm/cloakroom.js +3 -3
  74. package/bpk-component-icon/sm/close-circle.js +3 -3
  75. package/bpk-component-icon/sm/close.js +3 -3
  76. package/bpk-component-icon/sm/collapse.js +3 -3
  77. package/bpk-component-icon/sm/content--copy.js +3 -3
  78. package/bpk-component-icon/sm/content--event.js +3 -3
  79. package/bpk-component-icon/sm/content--guides.js +3 -3
  80. package/bpk-component-icon/sm/currency.js +3 -3
  81. package/bpk-component-icon/sm/data.js +3 -3
  82. package/bpk-component-icon/sm/deals.js +3 -3
  83. package/bpk-component-icon/sm/depart.js +3 -3
  84. package/bpk-component-icon/sm/device-mid.js +3 -3
  85. package/bpk-component-icon/sm/device-wide.js +3 -3
  86. package/bpk-component-icon/sm/direct.js +3 -3
  87. package/bpk-component-icon/sm/document-csv.js +3 -3
  88. package/bpk-component-icon/sm/document-pdf.js +3 -3
  89. package/bpk-component-icon/sm/download.js +3 -3
  90. package/bpk-component-icon/sm/duration.js +3 -3
  91. package/bpk-component-icon/sm/eco-leaf.js +3 -3
  92. package/bpk-component-icon/sm/edit.js +3 -3
  93. package/bpk-component-icon/sm/education.js +3 -3
  94. package/bpk-component-icon/sm/electric.js +3 -3
  95. package/bpk-component-icon/sm/end-call.js +3 -3
  96. package/bpk-component-icon/sm/estimated.js +3 -3
  97. package/bpk-component-icon/sm/exclamation-circle.js +3 -3
  98. package/bpk-component-icon/sm/exclamation.js +3 -3
  99. package/bpk-component-icon/sm/expand.js +3 -3
  100. package/bpk-component-icon/sm/explore.js +3 -3
  101. package/bpk-component-icon/sm/face--blank.js +3 -3
  102. package/bpk-component-icon/sm/face--happy.js +3 -3
  103. package/bpk-component-icon/sm/face--sad.js +3 -3
  104. package/bpk-component-icon/sm/face-id.js +3 -3
  105. package/bpk-component-icon/sm/face-mask.js +3 -3
  106. package/bpk-component-icon/sm/family.js +3 -3
  107. package/bpk-component-icon/sm/fast-track.js +3 -3
  108. package/bpk-component-icon/sm/fast-train.js +3 -3
  109. package/bpk-component-icon/sm/filter.js +3 -3
  110. package/bpk-component-icon/sm/fingerprint.js +3 -3
  111. package/bpk-component-icon/sm/flag.js +3 -3
  112. package/bpk-component-icon/sm/flask.js +3 -3
  113. package/bpk-component-icon/sm/flight-flexible.js +3 -3
  114. package/bpk-component-icon/sm/flight-landing.js +3 -3
  115. package/bpk-component-icon/sm/flight-takeoff.js +3 -3
  116. package/bpk-component-icon/sm/flight.js +3 -3
  117. package/bpk-component-icon/sm/food.js +3 -3
  118. package/bpk-component-icon/sm/gears-automatic-circle.js +3 -3
  119. package/bpk-component-icon/sm/gears-automatic.js +3 -3
  120. package/bpk-component-icon/sm/gears-manual-circle.js +3 -3
  121. package/bpk-component-icon/sm/gears-manual.js +3 -3
  122. package/bpk-component-icon/sm/globe.js +3 -3
  123. package/bpk-component-icon/sm/grid-layout.js +3 -3
  124. package/bpk-component-icon/sm/headset.js +3 -3
  125. package/bpk-component-icon/sm/health-fitness.js +3 -3
  126. package/bpk-component-icon/sm/heart--outline.js +3 -3
  127. package/bpk-component-icon/sm/heart.js +3 -3
  128. package/bpk-component-icon/sm/help-circle.js +3 -3
  129. package/bpk-component-icon/sm/help.js +3 -3
  130. package/bpk-component-icon/sm/hide.js +3 -3
  131. package/bpk-component-icon/sm/hotel-flexible.js +3 -3
  132. package/bpk-component-icon/sm/hotels--disabled-facilities.js +3 -3
  133. package/bpk-component-icon/sm/hotels--jacuzzi.js +3 -3
  134. package/bpk-component-icon/sm/hotels--pets-allowed.js +3 -3
  135. package/bpk-component-icon/sm/hotels--smoking.js +3 -3
  136. package/bpk-component-icon/sm/hotels.js +3 -3
  137. package/bpk-component-icon/sm/infant.js +3 -3
  138. package/bpk-component-icon/sm/information--language-alert.js +3 -3
  139. package/bpk-component-icon/sm/information--language-question.js +3 -3
  140. package/bpk-component-icon/sm/information--language.js +3 -3
  141. package/bpk-component-icon/sm/information-circle.js +3 -3
  142. package/bpk-component-icon/sm/information.js +3 -3
  143. package/bpk-component-icon/sm/insurance.js +3 -3
  144. package/bpk-component-icon/sm/key.js +3 -3
  145. package/bpk-component-icon/sm/keypad.js +3 -3
  146. package/bpk-component-icon/sm/landmark.js +3 -3
  147. package/bpk-component-icon/sm/language.js +3 -3
  148. package/bpk-component-icon/sm/legroom--extra.js +3 -3
  149. package/bpk-component-icon/sm/legroom--normal.js +3 -3
  150. package/bpk-component-icon/sm/legroom--reduced.js +3 -3
  151. package/bpk-component-icon/sm/leisure.js +3 -3
  152. package/bpk-component-icon/sm/lightning.js +3 -3
  153. package/bpk-component-icon/sm/list.js +3 -3
  154. package/bpk-component-icon/sm/location.js +3 -3
  155. package/bpk-component-icon/sm/lock.js +3 -3
  156. package/bpk-component-icon/sm/logout.js +3 -3
  157. package/bpk-component-icon/sm/long-arrow-down.js +3 -3
  158. package/bpk-component-icon/sm/long-arrow-left.js +3 -3
  159. package/bpk-component-icon/sm/long-arrow-right.js +3 -3
  160. package/bpk-component-icon/sm/long-arrow-up.js +3 -3
  161. package/bpk-component-icon/sm/lounge.js +3 -3
  162. package/bpk-component-icon/sm/luggageall.js +3 -3
  163. package/bpk-component-icon/sm/mail.js +3 -3
  164. package/bpk-component-icon/sm/map.js +3 -3
  165. package/bpk-component-icon/sm/meal.js +3 -3
  166. package/bpk-component-icon/sm/media.js +3 -3
  167. package/bpk-component-icon/sm/menu--horizontal.js +3 -3
  168. package/bpk-component-icon/sm/menu--vertical.js +3 -3
  169. package/bpk-component-icon/sm/menu.js +3 -3
  170. package/bpk-component-icon/sm/mileage.js +3 -3
  171. package/bpk-component-icon/sm/minus.js +3 -3
  172. package/bpk-component-icon/sm/mobile.js +3 -3
  173. package/bpk-component-icon/sm/money.js +3 -3
  174. package/bpk-component-icon/sm/multiple-bookings.js +3 -3
  175. package/bpk-component-icon/sm/music.js +3 -3
  176. package/bpk-component-icon/sm/mute.js +3 -3
  177. package/bpk-component-icon/sm/native-android--back.js +3 -3
  178. package/bpk-component-icon/sm/native-android--close.js +3 -3
  179. package/bpk-component-icon/sm/native-android--forward.js +3 -3
  180. package/bpk-component-icon/sm/native-ios-close.js +3 -3
  181. package/bpk-component-icon/sm/navigation.js +3 -3
  182. package/bpk-component-icon/sm/new-window.js +3 -3
  183. package/bpk-component-icon/sm/news.js +3 -3
  184. package/bpk-component-icon/sm/night.js +3 -3
  185. package/bpk-component-icon/sm/not-allowed.js +3 -3
  186. package/bpk-component-icon/sm/onsen.js +3 -3
  187. package/bpk-component-icon/sm/paid.js +3 -3
  188. package/bpk-component-icon/sm/paperclip.js +3 -3
  189. package/bpk-component-icon/sm/parking.js +3 -3
  190. package/bpk-component-icon/sm/passport.js +3 -3
  191. package/bpk-component-icon/sm/pause.js +3 -3
  192. package/bpk-component-icon/sm/payment-card.js +3 -3
  193. package/bpk-component-icon/sm/petrol.js +3 -3
  194. package/bpk-component-icon/sm/phone-call.js +3 -3
  195. package/bpk-component-icon/sm/picture.js +3 -3
  196. package/bpk-component-icon/sm/pin.js +3 -3
  197. package/bpk-component-icon/sm/plane-seat.js +3 -3
  198. package/bpk-component-icon/sm/play.js +3 -3
  199. package/bpk-component-icon/sm/plus.js +3 -3
  200. package/bpk-component-icon/sm/policy.js +3 -3
  201. package/bpk-component-icon/sm/powerplug.js +3 -3
  202. package/bpk-component-icon/sm/ppe.js +3 -3
  203. package/bpk-component-icon/sm/price-alerts.js +3 -3
  204. package/bpk-component-icon/sm/price-tag.js +3 -3
  205. package/bpk-component-icon/sm/print.js +3 -3
  206. package/bpk-component-icon/sm/recent-searches.js +3 -3
  207. package/bpk-component-icon/sm/redo.js +3 -3
  208. package/bpk-component-icon/sm/refresh.js +3 -3
  209. package/bpk-component-icon/sm/return.js +3 -3
  210. package/bpk-component-icon/sm/room.js +3 -3
  211. package/bpk-component-icon/sm/scales.js +3 -3
  212. package/bpk-component-icon/sm/search.js +3 -3
  213. package/bpk-component-icon/sm/self-service.js +3 -3
  214. package/bpk-component-icon/sm/send-message.js +3 -3
  215. package/bpk-component-icon/sm/services.js +3 -3
  216. package/bpk-component-icon/sm/settings.js +3 -3
  217. package/bpk-component-icon/sm/share--android.js +3 -3
  218. package/bpk-component-icon/sm/share--ios.js +3 -3
  219. package/bpk-component-icon/sm/share.js +3 -3
  220. package/bpk-component-icon/sm/single-booking.js +3 -3
  221. package/bpk-component-icon/sm/social-distancing.js +3 -3
  222. package/bpk-component-icon/sm/social-like.js +3 -3
  223. package/bpk-component-icon/sm/sort-down.js +3 -3
  224. package/bpk-component-icon/sm/sort-up.js +3 -3
  225. package/bpk-component-icon/sm/sort.js +3 -3
  226. package/bpk-component-icon/sm/speaker.js +3 -3
  227. package/bpk-component-icon/sm/star-half.js +3 -3
  228. package/bpk-component-icon/sm/star-outline.js +3 -3
  229. package/bpk-component-icon/sm/star.js +3 -3
  230. package/bpk-component-icon/sm/stops.js +3 -3
  231. package/bpk-component-icon/sm/swap--horizontal.js +3 -3
  232. package/bpk-component-icon/sm/swap--vertical.js +3 -3
  233. package/bpk-component-icon/sm/swap.js +3 -3
  234. package/bpk-component-icon/sm/taxi.js +3 -3
  235. package/bpk-component-icon/sm/thumbs-down.js +3 -3
  236. package/bpk-component-icon/sm/thumbs-up.js +3 -3
  237. package/bpk-component-icon/sm/tick-circle.js +3 -3
  238. package/bpk-component-icon/sm/tick.js +3 -3
  239. package/bpk-component-icon/sm/ticket-flexible.js +3 -3
  240. package/bpk-component-icon/sm/ticket.js +3 -3
  241. package/bpk-component-icon/sm/time.js +3 -3
  242. package/bpk-component-icon/sm/toilets.js +3 -3
  243. package/bpk-component-icon/sm/train.js +3 -3
  244. package/bpk-component-icon/sm/transmission-automatic.js +3 -3
  245. package/bpk-component-icon/sm/transmission-manual.js +3 -3
  246. package/bpk-component-icon/sm/trash.js +3 -3
  247. package/bpk-component-icon/sm/trend--down.js +3 -3
  248. package/bpk-component-icon/sm/trend--steady.js +3 -3
  249. package/bpk-component-icon/sm/trend--will-rise.js +3 -3
  250. package/bpk-component-icon/sm/trend.js +3 -3
  251. package/bpk-component-icon/sm/trips.js +3 -3
  252. package/bpk-component-icon/sm/undo.js +3 -3
  253. package/bpk-component-icon/sm/unlock.js +3 -3
  254. package/bpk-component-icon/sm/unmute.js +3 -3
  255. package/bpk-component-icon/sm/upgrade.js +3 -3
  256. package/bpk-component-icon/sm/use-location.js +3 -3
  257. package/bpk-component-icon/sm/view.js +3 -3
  258. package/bpk-component-icon/sm/virus.js +3 -3
  259. package/bpk-component-icon/sm/wallet.js +3 -3
  260. package/bpk-component-icon/sm/weather--clear.js +3 -3
  261. package/bpk-component-icon/sm/weather--cloudy.js +3 -3
  262. package/bpk-component-icon/sm/weather--fog.js +3 -3
  263. package/bpk-component-icon/sm/weather--partly-cloudy.js +3 -3
  264. package/bpk-component-icon/sm/weather--rain.js +3 -3
  265. package/bpk-component-icon/sm/weather--snow.js +3 -3
  266. package/bpk-component-icon/sm/weather--thunderstorm.js +3 -3
  267. package/bpk-component-icon/sm/weather--tornado.js +3 -3
  268. package/bpk-component-icon/sm/weather--wind.js +3 -3
  269. package/bpk-component-icon/sm/weather.js +3 -3
  270. package/bpk-component-icon/sm/wifi.js +3 -3
  271. package/bpk-component-icon/sm/window--reduce.js +3 -3
  272. package/bpk-component-icon/sm/window.js +3 -3
  273. package/bpk-component-icon/sm/world--amer.js +3 -3
  274. package/bpk-component-icon/sm/world--apac.js +3 -3
  275. package/bpk-component-icon/sm/world--emea.js +3 -3
  276. package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +4 -2
  277. package/bpk-component-map/src/BpkIconMarker.module.scss +6 -2
  278. package/bpk-component-overlay/README.md +13 -11
  279. package/bpk-component-overlay/index.js +2 -1
  280. package/bpk-component-overlay/src/BpkOverlay.js +31 -11
  281. package/bpk-component-overlay/src/BpkOverlay.module.scss +124 -2
  282. package/bpk-component-popover/README.md +2 -2
  283. package/bpk-component-switch/src/BpkSwitch.module.scss +1 -1
  284. package/bpk-component-tooltip/README.md +1 -1
  285. package/package.json +4 -4
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M14.25 3.745a.262.262 0 00.236-.397A5.622 5.622 0 004.29 5.003a1.476 1.476 0 01-1.092 1.04 4.166 4.166 0 00-.52 7.944.294.294 0 00.386-.247 5.665 5.665 0 013.851-4.534.874.874 0 00.562-.551 7.153 7.153 0 016.773-4.91z" /><path d="M17.073 18.745h-1.146l-1.835 3.67a1.5 1.5 0 01-2.684-1.34l1.165-2.33h-1.146l-1.835 3.67a1.5 1.5 0 01-2.694-1.32l.01-.02 1.181-2.362a4.16 4.16 0 01-.391-8.168 1.473 1.473 0 001.092-1.04 5.626 5.626 0 0110.654-.79 1.373 1.373 0 00.96.799 4.687 4.687 0 01.091 9.094l-1.903 3.808a1.5 1.5 0 11-2.684-1.342z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M12 0a1.5 1.5 0 00-1.5 1.5v2.379l-1.94-1.94a1.5 1.5 0 10-2.157 2.085l.037.037 4.06 4.06V10.5H8.121l-4.06-4.06a1.5 1.5 0 00-2.159 2.083l.037.037 1.94 1.94H1.5a1.5 1.5 0 000 3h2.379l-1.94 1.94a1.5 1.5 0 002.122 2.12l4.06-4.06H10.5v2.379l-4.06 4.06a1.5 1.5 0 002.12 2.122l1.94-1.94V22.5a1.5 1.5 0 003 0v-2.379l1.94 1.94a1.5 1.5 0 002.12-2.122l-4.06-4.06V13.5h2.379l4.06 4.06a1.5 1.5 0 002.122-2.12l-1.94-1.94H22.5a1.5 1.5 0 000-3h-2.379l1.94-1.94a1.5 1.5 0 00-2.122-2.12l-4.06 4.06H13.5V8.121l4.06-4.06a1.5 1.5 0 00-2.12-2.122L13.5 3.88V1.5A1.5 1.5 0 0012 0z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M14.486 2.601a.262.262 0 01-.236.397 7.153 7.153 0 00-6.773 4.91.874.874 0 01-.562.551 5.665 5.665 0 00-3.851 4.534.294.294 0 01-.386.247 4.165 4.165 0 01.52-7.942 1.473 1.473 0 001.092-1.04 5.621 5.621 0 0110.196-1.657z" /><path d="M22.087 16.672c-.054.157.139.34.265.232a4.695 4.695 0 00-1.948-8.137 1.376 1.376 0 01-.96-.798 5.626 5.626 0 00-10.654.787 1.476 1.476 0 01-1.092 1.041 4.167 4.167 0 00-.564 7.927.326.326 0 00.409-.358 2.212 2.212 0 01.48-1.508l5.958-7.582A2.25 2.25 0 0118 9.666v3.382a.45.45 0 00.45.45h1.36a2.405 2.405 0 012.277 3.174z" /><path d="M15.175 9.27l-6 7.5A.75.75 0 009.751 18h3a.75.75 0 01.75.75v4.5a.75.75 0 001.327.48l6-7.5a.75.75 0 00-.577-1.23h-3a.75.75 0 01-.75-.75v-4.5a.75.75 0 00-1.326-.48z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M1.5 1.5a1.5 1.5 0 000 3h21a1.5 1.5 0 000-3zm3 4.5a1.5 1.5 0 000 3h15a1.5 1.5 0 000-3zM6 12a1.5 1.5 0 011.5-1.5H21a1.5 1.5 0 010 3H7.5A1.5 1.5 0 016 12zm4.5 3a1.5 1.5 0 000 3h9a1.5 1.5 0 000-3zM9 21a1.5 1.5 0 011.5-1.5H15a1.5 1.5 0 010 3h-4.5A1.5 1.5 0 019 21z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M10.5 3a3 3 0 00-3 3 1.5 1.5 0 01-3 0 6 6 0 116 6h-9a1.5 1.5 0 010-3h9a3 3 0 000-6z" /><path d="M13.5 21a1.5 1.5 0 01-1.397-.95 1.5 1.5 0 00-2.79 1.099A4.501 4.501 0 0017.743 18H19.5a4.5 4.5 0 10-4.188-6.148 1.5 1.5 0 002.791 1.099A1.5 1.5 0 1119.5 15h-18a1.5 1.5 0 100 3h12a1.5 1.5 0 010 3z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M12 0a1.5 1.5 0 00-1.5 1.5V3a1.5 1.5 0 003 0V1.5A1.5 1.5 0 0012 0zm0 19.5a1.5 1.5 0 00-1.5 1.5v1.5a1.5 1.5 0 003 0V21a1.5 1.5 0 00-1.5-1.5zM0 12a1.5 1.5 0 001.5 1.5H3a1.5 1.5 0 000-3H1.5A1.5 1.5 0 000 12zm19.5 0a1.5 1.5 0 001.5 1.5h1.5a1.5 1.5 0 000-3H21a1.5 1.5 0 00-1.5 1.5zM3.515 5.636a1.5 1.5 0 112.084-2.158l.037.037 1.06 1.06a1.5 1.5 0 11-2.083 2.159l-.037-.037-1.062-1.061zm13.788 13.789a1.5 1.5 0 112.121-2.122l1.061 1.061a1.5 1.5 0 11-2.084 2.158l-.037-.037-1.06-1.06zm-13.788 1.06a1.5 1.5 0 002.12 0l1.062-1.06a1.5 1.5 0 00-2.122-2.122l-1.06 1.061a1.5 1.5 0 000 2.121zM17.303 6.697a1.5 1.5 0 002.121 0l1.061-1.06a1.5 1.5 0 10-2.121-2.122l-1.06 1.06a1.5 1.5 0 000 2.121v.001zM12 18a6 6 0 10-6-6 6 6 0 006 6z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M12 6.688A17.987 17.987 0 002.465 9.38a.658.658 0 01-.845-.12L.556 8.044a.727.727 0 01.152-1.098l.019-.012A21.283 21.283 0 0112 3.75a21.291 21.291 0 0111.274 3.183l.02.012a.727.727 0 01.15 1.098l-1.062 1.218a.658.658 0 01-.844.12A18.002 18.002 0 0012 6.687zm-6.444 7.083a.787.787 0 00.968.161 11.637 11.637 0 0110.954.001.787.787 0 00.968-.162l1.007-1.153a.717.717 0 00-.171-1.1 14.949 14.949 0 00-14.562 0 .716.716 0 00-.171 1.1l1.006 1.153zm3.82 4.386l1.52 1.62a1.526 1.526 0 002.209 0l1.52-1.62a1.139 1.139 0 00-.183-1.835 5.497 5.497 0 00-4.883 0 1.139 1.139 0 00-.183 1.835z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M4.5 7.5a3 3 0 013-3H12a1.5 1.5 0 000-3H7.5a6 6 0 00-6 6v9a6 6 0 006 6h9a6 6 0 006-6V12a1.5 1.5 0 00-3 0v4.5a3 3 0 01-3 3h-9a3 3 0 01-3-3z" /><path d="M17.56 8.56l-4.939 4.94H15a1.5 1.5 0 010 3H8.996a1.495 1.495 0 01-1.053-.436l-.007-.006A1.496 1.496 0 017.5 15V9a1.5 1.5 0 013 0v2.379l4.94-4.94a1.5 1.5 0 012.12 2.122z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M19.5 1.5h-15a3 3 0 00-3 3v15a3 3 0 003 3h15a3 3 0 003-3v-15a3 3 0 00-3-3zm0 16.5a1.5 1.5 0 01-1.5 1.5H6A1.5 1.5 0 014.5 18V9A1.5 1.5 0 016 7.5h12A1.5 1.5 0 0119.5 9z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M12 1.5c5.799 0 10.5 4.702 10.5 10.5 0 5.8-4.701 10.5-10.5 10.5S1.5 17.8 1.5 12C1.5 6.203 6.201 1.5 12 1.5zM5.232 8.764a7.5 7.5 0 007.225 10.723c.082-.359.098-.712-.086-1.018a1.44 1.44 0 00-.42-.417l-.168-.114c-.198-.134-.397-.268-.538-.456a1.872 1.872 0 01-.142-1.496l.082-.208a3.559 3.559 0 00.343-1.721 5.358 5.358 0 01-1.85-.496 4.327 4.327 0 01-.76-.56l-.236-.211c-.4-.362-.798-.722-1.298-.906a2.203 2.203 0 01-.794-.35 1.438 1.438 0 01-.215-.299l-1.04-2.26-.103-.21zm8.36-4.094l.163.173c.341.382.64.804.886 1.258a5.28 5.28 0 00-2.954 2.472 1.223 1.223 0 01-.208.416l-.069.065c-.051.046-.103.092-.129.155a.446.446 0 00-.01.192l.025.093c.099.354.208.704.328 1.051-.425.248-1.051.46-1.334.057a.885.885 0 01-.12-.29l-.037-.161c-.052-.244-.102-.475-.325-.533a.62.62 0 00-.202 0l-1.248.307a4.169 4.169 0 00-.072 1.944c.765-.115 1.698-.164 2.15.464.063.089.118.19.17.296l.074.16c.16.343.315.679.665.707.19-.006.375-.06.54-.156a3.46 3.46 0 013.285.283c.277.258.627.424 1.002.478l.077-.004c.113-.007.23-.014.308.063a.5.5 0 01.085.3c.07.521.646.814 1.166.893l.228.028.435.04.135.02.002-.005.056.008A7.503 7.503 0 0013.591 4.67z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M12 1.5c5.799 0 10.5 4.701 10.5 10.5S17.799 22.5 12 22.5 1.5 17.799 1.5 12 6.201 1.5 12 1.5zm1.83 17.489l-1.902.51.072.001c.908 0 1.777-.161 2.583-.457l-.038-.037a.871.871 0 00-.714-.017zm.446-14.137l.02.098.059.125.07.12c.043.074.087.147.12.226a.925.925 0 01-.412 1.135l-1.149-1.343a1.57 1.57 0 00-.429.878c.003.112.018.222.045.33l.597 1.954c-.904.388-1.757.888-2.537 1.488a.151.151 0 00-.044.25l.66 1.023c.062.078.1.171.11.27a.414.414 0 01-.099.25c-.349.381-.9.503-1.376.303a3.165 3.165 0 01-.984-.683l-.2-.226a17.683 17.683 0 01-1.391-1.722 1.06 1.06 0 00-.86.536c-.17.309-.287.645-.345.993l-.672 2.96c-.172-.076-.315-.246-.45-.435l-.102-.143a2.662 2.662 0 00-.363-.452 7.498 7.498 0 006.488 6.651l.003-.368a5.285 5.285 0 00-.06-.674c-.068-.452.05-.912.325-1.276.35-.28.757-.478 1.194-.578a3.245 3.245 0 001.645-1.425l.889.049a22.8 22.8 0 011.599-.044l.8.02c.08-.005.16.015.229.055a.441.441 0 01.133.279c.069.31.17.614.3.903a7.503 7.503 0 00-3.812-11.527z" /></svg>);
@@ -2,7 +2,7 @@ import React from "react";
2
2
  export default (({
3
3
  styles = {},
4
4
  ...props
5
- }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" style={{
6
- width: "1.125rem",
7
- height: "1.125rem"
5
+ }) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" style={{
6
+ width: "1rem",
7
+ height: "1rem"
8
8
  }} {...props}><path d="M12 1.5c5.799 0 10.5 4.701 10.5 10.5S17.799 22.5 12 22.5 1.5 17.799 1.5 12 6.201 1.5 12 1.5zm-.55 3.02l-.097.008-.327.035a7.501 7.501 0 00.649 14.93L12 19.5l.184-.002-.034-.476-.015-.475c0-.172-.074-.233-.175-.262l-.064-.015-.145-.024c-.104-.02-.206-.055-.275-.16l-.044-.093-.096-.285c-.098-.285-.203-.471-.56-.502a1.17 1.17 0 01-.345-.075l-.072-.032-.113-.06c-.102-.052-.202-.067-.493.046a2.09 2.09 0 01-2.269-.742 4.497 4.497 0 01-.844-2.37c.006-.275.09-.542.242-.77.044-.088.143-.17.26-.248l.121-.075.24-.14.104-.065.084-.063.305-.258c.377-.326.663-.613.803-1.097l.051-.22 2.1-.087.32.113c.86.26 1.81.201 2.75.062l.352-.055 1.358-.24.083-.081c.277-.352-.055-.982-.52-1.128a4.627 4.627 0 00-1.57.033c-.479.02-1.049-.177-1.2-.606l-.032-.136-.007-.08-.008-.176c-.007-.124-.03-.24-.126-.31a.444.444 0 00-.41-.002c-.54.263-1.057.57-1.547.916a1.78 1.78 0 01-1.521.242l-.19-.068.056-1.017.08-.079a.786.786 0 01.325-.13l.125-.022.287-.036c.254-.034.473-.092.522-.325a1.742 1.742 0 00-.022-.378c-.003-.273.175-.458.413-.614l.124-.075.529-.287.123-.075c.239-.156.418-.34.417-.613a2.06 2.06 0 00-.199-.612 1.6 1.6 0 01-.038-.291v-.145l.026-.214zm6.338 7.207l-1.327.54a.451.451 0 00-.28.217.428.428 0 00.023.28 5.174 5.174 0 002.513 2.574 7.17 7.17 0 00.4-.968.643.643 0 01-.175-.043.72.72 0 01-.26-.31 9.735 9.735 0 01-.894-2.29zM9.658 5.05c.175-.026.331.207.46.482l.053.12.108.273.113.304.026.062.028.045c.004.004.008.005.01.004-.334.104-.664.22-.99.35l-.484.204-.316-.367-.02-.042-.008-.047.027-.058.11-.118.07-.096.072-.114.321-.555.086-.135c.114-.17.227-.297.334-.312z" /></svg>);
@@ -23,9 +23,11 @@ $bpk-spacing-v2: true;
23
23
  .bpk-loading-button {
24
24
  $button-padding-x: bpk-spacing-base() * 2;
25
25
  $button-padding-y: bpk-spacing-lg() / 2;
26
- $button-icon-only-padding-x: $bpk-one-pixel-rem * 9 * 2;
27
- $button-large-icon-only-padding-x: $bpk-one-pixel-rem * 12 * 2;
28
26
  $button-large-padding-y: bpk-spacing-lg();
27
+ $button-icon-only-padding-x: $bpk-button-height - $bpk-icon-size-sm; // this is in order to ensure icons are centred in icon-only buttons
28
+ /* stylelint-disable-next-line scss/operator-no-newline-after */
29
+ $button-large-icon-only-padding-x: $bpk-button-large-height -
30
+ $bpk-icon-size-lg; // this is in order to ensure icons are centred in icon-only buttons
29
31
 
30
32
  position: relative;
31
33
  overflow: hidden;
@@ -35,12 +35,14 @@ $bpk-spacing-v2: true;
35
35
  }
36
36
 
37
37
  &__icon {
38
+ $marker-width: $bpk-one-pixel-rem * 26;
39
+
38
40
  position: absolute;
39
41
 
40
42
  // This ensures that the icon is positioned exactly in the
41
43
  // centre of the marker.
42
44
  top: 0.3rem;
43
- left: bpk-spacing-sm();
45
+ left: ($marker-width - $bpk-icon-size-sm) / 2;
44
46
  color: $bpk-surface-default-day;
45
47
 
46
48
  > svg {
@@ -60,10 +62,12 @@ $bpk-spacing-v2: true;
60
62
  }
61
63
 
62
64
  &--selected {
65
+ $selected-marker-width: $bpk-one-pixel-rem * 32;
66
+
63
67
  // This ensures that the icon is positioned exactly in the
64
68
  // centre of the marker.
65
69
  top: bpk-spacing-md();
66
- left: 0.4rem;
70
+ left: ($selected-marker-width - $bpk-icon-size-sm) / 2;
67
71
 
68
72
  @include bpk-themeable-property(
69
73
  color,
@@ -15,24 +15,25 @@ import BpkOverlay, { BORDER_RADIUS_STYLES, OVERLAY_TYPES } from '@skyscanner/bac
15
15
 
16
16
  export default () => (
17
17
  <div>
18
- { /* Basic example */}
19
- <BpkOverlay>
18
+ { /* Basic example with tint */}
19
+ <BpkOverlay
20
+ overlayType={OVERLAY_TYPES.solid}
21
+ overlayLevel={OVERLAY_LEVELS.high}
22
+ >
20
23
  <BpkText>Hotels in Canada</BpkText>
21
24
  </BpkOverlay>
22
25
 
23
26
  { /* With the tint invisible */}
24
- <BpkOverlay overlayType={OVERLAY_TYPES.none}>
25
- <BpkText>Hotels in Canada</BpkText>
26
- </BpkOverlay>
27
-
28
- { /* With a border radius style */}
29
- <BpkOverlay borderRadiusStyle={BORDER_RADIUS_STYLES.sm}>
27
+ <BpkOverlay>
30
28
  <BpkText>Hotels in Canada</BpkText>
31
29
  </BpkOverlay>
32
30
 
33
31
  { /* With foreground content */}
34
32
  <BpkOverlay foregroundContent={<BpkText>Visit Ottawa</BpkText>}>
35
- <BpkText>Hotels in Canada</BpkText>
33
+ <BpkImage
34
+ altText="altText here"
35
+ aspectRatio={16}
36
+ src="" />
36
37
  </BpkOverlay>
37
38
  </div>
38
39
  );
@@ -43,7 +44,8 @@ export default () => (
43
44
  | Property | PropType | Required | Default Value |
44
45
  | --------- | -------- | -------- | ------------- |
45
46
  | children | Node | true | - |
46
- | borderRadiusStyle | oneOf(BORDER_RADIUS_STYLES.none, BORDER_RADIUS_STYLES.sm) | false | BORDER_RADIUS_STYLES.none |
47
+ | borderRadiusStyle (deprecated) | BORDER_RADIUS_STYLES | false | BORDER_RADIUS_STYLES.none |
47
48
  | className | string | false | null |
48
49
  | foregroundContent | Node | false | null |
49
- | overlayType | oneOf(OVERLAY_TYPES) | false | OVERLAY_TYPES.tint |
50
+ | overlayType | oneOf(OVERLAY_TYPES) | false | null |
51
+ | overlayLevel | oneOf(OVERLAY_LEVELS) | false | null |
@@ -19,10 +19,11 @@
19
19
 
20
20
  import BpkOverlay, {
21
21
  OVERLAY_TYPES,
22
+ OVERLAY_LEVELS,
22
23
  BORDER_RADIUS_STYLES,
23
24
  type Props as BpkOverlayProps,
24
25
  } from './src/BpkOverlay';
25
26
 
26
27
  export type { BpkOverlayProps };
27
28
  export default BpkOverlay;
28
- export { OVERLAY_TYPES, BORDER_RADIUS_STYLES };
29
+ export { OVERLAY_TYPES, OVERLAY_LEVELS, BORDER_RADIUS_STYLES };
@@ -20,26 +20,39 @@
20
20
  import PropTypes from 'prop-types';
21
21
  import React, { type Node } from 'react';
22
22
 
23
- import { cssModules } from '../../bpk-react-utils';
23
+ import { cssModules, deprecated } from '../../bpk-react-utils';
24
24
 
25
25
  import STYLES from './BpkOverlay.module.scss';
26
26
 
27
27
  const getClassName = cssModules(STYLES);
28
28
 
29
29
  export const OVERLAY_TYPES = {
30
- none: 'none',
31
- tint: 'tint',
30
+ solid: 'solid',
31
+ top: 'top',
32
+ bottom: 'bottom',
33
+ left: 'left',
34
+ right: 'right',
35
+ vignette: 'vignette',
36
+ };
37
+
38
+ export const OVERLAY_LEVELS = {
39
+ low: 'low',
40
+ medium: 'medium',
41
+ high: 'high',
42
+ off: 'off',
32
43
  };
33
44
 
45
+ // DEPRECATED
34
46
  export const BORDER_RADIUS_STYLES = {
35
47
  none: 'none',
36
48
  sm: 'sm',
37
49
  };
38
50
 
39
51
  export type Props = {
40
- borderRadiusStyle: $Keys<typeof BORDER_RADIUS_STYLES>,
52
+ borderRadiusStyle: ?$Keys<typeof BORDER_RADIUS_STYLES>,
41
53
  children: Node,
42
- overlayType: $Keys<typeof OVERLAY_TYPES>,
54
+ overlayType: ?$Keys<typeof OVERLAY_TYPES>,
55
+ overlayLevel: ?$Keys<typeof OVERLAY_LEVELS>,
43
56
  className: ?string,
44
57
  foregroundContent: ?Node,
45
58
  };
@@ -50,6 +63,7 @@ const BpkOverlay = (props: Props) => {
50
63
  children,
51
64
  className,
52
65
  foregroundContent,
66
+ overlayLevel,
53
67
  overlayType,
54
68
  ...rest
55
69
  } = props;
@@ -57,9 +71,10 @@ const BpkOverlay = (props: Props) => {
57
71
  const wrapperClassNames = getClassName('bpk-overlay__wrapper', className);
58
72
  const overlayClassNames = getClassName(
59
73
  'bpk-overlay__overlay',
60
- borderRadiusStyle === BORDER_RADIUS_STYLES.sm &&
61
- 'bpk-overlay__overlay--border-radius-sm',
62
- overlayType === OVERLAY_TYPES.tint && 'bpk-overlay__overlay--tint',
74
+ overlayType !== null &&
75
+ (overlayType !== OVERLAY_TYPES.vignette
76
+ ? `bpk-overlay__overlay--${overlayType}-${overlayLevel}`
77
+ : `bpk-overlay__overlay--${overlayType}`),
63
78
  );
64
79
 
65
80
  return (
@@ -73,17 +88,22 @@ const BpkOverlay = (props: Props) => {
73
88
 
74
89
  BpkOverlay.propTypes = {
75
90
  children: PropTypes.node.isRequired,
76
- borderRadiusStyle: PropTypes.oneOf(Object.keys(BORDER_RADIUS_STYLES)),
91
+ borderRadiusStyle: deprecated(
92
+ PropTypes.oneOf(Object.keys(BORDER_RADIUS_STYLES)),
93
+ 'This property is deprecated and radius will now be set based on the content. Please remove usage of this property.',
94
+ ),
77
95
  className: PropTypes.string,
78
96
  foregroundContent: PropTypes.node,
79
97
  overlayType: PropTypes.oneOf(Object.keys(OVERLAY_TYPES)),
98
+ overlayLevel: PropTypes.oneOf(Object.keys(OVERLAY_LEVELS)),
80
99
  };
81
100
 
82
101
  BpkOverlay.defaultProps = {
83
- borderRadiusStyle: BORDER_RADIUS_STYLES.none,
102
+ borderRadiusStyle: null,
84
103
  className: null,
85
104
  foregroundContent: null,
86
- overlayType: OVERLAY_TYPES.tint,
105
+ overlayType: null,
106
+ overlayLevel: null,
87
107
  };
88
108
 
89
109
  export default BpkOverlay;
@@ -21,6 +21,9 @@
21
21
  .bpk-overlay {
22
22
  &__wrapper {
23
23
  position: relative;
24
+ width: 100%;
25
+ height: 100%;
26
+ border-radius: inherit;
24
27
  }
25
28
 
26
29
  &__overlay {
@@ -29,13 +32,132 @@
29
32
  left: 0;
30
33
  width: 100%;
31
34
  height: 100%;
35
+ border-radius: inherit;
32
36
 
33
37
  &--tint {
34
38
  background: rgba($bpk-color-sky-blue-shade-03, 0.56);
35
39
  }
36
40
 
37
- &--border-radius-sm {
38
- @include bpk-border-radius-sm;
41
+ &--solid {
42
+ &-low {
43
+ background: rgba($bpk-text-primary-day, 0.15);
44
+ }
45
+
46
+ &-medium {
47
+ background: rgba($bpk-text-primary-day, 0.3);
48
+ }
49
+
50
+ &-high {
51
+ background: rgba($bpk-text-primary-day, 0.4);
52
+ }
53
+ }
54
+
55
+ &--top {
56
+ &-low {
57
+ background: linear-gradient(
58
+ 180deg,
59
+ rgba($bpk-text-primary-day, 0.15) 0%,
60
+ rgba($bpk-text-primary-day, 0) 100%
61
+ );
62
+ }
63
+
64
+ &-medium {
65
+ background: linear-gradient(
66
+ 180deg,
67
+ rgba($bpk-text-primary-day, 0.3) 0%,
68
+ rgba($bpk-text-primary-day, 0) 100%
69
+ );
70
+ }
71
+
72
+ &-high {
73
+ background: linear-gradient(
74
+ 180deg,
75
+ rgba($bpk-text-primary-day, 0.4) 0%,
76
+ rgba($bpk-text-primary-day, 0) 100%
77
+ );
78
+ }
79
+ }
80
+
81
+ &--bottom {
82
+ &-low {
83
+ background: linear-gradient(
84
+ 180deg,
85
+ rgba($bpk-text-primary-day, 0) 0%,
86
+ rgba($bpk-text-primary-day, 0.15) 100%
87
+ );
88
+ }
89
+
90
+ &-medium {
91
+ background: linear-gradient(
92
+ 180deg,
93
+ rgba($bpk-text-primary-day, 0) 0%,
94
+ rgba($bpk-text-primary-day, 0.3) 100%
95
+ );
96
+ }
97
+
98
+ &-high {
99
+ background: linear-gradient(
100
+ 180deg,
101
+ rgba($bpk-text-primary-day, 0) 0%,
102
+ rgba($bpk-text-primary-day, 0.4) 100%
103
+ );
104
+ }
105
+ }
106
+
107
+ &--left {
108
+ &-low {
109
+ background: linear-gradient(
110
+ 90deg,
111
+ rgba($bpk-text-primary-day, 0.15) 0%,
112
+ rgba($bpk-text-primary-day, 0) 98.5%
113
+ );
114
+ }
115
+
116
+ &-medium {
117
+ background: linear-gradient(
118
+ 90deg,
119
+ rgba($bpk-text-primary-day, 0.3) 0%,
120
+ rgba($bpk-text-primary-day, 0) 98.5%
121
+ );
122
+ }
123
+
124
+ &-high {
125
+ background: linear-gradient(
126
+ 90deg,
127
+ rgba($bpk-text-primary-day, 0.4) 0%,
128
+ rgba($bpk-text-primary-day, 0) 98.5%
129
+ );
130
+ }
131
+ }
132
+
133
+ &--right {
134
+ &-low {
135
+ background: linear-gradient(
136
+ 90deg,
137
+ rgba($bpk-text-primary-day, 0) 0%,
138
+ rgba($bpk-text-primary-day, 0.15) 98.5%
139
+ );
140
+ }
141
+
142
+ &-medium {
143
+ background: linear-gradient(
144
+ 90deg,
145
+ rgba($bpk-text-primary-day, 0) 0%,
146
+ rgba($bpk-text-primary-day, 0.3) 98.5%
147
+ );
148
+ }
149
+
150
+ &-high {
151
+ background: linear-gradient(
152
+ 90deg,
153
+ rgba($bpk-text-primary-day, 0) 0%,
154
+ rgba($bpk-text-primary-day, 0.4) 98.5%
155
+ );
156
+ }
157
+ }
158
+
159
+ &--vignette {
160
+ box-shadow: inset 0 0 50px rgba($bpk-text-primary-day, 0.12);
39
161
  }
40
162
  }
41
163
  }
@@ -9,7 +9,7 @@ Check the main [Readme](https://github.com/skyscanner/backpack#usage) for a comp
9
9
  ## Usage
10
10
 
11
11
  ```js
12
- import React, { Component } from 'react';
12
+ import React, { createRef } from 'react';
13
13
  import BpkButton from '@skyscanner/backpack-web/bpk-component-button';
14
14
  import BpkPopover from '@skyscanner/backpack-web/bpk-component-popover';
15
15
  import BpkText from '@skyscanner/backpack-web/bpk-component-text';
@@ -18,7 +18,7 @@ class App extends Component {
18
18
  constructor() {
19
19
  super();
20
20
 
21
- this.ref = React.createRef();
21
+ this.ref = createRef();
22
22
  this.state = {
23
23
  isOpen: false,
24
24
  };
@@ -67,7 +67,7 @@ $border-width: $bpk-one-pixel-rem * 2;
67
67
  height: $height;
68
68
  transition: background $bpk-duration-sm linear;
69
69
  border-radius: $height / 2;
70
- background: $bpk-surface-highlight-day;
70
+ background: $bpk-text-disabled-day;
71
71
  cursor: pointer;
72
72
 
73
73
  // The 'handle'.
@@ -9,7 +9,7 @@ Check the main [Readme](https://github.com/skyscanner/backpack#usage) for a comp
9
9
  ## Usage
10
10
 
11
11
  ```js
12
- import React, { Component } from 'react';
12
+ import React, { useRef } from 'react';
13
13
  import BpkText from '@skyscanner/backpack-web/bpk-component-text';
14
14
  import BpkTooltip from '@skyscanner/backpack-web/bpk-component-tooltip';
15
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "15.1.0",
3
+ "version": "16.1.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,11 +24,11 @@
24
24
  "dependencies": {
25
25
  "@popperjs/core": "^2.11.5",
26
26
  "@react-google-maps/api": "^2.12.0",
27
- "@skyscanner/bpk-foundations-web": "^12.1.4",
28
- "@skyscanner/bpk-svgs": "^15.2.1",
27
+ "@skyscanner/bpk-foundations-web": "^13.0.0",
28
+ "@skyscanner/bpk-svgs": "^16.0.0",
29
29
  "a11y-focus-scope": "^1.1.3",
30
30
  "a11y-focus-store": "^1.0.0",
31
- "bpk-mixins": "^36.1.0",
31
+ "bpk-mixins": "^36.1.1",
32
32
  "d3-path": "^2.0.0",
33
33
  "d3-scale": "^4.0.2",
34
34
  "date-fns": "^2.21.1",