@skyscanner/backpack-web 34.0.0-premajor.2 → 34.0.1

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 (818) hide show
  1. package/bpk-component-aria-live/index.d.ts +1 -23
  2. package/bpk-component-aria-live/src/BpkAriaLive.d.ts +10 -35
  3. package/bpk-component-badge/index.d.ts +0 -18
  4. package/bpk-component-badge/src/BpkBadge.d.ts +16 -41
  5. package/bpk-component-badge/src/themeAttributes.d.ts +2 -0
  6. package/bpk-component-banner-alert/index.d.ts +2 -27
  7. package/bpk-component-banner-alert/src/AnimateAndFade.d.ts +23 -52
  8. package/bpk-component-banner-alert/src/AnimateAndFade.js +0 -2
  9. package/bpk-component-banner-alert/src/BpkBannerAlert.d.ts +5 -26
  10. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.d.ts +3 -25
  11. package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.d.ts +5 -30
  12. package/bpk-component-banner-alert/src/BpkBannerAlertInner.d.ts +12 -52
  13. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +0 -4
  14. package/bpk-component-banner-alert/src/common-types.d.ts +15 -37
  15. package/bpk-component-banner-alert/src/themeAttributes.d.ts +0 -18
  16. package/bpk-component-banner-alert/src/withBannerAlertState.d.ts +0 -18
  17. package/bpk-component-barchart/src/BpkBarchart.js +1 -8
  18. package/bpk-component-boilerplate/index.d.ts +1 -22
  19. package/bpk-component-boilerplate/src/BpkBoilerplate.d.ts +3 -22
  20. package/bpk-component-bottom-sheet/index.d.ts +0 -18
  21. package/bpk-component-bottom-sheet/src/BpkBottomSheet.d.ts +17 -38
  22. package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +4 -7
  23. package/bpk-component-bottom-sheet/src/BpkBottomSheet.module.css +1 -1
  24. package/bpk-component-breakpoint/index.d.ts +0 -18
  25. package/bpk-component-breakpoint/src/BpkBreakpoint.d.ts +20 -45
  26. package/bpk-component-breakpoint/src/BpkBreakpoint.js +21 -5
  27. package/bpk-component-breakpoint/src/useMediaQuery.d.ts +2 -0
  28. package/bpk-component-breakpoint/src/useMediaQuery.js +10 -7
  29. package/bpk-component-button/index.d.ts +13 -22
  30. package/bpk-component-button/index.js +15 -3
  31. package/bpk-component-button/src/BpkButtonV2/BpkButton.d.ts +0 -18
  32. package/bpk-component-button/src/BpkButtonV2/common-types.d.ts +27 -46
  33. package/bpk-component-button/src/themeAttributes.d.ts +8 -0
  34. package/bpk-component-button/themeAttributes.d.ts +1 -0
  35. package/bpk-component-button/themeAttributes.js +3 -1
  36. package/bpk-component-calendar/index.d.ts +4 -22
  37. package/bpk-component-calendar/src/BpkCalendarContainer.d.ts +3 -20
  38. package/bpk-component-calendar/src/BpkCalendarDate.d.ts +0 -18
  39. package/bpk-component-calendar/src/BpkCalendarGrid.d.ts +1 -19
  40. package/bpk-component-calendar/src/BpkCalendarGrid.js +2 -5
  41. package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
  42. package/bpk-component-calendar/src/BpkCalendarGridHeader.d.ts +0 -18
  43. package/bpk-component-calendar/src/BpkCalendarGridTransition.d.ts +1 -24
  44. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +1 -4
  45. package/bpk-component-calendar/src/BpkCalendarNav.d.ts +0 -18
  46. package/bpk-component-calendar/src/BpkCalendarNav.js +13 -12
  47. package/bpk-component-calendar/src/BpkCalendarNav.module.css +1 -1
  48. package/bpk-component-calendar/src/{Week.d.ts → BpkCalendarWeek.d.ts} +2 -20
  49. package/bpk-component-calendar/src/{Week.js → BpkCalendarWeek.js} +7 -13
  50. package/bpk-component-calendar/src/BpkCalendarWeek.module.css +18 -0
  51. package/bpk-component-calendar/src/composeCalendar.d.ts +0 -18
  52. package/bpk-component-calendar/src/custom-proptypes.d.ts +0 -18
  53. package/bpk-component-calendar/src/date-utils.d.ts +14 -32
  54. package/bpk-component-calendar/src/themeAttributes.d.ts +2 -0
  55. package/bpk-component-calendar/src/utils.d.ts +0 -18
  56. package/bpk-component-calendar/src/utils.js +1 -2
  57. package/bpk-component-card/index.d.ts +0 -19
  58. package/bpk-component-card/src/BpkCard.d.ts +8 -35
  59. package/bpk-component-card/src/BpkCardWrapper.d.ts +5 -29
  60. package/bpk-component-card/src/BpkDividedCard.d.ts +10 -37
  61. package/bpk-component-card-button/index.d.ts +2 -0
  62. package/bpk-component-card-button/src/BpkSaveButton.d.ts +12 -36
  63. package/bpk-component-card-button/src/BpkSaveButton.js +0 -4
  64. package/bpk-component-chip/index.d.ts +2 -20
  65. package/bpk-component-chip/src/BpkDismissibleChip.d.ts +0 -18
  66. package/bpk-component-chip/src/BpkDismissibleChip.js +4 -10
  67. package/bpk-component-chip/src/BpkDropdownChip.d.ts +1 -26
  68. package/bpk-component-chip/src/BpkDropdownChip.js +0 -1
  69. package/bpk-component-chip/src/BpkIconChip.d.ts +1 -19
  70. package/bpk-component-chip/src/BpkSelectableChip.d.ts +4 -32
  71. package/bpk-component-chip/src/BpkSelectableChip.js +2 -1
  72. package/bpk-component-chip/src/commonTypes.d.ts +11 -48
  73. package/bpk-component-chip/src/themeAttributes.d.ts +2 -0
  74. package/bpk-component-close-button/src/BpkCloseButton.js +7 -4
  75. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  76. package/bpk-component-datatable/index.d.ts +0 -18
  77. package/bpk-component-datatable/src/BpkDataTable.d.ts +0 -18
  78. package/bpk-component-datatable/src/BpkDataTableHeader.d.ts +0 -18
  79. package/bpk-component-datatable/src/BpkDataTableHeader.js +0 -2
  80. package/bpk-component-datatable/src/common-types.d.ts +4 -22
  81. package/bpk-component-datatable/src/utils.d.ts +0 -18
  82. package/bpk-component-datepicker/index.d.ts +0 -18
  83. package/bpk-component-datepicker/src/BpkDatepicker.d.ts +1 -24
  84. package/bpk-component-datepicker/src/BpkDatepicker.js +0 -8
  85. package/bpk-component-datepicker/src/themeAttributes.d.ts +2 -0
  86. package/bpk-component-datepicker/src/themeAttributes.js +0 -1
  87. package/bpk-component-dialog/index.d.ts +1 -20
  88. package/bpk-component-dialog/src/BpkDialog.d.ts +0 -18
  89. package/bpk-component-dialog/src/BpkDialogInner.d.ts +20 -206
  90. package/bpk-component-dialog/src/BpkDialogInner.js +2 -0
  91. package/bpk-component-dialog/src/common-types.d.ts +1 -18
  92. package/bpk-component-flare/src/BpkContentBubble.js +21 -9
  93. package/bpk-component-flare/src/BpkFlareBar.js +4 -22
  94. package/bpk-component-flare/src/bpk-content-bubble.module.css +1 -1
  95. package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
  96. package/bpk-component-floating-notification/index.d.ts +3 -0
  97. package/bpk-component-floating-notification/src/BpkFloatingNotification.d.ts +19 -42
  98. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +9 -12
  99. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
  100. package/bpk-component-graphic-promotion/index.d.ts +1 -23
  101. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.d.ts +0 -18
  102. package/bpk-component-icon/all.d.ts +4 -0
  103. package/bpk-component-icon/all.js +3 -3
  104. package/bpk-component-icon/index.d.ts +7 -35
  105. package/bpk-component-icon/index.js +1 -3
  106. package/bpk-component-icon/lg/accessibility.js +7 -11
  107. package/bpk-component-icon/lg/account--add.js +7 -11
  108. package/bpk-component-icon/lg/account--female.js +7 -11
  109. package/bpk-component-icon/lg/account--id-card.js +7 -11
  110. package/bpk-component-icon/lg/account--name.js +7 -11
  111. package/bpk-component-icon/lg/account--permit.js +7 -11
  112. package/bpk-component-icon/lg/account-circle.js +7 -11
  113. package/bpk-component-icon/lg/account.js +7 -11
  114. package/bpk-component-icon/lg/add-circle.js +7 -11
  115. package/bpk-component-icon/lg/adult.js +7 -11
  116. package/bpk-component-icon/lg/ai.js +7 -12
  117. package/bpk-component-icon/lg/aircon.js +7 -11
  118. package/bpk-component-icon/lg/aircraft.js +8 -12
  119. package/bpk-component-icon/lg/airline--multiple.js +7 -11
  120. package/bpk-component-icon/lg/airline.js +7 -11
  121. package/bpk-component-icon/lg/airports.js +7 -11
  122. package/bpk-component-icon/lg/alert--active.js +7 -11
  123. package/bpk-component-icon/lg/alert--add.js +7 -11
  124. package/bpk-component-icon/lg/alert--expired.js +7 -11
  125. package/bpk-component-icon/lg/alert--remove.js +7 -11
  126. package/bpk-component-icon/lg/arrow-down.js +7 -11
  127. package/bpk-component-icon/lg/arrow-left.js +7 -11
  128. package/bpk-component-icon/lg/arrow-right.js +7 -11
  129. package/bpk-component-icon/lg/arrow-up.js +7 -11
  130. package/bpk-component-icon/lg/award.js +7 -11
  131. package/bpk-component-icon/lg/baby-carriage.js +7 -11
  132. package/bpk-component-icon/lg/baggage--add.js +7 -11
  133. package/bpk-component-icon/lg/baggage--remove.js +7 -11
  134. package/bpk-component-icon/lg/baggage-cabin-add.js +7 -11
  135. package/bpk-component-icon/lg/baggage-cabin-not-included.js +7 -11
  136. package/bpk-component-icon/lg/baggage-cabin.js +7 -11
  137. package/bpk-component-icon/lg/baggage-checked-add.js +7 -11
  138. package/bpk-component-icon/lg/baggage-checked-not-included.js +7 -11
  139. package/bpk-component-icon/lg/baggage-checked.js +7 -11
  140. package/bpk-component-icon/lg/baggage-cross.js +7 -11
  141. package/bpk-component-icon/lg/baggage-generic.js +7 -11
  142. package/bpk-component-icon/lg/baggage-tick.js +7 -11
  143. package/bpk-component-icon/lg/baggage.js +7 -11
  144. package/bpk-component-icon/lg/bar.js +7 -11
  145. package/bpk-component-icon/lg/beach.js +8 -12
  146. package/bpk-component-icon/lg/beer.js +7 -11
  147. package/bpk-component-icon/lg/breakfast-cross.js +7 -11
  148. package/bpk-component-icon/lg/breakfast-tick.js +7 -11
  149. package/bpk-component-icon/lg/bus.js +7 -11
  150. package/bpk-component-icon/lg/business.js +7 -11
  151. package/bpk-component-icon/lg/cafe.js +7 -11
  152. package/bpk-component-icon/lg/calendar.js +7 -11
  153. package/bpk-component-icon/lg/call-back.js +8 -12
  154. package/bpk-component-icon/lg/camera.js +7 -11
  155. package/bpk-component-icon/lg/camper-van.js +8 -12
  156. package/bpk-component-icon/lg/car-door.js +7 -11
  157. package/bpk-component-icon/lg/car-wash.js +8 -12
  158. package/bpk-component-icon/lg/cars-flexible.js +7 -11
  159. package/bpk-component-icon/lg/cars.js +8 -12
  160. package/bpk-component-icon/lg/center-location.js +7 -11
  161. package/bpk-component-icon/lg/chart.js +7 -11
  162. package/bpk-component-icon/lg/chauffeur.js +7 -11
  163. package/bpk-component-icon/lg/chevron-down.js +7 -11
  164. package/bpk-component-icon/lg/chevron-left.js +7 -11
  165. package/bpk-component-icon/lg/chevron-right.js +7 -11
  166. package/bpk-component-icon/lg/chevron-up.js +7 -11
  167. package/bpk-component-icon/lg/child-seat.js +7 -11
  168. package/bpk-component-icon/lg/child.js +7 -11
  169. package/bpk-component-icon/lg/city-center.js +7 -11
  170. package/bpk-component-icon/lg/city.js +7 -11
  171. package/bpk-component-icon/lg/clean-policy.js +7 -11
  172. package/bpk-component-icon/lg/clean.js +9 -13
  173. package/bpk-component-icon/lg/cleaning-medical.js +7 -11
  174. package/bpk-component-icon/lg/cloakroom.js +9 -13
  175. package/bpk-component-icon/lg/close-circle.js +7 -11
  176. package/bpk-component-icon/lg/close.js +7 -11
  177. package/bpk-component-icon/lg/collapse.js +7 -11
  178. package/bpk-component-icon/lg/content--copy.js +8 -12
  179. package/bpk-component-icon/lg/content--event.js +7 -11
  180. package/bpk-component-icon/lg/content--guides.js +7 -11
  181. package/bpk-component-icon/lg/currency.js +7 -11
  182. package/bpk-component-icon/lg/data.js +8 -12
  183. package/bpk-component-icon/lg/deals.js +7 -11
  184. package/bpk-component-icon/lg/depart.js +8 -12
  185. package/bpk-component-icon/lg/device-mid.js +7 -11
  186. package/bpk-component-icon/lg/device-wide.js +7 -11
  187. package/bpk-component-icon/lg/direct.js +7 -11
  188. package/bpk-component-icon/lg/document-csv.js +7 -11
  189. package/bpk-component-icon/lg/document-pdf.js +7 -11
  190. package/bpk-component-icon/lg/dot.js +16 -0
  191. package/bpk-component-icon/lg/download.js +8 -12
  192. package/bpk-component-icon/lg/duration.js +7 -11
  193. package/bpk-component-icon/lg/eco-leaf.js +7 -11
  194. package/bpk-component-icon/lg/edit.js +7 -11
  195. package/bpk-component-icon/lg/education.js +8 -12
  196. package/bpk-component-icon/lg/electric.js +7 -11
  197. package/bpk-component-icon/lg/end-call.js +7 -11
  198. package/bpk-component-icon/lg/estimated.js +7 -11
  199. package/bpk-component-icon/lg/exclamation-circle.js +7 -11
  200. package/bpk-component-icon/lg/exclamation.js +7 -11
  201. package/bpk-component-icon/lg/expand.js +7 -11
  202. package/bpk-component-icon/lg/explore.js +9 -13
  203. package/bpk-component-icon/lg/face--blank.js +7 -11
  204. package/bpk-component-icon/lg/face--happy.js +7 -11
  205. package/bpk-component-icon/lg/face--sad.js +7 -11
  206. package/bpk-component-icon/lg/face-id.js +7 -11
  207. package/bpk-component-icon/lg/face-mask.js +7 -11
  208. package/bpk-component-icon/lg/family.js +7 -11
  209. package/bpk-component-icon/lg/fast-track.js +8 -12
  210. package/bpk-component-icon/lg/fast-train.js +8 -12
  211. package/bpk-component-icon/lg/filter.js +7 -11
  212. package/bpk-component-icon/lg/fingerprint.js +7 -11
  213. package/bpk-component-icon/lg/flag.js +7 -11
  214. package/bpk-component-icon/lg/flask.js +7 -11
  215. package/bpk-component-icon/lg/flight-flexible.js +7 -11
  216. package/bpk-component-icon/lg/flight-landing.js +9 -13
  217. package/bpk-component-icon/lg/flight-takeoff.js +8 -12
  218. package/bpk-component-icon/lg/flight.js +8 -12
  219. package/bpk-component-icon/lg/food.js +7 -11
  220. package/bpk-component-icon/lg/gears-automatic-circle.js +7 -11
  221. package/bpk-component-icon/lg/gears-automatic.js +7 -11
  222. package/bpk-component-icon/lg/gears-manual-circle.js +7 -11
  223. package/bpk-component-icon/lg/gears-manual.js +7 -11
  224. package/bpk-component-icon/lg/globe.js +7 -11
  225. package/bpk-component-icon/lg/grid-layout.js +7 -11
  226. package/bpk-component-icon/lg/headset.js +7 -11
  227. package/bpk-component-icon/lg/health-fitness.js +7 -11
  228. package/bpk-component-icon/lg/heart--outline.js +7 -11
  229. package/bpk-component-icon/lg/heart.js +7 -11
  230. package/bpk-component-icon/lg/help-circle.js +7 -11
  231. package/bpk-component-icon/lg/help.js +7 -11
  232. package/bpk-component-icon/lg/hide.js +7 -11
  233. package/bpk-component-icon/lg/hotel-flexible.js +7 -11
  234. package/bpk-component-icon/lg/hotels--disabled-facilities.js +7 -11
  235. package/bpk-component-icon/lg/hotels--jacuzzi.js +7 -11
  236. package/bpk-component-icon/lg/hotels--pets-allowed.js +7 -11
  237. package/bpk-component-icon/lg/hotels--smoking.js +7 -11
  238. package/bpk-component-icon/lg/hotels.js +7 -11
  239. package/bpk-component-icon/lg/infant.js +7 -11
  240. package/bpk-component-icon/lg/information--language-alert.js +7 -11
  241. package/bpk-component-icon/lg/information--language-question.js +7 -11
  242. package/bpk-component-icon/lg/information--language.js +7 -11
  243. package/bpk-component-icon/lg/information-circle.js +7 -11
  244. package/bpk-component-icon/lg/information.js +7 -11
  245. package/bpk-component-icon/lg/insurance.js +7 -11
  246. package/bpk-component-icon/lg/key.js +7 -11
  247. package/bpk-component-icon/lg/keypad.js +7 -11
  248. package/bpk-component-icon/lg/landmark.js +7 -11
  249. package/bpk-component-icon/lg/language.js +7 -11
  250. package/bpk-component-icon/lg/legroom--extra.js +8 -12
  251. package/bpk-component-icon/lg/legroom--normal.js +8 -12
  252. package/bpk-component-icon/lg/legroom--reduced.js +8 -12
  253. package/bpk-component-icon/lg/leisure.js +7 -11
  254. package/bpk-component-icon/lg/lightning.js +7 -11
  255. package/bpk-component-icon/lg/list.js +7 -11
  256. package/bpk-component-icon/lg/location.js +7 -11
  257. package/bpk-component-icon/lg/lock.js +7 -11
  258. package/bpk-component-icon/lg/logout.js +8 -12
  259. package/bpk-component-icon/lg/long-arrow-down.js +7 -11
  260. package/bpk-component-icon/lg/long-arrow-left.js +7 -11
  261. package/bpk-component-icon/lg/long-arrow-right.js +7 -11
  262. package/bpk-component-icon/lg/long-arrow-up.js +7 -11
  263. package/bpk-component-icon/lg/lounge.js +8 -12
  264. package/bpk-component-icon/lg/luggageall.js +7 -11
  265. package/bpk-component-icon/lg/mail.js +8 -12
  266. package/bpk-component-icon/lg/map.js +7 -11
  267. package/bpk-component-icon/lg/meal.js +7 -11
  268. package/bpk-component-icon/lg/media.js +7 -11
  269. package/bpk-component-icon/lg/menu--horizontal.js +7 -11
  270. package/bpk-component-icon/lg/menu--vertical.js +7 -11
  271. package/bpk-component-icon/lg/menu.js +7 -11
  272. package/bpk-component-icon/lg/mileage.js +8 -12
  273. package/bpk-component-icon/lg/minus.js +7 -11
  274. package/bpk-component-icon/lg/mobile.js +7 -11
  275. package/bpk-component-icon/lg/money.js +7 -11
  276. package/bpk-component-icon/lg/multiple-bookings.js +7 -11
  277. package/bpk-component-icon/lg/music.js +7 -11
  278. package/bpk-component-icon/lg/mute.js +7 -11
  279. package/bpk-component-icon/lg/native-android--back.js +7 -11
  280. package/bpk-component-icon/lg/native-android--close.js +7 -11
  281. package/bpk-component-icon/lg/native-android--forward.js +7 -11
  282. package/bpk-component-icon/lg/native-ios-close.js +7 -11
  283. package/bpk-component-icon/lg/navigation.js +7 -11
  284. package/bpk-component-icon/lg/new-window.js +8 -12
  285. package/bpk-component-icon/lg/news.js +7 -11
  286. package/bpk-component-icon/lg/night.js +7 -11
  287. package/bpk-component-icon/lg/not-allowed.js +7 -11
  288. package/bpk-component-icon/lg/onsen.js +7 -11
  289. package/bpk-component-icon/lg/origin.js +7 -11
  290. package/bpk-component-icon/lg/paid.js +7 -11
  291. package/bpk-component-icon/lg/paperclip.js +7 -11
  292. package/bpk-component-icon/lg/parking.js +7 -11
  293. package/bpk-component-icon/lg/passport.js +7 -11
  294. package/bpk-component-icon/lg/pause.js +7 -11
  295. package/bpk-component-icon/lg/payment-card.js +7 -11
  296. package/bpk-component-icon/lg/petrol.js +7 -11
  297. package/bpk-component-icon/lg/phone-call.js +7 -11
  298. package/bpk-component-icon/lg/picture.js +7 -11
  299. package/bpk-component-icon/lg/pin.js +7 -11
  300. package/bpk-component-icon/lg/plane-seat.js +8 -12
  301. package/bpk-component-icon/lg/play.js +7 -11
  302. package/bpk-component-icon/lg/plus.js +7 -11
  303. package/bpk-component-icon/lg/policy.js +7 -11
  304. package/bpk-component-icon/lg/powerplug.js +7 -11
  305. package/bpk-component-icon/lg/ppe.js +7 -11
  306. package/bpk-component-icon/lg/price-alerts.js +7 -11
  307. package/bpk-component-icon/lg/price-tag.js +7 -11
  308. package/bpk-component-icon/lg/print.js +7 -11
  309. package/bpk-component-icon/lg/recent-searches.js +7 -11
  310. package/bpk-component-icon/lg/redo.js +7 -11
  311. package/bpk-component-icon/lg/refresh.js +7 -11
  312. package/bpk-component-icon/lg/return.js +8 -12
  313. package/bpk-component-icon/lg/room.js +7 -11
  314. package/bpk-component-icon/lg/scales.js +8 -12
  315. package/bpk-component-icon/lg/search.js +7 -11
  316. package/bpk-component-icon/lg/self-service.js +7 -11
  317. package/bpk-component-icon/lg/send-message.js +7 -11
  318. package/bpk-component-icon/lg/services.js +7 -11
  319. package/bpk-component-icon/lg/settings.js +7 -11
  320. package/bpk-component-icon/lg/share--android.js +7 -11
  321. package/bpk-component-icon/lg/share--ios.js +8 -12
  322. package/bpk-component-icon/lg/share.js +7 -11
  323. package/bpk-component-icon/lg/single-booking.js +7 -11
  324. package/bpk-component-icon/lg/social-distancing.js +8 -12
  325. package/bpk-component-icon/lg/social-like.js +7 -11
  326. package/bpk-component-icon/lg/sort-down.js +7 -11
  327. package/bpk-component-icon/lg/sort-up.js +7 -11
  328. package/bpk-component-icon/lg/sort.js +7 -11
  329. package/bpk-component-icon/lg/speaker.js +8 -12
  330. package/bpk-component-icon/lg/star-half.js +7 -11
  331. package/bpk-component-icon/lg/star-outline.js +7 -11
  332. package/bpk-component-icon/lg/star.js +7 -11
  333. package/bpk-component-icon/lg/stops.js +7 -11
  334. package/bpk-component-icon/lg/swap--horizontal.js +7 -11
  335. package/bpk-component-icon/lg/swap--vertical.js +7 -11
  336. package/bpk-component-icon/lg/swap.js +7 -11
  337. package/bpk-component-icon/lg/taxi.js +8 -12
  338. package/bpk-component-icon/lg/thumbs-down.js +7 -11
  339. package/bpk-component-icon/lg/thumbs-up.js +7 -11
  340. package/bpk-component-icon/lg/tick-circle.js +7 -11
  341. package/bpk-component-icon/lg/tick.js +7 -11
  342. package/bpk-component-icon/lg/ticket-flexible.js +7 -11
  343. package/bpk-component-icon/lg/ticket.js +7 -11
  344. package/bpk-component-icon/lg/time.js +7 -11
  345. package/bpk-component-icon/lg/toilets.js +7 -11
  346. package/bpk-component-icon/lg/train.js +7 -11
  347. package/bpk-component-icon/lg/transmission-automatic.js +7 -11
  348. package/bpk-component-icon/lg/transmission-manual.js +7 -11
  349. package/bpk-component-icon/lg/trash.js +7 -11
  350. package/bpk-component-icon/lg/trend--down.js +7 -11
  351. package/bpk-component-icon/lg/trend--steady.js +7 -11
  352. package/bpk-component-icon/lg/trend--will-rise.js +7 -11
  353. package/bpk-component-icon/lg/trend.js +7 -11
  354. package/bpk-component-icon/lg/trips.js +7 -11
  355. package/bpk-component-icon/lg/undo.js +7 -11
  356. package/bpk-component-icon/lg/unlock.js +7 -11
  357. package/bpk-component-icon/lg/unmute.js +8 -12
  358. package/bpk-component-icon/lg/upgrade.js +7 -11
  359. package/bpk-component-icon/lg/upload.js +7 -11
  360. package/bpk-component-icon/lg/use-location.js +7 -11
  361. package/bpk-component-icon/lg/view.js +7 -11
  362. package/bpk-component-icon/lg/virus.js +7 -11
  363. package/bpk-component-icon/lg/wallet.js +8 -12
  364. package/bpk-component-icon/lg/weather--clear.js +7 -11
  365. package/bpk-component-icon/lg/weather--cloudy.js +8 -12
  366. package/bpk-component-icon/lg/weather--fog.js +7 -11
  367. package/bpk-component-icon/lg/weather--partly-cloudy.js +8 -12
  368. package/bpk-component-icon/lg/weather--rain.js +9 -13
  369. package/bpk-component-icon/lg/weather--snow.js +7 -11
  370. package/bpk-component-icon/lg/weather--thunderstorm.js +9 -13
  371. package/bpk-component-icon/lg/weather--tornado.js +7 -11
  372. package/bpk-component-icon/lg/weather--wind.js +7 -11
  373. package/bpk-component-icon/lg/weather.js +7 -11
  374. package/bpk-component-icon/lg/wifi.js +7 -11
  375. package/bpk-component-icon/lg/window--reduce.js +8 -12
  376. package/bpk-component-icon/lg/window.js +7 -11
  377. package/bpk-component-icon/lg/world--amer.js +7 -11
  378. package/bpk-component-icon/lg/world--apac.js +7 -11
  379. package/bpk-component-icon/lg/world--emea.js +8 -12
  380. package/bpk-component-icon/sm/accessibility.js +7 -11
  381. package/bpk-component-icon/sm/account--add.js +7 -11
  382. package/bpk-component-icon/sm/account--female.js +7 -11
  383. package/bpk-component-icon/sm/account--id-card.js +7 -11
  384. package/bpk-component-icon/sm/account--name.js +7 -11
  385. package/bpk-component-icon/sm/account--permit.js +7 -11
  386. package/bpk-component-icon/sm/account-circle.js +7 -11
  387. package/bpk-component-icon/sm/account.js +7 -11
  388. package/bpk-component-icon/sm/add-circle.js +7 -11
  389. package/bpk-component-icon/sm/adult.js +7 -11
  390. package/bpk-component-icon/sm/ai.js +7 -12
  391. package/bpk-component-icon/sm/aircon.js +7 -11
  392. package/bpk-component-icon/sm/aircraft.js +8 -12
  393. package/bpk-component-icon/sm/airline--multiple.js +7 -11
  394. package/bpk-component-icon/sm/airline.js +7 -11
  395. package/bpk-component-icon/sm/airports.js +7 -11
  396. package/bpk-component-icon/sm/alert--active.js +7 -11
  397. package/bpk-component-icon/sm/alert--add.js +7 -11
  398. package/bpk-component-icon/sm/alert--expired.js +7 -11
  399. package/bpk-component-icon/sm/alert--remove.js +7 -11
  400. package/bpk-component-icon/sm/arrow-down.js +7 -11
  401. package/bpk-component-icon/sm/arrow-left.js +7 -11
  402. package/bpk-component-icon/sm/arrow-right.js +7 -11
  403. package/bpk-component-icon/sm/arrow-up.js +7 -11
  404. package/bpk-component-icon/sm/award.js +7 -11
  405. package/bpk-component-icon/sm/baby-carriage.js +7 -11
  406. package/bpk-component-icon/sm/baggage--add.js +7 -11
  407. package/bpk-component-icon/sm/baggage--remove.js +7 -11
  408. package/bpk-component-icon/sm/baggage-cabin-add.js +7 -11
  409. package/bpk-component-icon/sm/baggage-cabin-not-included.js +7 -11
  410. package/bpk-component-icon/sm/baggage-cabin.js +7 -11
  411. package/bpk-component-icon/sm/baggage-checked-add.js +7 -11
  412. package/bpk-component-icon/sm/baggage-checked-not-included.js +7 -11
  413. package/bpk-component-icon/sm/baggage-checked.js +7 -11
  414. package/bpk-component-icon/sm/baggage-cross.js +7 -11
  415. package/bpk-component-icon/sm/baggage-generic.js +7 -11
  416. package/bpk-component-icon/sm/baggage-tick.js +7 -11
  417. package/bpk-component-icon/sm/baggage.js +7 -11
  418. package/bpk-component-icon/sm/bar.js +7 -11
  419. package/bpk-component-icon/sm/beach.js +8 -12
  420. package/bpk-component-icon/sm/beer.js +7 -11
  421. package/bpk-component-icon/sm/breakfast-cross.js +7 -11
  422. package/bpk-component-icon/sm/breakfast-tick.js +7 -11
  423. package/bpk-component-icon/sm/bus.js +8 -12
  424. package/bpk-component-icon/sm/business.js +7 -11
  425. package/bpk-component-icon/sm/cafe.js +7 -11
  426. package/bpk-component-icon/sm/calendar.js +7 -11
  427. package/bpk-component-icon/sm/call-back.js +8 -12
  428. package/bpk-component-icon/sm/camera.js +7 -11
  429. package/bpk-component-icon/sm/camper-van.js +8 -12
  430. package/bpk-component-icon/sm/car-door.js +7 -11
  431. package/bpk-component-icon/sm/car-wash.js +8 -12
  432. package/bpk-component-icon/sm/cars-flexible.js +7 -11
  433. package/bpk-component-icon/sm/cars.js +8 -12
  434. package/bpk-component-icon/sm/center-location.js +7 -11
  435. package/bpk-component-icon/sm/chart.js +7 -11
  436. package/bpk-component-icon/sm/chauffeur.js +8 -12
  437. package/bpk-component-icon/sm/chevron-down.js +7 -11
  438. package/bpk-component-icon/sm/chevron-left.js +7 -11
  439. package/bpk-component-icon/sm/chevron-right.js +7 -11
  440. package/bpk-component-icon/sm/chevron-up.js +7 -11
  441. package/bpk-component-icon/sm/child-seat.js +7 -11
  442. package/bpk-component-icon/sm/child.js +7 -11
  443. package/bpk-component-icon/sm/city-center.js +7 -11
  444. package/bpk-component-icon/sm/city.js +7 -11
  445. package/bpk-component-icon/sm/clean-policy.js +7 -11
  446. package/bpk-component-icon/sm/clean.js +8 -12
  447. package/bpk-component-icon/sm/cleaning-medical.js +7 -11
  448. package/bpk-component-icon/sm/cloakroom.js +7 -11
  449. package/bpk-component-icon/sm/close-circle.js +7 -11
  450. package/bpk-component-icon/sm/close.js +7 -11
  451. package/bpk-component-icon/sm/collapse.js +7 -11
  452. package/bpk-component-icon/sm/content--copy.js +8 -12
  453. package/bpk-component-icon/sm/content--event.js +7 -11
  454. package/bpk-component-icon/sm/content--guides.js +7 -11
  455. package/bpk-component-icon/sm/currency.js +7 -11
  456. package/bpk-component-icon/sm/data.js +8 -12
  457. package/bpk-component-icon/sm/deals.js +7 -11
  458. package/bpk-component-icon/sm/depart.js +9 -13
  459. package/bpk-component-icon/sm/device-mid.js +7 -11
  460. package/bpk-component-icon/sm/device-wide.js +7 -11
  461. package/bpk-component-icon/sm/direct.js +8 -12
  462. package/bpk-component-icon/sm/document-csv.js +7 -11
  463. package/bpk-component-icon/sm/document-pdf.js +7 -11
  464. package/bpk-component-icon/sm/dot.js +16 -0
  465. package/bpk-component-icon/sm/download.js +8 -12
  466. package/bpk-component-icon/sm/duration.js +7 -11
  467. package/bpk-component-icon/sm/eco-leaf.js +7 -11
  468. package/bpk-component-icon/sm/edit.js +7 -11
  469. package/bpk-component-icon/sm/education.js +8 -12
  470. package/bpk-component-icon/sm/electric.js +7 -11
  471. package/bpk-component-icon/sm/end-call.js +7 -11
  472. package/bpk-component-icon/sm/estimated.js +7 -11
  473. package/bpk-component-icon/sm/exclamation-circle.js +7 -11
  474. package/bpk-component-icon/sm/exclamation.js +7 -11
  475. package/bpk-component-icon/sm/expand.js +7 -11
  476. package/bpk-component-icon/sm/explore.js +9 -13
  477. package/bpk-component-icon/sm/face--blank.js +7 -11
  478. package/bpk-component-icon/sm/face--happy.js +7 -11
  479. package/bpk-component-icon/sm/face--sad.js +7 -11
  480. package/bpk-component-icon/sm/face-id.js +7 -11
  481. package/bpk-component-icon/sm/face-mask.js +7 -11
  482. package/bpk-component-icon/sm/family.js +7 -11
  483. package/bpk-component-icon/sm/fast-track.js +8 -12
  484. package/bpk-component-icon/sm/fast-train.js +8 -12
  485. package/bpk-component-icon/sm/filter.js +7 -11
  486. package/bpk-component-icon/sm/fingerprint.js +7 -11
  487. package/bpk-component-icon/sm/flag.js +7 -11
  488. package/bpk-component-icon/sm/flask.js +7 -11
  489. package/bpk-component-icon/sm/flight-flexible.js +7 -11
  490. package/bpk-component-icon/sm/flight-landing.js +9 -13
  491. package/bpk-component-icon/sm/flight-takeoff.js +8 -12
  492. package/bpk-component-icon/sm/flight.js +8 -12
  493. package/bpk-component-icon/sm/food.js +7 -11
  494. package/bpk-component-icon/sm/gears-automatic-circle.js +7 -11
  495. package/bpk-component-icon/sm/gears-automatic.js +7 -11
  496. package/bpk-component-icon/sm/gears-manual-circle.js +7 -11
  497. package/bpk-component-icon/sm/gears-manual.js +7 -11
  498. package/bpk-component-icon/sm/globe.js +7 -11
  499. package/bpk-component-icon/sm/grid-layout.js +7 -11
  500. package/bpk-component-icon/sm/headset.js +7 -11
  501. package/bpk-component-icon/sm/health-fitness.js +7 -11
  502. package/bpk-component-icon/sm/heart--outline.js +7 -11
  503. package/bpk-component-icon/sm/heart.js +7 -11
  504. package/bpk-component-icon/sm/help-circle.js +7 -11
  505. package/bpk-component-icon/sm/help.js +7 -11
  506. package/bpk-component-icon/sm/hide.js +7 -11
  507. package/bpk-component-icon/sm/hotel-flexible.js +7 -11
  508. package/bpk-component-icon/sm/hotels--disabled-facilities.js +7 -11
  509. package/bpk-component-icon/sm/hotels--jacuzzi.js +8 -12
  510. package/bpk-component-icon/sm/hotels--pets-allowed.js +7 -11
  511. package/bpk-component-icon/sm/hotels--smoking.js +7 -11
  512. package/bpk-component-icon/sm/hotels.js +7 -11
  513. package/bpk-component-icon/sm/infant.js +8 -12
  514. package/bpk-component-icon/sm/information--language-alert.js +7 -11
  515. package/bpk-component-icon/sm/information--language-question.js +7 -11
  516. package/bpk-component-icon/sm/information--language.js +7 -11
  517. package/bpk-component-icon/sm/information-circle.js +7 -11
  518. package/bpk-component-icon/sm/information.js +7 -11
  519. package/bpk-component-icon/sm/insurance.js +7 -11
  520. package/bpk-component-icon/sm/key.js +7 -11
  521. package/bpk-component-icon/sm/keypad.js +7 -11
  522. package/bpk-component-icon/sm/landmark.js +7 -11
  523. package/bpk-component-icon/sm/language.js +7 -11
  524. package/bpk-component-icon/sm/legroom--extra.js +8 -12
  525. package/bpk-component-icon/sm/legroom--normal.js +8 -12
  526. package/bpk-component-icon/sm/legroom--reduced.js +8 -12
  527. package/bpk-component-icon/sm/leisure.js +7 -11
  528. package/bpk-component-icon/sm/lightning.js +7 -11
  529. package/bpk-component-icon/sm/list.js +7 -11
  530. package/bpk-component-icon/sm/location.js +7 -11
  531. package/bpk-component-icon/sm/lock.js +7 -11
  532. package/bpk-component-icon/sm/logout.js +8 -12
  533. package/bpk-component-icon/sm/long-arrow-down.js +7 -11
  534. package/bpk-component-icon/sm/long-arrow-left.js +7 -11
  535. package/bpk-component-icon/sm/long-arrow-right.js +7 -11
  536. package/bpk-component-icon/sm/long-arrow-up.js +7 -11
  537. package/bpk-component-icon/sm/lounge.js +7 -11
  538. package/bpk-component-icon/sm/luggageall.js +7 -11
  539. package/bpk-component-icon/sm/mail.js +8 -12
  540. package/bpk-component-icon/sm/map.js +7 -11
  541. package/bpk-component-icon/sm/meal.js +7 -11
  542. package/bpk-component-icon/sm/media.js +7 -11
  543. package/bpk-component-icon/sm/menu--horizontal.js +7 -11
  544. package/bpk-component-icon/sm/menu--vertical.js +7 -11
  545. package/bpk-component-icon/sm/menu.js +7 -11
  546. package/bpk-component-icon/sm/mileage.js +8 -12
  547. package/bpk-component-icon/sm/minus.js +7 -11
  548. package/bpk-component-icon/sm/mobile.js +7 -11
  549. package/bpk-component-icon/sm/money.js +7 -11
  550. package/bpk-component-icon/sm/multiple-bookings.js +7 -11
  551. package/bpk-component-icon/sm/music.js +7 -11
  552. package/bpk-component-icon/sm/mute.js +7 -11
  553. package/bpk-component-icon/sm/native-android--back.js +7 -11
  554. package/bpk-component-icon/sm/native-android--close.js +7 -11
  555. package/bpk-component-icon/sm/native-android--forward.js +7 -11
  556. package/bpk-component-icon/sm/native-ios-close.js +7 -11
  557. package/bpk-component-icon/sm/navigation.js +7 -11
  558. package/bpk-component-icon/sm/new-window.js +10 -14
  559. package/bpk-component-icon/sm/news.js +7 -11
  560. package/bpk-component-icon/sm/night.js +7 -11
  561. package/bpk-component-icon/sm/not-allowed.js +7 -11
  562. package/bpk-component-icon/sm/onsen.js +8 -12
  563. package/bpk-component-icon/sm/origin.js +7 -11
  564. package/bpk-component-icon/sm/paid.js +7 -11
  565. package/bpk-component-icon/sm/paperclip.js +7 -11
  566. package/bpk-component-icon/sm/parking.js +7 -11
  567. package/bpk-component-icon/sm/passport.js +7 -11
  568. package/bpk-component-icon/sm/pause.js +7 -11
  569. package/bpk-component-icon/sm/payment-card.js +7 -11
  570. package/bpk-component-icon/sm/petrol.js +7 -11
  571. package/bpk-component-icon/sm/phone-call.js +7 -11
  572. package/bpk-component-icon/sm/picture.js +7 -11
  573. package/bpk-component-icon/sm/pin.js +7 -11
  574. package/bpk-component-icon/sm/plane-seat.js +8 -12
  575. package/bpk-component-icon/sm/play.js +7 -11
  576. package/bpk-component-icon/sm/plus.js +7 -11
  577. package/bpk-component-icon/sm/policy.js +7 -11
  578. package/bpk-component-icon/sm/powerplug.js +7 -11
  579. package/bpk-component-icon/sm/ppe.js +7 -11
  580. package/bpk-component-icon/sm/price-alerts.js +7 -11
  581. package/bpk-component-icon/sm/price-tag.js +7 -11
  582. package/bpk-component-icon/sm/print.js +7 -11
  583. package/bpk-component-icon/sm/recent-searches.js +7 -11
  584. package/bpk-component-icon/sm/redo.js +7 -11
  585. package/bpk-component-icon/sm/refresh.js +7 -11
  586. package/bpk-component-icon/sm/return.js +9 -13
  587. package/bpk-component-icon/sm/room.js +7 -11
  588. package/bpk-component-icon/sm/scales.js +7 -11
  589. package/bpk-component-icon/sm/search.js +7 -11
  590. package/bpk-component-icon/sm/self-service.js +7 -11
  591. package/bpk-component-icon/sm/send-message.js +7 -11
  592. package/bpk-component-icon/sm/services.js +7 -11
  593. package/bpk-component-icon/sm/settings.js +7 -11
  594. package/bpk-component-icon/sm/share--android.js +7 -11
  595. package/bpk-component-icon/sm/share--ios.js +8 -12
  596. package/bpk-component-icon/sm/share.js +7 -11
  597. package/bpk-component-icon/sm/single-booking.js +7 -11
  598. package/bpk-component-icon/sm/social-distancing.js +8 -12
  599. package/bpk-component-icon/sm/social-like.js +7 -11
  600. package/bpk-component-icon/sm/sort-down.js +7 -11
  601. package/bpk-component-icon/sm/sort-up.js +7 -11
  602. package/bpk-component-icon/sm/sort.js +7 -11
  603. package/bpk-component-icon/sm/speaker.js +7 -11
  604. package/bpk-component-icon/sm/star-half.js +7 -11
  605. package/bpk-component-icon/sm/star-outline.js +7 -11
  606. package/bpk-component-icon/sm/star.js +7 -11
  607. package/bpk-component-icon/sm/stops.js +7 -11
  608. package/bpk-component-icon/sm/swap--horizontal.js +7 -11
  609. package/bpk-component-icon/sm/swap--vertical.js +7 -11
  610. package/bpk-component-icon/sm/swap.js +7 -11
  611. package/bpk-component-icon/sm/taxi.js +8 -12
  612. package/bpk-component-icon/sm/thumbs-down.js +7 -11
  613. package/bpk-component-icon/sm/thumbs-up.js +7 -11
  614. package/bpk-component-icon/sm/tick-circle.js +7 -11
  615. package/bpk-component-icon/sm/tick.js +7 -11
  616. package/bpk-component-icon/sm/ticket-flexible.js +7 -11
  617. package/bpk-component-icon/sm/ticket.js +7 -11
  618. package/bpk-component-icon/sm/time.js +7 -11
  619. package/bpk-component-icon/sm/toilets.js +7 -11
  620. package/bpk-component-icon/sm/train.js +7 -11
  621. package/bpk-component-icon/sm/transmission-automatic.js +7 -11
  622. package/bpk-component-icon/sm/transmission-manual.js +7 -11
  623. package/bpk-component-icon/sm/trash.js +7 -11
  624. package/bpk-component-icon/sm/trend--down.js +7 -11
  625. package/bpk-component-icon/sm/trend--steady.js +7 -11
  626. package/bpk-component-icon/sm/trend--will-rise.js +7 -11
  627. package/bpk-component-icon/sm/trend.js +7 -11
  628. package/bpk-component-icon/sm/trips.js +7 -11
  629. package/bpk-component-icon/sm/undo.js +7 -11
  630. package/bpk-component-icon/sm/unlock.js +7 -11
  631. package/bpk-component-icon/sm/unmute.js +8 -12
  632. package/bpk-component-icon/sm/upgrade.js +7 -11
  633. package/bpk-component-icon/sm/upload.js +7 -11
  634. package/bpk-component-icon/sm/use-location.js +7 -11
  635. package/bpk-component-icon/sm/view.js +7 -11
  636. package/bpk-component-icon/sm/virus.js +7 -11
  637. package/bpk-component-icon/sm/wallet.js +7 -11
  638. package/bpk-component-icon/sm/weather--clear.js +7 -11
  639. package/bpk-component-icon/sm/weather--cloudy.js +8 -12
  640. package/bpk-component-icon/sm/weather--fog.js +7 -11
  641. package/bpk-component-icon/sm/weather--partly-cloudy.js +7 -11
  642. package/bpk-component-icon/sm/weather--rain.js +8 -12
  643. package/bpk-component-icon/sm/weather--snow.js +7 -11
  644. package/bpk-component-icon/sm/weather--thunderstorm.js +9 -13
  645. package/bpk-component-icon/sm/weather--tornado.js +7 -11
  646. package/bpk-component-icon/sm/weather--wind.js +8 -12
  647. package/bpk-component-icon/sm/weather.js +7 -11
  648. package/bpk-component-icon/sm/wifi.js +7 -11
  649. package/bpk-component-icon/sm/window--reduce.js +8 -12
  650. package/bpk-component-icon/sm/window.js +7 -11
  651. package/bpk-component-icon/sm/world--amer.js +7 -11
  652. package/bpk-component-icon/sm/world--apac.js +7 -11
  653. package/bpk-component-icon/sm/world--emea.js +7 -11
  654. package/bpk-component-icon/src/classNameModifierHOCFactory.d.ts +6 -29
  655. package/bpk-component-icon/src/withAlignment.d.ts +3 -26
  656. package/bpk-component-icon/src/withDescription.d.ts +1 -23
  657. package/bpk-component-icon/src/withRtlSupport.d.ts +7 -27
  658. package/bpk-component-image/index.d.ts +3 -21
  659. package/bpk-component-image/src/BpkBackgroundImage.d.ts +2 -20
  660. package/bpk-component-image/src/BpkBackgroundImage.js +0 -4
  661. package/bpk-component-image/src/BpkImage.d.ts +0 -18
  662. package/bpk-component-image/src/BpkImage.js +0 -4
  663. package/bpk-component-image/src/BpkImageBorderRadiusStyles.d.ts +0 -18
  664. package/bpk-component-image/src/withLazyLoading.d.ts +0 -18
  665. package/bpk-component-image/src/withLoadingBehavior.d.ts +0 -18
  666. package/bpk-component-info-banner/index.d.ts +1 -26
  667. package/bpk-component-info-banner/src/AnimateAndFade.d.ts +23 -52
  668. package/bpk-component-info-banner/src/AnimateAndFade.js +0 -2
  669. package/bpk-component-info-banner/src/BpkInfoBanner.d.ts +1 -26
  670. package/bpk-component-info-banner/src/BpkInfoBannerDismissable.d.ts +3 -25
  671. package/bpk-component-info-banner/src/BpkInfoBannerExpandable.d.ts +7 -33
  672. package/bpk-component-info-banner/src/BpkInfoBannerInner.d.ts +13 -52
  673. package/bpk-component-info-banner/src/BpkInfoBannerInner.js +0 -5
  674. package/bpk-component-info-banner/src/common-types.d.ts +20 -39
  675. package/bpk-component-info-banner/src/withBannerAlertState.d.ts +86 -159
  676. package/bpk-component-input/index.d.ts +1 -19
  677. package/bpk-component-input/src/BpkInput.d.ts +0 -18
  678. package/bpk-component-input/src/BpkInput.js +14 -8
  679. package/bpk-component-input/src/BpkInput.module.css +1 -1
  680. package/bpk-component-input/src/common-types.d.ts +0 -18
  681. package/bpk-component-input/src/themeAttributes.d.ts +2 -0
  682. package/bpk-component-input/src/withOpenEvents.d.ts +2 -20
  683. package/bpk-component-input/src/withOpenEvents.js +7 -15
  684. package/bpk-component-list/src/BpkList.js +3 -6
  685. package/bpk-component-loading-button/src/BpkLoadingButton.d.ts +60 -0
  686. package/bpk-component-loading-button/src/BpkLoadingButton.js +49 -21
  687. package/bpk-component-loading-button/src/BpkLoadingButton.module.css +1 -1
  688. package/bpk-component-map/src/BpkBasicMapMarker.d.ts +12 -25
  689. package/bpk-component-map/src/BpkBasicMapMarker.js +11 -11
  690. package/bpk-component-map/src/BpkMap.js +2 -1
  691. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.d.ts +0 -18
  692. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -12
  693. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +1 -1
  694. package/bpk-component-modal/index.d.ts +4 -21
  695. package/bpk-component-modal/src/BpkModal.d.ts +2 -20
  696. package/bpk-component-modal/src/BpkModal.js +1 -4
  697. package/bpk-component-modal/src/BpkModalInner.d.ts +6 -20
  698. package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +14 -34
  699. package/bpk-component-modal/src/themeAttributes.d.ts +2 -0
  700. package/bpk-component-navigation-bar/index.d.ts +7 -0
  701. package/bpk-component-navigation-bar/src/BpkNavigationBar.d.ts +21 -0
  702. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +8 -2
  703. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
  704. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.d.ts +12 -0
  705. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +7 -10
  706. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.d.ts +13 -0
  707. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +8 -11
  708. package/bpk-component-navigation-bar/src/themeAttributes.d.ts +2 -0
  709. package/bpk-component-nudger/index.d.ts +1 -19
  710. package/bpk-component-nudger/src/BpkConfigurableNudger.d.ts +0 -18
  711. package/bpk-component-nudger/src/BpkConfigurableNudger.js +4 -26
  712. package/bpk-component-nudger/src/BpkNudger.d.ts +0 -18
  713. package/bpk-component-nudger/src/BpkNudger.js +9 -13
  714. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  715. package/bpk-component-nudger/src/common-types.d.ts +0 -18
  716. package/bpk-component-nudger/src/themeAttributes.d.ts +2 -0
  717. package/bpk-component-nudger/src/themeAttributes.js +0 -1
  718. package/bpk-component-overlay/index.d.ts +1 -23
  719. package/bpk-component-overlay/src/BpkOverlay.d.ts +0 -18
  720. package/bpk-component-pagination/src/BpkPaginationNudger.js +14 -25
  721. package/bpk-component-pagination/src/BpkPaginationNudger.module.css +1 -1
  722. package/bpk-component-phone-input/src/BpkPhoneInput.js +12 -14
  723. package/bpk-component-popover/index.d.ts +5 -0
  724. package/bpk-component-popover/src/BpkPopover.d.ts +26 -0
  725. package/bpk-component-popover/src/BpkPopover.js +140 -74
  726. package/bpk-component-popover/src/BpkPopover.module.css +1 -1
  727. package/bpk-component-popover/src/constants.d.ts +5 -0
  728. package/bpk-component-popover/src/constants.js +3 -1
  729. package/bpk-component-popover/src/themeAttributes.d.ts +2 -0
  730. package/bpk-component-price/src/BpkPrice.js +24 -28
  731. package/bpk-component-price/src/BpkPrice.module.css +1 -1
  732. package/bpk-component-rtl-toggle/index.d.ts +0 -19
  733. package/bpk-component-rtl-toggle/src/BpkRtlToggle.d.ts +8 -34
  734. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +1 -8
  735. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.d.ts +53 -146
  736. package/bpk-component-rtl-toggle/src/utils.d.ts +3 -21
  737. package/bpk-component-scrollable-calendar/index.d.ts +0 -18
  738. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.d.ts +10 -478
  739. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.d.ts +0 -18
  740. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.d.ts +0 -18
  741. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +6 -7
  742. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.css +1 -1
  743. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.d.ts +3 -18
  744. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +0 -4
  745. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.css +1 -1
  746. package/bpk-component-scrollable-calendar/src/utils.d.ts +0 -18
  747. package/bpk-component-section-header/index.d.ts +0 -19
  748. package/bpk-component-section-header/src/BpkSectionHeader.d.ts +7 -25
  749. package/bpk-component-section-header/src/BpkSectionHeader.js +5 -10
  750. package/bpk-component-section-header/src/BpkSectionHeader.module.css +1 -1
  751. package/bpk-component-section-list/src/BpkSectionListItem.js +6 -10
  752. package/bpk-component-section-list/src/BpkSectionListItem.module.css +1 -1
  753. package/bpk-component-skeleton/index.d.ts +3 -0
  754. package/{bpk-component-datepicker/src/BpkDatepicker.module.css → bpk-component-skeleton/index.js} +8 -5
  755. package/bpk-component-skeleton/src/BpkBaseSkeleton.d.d.ts +10 -0
  756. package/bpk-component-skeleton/src/BpkBaseSkeleton.d.ts +8 -0
  757. package/{bpk-component-input/src/BpkClearButton.module.css → bpk-component-skeleton/src/BpkBaseSkeleton.js} +17 -5
  758. package/bpk-component-skeleton/src/BpkBaseSkeleton.module.css +18 -0
  759. package/bpk-component-skeleton/src/BpkSkeleton.d.d.ts +4 -0
  760. package/bpk-component-skeleton/src/BpkSkeleton.d.ts +4 -0
  761. package/bpk-component-skeleton/src/BpkSkeleton.js +38 -0
  762. package/bpk-component-skeleton/src/BpkSkeleton.module.css +18 -0
  763. package/bpk-component-skeleton/src/common-types.d.d.ts +37 -0
  764. package/bpk-component-skeleton/src/common-types.d.ts +37 -0
  765. package/{bpk-component-input/src/BpkClearButton.d.ts → bpk-component-skeleton/src/common-types.js} +15 -6
  766. package/bpk-component-slider/index.d.ts +4 -0
  767. package/bpk-component-slider/src/BpkSlider.d.ts +15 -0
  768. package/bpk-component-slider/src/BpkSlider.js +48 -37
  769. package/bpk-component-slider/src/BpkSlider.module.css +1 -1
  770. package/bpk-component-slider/src/themeAttributes.d.ts +2 -0
  771. package/bpk-component-spinner/index.d.ts +6 -0
  772. package/bpk-component-spinner/index.js +3 -1
  773. package/bpk-component-spinner/src/BpkExtraLargeSpinner.d.ts +19 -0
  774. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +8 -9
  775. package/bpk-component-spinner/src/BpkLargeSpinner.d.ts +22 -0
  776. package/bpk-component-spinner/src/BpkLargeSpinner.js +8 -9
  777. package/bpk-component-spinner/src/BpkSpinner.d.ts +22 -0
  778. package/bpk-component-spinner/src/BpkSpinner.js +8 -9
  779. package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
  780. package/bpk-component-spinner/src/spinnerTypes.d.ts +6 -0
  781. package/bpk-component-spinner/src/themeAttributes.d.ts +2 -0
  782. package/bpk-component-star-rating/src/BpkInteractiveStar.js +6 -7
  783. package/bpk-component-star-rating/src/BpkStar.js +14 -21
  784. package/bpk-component-star-rating/src/BpkStar.module.css +1 -1
  785. package/bpk-component-swap-button/index.d.ts +0 -18
  786. package/bpk-component-swap-button/src/BpkSwapButton.d.ts +2 -23
  787. package/bpk-component-swap-button/src/BpkSwapButton.js +0 -2
  788. package/bpk-component-text/index.d.ts +0 -18
  789. package/bpk-component-text/src/BpkText.d.ts +2 -20
  790. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +5 -6
  791. package/bpk-component-tooltip/index.d.ts +1 -19
  792. package/bpk-component-tooltip/src/BpkTooltip.d.ts +1 -19
  793. package/bpk-component-tooltip/src/BpkTooltipPortal.d.ts +1 -19
  794. package/bpk-component-tooltip/src/constants.d.ts +0 -18
  795. package/bpk-mixins/_forms.scss +16 -0
  796. package/bpk-react-utils/index.d.ts +4 -55
  797. package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.d.ts +23 -44
  798. package/bpk-react-utils/src/Portal.d.ts +1 -19
  799. package/bpk-react-utils/src/TransitionInitialMount.d.ts +0 -18
  800. package/bpk-react-utils/src/cssModules.d.ts +0 -18
  801. package/bpk-react-utils/src/deviceDetection.d.ts +0 -18
  802. package/bpk-react-utils/src/isRTL.d.ts +0 -18
  803. package/bpk-react-utils/src/withDefaultProps.d.ts +0 -18
  804. package/bpk-react-utils/src/wrapDisplayName.d.ts +0 -18
  805. package/bpk-scrim-utils/index.d.ts +0 -18
  806. package/bpk-scrim-utils/src/BpkScrim.d.ts +0 -18
  807. package/bpk-scrim-utils/src/scroll-utils.d.ts +0 -18
  808. package/bpk-scrim-utils/src/withScrim.d.ts +13 -19
  809. package/bpk-scrim-utils/src/withScrimmedPortal.d.ts +2 -20
  810. package/package.json +4 -4
  811. package/unstable__bpk-mixins/_forms.scss +16 -0
  812. package/bpk-component-calendar/test-utils.d.ts +0 -56
  813. package/bpk-component-flare/src/__generated__/corner-radius.d.ts +0 -6
  814. package/bpk-component-flare/src/__generated__/pointer.d.ts +0 -6
  815. package/bpk-component-input/src/BpkClearButton.js +0 -53
  816. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +0 -18
  817. package/bpk-component-popover/src/PopperUtils.js +0 -224
  818. package/bpk-component-scrollable-calendar/test-utils.d.ts +0 -52
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-scrollable-calendar-grid{width:100%;border-collapse:separate;border-spacing:0}.bpk-scrollable-calendar-grid__title{margin-top:1.5rem}
18
+ .bpk-scrollable-calendar-grid{width:100%;border-collapse:separate;border-spacing:0}.bpk-scrollable-calendar-grid__title{display:block;margin-top:1.5rem}
@@ -1,21 +1,3 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
1
  import type { ElementType } from 'react';
