@skyscanner/backpack-web 6.0.0-alpha.1 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/bpk-animate-height/package.json +2 -2
  2. package/bpk-component-accordion/package.json +6 -6
  3. package/bpk-component-accordion/src/BpkAccordion.js +1 -0
  4. package/bpk-component-accordion/src/BpkAccordionItem.js +1 -0
  5. package/bpk-component-accordion/src/withAccordionItemState.js +1 -0
  6. package/bpk-component-accordion/src/withSingleItemAccordionState.js +1 -0
  7. package/bpk-component-aria-live/package.json +7 -7
  8. package/bpk-component-aria-live/src/BpkAriaLive.js +1 -0
  9. package/bpk-component-autosuggest/package.json +4 -4
  10. package/bpk-component-autosuggest/src/BpkAutosuggest.js +2 -1
  11. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -0
  12. package/bpk-component-badge/package.json +4 -4
  13. package/bpk-component-badge/src/BpkBadge.js +1 -0
  14. package/bpk-component-banner-alert/package.json +8 -8
  15. package/bpk-component-banner-alert/src/AnimateAndFade.js +3 -2
  16. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +2 -1
  17. package/bpk-component-banner-alert/src/withBannerAlertState.js +1 -0
  18. package/bpk-component-barchart/data.json +0 -82
  19. package/bpk-component-barchart/package.json +7 -7
  20. package/bpk-component-barchart/src/BpkBarchart.js +1 -0
  21. package/bpk-component-barchart/src/BpkBarchartBar.js +2 -1
  22. package/bpk-component-barchart/src/BpkChartAxis.js +2 -1
  23. package/bpk-component-barchart/src/BpkChartDataTable.js +1 -0
  24. package/bpk-component-barchart/src/BpkChartGridLines.js +1 -0
  25. package/bpk-component-blockquote/package.json +2 -2
  26. package/bpk-component-blockquote/src/BpkBlockquote.js +1 -0
  27. package/bpk-component-breadcrumb/package.json +5 -5
  28. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -0
  29. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +1 -0
  30. package/bpk-component-breakpoint/package.json +2 -2
  31. package/bpk-component-button/package.json +2 -2
  32. package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
  33. package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
  34. package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
  35. package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
  36. package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
  37. package/bpk-component-calendar/package.json +8 -8
  38. package/bpk-component-calendar/src/BpkCalendarContainer.js +1 -0
  39. package/bpk-component-calendar/src/BpkCalendarDate.js +1 -0
  40. package/bpk-component-calendar/src/BpkCalendarGrid.js +1 -0
  41. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +1 -0
  42. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +1 -0
  43. package/bpk-component-calendar/src/BpkCalendarNav.js +1 -0
  44. package/bpk-component-calendar/src/Week.js +1 -0
  45. package/bpk-component-calendar/src/composeCalendar.js +1 -0
  46. package/bpk-component-card/package.json +4 -4
  47. package/bpk-component-card/src/BpkCard.js +1 -0
  48. package/bpk-component-checkbox/package.json +4 -4
  49. package/bpk-component-checkbox/src/BpkCheckbox.js +1 -0
  50. package/bpk-component-chip/package.json +5 -5
  51. package/bpk-component-chip/src/BpkDismissibleChip.js +1 -0
  52. package/bpk-component-chip/src/BpkSelectableChip.js +1 -0
  53. package/bpk-component-close-button/package.json +4 -4
  54. package/bpk-component-close-button/src/BpkCloseButton.js +1 -0
  55. package/bpk-component-code/package.json +2 -2
  56. package/bpk-component-code/src/BpkCode.js +1 -0
  57. package/bpk-component-code/src/BpkCodeBlock.js +1 -0
  58. package/bpk-component-content-container/package.json +2 -2
  59. package/bpk-component-content-container/src/BpkContentContainer.js +1 -0
  60. package/bpk-component-content-container/src/BpkContentContainer.module.css +1 -1
  61. package/bpk-component-datatable/package.json +3 -3
  62. package/bpk-component-datatable/src/BpkDataTable.js +2 -1
  63. package/bpk-component-datatable/src/BpkDataTableColumn.js +1 -0
  64. package/bpk-component-datatable/src/bpkHeaderRenderer.js +1 -0
  65. package/bpk-component-datepicker/package.json +8 -8
  66. package/bpk-component-datepicker/src/BpkDatepicker.js +3 -2
  67. package/bpk-component-description-list/package.json +2 -2
  68. package/bpk-component-description-list/src/ComponentFactory.js +1 -0
  69. package/bpk-component-dialog/package.json +8 -8
  70. package/bpk-component-dialog/src/BpkDialog.js +1 -0
  71. package/bpk-component-dialog/src/BpkDialogInner.js +1 -0
  72. package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
  73. package/bpk-component-drawer/package.json +8 -8
  74. package/bpk-component-drawer/src/BpkDrawer.js +1 -0
  75. package/bpk-component-drawer/src/BpkDrawerContent.js +1 -0
  76. package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
  77. package/bpk-component-fieldset/package.json +12 -12
  78. package/bpk-component-fieldset/src/BpkFieldset.js +1 -0
  79. package/bpk-component-flare/package.json +4 -4
  80. package/bpk-component-flare/src/BpkContentBubble.js +1 -0
  81. package/bpk-component-flare/src/BpkFlareBar.js +1 -0
  82. package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
  83. package/bpk-component-floating-notification/package.json +5 -4
  84. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +4 -1
  85. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
  86. package/bpk-component-form-validation/package.json +9 -9
  87. package/bpk-component-form-validation/src/BpkFormValidation.js +5 -4
  88. package/bpk-component-graphic-promotion/package.json +4 -4
  89. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +1 -0
  90. package/bpk-component-grid/package.json +2 -2
  91. package/bpk-component-grid/src/BpkGridColumn.js +1 -0
  92. package/bpk-component-grid/src/BpkGridColumn.module.css +1 -1
  93. package/bpk-component-grid/src/BpkGridContainer.js +1 -0
  94. package/bpk-component-grid/src/BpkGridContainer.module.css +1 -1
  95. package/bpk-component-grid/src/BpkGridRow.js +1 -0
  96. package/bpk-component-grid/src/BpkGridRow.module.css +1 -1
  97. package/bpk-component-grid-toggle/package.json +3 -3
  98. package/bpk-component-grid-toggle/src/BpkGridToggle.js +1 -0
  99. package/bpk-component-horizontal-nav/package.json +5 -5
  100. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +8 -12
  101. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +1 -0
  102. package/bpk-component-icon/package.json +5 -5
  103. package/bpk-component-icon/src/BpkIcon.module.css +1 -1
  104. package/bpk-component-icon/src/classNameModifierHOCFactory.js +1 -0
  105. package/bpk-component-icon/src/withAlignment.js +1 -0
  106. package/bpk-component-icon/src/withDescription.js +1 -0
  107. package/bpk-component-image/package.json +5 -5
  108. package/bpk-component-image/src/BpkBackgroundImage.js +3 -2
  109. package/bpk-component-image/src/BpkImage.js +3 -2
  110. package/bpk-component-image/src/withLazyLoading.js +2 -1
  111. package/bpk-component-image/src/withLoadingBehavior.js +1 -0
  112. package/bpk-component-infinite-scroll/package.json +6 -6
  113. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +2 -1
  114. package/bpk-component-input/package.json +6 -6
  115. package/bpk-component-input/src/BpkClearButton.js +1 -0
  116. package/bpk-component-input/src/BpkInput.js +1 -0
  117. package/bpk-component-input/src/withOpenEvents.js +1 -0
  118. package/bpk-component-label/package.json +2 -2
  119. package/bpk-component-label/src/BpkLabel.js +1 -0
  120. package/bpk-component-link/package.json +3 -3
  121. package/bpk-component-link/src/BpkButtonLink.js +1 -0
  122. package/bpk-component-link/src/BpkLink.js +1 -0
  123. package/bpk-component-list/package.json +2 -2
  124. package/bpk-component-list/src/BpkList.js +1 -0
  125. package/bpk-component-list/src/BpkList.module.css +1 -1
  126. package/bpk-component-list/src/BpkListItem.js +1 -0
  127. package/bpk-component-loading-button/package.json +6 -6
  128. package/bpk-component-loading-button/src/BpkLoadingButton.js +1 -0
  129. package/bpk-component-map/package.json +6 -6
  130. package/bpk-component-map/src/BpkIconMarker.js +1 -0
  131. package/bpk-component-map/src/BpkIconMarkerBackground.js +1 -0
  132. package/bpk-component-map/src/BpkMap.js +2 -1
  133. package/bpk-component-map/src/BpkPriceMarker.js +1 -0
  134. package/bpk-component-map/src/DefaultLoadingElement.js +1 -0
  135. package/bpk-component-mobile-scroll-container/package.json +2 -2
  136. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -0
  137. package/bpk-component-modal/package.json +9 -9
  138. package/bpk-component-modal/src/BpkModal.js +1 -0
  139. package/bpk-component-modal/src/BpkModal.module.css +1 -1
  140. package/bpk-component-modal/src/BpkModalInner.js +2 -1
  141. package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
  142. package/bpk-component-navigation-bar/package.json +7 -7
  143. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +1 -0
  144. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
  145. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +1 -0
  146. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +1 -0
  147. package/bpk-component-navigation-stack/package.json +6 -6
  148. package/bpk-component-navigation-stack/src/BpkNavigationStack.js +2 -1
  149. package/bpk-component-nudger/package.json +6 -6
  150. package/bpk-component-nudger/src/BpkConfigurableNudger.js +1 -0
  151. package/bpk-component-nudger/src/BpkNudger.js +1 -0
  152. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  153. package/bpk-component-overlay/package.json +4 -4
  154. package/bpk-component-overlay/src/BpkOverlay.js +1 -0
  155. package/bpk-component-pagination/package.json +4 -4
  156. package/bpk-component-pagination/src/BpkPagination.js +1 -0
  157. package/bpk-component-pagination/src/BpkPaginationList.js +1 -0
  158. package/bpk-component-pagination/src/BpkPaginationNudger.js +1 -0
  159. package/bpk-component-pagination/src/BpkPaginationPage.js +2 -1
  160. package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
  161. package/bpk-component-panel/package.json +2 -2
  162. package/bpk-component-panel/src/BpkPanel.js +1 -0
  163. package/bpk-component-phone-input/package.json +8 -8
  164. package/bpk-component-phone-input/src/BpkPhoneInput.js +1 -0
  165. package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
  166. package/bpk-component-popover/package.json +8 -8
  167. package/bpk-component-popover/src/BpkPopover.js +1 -0
  168. package/bpk-component-popover/src/BpkPopover.module.css +1 -1
  169. package/bpk-component-popover/src/BpkPopoverPortal.js +1 -0
  170. package/bpk-component-price/package.json +3 -3
  171. package/bpk-component-price/src/BpkPrice.js +1 -0
  172. package/bpk-component-progress/package.json +4 -4
  173. package/bpk-component-progress/src/BpkProgress.js +1 -0
  174. package/bpk-component-radio/package.json +3 -3
  175. package/bpk-component-radio/src/BpkRadio.js +1 -0
  176. package/bpk-component-rating/package.json +3 -3
  177. package/bpk-component-rating/src/BpkRating.js +1 -0
  178. package/bpk-component-rating/src/BpkRating.module.css +1 -1
  179. package/bpk-component-rtl-toggle/package.json +3 -3
  180. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +1 -0
  181. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +1 -0
  182. package/bpk-component-scrollable-calendar/package.json +5 -5
  183. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +1 -0
  184. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +1 -0
  185. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +6 -2
  186. package/bpk-component-section-list/package.json +5 -5
  187. package/bpk-component-section-list/src/BpkSectionListItem.js +1 -0
  188. package/bpk-component-section-list/src/BpkSectionListSection.js +1 -0
  189. package/bpk-component-select/package.json +3 -3
  190. package/bpk-component-select/src/BpkSelect.js +1 -0
  191. package/bpk-component-skip-link/package.json +2 -2
  192. package/bpk-component-skip-link/src/BpkSkipLink.js +1 -0
  193. package/bpk-component-slider/package.json +3 -3
  194. package/bpk-component-slider/src/BpkSlider.js +1 -0
  195. package/bpk-component-spinner/package.json +2 -2
  196. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +2 -1
  197. package/bpk-component-spinner/src/BpkLargeSpinner.js +2 -1
  198. package/bpk-component-spinner/src/BpkSpinner.js +2 -1
  199. package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
  200. package/bpk-component-split-input/package.json +3 -3
  201. package/bpk-component-split-input/src/BpkInputField.js +2 -1
  202. package/bpk-component-split-input/src/BpkSplitInput.js +2 -1
  203. package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
  204. package/bpk-component-star-rating/package.json +5 -5
  205. package/bpk-component-star-rating/src/BpkInteractiveStar.js +1 -0
  206. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +1 -0
  207. package/bpk-component-star-rating/src/BpkStar.js +1 -0
  208. package/bpk-component-star-rating/src/BpkStarRating.js +1 -0
  209. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +1 -0
  210. package/bpk-component-switch/package.json +2 -2
  211. package/bpk-component-switch/src/BpkSwitch.js +1 -0
  212. package/bpk-component-table/package.json +2 -2
  213. package/bpk-component-table/src/BpkTable.js +1 -0
  214. package/bpk-component-table/src/BpkTableCell.js +1 -0
  215. package/bpk-component-table/src/BpkTableHeadCell.js +1 -0
  216. package/bpk-component-text/package.json +2 -2
  217. package/bpk-component-text/src/BpkText.js +1 -0
  218. package/bpk-component-text/src/BpkText.module.css +1 -1
  219. package/bpk-component-textarea/package.json +4 -4
  220. package/bpk-component-textarea/src/BpkTextarea.js +1 -0
  221. package/bpk-component-theme-toggle/package.json +4 -4
  222. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +1 -0
  223. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +1 -0
  224. package/bpk-component-ticket/package.json +4 -4
  225. package/bpk-component-ticket/src/BpkTicket.js +1 -0
  226. package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
  227. package/bpk-component-tooltip/package.json +3 -3
  228. package/bpk-component-tooltip/src/BpkTooltip.js +1 -0
  229. package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
  230. package/bpk-component-tooltip/src/BpkTooltipPortal.js +1 -0
  231. package/bpk-react-utils/package.json +1 -1
  232. package/bpk-scrim-utils/package.json +2 -2
  233. package/bpk-scrim-utils/src/BpkScrim.js +1 -0
  234. package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
  235. package/bpk-scrim-utils/src/withScrim.js +1 -0
  236. package/package.json +1 -1
  237. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +0 -18
  238. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +0 -18
  239. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +0 -18
  240. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +0 -18
  241. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +0 -18
  242. package/bpk-component-graphic-promotion/src/custom-breakpoints.module.css +0 -17
  243. package/bpk-component-loading-button/src/BpkLoadingButton.module.css +0 -18
  244. package/bpk-component-map/src/BpkMap.module.css +0 -18
  245. package/bpk-component-price/src/BpkPrice.module.css +0 -18
  246. package/bpk-component-split-input/src/BpkInputField.module.css +0 -18
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-fieldset",
3
- "version": "4.1.18",
3
+ "version": "4.1.19",
4
4
  "description": "Backpack fieldset component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,23 +14,23 @@
