@skyscanner/backpack-web 3.0.0 → 3.2.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 (151) hide show
  1. package/bpk-component-accordion/src/BpkAccordion.js +2 -1
  2. package/bpk-component-accordion/src/BpkAccordionItem.js +6 -5
  3. package/bpk-component-accordion/src/withAccordionItemState.js +2 -1
  4. package/bpk-component-accordion/src/withSingleItemAccordionState.js +2 -1
  5. package/bpk-component-aria-live/src/BpkAriaLive.js +2 -1
  6. package/bpk-component-autosuggest/src/BpkAutosuggest.js +3 -2
  7. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +2 -1
  8. package/bpk-component-badge/src/BpkBadge.js +2 -1
  9. package/bpk-component-banner-alert/src/AnimateAndFade.js +3 -2
  10. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +8 -7
  11. package/bpk-component-banner-alert/src/withBannerAlertState.js +2 -1
  12. package/bpk-component-barchart/src/BpkBarchart.js +3 -2
  13. package/bpk-component-barchart/src/BpkBarchartBar.js +2 -1
  14. package/bpk-component-barchart/src/BpkChartAxis.js +2 -1
  15. package/bpk-component-barchart/src/BpkChartDataTable.js +2 -1
  16. package/bpk-component-barchart/src/BpkChartGridLines.js +2 -1
  17. package/bpk-component-barchart/src/RTLtransforms.js +1 -1
  18. package/bpk-component-blockquote/src/BpkBlockquote.js +2 -1
  19. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +2 -1
  20. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +6 -5
  21. package/bpk-component-calendar/src/BpkCalendarContainer.js +2 -1
  22. package/bpk-component-calendar/src/BpkCalendarDate.js +2 -1
  23. package/bpk-component-calendar/src/BpkCalendarGrid.js +2 -1
  24. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +2 -1
  25. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +2 -1
  26. package/bpk-component-calendar/src/BpkCalendarNav.js +6 -5
  27. package/bpk-component-calendar/src/Week.js +2 -1
  28. package/bpk-component-calendar/src/composeCalendar.js +2 -1
  29. package/bpk-component-card/src/BpkCard.js +2 -1
  30. package/bpk-component-checkbox/src/BpkCheckbox.js +2 -1
  31. package/bpk-component-chip/src/BpkDismissibleChip.js +2 -1
  32. package/bpk-component-chip/src/BpkSelectableChip.js +3 -2
  33. package/bpk-component-close-button/src/BpkCloseButton.js +3 -2
  34. package/bpk-component-code/src/BpkCode.js +2 -1
  35. package/bpk-component-code/src/BpkCodeBlock.js +2 -1
  36. package/bpk-component-content-container/src/BpkContentContainer.js +2 -1
  37. package/bpk-component-datatable/src/BpkDataTable.js +2 -1
  38. package/bpk-component-datatable/src/BpkDataTableColumn.js +2 -1
  39. package/bpk-component-datatable/src/bpkHeaderRenderer.js +5 -4
  40. package/bpk-component-datepicker/index.js +1 -1
  41. package/bpk-component-datepicker/src/BpkDatepicker.js +7 -6
  42. package/bpk-component-datepicker/src/themeAttributes.js +3 -3
  43. package/bpk-component-description-list/src/ComponentFactory.js +2 -1
  44. package/bpk-component-dialog/src/BpkDialog.js +3 -2
  45. package/bpk-component-dialog/src/BpkDialogInner.js +4 -3
  46. package/bpk-component-drawer/src/BpkDrawer.js +3 -2
  47. package/bpk-component-drawer/src/BpkDrawerContent.js +4 -3
  48. package/bpk-component-drawer/src/themeAttributes.js +1 -1
  49. package/bpk-component-fieldset/src/BpkFieldset.js +4 -3
  50. package/bpk-component-flare/src/BpkContentBubble.js +2 -1
  51. package/bpk-component-flare/src/BpkFlareBar.js +2 -1
  52. package/bpk-component-form-validation/src/BpkFormValidation.js +5 -4
  53. package/bpk-component-graphic-promotion/package.json +1 -1
  54. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +5 -4
  55. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +10 -4
  56. package/bpk-component-grid/src/BpkGridColumn.js +2 -1
  57. package/bpk-component-grid/src/BpkGridContainer.js +2 -1
  58. package/bpk-component-grid/src/BpkGridRow.js +2 -1
  59. package/bpk-component-grid-toggle/src/BpkGridToggle.js +3 -2
  60. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +3 -2
  61. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +2 -1
  62. package/bpk-component-icon/src/classNameModifierHOCFactory.js +2 -1
  63. package/bpk-component-icon/src/withAlignment.js +2 -1
  64. package/bpk-component-icon/src/withDescription.js +2 -1
  65. package/bpk-component-icon/src/withRtlSupport.js +1 -1
  66. package/bpk-component-image/src/BpkBackgroundImage.js +3 -2
  67. package/bpk-component-image/src/BpkImage.js +3 -2
  68. package/bpk-component-image/src/withLazyLoading.js +2 -1
  69. package/bpk-component-image/src/withLoadingBehavior.js +2 -1
  70. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +2 -1
  71. package/bpk-component-input/src/BpkClearButton.js +4 -3
  72. package/bpk-component-input/src/BpkInput.js +2 -1
  73. package/bpk-component-input/src/withOpenEvents.js +2 -1
  74. package/bpk-component-label/src/BpkLabel.js +2 -1
  75. package/bpk-component-link/src/BpkButtonLink.js +2 -1
  76. package/bpk-component-link/src/BpkLink.js +2 -1
  77. package/bpk-component-list/src/BpkList.js +2 -1
  78. package/bpk-component-list/src/BpkListItem.js +2 -1
  79. package/bpk-component-loading-button/src/BpkLoadingButton.js +7 -6
  80. package/bpk-component-map/src/BpkIconMarker.js +2 -1
  81. package/bpk-component-map/src/BpkIconMarkerBackground.js +2 -1
  82. package/bpk-component-map/src/BpkMap.js +2 -1
  83. package/bpk-component-map/src/BpkPriceMarker.js +3 -2
  84. package/bpk-component-map/src/DefaultLoadingElement.js +3 -2
  85. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +2 -1
  86. package/bpk-component-modal/src/BpkModal.js +3 -2
  87. package/bpk-component-modal/src/BpkModalInner.js +5 -4
  88. package/bpk-component-modal/src/themeAttributes.js +1 -1
  89. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +3 -2
  90. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +3 -2
  91. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +3 -2
  92. package/bpk-component-navigation-stack/src/BpkNavigationStack.js +2 -1
  93. package/bpk-component-nudger/src/BpkConfigurableNudger.js +7 -6
  94. package/bpk-component-nudger/src/BpkNudger.js +2 -1
  95. package/bpk-component-nudger/src/themeAttributes.js +1 -1
  96. package/bpk-component-overlay/src/BpkOverlay.js +2 -1
  97. package/bpk-component-pagination/src/BpkPagination.js +2 -1
  98. package/bpk-component-pagination/src/BpkPaginationList.js +2 -1
  99. package/bpk-component-pagination/src/BpkPaginationNudger.js +5 -4
  100. package/bpk-component-pagination/src/BpkPaginationPage.js +3 -2
  101. package/bpk-component-pagination/src/themeAttributes.js +1 -1
  102. package/bpk-component-panel/src/BpkPanel.js +2 -1
  103. package/bpk-component-phone-input/src/BpkPhoneInput.js +5 -4
  104. package/bpk-component-popover/src/BpkPopover.js +5 -4
  105. package/bpk-component-popover/src/BpkPopoverPortal.js +2 -1
  106. package/bpk-component-popover/src/themeAttributes.js +1 -1
  107. package/bpk-component-price/README.md +35 -0
  108. package/bpk-component-price/index.js +23 -0
  109. package/bpk-component-price/package.json +24 -0
  110. package/bpk-component-price/src/BpkPrice.js +106 -0
  111. package/bpk-component-price/src/BpkPrice.module.scss +55 -0
  112. package/bpk-component-progress/src/BpkProgress.js +2 -1
  113. package/bpk-component-radio/src/BpkRadio.js +2 -1
  114. package/bpk-component-rating/src/BpkRating.js +3 -2
  115. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +2 -1
  116. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +2 -1
  117. package/bpk-component-scrollable-calendar/index.js +1 -1
  118. package/bpk-component-scrollable-calendar/package.json +1 -1
  119. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +1 -1
  120. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +2 -1
  121. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +4 -3
  122. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +6 -2
  123. package/bpk-component-scrollable-calendar/src/utils.js +1 -1
  124. package/bpk-component-section-list/src/BpkSectionListItem.js +4 -3
  125. package/bpk-component-section-list/src/BpkSectionListSection.js +3 -2
  126. package/bpk-component-select/src/BpkSelect.js +2 -1
  127. package/bpk-component-skip-link/src/BpkSkipLink.js +2 -1
  128. package/bpk-component-slider/src/BpkSlider.js +2 -1
  129. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +2 -1
  130. package/bpk-component-spinner/src/BpkLargeSpinner.js +2 -1
  131. package/bpk-component-spinner/src/BpkSpinner.js +2 -1
  132. package/bpk-component-star-rating/src/BpkInteractiveStar.js +2 -1
  133. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +2 -1
  134. package/bpk-component-star-rating/src/BpkStar.js +9 -8
  135. package/bpk-component-star-rating/src/BpkStarRating.js +2 -1
  136. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +2 -1
  137. package/bpk-component-switch/src/BpkSwitch.js +2 -1
  138. package/bpk-component-table/src/BpkTable.js +2 -1
  139. package/bpk-component-table/src/BpkTableCell.js +2 -1
  140. package/bpk-component-table/src/BpkTableHeadCell.js +2 -1
  141. package/bpk-component-text/src/BpkText.js +2 -1
  142. package/bpk-component-textarea/src/BpkTextarea.js +2 -1
  143. package/bpk-component-theme-toggle/package.json +1 -2
  144. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +4 -11
  145. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +2 -1
  146. package/bpk-component-ticket/src/BpkTicket.js +2 -1
  147. package/bpk-component-tooltip/src/BpkTooltip.js +2 -1
  148. package/bpk-component-tooltip/src/BpkTooltipPortal.js +2 -1
  149. package/bpk-scrim-utils/src/BpkScrim.js +2 -1
  150. package/bpk-scrim-utils/src/withScrim.js +2 -1
  151. package/package.json +5 -2
