@skyscanner/backpack-web 17.0.1 → 17.1.0-beta.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 (1168) hide show
  1. package/bpk-animate-height/index.js +10 -4
  2. package/bpk-animate-height/src/AnimateHeight.js +71 -92
  3. package/bpk-component-accordion/index.js +33 -30
  4. package/bpk-component-accordion/src/BpkAccordion.js +31 -45
  5. package/bpk-component-accordion/src/BpkAccordionItem.js +76 -113
  6. package/bpk-component-accordion/src/BpkAccordionItem.module.css +1 -1
  7. package/bpk-component-accordion/src/withAccordionItemState.js +52 -76
  8. package/bpk-component-accordion/src/withSingleItemAccordionState.js +48 -83
  9. package/bpk-component-aria-live/index.js +17 -9
  10. package/bpk-component-aria-live/src/BpkAriaLive.js +33 -56
  11. package/bpk-component-autosuggest/index.js +17 -8
  12. package/bpk-component-autosuggest/src/BpkAutosuggest.js +36 -55
  13. package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +1 -1
  14. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +50 -86
  15. package/bpk-component-badge/index.js +25 -9
  16. package/bpk-component-badge/src/BpkBadge.js +38 -54
  17. package/bpk-component-badge/src/BpkBadge.module.css +1 -1
  18. package/bpk-component-badge/src/themeAttributes.js +8 -6
  19. package/bpk-component-banner-alert/index.js +45 -17
  20. package/bpk-component-banner-alert/src/AnimateAndFade.js +105 -148
  21. package/bpk-component-banner-alert/src/BpkBannerAlert.js +15 -21
  22. package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +1 -1
  23. package/bpk-component-banner-alert/src/BpkBannerAlertDismissable.js +33 -51
  24. package/bpk-component-banner-alert/src/BpkBannerAlertExpandable.js +41 -57
  25. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +129 -205
  26. package/bpk-component-banner-alert/src/common-types.js +23 -42
  27. package/bpk-component-banner-alert/src/themeAttributes.js +8 -7
  28. package/bpk-component-banner-alert/src/withBannerAlertState.js +104 -160
  29. package/bpk-component-barchart/index.js +52 -21
  30. package/bpk-component-barchart/src/BpkBarchart.js +213 -304
  31. package/bpk-component-barchart/src/BpkBarchartBar.js +81 -131
  32. package/bpk-component-barchart/src/BpkBarchartBar.module.css +1 -1
  33. package/bpk-component-barchart/src/BpkBarchartBars.js +116 -146
  34. package/bpk-component-barchart/src/BpkBarchartDefs.js +30 -42
  35. package/bpk-component-barchart/src/BpkChartAxis.js +93 -149
  36. package/bpk-component-barchart/src/BpkChartAxis.module.css +1 -1
  37. package/bpk-component-barchart/src/BpkChartDataTable.js +36 -53
  38. package/bpk-component-barchart/src/BpkChartGridLines.js +65 -107
  39. package/bpk-component-barchart/src/BpkChartGridLines.module.css +1 -1
  40. package/bpk-component-barchart/src/BpkChartMargin.js +31 -48
  41. package/bpk-component-barchart/src/RTLtransforms.js +36 -47
  42. package/bpk-component-barchart/src/customPropTypes.js +15 -24
  43. package/bpk-component-barchart/src/orientation.js +10 -6
  44. package/bpk-component-barchart/src/themeAttributes.js +8 -9
  45. package/bpk-component-barchart/src/utils.js +14 -14
  46. package/bpk-component-blockquote/index.js +17 -6
  47. package/bpk-component-blockquote/src/BpkBlockquote.js +21 -24
  48. package/bpk-component-blockquote/src/BpkBlockquote.module.css +1 -1
  49. package/bpk-component-blockquote/src/themeAttributes.js +8 -2
  50. package/{bpk-component-barchart/src/BpkChartAxis.module.scss → bpk-component-boilerplate/index.js} +10 -20
  51. package/bpk-component-boilerplate/src/BpkBoilerplate.js +38 -0
  52. package/{bpk-component-button/src/BpkButtonOutline.module.scss → bpk-component-boilerplate/src/BpkBoilerplate.module.css} +6 -11
  53. package/bpk-component-breadcrumb/index.js +17 -14
  54. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +57 -86
  55. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +55 -80
  56. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +1 -1
  57. package/bpk-component-breakpoint/index.js +17 -7
  58. package/bpk-component-breakpoint/src/BpkBreakpoint.js +39 -42
  59. package/bpk-component-button/BpkButtonDestructive.js +12 -20
  60. package/bpk-component-button/BpkButtonFeatured.js +12 -20
  61. package/bpk-component-button/BpkButtonLink.js +12 -20
  62. package/bpk-component-button/BpkButtonLinkOnDark.js +12 -20
  63. package/bpk-component-button/BpkButtonOutline.js +12 -20
  64. package/bpk-component-button/BpkButtonPrimary.js +12 -20
  65. package/bpk-component-button/BpkButtonPrimaryOnDark.js +12 -20
  66. package/bpk-component-button/BpkButtonPrimaryOnLight.js +12 -20
  67. package/bpk-component-button/BpkButtonSecondary.js +12 -20
  68. package/bpk-component-button/BpkButtonSecondaryOnDark.js +12 -20
  69. package/bpk-component-button/index.js +130 -40
  70. package/bpk-component-button/src/BpkButton.js +56 -100
  71. package/bpk-component-button/src/BpkButtonBase.js +60 -88
  72. package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
  73. package/bpk-component-button/src/BpkButtonDestructive.js +36 -39
  74. package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
  75. package/bpk-component-button/src/BpkButtonFeatured.js +36 -39
  76. package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
  77. package/bpk-component-button/src/BpkButtonLink.js +38 -47
  78. package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
  79. package/bpk-component-button/src/BpkButtonLinkOnDark.js +38 -47
  80. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
  81. package/bpk-component-button/src/BpkButtonOutline.js +36 -39
  82. package/bpk-component-button/src/BpkButtonPrimary.js +19 -30
  83. package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +36 -39
  84. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
  85. package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +36 -39
  86. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
  87. package/bpk-component-button/src/BpkButtonSecondary.js +36 -39
  88. package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
  89. package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +36 -39
  90. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +18 -0
  91. package/bpk-component-button/src/common-types.js +22 -35
  92. package/bpk-component-button/src/commonButtonTests.js +72 -59
  93. package/bpk-component-button/src/themeAttributes.js +22 -74
  94. package/bpk-component-button/themeAttributes.js +53 -29
  95. package/bpk-component-calendar/index.js +106 -41
  96. package/bpk-component-calendar/src/BpkCalendarContainer.js +202 -292
  97. package/bpk-component-calendar/src/BpkCalendarDate.js +102 -136
  98. package/bpk-component-calendar/src/BpkCalendarDate.module.css +1 -1
  99. package/bpk-component-calendar/src/BpkCalendarGrid.js +110 -150
  100. package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
  101. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +58 -63
  102. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +1 -1
  103. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +87 -159
  104. package/bpk-component-calendar/src/BpkCalendarNav.js +129 -139
  105. package/bpk-component-calendar/src/BpkCalendarNav.module.css +1 -1
  106. package/bpk-component-calendar/src/Week.js +168 -283
  107. package/bpk-component-calendar/src/composeCalendar.js +89 -125
  108. package/bpk-component-calendar/src/custom-proptypes.js +37 -41
  109. package/bpk-component-calendar/src/date-utils.js +175 -96
  110. package/bpk-component-calendar/src/themeAttributes.js +8 -13
  111. package/bpk-component-calendar/src/utils.js +19 -24
  112. package/bpk-component-calendar/test-utils.js +228 -274
  113. package/bpk-component-card/index.js +25 -8
  114. package/bpk-component-card/src/BpkCard.js +49 -72
  115. package/bpk-component-card/src/BpkCard.module.css +1 -1
  116. package/bpk-component-card/src/BpkDividedCard.js +47 -81
  117. package/bpk-component-card/src/BpkDividedCard.module.css +1 -1
  118. package/bpk-component-checkbox/index.js +17 -8
  119. package/bpk-component-checkbox/src/BpkCheckbox.js +66 -116
  120. package/bpk-component-checkbox/src/BpkCheckbox.module.css +1 -1
  121. package/bpk-component-checkbox/src/themeAttributes.js +8 -4
  122. package/bpk-component-chip/index.js +38 -21
  123. package/bpk-component-chip/src/BpkDismissibleChip.js +40 -65
  124. package/bpk-component-chip/src/BpkDropdownChip.js +22 -52
  125. package/bpk-component-chip/src/BpkSelectableChip.js +62 -98
  126. package/bpk-component-chip/src/BpkSelectableChip.module.css +1 -1
  127. package/bpk-component-chip/src/commonTypes.js +25 -34
  128. package/bpk-component-chip/src/themeAttributes.js +8 -13
  129. package/bpk-component-close-button/index.js +10 -6
  130. package/bpk-component-close-button/src/BpkCloseButton.js +43 -61
  131. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  132. package/bpk-component-code/index.js +19 -22
  133. package/bpk-component-code/src/BpkCode.js +33 -49
  134. package/bpk-component-code/src/BpkCode.module.css +1 -1
  135. package/bpk-component-code/src/BpkCodeBlock.js +36 -53
  136. package/bpk-component-code/src/BpkCodeBlock.module.css +1 -1
  137. package/bpk-component-content-cards/index.js +10 -4
  138. package/bpk-component-content-cards/src/BpkContentCard.js +37 -62
  139. package/bpk-component-content-cards/src/BpkContentCard.module.css +18 -0
  140. package/bpk-component-content-cards/src/BpkContentCards.js +33 -46
  141. package/bpk-component-content-cards/src/BpkContentCards.module.css +1 -1
  142. package/bpk-component-datatable/index.js +19 -20
  143. package/bpk-component-datatable/src/BpkDataTable.js +129 -197
  144. package/bpk-component-datatable/src/BpkDataTable.module.css +1 -1
  145. package/bpk-component-datatable/src/BpkDataTableColumn.js +29 -31
  146. package/bpk-component-datatable/src/BpkDataTableHeader.js +60 -108
  147. package/bpk-component-datatable/src/BpkDataTableHeader.module.css +18 -0
  148. package/bpk-component-datatable/src/common-types.js +1 -72
  149. package/bpk-component-datatable/src/hasChildrenOfType.js +25 -41
  150. package/bpk-component-datatable/src/sort-types.js +10 -16
  151. package/bpk-component-datatable/src/utils.js +93 -65
  152. package/bpk-component-datepicker/index.js +24 -8
  153. package/bpk-component-datepicker/src/BpkDatepicker.js +211 -304
  154. package/bpk-component-datepicker/src/BpkDatepicker.module.css +1 -1
  155. package/bpk-component-datepicker/src/themeAttributes.js +11 -12
  156. package/bpk-component-description-list/index.js +26 -22
  157. package/bpk-component-description-list/src/BpkDescriptionDetails.js +10 -4
  158. package/bpk-component-description-list/src/BpkDescriptionList.js +10 -4
  159. package/bpk-component-description-list/src/BpkDescriptionTerm.js +10 -4
  160. package/bpk-component-description-list/src/ComponentFactory.js +30 -43
  161. package/bpk-component-dialog/index.js +17 -9
  162. package/bpk-component-dialog/src/BpkDialog.js +56 -87
  163. package/bpk-component-dialog/src/BpkDialog.module.css +1 -1
  164. package/bpk-component-dialog/src/BpkDialogInner.js +47 -79
  165. package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
  166. package/bpk-component-dialog/src/common-types.js +49 -83
  167. package/bpk-component-drawer/index.js +17 -8
  168. package/bpk-component-drawer/src/BpkDrawer.js +66 -84
  169. package/bpk-component-drawer/src/BpkDrawerContent.js +94 -142
  170. package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
  171. package/bpk-component-drawer/src/themeAttributes.js +9 -6
  172. package/bpk-component-fieldset/index.js +31 -13
  173. package/bpk-component-fieldset/src/BpkFieldset.js +92 -144
  174. package/bpk-component-fieldset/src/BpkFieldset.module.css +1 -1
  175. package/bpk-component-fieldset/src/themeAttributes.js +8 -2
  176. package/bpk-component-flare/index.js +23 -8
  177. package/bpk-component-flare/src/BpkContentBubble.js +49 -78
  178. package/bpk-component-flare/src/BpkFlareBar.js +42 -60
  179. package/bpk-component-flare/src/__generated__/js/corner-radius.js +24 -5
  180. package/bpk-component-flare/src/__generated__/js/pointer.js +24 -5
  181. package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
  182. package/bpk-component-floating-notification/index.js +10 -8
  183. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +78 -117
  184. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
  185. package/bpk-component-form-validation/index.js +17 -6
  186. package/bpk-component-form-validation/src/BpkFormValidation.js +51 -77
  187. package/bpk-component-form-validation/src/BpkFormValidation.module.css +1 -1
  188. package/bpk-component-form-validation/src/themeAttributes.js +8 -2
  189. package/bpk-component-graphic-promotion/index.js +17 -9
  190. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +75 -133
  191. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +18 -0
  192. package/bpk-component-grid/index.js +16 -7
  193. package/bpk-component-grid/src/BpkGridColumn.js +50 -78
  194. package/bpk-component-grid/src/BpkGridColumn.module.css +1 -1
  195. package/bpk-component-grid/src/BpkGridContainer.js +34 -45
  196. package/bpk-component-grid/src/BpkGridContainer.module.css +1 -1
  197. package/bpk-component-grid/src/BpkGridRow.js +32 -44
  198. package/bpk-component-grid/src/BpkGridRow.module.css +1 -1
  199. package/bpk-component-grid-toggle/index.js +10 -4
  200. package/bpk-component-grid-toggle/src/BpkGridToggle.js +47 -75
  201. package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +1 -1
  202. package/bpk-component-horizontal-nav/index.js +30 -15
  203. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +112 -169
  204. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +1 -1
  205. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +78 -120
  206. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.css +1 -1
  207. package/bpk-component-icon/all.js +5 -6
  208. package/bpk-component-icon/index.js +33 -24
  209. package/bpk-component-icon/lg/accessibility.js +30 -8
  210. package/bpk-component-icon/lg/account--add.js +30 -8
  211. package/bpk-component-icon/lg/account--female.js +30 -8
  212. package/bpk-component-icon/lg/account--id-card.js +30 -8
  213. package/bpk-component-icon/lg/account--name.js +30 -8
  214. package/bpk-component-icon/lg/account--permit.js +30 -8
  215. package/bpk-component-icon/lg/account-circle.js +30 -8
  216. package/bpk-component-icon/lg/account.js +30 -8
  217. package/bpk-component-icon/lg/add-circle.js +30 -8
  218. package/bpk-component-icon/lg/adult.js +30 -8
  219. package/bpk-component-icon/lg/aircon.js +30 -8
  220. package/bpk-component-icon/lg/aircraft.js +32 -8
  221. package/bpk-component-icon/lg/airline--multiple.js +30 -8
  222. package/bpk-component-icon/lg/airline.js +30 -8
  223. package/bpk-component-icon/lg/airports.js +30 -8
  224. package/bpk-component-icon/lg/alert--active.js +30 -8
  225. package/bpk-component-icon/lg/alert--add.js +30 -8
  226. package/bpk-component-icon/lg/alert--expired.js +30 -8
  227. package/bpk-component-icon/lg/alert--remove.js +30 -8
  228. package/bpk-component-icon/lg/arrow-down.js +30 -8
  229. package/bpk-component-icon/lg/arrow-left.js +30 -8
  230. package/bpk-component-icon/lg/arrow-right.js +30 -8
  231. package/bpk-component-icon/lg/arrow-up.js +30 -8
  232. package/bpk-component-icon/lg/award.js +30 -8
  233. package/bpk-component-icon/lg/baby-carriage.js +30 -8
  234. package/bpk-component-icon/lg/baggage--add.js +30 -8
  235. package/bpk-component-icon/lg/baggage--remove.js +30 -8
  236. package/bpk-component-icon/lg/baggage-cabin-add.js +30 -8
  237. package/bpk-component-icon/lg/baggage-cabin-not-included.js +30 -8
  238. package/bpk-component-icon/lg/baggage-cabin.js +30 -8
  239. package/bpk-component-icon/lg/baggage-checked-add.js +30 -8
  240. package/bpk-component-icon/lg/baggage-checked-not-included.js +30 -8
  241. package/bpk-component-icon/lg/baggage-checked.js +30 -8
  242. package/bpk-component-icon/lg/baggage-cross.js +30 -8
  243. package/bpk-component-icon/lg/baggage-generic.js +30 -8
  244. package/bpk-component-icon/lg/baggage-tick.js +30 -8
  245. package/bpk-component-icon/lg/baggage.js +30 -8
  246. package/bpk-component-icon/lg/bar.js +30 -8
  247. package/bpk-component-icon/lg/beach.js +32 -8
  248. package/bpk-component-icon/lg/beer.js +30 -8
  249. package/bpk-component-icon/lg/breakfast-cross.js +30 -8
  250. package/bpk-component-icon/lg/breakfast-tick.js +30 -8
  251. package/bpk-component-icon/lg/bus.js +30 -8
  252. package/bpk-component-icon/lg/business.js +30 -8
  253. package/bpk-component-icon/lg/cafe.js +30 -8
  254. package/bpk-component-icon/lg/calendar.js +30 -8
  255. package/bpk-component-icon/lg/call-back.js +32 -8
  256. package/bpk-component-icon/lg/camera.js +30 -8
  257. package/bpk-component-icon/lg/camper-van.js +32 -8
  258. package/bpk-component-icon/lg/car-door.js +30 -8
  259. package/bpk-component-icon/lg/car-wash.js +32 -8
  260. package/bpk-component-icon/lg/cars-flexible.js +30 -8
  261. package/bpk-component-icon/lg/cars.js +32 -8
  262. package/bpk-component-icon/lg/center-location.js +30 -8
  263. package/bpk-component-icon/lg/chart.js +30 -8
  264. package/bpk-component-icon/lg/chauffeur.js +30 -8
  265. package/bpk-component-icon/lg/chevron-down.js +30 -8
  266. package/bpk-component-icon/lg/chevron-left.js +30 -8
  267. package/bpk-component-icon/lg/chevron-right.js +30 -8
  268. package/bpk-component-icon/lg/chevron-up.js +30 -8
  269. package/bpk-component-icon/lg/child-seat.js +30 -8
  270. package/bpk-component-icon/lg/child.js +30 -8
  271. package/bpk-component-icon/lg/city-center.js +30 -8
  272. package/bpk-component-icon/lg/city.js +30 -8
  273. package/bpk-component-icon/lg/clean-policy.js +30 -8
  274. package/bpk-component-icon/lg/clean.js +34 -8
  275. package/bpk-component-icon/lg/cleaning-medical.js +30 -8
  276. package/bpk-component-icon/lg/cloakroom.js +34 -8
  277. package/bpk-component-icon/lg/close-circle.js +30 -8
  278. package/bpk-component-icon/lg/close.js +30 -8
  279. package/bpk-component-icon/lg/collapse.js +30 -8
  280. package/bpk-component-icon/lg/content--copy.js +32 -8
  281. package/bpk-component-icon/lg/content--event.js +30 -8
  282. package/bpk-component-icon/lg/content--guides.js +30 -8
  283. package/bpk-component-icon/lg/currency.js +30 -8
  284. package/bpk-component-icon/lg/data.js +32 -8
  285. package/bpk-component-icon/lg/deals.js +30 -8
  286. package/bpk-component-icon/lg/depart.js +32 -8
  287. package/bpk-component-icon/lg/device-mid.js +30 -8
  288. package/bpk-component-icon/lg/device-wide.js +30 -8
  289. package/bpk-component-icon/lg/direct.js +30 -8
  290. package/bpk-component-icon/lg/document-csv.js +30 -8
  291. package/bpk-component-icon/lg/document-pdf.js +30 -8
  292. package/bpk-component-icon/lg/download.js +32 -8
  293. package/bpk-component-icon/lg/duration.js +30 -8
  294. package/bpk-component-icon/lg/eco-leaf.js +30 -8
  295. package/bpk-component-icon/lg/edit.js +30 -8
  296. package/bpk-component-icon/lg/education.js +32 -8
  297. package/bpk-component-icon/lg/electric.js +30 -8
  298. package/bpk-component-icon/lg/end-call.js +30 -8
  299. package/bpk-component-icon/lg/estimated.js +30 -8
  300. package/bpk-component-icon/lg/exclamation-circle.js +30 -8
  301. package/bpk-component-icon/lg/exclamation.js +30 -8
  302. package/bpk-component-icon/lg/expand.js +30 -8
  303. package/bpk-component-icon/lg/explore.js +30 -8
  304. package/bpk-component-icon/lg/face--blank.js +30 -8
  305. package/bpk-component-icon/lg/face--happy.js +30 -8
  306. package/bpk-component-icon/lg/face--sad.js +30 -8
  307. package/bpk-component-icon/lg/face-id.js +30 -8
  308. package/bpk-component-icon/lg/face-mask.js +30 -8
  309. package/bpk-component-icon/lg/family.js +30 -8
  310. package/bpk-component-icon/lg/fast-track.js +32 -8
  311. package/bpk-component-icon/lg/fast-train.js +32 -8
  312. package/bpk-component-icon/lg/filter.js +31 -8
  313. package/bpk-component-icon/lg/fingerprint.js +30 -8
  314. package/bpk-component-icon/lg/flag.js +30 -8
  315. package/bpk-component-icon/lg/flask.js +30 -8
  316. package/bpk-component-icon/lg/flight-flexible.js +30 -8
  317. package/bpk-component-icon/lg/flight-landing.js +34 -8
  318. package/bpk-component-icon/lg/flight-takeoff.js +32 -8
  319. package/bpk-component-icon/lg/flight.js +32 -8
  320. package/bpk-component-icon/lg/food.js +30 -8
  321. package/bpk-component-icon/lg/gears-automatic-circle.js +30 -8
  322. package/bpk-component-icon/lg/gears-automatic.js +30 -8
  323. package/bpk-component-icon/lg/gears-manual-circle.js +30 -8
  324. package/bpk-component-icon/lg/gears-manual.js +30 -8
  325. package/bpk-component-icon/lg/globe.js +30 -8
  326. package/bpk-component-icon/lg/grid-layout.js +30 -8
  327. package/bpk-component-icon/lg/headset.js +30 -8
  328. package/bpk-component-icon/lg/health-fitness.js +30 -8
  329. package/bpk-component-icon/lg/heart--outline.js +30 -8
  330. package/bpk-component-icon/lg/heart.js +30 -8
  331. package/bpk-component-icon/lg/help-circle.js +30 -8
  332. package/bpk-component-icon/lg/help.js +30 -8
  333. package/bpk-component-icon/lg/hide.js +30 -8
  334. package/bpk-component-icon/lg/hotel-flexible.js +30 -8
  335. package/bpk-component-icon/lg/hotels--disabled-facilities.js +30 -8
  336. package/bpk-component-icon/lg/hotels--jacuzzi.js +30 -8
  337. package/bpk-component-icon/lg/hotels--pets-allowed.js +30 -8
  338. package/bpk-component-icon/lg/hotels--smoking.js +30 -8
  339. package/bpk-component-icon/lg/hotels.js +30 -8
  340. package/bpk-component-icon/lg/infant.js +30 -8
  341. package/bpk-component-icon/lg/information--language-alert.js +30 -8
  342. package/bpk-component-icon/lg/information--language-question.js +30 -8
  343. package/bpk-component-icon/lg/information--language.js +30 -8
  344. package/bpk-component-icon/lg/information-circle.js +30 -8
  345. package/bpk-component-icon/lg/information.js +30 -8
  346. package/bpk-component-icon/lg/insurance.js +30 -8
  347. package/bpk-component-icon/lg/key.js +30 -8
  348. package/bpk-component-icon/lg/keypad.js +30 -8
  349. package/bpk-component-icon/lg/landmark.js +30 -8
  350. package/bpk-component-icon/lg/language.js +30 -8
  351. package/bpk-component-icon/lg/legroom--extra.js +32 -8
  352. package/bpk-component-icon/lg/legroom--normal.js +32 -8
  353. package/bpk-component-icon/lg/legroom--reduced.js +32 -8
  354. package/bpk-component-icon/lg/leisure.js +30 -8
  355. package/bpk-component-icon/lg/lightning.js +30 -8
  356. package/bpk-component-icon/lg/list.js +30 -8
  357. package/bpk-component-icon/lg/location.js +30 -8
  358. package/bpk-component-icon/lg/lock.js +30 -8
  359. package/bpk-component-icon/lg/logout.js +32 -8
  360. package/bpk-component-icon/lg/long-arrow-down.js +30 -8
  361. package/bpk-component-icon/lg/long-arrow-left.js +30 -8
  362. package/bpk-component-icon/lg/long-arrow-right.js +30 -8
  363. package/bpk-component-icon/lg/long-arrow-up.js +30 -8
  364. package/bpk-component-icon/lg/lounge.js +32 -8
  365. package/bpk-component-icon/lg/luggageall.js +30 -8
  366. package/bpk-component-icon/lg/mail.js +32 -8
  367. package/bpk-component-icon/lg/map.js +30 -8
  368. package/bpk-component-icon/lg/meal.js +30 -8
  369. package/bpk-component-icon/lg/media.js +30 -8
  370. package/bpk-component-icon/lg/menu--horizontal.js +30 -8
  371. package/bpk-component-icon/lg/menu--vertical.js +30 -8
  372. package/bpk-component-icon/lg/menu.js +30 -8
  373. package/bpk-component-icon/lg/mileage.js +32 -8
  374. package/bpk-component-icon/lg/minus.js +30 -8
  375. package/bpk-component-icon/lg/mobile.js +30 -8
  376. package/bpk-component-icon/lg/money.js +30 -8
  377. package/bpk-component-icon/lg/multiple-bookings.js +30 -8
  378. package/bpk-component-icon/lg/music.js +30 -8
  379. package/bpk-component-icon/lg/mute.js +30 -8
  380. package/bpk-component-icon/lg/native-android--back.js +30 -8
  381. package/bpk-component-icon/lg/native-android--close.js +30 -8
  382. package/bpk-component-icon/lg/native-android--forward.js +30 -8
  383. package/bpk-component-icon/lg/native-ios-close.js +30 -8
  384. package/bpk-component-icon/lg/navigation.js +30 -8
  385. package/bpk-component-icon/lg/new-window.js +32 -8
  386. package/bpk-component-icon/lg/news.js +30 -8
  387. package/bpk-component-icon/lg/night.js +30 -8
  388. package/bpk-component-icon/lg/not-allowed.js +30 -8
  389. package/bpk-component-icon/lg/onsen.js +30 -8
  390. package/bpk-component-icon/lg/paid.js +30 -8
  391. package/bpk-component-icon/lg/paperclip.js +30 -8
  392. package/bpk-component-icon/lg/parking.js +30 -8
  393. package/bpk-component-icon/lg/passport.js +30 -8
  394. package/bpk-component-icon/lg/pause.js +30 -8
  395. package/bpk-component-icon/lg/payment-card.js +30 -8
  396. package/bpk-component-icon/lg/petrol.js +30 -8
  397. package/bpk-component-icon/lg/phone-call.js +30 -8
  398. package/bpk-component-icon/lg/picture.js +30 -8
  399. package/bpk-component-icon/lg/pin.js +30 -8
  400. package/bpk-component-icon/lg/plane-seat.js +32 -8
  401. package/bpk-component-icon/lg/play.js +30 -8
  402. package/bpk-component-icon/lg/plus.js +30 -8
  403. package/bpk-component-icon/lg/policy.js +30 -8
  404. package/bpk-component-icon/lg/powerplug.js +30 -8
  405. package/bpk-component-icon/lg/ppe.js +30 -8
  406. package/bpk-component-icon/lg/price-alerts.js +30 -8
  407. package/bpk-component-icon/lg/price-tag.js +30 -8
  408. package/bpk-component-icon/lg/print.js +30 -8
  409. package/bpk-component-icon/lg/recent-searches.js +30 -8
  410. package/bpk-component-icon/lg/redo.js +30 -8
  411. package/bpk-component-icon/lg/refresh.js +30 -8
  412. package/bpk-component-icon/lg/return.js +32 -8
  413. package/bpk-component-icon/lg/room.js +30 -8
  414. package/bpk-component-icon/lg/scales.js +32 -8
  415. package/bpk-component-icon/lg/search.js +30 -8
  416. package/bpk-component-icon/lg/self-service.js +30 -8
  417. package/bpk-component-icon/lg/send-message.js +30 -8
  418. package/bpk-component-icon/lg/services.js +30 -8
  419. package/bpk-component-icon/lg/settings.js +30 -8
  420. package/bpk-component-icon/lg/share--android.js +30 -8
  421. package/bpk-component-icon/lg/share--ios.js +32 -8
  422. package/bpk-component-icon/lg/share.js +30 -8
  423. package/bpk-component-icon/lg/single-booking.js +30 -8
  424. package/bpk-component-icon/lg/social-like.js +30 -8
  425. package/bpk-component-icon/lg/sort-down.js +30 -8
  426. package/bpk-component-icon/lg/sort-up.js +30 -8
  427. package/bpk-component-icon/lg/sort.js +30 -8
  428. package/bpk-component-icon/lg/speaker.js +32 -8
  429. package/bpk-component-icon/lg/star-half.js +30 -8
  430. package/bpk-component-icon/lg/star-outline.js +30 -8
  431. package/bpk-component-icon/lg/star.js +30 -8
  432. package/bpk-component-icon/lg/stops.js +30 -8
  433. package/bpk-component-icon/lg/swap--horizontal.js +30 -8
  434. package/bpk-component-icon/lg/swap--vertical.js +30 -8
  435. package/bpk-component-icon/lg/swap.js +30 -8
  436. package/bpk-component-icon/lg/taxi.js +32 -8
  437. package/bpk-component-icon/lg/thumbs-down.js +30 -8
  438. package/bpk-component-icon/lg/thumbs-up.js +30 -8
  439. package/bpk-component-icon/lg/tick-circle.js +30 -8
  440. package/bpk-component-icon/lg/tick.js +30 -8
  441. package/bpk-component-icon/lg/ticket-flexible.js +30 -8
  442. package/bpk-component-icon/lg/ticket.js +30 -8
  443. package/bpk-component-icon/lg/time.js +30 -8
  444. package/bpk-component-icon/lg/toilets.js +30 -8
  445. package/bpk-component-icon/lg/train.js +30 -8
  446. package/bpk-component-icon/lg/transmission-automatic.js +30 -8
  447. package/bpk-component-icon/lg/transmission-manual.js +30 -8
  448. package/bpk-component-icon/lg/trash.js +30 -8
  449. package/bpk-component-icon/lg/trend--down.js +30 -8
  450. package/bpk-component-icon/lg/trend--steady.js +30 -8
  451. package/bpk-component-icon/lg/trend--will-rise.js +30 -8
  452. package/bpk-component-icon/lg/trend.js +30 -8
  453. package/bpk-component-icon/lg/trips.js +30 -8
  454. package/bpk-component-icon/lg/undo.js +30 -8
  455. package/bpk-component-icon/lg/unlock.js +30 -8
  456. package/bpk-component-icon/lg/unmute.js +32 -8
  457. package/bpk-component-icon/lg/upgrade.js +30 -8
  458. package/bpk-component-icon/lg/use-location.js +30 -8
  459. package/bpk-component-icon/lg/view.js +30 -8
  460. package/bpk-component-icon/lg/virus.js +30 -8
  461. package/bpk-component-icon/lg/wallet.js +32 -8
  462. package/bpk-component-icon/lg/weather--clear.js +30 -8
  463. package/bpk-component-icon/lg/weather--cloudy.js +32 -8
  464. package/bpk-component-icon/lg/weather--fog.js +30 -8
  465. package/bpk-component-icon/lg/weather--partly-cloudy.js +32 -8
  466. package/bpk-component-icon/lg/weather--rain.js +34 -8
  467. package/bpk-component-icon/lg/weather--snow.js +30 -8
  468. package/bpk-component-icon/lg/weather--thunderstorm.js +34 -8
  469. package/bpk-component-icon/lg/weather--tornado.js +30 -8
  470. package/bpk-component-icon/lg/weather--wind.js +30 -8
  471. package/bpk-component-icon/lg/weather.js +30 -8
  472. package/bpk-component-icon/lg/wifi.js +30 -8
  473. package/bpk-component-icon/lg/window--reduce.js +32 -8
  474. package/bpk-component-icon/lg/window.js +30 -8
  475. package/bpk-component-icon/lg/world--amer.js +30 -8
  476. package/bpk-component-icon/lg/world--apac.js +30 -8
  477. package/bpk-component-icon/lg/world--emea.js +32 -8
  478. package/bpk-component-icon/sm/accessibility.js +31 -8
  479. package/bpk-component-icon/sm/account--add.js +31 -8
  480. package/bpk-component-icon/sm/account--female.js +31 -8
  481. package/bpk-component-icon/sm/account--id-card.js +31 -8
  482. package/bpk-component-icon/sm/account--name.js +31 -8
  483. package/bpk-component-icon/sm/account--permit.js +31 -8
  484. package/bpk-component-icon/sm/account-circle.js +31 -8
  485. package/bpk-component-icon/sm/account.js +31 -8
  486. package/bpk-component-icon/sm/add-circle.js +31 -8
  487. package/bpk-component-icon/sm/adult.js +31 -8
  488. package/bpk-component-icon/sm/aircon.js +31 -8
  489. package/bpk-component-icon/sm/aircraft.js +33 -8
  490. package/bpk-component-icon/sm/airline--multiple.js +31 -8
  491. package/bpk-component-icon/sm/airline.js +31 -8
  492. package/bpk-component-icon/sm/airports.js +31 -8
  493. package/bpk-component-icon/sm/alert--active.js +31 -8
  494. package/bpk-component-icon/sm/alert--add.js +31 -8
  495. package/bpk-component-icon/sm/alert--expired.js +31 -8
  496. package/bpk-component-icon/sm/alert--remove.js +31 -8
  497. package/bpk-component-icon/sm/arrow-down.js +31 -8
  498. package/bpk-component-icon/sm/arrow-left.js +31 -8
  499. package/bpk-component-icon/sm/arrow-right.js +31 -8
  500. package/bpk-component-icon/sm/arrow-up.js +31 -8
  501. package/bpk-component-icon/sm/award.js +31 -8
  502. package/bpk-component-icon/sm/baby-carriage.js +31 -8
  503. package/bpk-component-icon/sm/baggage--add.js +31 -8
  504. package/bpk-component-icon/sm/baggage--remove.js +31 -8
  505. package/bpk-component-icon/sm/baggage-cabin-add.js +31 -8
  506. package/bpk-component-icon/sm/baggage-cabin-not-included.js +33 -8
  507. package/bpk-component-icon/sm/baggage-cabin.js +31 -8
  508. package/bpk-component-icon/sm/baggage-checked-add.js +31 -8
  509. package/bpk-component-icon/sm/baggage-checked-not-included.js +33 -8
  510. package/bpk-component-icon/sm/baggage-checked.js +31 -8
  511. package/bpk-component-icon/sm/baggage-cross.js +31 -8
  512. package/bpk-component-icon/sm/baggage-generic.js +31 -8
  513. package/bpk-component-icon/sm/baggage-tick.js +31 -8
  514. package/bpk-component-icon/sm/baggage.js +31 -8
  515. package/bpk-component-icon/sm/bar.js +31 -8
  516. package/bpk-component-icon/sm/beach.js +33 -8
  517. package/bpk-component-icon/sm/beer.js +31 -8
  518. package/bpk-component-icon/sm/breakfast-cross.js +31 -8
  519. package/bpk-component-icon/sm/breakfast-tick.js +31 -8
  520. package/bpk-component-icon/sm/bus.js +33 -8
  521. package/bpk-component-icon/sm/business.js +31 -8
  522. package/bpk-component-icon/sm/cafe.js +31 -8
  523. package/bpk-component-icon/sm/calendar.js +31 -8
  524. package/bpk-component-icon/sm/call-back.js +33 -8
  525. package/bpk-component-icon/sm/camera.js +31 -8
  526. package/bpk-component-icon/sm/camper-van.js +33 -8
  527. package/bpk-component-icon/sm/car-door.js +31 -8
  528. package/bpk-component-icon/sm/car-wash.js +33 -8
  529. package/bpk-component-icon/sm/cars-flexible.js +31 -8
  530. package/bpk-component-icon/sm/cars.js +33 -8
  531. package/bpk-component-icon/sm/center-location.js +31 -8
  532. package/bpk-component-icon/sm/chart.js +31 -8
  533. package/bpk-component-icon/sm/chauffeur.js +33 -8
  534. package/bpk-component-icon/sm/chevron-down.js +31 -8
  535. package/bpk-component-icon/sm/chevron-left.js +31 -8
  536. package/bpk-component-icon/sm/chevron-right.js +31 -8
  537. package/bpk-component-icon/sm/chevron-up.js +31 -8
  538. package/bpk-component-icon/sm/child-seat.js +31 -8
  539. package/bpk-component-icon/sm/child.js +31 -8
  540. package/bpk-component-icon/sm/city-center.js +31 -8
  541. package/bpk-component-icon/sm/city.js +31 -8
  542. package/bpk-component-icon/sm/clean-policy.js +31 -8
  543. package/bpk-component-icon/sm/clean.js +33 -8
  544. package/bpk-component-icon/sm/cleaning-medical.js +31 -8
  545. package/bpk-component-icon/sm/cloakroom.js +31 -8
  546. package/bpk-component-icon/sm/close-circle.js +31 -8
  547. package/bpk-component-icon/sm/close.js +31 -8
  548. package/bpk-component-icon/sm/collapse.js +31 -8
  549. package/bpk-component-icon/sm/content--copy.js +33 -8
  550. package/bpk-component-icon/sm/content--event.js +31 -8
  551. package/bpk-component-icon/sm/content--guides.js +31 -8
  552. package/bpk-component-icon/sm/currency.js +31 -8
  553. package/bpk-component-icon/sm/data.js +33 -8
  554. package/bpk-component-icon/sm/deals.js +31 -8
  555. package/bpk-component-icon/sm/depart.js +35 -8
  556. package/bpk-component-icon/sm/device-mid.js +31 -8
  557. package/bpk-component-icon/sm/device-wide.js +31 -8
  558. package/bpk-component-icon/sm/direct.js +33 -8
  559. package/bpk-component-icon/sm/document-csv.js +31 -8
  560. package/bpk-component-icon/sm/document-pdf.js +31 -8
  561. package/bpk-component-icon/sm/download.js +33 -8
  562. package/bpk-component-icon/sm/duration.js +31 -8
  563. package/bpk-component-icon/sm/eco-leaf.js +31 -8
  564. package/bpk-component-icon/sm/edit.js +31 -8
  565. package/bpk-component-icon/sm/education.js +33 -8
  566. package/bpk-component-icon/sm/electric.js +31 -8
  567. package/bpk-component-icon/sm/end-call.js +31 -8
  568. package/bpk-component-icon/sm/estimated.js +31 -8
  569. package/bpk-component-icon/sm/exclamation-circle.js +31 -8
  570. package/bpk-component-icon/sm/exclamation.js +31 -8
  571. package/bpk-component-icon/sm/expand.js +31 -8
  572. package/bpk-component-icon/sm/explore.js +31 -8
  573. package/bpk-component-icon/sm/face--blank.js +31 -8
  574. package/bpk-component-icon/sm/face--happy.js +31 -8
  575. package/bpk-component-icon/sm/face--sad.js +31 -8
  576. package/bpk-component-icon/sm/face-id.js +31 -8
  577. package/bpk-component-icon/sm/face-mask.js +31 -8
  578. package/bpk-component-icon/sm/family.js +31 -8
  579. package/bpk-component-icon/sm/fast-track.js +33 -8
  580. package/bpk-component-icon/sm/fast-train.js +33 -8
  581. package/bpk-component-icon/sm/filter.js +32 -8
  582. package/bpk-component-icon/sm/fingerprint.js +31 -8
  583. package/bpk-component-icon/sm/flag.js +31 -8
  584. package/bpk-component-icon/sm/flask.js +31 -8
  585. package/bpk-component-icon/sm/flight-flexible.js +31 -8
  586. package/bpk-component-icon/sm/flight-landing.js +35 -8
  587. package/bpk-component-icon/sm/flight-takeoff.js +33 -8
  588. package/bpk-component-icon/sm/flight.js +33 -8
  589. package/bpk-component-icon/sm/food.js +31 -8
  590. package/bpk-component-icon/sm/gears-automatic-circle.js +31 -8
  591. package/bpk-component-icon/sm/gears-automatic.js +31 -8
  592. package/bpk-component-icon/sm/gears-manual-circle.js +31 -8
  593. package/bpk-component-icon/sm/gears-manual.js +31 -8
  594. package/bpk-component-icon/sm/globe.js +31 -8
  595. package/bpk-component-icon/sm/grid-layout.js +31 -8
  596. package/bpk-component-icon/sm/headset.js +31 -8
  597. package/bpk-component-icon/sm/health-fitness.js +31 -8
  598. package/bpk-component-icon/sm/heart--outline.js +31 -8
  599. package/bpk-component-icon/sm/heart.js +31 -8
  600. package/bpk-component-icon/sm/help-circle.js +31 -8
  601. package/bpk-component-icon/sm/help.js +31 -8
  602. package/bpk-component-icon/sm/hide.js +31 -8
  603. package/bpk-component-icon/sm/hotel-flexible.js +31 -8
  604. package/bpk-component-icon/sm/hotels--disabled-facilities.js +31 -8
  605. package/bpk-component-icon/sm/hotels--jacuzzi.js +33 -8
  606. package/bpk-component-icon/sm/hotels--pets-allowed.js +31 -8
  607. package/bpk-component-icon/sm/hotels--smoking.js +31 -8
  608. package/bpk-component-icon/sm/hotels.js +31 -8
  609. package/bpk-component-icon/sm/infant.js +33 -8
  610. package/bpk-component-icon/sm/information--language-alert.js +31 -8
  611. package/bpk-component-icon/sm/information--language-question.js +31 -8
  612. package/bpk-component-icon/sm/information--language.js +31 -8
  613. package/bpk-component-icon/sm/information-circle.js +31 -8
  614. package/bpk-component-icon/sm/information.js +31 -8
  615. package/bpk-component-icon/sm/insurance.js +31 -8
  616. package/bpk-component-icon/sm/key.js +31 -8
  617. package/bpk-component-icon/sm/keypad.js +31 -8
  618. package/bpk-component-icon/sm/landmark.js +31 -8
  619. package/bpk-component-icon/sm/language.js +31 -8
  620. package/bpk-component-icon/sm/legroom--extra.js +33 -8
  621. package/bpk-component-icon/sm/legroom--normal.js +33 -8
  622. package/bpk-component-icon/sm/legroom--reduced.js +33 -8
  623. package/bpk-component-icon/sm/leisure.js +31 -8
  624. package/bpk-component-icon/sm/lightning.js +31 -8
  625. package/bpk-component-icon/sm/list.js +31 -8
  626. package/bpk-component-icon/sm/location.js +31 -8
  627. package/bpk-component-icon/sm/lock.js +31 -8
  628. package/bpk-component-icon/sm/logout.js +33 -8
  629. package/bpk-component-icon/sm/long-arrow-down.js +32 -8
  630. package/bpk-component-icon/sm/long-arrow-left.js +32 -8
  631. package/bpk-component-icon/sm/long-arrow-right.js +32 -8
  632. package/bpk-component-icon/sm/long-arrow-up.js +32 -8
  633. package/bpk-component-icon/sm/lounge.js +31 -8
  634. package/bpk-component-icon/sm/luggageall.js +31 -8
  635. package/bpk-component-icon/sm/mail.js +33 -8
  636. package/bpk-component-icon/sm/map.js +31 -8
  637. package/bpk-component-icon/sm/meal.js +31 -8
  638. package/bpk-component-icon/sm/media.js +31 -8
  639. package/bpk-component-icon/sm/menu--horizontal.js +31 -8
  640. package/bpk-component-icon/sm/menu--vertical.js +31 -8
  641. package/bpk-component-icon/sm/menu.js +31 -8
  642. package/bpk-component-icon/sm/mileage.js +33 -8
  643. package/bpk-component-icon/sm/minus.js +31 -8
  644. package/bpk-component-icon/sm/mobile.js +31 -8
  645. package/bpk-component-icon/sm/money.js +31 -8
  646. package/bpk-component-icon/sm/multiple-bookings.js +31 -8
  647. package/bpk-component-icon/sm/music.js +31 -8
  648. package/bpk-component-icon/sm/mute.js +31 -8
  649. package/bpk-component-icon/sm/native-android--back.js +31 -8
  650. package/bpk-component-icon/sm/native-android--close.js +31 -8
  651. package/bpk-component-icon/sm/native-android--forward.js +31 -8
  652. package/bpk-component-icon/sm/native-ios-close.js +31 -8
  653. package/bpk-component-icon/sm/navigation.js +31 -8
  654. package/bpk-component-icon/sm/new-window.js +37 -8
  655. package/bpk-component-icon/sm/news.js +31 -8
  656. package/bpk-component-icon/sm/night.js +31 -8
  657. package/bpk-component-icon/sm/not-allowed.js +31 -8
  658. package/bpk-component-icon/sm/onsen.js +33 -8
  659. package/bpk-component-icon/sm/paid.js +31 -8
  660. package/bpk-component-icon/sm/paperclip.js +31 -8
  661. package/bpk-component-icon/sm/parking.js +31 -8
  662. package/bpk-component-icon/sm/passport.js +31 -8
  663. package/bpk-component-icon/sm/pause.js +31 -8
  664. package/bpk-component-icon/sm/payment-card.js +31 -8
  665. package/bpk-component-icon/sm/petrol.js +31 -8
  666. package/bpk-component-icon/sm/phone-call.js +31 -8
  667. package/bpk-component-icon/sm/picture.js +31 -8
  668. package/bpk-component-icon/sm/pin.js +31 -8
  669. package/bpk-component-icon/sm/plane-seat.js +33 -8
  670. package/bpk-component-icon/sm/play.js +31 -8
  671. package/bpk-component-icon/sm/plus.js +31 -8
  672. package/bpk-component-icon/sm/policy.js +31 -8
  673. package/bpk-component-icon/sm/powerplug.js +31 -8
  674. package/bpk-component-icon/sm/ppe.js +31 -8
  675. package/bpk-component-icon/sm/price-alerts.js +31 -8
  676. package/bpk-component-icon/sm/price-tag.js +31 -8
  677. package/bpk-component-icon/sm/print.js +31 -8
  678. package/bpk-component-icon/sm/recent-searches.js +31 -8
  679. package/bpk-component-icon/sm/redo.js +31 -8
  680. package/bpk-component-icon/sm/refresh.js +31 -8
  681. package/bpk-component-icon/sm/return.js +35 -8
  682. package/bpk-component-icon/sm/room.js +31 -8
  683. package/bpk-component-icon/sm/scales.js +31 -8
  684. package/bpk-component-icon/sm/search.js +31 -8
  685. package/bpk-component-icon/sm/self-service.js +31 -8
  686. package/bpk-component-icon/sm/send-message.js +31 -8
  687. package/bpk-component-icon/sm/services.js +31 -8
  688. package/bpk-component-icon/sm/settings.js +31 -8
  689. package/bpk-component-icon/sm/share--android.js +31 -8
  690. package/bpk-component-icon/sm/share--ios.js +35 -8
  691. package/bpk-component-icon/sm/share.js +31 -8
  692. package/bpk-component-icon/sm/single-booking.js +31 -8
  693. package/bpk-component-icon/sm/social-like.js +31 -8
  694. package/bpk-component-icon/sm/sort-down.js +31 -8
  695. package/bpk-component-icon/sm/sort-up.js +31 -8
  696. package/bpk-component-icon/sm/sort.js +31 -8
  697. package/bpk-component-icon/sm/speaker.js +31 -8
  698. package/bpk-component-icon/sm/star-half.js +31 -8
  699. package/bpk-component-icon/sm/star-outline.js +31 -8
  700. package/bpk-component-icon/sm/star.js +31 -8
  701. package/bpk-component-icon/sm/stops.js +31 -8
  702. package/bpk-component-icon/sm/swap--horizontal.js +32 -8
  703. package/bpk-component-icon/sm/swap--vertical.js +31 -8
  704. package/bpk-component-icon/sm/swap.js +32 -8
  705. package/bpk-component-icon/sm/taxi.js +33 -8
  706. package/bpk-component-icon/sm/thumbs-down.js +31 -8
  707. package/bpk-component-icon/sm/thumbs-up.js +31 -8
  708. package/bpk-component-icon/sm/tick-circle.js +31 -8
  709. package/bpk-component-icon/sm/tick.js +31 -8
  710. package/bpk-component-icon/sm/ticket-flexible.js +31 -8
  711. package/bpk-component-icon/sm/ticket.js +31 -8
  712. package/bpk-component-icon/sm/time.js +31 -8
  713. package/bpk-component-icon/sm/toilets.js +31 -8
  714. package/bpk-component-icon/sm/train.js +31 -8
  715. package/bpk-component-icon/sm/transmission-automatic.js +31 -8
  716. package/bpk-component-icon/sm/transmission-manual.js +31 -8
  717. package/bpk-component-icon/sm/trash.js +31 -8
  718. package/bpk-component-icon/sm/trend--down.js +31 -8
  719. package/bpk-component-icon/sm/trend--steady.js +32 -8
  720. package/bpk-component-icon/sm/trend--will-rise.js +31 -8
  721. package/bpk-component-icon/sm/trend.js +31 -8
  722. package/bpk-component-icon/sm/trips.js +31 -8
  723. package/bpk-component-icon/sm/undo.js +31 -8
  724. package/bpk-component-icon/sm/unlock.js +31 -8
  725. package/bpk-component-icon/sm/unmute.js +33 -8
  726. package/bpk-component-icon/sm/upgrade.js +31 -8
  727. package/bpk-component-icon/sm/use-location.js +31 -8
  728. package/bpk-component-icon/sm/view.js +31 -8
  729. package/bpk-component-icon/sm/virus.js +31 -8
  730. package/bpk-component-icon/sm/wallet.js +31 -8
  731. package/bpk-component-icon/sm/weather--clear.js +31 -8
  732. package/bpk-component-icon/sm/weather--cloudy.js +33 -8
  733. package/bpk-component-icon/sm/weather--fog.js +31 -8
  734. package/bpk-component-icon/sm/weather--partly-cloudy.js +31 -8
  735. package/bpk-component-icon/sm/weather--rain.js +33 -8
  736. package/bpk-component-icon/sm/weather--snow.js +31 -8
  737. package/bpk-component-icon/sm/weather--thunderstorm.js +35 -8
  738. package/bpk-component-icon/sm/weather--tornado.js +31 -8
  739. package/bpk-component-icon/sm/weather--wind.js +33 -8
  740. package/bpk-component-icon/sm/weather.js +31 -8
  741. package/bpk-component-icon/sm/wifi.js +31 -8
  742. package/bpk-component-icon/sm/window--reduce.js +33 -8
  743. package/bpk-component-icon/sm/window.js +31 -8
  744. package/bpk-component-icon/sm/world--amer.js +31 -8
  745. package/bpk-component-icon/sm/world--apac.js +31 -8
  746. package/bpk-component-icon/sm/world--emea.js +31 -8
  747. package/bpk-component-icon/src/BpkIcon.module.css +1 -1
  748. package/bpk-component-icon/src/classNameModifierHOCFactory.js +38 -53
  749. package/bpk-component-icon/src/withAlignment.js +22 -26
  750. package/bpk-component-icon/src/withDescription.js +17 -26
  751. package/bpk-component-icon/src/withRtlSupport.js +13 -10
  752. package/bpk-component-image/index.js +38 -20
  753. package/bpk-component-image/src/BpkBackgroundImage.js +115 -171
  754. package/bpk-component-image/src/BpkBackgroundImage.module.css +1 -1
  755. package/bpk-component-image/src/BpkImage.js +152 -220
  756. package/bpk-component-image/src/BpkImage.module.css +1 -1
  757. package/bpk-component-image/src/BpkImageBorderRadiusStyles.js +12 -7
  758. package/bpk-component-image/src/customPropTypes.js +10 -15
  759. package/bpk-component-image/src/withLazyLoading.js +110 -165
  760. package/bpk-component-image/src/withLoadingBehavior.js +27 -57
  761. package/bpk-component-infinite-scroll/index.js +25 -12
  762. package/bpk-component-infinite-scroll/src/DataSource.js +30 -31
  763. package/bpk-component-infinite-scroll/src/intersection-observer.js +3 -1
  764. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +157 -228
  765. package/bpk-component-input/index.js +50 -43
  766. package/bpk-component-input/src/BpkClearButton.js +44 -63
  767. package/bpk-component-input/src/BpkClearButton.module.css +1 -1
  768. package/bpk-component-input/src/BpkInput.js +90 -126
  769. package/bpk-component-input/src/BpkInput.module.css +1 -1
  770. package/bpk-component-input/src/common-types.js +40 -79
  771. package/bpk-component-input/src/themeAttributes.js +8 -2
  772. package/bpk-component-input/src/withOpenEvents.js +87 -131
  773. package/bpk-component-label/index.js +10 -7
  774. package/bpk-component-label/src/BpkLabel.js +42 -67
  775. package/bpk-component-label/src/BpkLabel.module.css +1 -1
  776. package/bpk-component-link/index.js +32 -11
  777. package/bpk-component-link/src/BpkButtonLink.js +45 -60
  778. package/bpk-component-link/src/BpkLink.js +60 -84
  779. package/bpk-component-link/src/BpkLink.module.css +1 -1
  780. package/bpk-component-link/src/themeAttributes.js +10 -18
  781. package/bpk-component-list/index.js +19 -23
  782. package/bpk-component-list/src/BpkList.js +35 -50
  783. package/bpk-component-list/src/BpkList.module.css +1 -1
  784. package/bpk-component-list/src/BpkListItem.js +25 -33
  785. package/bpk-component-loading-button/index.js +17 -7
  786. package/bpk-component-loading-button/src/BpkLoadingButton.js +88 -150
  787. package/bpk-component-loading-button/src/BpkLoadingButton.module.css +18 -0
  788. package/bpk-component-map/index.js +59 -28
  789. package/bpk-component-map/src/BpkBasicMapMarker.js +31 -48
  790. package/bpk-component-map/src/BpkIconMarker.js +55 -93
  791. package/bpk-component-map/src/BpkIconMarker.module.css +1 -1
  792. package/bpk-component-map/src/BpkIconMarkerBackground.js +46 -68
  793. package/bpk-component-map/src/BpkIconMarkerBackground.module.css +1 -1
  794. package/bpk-component-map/src/BpkMap.js +89 -145
  795. package/bpk-component-map/src/{BpkMap.module.scss → BpkMap.module.css} +6 -9
  796. package/bpk-component-map/src/BpkOverlayView.js +32 -43
  797. package/bpk-component-map/src/BpkPriceMarker.js +61 -107
  798. package/bpk-component-map/src/BpkPriceMarker.module.css +1 -1
  799. package/bpk-component-map/src/DefaultLoadingElement.js +19 -19
  800. package/bpk-component-map/src/DefaultLoadingElement.module.css +1 -1
  801. package/bpk-component-map/src/common-types.js +12 -14
  802. package/bpk-component-map/src/themeAttributes.js +13 -18
  803. package/bpk-component-map/src/withGoogleMapsScript.js +38 -61
  804. package/bpk-component-mobile-scroll-container/index.js +10 -6
  805. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +120 -187
  806. package/bpk-component-modal/index.js +31 -10
  807. package/bpk-component-modal/src/BpkModal.js +73 -111
  808. package/bpk-component-modal/src/BpkModal.module.css +1 -1
  809. package/bpk-component-modal/src/BpkModalInner.js +82 -143
  810. package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
  811. package/bpk-component-modal/src/customPropTypes.js +13 -29
  812. package/bpk-component-modal/src/themeAttributes.js +9 -6
  813. package/bpk-component-navigation-bar/index.js +31 -25
  814. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +54 -88
  815. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
  816. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +36 -57
  817. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +38 -54
  818. package/bpk-component-navigation-bar/src/themeAttributes.js +8 -16
  819. package/bpk-component-nudger/index.js +24 -9
  820. package/bpk-component-nudger/src/BpkConfigurableNudger.js +93 -142
  821. package/bpk-component-nudger/src/BpkNudger.js +43 -65
  822. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  823. package/bpk-component-nudger/src/common-types.js +19 -26
  824. package/bpk-component-nudger/src/themeAttributes.js +9 -6
  825. package/bpk-component-overlay/index.js +29 -12
  826. package/bpk-component-overlay/src/BpkOverlay.js +49 -80
  827. package/bpk-component-overlay/src/BpkOverlay.module.css +1 -1
  828. package/bpk-component-page-indicator/index.js +24 -11
  829. package/bpk-component-page-indicator/src/BpkPageIndicator.js +69 -111
  830. package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +1 -1
  831. package/bpk-component-page-indicator/src/NavButton.js +47 -60
  832. package/bpk-component-pagination/index.js +17 -6
  833. package/bpk-component-pagination/src/BpkPagination.js +61 -82
  834. package/bpk-component-pagination/src/BpkPaginationBreak.js +18 -12
  835. package/bpk-component-pagination/src/BpkPaginationList.js +53 -71
  836. package/bpk-component-pagination/src/BpkPaginationList.module.css +1 -1
  837. package/bpk-component-pagination/src/BpkPaginationNudger.js +46 -54
  838. package/bpk-component-pagination/src/BpkPaginationNudger.module.css +1 -1
  839. package/bpk-component-pagination/src/BpkPaginationPage.js +35 -35
  840. package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
  841. package/bpk-component-pagination/src/themeAttributes.js +9 -9
  842. package/bpk-component-panel/index.js +10 -4
  843. package/bpk-component-panel/src/BpkPanel.js +34 -45
  844. package/bpk-component-panel/src/BpkPanel.module.css +1 -1
  845. package/bpk-component-phone-input/index.js +10 -9
  846. package/bpk-component-phone-input/src/BpkPhoneInput.js +116 -185
  847. package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
  848. package/bpk-component-popover/index.js +31 -17
  849. package/bpk-component-popover/src/BpkPopover.js +101 -159
  850. package/bpk-component-popover/src/BpkPopover.module.css +1 -1
  851. package/bpk-component-popover/src/BpkPopoverPortal.js +124 -185
  852. package/bpk-component-popover/src/constants.js +12 -7
  853. package/bpk-component-popover/src/keyboardFocusScope.js +19 -21
  854. package/bpk-component-popover/src/themeAttributes.js +9 -6
  855. package/bpk-component-price/index.js +23 -7
  856. package/bpk-component-price/src/BpkPrice.js +60 -102
  857. package/{bpk-component-accordion/src/BpkAccordion.module.scss → bpk-component-price/src/BpkPrice.module.css} +6 -11
  858. package/bpk-component-price/src/common-types.js +12 -9
  859. package/bpk-component-progress/index.js +17 -8
  860. package/bpk-component-progress/src/BpkProgress.js +102 -136
  861. package/bpk-component-progress/src/BpkProgress.module.css +1 -1
  862. package/bpk-component-progress/src/themeAttributes.js +8 -4
  863. package/bpk-component-radio/index.js +17 -8
  864. package/bpk-component-radio/src/BpkRadio.js +51 -83
  865. package/bpk-component-radio/src/BpkRadio.module.css +1 -1
  866. package/bpk-component-radio/src/themeAttributes.js +8 -4
  867. package/bpk-component-rating/index.js +23 -7
  868. package/bpk-component-rating/src/BpkRating.js +93 -152
  869. package/bpk-component-rating/src/BpkRating.module.css +1 -1
  870. package/bpk-component-rating/src/common-types.js +14 -8
  871. package/bpk-component-rtl-toggle/index.js +17 -6
  872. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +46 -73
  873. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +28 -51
  874. package/bpk-component-rtl-toggle/src/utils.js +11 -7
  875. package/bpk-component-scrollable-calendar/index.js +38 -17
  876. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +12 -19
  877. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +32 -37
  878. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +43 -53
  879. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +121 -166
  880. package/bpk-component-scrollable-calendar/src/utils.js +13 -19
  881. package/bpk-component-scrollable-calendar/test-utils.js +200 -246
  882. package/bpk-component-section-list/index.js +24 -9
  883. package/bpk-component-section-list/src/BpkSectionList.js +20 -34
  884. package/bpk-component-section-list/src/BpkSectionListItem.js +56 -89
  885. package/bpk-component-section-list/src/BpkSectionListItem.module.css +1 -1
  886. package/bpk-component-section-list/src/BpkSectionListSection.js +36 -59
  887. package/bpk-component-section-list/src/BpkSectionListSection.module.css +1 -1
  888. package/bpk-component-select/index.js +17 -9
  889. package/bpk-component-select/src/BpkSelect.js +58 -110
  890. package/bpk-component-select/src/BpkSelect.module.css +1 -1
  891. package/bpk-component-select/src/themeAttributes.js +8 -2
  892. package/bpk-component-skip-link/index.js +17 -8
  893. package/bpk-component-skip-link/src/BpkSkipLink.js +34 -52
  894. package/bpk-component-skip-link/src/BpkSkipLink.module.css +1 -1
  895. package/bpk-component-skip-link/src/themeAttributes.js +8 -2
  896. package/bpk-component-slider/index.js +17 -6
  897. package/bpk-component-slider/src/BpkSlider.js +37 -52
  898. package/bpk-component-slider/src/BpkSlider.module.css +1 -1
  899. package/bpk-component-slider/src/themeAttributes.js +8 -2
  900. package/bpk-component-spinner/index.js +40 -32
  901. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +87 -51
  902. package/bpk-component-spinner/src/BpkLargeSpinner.js +89 -55
  903. package/bpk-component-spinner/src/BpkSpinner.js +133 -54
  904. package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
  905. package/bpk-component-spinner/src/spinnerTypes.js +9 -5
  906. package/bpk-component-spinner/src/themeAttributes.js +8 -4
  907. package/bpk-component-split-input/index.js +17 -10
  908. package/bpk-component-split-input/src/BpkInputField.js +52 -57
  909. package/{bpk-component-barchart/src/BpkChartDataTable.module.scss → bpk-component-split-input/src/BpkInputField.module.css} +6 -16
  910. package/bpk-component-split-input/src/BpkSplitInput.js +208 -222
  911. package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
  912. package/bpk-component-star-rating/index.js +65 -21
  913. package/bpk-component-star-rating/src/BpkInteractiveStar.js +51 -78
  914. package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +1 -1
  915. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +63 -101
  916. package/bpk-component-star-rating/src/BpkStar.js +67 -96
  917. package/bpk-component-star-rating/src/BpkStar.module.css +1 -1
  918. package/bpk-component-star-rating/src/BpkStarRating.js +58 -103
  919. package/bpk-component-star-rating/src/themeAttributes.js +8 -4
  920. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +58 -89
  921. package/bpk-component-switch/index.js +25 -11
  922. package/bpk-component-switch/src/BpkSwitch.js +50 -76
  923. package/bpk-component-switch/src/BpkSwitch.module.css +1 -1
  924. package/bpk-component-switch/src/themeAttributes.js +8 -2
  925. package/bpk-component-table/index.js +47 -34
  926. package/bpk-component-table/src/BpkTable.js +34 -58
  927. package/bpk-component-table/src/BpkTable.module.css +1 -1
  928. package/bpk-component-table/src/BpkTableBody.js +13 -14
  929. package/bpk-component-table/src/BpkTableCell.js +30 -48
  930. package/bpk-component-table/src/BpkTableHead.js +13 -14
  931. package/bpk-component-table/src/BpkTableHeadCell.js +32 -52
  932. package/bpk-component-table/src/BpkTableRow.js +13 -14
  933. package/bpk-component-text/index.js +23 -7
  934. package/bpk-component-text/src/BpkText.js +45 -97
  935. package/bpk-component-text/src/BpkText.module.css +1 -1
  936. package/bpk-component-textarea/index.js +17 -8
  937. package/bpk-component-textarea/src/BpkTextarea.js +37 -62
  938. package/bpk-component-textarea/src/BpkTextarea.module.css +1 -1
  939. package/bpk-component-textarea/src/themeAttributes.js +8 -4
  940. package/bpk-component-theme-toggle/index.js +17 -6
  941. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +77 -96
  942. package/bpk-component-theme-toggle/src/theming.js +55 -98
  943. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +38 -58
  944. package/bpk-component-theme-toggle/src/utils.js +9 -5
  945. package/bpk-component-ticket/index.js +10 -6
  946. package/bpk-component-ticket/src/BpkTicket.js +69 -128
  947. package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
  948. package/bpk-component-tooltip/index.js +17 -10
  949. package/bpk-component-tooltip/src/BpkTooltip.js +64 -98
  950. package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
  951. package/bpk-component-tooltip/src/BpkTooltipPortal.js +120 -190
  952. package/bpk-component-tooltip/src/constants.js +16 -9
  953. package/bpk-react-utils/index.js +87 -39
  954. package/bpk-react-utils/src/Portal.js +64 -115
  955. package/bpk-react-utils/src/TransitionInitialMount.js +33 -40
  956. package/bpk-react-utils/src/cssModules.js +14 -12
  957. package/bpk-react-utils/src/deprecated.js +19 -22
  958. package/bpk-react-utils/src/deviceDetection.js +11 -14
  959. package/bpk-react-utils/src/isRTL.js +11 -17
  960. package/bpk-react-utils/src/withDefaultProps.js +36 -60
  961. package/bpk-react-utils/src/wrapDisplayName.js +8 -4
  962. package/bpk-scrim-utils/index.js +17 -6
  963. package/bpk-scrim-utils/src/BpkScrim.js +26 -29
  964. package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
  965. package/bpk-scrim-utils/src/customPropTypes.js +11 -19
  966. package/bpk-scrim-utils/src/scroll-utils.js +20 -38
  967. package/bpk-scrim-utils/src/withScrim.js +94 -115
  968. package/bpk-storybook-utils/index.js +43 -0
  969. package/bpk-storybook-utils/src/BpkDarkExampleWrapper.js +33 -0
  970. package/{bpk-component-aria-live/src/BpkAriaLive.module.scss → bpk-storybook-utils/src/BpkDarkExampleWrapper.module.css} +6 -13
  971. package/{bpk-component-barchart/src/BpkChartGridLines.module.scss → bpk-storybook-utils/src/BpkStorybookUtils.js} +19 -7
  972. package/bpk-theming/index.js +10 -4
  973. package/bpk-theming/src/BpkThemeProvider.js +59 -73
  974. package/index.css +0 -0
  975. package/package.json +1 -1
  976. package/bpk-animate-height/README.md +0 -53
  977. package/bpk-component-accordion/README.md +0 -122
  978. package/bpk-component-accordion/src/BpkAccordionItem.module.scss +0 -76
  979. package/bpk-component-aria-live/README.md +0 -40
  980. package/bpk-component-autosuggest/README.md +0 -124
  981. package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +0 -156
  982. package/bpk-component-badge/README.md +0 -37
  983. package/bpk-component-badge/src/BpkBadge.module.scss +0 -63
  984. package/bpk-component-banner-alert/README.md +0 -151
  985. package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +0 -53
  986. package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +0 -159
  987. package/bpk-component-barchart/README.md +0 -187
  988. package/bpk-component-barchart/data.json +0 -20
  989. package/bpk-component-barchart/src/BpkBarchart.module.scss +0 -21
  990. package/bpk-component-barchart/src/BpkBarchartBar.module.scss +0 -70
  991. package/bpk-component-blockquote/README.md +0 -33
  992. package/bpk-component-blockquote/src/BpkBlockquote.module.scss +0 -29
  993. package/bpk-component-breadcrumb/README.md +0 -56
  994. package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +0 -27
  995. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss +0 -40
  996. package/bpk-component-breakpoint/README.md +0 -32
  997. package/bpk-component-button/README.md +0 -138
  998. package/bpk-component-button/src/BpkButtonBase.module.scss +0 -50
  999. package/bpk-component-button/src/BpkButtonDestructive.module.scss +0 -24
  1000. package/bpk-component-button/src/BpkButtonFeatured.module.scss +0 -23
  1001. package/bpk-component-button/src/BpkButtonLink.module.scss +0 -25
  1002. package/bpk-component-button/src/BpkButtonLinkOnDark.module.scss +0 -23
  1003. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.scss +0 -23
  1004. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.scss +0 -23
  1005. package/bpk-component-button/src/BpkButtonSecondary.module.scss +0 -23
  1006. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.scss +0 -23
  1007. package/bpk-component-calendar/DOCS.md +0 -23
  1008. package/bpk-component-calendar/README.md +0 -394
  1009. package/bpk-component-calendar/src/BpkCalendar.module.scss +0 -42
  1010. package/bpk-component-calendar/src/BpkCalendarDate.module.scss +0 -122
  1011. package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +0 -65
  1012. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +0 -50
  1013. package/bpk-component-calendar/src/BpkCalendarGridTransition.module.scss +0 -47
  1014. package/bpk-component-calendar/src/BpkCalendarNav.module.scss +0 -89
  1015. package/bpk-component-calendar/src/_variables.scss +0 -22
  1016. package/bpk-component-card/README.md +0 -61
  1017. package/bpk-component-card/src/BpkCard.module.scss +0 -27
  1018. package/bpk-component-card/src/BpkDividedCard.module.scss +0 -62
  1019. package/bpk-component-checkbox/README.md +0 -45
  1020. package/bpk-component-checkbox/src/BpkCheckbox.module.scss +0 -78
  1021. package/bpk-component-chip/README.md +0 -136
  1022. package/bpk-component-chip/src/BpkSelectableChip.module.scss +0 -23
  1023. package/bpk-component-close-button/README.md +0 -25
  1024. package/bpk-component-close-button/src/BpkCloseButton.module.scss +0 -52
  1025. package/bpk-component-code/README.md +0 -41
  1026. package/bpk-component-code/src/BpkCode.module.scss +0 -27
  1027. package/bpk-component-code/src/BpkCodeBlock.module.scss +0 -33
  1028. package/bpk-component-content-cards/README.md +0 -38
  1029. package/bpk-component-content-cards/src/BpkContentCard.module.scss +0 -87
  1030. package/bpk-component-content-cards/src/BpkContentCards.module.scss +0 -51
  1031. package/bpk-component-datatable/README.md +0 -196
  1032. package/bpk-component-datatable/src/BpkDataTable.module.scss +0 -90
  1033. package/bpk-component-datatable/src/BpkDataTableHeader.module.scss +0 -65
  1034. package/bpk-component-datepicker/README.md +0 -179
  1035. package/bpk-component-datepicker/src/BpkDatepicker.module.scss +0 -30
  1036. package/bpk-component-description-list/README.md +0 -44
  1037. package/bpk-component-description-list/src/BpkDescriptionList.module.scss +0 -37
  1038. package/bpk-component-dialog/README.md +0 -103
  1039. package/bpk-component-dialog/src/BpkDialog.module.scss +0 -80
  1040. package/bpk-component-dialog/src/BpkDialogInner.module.scss +0 -64
  1041. package/bpk-component-drawer/README.md +0 -88
  1042. package/bpk-component-drawer/src/BpkDrawer.module.scss +0 -23
  1043. package/bpk-component-drawer/src/BpkDrawerContent.module.scss +0 -107
  1044. package/bpk-component-fieldset/README.md +0 -71
  1045. package/bpk-component-fieldset/src/BpkFieldset.module.scss +0 -39
  1046. package/bpk-component-flare/README.md +0 -50
  1047. package/bpk-component-flare/src/bpk-content-bubble.module.scss +0 -61
  1048. package/bpk-component-flare/src/bpk-flare-bar.module.scss +0 -75
  1049. package/bpk-component-flare/src/svgs/corner-radius.svg +0 -1
  1050. package/bpk-component-flare/src/svgs/pointer.svg +0 -1
  1051. package/bpk-component-floating-notification/README.md +0 -48
  1052. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +0 -83
  1053. package/bpk-component-form-validation/README.md +0 -31
  1054. package/bpk-component-form-validation/src/BpkFormValidation.module.scss +0 -44
  1055. package/bpk-component-graphic-promotion/README.md +0 -68
  1056. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +0 -270
  1057. package/bpk-component-grid/README.md +0 -88
  1058. package/bpk-component-grid/src/BpkGridColumn.module.scss +0 -73
  1059. package/bpk-component-grid/src/BpkGridContainer.module.scss +0 -33
  1060. package/bpk-component-grid/src/BpkGridRow.module.scss +0 -29
  1061. package/bpk-component-grid-toggle/README.md +0 -25
  1062. package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +0 -52
  1063. package/bpk-component-horizontal-nav/README.md +0 -101
  1064. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +0 -37
  1065. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +0 -152
  1066. package/bpk-component-icon/README.md +0 -77
  1067. package/bpk-component-icon/lg/social-distancing.js +0 -8
  1068. package/bpk-component-icon/sm/social-distancing.js +0 -8
  1069. package/bpk-component-icon/src/BpkIcon.module.scss +0 -33
  1070. package/bpk-component-icon/src/withDescription.module.scss +0 -22
  1071. package/bpk-component-image/README.md +0 -140
  1072. package/bpk-component-image/src/BpkBackgroundImage.module.scss +0 -46
  1073. package/bpk-component-image/src/BpkImage.module.scss +0 -89
  1074. package/bpk-component-infinite-scroll/README.md +0 -185
  1075. package/bpk-component-infinite-scroll/src/withInfiniteScroll-test.flow.js +0 -102
  1076. package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +0 -25
  1077. package/bpk-component-input/README.md +0 -119
  1078. package/bpk-component-input/src/BpkClearButton.module.scss +0 -40
  1079. package/bpk-component-input/src/BpkInput.module.scss +0 -86
  1080. package/bpk-component-label/README.md +0 -28
  1081. package/bpk-component-label/src/BpkLabel.module.scss +0 -47
  1082. package/bpk-component-link/README.md +0 -66
  1083. package/bpk-component-link/src/BpkLink.module.scss +0 -31
  1084. package/bpk-component-list/README.md +0 -49
  1085. package/bpk-component-list/src/BpkList.module.scss +0 -37
  1086. package/bpk-component-loading-button/README.md +0 -46
  1087. package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +0 -67
  1088. package/bpk-component-map/README.md +0 -211
  1089. package/bpk-component-map/src/BpkIconMarker.module.scss +0 -79
  1090. package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +0 -53
  1091. package/bpk-component-map/src/BpkPriceMarker.module.scss +0 -148
  1092. package/bpk-component-map/src/DefaultLoadingElement.module.scss +0 -28
  1093. package/bpk-component-mobile-scroll-container/README.md +0 -72
  1094. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +0 -52
  1095. package/bpk-component-modal/README.md +0 -112
  1096. package/bpk-component-modal/src/BpkModal.module.scss +0 -46
  1097. package/bpk-component-modal/src/BpkModalInner.module.scss +0 -125
  1098. package/bpk-component-navigation-bar/README.md +0 -112
  1099. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +0 -77
  1100. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +0 -51
  1101. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +0 -43
  1102. package/bpk-component-nudger/README.md +0 -168
  1103. package/bpk-component-nudger/src/BpkNudger.module.scss +0 -50
  1104. package/bpk-component-overlay/README.md +0 -51
  1105. package/bpk-component-overlay/src/BpkOverlay.module.scss +0 -163
  1106. package/bpk-component-page-indicator/README.md +0 -42
  1107. package/bpk-component-page-indicator/src/BpkPageIndicator.module.scss +0 -91
  1108. package/bpk-component-pagination/README.md +0 -57
  1109. package/bpk-component-pagination/src/BpkPagination.module.scss +0 -22
  1110. package/bpk-component-pagination/src/BpkPaginationList.module.scss +0 -46
  1111. package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +0 -56
  1112. package/bpk-component-pagination/src/BpkPaginationPage.module.scss +0 -40
  1113. package/bpk-component-panel/README.md +0 -31
  1114. package/bpk-component-panel/src/BpkPanel.module.scss +0 -31
  1115. package/bpk-component-phone-input/README.md +0 -98
  1116. package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +0 -42
  1117. package/bpk-component-popover/README.md +0 -138
  1118. package/bpk-component-popover/src/BpkPopover.module.scss +0 -127
  1119. package/bpk-component-price/README.md +0 -35
  1120. package/bpk-component-price/src/BpkPrice.module.scss +0 -61
  1121. package/bpk-component-progress/README.md +0 -53
  1122. package/bpk-component-progress/src/BpkProgress.module.scss +0 -64
  1123. package/bpk-component-radio/README.md +0 -41
  1124. package/bpk-component-radio/src/BpkRadio.module.scss +0 -85
  1125. package/bpk-component-rating/README.md +0 -78
  1126. package/bpk-component-rating/src/BpkRating.module.scss +0 -86
  1127. package/bpk-component-rtl-toggle/README.md +0 -24
  1128. package/bpk-component-scrollable-calendar/README.md +0 -100
  1129. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +0 -31
  1130. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +0 -36
  1131. package/bpk-component-section-list/README.md +0 -50
  1132. package/bpk-component-section-list/src/BpkSectionListItem.module.scss +0 -54
  1133. package/bpk-component-section-list/src/BpkSectionListSection.module.scss +0 -35
  1134. package/bpk-component-select/README.md +0 -45
  1135. package/bpk-component-select/src/BpkSelect.module.scss +0 -126
  1136. package/bpk-component-skip-link/README.md +0 -28
  1137. package/bpk-component-skip-link/src/BpkSkipLink.module.scss +0 -50
  1138. package/bpk-component-slider/README.md +0 -41
  1139. package/bpk-component-slider/src/BpkSlider.module.scss +0 -102
  1140. package/bpk-component-spinner/README.md +0 -38
  1141. package/bpk-component-spinner/changelog.yml +0 -55
  1142. package/bpk-component-spinner/src/BpkSpinner.module.scss +0 -58
  1143. package/bpk-component-split-input/README.md +0 -40
  1144. package/bpk-component-split-input/src/BpkInputField.module.scss +0 -34
  1145. package/bpk-component-split-input/src/BpkSplitInput.module.scss +0 -36
  1146. package/bpk-component-star-rating/README.md +0 -97
  1147. package/bpk-component-star-rating/src/BpkInteractiveStar.module.scss +0 -66
  1148. package/bpk-component-star-rating/src/BpkStar.module.scss +0 -63
  1149. package/bpk-component-star-rating/src/BpkStarRating.module.scss +0 -21
  1150. package/bpk-component-switch/README.md +0 -35
  1151. package/bpk-component-switch/src/BpkSwitch.module.scss +0 -99
  1152. package/bpk-component-table/README.md +0 -64
  1153. package/bpk-component-table/src/BpkTable.module.scss +0 -39
  1154. package/bpk-component-text/README.md +0 -74
  1155. package/bpk-component-text/src/BpkText.module.scss +0 -139
  1156. package/bpk-component-textarea/README.md +0 -32
  1157. package/bpk-component-textarea/src/BpkTextarea.module.scss +0 -33
  1158. package/bpk-component-theme-toggle/README.md +0 -28
  1159. package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +0 -25
  1160. package/bpk-component-ticket/README.md +0 -35
  1161. package/bpk-component-ticket/src/BpkTicket.module.scss +0 -144
  1162. package/bpk-component-tooltip/README.md +0 -65
  1163. package/bpk-component-tooltip/src/BpkTooltip.module.scss +0 -149
  1164. package/bpk-react-utils/README.md +0 -249
  1165. package/bpk-scrim-utils/README.md +0 -47
  1166. package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +0 -32
  1167. package/bpk-scrim-utils/src/bpk-scrim.module.scss +0 -45
  1168. package/bpk-theming/README.md +0 -41
