@skyscanner/backpack-web 0.0.2 → 0.0.5

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 (188) hide show
  1. package/bpk-animate-height/examples.js +1 -1
  2. package/bpk-component-accordion/examples.js +4 -4
  3. package/bpk-component-accordion/src/BpkAccordion.js +1 -1
  4. package/bpk-component-accordion/src/BpkAccordionItem.js +7 -7
  5. package/bpk-component-accordion/src/withAccordionItemState.js +2 -2
  6. package/bpk-component-accordion/src/withSingleItemAccordionState.js +1 -1
  7. package/bpk-component-aria-live/examples.js +7 -8
  8. package/bpk-component-aria-live/src/BpkAriaLive.js +1 -1
  9. package/bpk-component-autosuggest/examples.js +4 -4
  10. package/bpk-component-autosuggest/src/BpkAutosuggest.js +2 -2
  11. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -1
  12. package/bpk-component-badge/BadgeLayout.js +1 -1
  13. package/bpk-component-badge/examples.js +5 -5
  14. package/bpk-component-badge/src/BpkBadge.js +1 -1
  15. package/bpk-component-banner-alert/examples.js +4 -4
  16. package/bpk-component-banner-alert/src/AnimateAndFade.js +2 -2
  17. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +7 -7
  18. package/bpk-component-banner-alert/src/withBannerAlertState.js +1 -1
  19. package/bpk-component-barchart/examples.js +3 -3
  20. package/bpk-component-barchart/hocs.js +1 -1
  21. package/bpk-component-barchart/src/BpkBarchart.js +2 -2
  22. package/bpk-component-barchart/src/BpkBarchartBar.js +1 -1
  23. package/bpk-component-barchart/src/BpkChartAxis.js +1 -1
  24. package/bpk-component-barchart/src/BpkChartDataTable.js +1 -1
  25. package/bpk-component-barchart/src/BpkChartGridLines.js +9 -9
  26. package/bpk-component-barchart/src/RTLtransforms.js +1 -1
  27. package/bpk-component-blockquote/src/BpkBlockquote.js +1 -1
  28. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -1
  29. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +5 -5
  30. package/bpk-component-breakpoint/examples.js +1 -1
  31. package/bpk-component-calendar/examples-components.js +1 -1
  32. package/bpk-component-calendar/examples.js +1 -1
  33. package/bpk-component-calendar/src/BpkCalendarContainer.js +1 -1
  34. package/bpk-component-calendar/src/BpkCalendarDate.js +1 -1
  35. package/bpk-component-calendar/src/BpkCalendarGrid.js +1 -1
  36. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +1 -1
  37. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +12 -12
  38. package/bpk-component-calendar/src/BpkCalendarNav.js +13 -13
  39. package/bpk-component-calendar/src/Week.js +2 -2
  40. package/bpk-component-calendar/src/composeCalendar.js +1 -1
  41. package/bpk-component-card/examples.js +2 -2
  42. package/bpk-component-card/src/BpkCard.js +1 -1
  43. package/bpk-component-checkbox/src/BpkCheckbox.js +1 -1
  44. package/bpk-component-chip/examples.js +9 -9
  45. package/bpk-component-chip/src/BpkDismissibleChip.js +1 -1
  46. package/bpk-component-chip/src/BpkSelectableChip.js +2 -2
  47. package/bpk-component-close-button/src/BpkCloseButton.js +2 -2
  48. package/bpk-component-code/src/BpkCode.js +1 -1
  49. package/bpk-component-code/src/BpkCodeBlock.js +1 -1
  50. package/bpk-component-content-container/examples.js +2 -2
  51. package/bpk-component-content-container/src/BpkContentContainer.js +1 -1
  52. package/bpk-component-datatable/src/BpkDataTable.js +1 -1
  53. package/bpk-component-datatable/src/BpkDataTableColumn.js +1 -1
  54. package/bpk-component-datatable/src/bpkHeaderRenderer.js +4 -4
  55. package/bpk-component-datepicker/examples.js +4 -4
  56. package/bpk-component-datepicker/index.js +1 -1
  57. package/bpk-component-datepicker/src/BpkDatepicker.js +6 -6
  58. package/bpk-component-datepicker/src/themeAttributes.js +3 -3
  59. package/bpk-component-description-list/src/ComponentFactory.js +1 -1
  60. package/bpk-component-dialog/examples.js +6 -6
  61. package/bpk-component-dialog/src/BpkDialog.js +2 -2
  62. package/bpk-component-dialog/src/BpkDialogInner.js +3 -3
  63. package/bpk-component-drawer/examples.js +3 -3
  64. package/bpk-component-drawer/src/BpkDrawer.js +2 -2
  65. package/bpk-component-drawer/src/BpkDrawerContent.js +3 -3
  66. package/bpk-component-drawer/src/themeAttributes.js +1 -1
  67. package/bpk-component-fieldset/examples.js +12 -12
  68. package/bpk-component-fieldset/src/BpkFieldset.js +3 -3
  69. package/bpk-component-flare/examples.js +2 -2
  70. package/bpk-component-flare/src/BpkContentBubble.js +1 -1
  71. package/bpk-component-flare/src/BpkFlareBar.js +1 -1
  72. package/bpk-component-form-validation/examples.js +6 -6
  73. package/bpk-component-form-validation/src/BpkFormValidation.js +4 -4
  74. package/bpk-component-grid/src/BpkGridColumn.js +1 -1
  75. package/bpk-component-grid/src/BpkGridContainer.js +1 -1
  76. package/bpk-component-grid/src/BpkGridRow.js +1 -1
  77. package/bpk-component-grid-toggle/src/BpkGridToggle.js +2 -2
  78. package/bpk-component-horizontal-nav/examples.js +2 -2
  79. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +2 -2
  80. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +1 -1
  81. package/bpk-component-icon/examples.js +3 -3
  82. package/bpk-component-icon/src/classNameModifierHOCFactory.js +1 -1
  83. package/bpk-component-icon/src/withAlignment.js +3 -4
  84. package/bpk-component-icon/src/withDescription.js +1 -1
  85. package/bpk-component-icon/src/withRtlSupport.js +1 -1
  86. package/bpk-component-image/examples.js +2 -2
  87. package/bpk-component-image/src/BpkBackgroundImage.js +2 -2
  88. package/bpk-component-image/src/BpkImage.js +2 -2
  89. package/bpk-component-image/src/withLazyLoading.js +1 -1
  90. package/bpk-component-image/src/withLoadingBehavior.js +28 -28
  91. package/bpk-component-infinite-scroll/examples.js +4 -4
  92. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +106 -106
  93. package/bpk-component-input/examples.js +3 -3
  94. package/bpk-component-input/src/BpkClearButton.js +3 -3
  95. package/bpk-component-input/src/BpkInput.js +1 -1
  96. package/bpk-component-input/src/withOpenEvents.js +1 -1
  97. package/bpk-component-label/src/BpkLabel.js +1 -1
  98. package/bpk-component-link/src/BpkButtonLink.js +1 -1
  99. package/bpk-component-link/src/BpkLink.js +1 -1
  100. package/bpk-component-list/src/BpkList.js +1 -1
  101. package/bpk-component-list/src/BpkListItem.js +1 -1
  102. package/bpk-component-loading-button/examples.js +3 -3
  103. package/bpk-component-loading-button/src/BpkLoadingButton.js +5 -5
  104. package/bpk-component-map/examples.js +6 -6
  105. package/bpk-component-map/src/BpkIconMarker.js +1 -1
  106. package/bpk-component-map/src/BpkIconMarkerBackground.js +1 -1
  107. package/bpk-component-map/src/BpkPriceMarker.js +2 -2
  108. package/bpk-component-map/src/DefaultLoadingElement.js +2 -2
  109. package/bpk-component-mobile-scroll-container/examples.js +1 -1
  110. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -1
  111. package/bpk-component-modal/examples.js +7 -7
  112. package/bpk-component-modal/src/BpkModal.js +8 -8
  113. package/bpk-component-modal/src/BpkModalInner.js +4 -4
  114. package/bpk-component-modal/src/themeAttributes.js +1 -1
  115. package/bpk-component-navigation-bar/AirlineLogo.js +1 -1
  116. package/bpk-component-navigation-bar/examples.js +4 -4
  117. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +2 -2
  118. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +2 -2
  119. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +2 -2
  120. package/bpk-component-navigation-stack/examples.js +2 -2
  121. package/bpk-component-navigation-stack/src/BpkNavigationStack.js +4 -5
  122. package/bpk-component-navigation-stack/stories-components.js +20 -20
  123. package/bpk-component-nudger/examples.js +2 -2
  124. package/bpk-component-nudger/src/BpkConfigurableNudger.js +6 -6
  125. package/bpk-component-nudger/src/BpkNudger.js +1 -1
  126. package/bpk-component-nudger/src/themeAttributes.js +1 -1
  127. package/bpk-component-overlay/examples.js +3 -3
  128. package/bpk-component-overlay/src/BpkOverlay.js +2 -2
  129. package/bpk-component-pagination/src/BpkPagination.js +1 -1
  130. package/bpk-component-pagination/src/BpkPaginationList.js +1 -1
  131. package/bpk-component-pagination/src/BpkPaginationNudger.js +4 -4
  132. package/bpk-component-pagination/src/BpkPaginationPage.js +2 -2
  133. package/bpk-component-pagination/src/themeAttributes.js +1 -1
  134. package/bpk-component-panel/src/BpkPanel.js +1 -1
  135. package/bpk-component-phone-input/examples.js +2 -2
  136. package/bpk-component-phone-input/src/BpkPhoneInput.js +4 -4
  137. package/bpk-component-popover/examples.js +5 -5
  138. package/bpk-component-popover/src/BpkPopover.js +4 -4
  139. package/bpk-component-popover/src/BpkPopoverPortal.js +1 -1
  140. package/bpk-component-popover/src/themeAttributes.js +1 -1
  141. package/bpk-component-progress/examples.js +2 -2
  142. package/bpk-component-progress/src/BpkProgress.js +1 -1
  143. package/bpk-component-radio/src/BpkRadio.js +1 -1
  144. package/bpk-component-rating/examples.js +1 -1
  145. package/bpk-component-rating/src/BpkRating.js +2 -2
  146. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +1 -1
  147. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +1 -1
  148. package/bpk-component-scrollable-calendar/examples.js +1 -1
  149. package/bpk-component-scrollable-calendar/index.js +1 -1
  150. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +1 -1
  151. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +1 -1
  152. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +3 -3
  153. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +2 -2
  154. package/bpk-component-scrollable-calendar/src/utils.js +1 -1
  155. package/bpk-component-section-list/src/BpkSectionListItem.js +3 -3
  156. package/bpk-component-section-list/src/BpkSectionListSection.js +2 -2
  157. package/bpk-component-select/src/BpkSelect.js +1 -1
  158. package/bpk-component-skip-link/src/BpkSkipLink.js +1 -1
  159. package/bpk-component-slider/examples.js +9 -9
  160. package/bpk-component-slider/src/BpkSlider.js +1 -1
  161. package/bpk-component-spinner/SpinnerLayout.js +1 -1
  162. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -1
  163. package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -1
  164. package/bpk-component-spinner/src/BpkSpinner.js +1 -1
  165. package/bpk-component-star-rating/examples.js +1 -1
  166. package/bpk-component-star-rating/src/BpkInteractiveStar.js +1 -1
  167. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +1 -1
  168. package/bpk-component-star-rating/src/BpkStar.js +8 -8
  169. package/bpk-component-star-rating/src/BpkStarRating.js +4 -4
  170. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +1 -1
  171. package/bpk-component-switch/src/BpkSwitch.js +1 -1
  172. package/bpk-component-table/src/BpkTable.js +1 -1
  173. package/bpk-component-table/src/BpkTableCell.js +1 -1
  174. package/bpk-component-table/src/BpkTableHeadCell.js +1 -1
  175. package/bpk-component-text/examples.js +1 -1
  176. package/bpk-component-text/src/BpkText.js +1 -1
  177. package/bpk-component-textarea/examples.js +1 -1
  178. package/bpk-component-textarea/src/BpkTextarea.js +1 -1
  179. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +3 -3
  180. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +1 -1
  181. package/bpk-component-ticket/examples.js +4 -4
  182. package/bpk-component-ticket/src/BpkTicket.js +7 -7
  183. package/bpk-component-tooltip/examples.js +3 -3
  184. package/bpk-component-tooltip/src/BpkTooltip.js +1 -1
  185. package/bpk-component-tooltip/src/BpkTooltipPortal.js +1 -1
  186. package/bpk-scrim-utils/src/BpkScrim.js +1 -1
  187. package/bpk-scrim-utils/src/withScrim.js +1 -1
  188. package/package.json +1 -1