@@ -19,9 +19,10 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React, { cloneElement, type Element } from 'react';
22
- import BpkLabel from 'bpk-component-label';
23
- import BpkFormValidation from 'bpk-component-form-validation';
24
- import { cssModules } from 'bpk-react-utils';
22
+
23
+ import BpkLabel from '../../bpk-component-label';
24
+ import BpkFormValidation from '../../bpk-component-form-validation';
25
+ import { cssModules } from '../../bpk-react-utils';
25
26
 
26
27
  import STYLES from './BpkFieldset.module.scss';
27
28
 
@@ -18,7 +18,8 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
- import { cssModules } from 'bpk-react-utils';
21
+
22
+ import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import BpkFlareBar from './BpkFlareBar';
24
25
  import STYLES from './bpk-content-bubble.module.scss';
@@ -18,7 +18,8 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
- import { cssModules } from 'bpk-react-utils';
21
+
22
+ import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './bpk-flare-bar.module.scss';
24
25
  import Pointer from './__generated__/js/pointer';
@@ -18,15 +18,16 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import AnimateHeight from 'bpk-animate-height';
22
- import { cssModules } from 'bpk-react-utils';
23
- import BpkSmallExclamationIcon from 'bpk-component-icon/sm/exclamation-circle';
24
- import { withAlignment } from 'bpk-component-icon';
25
21
  import {
26
22
  lineHeightSm,
27
23
  iconSizeSm,
28
24
  } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