14
14
  },
15
15
  "gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
16
16
  "dependencies": {
17
- "bpk-component-form-validation": "^4.2.16",
18
- "bpk-component-label": "^5.1.11",
17
+ "bpk-component-form-validation": "^4.2.17",
18
+ "bpk-component-label": "^5.1.12",
19
19
  "bpk-mixins": "^31.1.1",
20
- "bpk-react-utils": "^5.0.0",
20
+ "bpk-react-utils": "^6.0.0",
21
21
  "prop-types": "^15.7.2"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^16.3.0 || ^17.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "bpk-component-autosuggest": "^6.1.16",
28
- "bpk-component-button": "^6.2.6",
29
- "bpk-component-calendar": "^11.1.18",
30
- "bpk-component-checkbox": "^4.1.13",
31
- "bpk-component-datepicker": "^15.2.18",
32
- "bpk-component-input": "^6.1.16",
33
- "bpk-component-select": "^5.1.11",
34
- "bpk-component-textarea": "^4.2.11"
27
+ "bpk-component-autosuggest": "^6.1.17",
28
+ "bpk-component-button": "^6.2.7",
29
+ "bpk-component-calendar": "^11.1.19",
30
+ "bpk-component-checkbox": "^4.1.14",
31
+ "bpk-component-datepicker": "^16.0.0",
32
+ "bpk-component-input": "^6.1.17",
33
+ "bpk-component-select": "^5.1.12",
34
+ "bpk-component-textarea": "^4.2.12"
35
35
  }