@@ -18,7 +18,7 @@
18
18
 
19
19
  /* @flow strict */
20
20
 
21
- import BpkButton from 'bpk-component-button';
21
+ import BpkButton from '../bpk-component-button';
22
22
  import React, { Component, type Node } from 'react';
23
23
 
24
24
  import AnimateHeight from './index';
@@ -19,10 +19,10 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React from 'react';
22
- import BpkCheckbox from 'bpk-component-checkbox';
23
- import { withAlignment } from 'bpk-component-icon';
24
- import StopsIcon from 'bpk-component-icon/sm/stops';
25
- import TimeIcon from 'bpk-component-icon/sm/time';
22
+ import BpkCheckbox from '../bpk-component-checkbox';
23
+ import { withAlignment } from '../bpk-component-icon';
24
+ import StopsIcon from '../bpk-component-icon/sm/stops';
25
+ import TimeIcon from '../bpk-component-icon/sm/time';
26
26
  import {
27
27
  colorMonteverde,
28
28
  colorPanjin,
@@ -20,7 +20,7 @@
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
+ import { cssModules } from '../../bpk-react-utils';
24
24
 
25
25
  import STYLES from './BpkAccordion.module.scss';
26
26
 
@@ -20,14 +20,14 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node, type Element } from 'react';
23
- import AnimateHeight from 'bpk-animate-height';
24
- import { withButtonAlignment } from 'bpk-component-icon';
25
- import ChevronDownIcon from 'bpk-component-icon/sm/chevron-down';
23
+ import AnimateHeight from '../../bpk-animate-height';
24
+ import { withButtonAlignment } from '../../bpk-component-icon';
25
+ import ChevronDownIcon from '../../bpk-component-icon/sm/chevron-down';
26
26
  import BpkText, {
27
27
  TEXT_STYLES,
28
28
  WEIGHT_STYLES as weights,
29
- } from 'bpk-component-text';
30
- import { cssModules, deprecated } from 'bpk-react-utils';
29
+ } from '../../bpk-component-text';
30
+ import { cssModules, deprecated } from '../../bpk-react-utils';
31
31
 