29
25
 
26
+ import AnimateHeight from '../../bpk-animate-height';
27
+ import { cssModules } from '../../bpk-react-utils';
28
+ import BpkSmallExclamationIcon from '../../bpk-component-icon/sm/exclamation-circle';
29
+ import { withAlignment } from '../../bpk-component-icon';
30
+
30
31
  import STYLES from './BpkFormValidation.module.scss';
31
32
 
32
33
  const getClassName = cssModules(STYLES);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-graphic-promotion",
3
- "version": "3.0.4",
3
+ "version": "3.1.0",
4
4
  "description": "Backpack graphic-promotion component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -19,10 +19,11 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React from 'react';
22
- import { cssModules } from 'bpk-react-utils';
23
- import BpkText from 'bpk-component-text';
24
- import BpkButton from 'bpk-component-button';
25
- import BpkCard from 'bpk-component-card';
22
+
23
+ import { cssModules } from '../../bpk-react-utils';
24
+ import BpkText from '../../bpk-component-text';
25
+ import BpkButton from '../../bpk-component-button';
26
+ import BpkCard from '../../bpk-component-card';
26
27
 
27
28
  import STYLES from './BpkGraphicPromo.module.scss';
28
29
 
@@ -30,8 +30,6 @@
30
30
  box-shadow: none;
