@skyscanner/backpack-web 33.3.0 → 33.4.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 (180) hide show
  1. package/bpk-component-accordion/src/BpkAccordionItem.js +2 -3
  2. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -2
  3. package/bpk-component-banner-alert/src/AnimateAndFade.js +4 -4
  4. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +1 -2
  5. package/bpk-component-barchart/src/BpkBarchart.js +2 -3
  6. package/bpk-component-barchart/src/BpkBarchartBar.js +1 -2
  7. package/bpk-component-barchart/src/BpkBarchartBars.js +2 -2
  8. package/bpk-component-barchart/src/BpkBarchartDefs.js +1 -2
  9. package/bpk-component-barchart/src/BpkChartAxis.js +1 -2
  10. package/bpk-component-barchart/src/BpkChartDataTable.js +1 -2
  11. package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +1 -3
  12. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -2
  13. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +1 -2
  14. package/bpk-component-breakpoint/index.d.ts +2 -1
  15. package/bpk-component-breakpoint/src/BpkBreakpoint.js +5 -19
  16. package/bpk-component-breakpoint/src/useMediaQuery.js +10 -12
  17. package/bpk-component-calendar/src/BpkCalendarGrid.js +2 -1
  18. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +1 -2
  19. package/bpk-component-calendar/src/BpkCalendarNav.js +1 -2
  20. package/bpk-component-calendar/src/Week.js +1 -1
  21. package/bpk-component-calendar/src/composeCalendar.js +1 -2
  22. package/bpk-component-card/src/BpkCardWrapper.js +1 -2
  23. package/bpk-component-card/src/BpkDividedCard.js +1 -2
  24. package/bpk-component-card-button/src/BpkSaveButton.js +1 -2
  25. package/bpk-component-checkbox/src/BpkCheckbox.js +1 -2
  26. package/bpk-component-chip/src/BpkSelectableChip.js +2 -3
  27. package/bpk-component-close-button/src/BpkCloseButton.js +3 -2
  28. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  29. package/bpk-component-content-cards/src/BpkContentCard.js +1 -2
  30. package/bpk-component-content-cards/src/BpkContentCards.js +2 -7
  31. package/bpk-component-content-cards/src/BpkContentCards.module.css +1 -1
  32. package/bpk-component-datatable/src/BpkDataTable.js +3 -3
  33. package/bpk-component-datatable/src/BpkDataTableHeader.js +2 -3
  34. package/bpk-component-datepicker/src/BpkDatepicker.js +1 -3
  35. package/bpk-component-dialog/src/BpkDialog.js +1 -2
  36. package/bpk-component-dialog/src/BpkDialogInner.js +1 -2
  37. package/bpk-component-drawer/src/BpkDrawerContent.js +1 -2
  38. package/bpk-component-fieldset/src/BpkFieldset.js +1 -2
  39. package/bpk-component-flare/src/BpkContentBubble.js +1 -2
  40. package/bpk-component-flare/src/BpkFlareBar.js +2 -3
  41. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +2 -2
  42. package/bpk-component-form-validation/src/BpkFormValidation.js +1 -2
  43. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +1 -3
  44. package/bpk-component-icon/lg/aircraft.js +1 -2
  45. package/bpk-component-icon/lg/beach.js +1 -2
  46. package/bpk-component-icon/lg/call-back.js +1 -2
  47. package/bpk-component-icon/lg/camper-van.js +1 -2
  48. package/bpk-component-icon/lg/car-wash.js +1 -2
  49. package/bpk-component-icon/lg/cars.js +1 -2
  50. package/bpk-component-icon/lg/clean.js +1 -2
  51. package/bpk-component-icon/lg/cloakroom.js +1 -2
  52. package/bpk-component-icon/lg/content--copy.js +1 -2
  53. package/bpk-component-icon/lg/data.js +1 -2
  54. package/bpk-component-icon/lg/depart.js +1 -2
  55. package/bpk-component-icon/lg/download.js +1 -2
  56. package/bpk-component-icon/lg/education.js +1 -2
  57. package/bpk-component-icon/lg/explore.js +1 -2
  58. package/bpk-component-icon/lg/fast-track.js +1 -2
  59. package/bpk-component-icon/lg/fast-train.js +1 -2
  60. package/bpk-component-icon/lg/flight-landing.js +1 -2
  61. package/bpk-component-icon/lg/flight-takeoff.js +1 -2
  62. package/bpk-component-icon/lg/flight.js +1 -2
  63. package/bpk-component-icon/lg/legroom--extra.js +1 -2
  64. package/bpk-component-icon/lg/legroom--normal.js +1 -2
  65. package/bpk-component-icon/lg/legroom--reduced.js +1 -2
  66. package/bpk-component-icon/lg/logout.js +1 -2
  67. package/bpk-component-icon/lg/lounge.js +1 -2
  68. package/bpk-component-icon/lg/mail.js +1 -2
  69. package/bpk-component-icon/lg/mileage.js +1 -2
  70. package/bpk-component-icon/lg/new-window.js +1 -2
  71. package/bpk-component-icon/lg/plane-seat.js +1 -2
  72. package/bpk-component-icon/lg/return.js +1 -2
  73. package/bpk-component-icon/lg/scales.js +1 -2
  74. package/bpk-component-icon/lg/share--ios.js +1 -2
  75. package/bpk-component-icon/lg/social-distancing.js +1 -2
  76. package/bpk-component-icon/lg/speaker.js +1 -2
  77. package/bpk-component-icon/lg/taxi.js +1 -2
  78. package/bpk-component-icon/lg/unmute.js +1 -2
  79. package/bpk-component-icon/lg/wallet.js +1 -2
  80. package/bpk-component-icon/lg/weather--cloudy.js +1 -2
  81. package/bpk-component-icon/lg/weather--partly-cloudy.js +1 -2
  82. package/bpk-component-icon/lg/weather--rain.js +1 -2
  83. package/bpk-component-icon/lg/weather--thunderstorm.js +1 -2
  84. package/bpk-component-icon/lg/window--reduce.js +1 -2
  85. package/bpk-component-icon/lg/world--emea.js +1 -2
  86. package/bpk-component-icon/sm/aircraft.js +1 -2
  87. package/bpk-component-icon/sm/beach.js +1 -2
  88. package/bpk-component-icon/sm/bus.js +1 -2
  89. package/bpk-component-icon/sm/call-back.js +1 -2
  90. package/bpk-component-icon/sm/camper-van.js +1 -2
  91. package/bpk-component-icon/sm/car-wash.js +1 -2
  92. package/bpk-component-icon/sm/cars.js +1 -2
  93. package/bpk-component-icon/sm/chauffeur.js +1 -2
  94. package/bpk-component-icon/sm/clean.js +1 -2
  95. package/bpk-component-icon/sm/content--copy.js +1 -2
  96. package/bpk-component-icon/sm/data.js +1 -2
  97. package/bpk-component-icon/sm/depart.js +1 -2
  98. package/bpk-component-icon/sm/direct.js +1 -2
  99. package/bpk-component-icon/sm/download.js +1 -2
  100. package/bpk-component-icon/sm/education.js +1 -2
  101. package/bpk-component-icon/sm/explore.js +1 -2
  102. package/bpk-component-icon/sm/fast-track.js +1 -2
  103. package/bpk-component-icon/sm/fast-train.js +1 -2
  104. package/bpk-component-icon/sm/flight-landing.js +1 -2
  105. package/bpk-component-icon/sm/flight-takeoff.js +1 -2
  106. package/bpk-component-icon/sm/flight.js +1 -2
  107. package/bpk-component-icon/sm/hotels--jacuzzi.js +1 -2
  108. package/bpk-component-icon/sm/infant.js +1 -2
  109. package/bpk-component-icon/sm/legroom--extra.js +1 -2
  110. package/bpk-component-icon/sm/legroom--normal.js +1 -2
  111. package/bpk-component-icon/sm/legroom--reduced.js +1 -2
  112. package/bpk-component-icon/sm/logout.js +1 -2
  113. package/bpk-component-icon/sm/mail.js +1 -2
  114. package/bpk-component-icon/sm/mileage.js +1 -2
  115. package/bpk-component-icon/sm/new-window.js +1 -2
  116. package/bpk-component-icon/sm/onsen.js +1 -2
  117. package/bpk-component-icon/sm/plane-seat.js +1 -2
  118. package/bpk-component-icon/sm/return.js +1 -2
  119. package/bpk-component-icon/sm/share--ios.js +1 -2
  120. package/bpk-component-icon/sm/social-distancing.js +1 -2
  121. package/bpk-component-icon/sm/taxi.js +1 -2
  122. package/bpk-component-icon/sm/unmute.js +1 -2
  123. package/bpk-component-icon/sm/weather--cloudy.js +1 -2
  124. package/bpk-component-icon/sm/weather--rain.js +1 -2
  125. package/bpk-component-icon/sm/weather--thunderstorm.js +1 -2
  126. package/bpk-component-icon/sm/weather--wind.js +1 -2
  127. package/bpk-component-icon/sm/window--reduce.js +1 -2
  128. package/bpk-component-icon/src/withDescription.js +1 -2
  129. package/bpk-component-icon/src/withRtlSupport.js +1 -1
  130. package/bpk-component-image/src/BpkBackgroundImage.js +2 -2
  131. package/bpk-component-image/src/BpkImage.js +4 -3
  132. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +1 -2
  133. package/bpk-component-info-banner/src/AnimateAndFade.js +4 -4
  134. package/bpk-component-info-banner/src/BpkInfoBannerInner.js +1 -2
  135. package/bpk-component-input/src/BpkInput.js +2 -3
  136. package/bpk-component-label/src/BpkLabel.js +1 -2
  137. package/bpk-component-loading-button/src/BpkLoadingButton.js +1 -2
  138. package/bpk-component-map/src/BpkIconMarker.js +1 -2
  139. package/bpk-component-map/src/BpkPriceMarker.js +1 -2
  140. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.js +1 -2
  141. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -1
  142. package/bpk-component-modal/src/BpkModal.js +1 -1
  143. package/bpk-component-modal/src/BpkModalInner.js +1 -2
  144. package/bpk-component-modal/src/BpkModalV2/BpkModal.js +1 -2
  145. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +1 -2
  146. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +1 -1
  147. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +1 -1
  148. package/bpk-component-nudger/src/BpkConfigurableNudger.js +1 -2
  149. package/bpk-component-nudger/src/BpkNudger.js +1 -2
  150. package/bpk-component-overlay/src/BpkOverlay.js +1 -2
  151. package/bpk-component-page-indicator/src/BpkPageIndicator.js +1 -2
  152. package/bpk-component-pagination/src/BpkPagination.js +1 -2
  153. package/bpk-component-pagination/src/BpkPaginationNudger.js +1 -2
  154. package/bpk-component-phone-input/src/BpkPhoneInput.js +1 -2
  155. package/bpk-component-popover/src/BpkPopover.js +2 -3
  156. package/bpk-component-popover/src/BpkPopoverPortal.js +4 -6
  157. package/bpk-component-price/src/BpkPrice.js +2 -3
  158. package/bpk-component-progress/src/BpkProgress.js +1 -2
  159. package/bpk-component-radio/src/BpkRadio.js +1 -2
  160. package/bpk-component-rating/src/BpkRating.js +2 -3
  161. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +1 -2
  162. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +1 -1
  163. package/bpk-component-section-header/src/BpkSectionHeader.js +1 -2
  164. package/bpk-component-section-list/src/BpkSectionListItem.js +1 -2
  165. package/bpk-component-section-list/src/BpkSectionListSection.js +1 -2
  166. package/bpk-component-select/src/BpkSelect.js +1 -2
  167. package/bpk-component-slider/src/BpkSlider.js +2 -1
  168. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +2 -3
  169. package/bpk-component-spinner/src/BpkLargeSpinner.js +2 -3
  170. package/bpk-component-spinner/src/BpkSpinner.js +2 -3
  171. package/bpk-component-switch/src/BpkSwitch.js +1 -2
  172. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +2 -3
  173. package/bpk-component-tooltip/src/BpkTooltip.js +2 -3
  174. package/bpk-component-tooltip/src/BpkTooltipPortal.js +3 -5
  175. package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.js +2 -2
  176. package/bpk-react-utils/src/Portal.js +1 -0
  177. package/bpk-scrim-utils/src/withScrim.js +3 -3
  178. package/package.json +1 -1
  179. /package/bpk-react-utils/src/{BpkDialogWrapper.d.ts → BpkDialogWrapper/BpkDialogWrapper.d.ts} +0 -0
  180. /package/bpk-react-utils/src/{BpkDialogWrapper.module.css → BpkDialogWrapper/BpkDialogWrapper.module.css} +0 -0