32
32
  import STYLES from './BpkAccordionItem.module.scss';
33
33
 
@@ -79,8 +79,8 @@ const BpkAccordionItem = (props: Props) => {
79
79
  const contentId = `${id}_content`;
80
80
  const clonedIcon = icon
81
81
  ? React.cloneElement(icon, {
82
- className: getClassName('bpk-accordion__leading-icon'),
83
- })
82
+ className: getClassName('bpk-accordion__leading-icon'),
83
+ })
84
84
  : null;
85
85
 
86
86
  return (
@@ -20,7 +20,7 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { Component, type ComponentType } from 'react';
23
- import { wrapDisplayName } from 'bpk-react-utils';
23
+ import { wrapDisplayName } from '../../bpk-react-utils';
24
24
 
25
25
  type Props = {
26
26
  initiallyExpanded: boolean,
@@ -59,7 +59,7 @@ const withAccordionItemState = (ComposedComponent: ComponentType<any>) => {
59
59
  (prevState) => ({
60
60
  expanded: !prevState.expanded,
61
61
  }),
62
- this.props.onClick || (() => {}),
62
+ this.props.onClick || (() => { }),
63
63
  );
64
64
  };
65
65
 
@@ -27,7 +27,7 @@ import React, {
27
27
  type Element,
28
28
  type ComponentType,
29
29
  } from 'react';
30
- import { wrapDisplayName } from 'bpk-react-utils';
30
+ import { wrapDisplayName } from '../../bpk-react-utils';
31
31
 
32
32
  const getInitiallyExpanded = (children) => {
33
33
  const accordionItems = Children.toArray(children);
@@ -18,12 +18,12 @@
18
18
  /* @flow strict */
19
19
 
20
20
  import React, { type Node } from 'react';
21
- import BpkChip from 'bpk-component-chip';
22
- import BpkFieldset from 'bpk-component-fieldset';
23
- import BpkSelect from 'bpk-component-select';
24
- import BpkSwitch from 'bpk-component-switch';
25
- import { cssModules } from 'bpk-react-utils';
26
- import { BpkCode } from 'bpk-component-code';
21
+ import BpkChip from '../bpk-component-chip';
22
+ import BpkFieldset from '../bpk-component-fieldset';
23
+ import BpkSelect from '../bpk-component-select';
24
+ import BpkSwitch from '../bpk-component-switch';
25
+ import { cssModules } from '../bpk-react-utils';
26
+ import { BpkCode } from '../bpk-component-code';
27
27
 
28
28
  import STYLES from './examples.module.scss';
29
29
 
@@ -187,8 +187,7 @@ class ChipsExample extends React.Component<
187
187
  const nextState = prevState;
188
188
  nextState.categories[category] = !prevState.categories[category];
189
189
  nextState.updates.push(
190
- `${category} became ${
191
- nextState.categories[category] ? 'enabled' : 'disabled'
190
+ `${category} became ${nextState.categories[category] ? 'enabled' : 'disabled'
192
191
  }.`,
193
192
  );
194
193
  return nextState;
@@ -19,7 +19,7 @@
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
+ import { cssModules } from '../../bpk-react-utils';
23
23
 
24
24
  import STYLES from './BpkAriaLive.module.scss';
25
25
 
@@ -19,8 +19,8 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React from 'react';
22
- import { withRtlSupport } from 'bpk-component-icon';
23
- import FlightIcon from 'bpk-component-icon/lg/flight';
22
+ import { withRtlSupport } from '../bpk-component-icon';
23
+ import FlightIcon from '../bpk-component-icon/lg/flight';
24
24
 
25
25
  import BpkAutosuggest, { BpkAutosuggestSuggestion } from './index';
26
26
 
@@ -108,8 +108,8 @@ const getSuggestions = (value, hanzi) => {
108
108
  return inputLength === 0
109
109
  ? []
110
110
  : data.filter(
111
- (office) => office.name.toLowerCase().indexOf(inputValue) !== -1,
112
- );
111
+ (office) => office.name.toLowerCase().indexOf(inputValue) !== -1,
112
+ );
113
113
  };
114
114
 
115
115
  const getSuggestionValue = (suggestion) =>
@@ -19,9 +19,9 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React from 'react';
22
- import BpkInput from 'bpk-component-input';
22
+ import BpkInput from '../../bpk-component-input';
23
23
  import Autosuggest from 'react-autosuggest';
24
- import { cssModules } from 'bpk-react-utils';
24
+ import { cssModules } from '../../bpk-react-utils';
25
25
 
26
26
  import STYLES from './BpkAutosuggest.module.scss';
27
27
 
@@ -20,7 +20,7 @@
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
+ import { cssModules } from '../../bpk-react-utils';
24
24
 
25
25
  import STYLES from './BpkAutosuggest.module.scss';
26
26
 
@@ -20,7 +20,7 @@
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
+ import { cssModules } from '../bpk-react-utils';
24
24
 
25
25
  import STYLES from './BpkBadgeLayout.module.scss';
26
26
 
@@ -19,11 +19,11 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React from 'react';
22
- import BpkSmallBeerIcon from 'bpk-component-icon/sm/beer';
23
- import BpkSmallFlightIcon from 'bpk-component-icon/sm/flight';
24
- import BpkSmallWeatherIcon from 'bpk-component-icon/sm/weather';
25
- import BpkSmallTickIcon from 'bpk-component-icon/sm/tick-circle';
26
- import BpkSmallCloseIcon from 'bpk-component-icon/sm/close-circle';
22
+ import BpkSmallBeerIcon from '../bpk-component-icon/sm/beer';
23
+ import BpkSmallFlightIcon from '../bpk-component-icon/sm/flight';
24
+ import BpkSmallWeatherIcon from '../bpk-component-icon/sm/weather';
25
+ import BpkSmallTickIcon from '../bpk-component-icon/sm/tick-circle';
26
+ import BpkSmallCloseIcon from '../bpk-component-icon/sm/close-circle';
27
27
  import { BpkDarkExampleWrapper } from 'bpk-storybook-utils';
28
28
 
29
29
  import BadgeLayout from './BadgeLayout';
@@ -20,7 +20,7 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React from 'react';
23
- import { cssModules } from 'bpk-react-utils';
23
+ import { cssModules } from '../../bpk-react-utils';
24
24
 
25
25
  import STYLES from './BpkBadge.module.scss';
26
26
 
@@ -20,10 +20,10 @@
20
20
  import React, { Component } from 'react';
21
21
  import { action } from 'bpk-storybook-utils';
22
22
  import { fontWeightBold } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
23
- import CurrencyIcon from 'bpk-component-icon/sm/currency';
24
- import { AriaLiveDemo } from 'bpk-component-aria-live/examples';
25
- import { BpkButtonPrimary } from 'bpk-component-button';
26
- import { cssModules } from 'bpk-react-utils';
23
+ import CurrencyIcon from '../bpk-component-icon/sm/currency';
24
+ import { AriaLiveDemo } from '../bpk-component-aria-live/examples';
25
+ import { BpkButtonPrimary } from '../bpk-component-button';
26
+ import { cssModules } from '../bpk-react-utils';
27
27
 
28
28
  import STYLES from './examples.module.scss';
29
29
 
@@ -19,8 +19,8 @@
19
19
 
20
20
  import PropTypes from 'prop-types';
21
21
  import React, { type Node, Component } from 'react';
22
- import { cssModules } from 'bpk-react-utils';
23
- import BpkAnimateHeight from 'bpk-animate-height';
22
+ import { cssModules } from '../../bpk-react-utils';
23
+ import BpkAnimateHeight from '../../bpk-animate-height';
24
24
  import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
25
25
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
26
26
 
@@ -23,14 +23,14 @@
23
23
 
24
24
  import PropTypes from 'prop-types';
25
25
  import React, { type Node, type StatelessFunctionalComponent } from 'react';
26
- import { withButtonAlignment } from 'bpk-component-icon';
27
- import BpkAnimateHeight from 'bpk-animate-height';
28
- import BpkCloseButton from 'bpk-component-close-button';
29
- import TickCircleIcon from 'bpk-component-icon/sm/tick-circle';
30
- import ChevronDownIcon from 'bpk-component-icon/lg/chevron-down';
31
- import InfoCircleIcon from 'bpk-component-icon/sm/information-circle';
26
+ import { withButtonAlignment } from '../../bpk-component-icon';
27
+ import BpkAnimateHeight from '../../bpk-animate-height';
28
+ import BpkCloseButton from '../../bpk-component-close-button';
29
+ import TickCircleIcon from '../../bpk-component-icon/sm/tick-circle';
30
+ import ChevronDownIcon from '../../bpk-component-icon/lg/chevron-down';
31
+ import InfoCircleIcon from '../../bpk-component-icon/sm/information-circle';
32
32
  import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
33
- import { cssModules } from 'bpk-react-utils';
33
+ import { cssModules } from '../../bpk-react-utils';
34
34
 
35
35
  import AnimateAndFade from './AnimateAndFade';
36
36
  import {
@@ -19,7 +19,7 @@
19
19
 
20
20
  import React, { type Node, type ComponentType, Component } from 'react';
21
21
  import PropTypes from 'prop-types';
22
- import { wrapDisplayName } from 'bpk-react-utils';
22
+ import { wrapDisplayName } from '../../bpk-react-utils';
23
23
 
24
24
  import {
25
25
  type OnDismissHandler,
@@ -20,9 +20,9 @@
20
20
 
21
21
  import React from 'react';
22
22
  import { number } from 'prop-types';
23
- import { cssModules, withDefaultProps } from 'bpk-react-utils';
24
- import BpkText, { TEXT_STYLES } from 'bpk-component-text';
25
- import { updateOnDirectionChange } from 'bpk-component-rtl-toggle';
23
+ import { cssModules, withDefaultProps } from '../bpk-react-utils';
24
+ import BpkText, { TEXT_STYLES } from '../bpk-component-text';
25
+ import { updateOnDirectionChange } from '../bpk-component-rtl-toggle';
26
26
  import { lineHeightSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
27
27
  import { scaleLinear, scaleBand } from 'd3-scale';
28
28
 
@@ -20,7 +20,7 @@
20
20
 
21
21
  import isEqual from 'lodash/isEqual';
22
22
  import React, { Component, type ComponentType } from 'react';
23
- import { wrapDisplayName } from 'bpk-react-utils';
23
+ import { wrapDisplayName } from '../bpk-react-utils';
24
24
 
25
25
  // eslint-disable-next-line import/prefer-default-export
26
26
  export const withSelectedState = (ComposedComponent: ComponentType<any>) => {
@@ -26,8 +26,8 @@ import {
26
26
  spacingXs,
27
27
  lineHeightSm,
28
28
  } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
29
- import { cssModules } from 'bpk-react-utils';
30
- import BpkMobileScrollContainer from 'bpk-component-mobile-scroll-container';
29
+ import { cssModules } from '../../bpk-react-utils';
30
+ import BpkMobileScrollContainer from '../../bpk-component-mobile-scroll-container';
31
31
 
32
32
  import BpkBarchartDefs from './BpkBarchartDefs';
33
33
  import BpkBarchartBars from './BpkBarchartBars';
@@ -20,7 +20,7 @@
20
20
 
21
21
  import React from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import { cssModules } from 'bpk-react-utils';
23
+ import { cssModules } from '../../bpk-react-utils';
24
24
  import { borderRadiusXs } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
25
25
 
26
26
  import { remToPx } from './utils';
@@ -20,7 +20,7 @@
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
+ import { cssModules } from '../../bpk-react-utils';
24
24
  import {
25
25
  spacingXs,
26
26
  lineHeightSm,
@@ -20,7 +20,7 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React from 'react';
23
- import { cssModules } from 'bpk-react-utils';
23
+ import { cssModules } from '../../bpk-react-utils';
24
24
 
25
25
  import dataProp from './customPropTypes';
26
26
  import STYLES from './BpkChartDataTable.module.scss';
@@ -20,7 +20,7 @@
20
20
 
21
21
  import React from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import { cssModules } from 'bpk-react-utils';
23
+ import { cssModules } from '../../bpk-react-utils';
24
24
 
25
25
  import { ORIENTATION_X, ORIENTATION_Y } from './orientation';
26
26
  import { identity, center } from './utils';
@@ -66,15 +66,15 @@ const BpkChartGridLines = (props: Props) => {
66
66
  const value = position(tick);
67
67
  return orientation === ORIENTATION_X
68
68
  ? {
69
- x1: value,
70
- x2: value,
71
- y2: height - margin.top - margin.bottom,
72
- }
69
+ x1: value,
70
+ x2: value,
71
+ y2: height - margin.top - margin.bottom,
72
+ }
73
73
  : {
74
- x2: width - margin.left - margin.right,
75
- y1: value,
76
- y2: value,
77
- };
74
+ x2: width - margin.left - margin.right,
75
+ y1: value,
76
+ y2: value,
77
+ };
78
78
  };
79
79
 
80
80
  const toLine = (tick, i) => (
@@ -18,7 +18,7 @@
18
18
 
19
19
  /* @flow strict */
20
20
 
21
- import { isRTL } from 'bpk-react-utils';
21
+ import { isRTL } from '../../bpk-react-utils';
22
22
 
23
23
  const rtlConditionalValue = (ltrValue: number, rtlValue: number) =>
24
24
  isRTL() ? rtlValue : ltrValue;
@@ -18,7 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import { cssModules } from 'bpk-react-utils';
21
+ import { cssModules } from '../../bpk-react-utils';
22
22
 
23
23
  import STYLES from './BpkBlockquote.module.scss';
24
24
 
@@ -20,7 +20,7 @@
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
+ import { cssModules } from '../../bpk-react-utils';
24
24
 
25
25
  import STYLES from './BpkBreadcrumb.module.scss';
26
26
 
@@ -20,11 +20,11 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
- import BpkLink from 'bpk-component-link';
24
- import BpkText from 'bpk-component-text';
25
- import { cssModules } from 'bpk-react-utils';
26
- import { withRtlSupport } from 'bpk-component-icon';
27
- import ArrowRight from 'bpk-component-icon/sm/arrow-right';
23
+ import BpkLink from '../../bpk-component-link';
24
+ import BpkText from '../../bpk-component-text';
25
+ import { cssModules } from '../../bpk-react-utils';
26
+ import { withRtlSupport } from '../../bpk-component-icon';
27
+ import ArrowRight from '../../bpk-component-icon/sm/arrow-right';
28
28
 
29
29
  import STYLES from './BpkBreadcrumbItem.module.scss';
30
30
 
@@ -19,7 +19,7 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React, { type Node } from 'react';
22
- import { cssModules } from 'bpk-react-utils';
22
+ import { cssModules } from '../bpk-react-utils';
23
23
 
24
24
  import STYLES from './examples.module.scss';
25
25
 
@@ -20,7 +20,7 @@
20
20
 
21
21
  import React, { Component } from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import BpkButton from 'bpk-component-button';
23
+ import BpkButton from '../bpk-component-button';
24
24
  import addMonths from 'date-fns/addMonths';
25
25
  import {
26
26
  colorWhite,
@@ -18,7 +18,7 @@
18
18
  import React from 'react';
19
19
  import { action } from 'bpk-storybook-utils';
20
20
  import addMonths from 'date-fns/addMonths';
21
- import BpkText from 'bpk-component-text';
21
+ import BpkText from '../bpk-component-text';
22
22
  import startOfDay from 'date-fns/startOfDay';
23
23
  import parseDate from 'date-fns/parse';
24
24
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React, { Component } from 'react';
21
- import { deprecated, isRTL } from 'bpk-react-utils';
21
+ import { deprecated, isRTL } from '../../bpk-react-utils';
22
22
 
23
23
  import CustomPropTypes, { CALENDAR_SELECTION_TYPE } from './custom-proptypes';
24
24
  import BpkCalendarNav from './BpkCalendarNav';
@@ -18,7 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React, { PureComponent } from 'react';
21
- import { cssModules } from 'bpk-react-utils';
21
+ import { cssModules } from '../../bpk-react-utils';
22
22
 
23
23
  import CustomPropTypes from './custom-proptypes';
24
24
  import STYLES from './BpkCalendarDate.module.scss';
@@ -18,7 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React, { Component } from 'react';
21
- import { cssModules, deprecated, isDeviceIos } from 'bpk-react-utils';
21
+ import { cssModules, deprecated, isDeviceIos } from '../../bpk-react-utils';
22
22
 
23
23
  import BpkCalendarGridHeader from './BpkCalendarGridHeader';
24
24
  import Week from './Week';
@@ -18,7 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React, { PureComponent } from 'react';
21
- import { cssModules, deprecated } from 'bpk-react-utils';
21
+ import { cssModules, deprecated } from '../../bpk-react-utils';
22
22
 
23
23
  import CustomPropTypes from './custom-proptypes';
24
24
  import { orderDaysOfWeek } from './date-utils';
@@ -18,7 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React, { Component } from 'react';
21
- import { cssModules, isRTL } from 'bpk-react-utils';
21
+ import { cssModules, isRTL } from '../../bpk-react-utils';
22
22
 
23
23
  import {
24
24
  getCalendarGridWidth,
@@ -172,11 +172,11 @@ class BpkCalendarGridTransition extends Component {
172
172
  index === 1
173
173
  ? focusedDate
174
174
  : getFocusedDateForMonth(
175
- m,
176
- focusedDate,
177
- rest.minDate,
178
- rest.maxDate,
179
- )
175
+ m,
176
+ focusedDate,
177
+ rest.minDate,
178
+ rest.maxDate,
179
+ )
180
180
  }
181
181
  aria-hidden={index !== 1}
182
182
  className={getClassName('bpk-calendar-grid-transition__grid')}
@@ -208,12 +208,12 @@ BpkCalendarGridTransition.defaultProps = {
208
208
  };
209
209
 
210
210
  const addCalendarGridTransition = (TransitionComponent) => (props) =>
211
- (
212
- <BpkCalendarGridTransition
213
- TransitionComponent={TransitionComponent}
214
- {...props}
215
- />
216
- );
211
+ (
212
+ <BpkCalendarGridTransition
213
+ TransitionComponent={TransitionComponent}
214
+ {...props}
215
+ />
216
+ );
217
217
 
218
218
  export default BpkCalendarGridTransition;
219
219
  export { addCalendarGridTransition };
@@ -18,11 +18,11 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import ArrowLeftIcon from 'bpk-component-icon/lg/arrow-left';
22
- import ArrowRightIcon from 'bpk-component-icon/lg/arrow-right';
23
- import BpkSelect from 'bpk-component-select';
24
- import { cssModules } from 'bpk-react-utils';
25
- import BpkAriaLive from 'bpk-component-aria-live';
21
+ import ArrowLeftIcon from '../../bpk-component-icon/lg/arrow-left';
22
+ import ArrowRightIcon from '../../bpk-component-icon/lg/arrow-right';
23
+ import BpkSelect from '../../bpk-component-select';
24
+ import { cssModules } from '../../bpk-react-utils';
25
+ import BpkAriaLive from '../../bpk-component-aria-live';
26
26
 
27
27
  import {
28
28
  addMonths,
@@ -39,14 +39,14 @@ const getClassName = cssModules(STYLES);
39
39
 
40
40
  const changeMonth =
41
41
  ({ callback, max, min, month, source }) =>
42
- (event) => {
43
- // Safeguard for disabled buttons is due to React bug in Chrome: https://github.com/facebook/react/issues/8308
44
- // PR: https://github.com/facebook/react/pull/8329 - unresolved as of 22/12/2016
45
- if (isWithinRange(month, { start: min, end: max })) {
46
- event.persist();
47
- callback(event, { month, source });
48
- }
49
- };
42
+ (event) => {
43
+ // Safeguard for disabled buttons is due to React bug in Chrome: https://github.com/facebook/react/issues/8308
44
+ // PR: https://github.com/facebook/react/pull/8329 - unresolved as of 22/12/2016
45
+ if (isWithinRange(month, { start: min, end: max })) {
46
+ event.persist();
47
+ callback(event, { month, source });
48
+ }
49
+ };
50
50
 
51
51
  const BpkCalendarNav = (props) => {
52
52
  const {
@@ -18,7 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React, { Component } from 'react';
21
- import { cssModules, deprecated } from 'bpk-react-utils';
21
+ import { cssModules, deprecated } from '../../bpk-react-utils';
22
22
 
23
23
  import {
24
24
  isSameDay,
@@ -249,7 +249,7 @@ class Week extends Component {
249
249
  // render, component should update.
250
250
  if (
251
251
  this.props.selectionConfiguration.type ===
252
- CALENDAR_SELECTION_TYPE.single &&
252
+ CALENDAR_SELECTION_TYPE.single &&
253
253
  this.props.selectionConfiguration.date
254
254
  ) {
255
255
  return singleDateHandler(this.props, nextProps);
@@ -18,7 +18,7 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import { cssModules, deprecated } from 'bpk-react-utils';
21
+ import { cssModules, deprecated } from '../../bpk-react-utils';
22
22
 
23
23
  import CustomPropTypes, { CALENDAR_SELECTION_TYPE } from './custom-proptypes';
24
24
  import STYLES from './BpkCalendar.module.scss';
@@ -18,8 +18,8 @@
18
18
  /* @flow strict */
19
19
 
20
20
  import React, { Fragment } from 'react';
21
- import BpkLink from 'bpk-component-link';
22
- import BpkText, { TEXT_STYLES } from 'bpk-component-text';
21
+ import BpkLink from '../bpk-component-link';
22
+ import BpkText, { TEXT_STYLES } from '../bpk-component-text';
23
23
 
24
24
  import BpkCard from './index';
25
25