@skyscanner/backpack-web 33.4.0 → 33.6.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 (169) hide show
  1. package/bpk-component-accordion/index.js +1 -1
  2. package/bpk-component-accordion/src/BpkAccordionItem.js +12 -12
  3. package/bpk-component-accordion/src/BpkAccordionItem.module.css +1 -1
  4. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +4 -1
  5. package/bpk-component-banner-alert/index.js +1 -1
  6. package/bpk-component-banner-alert/src/AnimateAndFade.js +33 -31
  7. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +11 -4
  8. package/bpk-component-barchart/src/BpkBarchart.js +8 -8
  9. package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +3 -3
  10. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +17 -12
  11. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +1 -1
  12. package/bpk-component-breakpoint/src/BpkBreakpoint.js +20 -4
  13. package/bpk-component-breakpoint/src/useMediaQuery.js +10 -7
  14. package/bpk-component-button/index.js +5 -5
  15. package/bpk-component-button/src/BpkButtonDestructive.js +10 -9
  16. package/bpk-component-button/src/BpkButtonFeatured.js +10 -9
  17. package/bpk-component-button/src/BpkButtonLink.js +11 -10
  18. package/bpk-component-button/src/BpkButtonLinkOnDark.js +11 -10
  19. package/bpk-component-button/src/BpkButtonPrimary.js +2 -2
  20. package/bpk-component-button/src/BpkButtonPrimaryOnDark.js +10 -9
  21. package/bpk-component-button/src/BpkButtonPrimaryOnLight.js +10 -9
  22. package/bpk-component-button/src/BpkButtonSecondary.js +10 -10
  23. package/bpk-component-button/src/BpkButtonSecondaryOnDark.js +10 -9
  24. package/bpk-component-calendar/index.js +1 -1
  25. package/bpk-component-calendar/src/BpkCalendarContainer.js +3 -3
  26. package/bpk-component-calendar/src/BpkCalendarGrid.js +2 -2
  27. package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
  28. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +4 -1
  29. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +5 -2
  30. package/bpk-component-calendar/src/BpkCalendarNav.js +9 -3
  31. package/bpk-component-calendar/src/Week.js +6 -3
  32. package/bpk-component-calendar/src/composeCalendar.js +8 -2
  33. package/bpk-component-calendar/src/date-utils.js +14 -14
  34. package/bpk-component-card/src/BpkDividedCard.js +18 -13
  35. package/bpk-component-card-button/src/BpkSaveButton.js +13 -4
  36. package/bpk-component-chip/index.d.ts +3 -5
  37. package/bpk-component-chip/index.js +3 -2
  38. package/bpk-component-chip/src/BpkDismissibleChip.js +5 -3
  39. package/bpk-component-chip/src/BpkIconChip.d.ts +25 -0
  40. package/bpk-component-chip/src/BpkIconChip.js +31 -0
  41. package/bpk-component-chip/src/BpkSelectableChip.d.ts +0 -2
  42. package/bpk-component-chip/src/BpkSelectableChip.js +4 -3
  43. package/bpk-component-chip/src/BpkSelectableChip.module.css +1 -1
  44. package/bpk-component-chip/src/commonTypes.d.ts +1 -1
  45. package/bpk-component-chip/src/commonTypes.js +1 -24
  46. package/bpk-component-close-button/src/BpkCloseButton.js +7 -4
  47. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  48. package/bpk-component-content-cards/src/BpkContentCard.js +8 -2
  49. package/bpk-component-datatable/src/BpkDataTable.js +1 -1
  50. package/bpk-component-datatable/src/BpkDataTableHeader.js +12 -8
  51. package/bpk-component-datatable/src/BpkDataTableHeader.module.css +1 -1
  52. package/bpk-component-datepicker/src/BpkDatepicker.js +2 -7
  53. package/bpk-component-description-list/index.js +1 -1
  54. package/bpk-component-description-list/src/ComponentFactory.js +10 -5
  55. package/bpk-component-dialog/src/BpkDialog.js +6 -4
  56. package/bpk-component-dialog/src/BpkDialog.module.css +1 -1
  57. package/bpk-component-dialog/src/BpkDialogInner.js +6 -3
  58. package/bpk-component-drawer/src/BpkDrawer.js +1 -4
  59. package/bpk-component-drawer/src/BpkDrawerContent.js +7 -5
  60. package/bpk-component-fieldset/src/BpkFieldset.js +9 -7
  61. package/bpk-component-flare/index.js +2 -2
  62. package/bpk-component-flare/src/BpkContentBubble.js +4 -1
  63. package/bpk-component-flare/src/BpkFlareBar.js +13 -4
  64. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +8 -2
  65. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
  66. package/bpk-component-form-validation/src/BpkFormValidation.js +5 -4
  67. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +9 -11
  68. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +1 -1
  69. package/bpk-component-grid-toggle/src/BpkGridToggle.js +8 -6
  70. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +16 -14
  71. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +1 -1
  72. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +2 -2
  73. package/bpk-component-icon/index.js +1 -1
  74. package/bpk-component-icon/lg/ai.js +1 -2
  75. package/bpk-component-icon/lg/dot.js +20 -0
  76. package/bpk-component-icon/sm/ai.js +1 -2
  77. package/bpk-component-icon/sm/dot.js +20 -0
  78. package/bpk-component-icon/src/classNameModifierHOCFactory.js +3 -0
  79. package/bpk-component-image/index.js +2 -2
  80. package/bpk-component-image/src/BpkBackgroundImage.js +2 -1
  81. package/bpk-component-image/src/BpkImage.js +2 -1
  82. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +3 -3
  83. package/bpk-component-info-banner/src/AnimateAndFade.js +33 -31
  84. package/bpk-component-info-banner/src/BpkInfoBanner.module.css +1 -1
  85. package/bpk-component-info-banner/src/BpkInfoBannerInner.js +16 -12
  86. package/bpk-component-input/index.js +1 -1
  87. package/bpk-component-input/src/BpkClearButton.js +3 -1
  88. package/bpk-component-input/src/BpkInput.js +4 -1
  89. package/bpk-component-input/src/withOpenEvents.js +4 -1
  90. package/bpk-component-link/index.js +2 -2
  91. package/bpk-component-list/src/BpkList.js +2 -2
  92. package/bpk-component-loading-button/src/BpkLoadingButton.js +6 -3
  93. package/bpk-component-map/index.js +4 -4
  94. package/bpk-component-map/src/BpkIconMarker.js +1 -1
  95. package/bpk-component-map/src/BpkMap.js +4 -3
  96. package/bpk-component-map/src/BpkPriceMarker.js +7 -5
  97. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.js +1 -1
  98. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +0 -8
  99. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +1 -1
  100. package/bpk-component-modal/index.js +4 -3
  101. package/bpk-component-modal/src/BpkModal.d.ts +2 -1
  102. package/bpk-component-modal/src/BpkModal.js +4 -2
  103. package/bpk-component-modal/src/BpkModalInner.d.ts +2 -0
  104. package/bpk-component-modal/src/BpkModalInner.js +24 -8
  105. package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
  106. package/bpk-component-modal/src/BpkModalV2/BpKModal.module.css +1 -1
  107. package/bpk-component-modal/src/BpkModalV2/BpkModal.d.ts +2 -0
  108. package/bpk-component-modal/src/BpkModalV2/BpkModal.js +19 -8
  109. package/bpk-component-navigation-bar/index.js +1 -1
  110. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +7 -5
  111. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +7 -7
  112. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +8 -8
  113. package/bpk-component-nudger/index.js +1 -1
  114. package/bpk-component-nudger/src/BpkConfigurableNudger.js +16 -4
  115. package/bpk-component-nudger/src/BpkNudger.js +15 -8
  116. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  117. package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +1 -1
  118. package/bpk-component-page-indicator/src/NavButton.js +1 -1
  119. package/bpk-component-pagination/src/BpkPaginationList.js +1 -1
  120. package/bpk-component-pagination/src/BpkPaginationNudger.js +13 -4
  121. package/bpk-component-pagination/src/BpkPaginationPage.js +4 -1
  122. package/bpk-component-phone-input/src/BpkPhoneInput.js +19 -10
  123. package/bpk-component-popover/src/BpkPopover.js +6 -3
  124. package/bpk-component-popover/src/BpkPopoverPortal.js +5 -2
  125. package/bpk-component-popover/src/keyboardFocusScope.js +1 -1
  126. package/bpk-component-price/src/BpkPrice.js +17 -5
  127. package/bpk-component-rating/src/BpkRating.js +17 -5
  128. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +0 -4
  129. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +6 -3
  130. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +6 -3
  131. package/bpk-component-section-header/src/BpkSectionHeader.js +6 -5
  132. package/bpk-component-section-header/src/BpkSectionHeader.module.css +1 -1
  133. package/bpk-component-section-list/index.js +1 -1
  134. package/bpk-component-section-list/src/BpkSectionListItem.js +8 -6
  135. package/bpk-component-section-list/src/BpkSectionListItem.module.css +1 -1
  136. package/bpk-component-section-list/src/BpkSectionListSection.js +1 -1
  137. package/{bpk-component-datepicker/src/BpkDatepicker.module.css → bpk-component-skeleton/index.js} +8 -5
  138. package/bpk-component-skeleton/src/BpkBaseSkeleton.js +30 -0
  139. package/bpk-component-skeleton/src/BpkBaseSkeleton.module.css +18 -0
  140. package/bpk-component-skeleton/src/BpkSkeleton.js +38 -0
  141. package/bpk-component-skeleton/src/BpkSkeleton.module.css +18 -0
  142. package/bpk-component-skeleton/src/common-types.js +33 -0
  143. package/bpk-component-spinner/index.js +3 -3
  144. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +6 -4
  145. package/bpk-component-spinner/src/BpkLargeSpinner.js +6 -4
  146. package/bpk-component-spinner/src/BpkSpinner.js +6 -4
  147. package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
  148. package/bpk-component-split-input/src/BpkInputField.js +2 -2
  149. package/bpk-component-split-input/src/BpkSplitInput.js +3 -3
  150. package/bpk-component-star-rating/index.js +4 -4
  151. package/bpk-component-star-rating/src/BpkInteractiveStar.js +6 -3
  152. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +1 -1
  153. package/bpk-component-star-rating/src/BpkStar.js +18 -18
  154. package/bpk-component-star-rating/src/BpkStar.module.css +1 -1
  155. package/bpk-component-swap-button/src/BpkSwapButton.js +2 -1
  156. package/bpk-component-table/index.js +2 -2
  157. package/bpk-component-text/src/BpkText.js +10 -5
  158. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +5 -3
  159. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +1 -1
  160. package/bpk-component-tooltip/src/BpkTooltipPortal.js +4 -1
  161. package/bpk-mixins/_chips.scss +9 -0
  162. package/bpk-react-utils/index.js +3 -3
  163. package/bpk-react-utils/src/withDefaultProps.js +4 -1
  164. package/bpk-scrim-utils/src/withScrimmedPortal.js +1 -1
  165. package/bpk-theming/src/BpkThemeProvider.js +1 -1
  166. package/package.json +2 -2
  167. package/unstable__bpk-mixins/_chips.scss +9 -0
  168. package/bpk-component-button/src/commonButtonTests.js +0 -133
  169. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +0 -18