@@ -18,8 +18,7 @@
18
18
  import { cloneElement } from 'react';
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import STYLES from "./BpkSelect.module.css";
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
22
  const getClassName = cssModules(STYLES);
24
23
  const BpkSelect = props => {
25
24
  const {
@@ -16,9 +16,10 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ import PropTypes from 'prop-types';
20
+
19
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
20
22
  import Slider from 'react-slider';
21
- import PropTypes from 'prop-types';
22
23
  import { cssModules, isRTL } from "../../bpk-react-utils";
23
24
  import STYLES from "./BpkSlider.module.css";
24
25
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -75,10 +75,9 @@ XlSpinner.defaultProps = {
75
75
  viewBox: "0 0 32 32"
76
76
  };
77
77
  import { cssModules } from "../../bpk-react-utils";
78
- import STYLES from "./BpkSpinner.module.css";
79
78
  import SPINNER_TYPES from "./spinnerTypes";
80
- import { jsx as _jsx } from "react/jsx-runtime";
81
- import { jsxs as _jsxs } from "react/jsx-runtime";
79
+ import STYLES from "./BpkSpinner.module.css";
80
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
82
81
  const getClassName = cssModules(STYLES);
83
82
  const BpkExtraLargeSpinner = props => {
84
83
  const {
@@ -75,10 +75,9 @@ LgSpinner.defaultProps = {
75
75
  viewBox: "0 0 24 24"
76
76
  };
77
77
  import { cssModules } from "../../bpk-react-utils";
78
- import STYLES from "./BpkSpinner.module.css";
79
78
  import SPINNER_TYPES from "./spinnerTypes";
80
- import { jsx as _jsx } from "react/jsx-runtime";
81
- import { jsxs as _jsxs } from "react/jsx-runtime";
79
+ import STYLES from "./BpkSpinner.module.css";
80
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
82
81
  const getClassName = cssModules(STYLES);
83
82
  const BpkLargeSpinner = props => {
84
83
  const {
@@ -62,10 +62,9 @@ SmSpinner.defaultProps = {
62
62
  viewBox: "0 0 16 16"
63
63
  };
64
64
  import { cssModules } from "../../bpk-react-utils";
65
- import STYLES from "./BpkSpinner.module.css";
66
65
  import SPINNER_TYPES from "./spinnerTypes";
67
- import { jsx as _jsx } from "react/jsx-runtime";
68
- import { jsxs as _jsxs } from "react/jsx-runtime";
66
+ import STYLES from "./BpkSpinner.module.css";
67
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
69
68
  const getClassName = cssModules(STYLES);
70
69
  const BpkSpinner = props => {
71
70
  const {
@@ -17,8 +17,7 @@
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
19
  import STYLES from "./BpkSwitch.module.css";
20
- import { jsx as _jsx } from "react/jsx-runtime";
21
- import { jsxs as _jsxs } from "react/jsx-runtime";
20
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
21
  const getClassName = cssModules(STYLES);
23
22
  const BpkSwitch = props => {
24
23
  const {
@@ -20,11 +20,10 @@ import { Component } from 'react';
20
20
  import BpkLabel from "../../bpk-component-label";
21
21
  import BpkSelect from "../../bpk-component-select";
22
22
  import { cssModules } from "../../bpk-react-utils";
23
- import STYLES from "./BpkThemeToggle.module.css";
24
23
  import bpkCustomThemes from "./theming";
25
24
  import { getHtmlElement, THEME_CHANGE_EVENT } from "./utils";
26
- import { jsx as _jsx } from "react/jsx-runtime";
27
- import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ import STYLES from "./BpkThemeToggle.module.css";
26
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
27
  const inputId = 'theme-select';
29
28
  const getClassName = cssModules(STYLES);
30
29
  const availableThemes = Object.keys(bpkCustomThemes);
@@ -23,10 +23,9 @@ The actual component that developers create (i.e. the default export from this p
23
23
  */
24
24
 
25
25
  import { TransitionInitialMount, cssModules } from "../../bpk-react-utils";
26
- import STYLES from "./BpkTooltip.module.css";
27
26
  import { ARROW_ID, TOOLTIP_TYPES } from "./constants";
28
- import { jsx as _jsx } from "react/jsx-runtime";
29
- import { jsxs as _jsxs } from "react/jsx-runtime";
27
+ import STYLES from "./BpkTooltip.module.css";
28
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
29
  const getClassName = cssModules(STYLES);
31
30
  const BpkTooltip = ({
32
31
  children,
@@ -16,15 +16,13 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { createPopper } from '@popperjs/core';
20
19
  import { cloneElement, Component } from 'react';
20
+ import { createPopper } from '@popperjs/core';
21
21
  import { Portal, cssModules } from "../../bpk-react-utils";
22
22
  import BpkTooltip from "./BpkTooltip";
23
- import STYLES from "./BpkTooltip.module.css";
24
23
  import { TOOLTIP_TYPES } from "./constants";
25
- import { jsx as _jsx } from "react/jsx-runtime";
26
- import { Fragment as _Fragment } from "react/jsx-runtime";
27
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ import STYLES from "./BpkTooltip.module.css";
25
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
28
26
  const getClassName = cssModules(STYLES);
29
27
  const hasTouchSupport = () => !!(typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0));
30
28
  class BpkTooltipPortal extends Component {
@@ -17,12 +17,12 @@
17
17
  */
18
18
 
19
19
  import { useEffect, useRef, useState } from "react";
20
+
20
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
21
22
  import CSSTransition from 'react-transition-group/CSSTransition';
22
23
  import cssModules from "../cssModules";
23
24
  import STYLES from "./BpkDialogWrapper.module.css";
24
- import { jsx as _jsx } from "react/jsx-runtime";
25
- import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
26
26
  const getClassName = cssModules(STYLES);
27
27
  ;
28
28
  // TODO: this check if the browser support the HTML dialog element. We can remove it once we drop support as a business for Safari 14
@@ -18,6 +18,7 @@
18
18
 
19
19
  import { Component } from 'react';
20
20
  import { createPortal } from 'react-dom';
21
+
21
22
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
23
  import assign from 'object-assign';
23
24
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -16,17 +16,17 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ import { Component } from 'react';
20
+
19
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
20
22
  import focusScope from 'a11y-focus-scope';
21
23
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
24
  import focusStore from 'a11y-focus-store';
23
- import { Component } from 'react';
24
25
  import { cssModules, isDeviceIpad, isDeviceIphone, wrapDisplayName } from "../../bpk-react-utils";
25
26
  import BpkScrim from "./BpkScrim";
26
27
  import { fixBody, lockScroll, restoreScroll, storeScroll, unfixBody, unlockScroll } from "./scroll-utils";
27
28
  import STYLES from "./bpk-scrim-content.module.css";
28
- import { jsx as _jsx } from "react/jsx-runtime";
29
- import { jsxs as _jsxs } from "react/jsx-runtime";
29
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
30
  const getClassName = cssModules(STYLES);
31
31
  const withScrim = WrappedComponent => {
32
32
  class WithScrim extends Component {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "33.3.0",
3
+ "version": "33.4.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",