20
2
  import type { BpkCalendarGridProps, SelectionConfiguration } from '../../bpk-component-calendar';
21
3
  type Props = Partial<BpkCalendarGridProps> & {
@@ -29,6 +11,9 @@ type Props = Partial<BpkCalendarGridProps> & {
29
11
  focusedDate?: Date | null;
30
12
  selectionConfiguration?: SelectionConfiguration;
31
13
  className?: string | null;
14
+ /**
15
+ * Sets the height of month rows in 'rem' units. If not specified, the default value of `2.75rem` will be used.
16
+ */
32
17
  customRowHeight?: number;
33
18
  };
34
19
  declare const BpkScrollableCalendarGridList: (props: Props) => JSX.Element;
@@ -83,10 +83,6 @@ const BpkScrollableCalendarGridList = props => {
83
83
  focusedDate: focusedDate,
84
84
  preventKeyboardFocus: rest.preventKeyboardFocus,
85
85
  "aria-hidden": index !== 1
86
- // TODO: className to be removed
87
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
88
- ,
89
- className: getClassName('bpk-scrollable-calendar-grid-list__item')
90
86
  })
91
87
  });
92
88
  const calculateOffsetInPixels = numberOfMonths => {
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-scrollable-calendar-grid-list{position:relative;width:100%;height:100%;min-height:26.25rem;overflow-x:hidden;box-sizing:border-box;-ms-overflow-style:-ms-autohiding-scrollbar}.bpk-scrollable-calendar-grid-list__item{display:inline-table}
18
+ .bpk-scrollable-calendar-grid-list{position:relative;width:100%;height:100%;min-height:26.25rem;overflow-x:hidden;box-sizing:border-box;-ms-overflow-style:-ms-autohiding-scrollbar}
@@ -1,21 +1,3 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
1
  declare const getMonthsArray: (startDate: Date, count: number) => Date[];
20
2
  declare const getMonthItemHeights: (months: Date[], weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6, columnCount: number, rowHeight: number, baseMonthItemHeight: number) => number[];
21
3
  export { getMonthsArray, getMonthItemHeights };
@@ -1,22 +1,3 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
1
  import BpkSectionHeader, { SECTION_TYPES } from './src/BpkSectionHeader';
20
-
21
2
  export default BpkSectionHeader;
22
3
  export { SECTION_TYPES };
@@ -1,32 +1,14 @@
1
- /*
2
- * Backpack - Skyscanner's Design System
3
- *
4
- * Copyright 2016 Skyscanner Ltd
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
1
  import type { ReactNode } from 'react';
20
2
  export declare const SECTION_TYPES: {
21
- default: 'default',
22
- onDark: 'onDark',
3
+ readonly default: "default";
4
+ readonly onDark: "on-dark";
23
5
  };
24
6
  export type SectionType = (typeof SECTION_TYPES)[keyof typeof SECTION_TYPES];
25
7
  type Props = {
26
- title: string;
27
- description?: string;
28
- button?: ReactNode;
29
- type?: SectionType;
8
+ title: string;
9
+ description?: string;
10
+ button?: ReactNode;
11
+ type?: SectionType;
30
12
  };
31
- declare const BpkSectionHeader: ({ title, description, button, type }: Props) => JSX.Element;
13
+ declare const BpkSectionHeader: ({ button, description, title, type, }: Props) => JSX.Element;
32
14
  export default BpkSectionHeader;
@@ -34,19 +34,14 @@ const BpkSectionHeader = ({
34
34
  className: getClassName('bpk-section-header'),
35
35
  children: [/*#__PURE__*/_jsxs("div", {
36
36
  className: getClassName('bpk-section-header__title-description', `bpk-section-header__title-description--${type}`),
37
- children: [/*#__PURE__*/_jsx(BpkText, {
38
- tagName: "h2"
39
- // TODO: className to be removed
40
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
41
- ,
37
+ children: [/*#__PURE__*/_jsx("h2", {
42
38
  className: getClassName('bpk-section-header__title'),
43
39
  children: title
44
- }), description && /*#__PURE__*/_jsx(BpkText
45
- // TODO: className to be removed
46
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
47
- , {
40
+ }), description && /*#__PURE__*/_jsx("span", {
48
41
  className: getClassName('bpk-section-header__description'),
49
- children: description
42
+ children: /*#__PURE__*/_jsx(BpkText, {
43
+ children: description
44
+ })
50
45
  })]
51
46
  }), button]
52
47
  });
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-section-header{display:flex;justify-content:space-between;align-items:flex-start;background-color:rgba(0,0,0,0)}.bpk-section-header__title-description{display:flex;flex-direction:column}.bpk-section-header__title-description--default{color:#161616}.bpk-section-header__title-description--on-dark{color:#fff}.bpk-section-header__title{font-size:2rem;line-height:2.5rem;font-weight:700}@media(max-width: 32rem){.bpk-section-header__title{font-size:1.5rem;line-height:1.75rem;font-weight:700}}.bpk-section-header__description{padding-top:.25rem}
18
+ .bpk-section-header{display:flex;justify-content:space-between;align-items:flex-start;background-color:rgba(0,0,0,0)}.bpk-section-header__title-description{display:flex;flex-direction:column}.bpk-section-header__title-description--default{color:#161616}.bpk-section-header__title-description--on-dark{color:#fff}.bpk-section-header__title{margin:0;font-size:2rem;line-height:2.5rem;font-weight:700}@media(max-width: 32rem){.bpk-section-header__title{font-size:1.5rem;line-height:1.75rem;font-weight:700}}.bpk-section-header__description{padding-top:.25rem}
@@ -43,11 +43,9 @@ const BpkSectionListItem = props => {
43
43
  onClick: onClick,
44
44
  className: classNames.join(' '),
45
45
  ...rest,
46
- children: [children, /*#__PURE__*/_jsx(BpkLargeChevronRightIconWithRtlSupport
47
- // TODO: className to be removed
48
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
49
- , {
50
- className: getClassName('bpk-section-list-item__chevron')
46
+ children: [children, /*#__PURE__*/_jsx("span", {
47
+ className: getClassName('bpk-section-list-item__chevron'),
48
+ children: /*#__PURE__*/_jsx(BpkLargeChevronRightIconWithRtlSupport, {})
51
49
  })]
52
50
  })
53
51
  );
@@ -61,11 +59,9 @@ const BpkSectionListItem = props => {
61
59
  onClick: onClick,
62
60
  className: classNames.join(' '),
63
61
  ...rest,
64
- children: [children, /*#__PURE__*/_jsx(BpkLargeChevronRightIconWithRtlSupport
65
- // TODO: className to be removed
66
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
67
- , {
68
- className: getClassName('bpk-section-list-item__chevron')
62
+ children: [children, /*#__PURE__*/_jsx("span", {
63
+ className: getClassName('bpk-section-list-item__chevron'),
64
+ children: /*#__PURE__*/_jsx(BpkLargeChevronRightIconWithRtlSupport, {})
69
65
  })]
70
66
  })
71
67
  );
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-section-list-item{display:flex;width:100%;min-height:4rem;padding:.5rem 1rem;justify-content:space-between;align-items:center;border:none;background-color:#fff;color:#161616;text-decoration:none;box-shadow:0 -1px 0 0 #c1c7cf inset}.bpk-section-list-item--interactive{cursor:pointer}.bpk-section-list-item__chevron{fill:#626971}.bpk-section-list-item:hover .bpk-section-list-item__chevron{fill:#161616}.bpk-section-list-item:active .bpk-section-list-item__chevron{fill:#161616}
18
+ .bpk-section-list-item{display:flex;width:100%;min-height:4rem;padding:.5rem 1rem;justify-content:space-between;align-items:center;border:none;background-color:#fff;color:#161616;text-decoration:none;box-shadow:0 -1px 0 0 #c1c7cf inset}.bpk-section-list-item--interactive{cursor:pointer}.bpk-section-list-item__chevron{display:contents;fill:#626971}.bpk-section-list-item:hover .bpk-section-list-item__chevron{fill:#161616}.bpk-section-list-item:active .bpk-section-list-item__chevron{fill:#161616}
@@ -0,0 +1,3 @@
1
+ import BpkSkeleton from "./src/BpkSkeleton";
2
+ export { SIZE_TYPES, SKELETON_TYPES, IMAGE_SKELETON_STYLE } from './src/common-types';
3
+ export default BpkSkeleton;
@@ -1,18 +1,21 @@
1
1
  /*
2
2
  * Backpack - Skyscanner's Design System
3
- *
3
+ *
4
4
  * Copyright 2016 Skyscanner Ltd
5
- *
5
+ *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
8
8
  * You may obtain a copy of the License at
9
- *
9
+ *
10
10
  * http://www.apache.org/licenses/LICENSE-2.0
11
- *
11
+ *
12
12
  * Unless required by applicable law or agreed to in writing, software
13
13
  * distributed under the License is distributed on an "AS IS" BASIS,
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-datepicker__calendar{margin:0 auto}.bpk-datepicker__input{display:inline-block;width:100%}
18
+
19
+ import BpkSkeleton from "./src/BpkSkeleton";
20
+ export { SIZE_TYPES, SKELETON_TYPES, IMAGE_SKELETON_STYLE } from "./src/common-types";
21
+ export default BpkSkeleton;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ skeletonStyle: string;
4
+ styleObj?: {
5
+ width: string;
6
+ height: string;
7
+ };
8
+ };
9
+ declare const BpkBaseSkeleton: ({ skeletonStyle, styleObj }: Props) => JSX.Element;
10
+ export default BpkBaseSkeleton;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { CUSTOM_SIZE_TYPE } from './common-types';
3
+ type Props = {
4
+ skeletonStyle: string;
5
+ styleObj?: CUSTOM_SIZE_TYPE;
6
+ };
7
+ declare const BpkBaseSkeleton: ({ skeletonStyle, styleObj, }: Props) => JSX.Element;
8
+ export default BpkBaseSkeleton;
@@ -1,18 +1,30 @@
1
1
  /*
2
2
  * Backpack - Skyscanner's Design System
3
- *
3
+ *
4
4
  * Copyright 2016 Skyscanner Ltd
5
- *
5
+ *
6
6
  * Licensed under the Apache License, Version 2.0 (the "License");
7
7
  * you may not use this file except in compliance with the License.
8
8
  * You may obtain a copy of the License at
9
- *
9
+ *
10
10
  * http://www.apache.org/licenses/LICENSE-2.0
11
- *
11
+ *
12
12
  * Unless required by applicable law or agreed to in writing, software
13
13
  * distributed under the License is distributed on an "AS IS" BASIS,
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-clear-button{padding:0;border:0;background-color:rgba(0,0,0,0);color:#626971;cursor:pointer;appearance:none}.bpk-no-touch-support .bpk-clear-button:hover:not(:active):not(:disabled){color:#161616}:global(.bpk-no-touch-support) .bpk-clear-button:hover:not(:active):not(:disabled){color:#161616}.bpk-clear-button:active{color:#161616}.bpk-clear-button__icon{fill:currentcolor}
18
+
19
+ import { cssModules } from "../../bpk-react-utils";
20
+ import STYLES from "./BpkBaseSkeleton.module.css";
21
+ import { jsx as _jsx } from "react/jsx-runtime";
22
+ const getClassName = cssModules(STYLES);
23
+ const BpkBaseSkeleton = ({
24
+ skeletonStyle,
25
+ styleObj = undefined
26
+ }) => /*#__PURE__*/_jsx("div", {
27
+ className: getClassName('bpk-skeleton', skeletonStyle),
28
+ style: styleObj
29
+ });
30
+ export default BpkBaseSkeleton;
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ .bpk-skeleton{width:6rem;height:6rem;background:#e0e4e9;background-image:linear-gradient(to right, rgba(255, 255, 255, 0) 7.08%, rgba(255, 255, 255, 0.6) 49.22%, rgba(255, 255, 255, 0) 100%);background-repeat:no-repeat;animation:shimmer-animation 1600ms infinite linear;animation-direction:normal}html[dir=rtl] .bpk-skeleton{animation-direction:reverse}@keyframes shimmer-animation{0%{background-position:-24rem 0}100%{background-position:24rem 0}}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { ComponentProps } from './common-types';
3
+ declare const BpkSkeleton: (props: ComponentProps) => JSX.Element;
4
+ export default BpkSkeleton;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { ComponentProps } from './common-types';
3
+ declare const BpkSkeleton: (props: ComponentProps) => JSX.Element;
4
+ export default BpkSkeleton;
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ import { cssModules } from "../../bpk-react-utils";
20
+ import BpkBaseSkeleton from "./BpkBaseSkeleton";
21
+ import { SKELETON_TYPES, IMAGE_SKELETON_STYLE, SIZE_TYPES } from "./common-types";
22
+ import STYLES from "./BpkSkeleton.module.css";
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ const getClassName = cssModules(STYLES);
25
+ const BpkSkeleton = props => {
26
+ const {
27
+ size = SIZE_TYPES.default,
28
+ type
29
+ } = props;
30
+ const isImageRounded = type === SKELETON_TYPES.image && props.style === IMAGE_SKELETON_STYLE.rounded;
31
+ const classNames = getClassName(`bpk-skeleton__${type}`, typeof size !== 'object' && `bpk-skeleton__${type}--${size}`, isImageRounded && 'bpk-skeleton__image--rounded');
32
+ const styleObj = typeof size === 'object' ? size : undefined;
33
+ return /*#__PURE__*/_jsx(BpkBaseSkeleton, {
34
+ skeletonStyle: classNames,
35
+ styleObj: styleObj
36
+ });
37
+ };
38
+ export default BpkSkeleton;
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ .bpk-skeleton__image{width:6rem;height:6rem}.bpk-skeleton__image--rounded{border-radius:.5rem}.bpk-skeleton__headline{width:5rem;border-radius:.25rem}.bpk-skeleton__headline--small{height:.5rem;border-radius:.125rem}.bpk-skeleton__headline--default{height:1rem;border-radius:.25rem}.bpk-skeleton__headline--large{height:2rem;border-radius:.25rem}.bpk-skeleton__circle{border-radius:50%}.bpk-skeleton__circle--small{width:2rem;height:2rem}.bpk-skeleton__circle--default{width:3rem;height:3rem}.bpk-skeleton__bodyText{height:.5rem;border-radius:.125rem}.bpk-skeleton__bodyText--small{width:7.125rem}.bpk-skeleton__bodyText--default{width:10.6875rem}.bpk-skeleton__bodyText--large{width:12.5rem}
@@ -0,0 +1,37 @@
1
+ export type CUSTOM_SIZE_TYPE = {
2
+ width: string;
3
+ height: string;
4
+ };
5
+ export declare const SIZE_TYPES: {
6
+ small: 'small';
7
+ default: 'default';
8
+ large: 'large';
9
+ };
10
+ export type SizeType = (typeof SIZE_TYPES)[keyof typeof SIZE_TYPES] | CUSTOM_SIZE_TYPE;
11
+ export declare const SKELETON_TYPES: {
12
+ image: 'image';
13
+ bodyText: 'bodyText';
14
+ circle: 'circle';
15
+ headline: 'headline';
16
+ };
17
+ export type SkeletonType = (typeof SKELETON_TYPES)[keyof typeof SKELETON_TYPES];
18
+ export declare const IMAGE_SKELETON_STYLE: {
19
+ rounded: 'rounded';
20
+ default: 'default';
21
+ };
22
+ export type ImageSkeletonStyle = (typeof IMAGE_SKELETON_STYLE)[keyof typeof IMAGE_SKELETON_STYLE];
23
+ type SizeMap = {
24
+ [SKELETON_TYPES.image]: (typeof SIZE_TYPES)['default'];
25
+ [SKELETON_TYPES.bodyText]: (typeof SIZE_TYPES)[keyof typeof SIZE_TYPES];
26
+ [SKELETON_TYPES.circle]: Exclude<(typeof SIZE_TYPES)[keyof typeof SIZE_TYPES], 'large'>;
27
+ [SKELETON_TYPES.headline]: (typeof SIZE_TYPES)[keyof typeof SIZE_TYPES];
28
+ };
29
+ export type ComponentProps = {
30
+ type: Extract<SkeletonType, 'image'>;
31
+ size?: SizeMap['image'] | CUSTOM_SIZE_TYPE;
32
+ style?: ImageSkeletonStyle;
33
+ } | {
34
+ type: Exclude<keyof SizeMap, 'image'>;
35
+ size?: SizeMap[keyof SizeMap] | CUSTOM_SIZE_TYPE;
36
+ };
37
+ export {};
@@ -0,0 +1,37 @@
1
+ export type CUSTOM_SIZE_TYPE = {
2
+ width: string;
3
+ height: string;
4
+ };
5
+ export declare const SIZE_TYPES: {
6
+ readonly small: "small";
7
+ readonly default: "default";
8
+ readonly large: "large";
9
+ };
10
+ export type SizeType = (typeof SIZE_TYPES)[keyof typeof SIZE_TYPES] | CUSTOM_SIZE_TYPE;
11
+ export declare const SKELETON_TYPES: {
12
+ readonly image: "image";
13
+ readonly bodyText: "bodyText";
14
+ readonly circle: "circle";
15
+ readonly headline: "headline";
16
+ };
17
+ export type SkeletonType = (typeof SKELETON_TYPES)[keyof typeof SKELETON_TYPES];
18
+ export declare const IMAGE_SKELETON_STYLE: {
19
+ readonly rounded: "rounded";
20
+ readonly default: "default";
21
+ };
22
+ export type ImageSkeletonStyle = (typeof IMAGE_SKELETON_STYLE)[keyof typeof IMAGE_SKELETON_STYLE];
23
+ type SizeMap = {
24
+ [SKELETON_TYPES.image]: (typeof SIZE_TYPES)['default'];
25
+ [SKELETON_TYPES.bodyText]: (typeof SIZE_TYPES)[keyof typeof SIZE_TYPES];
26
+ [SKELETON_TYPES.circle]: Exclude<(typeof SIZE_TYPES)[keyof typeof SIZE_TYPES], 'large'>;
27
+ [SKELETON_TYPES.headline]: (typeof SIZE_TYPES)[keyof typeof SIZE_TYPES];
28
+ };
29
+ export type ComponentProps = {
30
+ type: Extract<SkeletonType, 'image'>;
31
+ size?: SizeMap['image'] | CUSTOM_SIZE_TYPE;
32
+ style?: ImageSkeletonStyle;
33
+ } | {
34
+ type: Exclude<keyof SizeMap, 'image'>;
35
+ size?: SizeMap[keyof SizeMap] | CUSTOM_SIZE_TYPE;
36
+ };
37
+ export {};
@@ -16,9 +16,18 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import type { ComponentProps } from 'react';
20
- interface Props extends ComponentProps<'button'> {
21
- label: string;
22
- }
23
- declare const BpkClearButton: ({ className, label, onClick, ...rest }: Props) => JSX.Element;
24
- export default BpkClearButton;
19
+ export const SIZE_TYPES = {
20
+ small: 'small',
21
+ default: 'default',
22
+ large: 'large'
23
+ };
24
+ export const SKELETON_TYPES = {
25
+ image: 'image',
26
+ bodyText: 'bodyText',
27
+ circle: 'circle',
28
+ headline: 'headline'
29
+ };
30
+ export const IMAGE_SKELETON_STYLE = {
31
+ rounded: 'rounded',
32
+ default: 'default'
33
+ };
@@ -0,0 +1,4 @@
1
+ import BpkSlider from './src/BpkSlider';
2
+ import themeAttributes from './src/themeAttributes';
3
+ export default BpkSlider;
4
+ export { themeAttributes };
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export type Props = {
3
+ max: number;
4
+ min: number;
5
+ minDistance?: number;
6
+ step?: number;
7
+ onChange: (value: number[] | number) => void;
8
+ onAfterChange?: (value: number[] | number) => void;
9
+ value: number[] | number;
10
+ ariaLabel: string[];
11
+ ariaValuetext?: string[];
12
+ [rest: string]: any;
13
+ };
14
+ declare const BpkSlider: ({ ariaLabel, ariaValuetext, max, min, minDistance, onAfterChange, onChange, step, value, ...rest }: Props) => JSX.Element;
15
+ export default BpkSlider;
@@ -16,48 +16,59 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import PropTypes from 'prop-types';
20
-
21
- // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
- import Slider from 'react-slider';
19
+ import * as Slider from '@radix-ui/react-slider';
23
20
  import { cssModules, isRTL } from "../../bpk-react-utils";
24
21
  import STYLES from "./BpkSlider.module.css";
25
- import { jsx as _jsx } from "react/jsx-runtime";
22
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
23
  const getClassName = cssModules(STYLES);
27
- const BpkSlider = props => {
28
- const {
29
- className,
30
- ...rest
31
- } = props;
24
+ const BpkSlider = ({
25
+ ariaLabel,
26
+ ariaValuetext,
27
+ max,
28
+ min,
29
+ minDistance,
30
+ onAfterChange,
31
+ onChange,
32
+ step,
33
+ value,
34
+ ...rest
35
+ }) => {
32
36
  const invert = isRTL();
33
- const classNames = [getClassName('bpk-slider')];
34
- const thumbClassNames = [getClassName('bpk-slider__handle')];
35
- const trackClassNames = [getClassName('bpk-slider__bar')];
36
- const isRange = (rest.value || rest.defaultValue || []).length > 1;
37
- if (isRange) {
38
- classNames.push(getClassName('bpk-slider--range'));
39
- }
40
- if (className) {
41
- classNames.push(getClassName(className));
42
- }
43
- return /*#__PURE__*/_jsx(Slider, {
37
+ const currentValue = Array.isArray(value) ? value : [value];
38
+ const processSliderValues = (sliderValues, callback) => {
39
+ const val = sliderValues.length === 1 ? sliderValues[0] : sliderValues;
40
+ if (callback) {
41
+ callback(val);
42
+ }
43
+ };
44
+ const handleOnChange = sliderValues => {
45
+ processSliderValues(sliderValues, onChange);
46
+ };
47
+ const handleOnAfterChange = sliderValues => {
48
+ processSliderValues(sliderValues, onAfterChange);
49
+ };
50
+ return /*#__PURE__*/_jsxs(Slider.Root, {
51
+ className: getClassName('bpk-slider'),
52
+ defaultValue: currentValue,
53
+ min: min,
54
+ max: max,
55
+ step: step || 1,
56
+ onValueChange: handleOnChange,
57
+ onValueCommit: handleOnAfterChange,
58
+ inverted: invert,
59
+ minStepsBetweenThumbs: minDistance,
44
60
  ...rest,
45
- withTracks: true,
46
- snapDragDisabled: false,
47
- invert: invert
48
- // TODO: className to be removed
49
- // eslint-disable-next-line @skyscanner/rules/forbid-component-props
50
- ,
51
- className: classNames.join(' '),
52
- thumbClassName: thumbClassNames.join(' '),
53
- thumbActiveClassName: getClassName('bpk-slider__handle--active'),
54
- trackClassName: trackClassNames.join(' ')
61
+ children: [/*#__PURE__*/_jsx(Slider.Track, {
62
+ className: getClassName('bpk-slider__track'),
63
+ children: /*#__PURE__*/_jsx(Slider.Range, {
64
+ className: getClassName('bpk-slider__range')
65
+ })
66
+ }), currentValue.map((val, index) => /*#__PURE__*/_jsx(Slider.Thumb, {
67
+ "aria-label": ariaLabel[index],
68
+ "aria-valuetext": ariaValuetext ? ariaValuetext[index] : val.toString(),
69
+ className: getClassName('bpk-slider__thumb'),
70
+ "aria-valuenow": currentValue[index]
71
+ }, ariaLabel[index]))]
55
72
  });
56
73
  };
57
- BpkSlider.propTypes = {
58
- className: PropTypes.string
59
- };
60
- BpkSlider.defaultProps = {
61
- className: null
62
- };
63
74
  export default BpkSlider;
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-slider{height:1.25rem;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bpk-slider__handle{display:flex;width:1.25rem;height:1.25rem;justify-content:center;align-items:center;border-radius:50%;background-color:#0062e3;cursor:pointer;box-shadow:0px 1px 3px 0px rgba(37,32,31,.3)}.bpk-slider__handle::after{position:absolute;content:"";width:2.5rem;height:2.5rem;border-radius:50%}.bpk-slider__handle--active{transform:scale(1.2) translate3d(0, 0, 0);background-color:#154679}.bpk-slider__bar{top:calc(50% - 0.125rem);height:.25rem;border-radius:.5rem;background-color:#c1c7cf}.bpk-slider>div[class$="0"]{background-color:#0062e3;background-color:var(--bpk-slider-bar-color, rgb(0, 98, 227))}.bpk-slider--range>div[class$="0"]{background-color:#c1c7cf}.bpk-slider--range>div[class$="1"]{background-color:#0062e3;background-color:var(--bpk-slider-bar-color, rgb(0, 98, 227))}
18
+ .bpk-slider{position:relative;display:flex;height:1.25rem;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;user-select:none}.bpk-slider__track{position:relative;height:.25rem;flex-grow:1;background-color:#c1c7cf}.bpk-slider__range{position:absolute;height:100%;background-color:#0062e3}.bpk-slider__thumb{display:block;width:1.25rem;height:1.25rem;border-radius:50%;background-color:#0062e3;box-shadow:0px 1px 3px 0px rgba(37,32,31,.3)}.bpk-slider__thumb::after{position:absolute;content:"";width:2.5rem;height:2.5rem;border-radius:50%}.bpk-slider__thumb:active{transform:scale(1.2) translate3d(0, 0, 0);background-color:#154679}
@@ -0,0 +1,2 @@
1
+ declare const _default: string[];
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import BpkExtraLargeSpinner from './src/BpkExtraLargeSpinner';
2
+ import BpkLargeSpinner from './src/BpkLargeSpinner';
3
+ import BpkSpinner from './src/BpkSpinner';
4
+ import SPINNER_TYPES from './src/spinnerTypes';
5
+ import themeAttributes from './src/themeAttributes';
6
+ export { BpkSpinner, BpkLargeSpinner, BpkExtraLargeSpinner, SPINNER_TYPES, themeAttributes, };