@skyscanner/backpack-web 9.3.0 → 11.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 (226) hide show
  1. package/bpk-animate-height/package.json +3 -3
  2. package/bpk-component-accordion/package.json +8 -8
  3. package/bpk-component-accordion/src/BpkAccordion.module.scss +1 -1
  4. package/bpk-component-accordion/src/BpkAccordionItem.module.scss +1 -1
  5. package/bpk-component-aria-live/README.md +2 -2
  6. package/bpk-component-aria-live/index.js +0 -1
  7. package/bpk-component-aria-live/package.json +8 -9
  8. package/bpk-component-aria-live/src/BpkAriaLive.js +21 -20
  9. package/bpk-component-aria-live/src/BpkAriaLive.module.scss +1 -1
  10. package/bpk-component-autosuggest/package.json +5 -5
  11. package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +2 -2
  12. package/bpk-component-badge/package.json +6 -6
  13. package/bpk-component-badge/src/BpkBadge.module.scss +1 -1
  14. package/bpk-component-banner-alert/package.json +10 -10
  15. package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +1 -1
  16. package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +3 -3
  17. package/bpk-component-barchart/package.json +9 -9
  18. package/bpk-component-barchart/src/BpkBarchartBar.module.scss +3 -1
  19. package/bpk-component-barchart/src/BpkChartAxis.module.scss +1 -1
  20. package/bpk-component-barchart/src/BpkChartDataTable.module.scss +1 -1
  21. package/bpk-component-barchart/src/BpkChartGridLines.module.scss +2 -2
  22. package/bpk-component-blockquote/package.json +3 -3
  23. package/bpk-component-blockquote/src/BpkBlockquote.module.scss +1 -1
  24. package/bpk-component-breadcrumb/package.json +6 -6
  25. package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +1 -1
  26. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss +1 -1
  27. package/bpk-component-breakpoint/package.json +4 -4
  28. package/bpk-component-button/package.json +3 -3
  29. package/bpk-component-button/src/BpkButtonBase.module.scss +2 -2
  30. package/bpk-component-button/src/BpkButtonDestructive.module.scss +1 -1
  31. package/bpk-component-button/src/BpkButtonFeatured.module.scss +1 -1
  32. package/bpk-component-button/src/BpkButtonLink.module.scss +1 -1
  33. package/bpk-component-button/src/BpkButtonLinkOnDark.module.scss +1 -1
  34. package/bpk-component-button/src/BpkButtonOutline.module.scss +1 -1
  35. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.scss +1 -1
  36. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.scss +1 -1
  37. package/bpk-component-button/src/BpkButtonSecondary.module.scss +1 -1
  38. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.scss +1 -1
  39. package/bpk-component-calendar/DOCS.md +1 -7
  40. package/bpk-component-calendar/README.md +0 -10
  41. package/bpk-component-calendar/index.js +0 -2
  42. package/bpk-component-calendar/package.json +10 -10
  43. package/bpk-component-calendar/src/BpkCalendar.module.scss +2 -2
  44. package/bpk-component-calendar/src/BpkCalendarDate.js +0 -15
  45. package/bpk-component-calendar/src/BpkCalendarDate.module.scss +18 -51
  46. package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +8 -7
  47. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +2 -2
  48. package/bpk-component-calendar/src/BpkCalendarGridTransition.module.scss +2 -2
  49. package/bpk-component-calendar/src/BpkCalendarNav.module.scss +3 -3
  50. package/bpk-component-calendar/src/_variables.scss +2 -4
  51. package/bpk-component-card/package.json +5 -5
  52. package/bpk-component-card/src/BpkCard.module.scss +1 -1
  53. package/bpk-component-checkbox/package.json +6 -6
  54. package/bpk-component-checkbox/src/BpkCheckbox.module.scss +1 -1
  55. package/bpk-component-chip/package.json +6 -6
  56. package/bpk-component-chip/src/BpkSelectableChip.module.scss +1 -1
  57. package/bpk-component-close-button/package.json +5 -5
  58. package/bpk-component-close-button/src/BpkCloseButton.module.scss +3 -2
  59. package/bpk-component-code/package.json +3 -3
  60. package/bpk-component-code/src/BpkCode.module.scss +1 -1
  61. package/bpk-component-code/src/BpkCodeBlock.module.scss +1 -1
  62. package/bpk-component-content-cards/{index.ts → index.js} +0 -0
  63. package/bpk-component-content-cards/package.json +5 -5
  64. package/bpk-component-content-cards/src/{BpkContentCard/BpkContentCard.tsx → BpkContentCard.js} +10 -11
  65. package/bpk-component-content-cards/src/{BpkContentCard/BpkContentCard.module.scss → BpkContentCard.module.scss} +1 -1
  66. package/bpk-component-content-cards/src/{BpkContentCards.tsx → BpkContentCards.js} +11 -11
  67. package/bpk-component-content-cards/src/BpkContentCards.module.scss +1 -1
  68. package/bpk-component-content-container/package.json +3 -3
  69. package/bpk-component-content-container/src/BpkContentContainer.module.scss +1 -1
  70. package/bpk-component-datatable/README.md +78 -21
  71. package/bpk-component-datatable/package.json +6 -7
  72. package/bpk-component-datatable/src/BpkDataTable.js +176 -143
  73. package/bpk-component-datatable/src/BpkDataTable.module.scss +11 -16
  74. package/bpk-component-datatable/src/BpkDataTableColumn.js +37 -40
  75. package/bpk-component-datatable/src/BpkDataTableHeader.js +143 -0
  76. package/bpk-component-datatable/src/{BpkDataTableColumn.module.scss → BpkDataTableHeader.module.scss} +12 -12
  77. package/bpk-component-datatable/src/common-types.js +33 -11
  78. package/bpk-component-datatable/src/sort-types.js +6 -0
  79. package/bpk-component-datatable/src/utils.js +66 -9
  80. package/bpk-component-datepicker/package.json +10 -10
  81. package/bpk-component-datepicker/src/BpkDatepicker.module.scss +1 -1
  82. package/bpk-component-description-list/package.json +3 -3
  83. package/bpk-component-description-list/src/BpkDescriptionList.module.scss +1 -1
  84. package/bpk-component-dialog/package.json +9 -9
  85. package/bpk-component-dialog/src/BpkDialog.module.scss +1 -1
  86. package/bpk-component-dialog/src/BpkDialogInner.module.scss +3 -1
  87. package/bpk-component-drawer/package.json +10 -10
  88. package/bpk-component-drawer/src/BpkDrawer.module.scss +1 -1
  89. package/bpk-component-drawer/src/BpkDrawerContent.module.scss +1 -1
  90. package/bpk-component-fieldset/package.json +13 -13
  91. package/bpk-component-fieldset/src/BpkFieldset.module.scss +1 -1
  92. package/bpk-component-flare/package.json +5 -5
  93. package/bpk-component-flare/src/bpk-content-bubble.module.scss +2 -1
  94. package/bpk-component-flare/src/bpk-flare-bar.module.scss +2 -1
  95. package/bpk-component-floating-notification/README.md +0 -8
  96. package/bpk-component-floating-notification/index.js +0 -2
  97. package/bpk-component-floating-notification/package.json +6 -6
  98. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +7 -26
  99. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +5 -18
  100. package/bpk-component-form-validation/package.json +11 -11
  101. package/bpk-component-form-validation/src/BpkFormValidation.module.scss +1 -1
  102. package/bpk-component-graphic-promotion/{index.ts → index.js} +0 -0
  103. package/bpk-component-graphic-promotion/package.json +7 -6
  104. package/bpk-component-graphic-promotion/src/{BpkGraphicPromo.tsx → BpkGraphicPromo.js} +26 -16
  105. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +1 -1
  106. package/bpk-component-grid/package.json +3 -3
  107. package/bpk-component-grid/src/BpkGridColumn.module.scss +1 -1
  108. package/bpk-component-grid/src/BpkGridContainer.module.scss +1 -1
  109. package/bpk-component-grid/src/BpkGridRow.module.scss +1 -1
  110. package/bpk-component-grid-toggle/package.json +4 -4
  111. package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +1 -1
  112. package/bpk-component-horizontal-nav/package.json +7 -7
  113. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +3 -3
  114. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +15 -15
  115. package/bpk-component-icon/README.md +1 -1
  116. package/bpk-component-icon/package.json +8 -8
  117. package/bpk-component-icon/src/BpkIcon.module.scss +1 -1
  118. package/bpk-component-icon/src/withDescription.module.scss +1 -1
  119. package/bpk-component-image/package.json +7 -7
  120. package/bpk-component-image/src/BpkBackgroundImage.module.scss +1 -1
  121. package/bpk-component-image/src/BpkImage.module.scss +1 -1
  122. package/bpk-component-infinite-scroll/package.json +7 -7
  123. package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +1 -1
  124. package/bpk-component-input/package.json +7 -7
  125. package/bpk-component-input/src/BpkClearButton.module.scss +2 -2
  126. package/bpk-component-input/src/BpkInput.module.scss +1 -1
  127. package/bpk-component-label/package.json +3 -3
  128. package/bpk-component-label/src/BpkLabel.module.scss +1 -1
  129. package/bpk-component-link/package.json +5 -5
  130. package/bpk-component-link/src/BpkLink.module.scss +1 -1
  131. package/bpk-component-list/README.md +8 -5
  132. package/bpk-component-list/package.json +3 -3
  133. package/bpk-component-list/src/BpkList.js +18 -2
  134. package/bpk-component-list/src/BpkList.module.scss +1 -1
  135. package/bpk-component-loading-button/package.json +7 -7
  136. package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +1 -1
  137. package/bpk-component-map/package.json +7 -7
  138. package/bpk-component-map/src/BpkIconMarker.module.scss +3 -2
  139. package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +1 -1
  140. package/bpk-component-map/src/BpkMap.js +1 -0
  141. package/bpk-component-map/src/BpkPriceMarker.module.scss +3 -1
  142. package/bpk-component-map/src/DefaultLoadingElement.module.scss +1 -1
  143. package/bpk-component-mobile-scroll-container/README.md +1 -1
  144. package/bpk-component-mobile-scroll-container/package.json +4 -4
  145. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +3 -1
  146. package/bpk-component-modal/package.json +10 -10
  147. package/bpk-component-modal/src/BpkModal.module.scss +1 -1
  148. package/bpk-component-modal/src/BpkModalInner.module.scss +3 -1
  149. package/bpk-component-navigation-bar/package.json +9 -9
  150. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +4 -4
  151. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +5 -5
  152. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +4 -4
  153. package/bpk-component-nudger/package.json +8 -8
  154. package/bpk-component-nudger/src/BpkNudger.module.scss +1 -1
  155. package/bpk-component-overlay/package.json +5 -5
  156. package/bpk-component-overlay/src/BpkOverlay.module.scss +1 -1
  157. package/bpk-component-pagination/package.json +5 -5
  158. package/bpk-component-pagination/src/BpkPaginationList.module.scss +1 -1
  159. package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +2 -2
  160. package/bpk-component-pagination/src/BpkPaginationPage.module.scss +1 -1
  161. package/bpk-component-panel/package.json +3 -3
  162. package/bpk-component-panel/src/BpkPanel.module.scss +1 -1
  163. package/bpk-component-phone-input/package.json +10 -10
  164. package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +1 -1
  165. package/bpk-component-popover/package.json +9 -9
  166. package/bpk-component-popover/src/BpkPopover.module.scss +1 -2
  167. package/bpk-component-price/package.json +4 -4
  168. package/bpk-component-price/src/BpkPrice.module.scss +1 -1
  169. package/bpk-component-progress/package.json +6 -6
  170. package/bpk-component-progress/src/BpkProgress.module.scss +1 -1
  171. package/bpk-component-radio/package.json +5 -5
  172. package/bpk-component-radio/src/BpkRadio.module.scss +1 -2
  173. package/bpk-component-rating/package.json +5 -5
  174. package/bpk-component-rating/src/BpkRating.module.scss +1 -1
  175. package/bpk-component-rtl-toggle/package.json +3 -3
  176. package/bpk-component-scrollable-calendar/package.json +7 -7
  177. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +1 -1
  178. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +1 -2
  179. package/bpk-component-section-list/package.json +7 -7
  180. package/bpk-component-section-list/src/BpkSectionListItem.module.scss +1 -1
  181. package/bpk-component-section-list/src/BpkSectionListSection.module.scss +1 -1
  182. package/bpk-component-select/package.json +4 -4
  183. package/bpk-component-select/src/BpkSelect.module.scss +1 -1
  184. package/bpk-component-skip-link/package.json +3 -3
  185. package/bpk-component-skip-link/src/BpkSkipLink.module.scss +2 -1
  186. package/bpk-component-slider/package.json +5 -5
  187. package/bpk-component-slider/src/BpkSlider.module.scss +1 -2
  188. package/bpk-component-spinner/package.json +4 -4
  189. package/bpk-component-spinner/src/BpkSpinner.module.scss +1 -1
  190. package/bpk-component-split-input/package.json +4 -4
  191. package/bpk-component-split-input/src/BpkInputField.module.scss +1 -1
  192. package/bpk-component-split-input/src/BpkSplitInput.module.scss +1 -1
  193. package/bpk-component-star-rating/package.json +6 -6
  194. package/bpk-component-star-rating/src/BpkInteractiveStar.module.scss +3 -3
  195. package/bpk-component-star-rating/src/BpkStar.module.scss +1 -1
  196. package/bpk-component-switch/README.md +1 -1
  197. package/bpk-component-switch/package.json +3 -3
  198. package/bpk-component-switch/src/BpkSwitch.js +14 -13
  199. package/bpk-component-switch/src/BpkSwitch.module.scss +18 -12
  200. package/bpk-component-table/package.json +3 -3
  201. package/bpk-component-table/src/BpkTable.module.scss +1 -1
  202. package/bpk-component-text/package.json +3 -3
  203. package/bpk-component-text/src/BpkText.module.scss +1 -1
  204. package/bpk-component-textarea/package.json +5 -5
  205. package/bpk-component-textarea/src/BpkTextarea.module.scss +1 -1
  206. package/bpk-component-theme-toggle/package.json +6 -6
  207. package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +1 -1
  208. package/bpk-component-ticket/package.json +5 -5
  209. package/bpk-component-ticket/src/BpkTicket.module.scss +1 -1
  210. package/bpk-component-tooltip/package.json +5 -5
  211. package/bpk-component-tooltip/src/BpkTooltip.module.scss +3 -2
  212. package/bpk-react-utils/README.md +1 -1
  213. package/bpk-react-utils/package.json +1 -1
  214. package/bpk-scrim-utils/package.json +3 -3
  215. package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +1 -1
  216. package/bpk-scrim-utils/src/bpk-scrim.module.scss +1 -1
  217. package/bpk-theming/package.json +2 -2
  218. package/package.json +4 -4
  219. package/bpk-component-content-cards/src/BpkContentCard/BpkContentCard-test.tsx +0 -88
  220. package/bpk-component-content-cards/src/BpkContentCard/index.ts +0 -19
  221. package/bpk-component-content-cards/src/BpkContentCards-test.tsx +0 -126
  222. package/bpk-component-content-cards/src/accessibility-test.tsx +0 -64
  223. package/bpk-component-datatable/src/bpkHeaderRenderer.js +0 -110
  224. package/bpk-component-datatable/src/sorter.js +0 -166
  225. package/bpk-component-graphic-promotion/src/BpkGraphicPromo-test.tsx +0 -134
  226. package/bpk-component-graphic-promotion/src/accessibility-test.tsx +0 -147
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-animate-height",
3
- "version": "5.0.2",
3
+ "version": "5.0.5",
4
4
  "description": "Animate height using CSS transitions.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  "react": "^17.0.2"