36
36
  }
@@ -19,6 +19,7 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React, { cloneElement, type Element } from 'react';
22
+
22
23
  import BpkLabel from '../../bpk-component-label';
23
24
  import BpkFormValidation from '../../bpk-component-form-validation';
24
25
  import { cssModules } from '../../bpk-react-utils';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-flare",
3
- "version": "2.1.14",
3
+ "version": "2.1.15",
4
4
  "description": "Backpack FlareBar and ContentBubble component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
19
19
  "dependencies": {
20
- "bpk-component-label": "^5.1.11",
21
- "bpk-component-text": "^7.0.5",
20
+ "bpk-component-label": "^5.1.12",
21
+ "bpk-component-text": "^7.0.6",
22
22
  "bpk-mixins": "^31.1.1",
23
- "bpk-react-utils": "^5.0.0",
23
+ "bpk-react-utils": "^6.0.0",
24
24
  "prop-types": "^15.7.2"
25
25
  },
26
26
  "peerDependencies": {
@@ -18,6 +18,7 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
+
21
22
  import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import BpkFlareBar from './BpkFlareBar';
@@ -18,6 +18,7 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
+
21
22
  import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './bpk-flare-bar.module.scss';
@@ -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-flare-bar__container{position:relative;display:flex;min-width:10rem;height:1.5rem;overflow:hidden}@media (max-width: 32rem){.bpk-flare-bar__container{height:1rem}}.bpk-flare-bar__curve{position:absolute;bottom:-1px;width:700rem;height:1.5rem;margin-left:50%;transform:translateX(-50%);fill:#fff}html[dir='rtl'] .bpk-flare-bar__curve{margin-right:50%;transform:translateX(50%)}@media (max-width: 32rem){.bpk-flare-bar__curve{height:1rem}}.bpk-flare-bar__rounded-corner{position:absolute;bottom:calc(1.5rem - 1px);left:0;width:1.3125rem;height:1.3125rem;fill:#fff}.bpk-flare-bar__rounded-corner--trailing{right:0;left:auto;transform:rotate(-90deg)}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-flare-bar__container{position:relative;display:flex;min-width:10rem;height:1.5rem;overflow:hidden}@media (max-width: 32.25rem){.bpk-flare-bar__container{height:1rem}}.bpk-flare-bar__curve{position:absolute;bottom:-1px;width:700rem;height:1.5rem;margin-left:50%;transform:translateX(-50%);fill:#fff}html[dir='rtl'] .bpk-flare-bar__curve{margin-right:50%;transform:translateX(50%)}@media (max-width: 32.25rem){.bpk-flare-bar__curve{height:1rem}}.bpk-flare-bar__rounded-corner{position:absolute;bottom:calc(1.5rem - 1px);left:0;width:1.3125rem;height:1.3125rem;fill:#fff}.bpk-flare-bar__rounded-corner--trailing{right:0;left:auto;transform:rotate(-90deg)}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-floating-notification",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "description": "Backpack floating-notification component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,10 +13,11 @@
13
13
  "registry": "https://registry.npmjs.org/"
14
14
  },
15
15
  "dependencies": {
16
- "bpk-component-button": "^6.2.6",
17
- "bpk-component-text": "^7.0.5",
16
+ "bpk-component-aria-live": "^2.1.19",
17
+ "bpk-component-button": "^6.2.7",
18
+ "bpk-component-text": "^7.0.6",
18
19
  "bpk-mixins": "^31.1.1",
19
- "bpk-react-utils": "^5.0.0",
20
+ "bpk-react-utils": "^6.0.0",
20
21
  "prop-types": "^15.5.8"
21
22
  },
22
23
  "peerDependencies": {
@@ -20,6 +20,8 @@
20
20
  import PropTypes from 'prop-types';
21
21
  import React, { useEffect, useState, ReactElement } from 'react';
22
22
  import { CSSTransition } from 'react-transition-group';
23
+
24
+ import BpkAriaLive from '../../bpk-component-aria-live';
23
25
  import BpkButton from '../../bpk-component-button';
24
26
  import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
25
27
  import { cssModules } from '../../bpk-react-utils';
@@ -106,7 +108,7 @@ const BpkFloatingNotification = (props: Props) => {
106
108
  <div className={classNames} {...rest}>
107
109
  {Icon && (
108
110
  <div className={iconClassNames}>
109
- <Icon />
111
+ <Icon aria-hidden />
110
112
  </div>
111
113
  )}
112
114
  <BpkText
@@ -116,6 +118,7 @@ const BpkFloatingNotification = (props: Props) => {
116
118
  >
117
119
  {text}
118
120
  </BpkText>
121
+ <BpkAriaLive aria-hidden>{text}</BpkAriaLive>
119
122
  {ctaText && (
120
123
  <BpkButton link onClick={onClick} className={buttonClassNames}>
121
124
  {ctaText}
@@ -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-floating-notification{position:absolute;right:0;bottom:2rem;left:0;display:flex;max-width:25rem;margin:auto;padding:1.5rem;transition:opacity 400ms ease-in-out,transform 400ms ease-in-out;border-radius:.75rem;background:#02122c;color:#fff;box-shadow:0px 12px 50px 0px rgba(37,32,31,0.25),0px 4px 14px 0px rgba(37,32,31,0.25)}@media (max-width: 32rem){.bpk-floating-notification{max-width:100%;padding:1rem}}.bpk-floating-notification--leave{transform:translateY(0);opacity:1}.bpk-floating-notification--leave-active{transform:translateY(2rem);opacity:0}.bpk-floating-notification--leave-done{opacity:0}.bpk-floating-notification--appear{transform:translateY(2rem);opacity:0}.bpk-floating-notification--appear-active{transform:translateY(0);opacity:1}.bpk-floating-notification__button{min-height:0;margin:0 0 auto auto;padding:0;color:#6d9feb}.bpk-floating-notification__button--dark{color:#0770e3}.bpk-floating-notification__icon{margin:0.25rem 0.5rem 0 0.25rem;flex-shrink:0;text-align:bottom;fill:#fff}.bpk-floating-notification__icon--dark{fill:#111236}.bpk-floating-notification__text{margin-right:0.5rem}.bpk-floating-notification--dark{background:#fff;color:#111236}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-floating-notification{display:flex}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-form-validation",
3
- "version": "4.2.16",
3
+ "version": "4.2.17",
4
4
  "description": "Backpack form-validation component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-animate-height": "^4.1.11",
17
+ "bpk-animate-height": "^4.1.12",
18
18
  "bpk-mixins": "^31.1.1",
19
- "bpk-react-utils": "^5.0.0",
19
+ "bpk-react-utils": "^6.0.0",
20
20
  "prop-types": "^15.7.2"
21
21
  },
22
22
  "peerDependencies": {
@@ -24,11 +24,11 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@skyscanner/bpk-foundations-web": "^8.0.0",
27
- "bpk-component-button": "^6.2.6",
28
- "bpk-component-checkbox": "^4.1.13",
29
- "bpk-component-icon": "^9.2.12",
30
- "bpk-component-input": "^6.1.16",
31
- "bpk-component-select": "^5.1.11",
32
- "bpk-component-textarea": "^4.2.11"
27
+ "bpk-component-button": "^6.2.7",
28
+ "bpk-component-checkbox": "^4.1.14",
29
+ "bpk-component-icon": "^9.2.13",
30
+ "bpk-component-input": "^6.1.17",
31
+ "bpk-component-select": "^5.1.12",
32
+ "bpk-component-textarea": "^4.2.12"
33
33
  }
34
34
  }
@@ -18,15 +18,16 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import AnimateHeight from '../../bpk-animate-height';
22
- import { cssModules } from '../../bpk-react-utils';
23
- import BpkSmallExclamationIcon from '../../bpk-component-icon/sm/exclamation-circle';
24
- import { withAlignment } from '../../bpk-component-icon';
25
21
  import {
26
22
  lineHeightSm,
27
23
  iconSizeSm,
28
24
  } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
29
25
 
26
+ import AnimateHeight from '../../bpk-animate-height';
27
+ import { cssModules } from '../../bpk-react-utils';
28
+ import BpkSmallExclamationIcon from '../../bpk-component-icon/sm/exclamation-circle';
29
+ import { withAlignment } from '../../bpk-component-icon';
30
+
30
31
  import STYLES from './BpkFormValidation.module.scss';
31
32
 
32
33
  const getClassName = cssModules(STYLES);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-graphic-promotion",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Backpack graphic-promotion component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,10 +13,10 @@
13
13
  "registry": "https://registry.npmjs.org/"
14
14
  },
15
15
  "dependencies": {
16
- "bpk-component-button": "^6.2.6",
17
- "bpk-component-text": "^7.0.5",
16
+ "bpk-component-button": "^6.2.7",
17
+ "bpk-component-text": "^7.0.6",
18
18
  "bpk-mixins": "^31.1.1",
19
- "bpk-react-utils": "^5.0.0",
19
+ "bpk-react-utils": "^6.0.0",
20
20
  "prop-types": "^15.5.8"
21
21
  },
22
22
  "peerDependencies": {
@@ -19,6 +19,7 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React from 'react';
22
+
22
23
  import { cssModules } from '../../bpk-react-utils';
23
24
  import BpkText from '../../bpk-component-text';
24
25
  import BpkButton from '../../bpk-component-button';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-grid",
3
- "version": "3.1.11",
3
+ "version": "3.1.12",
4
4
  "description": "Backpack grid components.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
17
  "bpk-mixins": "^31.1.1",
18
- "bpk-react-utils": "^5.0.0",
18
+ "bpk-react-utils": "^6.0.0",
19
19
  "prop-types": "^15.7.2"
20
20
  },
21
21
  "peerDependencies": {
@@ -18,6 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
+
21
22
  import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './BpkGridColumn.module.scss';
@@ -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-grid__column{float:left;padding-right:.75rem;padding-left:.75rem}html[dir='rtl'] .bpk-grid__column{float:right}.bpk-grid__column--padded{padding-top:.75rem;padding-bottom:.75rem}.bpk-grid__column--debug{padding:.75rem}.bpk-grid__column-debugger{background-color:#fff}.bpk-grid__column--0{display:none}.bpk-grid__column--1{display:block;width:8.33333%}.bpk-grid__column--2{display:block;width:16.66667%}.bpk-grid__column--3{display:block;width:25%}.bpk-grid__column--4{display:block;width:33.33333%}.bpk-grid__column--5{display:block;width:41.66667%}.bpk-grid__column--6{display:block;width:50%}.bpk-grid__column--7{display:block;width:58.33333%}.bpk-grid__column--8{display:block;width:66.66667%}.bpk-grid__column--9{display:block;width:75%}.bpk-grid__column--10{display:block;width:83.33333%}.bpk-grid__column--11{display:block;width:91.66667%}.bpk-grid__column--12{display:block;width:100%}.bpk-grid__column--offset-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-0{margin-right:0}.bpk-grid__column--offset-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-1{margin-right:8.33333%;margin-left:0}.bpk-grid__column--offset-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-2{margin-right:16.66667%;margin-left:0}.bpk-grid__column--offset-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-3{margin-right:25%;margin-left:0}.bpk-grid__column--offset-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-4{margin-right:33.33333%;margin-left:0}.bpk-grid__column--offset-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-5{margin-right:41.66667%;margin-left:0}.bpk-grid__column--offset-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-6{margin-right:50%;margin-left:0}.bpk-grid__column--offset-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-7{margin-right:58.33333%;margin-left:0}.bpk-grid__column--offset-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-8{margin-right:66.66667%;margin-left:0}.bpk-grid__column--offset-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-9{margin-right:75%;margin-left:0}.bpk-grid__column--offset-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-10{margin-right:83.33333%;margin-left:0}.bpk-grid__column--offset-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-11{margin-right:91.66667%;margin-left:0}.bpk-grid__column--offset-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-12{margin-right:100%;margin-left:0}@media (max-width: 64rem){.bpk-grid__column--tablet-0{display:none}}@media (max-width: 64rem){.bpk-grid__column--tablet-1{display:block;width:8.33333%}}@media (max-width: 64rem){.bpk-grid__column--tablet-2{display:block;width:16.66667%}}@media (max-width: 64rem){.bpk-grid__column--tablet-3{display:block;width:25%}}@media (max-width: 64rem){.bpk-grid__column--tablet-4{display:block;width:33.33333%}}@media (max-width: 64rem){.bpk-grid__column--tablet-5{display:block;width:41.66667%}}@media (max-width: 64rem){.bpk-grid__column--tablet-6{display:block;width:50%}}@media (max-width: 64rem){.bpk-grid__column--tablet-7{display:block;width:58.33333%}}@media (max-width: 64rem){.bpk-grid__column--tablet-8{display:block;width:66.66667%}}@media (max-width: 64rem){.bpk-grid__column--tablet-9{display:block;width:75%}}@media (max-width: 64rem){.bpk-grid__column--tablet-10{display:block;width:83.33333%}}@media (max-width: 64rem){.bpk-grid__column--tablet-11{display:block;width:91.66667%}}@media (max-width: 64rem){.bpk-grid__column--tablet-12{display:block;width:100%}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-tablet-0{margin-right:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-1{margin-right:8.33333%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-2{margin-right:16.66667%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-tablet-3{margin-right:25%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-4{margin-right:33.33333%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-5{margin-right:41.66667%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-tablet-6{margin-right:50%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-7{margin-right:58.33333%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-8{margin-right:66.66667%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-tablet-9{margin-right:75%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-10{margin-right:83.33333%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-11{margin-right:91.66667%;margin-left:0}}@media (max-width: 64rem){.bpk-grid__column--offset-tablet-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-tablet-12{margin-right:100%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--mobile-0{display:none}}@media (max-width: 32rem){.bpk-grid__column--mobile-1{display:block;width:8.33333%}}@media (max-width: 32rem){.bpk-grid__column--mobile-2{display:block;width:16.66667%}}@media (max-width: 32rem){.bpk-grid__column--mobile-3{display:block;width:25%}}@media (max-width: 32rem){.bpk-grid__column--mobile-4{display:block;width:33.33333%}}@media (max-width: 32rem){.bpk-grid__column--mobile-5{display:block;width:41.66667%}}@media (max-width: 32rem){.bpk-grid__column--mobile-6{display:block;width:50%}}@media (max-width: 32rem){.bpk-grid__column--mobile-7{display:block;width:58.33333%}}@media (max-width: 32rem){.bpk-grid__column--mobile-8{display:block;width:66.66667%}}@media (max-width: 32rem){.bpk-grid__column--mobile-9{display:block;width:75%}}@media (max-width: 32rem){.bpk-grid__column--mobile-10{display:block;width:83.33333%}}@media (max-width: 32rem){.bpk-grid__column--mobile-11{display:block;width:91.66667%}}@media (max-width: 32rem){.bpk-grid__column--mobile-12{display:block;width:100%}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-mobile-0{margin-right:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-1{margin-right:8.33333%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-2{margin-right:16.66667%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-mobile-3{margin-right:25%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-4{margin-right:33.33333%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-5{margin-right:41.66667%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-mobile-6{margin-right:50%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-7{margin-right:58.33333%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-8{margin-right:66.66667%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-mobile-9{margin-right:75%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-10{margin-right:83.33333%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-11{margin-right:91.66667%;margin-left:0}}@media (max-width: 32rem){.bpk-grid__column--offset-mobile-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-mobile-12{margin-right:100%;margin-left:0}}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-grid__column{float:left;padding-right:.75rem;padding-left:.75rem}html[dir='rtl'] .bpk-grid__column{float:right}.bpk-grid__column--padded{padding-top:.75rem;padding-bottom:.75rem}.bpk-grid__column--debug{padding:.75rem}.bpk-grid__column-debugger{background-color:#fff}.bpk-grid__column--0{display:none}.bpk-grid__column--1{display:block;width:8.33333%}.bpk-grid__column--2{display:block;width:16.66667%}.bpk-grid__column--3{display:block;width:25%}.bpk-grid__column--4{display:block;width:33.33333%}.bpk-grid__column--5{display:block;width:41.66667%}.bpk-grid__column--6{display:block;width:50%}.bpk-grid__column--7{display:block;width:58.33333%}.bpk-grid__column--8{display:block;width:66.66667%}.bpk-grid__column--9{display:block;width:75%}.bpk-grid__column--10{display:block;width:83.33333%}.bpk-grid__column--11{display:block;width:91.66667%}.bpk-grid__column--12{display:block;width:100%}.bpk-grid__column--offset-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-0{margin-right:0}.bpk-grid__column--offset-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-1{margin-right:8.33333%;margin-left:0}.bpk-grid__column--offset-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-2{margin-right:16.66667%;margin-left:0}.bpk-grid__column--offset-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-3{margin-right:25%;margin-left:0}.bpk-grid__column--offset-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-4{margin-right:33.33333%;margin-left:0}.bpk-grid__column--offset-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-5{margin-right:41.66667%;margin-left:0}.bpk-grid__column--offset-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-6{margin-right:50%;margin-left:0}.bpk-grid__column--offset-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-7{margin-right:58.33333%;margin-left:0}.bpk-grid__column--offset-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-8{margin-right:66.66667%;margin-left:0}.bpk-grid__column--offset-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-9{margin-right:75%;margin-left:0}.bpk-grid__column--offset-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-10{margin-right:83.33333%;margin-left:0}.bpk-grid__column--offset-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-11{margin-right:91.66667%;margin-left:0}.bpk-grid__column--offset-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-12{margin-right:100%;margin-left:0}@media (max-width: 50.25rem){.bpk-grid__column--tablet-0{display:none}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-1{display:block;width:8.33333%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-2{display:block;width:16.66667%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-3{display:block;width:25%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-4{display:block;width:33.33333%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-5{display:block;width:41.66667%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-6{display:block;width:50%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-7{display:block;width:58.33333%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-8{display:block;width:66.66667%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-9{display:block;width:75%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-10{display:block;width:83.33333%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-11{display:block;width:91.66667%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-12{display:block;width:100%}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-tablet-0{margin-right:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-1{margin-right:8.33333%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-2{margin-right:16.66667%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-tablet-3{margin-right:25%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-4{margin-right:33.33333%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-5{margin-right:41.66667%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-tablet-6{margin-right:50%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-7{margin-right:58.33333%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-8{margin-right:66.66667%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-tablet-9{margin-right:75%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-10{margin-right:83.33333%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-11{margin-right:91.66667%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-tablet-12{margin-right:100%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-0{display:none}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-1{display:block;width:8.33333%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-2{display:block;width:16.66667%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-3{display:block;width:25%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-4{display:block;width:33.33333%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-5{display:block;width:41.66667%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-6{display:block;width:50%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-7{display:block;width:58.33333%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-8{display:block;width:66.66667%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-9{display:block;width:75%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-10{display:block;width:83.33333%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-11{display:block;width:91.66667%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-12{display:block;width:100%}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-mobile-0{margin-right:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-1{margin-right:8.33333%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-2{margin-right:16.66667%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-mobile-3{margin-right:25%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-4{margin-right:33.33333%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-5{margin-right:41.66667%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-mobile-6{margin-right:50%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-7{margin-right:58.33333%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-8{margin-right:66.66667%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-mobile-9{margin-right:75%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-10{margin-right:83.33333%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-11{margin-right:91.66667%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-mobile-12{margin-right:100%;margin-left:0}}
@@ -18,6 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
+
21
22
  import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './BpkGridContainer.module.scss';
@@ -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-grid__container{max-width:80rem;margin:0 auto;padding-right:.75rem;padding-left:.75rem}@media (min-width: 64.0625rem){.bpk-grid__container{padding-right:1.5rem;padding-left:1.5rem}}.bpk-grid__container--debug{background-color:#f1f2f8}.bpk-grid__container--full-width{max-width:100%}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-grid__container{max-width:71.25rem;margin:0 auto;padding-right:.75rem;padding-left:.75rem}@media (min-width: 50.3125rem){.bpk-grid__container{padding-right:1.5rem;padding-left:1.5rem}}.bpk-grid__container--debug{background-color:#f1f2f8}.bpk-grid__container--full-width{max-width:100%}
@@ -18,6 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
+
21
22
  import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './BpkGridRow.module.scss';
@@ -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-grid__row{margin-right:-.75rem;margin-left:-.75rem}.bpk-grid__row::before,.bpk-grid__row::after{content:'';display:table}.bpk-grid__row::after{clear:both}@media (min-width: 64.0625rem){.bpk-grid__row--padded:first-child{padding-top:.75rem}.bpk-grid__row--padded:last-child{padding-bottom:.75rem}}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-grid__row{margin-right:-.75rem;margin-left:-.75rem}.bpk-grid__row::before,.bpk-grid__row::after{content:'';display:table}.bpk-grid__row::after{clear:both}@media (min-width: 50.3125rem){.bpk-grid__row--padded:first-child{padding-top:.75rem}.bpk-grid__row--padded:last-child{padding-bottom:.75rem}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-grid-toggle",
3
- "version": "3.1.11",
3
+ "version": "3.1.12",
4
4
  "description": "Backpack vertical grid toggle component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
- "bpk-component-link": "^3.1.11",
17
+ "bpk-component-link": "^3.1.12",
18
18
  "bpk-mixins": "^31.1.1",
19
- "bpk-react-utils": "^5.0.0",
19
+ "bpk-react-utils": "^6.0.0",
20
20
  "prop-types": "^15.7.2"
21
21
  },
22
22
  "peerDependencies": {
@@ -18,6 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
+
21
22
  import { cssModules } from '../../bpk-react-utils';
22
23
  import { BpkButtonLink } from '../../bpk-component-link';
23
24
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-horizontal-nav",
3
- "version": "5.1.12",
3
+ "version": "5.1.14",
4
4
  "description": "Backpack horizontal nav component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-component-mobile-scroll-container": "^3.1.11",
17
+ "bpk-component-mobile-scroll-container": "^3.1.12",
18
18
  "bpk-mixins": "^31.1.1",
19
- "bpk-react-utils": "^5.0.0",
19
+ "bpk-react-utils": "^6.0.0",
20
20
  "prop-types": "^15.7.2"
21
21
  },
22
22
  "peerDependencies": {
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@skyscanner/bpk-foundations-web": "^8.0.0",
27
- "bpk-component-text": "^7.0.5",
28
- "bpk-storybook-utils": "^1.1.10"
27
+ "bpk-component-text": "^7.0.6",
28
+ "bpk-storybook-utils": "^1.1.11"
29
29
  }
30
30
  }
@@ -18,9 +18,9 @@
18
18
  /* @flow strict */
19
19
 
20
20
  import PropTypes from 'prop-types';
21
- import ReactDOM from 'react-dom';
22
- import { cssModules } from '../../bpk-react-utils';
23
21
  import React, { Component, type Node } from 'react';
22
+
23
+ import { cssModules } from '../../bpk-react-utils';
24
24
  import BpkMobileScrollContainer from '../../bpk-component-mobile-scroll-container';
25
25
 
26
26
  import STYLES from './BpkHorizontalNav.module.scss';
@@ -98,17 +98,11 @@ class BpkHorizontalNav extends Component<Props> {
98
98
  return;
99
99
  }
100
100
 
101
- // Using find dom node is preferable here over changing the underlying mechanism of BpkHorizontalNavItem to accomodate dom-node refs
102
- // eslint-disable-next-line react/no-find-dom-node
103
- const selectedItemRef = ((ReactDOM.findDOMNode(
104
- this.selectedItemRef,
105
- ): any): Element);
106
-
107
101
  if (!this.scrollRef) {
108
102
  return;
109
103
  }
110
104
 
111
- const selectedItemPos = getPos(selectedItemRef);
105
+ const selectedItemPos = getPos(this.selectedItemRef);
112
106
  if (!selectedItemPos) {
113
107
  return;
114
108
  }
@@ -167,10 +161,10 @@ class BpkHorizontalNav extends Component<Props> {
167
161
  if (autoScrollToSelected || type === HORIZONTAL_NAV_TYPES.light) {
168
162
  children = React.Children.map(rawChildren, (child) => {
169
163
  const childProps = {};
170
-
164
+ let childRef;
171
165
  if (autoScrollToSelected) {
172
166
  if (child && child.props && child.props.selected) {
173
- childProps.ref = (ref) => {
167
+ childRef = (ref) => {
174
168
  this.selectedItemRef = ref;
175
169
  };
176
170
  }
@@ -180,7 +174,9 @@ class BpkHorizontalNav extends Component<Props> {
180
174
  childProps.type = HORIZONTAL_NAV_TYPES.light;
181
175
  }
182
176
 
183
- return child ? React.cloneElement(child, childProps) : null;
177
+ return child ? (
178
+ <div ref={childRef}>{React.cloneElement(child, childProps)}</div>
179
+ ) : null;
184
180
  });
185
181
  }
186
182
 
@@ -19,6 +19,7 @@
19
19
 
20
20
  import React, { Component, type Node } from 'react';
21
21
  import PropTypes from 'prop-types';
22
+
22
23
  import { cssModules } from '../../bpk-react-utils';
23
24
 
24
25
  import { HORIZONTAL_NAV_TYPES } from './BpkHorizontalNav';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-icon",
3
- "version": "9.2.12",
3
+ "version": "9.2.13",
4
4
  "description": "Backpack icon components.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,13 +20,13 @@
20
20
  "@skyscanner/bpk-foundations-web": "^8.0.0",
21
21
  "@skyscanner/bpk-svgs": "^14.1.9",
22
22
  "bpk-mixins": "^31.1.1",
23
- "bpk-react-utils": "^5.0.0",
23
+ "bpk-react-utils": "^6.0.0",
24
24
  "prop-types": "^15.7.2"
25
25
  },
26
26
  "devDependencies": {
27
- "bpk-component-button": "^6.2.6",
28
- "bpk-component-list": "^4.0.4",
29
- "bpk-component-text": "^7.0.5"
27
+ "bpk-component-button": "^6.2.7",
28
+ "bpk-component-list": "^4.0.5",
29
+ "bpk-component-text": "^7.0.6"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^16.3.0 || ^17.0.0"
@@ -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-icon--align-to-button{vertical-align:text-bottom}.bpk-icon--align-to-large-button{margin-top:0rem;vertical-align:top}html[dir='rtl'] .bpk-icon--rtl-support{transform:scaleX(-1)}
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-icon--align-to-button{vertical-align:text-bottom}.bpk-icon--align-to-large-button{margin-top:.1875rem;vertical-align:top}html[dir='rtl'] .bpk-icon--rtl-support{transform:scaleX(-1)}
@@ -18,6 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
+
21
22
  import { wrapDisplayName } from '../../bpk-react-utils';
22
23
 
23
24
  export default (displayName, classNamesToAdd = []) =>
@@ -17,6 +17,7 @@
17
17
  */
18
18
 
19
19
  import React from 'react';
20
+
20
21
  import { wrapDisplayName } from '../../bpk-react-utils';
21
22
 
22
23
  export default function withAlignment(Component, objectHeight, subjectHeight) {
@@ -18,6 +18,7 @@
18
18
  /* @flow strict */
19
19
 
20
20
  import React, { type AbstractComponent } from 'react';
21
+
21
22
  import { cssModules, wrapDisplayName } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './withDescription.module.scss';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-image",
3
- "version": "5.1.13",
3
+ "version": "5.1.14",
4
4
  "description": "Backpack image component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,9 +15,9 @@
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^8.0.0",
18
- "bpk-component-spinner": "^5.1.11",
18
+ "bpk-component-spinner": "^5.1.12",
19
19
  "bpk-mixins": "^31.1.1",
20
- "bpk-react-utils": "^5.0.0",
20
+ "bpk-react-utils": "^6.0.0",
21
21
  "prop-types": "^15.7.2",
22
22
  "react-transition-group": "^2.5.3"
23
23
  },
@@ -25,7 +25,7 @@
25
25
  "react": "^16.3.0 || ^17.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "bpk-component-mobile-scroll-container": "^3.1.11",
29
- "bpk-component-text": "^7.0.5"
28
+ "bpk-component-mobile-scroll-container": "^3.1.12",
29
+ "bpk-component-text": "^7.0.6"
30
30
  }
31
31
  }
@@ -19,11 +19,12 @@
19
19
 
20
20
  import React, { type Node, Component } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import { cssModules, deprecated } from '../../bpk-react-utils';
23
- import { BpkSpinner } from '../../bpk-component-spinner';
24
22
  import CSSTransition from 'react-transition-group/CSSTransition';
25
23
  import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
26
24
 
25
+ import { cssModules, deprecated } from '../../bpk-react-utils';
26
+ import { BpkSpinner } from '../../bpk-component-spinner';
27
+
27
28
  import { widthHeightAspectRatioPropType } from './customPropTypes';
28
29
  import STYLES from './BpkBackgroundImage.module.scss';
29
30
 
@@ -19,11 +19,12 @@
19
19
 
20
20
  import React, { type Node, Component } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import { cssModules, deprecated } from '../../bpk-react-utils';
23
- import { BpkSpinner } from '../../bpk-component-spinner';
24
22
  import CSSTransition from 'react-transition-group/CSSTransition';
25
23
  import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
26
24
 
25
+ import { cssModules, deprecated } from '../../bpk-react-utils';
26
+ import { BpkSpinner } from '../../bpk-component-spinner';
27
+
27
28
  import { widthHeightAspectRatioPropType } from './customPropTypes';
28
29
  import STYLES from './BpkImage.module.scss';
29
30
  import BORDER_RADIUS_STYLES from './BpkImageBorderRadiusStyles';
@@ -19,9 +19,10 @@
19
19
 
20
20
  import React, { type Node, type ComponentType } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import { wrapDisplayName } from '../../bpk-react-utils';
23
22
  import throttle from 'lodash/throttle';
24
23
 
24
+ import { wrapDisplayName } from '../../bpk-react-utils';
25
+
25
26
  type WithLazyLoadingProps = {
26
27
  className: ?string,
27
28
  style: ?{},
@@ -18,6 +18,7 @@
18
18
  /* @flow */
19
19
 
20
20
  import React, { type AbstractComponent } from 'react';
21
+
21
22
  import { wrapDisplayName } from '../../bpk-react-utils';
22
23
 
23
24
  type InjectedProps = {|