31
31
 
32
32
  @include breakpoint-landscape {
33
- pointer-events: none;
34
-
35
33
  &__sponsor-label {
36
34
  margin-bottom: bpk-spacing-sm();
37
35
 
@@ -172,6 +170,11 @@
172
170
 
173
171
  @include bpk-margin-leading(bpk-spacing-xxxl(), false);
174
172
  @include bpk-margin-trailing(bpk-spacing-xxl(), false);
173
+
174
+ /* adjusting for 1.5rem different between margins */
175
+ &--center > * {
176
+ @include bpk-margin-trailing(bpk-spacing-lg());
177
+ }
175
178
  }
176
179
 
177
180
  @include breakpoint-landscape-tablet {
@@ -179,6 +182,11 @@
179
182
 
180
183
  @include bpk-margin-leading(bpk-spacing-xxl(), false);
181
184
  @include bpk-margin-trailing(bpk-spacing-xl(), false);
185
+
186
+ /* adjusting for 0.5rem different between margins */
187
+ &--center > * {
188
+ @include bpk-margin-trailing(bpk-spacing-md());
189
+ }
182
190
  }
183
191
 
184
192
  @include breakpoint-portrait-large {
@@ -237,8 +245,6 @@
237
245
  }
238
246
 
239
247
  &__cta {
240
- pointer-events: auto;
241
-
242
248
  @include breakpoint-landscape {
243
249
  margin-top: bpk-spacing-xl();
244
250
  }
@@ -18,7 +18,8 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import { cssModules } from 'bpk-react-utils';
21
+
22
+ import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './BpkGridColumn.module.scss';
24
25
 
@@ -18,7 +18,8 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import { cssModules } from 'bpk-react-utils';
21
+
22
+ import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './BpkGridContainer.module.scss';
24
25
 
@@ -18,7 +18,8 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import { cssModules } from 'bpk-react-utils';
21
+
22
+ import { cssModules } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './BpkGridRow.module.scss';
24
25
 
@@ -18,8 +18,9 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import { cssModules } from 'bpk-react-utils';
22
- import { BpkButtonLink } from 'bpk-component-link';
21
+
22
+ import { cssModules } from '../../bpk-react-utils';
23
+ import { BpkButtonLink } from '../../bpk-component-link';
23
24
 
24
25
  import STYLES from './BpkGridToggle.module.scss';
25
26
 
@@ -19,9 +19,10 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import ReactDOM from 'react-dom';
22
- import { cssModules } from 'bpk-react-utils';
23
22
  import React, { Component, type Node } from 'react';
24
- import BpkMobileScrollContainer from 'bpk-component-mobile-scroll-container';
23
+
24
+ import { cssModules } from '../../bpk-react-utils';
25
+ import BpkMobileScrollContainer from '../../bpk-component-mobile-scroll-container';
25
26
 
26
27
  import STYLES from './BpkHorizontalNav.module.scss';
27
28
 
@@ -19,7 +19,8 @@
19
19
 
20
20
  import React, { Component, type Node } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import { cssModules } from 'bpk-react-utils';
22
+
23
+ import { cssModules } from '../../bpk-react-utils';
23
24
 
24
25
  import { HORIZONTAL_NAV_TYPES } from './BpkHorizontalNav';
25
26
  import STYLES from './BpkHorizontalNavItem.module.scss';
@@ -18,7 +18,8 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import { wrapDisplayName } from 'bpk-react-utils';
21
+
22
+ import { wrapDisplayName } from '../../bpk-react-utils';
22
23
 
23
24
  export default (displayName, classNamesToAdd = []) =>
24
25
  (ComposedComponent) => {
@@ -17,7 +17,8 @@
17
17
  */
18
18
 
19
19
  import React from 'react';
20
- import { wrapDisplayName } from 'bpk-react-utils';
20
+
21
+ import { wrapDisplayName } from '../../bpk-react-utils';
21
22
 
22
23
  export default function withAlignment(Component, objectHeight, subjectHeight) {
23
24
  const WithAlignment = (props) => {
@@ -18,7 +18,8 @@
18
18
  /* @flow strict */
19
19
 
20
20
  import React, { type AbstractComponent } from 'react';
21
- import { cssModules, wrapDisplayName } from 'bpk-react-utils';
21
+
22
+ import { cssModules, wrapDisplayName } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './withDescription.module.scss';
24
25
 
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { cssModules } from 'bpk-react-utils';
19
+ import { cssModules } from '../../bpk-react-utils';
20
20
 
21
21
  import STYLES from './BpkIcon.module.scss';
22
22
  import classNameModifierHOCFactory from './classNameModifierHOCFactory';
@@ -19,11 +19,12 @@
19
19
 
20
20
  import React, { type Node, Component } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import { cssModules, deprecated } from 'bpk-react-utils';
23
- import { BpkSpinner } from 'bpk-component-spinner';
24
22
  import CSSTransition from 'react-transition-group/CSSTransition';
25
23
  import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
26
24
 
25
+ import { cssModules, deprecated } from '../../bpk-react-utils';
26
+ import { BpkSpinner } from '../../bpk-component-spinner';
27
+
27
28
  import { widthHeightAspectRatioPropType } from './customPropTypes';
28
29
  import STYLES from './BpkBackgroundImage.module.scss';
29
30
 
@@ -19,11 +19,12 @@
19
19
 
20
20
  import React, { type Node, Component } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import { cssModules, deprecated } from 'bpk-react-utils';
23
- import { BpkSpinner } from 'bpk-component-spinner';
24
22
  import CSSTransition from 'react-transition-group/CSSTransition';
25
23
  import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
26
24
 
25
+ import { cssModules, deprecated } from '../../bpk-react-utils';
26
+ import { BpkSpinner } from '../../bpk-component-spinner';
27
+
27
28
  import { widthHeightAspectRatioPropType } from './customPropTypes';
28
29
  import STYLES from './BpkImage.module.scss';
29
30
  import BORDER_RADIUS_STYLES from './BpkImageBorderRadiusStyles';
@@ -19,9 +19,10 @@
19
19
 
20
20
  import React, { type Node, type ComponentType } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import { wrapDisplayName } from 'bpk-react-utils';
23
22
  import throttle from 'lodash/throttle';
24
23
 
24
+ import { wrapDisplayName } from '../../bpk-react-utils';
25
+
25
26
  type WithLazyLoadingProps = {
26
27
  className: ?string,
27
28
  style: ?{},
@@ -18,7 +18,8 @@
18
18
  /* @flow */
19
19
 
20
20
  import React, { type AbstractComponent } from 'react';
21
- import { wrapDisplayName } from 'bpk-react-utils';
21
+
22
+ import { wrapDisplayName } from '../../bpk-react-utils';
22
23
 
23
24
  type InjectedProps = {|
24
25
  onLoad: () => mixed,
@@ -25,10 +25,11 @@ import React, {
25
25
  type AbstractComponent,
26
26
  } from 'react';
27
27
  import PropTypes from 'prop-types';
28
- import { cssModules } from 'bpk-react-utils';
29
28
  import omit from 'lodash/omit';
30
29
  import extend from 'lodash/extend';
31
30
 
31
+ import { cssModules } from '../../bpk-react-utils';
32
+
32
33
  import './intersection-observer';
33
34
  import DataSource from './DataSource';
34
35
  import STYLES from './withInfiniteScroll.module.scss';
@@ -19,9 +19,10 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React from 'react';
22
- import ClearIcon from 'bpk-component-icon/sm/close-circle';
23
- import { withButtonAlignment } from 'bpk-component-icon';
24
- import { cssModules } from 'bpk-react-utils';
22
+
23
+ import ClearIcon from '../../bpk-component-icon/sm/close-circle';
24
+ import { withButtonAlignment } from '../../bpk-component-icon';
25
+ import { cssModules } from '../../bpk-react-utils';
25
26
 
26
27
  import STYLES from './BpkClearButton.module.scss';
27
28
 
@@ -19,7 +19,8 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React, { Component } from 'react';
22
- import { cssModules } from 'bpk-react-utils';
22
+
23
+ import { cssModules } from '../../bpk-react-utils';
23
24
 
24
25
  import BpkClearButton from './BpkClearButton';
25
26
  import STYLES from './BpkInput.module.scss';
@@ -18,7 +18,8 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
- import { cssModules, wrapDisplayName } from 'bpk-react-utils';
21
+
22
+ import { cssModules, wrapDisplayName } from '../../bpk-react-utils';
22
23
 
23
24
  import STYLES from './BpkInput.module.scss';
24
25
 
@@ -19,7 +19,8 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React, { type Node } from 'react';
22
- import { cssModules } from 'bpk-react-utils';
22
+
23
+ import { cssModules } from '../../bpk-react-utils';
23
24
 
24
25
  import STYLES from './BpkLabel.module.scss';
25
26
 
@@ -20,7 +20,8 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
- import { cssModules } from 'bpk-react-utils';
23
+
24
+ import { cssModules } from '../../bpk-react-utils';
24
25
 
25
26
  import themeAttributes from './themeAttributes';
26
27
  import STYLES from './BpkLink.module.scss';
@@ -20,7 +20,8 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
- import { cssModules } from 'bpk-react-utils';
23
+
24
+ import { cssModules } from '../../bpk-react-utils';
24
25
 
25
26
  import themeAttributes, {
26
27
  linkAlternateThemeAttributes,
@@ -20,7 +20,8 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
- import { cssModules } from 'bpk-react-utils';
23
+
24
+ import { cssModules } from '../../bpk-react-utils';
24
25
 
25
26
  import STYLES from './BpkList.module.scss';
26
27
 
@@ -20,7 +20,8 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
- import { cssModules } from 'bpk-react-utils';
23
+
24
+ import { cssModules } from '../../bpk-react-utils';
24
25
 
25
26
  import STYLES from './BpkList.module.scss';
26
27
 
@@ -20,16 +20,17 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node, type Element } from 'react';
23
- import BpkButton from 'bpk-component-button';
24
- import { BpkSpinner, BpkLargeSpinner } from 'bpk-component-spinner';
23
+
24
+ import BpkButton from '../../bpk-component-button';
25
+ import { BpkSpinner, BpkLargeSpinner } from '../../bpk-component-spinner';
25
26
  import {
26
27
  withButtonAlignment,
27
28
  withLargeButtonAlignment,
28
29
  withRtlSupport,
29
- } from 'bpk-component-icon';
30
- import ArrowIconSm from 'bpk-component-icon/sm/long-arrow-right';
31
- import ArrowIconLg from 'bpk-component-icon/lg/long-arrow-right';
32
- import { cssModules } from 'bpk-react-utils';
30
+ } from '../../bpk-component-icon';
31
+ import ArrowIconSm from '../../bpk-component-icon/sm/long-arrow-right';
32
+ import ArrowIconLg from '../../bpk-component-icon/lg/long-arrow-right';
33
+ import { cssModules } from '../../bpk-react-utils';
33
34
 
34
35
  import STYLES from './BpkLoadingButton.module.scss';
35
36
 
@@ -20,7 +20,8 @@
20
20
 
21
21
  import React, { type Node } from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import { cssModules } from 'bpk-react-utils';
23
+
24
+ import { cssModules } from '../../bpk-react-utils';
24
25
 
25
26
  import BpkIconMarkerBackground from './BpkIconMarkerBackground';
26
27
  import { LatLongPropType, type LatLong } from './common-types';
@@ -19,7 +19,8 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React from 'react';
22
- import { cssModules } from 'bpk-react-utils';
22
+
23
+ import { cssModules } from '../../bpk-react-utils';
23
24
 
24
25
  import STYLES from './BpkIconMarkerBackground.module.scss';
25
26
 
@@ -20,9 +20,10 @@
20
20
 
21
21
  import React, { type Node, useCallback, useRef } from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import { cssModules } from 'bpk-react-utils';
24
23
  import { GoogleMap } from '@react-google-maps/api';
25
24
 
25
+ import { cssModules } from '../../bpk-react-utils';
26
+
26
27
  import { LatLongPropType, type LatLong } from './common-types';
27
28
  import STYLES from './BpkMap.module.scss';
28
29
 
@@ -20,8 +20,9 @@
20
20
 
21
21
  import React from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import { cssModules } from 'bpk-react-utils';
24
- import BpkText, { TEXT_STYLES } from 'bpk-component-text/src/BpkText';
23
+
24
+ import { cssModules } from '../../bpk-react-utils';
25
+ import BpkText, { TEXT_STYLES } from '../../bpk-component-text/src/BpkText';
25
26
 
26
27
  import { LatLongPropType, type LatLong } from './common-types';
27
28
  import BpkBasicMapMarker from './BpkBasicMapMarker';
@@ -18,8 +18,9 @@
18
18
  /* @flow strict */
19
19
 
20
20
  import React from 'react';
21
- import { BpkLargeSpinner, SPINNER_TYPES } from 'bpk-component-spinner';
22
- import { cssModules } from 'bpk-react-utils';
21
+
22
+ import { BpkLargeSpinner, SPINNER_TYPES } from '../../bpk-component-spinner';
23
+ import { cssModules } from '../../bpk-react-utils';
23
24
 
24
25
  import STYLES from './DefaultLoadingElement.module.scss';
25
26
 
@@ -21,7 +21,8 @@
21
21
  import PropTypes from 'prop-types';
22
22
  import debounce from 'lodash.debounce';
23
23
  import React, { Component, type Node } from 'react';
24
- import { cssModules, isRTL } from 'bpk-react-utils';
24
+
25
+ import { cssModules, isRTL } from '../../bpk-react-utils';
25
26
 
26
27
  import STYLES from './BpkMobileScrollContainer.module.scss';
27
28
 
@@ -20,8 +20,9 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Element } from 'react';
23
- import { withScrim } from 'bpk-scrim-utils';
24
- import { Portal, cssModules, isDeviceIphone } from 'bpk-react-utils';
23
+
24
+ import { withScrim } from '../../bpk-scrim-utils';
25
+ import { Portal, cssModules, isDeviceIphone } from '../../bpk-react-utils';
25
26
 
26
27
  import STYLES from './BpkModal.module.scss';
27
28
  import BpkModalInner, {
@@ -18,12 +18,13 @@
18
18
 
19
19
  /* @flow strict */
20
20
 
21
- import { BpkButtonLink } from 'bpk-component-link';
22
21
  import PropTypes from 'prop-types';
23
22
  import React, { type Node, type Element } from 'react';
24
- import BpkCloseButton from 'bpk-component-close-button';
25
- import BpkNavigationBar from 'bpk-component-navigation-bar';
26
- import { TransitionInitialMount, cssModules } from 'bpk-react-utils';
23
+
24
+ import { BpkButtonLink } from '../../bpk-component-link';
25
+ import BpkCloseButton from '../../bpk-component-close-button';
26
+ import BpkNavigationBar from '../../bpk-component-navigation-bar';
27
+ import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
27
28
 
28
29
  import STYLES from './BpkModalInner.module.scss';
29
30
  import { titlePropType, onClosePropType } from './customPropTypes';
@@ -18,6 +18,6 @@
18
18
 
19
19
  /* @flow strict */
20
20
 
21
- import { themeAttributes as linkAttributes } from 'bpk-component-link';
21
+ import { themeAttributes as linkAttributes } from '../../bpk-component-link';
22
22
 
23
23
  export default [...linkAttributes];
@@ -20,8 +20,9 @@
20
20
 
21
21
  import React, { type Node, type Element } from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import { cssModules } from 'bpk-react-utils';
24
- import BpkText, { TEXT_STYLES } from 'bpk-component-text';
23
+
24
+ import { cssModules } from '../../bpk-react-utils';
25
+ import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
25
26
 
26
27
  import STYLES from './BpkNavigationBar.module.scss';
27
28
 
@@ -20,9 +20,10 @@
20
20
 
21
21
  import React, { type Node } from 'react';
22
22
  import PropTypes from 'prop-types';
23
+
23
24
  // TODO: close button is not really only a close button, we should rename and update the import here
24
- import { BpkButtonLink } from 'bpk-component-link';
25
- import { cssModules } from 'bpk-react-utils';
25
+ import { BpkButtonLink } from '../../bpk-component-link';
26
+ import { cssModules } from '../../bpk-react-utils';
26
27
 
27
28
  import STYLES from './BpkNavigationBarButtonLink.module.scss';
28
29
 
@@ -20,9 +20,10 @@
20
20
 
21
21
  import React, { type ComponentType } from 'react';
22
22
  import PropTypes from 'prop-types';
23
+
23
24
  // TODO: close button is not really only a close button, we should rename and update the import here
24
- import BpkIconButton from 'bpk-component-close-button';
25
- import { cssModules } from 'bpk-react-utils';
25
+ import BpkIconButton from '../../bpk-component-close-button';
26
+ import { cssModules } from '../../bpk-react-utils';
26
27
 
27
28
  import STYLES from './BpkNavigationBarIconButton.module.scss';
28
29
 
@@ -18,13 +18,14 @@
18
18
 
19
19
  /* @flow strict */
20
20
 
21
- import { cssModules, isRTL } from 'bpk-react-utils';
22
21
  import React, { Children, type Element } from 'react';
23
22
  import PropTypes from 'prop-types';
24
23
  import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
25
24
  import { TransitionGroup, Transition } from 'react-transition-group';
26
25
  import debounce from 'lodash/debounce';
27
26
 
27
+ import { cssModules, isRTL } from '../../bpk-react-utils';
28
+
28
29
  import STYLES from './BpkNavigationStack.module.scss';
29
30
 
30
31
  const getClassName = cssModules(STYLES);
@@ -21,12 +21,13 @@
21
21
 
22
22
  import PropTypes from 'prop-types';
23
23
  import React from 'react';
24
- import BpkButtonSecondary from 'bpk-component-button/BpkButtonSecondary';
25
- import BpkButtonSecondaryOnDark from 'bpk-component-button/BpkButtonSecondaryOnDark';
26
- import { withButtonAlignment } from 'bpk-component-icon';
27
- import MinusIcon from 'bpk-component-icon/sm/minus';
28
- import PlusIcon from 'bpk-component-icon/sm/plus';
29
- import { cssModules } from 'bpk-react-utils';
24
+
25
+ import BpkButtonSecondary from '../../bpk-component-button/BpkButtonSecondary';
26
+ import BpkButtonSecondaryOnDark from '../../bpk-component-button/BpkButtonSecondaryOnDark';
27
+ import { withButtonAlignment } from '../../bpk-component-icon';
28
+ import MinusIcon from '../../bpk-component-icon/sm/minus';
29
+ import PlusIcon from '../../bpk-component-icon/sm/plus';
30
+ import { cssModules } from '../../bpk-react-utils';
30
31
 
31
32
  import {
32
33
  type CommonProps,
@@ -20,7 +20,8 @@
20
20
 
21
21
  import React from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import { cssModules } from 'bpk-react-utils';
23
+
24
+ import { cssModules } from '../../bpk-react-utils';
24
25
 
25
26
  import BpkConfigurableNudger from './BpkConfigurableNudger';
26
27
  import {