21
21
  },
22
22
  "devDependencies": {
23
- "@skyscanner/bpk-foundations-web": "^9.0.0",
24
- "bpk-component-button": "^7.0.2"
23
+ "@skyscanner/bpk-foundations-web": "^9.3.0",
24
+ "bpk-component-button": "^7.0.5"
25
25
  }
26
26
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-accordion",
3
- "version": "6.1.1",
3
+ "version": "6.1.4",
4
4
  "description": "Backpack accordion component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,18 +14,18 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-animate-height": "^5.0.2",
18
- "bpk-component-icon": "^10.0.2",
19
- "bpk-component-text": "^8.0.2",
20
- "bpk-mixins": "^31.5.0",
21
- "bpk-react-utils": "^7.0.0",
17
+ "bpk-animate-height": "^5.0.5",
18
+ "bpk-component-icon": "^10.0.5",
19
+ "bpk-component-text": "^8.0.5",
20
+ "bpk-mixins": "^31.6.3",
21
+ "bpk-react-utils": "^7.0.1",
22
22
  "prop-types": "^15.7.2"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^17.0.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@skyscanner/bpk-foundations-web": "^9.0.0",
29
- "bpk-component-checkbox": "^5.0.2"
28
+ "@skyscanner/bpk-foundations-web": "^9.3.0",
29
+ "bpk-component-checkbox": "^5.0.5"
30
30
  }