@@ -1,60 +1,39 @@
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
- /* @flow strict */
19
-
20
- import React, { type Node, Component } from 'react';
21
- import PropTypes from 'prop-types';
22
- import CSSTransition from 'react-transition-group/CSSTransition';
23
- import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
24
-
25
- import { cssModules, deprecated } from '../../bpk-react-utils';
26
- import { BpkSpinner } from '../../bpk-component-spinner';
27
-
28
- import { widthHeightAspectRatioPropType } from './customPropTypes';
29
- import STYLES from './BpkImage.module.scss';
30
- import BORDER_RADIUS_STYLES from './BpkImageBorderRadiusStyles';
31
-
32
- const getClassName = cssModules(STYLES);
33
-
34
- type ImageProps = {
35
- altText: string,
36
- hidden: ?boolean,
37
- onImageLoad: () => mixed,
38
- };
39
-
40
- class Image extends Component<ImageProps> {
41
- img: ?HTMLImageElement;
42
-
43
- static propTypes = {
44
- altText: PropTypes.string.isRequired,
45
- hidden: PropTypes.bool,
46
- onImageLoad: PropTypes.func.isRequired,
47
- };
48
-
49
- static defaultProps = {
50
- hidden: false,
51
- };
52
-
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _CSSTransition = _interopRequireDefault(require("react-transition-group/CSSTransition"));
10
+ var _base = require("@skyscanner/bpk-foundations-web/tokens/base.es6");
11
+ var _bpkReactUtils = require("../../bpk-react-utils");
12
+ var _bpkComponentSpinner = require("../../bpk-component-spinner");
13
+ var _customPropTypes = require("./customPropTypes");
14
+ var _BpkImageModule = _interopRequireDefault(require("./BpkImage.module.css"));
15
+ var _BpkImageBorderRadiusStyles = _interopRequireDefault(require("./BpkImageBorderRadiusStyles"));
16
+ const _excluded = ["altText", "hidden", "onImageLoad"],
17
+ _excluded2 = ["altText", "aspectRatio", "borderRadiusStyle", "className", "height", "inView", "loading", "onLoad", "style", "width"];
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
22
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
26
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
27
+ const getClassName = (0, _bpkReactUtils.cssModules)(_BpkImageModule.default);
28
+ class Image extends _react.Component {
53
29
  constructor(props) {
54
30
  super(props);
31
+ _defineProperty(this, "img", void 0);
32
+ _defineProperty(this, "setImgRef", el => {
33
+ this.img = el;
34
+ });
55
35
  this.img = null;
56
36
  }
57
-
58
37
  componentDidMount() {
59
38
  if (this.img && this.img.src && this.img.complete) {
60
39
  if (this.props.onImageLoad) {
@@ -62,192 +41,145 @@ class Image extends Component<ImageProps> {
62
41
  }
63
42
  }
64
43
  }
65
-
66
- setImgRef = (el) => {
67
- this.img = el;
68
- };
69
-
70
44
  render() {
71
- const { altText, hidden, onImageLoad, ...rest } = this.props;
72
-
45
+ const _this$props = this.props,
46
+ {
47
+ altText,
48
+ hidden,
49
+ onImageLoad
50
+ } = _this$props,
51
+ rest = _objectWithoutProperties(_this$props, _excluded);
73
52
  const imgClassNames = [getClassName('bpk-image__img')];
74
-
75
53
  if (hidden) {
76
54
  imgClassNames.push(getClassName('bpk-image__img--hidden'));
77
55
  }
78
-
79
56
  return (
57
+ /*#__PURE__*/
80
58
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
81
- <img
82
- className={imgClassNames.join(' ')}
83
- alt={altText}
84
- onLoad={onImageLoad}
85
- ref={this.setImgRef}
86
- {...rest}
87
- />
59
+ _react.default.createElement("img", _extends({
60
+ className: imgClassNames.join(' '),
61
+ alt: altText,
62
+ onLoad: onImageLoad,
63
+ ref: this.setImgRef
64
+ }, rest))
88
65
  );
89
66
  }
90
67
  }
91
-
92
- type BpkImageProps = {
93
- altText: string,
94
- aspectRatio: ?number,
95
- height: ?number,
96
- inView: boolean,
97
- loading: boolean,
98
- src: string,
99
- width: ?number,
100
- borderRadiusStyle: $Keys<typeof BORDER_RADIUS_STYLES>,
101
- className: ?string,
102
- onLoad: ?() => mixed,
103
- style: ?{},
104
- suppressHydrationWarning: boolean,
105
- };
106
-
107
- class BpkImage extends Component<BpkImageProps> {
108
- onImageLoad: () => mixed;
109
-
110
- placeholder: ?HTMLElement;
111
-
112
- static propTypes = {
113
- altText: PropTypes.string.isRequired,
114
- src: PropTypes.string.isRequired,
115
- aspectRatio: widthHeightAspectRatioPropType,
116
- borderRadiusStyle: PropTypes.oneOf(Object.keys(BORDER_RADIUS_STYLES)),
117
- className: PropTypes.string,
118
- inView: PropTypes.bool,
119
- loading: PropTypes.bool,
120
- onLoad: PropTypes.func,
121
- style: PropTypes.object, // eslint-disable-line react/forbid-prop-types
122
- suppressHydrationWarning: PropTypes.bool,
123
- height: deprecated(
124
- widthHeightAspectRatioPropType,
125
- 'Use "aspectRatio" instead of "width" and "height".',
126
- ),
127
- width: deprecated(
128
- widthHeightAspectRatioPropType,
129
- 'Use "aspectRatio" instead of "width" and "height".',
130
- ),
131
- };
132
-
133
- static defaultProps = {
134
- aspectRatio: null,
135
- borderRadiusStyle: BORDER_RADIUS_STYLES.none,
136
- className: null,
137
- height: null,
138
- inView: true,
139
- loading: false,
140
- onLoad: null,
141
- style: {},
142
- suppressHydrationWarning: false,
143
- width: null,
144
- };
145
-
146
- onImageLoad = (): void => {
147
- if (this.props.onLoad) {
148
- this.props.onLoad();
149
- }
150
- };
151
-
152
- getAspectRatio = () => {
153
- if (this.props.aspectRatio) {
154
- return this.props.aspectRatio;
155
- }
156
- if (this.props.width && this.props.height) {
157
- return this.props.width / this.props.height;
158
- }
159
- return 1;
160
- };
161
-
162
- render(): Node {
163
- const {
164
- altText,
165
- aspectRatio,
166
- borderRadiusStyle,
167
- className,
168
- height,
169
- inView,
170
- loading,
171
- onLoad,
172
- style,
173
- width,
174
- ...rest
175
- } = this.props;
176
-
68
+ _defineProperty(Image, "propTypes", {
69
+ altText: _propTypes.default.string.isRequired,
70
+ hidden: _propTypes.default.bool,
71
+ onImageLoad: _propTypes.default.func.isRequired
72
+ });
73
+ _defineProperty(Image, "defaultProps", {
74
+ hidden: false
75
+ });
76
+ class BpkImage extends _react.Component {
77
+ constructor(...args) {
78
+ super(...args);
79
+ _defineProperty(this, "onImageLoad", void 0);
80
+ _defineProperty(this, "placeholder", void 0);
81
+ _defineProperty(this, "onImageLoad", () => {
82
+ if (this.props.onLoad) {
83
+ this.props.onLoad();
84
+ }
85
+ });
86
+ _defineProperty(this, "getAspectRatio", () => {
87
+ if (this.props.aspectRatio) {
88
+ return this.props.aspectRatio;
89
+ }
90
+ if (this.props.width && this.props.height) {
91
+ return this.props.width / this.props.height;
92
+ }
93
+ return 1;
94
+ });
95
+ }
96
+ render() {
97
+ const _this$props2 = this.props,
98
+ {
99
+ altText,
100
+ aspectRatio,
101
+ borderRadiusStyle,
102
+ className,
103
+ height,
104
+ inView,
105
+ loading,
106
+ onLoad,
107
+ style,
108
+ width
109
+ } = _this$props2,
110
+ rest = _objectWithoutProperties(_this$props2, _excluded2);
177
111
  const classNames = [getClassName('bpk-image')];
178
-
179
112
  const aspectRatioPercentage = `${100 / this.getAspectRatio()}%`;
180
-
181
113
  if (!loading) {
182
114
  classNames.push(getClassName('bpk-image--no-background'));
183
115
  }
184
-
185
- if (borderRadiusStyle !== BORDER_RADIUS_STYLES.none) {
186
- classNames.push(
187
- getClassName(
188
- `bpk-image--border-radius-${BORDER_RADIUS_STYLES[borderRadiusStyle]}`,
189
- ),
190
- );
116
+ if (borderRadiusStyle !== _BpkImageBorderRadiusStyles.default.none) {
117
+ classNames.push(getClassName(`bpk-image--border-radius-${_BpkImageBorderRadiusStyles.default[borderRadiusStyle]}`));
191
118
  }
192
119
 
193
120
  // wraps a div with maxWidth and maxHeight set iff full-width is no required.
194
121
  // This ensures that the css / html do not reserve too much spacing
195
122
  // when width 100% is not being used
196
- return (
197
- <div style={style} className={className}>
198
- <div
199
- ref={(div) => {
200
- this.placeholder = div;
201
- }}
202
- style={{ height: 0, paddingBottom: aspectRatioPercentage }}
203
- className={classNames.join(' ')}
204
- suppressHydrationWarning={this.props.suppressHydrationWarning}
205
- >
206
- {/*
207
- Image needs to come before the spinner to avoid a problem where
208
- some images would not fully render in mobile Safari when running
209
- on a slow network.
210
-
211
- The closest to an explanation that I can come up is that putting
212
- the image first means it is rendered first so it has priority,
213
- which seems to be enough to fix it.
214
- */}
215
- {inView && (
216
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
217
- <Image
218
- hidden={loading}
219
- altText={altText}
220
- onImageLoad={this.onImageLoad}
221
- {...rest}
222
- />
223
- )}
224
- {loading && (
225
- <CSSTransition
226
- classNames={{
227
- exit: getClassName('bpk-image__spinner--shown'),
228
- exitActive: getClassName('bpk-image__spinner--hidden'),
229
- }}
230
- timeout={parseInt(animations.durationBase, 10)}
231
- >
232
- <div className={getClassName('bpk-image__spinner')}>
233
- <BpkSpinner />
234
- </div>
235
- </CSSTransition>
236
- )}
237
- {typeof window === 'undefined' && (!inView || loading) && (
238
- <noscript>
239
- {/* $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'. */}
240
- <Image
241
- altText={altText}
242
- onImageLoad={this.onImageLoad}
243
- {...rest}
244
- />
245
- </noscript>
246
- )}
247
- </div>
248
- </div>
249
- );
123
+ return /*#__PURE__*/_react.default.createElement("div", {
124
+ style: style,
125
+ className: className
126
+ }, /*#__PURE__*/_react.default.createElement("div", {
127
+ ref: div => {
128
+ this.placeholder = div;
129
+ },
130
+ style: {
131
+ height: 0,
132
+ paddingBottom: aspectRatioPercentage
133
+ },
134
+ className: classNames.join(' '),
135
+ suppressHydrationWarning: this.props.suppressHydrationWarning
136
+ }, inView &&
137
+ /*#__PURE__*/
138
+ // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
139
+ _react.default.createElement(Image, _extends({
140
+ hidden: loading,
141
+ altText: altText,
142
+ onImageLoad: this.onImageLoad
143
+ }, rest)), loading && /*#__PURE__*/_react.default.createElement(_CSSTransition.default, {
144
+ classNames: {
145
+ exit: getClassName('bpk-image__spinner--shown'),
146
+ exitActive: getClassName('bpk-image__spinner--hidden')
147
+ },
148
+ timeout: parseInt(_base.animations.durationBase, 10)
149
+ }, /*#__PURE__*/_react.default.createElement("div", {
150
+ className: getClassName('bpk-image__spinner')
151
+ }, /*#__PURE__*/_react.default.createElement(_bpkComponentSpinner.BpkSpinner, null))), typeof window === 'undefined' && (!inView || loading) && /*#__PURE__*/_react.default.createElement("noscript", null, /*#__PURE__*/_react.default.createElement(Image, _extends({
152
+ altText: altText,
153
+ onImageLoad: this.onImageLoad
154
+ }, rest)))));
250
155
  }
251
156
  }
252
-
253
- export default BpkImage;
157
+ _defineProperty(BpkImage, "propTypes", {
158
+ altText: _propTypes.default.string.isRequired,
159
+ src: _propTypes.default.string.isRequired,
160
+ aspectRatio: _customPropTypes.widthHeightAspectRatioPropType,
161
+ borderRadiusStyle: _propTypes.default.oneOf(Object.keys(_BpkImageBorderRadiusStyles.default)),
162
+ className: _propTypes.default.string,
163
+ inView: _propTypes.default.bool,
164
+ loading: _propTypes.default.bool,
165
+ onLoad: _propTypes.default.func,
166
+ style: _propTypes.default.object,
167
+ // eslint-disable-line react/forbid-prop-types
168
+ suppressHydrationWarning: _propTypes.default.bool,
169
+ height: (0, _bpkReactUtils.deprecated)(_customPropTypes.widthHeightAspectRatioPropType, 'Use "aspectRatio" instead of "width" and "height".'),
170
+ width: (0, _bpkReactUtils.deprecated)(_customPropTypes.widthHeightAspectRatioPropType, 'Use "aspectRatio" instead of "width" and "height".')
171
+ });
172
+ _defineProperty(BpkImage, "defaultProps", {
173
+ aspectRatio: null,
174
+ borderRadiusStyle: _BpkImageBorderRadiusStyles.default.none,
175
+ className: null,
176
+ height: null,
177
+ inView: true,
178
+ loading: false,
179
+ onLoad: null,
180
+ style: {},
181
+ suppressHydrationWarning: false,
182
+ width: null
183
+ });
184
+ var _default = BpkImage;
185
+ exports.default = _default;
@@ -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
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-image{opacity:1;position:relative;display:block;max-width:100%;transition:background-color 400ms ease-in-out;background-color:#dddde5;overflow:hidden;transition-delay:400ms}.bpk-image__img{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;transition:opacity 400ms ease-in-out}.bpk-image__img--hidden{opacity:0}.bpk-image__spinner{position:absolute;top:50%;left:50%;display:block;align-items:center;transform:translate(-50%, -50%)}.bpk-image__spinner--hidden{transition:opacity 400ms ease-in-out;opacity:0}.bpk-image__spinner--shown{transition:opacity 400ms ease-in-out;opacity:1}.bpk-image--no-background{background-color:transparent}.bpk-image--border-radius-sm{border-radius:.375rem}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-image{opacity:1;position:relative;display:block;max-width:100%;transition:background-color 400ms ease-in-out;background-color:#e0e3e5;overflow:hidden;transition-delay:400ms}.bpk-image__img{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;transition:opacity 400ms ease-in-out}.bpk-image__img--hidden{opacity:0}.bpk-image__spinner{position:absolute;top:50%;left:50%;display:block;align-items:center;transform:translate(-50%, -50%)}.bpk-image__spinner--hidden{transition:opacity 400ms ease-in-out;opacity:0}.bpk-image__spinner--shown{transition:opacity 400ms ease-in-out;opacity:1}.bpk-image--no-background{background-color:#05203c}.bpk-image--border-radius-sm{border-radius:.375rem}
@@ -1,3 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
1
7
  /*
2
8
  * Backpack - Skyscanner's Design System
3
9
  *
@@ -14,10 +20,9 @@
14
20
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
21
  * See the License for the specific language governing permissions and
16
22
  * limitations under the License.
17
- */
18
-
19
- /* @flow */
20
-
21
- const BORDER_RADIUS_STYLES = { none: 'none', sm: 'sm' };
22
-
23
- export default BORDER_RADIUS_STYLES;
23
+ */const BORDER_RADIUS_STYLES = {
24
+ none: 'none',
25
+ sm: 'sm'
26
+ };
27
+ var _default = BORDER_RADIUS_STYLES;
28
+ exports.default = _default;
@@ -1,3 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.widthHeightAspectRatioPropType = void 0;
1
7
  /*
2
8
  * Backpack - Skyscanner's Design System
3
9
  *
@@ -14,24 +20,13 @@
14
20
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
21
  * See the License for the specific language governing permissions and
16
22
  * limitations under the License.
17
- */
18
-
19
- /* @flow strict */
20
-
21
- // eslint-disable-next-line import/prefer-default-export
22
- export const widthHeightAspectRatioPropType = (
23
- props: Object,
24
- propName: string,
25
- componentName: string,
26
- ): ?Error => {
23
+ */ // eslint-disable-next-line import/prefer-default-export
24
+ const widthHeightAspectRatioPropType = (props, propName, componentName) => {
27
25
  const usingWidthHeight = props.width && props.height;
28
26
  const usingAspectRatio = !!props.aspectRatio;
29
-
30
27
  if (!usingWidthHeight && !usingAspectRatio) {
31
- return new Error(
32
- `Invalid prop \`${propName}\` supplied to \`${componentName}\`. You must either specify "width" and "height" or you must specify "aspectRatio".`,
33
- );
28
+ return new Error(`Invalid prop \`${propName}\` supplied to \`${componentName}\`. You must either specify "width" and "height" or you must specify "aspectRatio".`);
34
29
  }
35
-
36
30
  return null;
37
31
  };
32
+ exports.widthHeightAspectRatioPropType = widthHeightAspectRatioPropType;