@@ -16,8 +16,8 @@
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
18
  import { Component, Children, cloneElement } from 'react';
19
- import { cssModules } from "../../bpk-react-utils";
20
19
  import BpkMobileScrollContainer from "../../bpk-component-mobile-scroll-container";
20
+ import { cssModules } from "../../bpk-react-utils";
21
21
  import STYLES from "./BpkHorizontalNav.module.css";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  const getClassName = cssModules(STYLES);
@@ -113,20 +113,22 @@ class BpkHorizontalNav extends Component {
113
113
  return (
114
114
  /*#__PURE__*/
115
115
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
116
- _jsx(BpkMobileScrollContainer, {
117
- ariaLabel: ariaLabel,
118
- innerContainerTagName: "nav",
116
+ _jsx("div", {
119
117
  className: classNames,
120
- leadingIndicatorClassName: leadingScrollIndicatorClassName,
121
- trailingIndicatorClassName: trailingScrollIndicatorClassName,
122
- scrollerRef: ref => {
123
- this.scrollRef = ref;
124
- },
125
- ...rest,
126
- children: /*#__PURE__*/_jsx("div", {
127
- className: getClassName('bpk-horizontal-nav__list'),
128
- role: "tablist",
129
- children: children
118
+ children: /*#__PURE__*/_jsx(BpkMobileScrollContainer, {
119
+ ariaLabel: ariaLabel,
120
+ innerContainerTagName: "nav",
121
+ leadingIndicatorClassName: leadingScrollIndicatorClassName,
122
+ trailingIndicatorClassName: trailingScrollIndicatorClassName,
123
+ scrollerRef: ref => {
124
+ this.scrollRef = ref;
125
+ },
126
+ ...rest,
127
+ children: /*#__PURE__*/_jsx("div", {
128
+ className: getClassName('bpk-horizontal-nav__list'),
129
+ role: "tablist",
130
+ children: children
131
+ })
130
132
  })
131
133
  })
132
134
  );
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-horizontal-nav--show-default-underline{box-shadow:0 1px 0 0 #c1c7cf}.bpk-horizontal-nav--show-light-underline{box-shadow:0 1px 0 0 #c1c7cf}.bpk-horizontal-nav__list{display:flex;margin:0;padding:0;align-items:stretch;list-style-type:none}
18
+ .bpk-horizontal-nav{position:relative}.bpk-horizontal-nav--show-default-underline{box-shadow:0 1px 0 0 #c1c7cf}.bpk-horizontal-nav--show-light-underline{box-shadow:0 1px 0 0 #c1c7cf}.bpk-horizontal-nav__list{display:flex;margin:0;padding:0;align-items:stretch;list-style-type:none}
@@ -14,8 +14,8 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import { Component } from 'react';
18
- import PropTypes from 'prop-types';
17
+ */import PropTypes from 'prop-types';
18
+ import { Component } from 'react';
19
19
  import { cssModules } from "../../bpk-react-utils";
20
20
  import { HORIZONTAL_NAV_TYPES } from "./BpkHorizontalNav";
21
21
  import STYLES from "./BpkHorizontalNavItem.module.css";
@@ -20,8 +20,8 @@ import { iconSizeSm, iconSizeLg, privateButtonLineHeight
20
20
  // @ts-expect-error Untyped import. We will need to review how these files are handled
21
21
  } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
22
22
  import withAlignment from "./src/withAlignment";
23
- import withRtlSupport from "./src/withRtlSupport";
24
23
  import withDescription from "./src/withDescription";
24
+ import withRtlSupport from "./src/withRtlSupport";
25
25
 
26
26
  // Wrapper functions to provide backwards compatibility
27
27
  function withButtonAlignment(WrappedComponent) {
@@ -13,7 +13,6 @@ export default (({
13
13
  },
14
14
  ...props,
15
15
  children: /*#__PURE__*/_jsx("path", {
16
- d: "M4.9 1.061c.025-.096.162-.096.187 0 .215.824.735 2.775.897 2.938.163.162 2.114.682 2.938.897.096.024.096.162 0 .187-.824.214-2.775.734-2.938.897-.162.162-.682 2.113-.897 2.937-.025.096-.162.096-.187 0-.214-.824-.734-2.775-.897-2.937-.162-.163-2.113-.683-2.938-.897-.095-.025-.095-.163 0-.187.825-.215 2.776-.735 2.938-.897.163-.163.683-2.114.897-2.938zm6.668 1.267c.116-.437.748-.437.863 0 .638 2.42 1.797 6.668 2.185 7.056.388.388 4.635 1.547 7.056 2.185.437.115.437.747 0 .862-2.42.638-6.668 1.797-7.056 2.185-.388.388-1.547 4.635-2.185 7.056-.115.437-.747.437-.862 0-.638-2.42-1.797-6.668-2.185-7.056-.388-.388-4.635-1.547-7.056-2.185-.437-.115-.437-.747 0-.862 2.42-.638 6.668-1.797 7.056-2.185.388-.388 1.547-4.635 2.184-7.056zm-6.516 14.19c-.015-.06-.101-.06-.117 0-.134.516-.459 1.735-.56 1.836-.102.102-1.321.427-1.836.561-.06.015-.06.102 0 .117.515.134 1.734.459 1.836.56.101.102.426 1.321.56 1.837.016.06.102.06.117 0 .134-.516.46-1.735.56-1.836.102-.102 1.322-.427 1.837-.561.06-.015.06-.102 0-.117-.515-.134-1.735-.459-1.836-.56-.102-.102-.427-1.321-.56-1.837zM18.935 2.425c.016-.06.102-.06.117 0 .134.515.46 1.734.56 1.836.102.101 1.322.426 1.837.56.06.016.06.102 0 .117-.515.134-1.735.46-1.836.56-.102.102-.427 1.322-.56 1.837-.016.06-.102.06-.118 0-.134-.515-.459-1.735-.56-1.836-.102-.102-1.321-.427-1.836-.56-.06-.016-.06-.102 0-.118.515-.134 1.734-.459 1.836-.56.101-.102.426-1.321.56-1.836zm.152 12.657c-.025-.096-.162-.096-.187 0-.214.824-.734 2.775-.897 2.938-.162.162-2.113.682-2.938.896-.095.025-.095.163 0 .188.825.214 2.776.734 2.938.896.163.163.683 2.114.897 2.938.025.096.162.096.187 0 .215-.824.735-2.775.897-2.938.163-.162 2.113-.682 2.938-.896.096-.025.096-.163 0-.188-.825-.214-2.775-.734-2.938-.896-.163-.163-.682-2.114-.897-2.938z",
17
- clipRule: "evenodd"
16
+ d: "M4.094 1.072c-.025-.096-.163-.096-.188 0-.214.824-.734 2.775-.896 2.938-.163.162-2.114.682-2.938.896-.096.025-.096.163 0 .188.824.214 2.775.734 2.938.896.162.163.682 2.114.896 2.938.025.096.163.096.188 0 .214-.824.734-2.775.896-2.938.163-.162 2.114-.682 2.938-.896.096-.025.096-.163 0-.188-.824-.214-2.775-.734-2.938-.896-.162-.163-.682-2.114-.896-2.938zm9.475 2.256c.115-.437.747-.437.862 0 .638 2.42 1.797 6.668 2.185 7.056.388.388 4.635 1.547 7.056 2.185.437.115.437.747 0 .862-2.42.638-6.668 1.797-7.056 2.185-.388.388-1.547 4.635-2.185 7.056-.115.437-.747.437-.862 0-.638-2.42-1.797-6.668-2.185-7.056-.388-.388-4.635-1.547-7.056-2.185-.437-.115-.437-.747 0-.862 2.42-.638 6.668-1.797 7.056-2.185.388-.388 1.547-4.635 2.185-7.056zM6.953 18.036c.013-.048.081-.048.094 0 .107.412.367 1.387.448 1.469.082.081 1.057.341 1.47.448.047.013.047.081 0 .094-.413.107-1.388.367-1.47.448-.081.081-.341 1.057-.448 1.47-.013.047-.081.047-.094 0-.107-.413-.367-1.389-.448-1.47-.082-.081-1.057-.341-1.47-.448-.047-.013-.047-.081 0-.094.413-.107 1.388-.367 1.47-.448.081-.081.341-1.057.448-1.47z"
18
17
  })
19
18
  }));
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ export default (({
4
+ styles = {},
5
+ ...props
6
+ }) => /*#__PURE__*/_jsx("svg", {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ viewBox: "0 0 24 24",
9
+ "aria-hidden": "true",
10
+ style: {
11
+ width: "1.5rem",
12
+ height: "1.5rem"
13
+ },
14
+ ...props,
15
+ children: /*#__PURE__*/_jsx("circle", {
16
+ cx: "12",
17
+ cy: "12",
18
+ r: "8"
19
+ })
20
+ }));
@@ -13,7 +13,6 @@ export default (({
13
13
  },
14
14
  ...props,
15
15
  children: /*#__PURE__*/_jsx("path", {
16
- d: "M4.9 1.061c.025-.096.162-.096.187 0 .215.824.735 2.775.897 2.938.163.162 2.114.682 2.938.897.096.024.096.162 0 .187-.824.214-2.775.734-2.938.897-.162.162-.682 2.113-.897 2.937-.025.096-.162.096-.187 0-.214-.824-.734-2.775-.897-2.937-.162-.163-2.113-.683-2.938-.897-.095-.025-.095-.163 0-.187.825-.215 2.776-.735 2.938-.897.163-.163.683-2.114.897-2.938zm6.669 1.267c.115-.438.747-.438.862 0 .638 2.42 1.797 6.668 2.185 7.056.388.388 4.635 1.547 7.056 2.184.438.116.438.748 0 .863-2.42.638-6.668 1.797-7.056 2.185-.388.388-1.547 4.635-2.184 7.056-.116.437-.748.437-.863 0-.638-2.42-1.797-6.668-2.185-7.056-.388-.388-4.635-1.547-7.056-2.185-.437-.115-.437-.747 0-.862 2.42-.638 6.668-1.797 7.056-2.185.388-.388 1.547-4.635 2.185-7.056zm-6.517 14.19c-.015-.06-.101-.06-.117 0-.134.515-.459 1.735-.56 1.836-.102.102-1.321.427-1.836.56-.06.016-.06.102 0 .118.515.134 1.734.459 1.836.56.101.102.426 1.321.56 1.836.016.06.102.06.117 0 .134-.515.46-1.734.56-1.836.102-.101 1.322-.426 1.837-.56.06-.016.06-.102 0-.117-.515-.134-1.735-.46-1.836-.56-.102-.102-.427-1.322-.56-1.837zM18.935 2.425c.016-.06.102-.06.117 0 .134.515.46 1.734.56 1.836.102.101 1.322.426 1.837.56.06.016.06.102 0 .117-.515.134-1.735.46-1.836.56-.102.102-.427 1.322-.56 1.837-.016.06-.102.06-.118 0-.134-.515-.459-1.735-.56-1.836-.102-.102-1.321-.427-1.836-.56-.06-.016-.06-.102 0-.118.515-.134 1.734-.459 1.836-.56.101-.102.426-1.321.56-1.836zm.152 12.657c-.024-.096-.162-.096-.187 0-.214.824-.734 2.775-.897 2.937-.162.163-2.113.683-2.937.897-.096.025-.096.163 0 .188.824.214 2.775.734 2.937.896.163.163.683 2.114.897 2.938.025.096.163.096.187 0 .215-.824.735-2.775.897-2.938.163-.162 2.114-.682 2.938-.896.096-.025.096-.163 0-.188-.824-.214-2.775-.734-2.938-.897-.162-.162-.682-2.113-.897-2.937z",
17
- clipRule: "evenodd"
16
+ d: "M4.605.08c-.028-.107-.182-.107-.21 0-.241.928-.826 3.123-1.01 3.306-.182.183-2.377.768-3.304 1.009-.108.028-.108.182 0 .21.927.241 3.122.826 3.305 1.01.183.182.768 2.377 1.009 3.304.028.108.182.108.21 0 .241-.927.826-3.122 1.01-3.305.182-.183 2.377-.768 3.304-1.009.108-.028.108-.182 0-.21-.927-.241-3.122-.826-3.305-1.01-.183-.182-.768-2.377-1.009-3.304zm8.113 2.248c.116-.437.748-.437.863 0 .637 2.42 1.797 6.668 2.185 7.056.388.388 4.635 1.547 7.056 2.185.437.115.437.747 0 .862-2.421.638-6.668 1.797-7.056 2.185-.388.388-1.548 4.635-2.185 7.056-.115.438-.747.438-.863 0-.637-2.42-1.796-6.668-2.184-7.056-.389-.388-4.635-1.547-7.056-2.184-.438-.116-.438-.748 0-.863 2.42-.638 6.668-1.797 7.056-2.185.388-.388 1.547-4.635 2.184-7.056zM5.93 16.554c.018-.072.122-.072.14 0 .16.618.55 2.081.673 2.203.122.122 1.585.512 2.203.673.072.018.072.122 0 .14-.618.16-2.081.55-2.203.673-.122.122-.512 1.585-.673 2.203-.018.072-.122.072-.14 0-.16-.618-.55-2.081-.673-2.203-.122-.122-1.585-.512-2.203-.673-.072-.018-.072-.122 0-.14.618-.16 2.081-.55 2.203-.673.122-.122.512-1.585.673-2.203z"
18
17
  })
19
18
  }));
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ export default (({
4
+ styles = {},
5
+ ...props
6
+ }) => /*#__PURE__*/_jsx("svg", {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ viewBox: "0 0 24 24",
9
+ "aria-hidden": "true",
10
+ style: {
11
+ width: "1rem",
12
+ height: "1rem"
13
+ },
14
+ ...props,
15
+ children: /*#__PURE__*/_jsx("circle", {
16
+ cx: "12",
17
+ cy: "12",
18
+ r: "9"
19
+ })
20
+ }));
@@ -29,6 +29,9 @@ export default ((displayName, classNamesToAdd = []) => ComposedComponent => {
29
29
  classNames.push(className);
30
30
  }
31
31
  classNames = classNamesToAdd.length ? classNames.concat(classNamesToAdd) : classNames;
32
+
33
+ // TODO: className to be removed
34
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
32
35
  return /*#__PURE__*/_jsx(ComposedComponent, {
33
36
  className: classNames.join(' '),
34
37
  ...rest
@@ -16,10 +16,10 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import BpkImage from "./src/BpkImage";
20
19
  import BpkBackgroundImage from "./src/BpkBackgroundImage";
20
+ import BpkImage from "./src/BpkImage";
21
+ import BORDER_RADIUS_STYLES from "./src/BpkImageBorderRadiusStyles";
21
22
  import withLazyLoading from "./src/withLazyLoading";
22
23
  import withLoadingBehavior from "./src/withLoadingBehavior";
23
- import BORDER_RADIUS_STYLES from "./src/BpkImageBorderRadiusStyles";
24
24
  export default BpkImage;
25
25
  export { BpkBackgroundImage, withLazyLoading, withLoadingBehavior, BORDER_RADIUS_STYLES };
@@ -22,9 +22,10 @@ import CSSTransition from 'react-transition-group/CSSTransition';
22
22
 
23
23
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
24
  import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
25
- import { cssModules } from "../../bpk-react-utils";
25
+
26
26
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
27
27
  import { BpkSpinner } from "../../bpk-component-spinner";
28
+ import { cssModules } from "../../bpk-react-utils";
28
29
  import STYLES from "./BpkBackgroundImage.module.css";
29
30
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
31
  const getClassName = cssModules(STYLES);
@@ -23,9 +23,10 @@ import CSSTransition from 'react-transition-group/CSSTransition';
23
23
 
24
24
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
25
25
  import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
26
- import { cssModules } from "../../bpk-react-utils";
26
+
27
27
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
28
28
  import { BpkSpinner } from "../../bpk-component-spinner";
29
+ import { cssModules } from "../../bpk-react-utils";
29
30
  import BORDER_RADIUS_STYLES from "./BpkImageBorderRadiusStyles";
30
31
  import STYLES from "./BpkImage.module.css";
31
32
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -14,10 +14,10 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import { Component } from 'react';
18
- import PropTypes from 'prop-types';
19
- import omit from 'lodash/omit';
17
+ */import PropTypes from 'prop-types';
18
+ import { Component } from 'react';
20
19
  import extend from 'lodash/extend';
20
+ import omit from 'lodash/omit';
21
21
  import { cssModules } from "../../bpk-react-utils";
22
22
  import "./intersection-observer";
23
23
  import DataSource from "./DataSource";
@@ -22,9 +22,10 @@ import { TransitionGroup, CSSTransition } from 'react-transition-group';
22
22
 
23
23
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
24
  import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
25
- import { cssModules } from "../../bpk-react-utils";
25
+
26
26
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
27
27
  import BpkAnimateHeight from "../../bpk-animate-height";
28
+ import { cssModules } from "../../bpk-react-utils";
28
29
  import STYLES from "./BpkAnimateAndFade.module.css";
29
30
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
31
  const getClassName = cssModules(STYLES);
@@ -32,8 +33,7 @@ const ANIMATION_DURATION = parseInt(durationSm, 10);
32
33
  class AnimateAndFade extends Component {
33
34
  static defaultProps = {
34
35
  animateOnEnter: false,
35
- animateOnLeave: false,
36
- className: null
36
+ animateOnLeave: false
37
37
  };
38
38
  constructor(props) {
39
39
  super(props);
@@ -110,37 +110,39 @@ class AnimateAndFade extends Component {
110
110
  // While the expanding animation takes place, we render the child element
111
111
  // close to invisible. If we don't do this, the animate-height container
112
112
  // will take on height 0, and will never expand to allow the children to fade in
113
- return this.state.inDom ? /*#__PURE__*/_jsxs(BpkAnimateHeight, {
113
+ return this.state.inDom ? /*#__PURE__*/_jsx("div", {
114
114
  className: className,
115
- onAnimationComplete: this.onAnimateHeightComplete,
116
- duration: ANIMATION_DURATION,
117
- height: this.state.isExpanded ? 'auto' : 0,
118
- children: [showPlaceholder && /*#__PURE__*/_jsx("div", {
119
- style: {
120
- opacity: 0.35
121
- },
122
- children: children
123
- }), /*#__PURE__*/_jsx(TransitionGroup, {
124
- exit: animateOnLeave,
125
- enter: animateOnEnter,
126
- appear: animateOnEnter,
127
- onTransitionEnd: this.onFadeComplete,
128
- children: this.state.visible && /*#__PURE__*/_jsx(CSSTransition, {
129
- classNames: {
130
- exit: getClassName('bpk-animate-and-fade--leave'),
131
- exitActive: getClassName('bpk-animate-and-fade--leave-active'),
132
- enter: getClassName('bpk-animate-and-fade--enter'),
133
- enterActive: getClassName('bpk-animate-and-fade--enter-active'),
134
- appear: getClassName('bpk-animate-and-fade--appear'),
135
- appearActive: getClassName('bpk-animate-and-fade--appear-active')
136
- },
137
- timeout: {
138
- enter: ANIMATION_DURATION * 2,
139
- exit: ANIMATION_DURATION * 2
115
+ children: /*#__PURE__*/_jsxs(BpkAnimateHeight, {
116
+ onAnimationComplete: this.onAnimateHeightComplete,
117
+ duration: ANIMATION_DURATION,
118
+ height: this.state.isExpanded ? 'auto' : 0,
119
+ children: [showPlaceholder && /*#__PURE__*/_jsx("div", {
120
+ style: {
121
+ opacity: 0.35
140
122
  },
141
123
  children: children
142
- })
143
- })]
124
+ }), /*#__PURE__*/_jsx(TransitionGroup, {
125
+ exit: animateOnLeave,
126
+ enter: animateOnEnter,
127
+ appear: animateOnEnter,
128
+ onTransitionEnd: this.onFadeComplete,
129
+ children: this.state.visible && /*#__PURE__*/_jsx(CSSTransition, {
130
+ classNames: {
131
+ exit: getClassName('bpk-animate-and-fade--leave'),
132
+ exitActive: getClassName('bpk-animate-and-fade--leave-active'),
133
+ enter: getClassName('bpk-animate-and-fade--enter'),
134
+ enterActive: getClassName('bpk-animate-and-fade--enter-active'),
135
+ appear: getClassName('bpk-animate-and-fade--appear'),
136
+ appearActive: getClassName('bpk-animate-and-fade--appear-active')
137
+ },
138
+ timeout: {
139
+ enter: ANIMATION_DURATION * 2,
140
+ exit: ANIMATION_DURATION * 2
141
+ },
142
+ children: children
143
+ })
144
+ })]
145
+ })
144
146
  }) : null;
145
147
  }
146
148
  }
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-info-banner{padding:.5rem 1rem;overflow:hidden;border-radius:.5rem;margin:0;font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-info-banner--style-default{background-color:#eff3f8}.bpk-info-banner--style-onContrast{background-color:#fff}.bpk-info-banner__header{display:flex;flex-direction:row;align-items:flex-start}.bpk-info-banner__header--expandable{cursor:pointer}.bpk-info-banner__icon,.bpk-info-banner__toggle{padding:.125rem 0}.bpk-info-banner__message{padding:.25rem .5rem;flex-grow:1}.bpk-info-banner__success-icon{fill:#0c838a}.bpk-info-banner__warning-icon{fill:#f55d42}.bpk-info-banner__error-icon{fill:#e70866}.bpk-info-banner__info-icon{fill:#626971}.bpk-info-banner__toggle-button{padding:0;border:0;background-color:rgba(0,0,0,0);cursor:pointer;appearance:none}.bpk-info-banner__expand-icon{fill:#626971}.bpk-info-banner__expand-icon--flipped{transform:scaleY(-1)}.bpk-info-banner__children-container{color:#161616;font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-info-banner__children-container--with-action{padding:.25rem 0 .25rem}.bpk-info-banner__children-container--no-action{padding:.25rem 0 .5rem}.bpk-info-banner__expandable-action{padding-bottom:.25rem}
18
+ .bpk-info-banner{padding:.5rem 1rem;overflow:hidden;border-radius:.5rem;margin:0;font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-info-banner--style-default{background-color:#eff3f8}.bpk-info-banner--style-onContrast{background-color:#fff}.bpk-info-banner__header{display:flex;flex-direction:row;align-items:flex-start}.bpk-info-banner__header--expandable{cursor:pointer}.bpk-info-banner__icon,.bpk-info-banner__toggle{padding:.125rem 0}.bpk-info-banner__message{padding:.25rem .5rem;flex-grow:1}.bpk-info-banner__success-icon{fill:#0c838a}.bpk-info-banner__warning-icon{fill:#f55d42}.bpk-info-banner__error-icon{fill:#e70866}.bpk-info-banner__info-icon{fill:#626971}.bpk-info-banner__toggle-button{padding:0;border:0;background-color:rgba(0,0,0,0);cursor:pointer;appearance:none}.bpk-info-banner__expand-icon{fill:#626971}.bpk-info-banner__children-container{color:#161616;font-size:.875rem;line-height:1.25rem;font-weight:400}.bpk-info-banner__children-container--with-action{padding:.25rem 0 .25rem}.bpk-info-banner__children-container--no-action{padding:.25rem 0 .5rem}
@@ -22,19 +22,22 @@
22
22
 
23
23
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
24
  import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
25
- import { withButtonAlignment } from "../../bpk-component-icon";
26
- // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
27
- import BpkLink from "../../bpk-component-link";
25
+
28
26
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
29
27
  import BpkAnimateHeight from "../../bpk-animate-height";
30
28
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
31
29
  import BpkCloseButton from "../../bpk-component-close-button";
32
- // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
33
- import TickCircleIcon from "../../bpk-component-icon/sm/tick-circle";
30
+ import { withButtonAlignment } from "../../bpk-component-icon";
34
31
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
35
32
  import ChevronDownIcon from "../../bpk-component-icon/sm/chevron-down";
36
33
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
34
+ import ChevronUpIcon from "../../bpk-component-icon/sm/chevron-up";
35
+ // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
37
36
  import InfoCircleIcon from "../../bpk-component-icon/sm/information-circle";
37
+ // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
38
+ import TickCircleIcon from "../../bpk-component-icon/sm/tick-circle";
39
+ // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
40
+ import BpkLink from "../../bpk-component-link";
38
41
  import { cssModules } from "../../bpk-react-utils";
39
42
  import AnimateAndFade from "./AnimateAndFade";
40
43
  import { ALERT_TYPES, STYLE_TYPES } from "./common-types";
@@ -42,6 +45,7 @@ import STYLES from "./BpkInfoBanner.module.css";
42
45
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
43
46
  const getClassName = cssModules(STYLES);
44
47
  const ExpandIcon = withButtonAlignment(ChevronDownIcon);
48
+ const CollapseIcon = withButtonAlignment(ChevronUpIcon);
45
49
  export const CONFIGURATION = {
46
50
  NONE: 'none',
47
51
  DISMISSABLE: 'dismissable',
@@ -63,20 +67,22 @@ const getIconForType = (type, CustomIcon) => {
63
67
  };
64
68
  const Icon = CustomIcon || componentMap[type];
65
69
  const AlignedIcon = withButtonAlignment(Icon);
66
- return /*#__PURE__*/_jsx(AlignedIcon, {
67
- className: className
70
+ return /*#__PURE__*/_jsx("div", {
71
+ className: className,
72
+ children: /*#__PURE__*/_jsx(AlignedIcon, {})
68
73
  });
69
74
  };
70
75
  const ToggleButton = props => {
71
- const classNames = getClassName('bpk-info-banner__expand-icon', props.expanded && 'bpk-info-banner__expand-icon--flipped');
76
+ const classNames = getClassName('bpk-info-banner__expand-icon');
72
77
  return /*#__PURE__*/_jsx("button", {
73
78
  type: "button",
74
79
  className: getClassName('bpk-info-banner__toggle-button'),
75
80
  "aria-label": props.label,
76
81
  "aria-expanded": props.expanded,
77
82
  title: props.label,
78
- children: /*#__PURE__*/_jsx(ExpandIcon, {
79
- className: classNames
83
+ children: /*#__PURE__*/_jsx("div", {
84
+ className: classNames,
85
+ children: props.expanded ? /*#__PURE__*/_jsx(CollapseIcon, {}) : /*#__PURE__*/_jsx(ExpandIcon, {})
80
86
  })
81
87
  });
82
88
  };
@@ -149,7 +155,6 @@ const BpkInfoBannerInner = ({
149
155
  }), dismissable && /*#__PURE__*/_jsx("span", {
150
156
  className: getClassName('bpk-info-banner__toggle'),
151
157
  children: /*#__PURE__*/_jsx(BpkCloseButton, {
152
- className: getClassName('bpk-info-banner__toggle-button'),
153
158
  onClick: onBannerDismiss,
154
159
  "aria-label": dismissButtonLabel,
155
160
  label: dismissButtonLabel
@@ -162,7 +167,6 @@ const BpkInfoBannerInner = ({
162
167
  className: childrenContainerClassName,
163
168
  children: children
164
169
  }), isExpandable && action && /*#__PURE__*/_jsx(BpkLink, {
165
- className: getClassName('bpk-info-banner__expandable-action'),
166
170
  onClick: action.callback,
167
171
  children: action.title
168
172
  })]
@@ -17,8 +17,8 @@
17
17
  */
18
18
 
19
19
  import BpkInput from "./src/BpkInput";
20
- import withOpenEvents from "./src/withOpenEvents";
21
20
  import { propTypes, defaultProps, CLEAR_BUTTON_MODES, INPUT_TYPES } from "./src/common-types";
22
21
  import themeAttributes from "./src/themeAttributes";
22
+ import withOpenEvents from "./src/withOpenEvents";
23
23
  export default BpkInput;
24
24
  export { propTypes, defaultProps, withOpenEvents, INPUT_TYPES, CLEAR_BUTTON_MODES, themeAttributes };
@@ -16,9 +16,9 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ import { withButtonAlignment } from "../../bpk-component-icon";
19
20
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
20
21
  import ClearIcon from "../../bpk-component-icon/sm/close-circle";
21
- import { withButtonAlignment } from "../../bpk-component-icon";
22
22
  import { cssModules } from "../../bpk-react-utils";
23
23
  import STYLES from "./BpkClearButton.module.css";
24
24
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -43,6 +43,8 @@ const BpkClearButton = ({
43
43
  ...rest,
44
44
  children: /*#__PURE__*/_jsx(ClearButtonIcon, {
45
45
  focusable: "false" // prevents focus on IE11
46
+ // TODO: className to be removed
47
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
46
48
  ,
47
49
  className: getClassName('bpk-clear-button__icon')
48
50
  })
@@ -138,7 +138,10 @@ class BpkInput extends Component {
138
138
  persistClearButton: false
139
139
  });
140
140
  }
141
- },
141
+ }
142
+ // TODO: className to be removed
143
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
144
+ ,
142
145
  className: clearButtonClassNames.join(' ')
143
146
  })]
144
147
  }) : renderedInput;
@@ -122,7 +122,10 @@ const withOpenEvents = InputComponent => {
122
122
  // Needed on mobile as some Android devices do not trigger onClick or onTouch when TalkBack is active but do trigger onFocus
123
123
  eventHandlers.onFocus = withEventHandler(this.handleFocus, onFocus);
124
124
  eventHandlers.onBlur = withEventHandler(this.handleBlur, onBlur);
125
- return /*#__PURE__*/_jsx(InputComponent, {
125
+ return /*#__PURE__*/_jsx(InputComponent
126
+ // TODO: className to be removed
127
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
128
+ , {
126
129
  className: classNames.join(' '),
127
130
  ...eventHandlers,
128
131
  ...rest
@@ -14,8 +14,8 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import BpkLink from "./src/BpkLink";
18
- import BpkButtonLink from "./src/BpkButtonLink";
17
+ */import BpkButtonLink from "./src/BpkButtonLink";
18
+ import BpkLink from "./src/BpkLink";
19
19
  import themeAttributes, { linkAlternateThemeAttributes } from "./src/themeAttributes";
20
20
  export default BpkLink;
21
21
  export { BpkButtonLink, themeAttributes, linkAlternateThemeAttributes };
@@ -28,9 +28,9 @@ const BpkList = props => {
28
28
  ordered,
29
29
  title
30
30
  } = props;
31
- const TagName = ordered ? 'ol' : 'ul';
31
+ const ListElements = ordered ? 'ol' : 'ul';
32
32
  const classNames = getClassName('bpk-list', className);
33
- return /*#__PURE__*/_jsx(TagName, {
33
+ return /*#__PURE__*/_jsx(ListElements, {
34
34
  "aria-label": ariaLabel,
35
35
  "aria-labelledby": ariaLabelledby,
36
36
  title: title,
@@ -16,10 +16,10 @@
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
18
  import BpkButton from "../../bpk-component-button";
19
- import { BpkSpinner, BpkLargeSpinner } from "../../bpk-component-spinner";
20
19
  import { withButtonAlignment, withLargeButtonAlignment, withRtlSupport } from "../../bpk-component-icon";
21
- import ArrowIconSm from "../../bpk-component-icon/sm/long-arrow-right";
22
20
  import ArrowIconLg from "../../bpk-component-icon/lg/long-arrow-right";
21
+ import ArrowIconSm from "../../bpk-component-icon/sm/long-arrow-right";
22
+ import { BpkSpinner, BpkLargeSpinner } from "../../bpk-component-spinner";
23
23
  import { cssModules } from "../../bpk-react-utils";
24
24
  import STYLES from "./BpkLoadingButton.module.css";
25
25
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -84,7 +84,10 @@ const BpkLoadingButton = props => {
84
84
  _jsxs(BpkButton, {
85
85
  iconOnly: iconOnly,
86
86
  disabled: showBtnDisabled,
87
- large: large,
87
+ large: large
88
+ // TODO: className to be removed
89
+ // eslint-disable-next-line @skyscanner/rules/forbid-component-props
90
+ ,
88
91
  className: classNames,
89
92
  link: link,
90
93
  linkOnDark: linkOnDark,
@@ -14,12 +14,12 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import BpkMap from "./src/BpkMap";
18
- import BpkIconMarker from "./src/BpkIconMarker";
17
+ */import BpkIconMarker from "./src/BpkIconMarker";
18
+ import BpkMap from "./src/BpkMap";
19
+ import BpkOverlayView from "./src/BpkOverlayView";
19
20
  import BpkPriceMarker, { PRICE_MARKER_STATUSES } from "./src/BpkPriceMarker";
20
21
  import { BpkPriceMarkerV2, MARKER_STATUSES } from "./src/BpkPriceMarkerV2/BpkPriceMarker";
21
- import BpkOverlayView from "./src/BpkOverlayView";
22
- import withGoogleMapsScript from "./src/withGoogleMapsScript";
23
22
  import { defaultIconMarkerThemeAttributes, priceMarkerThemeAttributes } from "./src/themeAttributes";
23
+ import withGoogleMapsScript from "./src/withGoogleMapsScript";
24
24
  export default BpkMap;
25
25
  export { BpkIconMarker, BpkPriceMarker, BpkPriceMarkerV2, BpkOverlayView, withGoogleMapsScript, defaultIconMarkerThemeAttributes, priceMarkerThemeAttributes, PRICE_MARKER_STATUSES, MARKER_STATUSES };
@@ -16,9 +16,9 @@
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
18
  import { cssModules } from "../../bpk-react-utils";
19
+ import BpkBasicMapMarker from "./BpkBasicMapMarker";
19
20
  import BpkIconMarkerBackground from "./BpkIconMarkerBackground";
20
21
  import { LatLongPropType } from "./common-types";
21
- import BpkBasicMapMarker from "./BpkBasicMapMarker";
22
22
  import STYLES from "./BpkIconMarker.module.css";
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
@@ -14,8 +14,8 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import { useCallback, useRef } from 'react';
18
- import PropTypes from 'prop-types';
17
+ */import PropTypes from 'prop-types';
18
+ import { useCallback, useRef } from 'react';
19
19
  import { GoogleMap } from '@react-google-maps/api';
20
20
  import { cssModules } from "../../bpk-react-utils";
21
21
  import { LatLongPropType } from "./common-types";
@@ -84,7 +84,8 @@ const BpkMap = props => {
84
84
  rotateControl: false,
85
85
  clickableIcons: false,
86
86
  // https://developers.google.com/maps/documentation/javascript/reference/map#MapTypeStyle
87
- styles: mapOptionStyles
87
+ styles: mapOptionStyles,
88
+ scaleControl: true
88
89
  },
89
90
  onDragEnd: () => {
90
91
  if (ref && ref.current && onRegionChange) {
@@ -15,10 +15,10 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */import PropTypes from 'prop-types';
18
- import { cssModules } from "../../bpk-react-utils";
19
18
  import BpkText, { TEXT_STYLES } from "../../bpk-component-text/src/BpkText";
20
- import { LatLongPropType } from "./common-types";
19
+ import { cssModules } from "../../bpk-react-utils";
21
20
  import BpkBasicMapMarker from "./BpkBasicMapMarker";
21
+ import { LatLongPropType } from "./common-types";
22
22
  import STYLES from "./BpkPriceMarker.module.css";
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  const getClassName = cssModules(STYLES);
@@ -54,10 +54,12 @@ const BpkPriceMarker = props => {
54
54
  onClick: onClick,
55
55
  disabled: disabled,
56
56
  ...buttonProps,
57
- children: [/*#__PURE__*/_jsx(BpkText, {
57
+ children: [/*#__PURE__*/_jsx("span", {
58
58
  className: classNames,
59
- textStyle: status === PRICE_MARKER_STATUSES.focused ? TEXT_STYLES.label1 : TEXT_STYLES.label2,
60
- children: label
59
+ children: /*#__PURE__*/_jsx(BpkText, {
60
+ textStyle: status === PRICE_MARKER_STATUSES.focused ? TEXT_STYLES.label1 : TEXT_STYLES.label2,
61
+ children: label
62
+ })
61
63
  }), /*#__PURE__*/_jsx("div", {
62
64
  className: arrowClassNames
63
65
  })]
@@ -16,8 +16,8 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { cssModules } from "../../../bpk-react-utils";
20
19
  import BpkText, { TEXT_STYLES } from "../../../bpk-component-text";
20
+ import { cssModules } from "../../../bpk-react-utils";
21
21
  import BpkBasicMapMarker from "../BpkBasicMapMarker";
22
22
  import STYLES from "./BpkPriceMarker.module.css";
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -42,14 +42,6 @@ const computeScrollIndicatorClassName = (scrollerEl, leadingIndicatorClassName =
42
42
  const scrollValue = rtl ? -Math.floor(scrollLeft) : Math.ceil(scrollLeft);
43
43
  const showLeadingIndicator = scrollValue > 0;
44
44
  const showTrailingIndicator = scrollValue < scrollWidth - offsetWidth;
45
- const showLeftIndicator = rtl ? showTrailingIndicator : showLeadingIndicator;
46
- const showRightIndicator = rtl ? showLeadingIndicator : showTrailingIndicator;
47
- if (showLeftIndicator) {
48
- classNames.push(getClassName('bpk-mobile-scroll-container--left-indicator'));
49
- }
50
- if (showRightIndicator) {
51
- classNames.push(getClassName('bpk-mobile-scroll-container--right-indicator'));
52
- }
53
45
  if (showLeadingIndicator && leadingIndicatorClassName) {
54
46
  classNames.push(leadingIndicatorClassName);
55
47
  }