31
31
  }
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-accordion {
22
22
  margin: 0;
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  $bpk-spacing-v2: true;
22
22
 
@@ -10,7 +10,7 @@ npm install bpk-component-aria-live --save-dev
10
10
 
11
11
  ## Usage
12
12
 
13
- ```js
13
+ ```tsx
14
14
  import React from 'react';
15
15
  import BpkAriaLive, { ARIA_LIVE_POLITENESS_SETTINGS } from 'bpk-component-aria-live';
16
16
 
@@ -37,6 +37,6 @@ export default () => (
37
37
 
38
38
  `aria-relevant` and `aria-atomic` props can also be set.
39
39
 
40
- `aria-relevant` determines what sort of changes should be read out. By default it is `additions` but can be `removals` or `all`. [Read more about `aria-relevant` on MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-relevant_attribute).
40
+ `aria-relevant` determines what sort of changes should be read out. By default it is `text` but can be `additions`, `removals` or `all`. [Read more about `aria-relevant` on MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-relevant).
41
41
 
42
42
  `aria-atomic` is a boolean which determines whether changes should be read out, or the whole region should be read out. [Read more about `aria-atomic` on MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#Use_Case:_Clock).
@@ -15,7 +15,6 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- /* @flow strict */
19
18
 
20
19
  import BpkAriaLive, {
21
20
  POLITENESS_SETTINGS as ARIA_LIVE_POLITENESS_SETTINGS,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-aria-live",
3
- "version": "3.0.2",
3
+ "version": "3.1.2",
4
4
  "description": "Backpack aria-live component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,16 +13,15 @@
13
13
  "registry": "https://registry.npmjs.org/"
14
14
  },
15
15
  "dependencies": {
16
- "bpk-mixins": "^31.5.0",
17
- "bpk-react-utils": "^7.0.0",
18
- "prop-types": "^15.5.8"
16
+ "bpk-mixins": "^31.6.3",
17
+ "bpk-react-utils": "^7.0.1"
19
18
  },
20
19
  "devDependencies": {
21
- "bpk-component-chip": "^6.0.2",
22
- "bpk-component-code": "^4.0.2",
23
- "bpk-component-fieldset": "^5.0.2",
24
- "bpk-component-select": "^6.0.2",
25
- "bpk-component-switch": "^3.0.2"
20
+ "bpk-component-chip": "^6.0.5",
21
+ "bpk-component-code": "^4.0.5",
22
+ "bpk-component-fieldset": "^5.0.5",
23
+ "bpk-component-select": "^6.0.5",
24
+ "bpk-component-switch": "^3.1.0"
26
25
  },
27
26
  "peerDependencies": {
28
27
  "react": "^17.0.2"
@@ -15,11 +15,11 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- /* @flow strict */
19
18
 
20
- import PropTypes from 'prop-types';
21
- import React, { type Node } from 'react';
19
+ import React from 'react';
20
+ import type { ReactElement } from 'react';
22
21
 
22
+ // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
23
23
  import { cssModules } from '../../bpk-react-utils';
24
24
 
25
25
  import STYLES from './BpkAriaLive.module.scss';
@@ -30,32 +30,33 @@ export const POLITENESS_SETTINGS = {
30
30
  off: 'off',
31
31
  polite: 'polite',
32
32
  assertive: 'assertive',
33
- };
33
+ }; // as const; // Temp disabling TS types due to non TS projects compatibility.
34
+
35
+ // Temp disabling TS types due to non TS projects compatibility.
36
+ // export type PolitenessSetting =
37
+ // typeof POLITENESS_SETTINGS[keyof typeof POLITENESS_SETTINGS];
34
38
 
35
39
  export type Props = {
36
- children: Node,
37
- politenessSetting: $Keys<typeof POLITENESS_SETTINGS>,
38
- visible: boolean,
39
- className: ?string,
40
+ children: ReactElement | string,
41
+ politenessSetting?: $Keys<typeof POLITENESS_SETTINGS>, // PolitenessSetting,
42
+ visible?: boolean,
43
+ className?: string | null,
44
+ [rest: string]: any, // Inexact rest. See decisions/inexact-rest.md
40
45
  };
41
- const BpkAriaLive = (props: Props) => {
42
- const { className, politenessSetting, visible, ...rest } = props;
46
+
47
+ const BpkAriaLive = ({
48
+ className = null,
49
+ politenessSetting = POLITENESS_SETTINGS.polite,
50
+ visible = false,
51
+ ...rest
52
+ }: Props) => {
43
53
  const classNames = getClassName(
44
54
  'bpk-aria-live',
45
55
  !visible && 'bpk-aria-live--invisible',
46
56
  className,
47
57
  );
48
58
 
49
- return (
50
- // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
51
- <div aria-live={politenessSetting} className={classNames} {...rest} />
52
- );
53
- };
54
-
55
- BpkAriaLive.propTypes = {
56
- className: PropTypes.string,
57
- politenessSetting: PropTypes.oneOf(Object.keys(POLITENESS_SETTINGS)),
58
- visible: PropTypes.bool,
59
+ return <div aria-live={politenessSetting} className={classNames} {...rest} />;
59
60
  };
60
61
 
61
62
  BpkAriaLive.defaultProps = {
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-aria-live {
22
22
  &--invisible {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-autosuggest",
3
- "version": "7.0.2",
3
+ "version": "7.0.5",
4
4
  "description": "Backpack autosuggest component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
16
16
  "dependencies": {
17
- "bpk-component-input": "^7.0.2",
18
- "bpk-mixins": "^31.5.0",
19
- "bpk-react-utils": "^7.0.0",
17
+ "bpk-component-input": "^7.0.5",
18
+ "bpk-mixins": "^31.6.3",
19
+ "bpk-react-utils": "^7.0.1",
20
20
  "prop-types": "^15.7.2",
21
21
  "react-autosuggest": "^9.4.3"
22
22
  },
@@ -24,6 +24,6 @@
24
24
  "react": "^17.0.2"
25
25
  },
26
26
  "devDependencies": {
27
- "bpk-component-icon": "^10.0.2"
27
+ "bpk-component-icon": "^10.0.5"
28
28
  }
29
29
  }
@@ -16,10 +16,9 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  $bpk-spacing-v2: true;
22
-
23
22
  $arrow-size: bpk-spacing-sm() * 3;
24
23
 
25
24
  .bpk-autosuggest {
@@ -125,6 +124,7 @@ $arrow-size: bpk-spacing-sm() * 3;
125
124
  &-inner {
126
125
  display: flex;
127
126
  flex-direction: row;
127
+ /* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
128
128
  flex-wrap: wrap;
129
129
  justify-content: space-between;
130
130
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-badge",
3
- "version": "5.1.1",
3
+ "version": "5.1.4",
4
4
  "description": "Backpack badge component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,16 +14,16 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-mixins": "^31.5.0",
18
- "bpk-react-utils": "^7.0.0",
17
+ "bpk-mixins": "^31.6.3",
18
+ "bpk-react-utils": "^7.0.1",
19
19
  "prop-types": "^15.7.2"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "^17.0.2"
23
23
  },
24
24
  "devDependencies": {
25
- "@skyscanner/bpk-foundations-web": "^9.0.0",
26
- "bpk-component-icon": "^10.0.2",
27
- "bpk-storybook-utils": "^2.0.2"
25
+ "@skyscanner/bpk-foundations-web": "^9.3.0",
26
+ "bpk-component-icon": "^10.0.5",
27
+ "bpk-storybook-utils": "^2.0.5"
28
28
  }
29
29
  }
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-badge {
22
22
  @include bpk-badge;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-banner-alert",
3
- "version": "7.0.2",
3
+ "version": "7.0.5",
4
4
  "description": "Backpack banner alert component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,19 +14,19 @@
14
14
  },
15
15
  "gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
16
16
  "dependencies": {
17
- "@skyscanner/bpk-foundations-web": "^9.0.0",
18
- "bpk-animate-height": "^5.0.2",
19
- "bpk-component-close-button": "^4.0.2",
20
- "bpk-component-icon": "^10.0.2",
21
- "bpk-mixins": "^31.5.0",
22
- "bpk-react-utils": "^7.0.0",
17
+ "@skyscanner/bpk-foundations-web": "^9.3.0",
18
+ "bpk-animate-height": "^5.0.5",
19
+ "bpk-component-close-button": "^4.0.5",
20
+ "bpk-component-icon": "^10.0.5",
21
+ "bpk-mixins": "^31.6.3",
22
+ "bpk-react-utils": "^7.0.1",
23
23
  "prop-types": "^15.7.2",
24
24
  "react-transition-group": "^2.5.3"
25
25
  },
26
26
  "devDependencies": {
27
- "bpk-component-aria-live": "^3.0.2",
28
- "bpk-component-button": "^7.0.2",
29
- "bpk-storybook-utils": "^2.0.2"
27
+ "bpk-component-aria-live": "^3.1.2",
28
+ "bpk-component-button": "^7.0.5",
29
+ "bpk-storybook-utils": "^2.0.5"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^17.0.2"
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-animate-and-fade {
22
22
  $invisible: 0.01;
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  $bpk-spacing-v2: true;
22
22
 
@@ -153,8 +153,8 @@ $bpk-spacing-v2: true;
153
153
  // Temporarily adding an extra 2px padding to align alert message and description until the icon size changes to 16px
154
154
  $extra-padding: 2 * $bpk-one-pixel-rem;
155
155
 
156
- padding: 0 bpk-spacing-xxl() bpk-spacing-md() bpk-spacing-xl() +
157
- $extra-padding;
156
+ padding: 0 bpk-spacing-xxl() bpk-spacing-md()
157
+ (bpk-spacing-xl() + $extra-padding);
158
158
  color: $bpk-banner-alert-children-color;
159
159
 
160
160
  @include bpk-text;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-barchart",
3
- "version": "5.0.2",
3
+ "version": "5.0.5",
4
4
  "description": "Backpack bar chart component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,10 +14,10 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "@skyscanner/bpk-foundations-web": "^9.0.0",
18
- "bpk-component-mobile-scroll-container": "^4.0.2",
19
- "bpk-mixins": "^31.5.0",
20
- "bpk-react-utils": "^7.0.0",
17
+ "@skyscanner/bpk-foundations-web": "^9.3.0",
18
+ "bpk-component-mobile-scroll-container": "^4.0.5",
19
+ "bpk-mixins": "^31.6.3",
20
+ "bpk-react-utils": "^7.0.1",
21
21
  "d3-path": "^2.0.0",
22
22
  "d3-scale": "^4.0.2",
23
23
  "lodash.debounce": "^4.0.8",
@@ -27,9 +27,9 @@
27
27
  "react": "^17.0.2"
28
28
  },
29
29
  "devDependencies": {
30
- "bpk-component-breakpoint": "^5.0.2",
31
- "bpk-component-content-container": "^6.0.2",
32
- "bpk-component-rtl-toggle": "^4.0.2",
33
- "bpk-component-text": "^8.0.2"
30
+ "bpk-component-breakpoint": "^5.0.5",
31
+ "bpk-component-content-container": "^6.0.5",
32
+ "bpk-component-rtl-toggle": "^4.0.5",
33
+ "bpk-component-text": "^8.0.5"
34
34
  }
35
35
  }
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-barchart-bar {
22
22
  @include bpk-themeable-property(
@@ -58,6 +58,8 @@
58
58
  shape-rendering: auto;
59
59
 
60
60
  &--outlier {
61
+ // We expect this due as this is a dyanmically applied def in BpkBarchartDefs.js
62
+ /* stylelint-disable-next-line function-url-quotes */
61
63
  mask: url(#bpk-barchart__def-mask);
62
64
  }
63
65
  }
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-chart {
22
22
  &__axis-tick {
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-chart-data-table {
22
22
  @include bpk-visually-hidden;
@@ -16,11 +16,11 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-chart {
22
22
  &__grid-line {
23
- shape-rendering: crispEdges;
23
+ shape-rendering: crispedges;
24
24
  stroke: $bpk-color-sky-gray-tint-06;
25
25
  }
26
26
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-blockquote",
3
- "version": "4.1.1",
3
+ "version": "4.1.4",
4
4
  "description": "Backpack blockquote component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,8 +14,8 @@
14
14
  },
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
- "bpk-mixins": "^31.5.0",
18
- "bpk-react-utils": "^7.0.0",
17
+ "bpk-mixins": "^31.6.3",
18
+ "bpk-react-utils": "^7.0.1",
19
19
  "prop-types": "^15.7.2"
20
20
  },
21
21
  "peerDependencies": {
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  $bpk-spacing-v2: true;
22
22
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-breadcrumb",
3
- "version": "4.1.0",
3
+ "version": "4.1.3",
4
4
  "description": "Backpack breadcrumb component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,11 +14,11 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-component-icon": "^10.0.2",
18
- "bpk-component-link": "^4.0.2",
19
- "bpk-component-text": "^8.0.2",
20
- "bpk-mixins": "^31.5.0",
21
- "bpk-react-utils": "^7.0.0",
17
+ "bpk-component-icon": "^10.0.5",
18
+ "bpk-component-link": "^4.0.5",
19
+ "bpk-component-text": "^8.0.5",
20
+ "bpk-mixins": "^31.6.3",
21
+ "bpk-react-utils": "^7.0.1",
22
22
  "prop-types": "^15.7.2"
23
23
  },
24
24
  "peerDependencies": {
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-breadcrumb {
22
22
  display: flex;
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  $bpk-spacing-v2: true;
22
22
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-breakpoint",
3
- "version": "5.0.2",
3
+ "version": "5.0.5",
4
4
  "description": "Backpack breakpoint component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,8 +14,8 @@
14
14
  },
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
- "bpk-mixins": "^31.5.0",
18
- "bpk-react-utils": "^7.0.0",
17
+ "bpk-mixins": "^31.6.3",
18
+ "bpk-react-utils": "^7.0.1",
19
19
  "prop-types": "^15.7.2",
20
20
  "react-responsive": "^8.2.0"
21
21
  },
@@ -23,6 +23,6 @@
23
23
  "react": "^17.0.2"
24
24
  },
25
25
  "devDependencies": {
26
- "@skyscanner/bpk-foundations-web": "^9.0.0"
26
+ "@skyscanner/bpk-foundations-web": "^9.3.0"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-button",
3
- "version": "7.0.2",
3
+ "version": "7.0.5",
4
4
  "description": "Backpack button component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,11 +14,11 @@
14
14
  },
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
- "bpk-mixins": "^31.5.0",
17
+ "bpk-mixins": "^31.6.3",
18
18
  "prop-types": "^15.7.2"
19
19
  },
20
20
  "devDependencies": {
21
- "bpk-storybook-utils": "^2.0.2"
21
+ "bpk-storybook-utils": "^2.0.5"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^17.0.2"
@@ -18,7 +18,7 @@
18
18
 
19
19
  /* @flow strict */
20
20
 
21
- @import '~bpk-mixins/index';
21
+ @import '~bpk-mixins/index.scss';
22
22
 
23
23
  .bpk-button {
24
24
  @include bpk-button;
@@ -45,6 +45,6 @@
45
45
  }
46
46
 
47
47
  svg {
48
- fill: currentColor;
48
+ fill: currentcolor;
49
49
  }
50
50
  }
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-button--destructive {
22
22
  @include bpk-button--secondary;
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-button--featured {
22
22
  @include bpk-button--featured;
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-button {
22
22
  &--link {
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-button--link-on-dark {
22
22
  @include bpk-button--link-on-dark;
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~bpk-mixins/index';
19
+ @import '~bpk-mixins/index.scss';
20
20
 
21
21
  .bpk-button--outline {
22
22
  @include bpk-button--outline;