@skyscanner/backpack-web 0.0.1 → 0.0.4

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 (250) hide show
  1. package/README.md +100 -0
  2. package/bpk-animate-height/examples.js +1 -1
  3. package/bpk-component-accordion/examples.js +4 -4
  4. package/bpk-component-accordion/package.json +4 -4
  5. package/bpk-component-accordion/src/BpkAccordion.js +1 -1
  6. package/bpk-component-accordion/src/BpkAccordionItem.js +8 -8
  7. package/bpk-component-accordion/src/withAccordionItemState.js +2 -2
  8. package/bpk-component-accordion/src/withSingleItemAccordionState.js +1 -1
  9. package/bpk-component-aria-live/examples.js +7 -8
  10. package/bpk-component-aria-live/package.json +3 -3
  11. package/bpk-component-aria-live/src/BpkAriaLive.js +1 -1
  12. package/bpk-component-autosuggest/examples.js +4 -4
  13. package/bpk-component-autosuggest/package.json +3 -3
  14. package/bpk-component-autosuggest/src/BpkAutosuggest.js +2 -2
  15. package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -1
  16. package/bpk-component-badge/BadgeLayout.js +1 -1
  17. package/bpk-component-badge/examples.js +5 -5
  18. package/bpk-component-badge/package.json +2 -2
  19. package/bpk-component-badge/src/BpkBadge.js +1 -1
  20. package/bpk-component-banner-alert/examples.js +4 -4
  21. package/bpk-component-banner-alert/package.json +4 -4
  22. package/bpk-component-banner-alert/src/AnimateAndFade.js +2 -2
  23. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +7 -7
  24. package/bpk-component-banner-alert/src/withBannerAlertState.js +1 -1
  25. package/bpk-component-barchart/examples.js +4 -4
  26. package/bpk-component-barchart/hocs.js +1 -1
  27. package/bpk-component-barchart/package.json +2 -2
  28. package/bpk-component-barchart/src/BpkBarchart.js +2 -2
  29. package/bpk-component-barchart/src/BpkBarchartBar.js +1 -1
  30. package/bpk-component-barchart/src/BpkChartAxis.js +1 -1
  31. package/bpk-component-barchart/src/BpkChartDataTable.js +1 -1
  32. package/bpk-component-barchart/src/BpkChartGridLines.js +9 -9
  33. package/bpk-component-barchart/src/RTLtransforms.js +1 -1
  34. package/bpk-component-blockquote/src/BpkBlockquote.js +1 -1
  35. package/bpk-component-breadcrumb/package.json +3 -3
  36. package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -1
  37. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +5 -5
  38. package/bpk-component-breakpoint/examples.js +1 -1
  39. package/bpk-component-calendar/examples-components.js +1 -1
  40. package/bpk-component-calendar/examples.js +1 -1
  41. package/bpk-component-calendar/package.json +4 -4
  42. package/bpk-component-calendar/src/BpkCalendarContainer.js +1 -1
  43. package/bpk-component-calendar/src/BpkCalendarDate.js +1 -1
  44. package/bpk-component-calendar/src/BpkCalendarGrid.js +1 -1
  45. package/bpk-component-calendar/src/BpkCalendarGridHeader.js +1 -1
  46. package/bpk-component-calendar/src/BpkCalendarGridTransition.js +12 -12
  47. package/bpk-component-calendar/src/BpkCalendarNav.js +13 -13
  48. package/bpk-component-calendar/src/Week.js +2 -2
  49. package/bpk-component-calendar/src/composeCalendar.js +1 -1
  50. package/bpk-component-card/examples.js +3 -3
  51. package/bpk-component-card/package.json +2 -2
  52. package/bpk-component-card/src/BpkCard.js +1 -1
  53. package/bpk-component-checkbox/package.json +2 -2
  54. package/bpk-component-checkbox/src/BpkCheckbox.js +1 -1
  55. package/bpk-component-chip/examples.js +12 -13
  56. package/bpk-component-chip/package.json +4 -4
  57. package/bpk-component-chip/src/BpkDismissibleChip.js +1 -1
  58. package/bpk-component-chip/src/BpkSelectableChip.js +3 -3
  59. package/bpk-component-close-button/package.json +2 -2
  60. package/bpk-component-close-button/src/BpkCloseButton.js +2 -2
  61. package/bpk-component-code/src/BpkCode.js +1 -1
  62. package/bpk-component-code/src/BpkCodeBlock.js +1 -1
  63. package/bpk-component-content-container/examples.js +2 -2
  64. package/bpk-component-content-container/src/BpkContentContainer.js +1 -1
  65. package/bpk-component-datatable/package.json +2 -2
  66. package/bpk-component-datatable/src/BpkDataTable.js +1 -1
  67. package/bpk-component-datatable/src/BpkDataTableColumn.js +1 -1
  68. package/bpk-component-datatable/src/bpkHeaderRenderer.js +4 -4
  69. package/bpk-component-datepicker/examples.js +4 -4
  70. package/bpk-component-datepicker/index.js +1 -1
  71. package/bpk-component-datepicker/package.json +5 -5
  72. package/bpk-component-datepicker/src/BpkDatepicker.js +6 -6
  73. package/bpk-component-datepicker/src/themeAttributes.js +3 -3
  74. package/bpk-component-description-list/src/ComponentFactory.js +1 -1
  75. package/bpk-component-dialog/examples.js +7 -7
  76. package/bpk-component-dialog/package.json +5 -5
  77. package/bpk-component-dialog/src/BpkDialog.js +2 -2
  78. package/bpk-component-dialog/src/BpkDialogInner.js +3 -3
  79. package/bpk-component-drawer/examples.js +4 -4
  80. package/bpk-component-drawer/package.json +4 -4
  81. package/bpk-component-drawer/src/BpkDrawer.js +2 -2
  82. package/bpk-component-drawer/src/BpkDrawerContent.js +3 -3
  83. package/bpk-component-drawer/src/themeAttributes.js +1 -1
  84. package/bpk-component-fieldset/examples.js +12 -12
  85. package/bpk-component-fieldset/package.json +7 -7
  86. package/bpk-component-fieldset/src/BpkFieldset.js +3 -3
  87. package/bpk-component-flare/examples.js +4 -4
  88. package/bpk-component-flare/package.json +2 -2
  89. package/bpk-component-flare/src/BpkContentBubble.js +1 -1
  90. package/bpk-component-flare/src/BpkFlareBar.js +1 -1
  91. package/bpk-component-form-validation/examples.js +6 -6
  92. package/bpk-component-form-validation/package.json +4 -4
  93. package/bpk-component-form-validation/src/BpkFormValidation.js +4 -4
  94. package/bpk-component-grid/src/BpkGridColumn.js +1 -1
  95. package/bpk-component-grid/src/BpkGridContainer.js +1 -1
  96. package/bpk-component-grid/src/BpkGridRow.js +1 -1
  97. package/bpk-component-grid-toggle/src/BpkGridToggle.js +2 -2
  98. package/bpk-component-horizontal-nav/examples.js +2 -2
  99. package/bpk-component-horizontal-nav/package.json +2 -2
  100. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +2 -2
  101. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +1 -1
  102. package/bpk-component-icon/examples.js +7 -7
  103. package/bpk-component-icon/package.json +2 -2
  104. package/bpk-component-icon/src/classNameModifierHOCFactory.js +1 -1
  105. package/bpk-component-icon/src/withAlignment.js +3 -4
  106. package/bpk-component-icon/src/withDescription.js +1 -1
  107. package/bpk-component-icon/src/withRtlSupport.js +1 -1
  108. package/bpk-component-image/examples.js +5 -5
  109. package/bpk-component-image/package.json +2 -2
  110. package/bpk-component-image/src/BpkBackgroundImage.js +2 -2
  111. package/bpk-component-image/src/BpkImage.js +2 -2
  112. package/bpk-component-image/src/withLazyLoading.js +1 -1
  113. package/bpk-component-image/src/withLoadingBehavior.js +28 -28
  114. package/bpk-component-infinite-scroll/examples.js +4 -4
  115. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +106 -106
  116. package/bpk-component-input/examples.js +3 -3
  117. package/bpk-component-input/package.json +3 -3
  118. package/bpk-component-input/src/BpkClearButton.js +3 -3
  119. package/bpk-component-input/src/BpkInput.js +1 -1
  120. package/bpk-component-input/src/withOpenEvents.js +1 -1
  121. package/bpk-component-label/src/BpkLabel.js +1 -1
  122. package/bpk-component-link/src/BpkButtonLink.js +1 -1
  123. package/bpk-component-link/src/BpkLink.js +1 -1
  124. package/bpk-component-list/src/BpkList.js +1 -1
  125. package/bpk-component-list/src/BpkListItem.js +1 -1
  126. package/bpk-component-loading-button/examples.js +3 -3
  127. package/bpk-component-loading-button/package.json +2 -2
  128. package/bpk-component-loading-button/src/BpkLoadingButton.js +5 -5
  129. package/bpk-component-map/examples.js +6 -6
  130. package/bpk-component-map/package.json +3 -3
  131. package/bpk-component-map/src/BpkIconMarker.js +1 -1
  132. package/bpk-component-map/src/BpkIconMarkerBackground.js +1 -1
  133. package/bpk-component-map/src/BpkPriceMarker.js +4 -8
  134. package/bpk-component-map/src/DefaultLoadingElement.js +2 -2
  135. package/bpk-component-mobile-scroll-container/examples.js +1 -1
  136. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -1
  137. package/bpk-component-modal/examples.js +8 -8
  138. package/bpk-component-modal/package.json +5 -5
  139. package/bpk-component-modal/src/BpkModal.js +8 -8
  140. package/bpk-component-modal/src/BpkModalInner.js +4 -4
  141. package/bpk-component-modal/src/themeAttributes.js +1 -1
  142. package/bpk-component-navigation-bar/AirlineLogo.js +1 -1
  143. package/bpk-component-navigation-bar/examples.js +4 -4
  144. package/bpk-component-navigation-bar/package.json +4 -4
  145. package/bpk-component-navigation-bar/src/BpkNavigationBar.js +3 -3
  146. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +2 -2
  147. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +2 -2
  148. package/bpk-component-navigation-stack/examples.js +2 -2
  149. package/bpk-component-navigation-stack/package.json +3 -3
  150. package/bpk-component-navigation-stack/src/BpkNavigationStack.js +4 -5
  151. package/bpk-component-navigation-stack/stories-components.js +20 -20
  152. package/bpk-component-nudger/examples.js +2 -2
  153. package/bpk-component-nudger/package.json +2 -2
  154. package/bpk-component-nudger/src/BpkConfigurableNudger.js +6 -6
  155. package/bpk-component-nudger/src/BpkNudger.js +1 -1
  156. package/bpk-component-nudger/src/themeAttributes.js +1 -1
  157. package/bpk-component-overlay/examples.js +3 -3
  158. package/bpk-component-overlay/package.json +3 -3
  159. package/bpk-component-overlay/src/BpkOverlay.js +2 -2
  160. package/bpk-component-pagination/package.json +2 -2
  161. package/bpk-component-pagination/src/BpkPagination.js +1 -1
  162. package/bpk-component-pagination/src/BpkPaginationList.js +1 -1
  163. package/bpk-component-pagination/src/BpkPaginationNudger.js +4 -4
  164. package/bpk-component-pagination/src/BpkPaginationPage.js +2 -2
  165. package/bpk-component-pagination/src/themeAttributes.js +1 -1
  166. package/bpk-component-panel/src/BpkPanel.js +1 -1
  167. package/bpk-component-phone-input/examples.js +2 -2
  168. package/bpk-component-phone-input/package.json +5 -5
  169. package/bpk-component-phone-input/src/BpkPhoneInput.js +4 -4
  170. package/bpk-component-popover/examples.js +6 -6
  171. package/bpk-component-popover/package.json +4 -4
  172. package/bpk-component-popover/src/BpkPopover.js +5 -5
  173. package/bpk-component-popover/src/BpkPopoverPortal.js +1 -1
  174. package/bpk-component-popover/src/themeAttributes.js +1 -1
  175. package/bpk-component-progress/examples.js +2 -2
  176. package/bpk-component-progress/src/BpkProgress.js +1 -1
  177. package/bpk-component-radio/src/BpkRadio.js +1 -1
  178. package/bpk-component-rating/examples.js +1 -1
  179. package/bpk-component-rating/package.json +2 -2
  180. package/bpk-component-rating/src/BpkRating.js +15 -9
  181. package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +1 -1
  182. package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +1 -1
  183. package/bpk-component-scrollable-calendar/examples.js +1 -1
  184. package/bpk-component-scrollable-calendar/index.js +1 -1
  185. package/bpk-component-scrollable-calendar/package.json +3 -3
  186. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +1 -1
  187. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +1 -1
  188. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +4 -5
  189. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +2 -2
  190. package/bpk-component-scrollable-calendar/src/utils.js +1 -1
  191. package/bpk-component-section-list/package.json +3 -3
  192. package/bpk-component-section-list/src/BpkSectionListItem.js +3 -3
  193. package/bpk-component-section-list/src/BpkSectionListSection.js +3 -5
  194. package/bpk-component-select/src/BpkSelect.js +1 -1
  195. package/bpk-component-skip-link/src/BpkSkipLink.js +1 -1
  196. package/bpk-component-slider/examples.js +9 -9
  197. package/bpk-component-slider/src/BpkSlider.js +1 -1
  198. package/bpk-component-spinner/SpinnerLayout.js +1 -1
  199. package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -1
  200. package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -1
  201. package/bpk-component-spinner/src/BpkSpinner.js +1 -1
  202. package/bpk-component-star-rating/examples.js +1 -1
  203. package/bpk-component-star-rating/package.json +2 -2
  204. package/bpk-component-star-rating/src/BpkInteractiveStar.js +1 -1
  205. package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +1 -1
  206. package/bpk-component-star-rating/src/BpkStar.js +8 -8
  207. package/bpk-component-star-rating/src/BpkStarRating.js +4 -4
  208. package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +1 -1
  209. package/bpk-component-switch/src/BpkSwitch.js +1 -1
  210. package/bpk-component-table/src/BpkTable.js +1 -1
  211. package/bpk-component-table/src/BpkTableCell.js +1 -1
  212. package/bpk-component-table/src/BpkTableHeadCell.js +1 -1
  213. package/bpk-component-text/examples.js +18 -18
  214. package/bpk-component-text/package.json +1 -1
  215. package/bpk-component-text/src/BpkText.js +2 -2
  216. package/bpk-component-textarea/examples.js +1 -1
  217. package/bpk-component-textarea/src/BpkTextarea.js +1 -1
  218. package/bpk-component-theme-toggle/src/BpkThemeToggle.js +3 -3
  219. package/bpk-component-theme-toggle/src/updateOnThemeChange.js +1 -1
  220. package/bpk-component-ticket/examples.js +4 -4
  221. package/bpk-component-ticket/package.json +2 -2
  222. package/bpk-component-ticket/src/BpkTicket.js +7 -7
  223. package/bpk-component-tooltip/examples.js +4 -4
  224. package/bpk-component-tooltip/package.json +2 -2
  225. package/bpk-component-tooltip/src/BpkTooltip.js +1 -1
  226. package/bpk-component-tooltip/src/BpkTooltipPortal.js +1 -1
  227. package/bpk-scrim-utils/src/BpkScrim.js +1 -1
  228. package/bpk-scrim-utils/src/withScrim.js +1 -1
  229. package/package.json +2 -2
  230. package/bpk-component-heading/README.md +0 -31
  231. package/bpk-component-heading/examples.js +0 -36
  232. package/bpk-component-heading/index.js +0 -23
  233. package/bpk-component-heading/package.json +0 -25
  234. package/bpk-component-heading/src/BpkHeading.js +0 -70
  235. package/bpk-component-heading/src/BpkHeading.module.css +0 -18
  236. package/bpk-component-heading/src/BpkHeading.module.scss +0 -49
  237. package/bpk-component-paragraph/README.md +0 -28
  238. package/bpk-component-paragraph/examples.js +0 -46
  239. package/bpk-component-paragraph/index.js +0 -23
  240. package/bpk-component-paragraph/package.json +0 -25
  241. package/bpk-component-paragraph/src/BpkParagraph.js +0 -55
  242. package/bpk-component-paragraph/src/BpkParagraph.module.css +0 -18
  243. package/bpk-component-paragraph/src/BpkParagraph.module.scss +0 -25
  244. package/bpk-tether/.eslintrc +0 -6
  245. package/bpk-tether/README.md +0 -52
  246. package/bpk-tether/index.js +0 -24
  247. package/bpk-tether/package.json +0 -19
  248. package/bpk-tether/src/TetherWrapper.js +0 -30
  249. package/bpk-tether/src/applyRTLTransforms.js +0 -49
  250. package/bpk-tether/src/getArrowPositionCallback.js +0 -65
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-nudger",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Backpack nudger component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^5.0.0",
18
18
  "bpk-component-button": "^5.1.0",
19
- "bpk-component-icon": "^9.2.0",
19
+ "bpk-component-icon": "^9.2.1",
20
20
  "bpk-mixins": "^26.1.0",
21
21
  "bpk-react-utils": "^4.1.0",
22
22
  "lodash.clamp": "^4.0.3",
@@ -21,12 +21,12 @@
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 BpkButtonOutline from 'bpk-component-button/BpkButtonOutline';
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
+ import BpkButtonSecondary from '../../bpk-component-button/BpkButtonSecondary';
25
+ import BpkButtonOutline from '../../bpk-component-button/BpkButtonOutline';
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';
30
30
 
31
31
  import {
32
32
  type CommonProps,
@@ -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 BpkConfigurableNudger from './BpkConfigurableNudger';
26
26
  import {
@@ -18,6 +18,6 @@
18
18
 
19
19
  /* @flow strict */
20
20
 
21
- import { secondaryThemeAttributes as themeAttributes } from 'bpk-component-button/themeAttributes';
21
+ import { secondaryThemeAttributes as themeAttributes } from '../../bpk-component-button/themeAttributes';
22
22
 
23
23
  export default themeAttributes;
@@ -18,13 +18,13 @@
18
18
  /* @flow strict */
19
19
 
20
20
  import React from 'react';
21
- import { cssModules } from 'bpk-react-utils';
22
- import BpkText, { TEXT_STYLES } from 'bpk-component-text';
21
+ import { cssModules } from '../bpk-react-utils';
22
+ import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
23
23
  import BpkImage, {
24
24
  withLazyLoading,
25
25
  withLoadingBehavior,
26
26
  BORDER_RADIUS_STYLES as IMAGE_BORDER_RADIUS_STYLES,
27
- } from 'bpk-component-image';
27
+ } from '../../bpk-component-image';
28
28
 
29
29
  import STYLES from './examples.module.scss';
30
30
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-overlay",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Backpack overlay component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -21,8 +21,8 @@
21
21
  "react": "^16.3.0 || ^17.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "bpk-component-image": "^5.1.0",
25
- "bpk-component-text": "^6.1.0"
24
+ "bpk-component-image": "^5.1.1",
25
+ "bpk-component-text": "^6.1.1"
26
26
  },
27
27
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8"
28
28
  }
@@ -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 './BpkOverlay.module.scss';
25
25
 
@@ -57,7 +57,7 @@ const BpkOverlay = (props: Props) => {
57
57
  const overlayClassNames = getClassName(
58
58
  'bpk-overlay__overlay',
59
59
  borderRadiusStyle === BORDER_RADIUS_STYLES.sm &&
60
- 'bpk-overlay__overlay--border-radius-sm',
60
+ 'bpk-overlay__overlay--border-radius-sm',
61
61
  overlayType === OVERLAY_TYPES.tint && 'bpk-overlay__overlay--tint',
62
62
  );
63
63
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-pagination",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Backpack pagination component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -23,6 +23,6 @@
23
23
  "react": "^16.3.0 || ^17.0.0"
24
24
  },
25
25
  "devDependencies": {
26
- "bpk-component-icon": "^9.2.0"
26
+ "bpk-component-icon": "^9.2.1"
27
27
  }
28
28
  }
@@ -18,7 +18,7 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
- import { cssModules } from 'bpk-react-utils';
21
+ import { cssModules } from '../../bpk-react-utils';
22
22
 
23
23
  import BpkPaginationList from './BpkPaginationList';
24
24
  import BpkPaginationNudger from './BpkPaginationNudger';
@@ -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 BpkPaginationPage from './BpkPaginationPage';
24
24
  import BpkPaginationBreak from './BpkPaginationBreak';
@@ -18,10 +18,10 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import { cssModules } from 'bpk-react-utils';
22
- import { withButtonAlignment, withRtlSupport } from 'bpk-component-icon';
23
- import ArrowLeftIcon from 'bpk-component-icon/lg/arrow-left';
24
- import ArrowRightIcon from 'bpk-component-icon/lg/arrow-right';
21
+ import { cssModules } from '../../bpk-react-utils';
22
+ import { withButtonAlignment, withRtlSupport } from '../../bpk-component-icon';
23
+ import ArrowLeftIcon from '../../bpk-component-icon/lg/arrow-left';
24
+ import ArrowRightIcon from '../../bpk-component-icon/lg/arrow-right';
25
25
 
26
26
  import STYLES from './BpkPaginationNudger.module.scss';
27
27
 
@@ -16,10 +16,10 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import BpkButton from 'bpk-component-button';
19
+ import BpkButton from '../../bpk-component-button';
20
20
  import PropTypes from 'prop-types';
21
21
  import React from 'react';
22
- import { cssModules } from 'bpk-react-utils';
22
+ import { cssModules } from '../../bpk-react-utils';
23
23
 
24
24
  import STYLES from './BpkPaginationPage.module.scss';
25
25
 
@@ -15,7 +15,7 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- import { secondaryThemeAttributes } from 'bpk-component-button';
18
+ import { secondaryThemeAttributes } from '../../bpk-component-button';
19
19
 
20
20
  export default [
21
21
  ...secondaryThemeAttributes,
@@ -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 './BpkPanel.module.scss';
24
24
 
@@ -19,8 +19,8 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React, { Component } from 'react';
22
- import BpkFieldSet from 'bpk-component-fieldset';
23
- import BpkImage from 'bpk-component-image';
22
+ import BpkFieldSet from '../../bpk-component-fieldset';
23
+ import BpkImage from '../../bpk-component-image';
24
24
 
25
25
  import BpkPhoneInput from './index';
26
26
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-phone-input",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "Backpack phone input component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,10 +15,10 @@
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^5.0.0",
18
- "bpk-component-input": "^6.1.0",
18
+ "bpk-component-input": "^6.1.1",
19
19
  "bpk-component-label": "^5.1.0",
20
20
  "bpk-component-select": "^5.1.0",
21
- "bpk-component-text": "^6.1.0",
21
+ "bpk-component-text": "^6.1.1",
22
22
  "bpk-mixins": "^26.1.0",
23
23
  "bpk-react-utils": "^4.1.0",
24
24
  "prop-types": "^15.7.2"
@@ -27,7 +27,7 @@
27
27
  "react": "^16.3.0 || ^17.0.0"
28
28
  },
29
29
  "devDependencies": {
30
- "bpk-component-fieldset": "^4.1.0",
31
- "bpk-component-image": "^5.1.0"
30
+ "bpk-component-fieldset": "^4.1.1",
31
+ "bpk-component-image": "^5.1.1"
32
32
  }
33
33
  }
@@ -20,10 +20,10 @@
20
20
 
21
21
  import React from 'react';
22
22
  import PropTypes from 'prop-types';
23
- import { cssModules } from 'bpk-react-utils';
24
- import BpkInput, { INPUT_TYPES } from 'bpk-component-input';
25
- import BpkLabel from 'bpk-component-label';
26
- import BpkSelect from 'bpk-component-select';
23
+ import { cssModules } from '../../bpk-react-utils';
24
+ import BpkInput, { INPUT_TYPES } from '../../bpk-component-input';
25
+ import BpkLabel from '../../bpk-component-label';
26
+ import BpkSelect from '../../bpk-component-select';
27
27
 
28
28
  import STYLES from './BpkPhoneInput.module.scss';
29
29
 
@@ -20,11 +20,11 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { Component, type Node } from 'react';
23
- import { cssModules, withDefaultProps } from 'bpk-react-utils';
24
- import BpkButton from 'bpk-component-button';
25
- import BpkText from 'bpk-component-text';
26
- import BpkContentContainer from 'bpk-component-content-container';
27
- import BpkInput, { withOpenEvents } from 'bpk-component-input';
23
+ import { cssModules, withDefaultProps } from '../bpk-react-utils';
24
+ import BpkButton from '../../bpk-component-button';
25
+ import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
26
+ import BpkContentContainer from '../../bpk-component-content-container';
27
+ import BpkInput, { withOpenEvents } from '../../bpk-component-input';
28
28
 
29
29
  import STYLES from './examples.module.scss';
30
30
 
@@ -35,7 +35,7 @@ const getClassName = cssModules(STYLES);
35
35
  const EnhancedInput = withOpenEvents(BpkInput);
36
36
 
37
37
  const Paragraph = withDefaultProps(BpkText, {
38
- textStyle: 'base',
38
+ textStyle: TEXT_STYLES.bodyDefault,
39
39
  tagName: 'p',
40
40
  className: getClassName('bpk-popover-paragraph'),
41
41
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-popover",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Backpack popover component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -17,9 +17,9 @@
17
17
  "@skyscanner/popper.js": "^1.12.9-beta.1",
18
18
  "a11y-focus-scope": "^1.1.3",
19
19
  "a11y-focus-store": "^1.0.0",
20
- "bpk-component-close-button": "^3.1.0",
20
+ "bpk-component-close-button": "^3.1.1",
21
21
  "bpk-component-link": "^3.1.0",
22
- "bpk-component-text": "^6.1.0",
22
+ "bpk-component-text": "^6.1.1",
23
23
  "bpk-mixins": "^26.1.0",
24
24
  "bpk-react-utils": "^4.1.0",
25
25
  "prop-types": "^15.7.2"
@@ -30,6 +30,6 @@
30
30
  "devDependencies": {
31
31
  "bpk-component-button": "^5.1.0",
32
32
  "bpk-component-content-container": "^4.1.0",
33
- "bpk-component-input": "^6.1.0"
33
+ "bpk-component-input": "^6.1.1"
34
34
  }
35
35
  }
@@ -20,10 +20,10 @@
20
20
 
21
21
  import PropTypes from 'prop-types';
22
22
  import React, { type Node } from 'react';
23
- import BpkText, { WEIGHT_STYLES } from 'bpk-component-text';
24
- import { BpkButtonLink } from 'bpk-component-link';
25
- import BpkCloseButton from 'bpk-component-close-button';
26
- import { TransitionInitialMount, cssModules } from 'bpk-react-utils';
23
+ import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
24
+ import { BpkButtonLink } from '../../bpk-component-link';
25
+ import BpkCloseButton from '../../bpk-component-close-button';
26
+ import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
27
27
 
28
28
  import STYLES from './BpkPopover.module.scss';
29
29
  import { ARROW_ID } from './constants';
@@ -111,7 +111,7 @@ const BpkPopover = (props: Props) => {
111
111
  />
112
112
  {labelAsTitle ? (
113
113
  <header className={getClassName('bpk-popover__header')}>
114
- <BpkText tagName="h2" id={labelId} weight={WEIGHT_STYLES.bold}>
114
+ <BpkText tagName="h2" id={labelId} textStyle={TEXT_STYLES.label1}>
115
115
  {label}
116
116
  </BpkText>
117
117
  &nbsp;
@@ -22,7 +22,7 @@ import Popper from '@skyscanner/popper.js';
22
22
  import PropTypes from 'prop-types';
23
23
  import React, { Component, type Node } from 'react';
24
24
  import focusStore from 'a11y-focus-store';
25
- import { Portal, cssModules } from 'bpk-react-utils';
25
+ import { Portal, cssModules } from '../../bpk-react-utils';
26
26
 
27
27
  import keyboardFocusScope from './keyboardFocusScope';
28
28
  import STYLES from './BpkPopover.module.scss';
@@ -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];
@@ -19,8 +19,8 @@
19
19
  /* @flow strict */
20
20
 
21
21
  import React, { Component } from 'react';
22
- import BpkButton from 'bpk-component-button';
23
- import { cssModules } from 'bpk-react-utils';
22
+ import BpkButton from '../../bpk-component-button';
23
+ import { cssModules } from '../bpk-react-utils';
24
24
 
25
25
  import STYLES from './examples.module.scss';
26
26
 
@@ -22,7 +22,7 @@ import PropTypes from 'prop-types';
22
22
  import React, { Component } from 'react';
23
23
  import { colorWhite } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
24
24
  import clamp from 'lodash.clamp';
25
- import { cssModules } from 'bpk-react-utils';
25
+ import { cssModules } from '../../bpk-react-utils';
26
26
 
27
27
  import STYLES from './BpkProgress.module.scss';
28
28
 
@@ -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 './BpkRadio.module.scss';
26
26
 
@@ -18,7 +18,7 @@
18
18
  /* @flow strict */
19
19
 
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 './examples.module.scss';
24
24
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-rating",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Backpack rating component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -24,6 +24,6 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@skyscanner/bpk-foundations-web": "^5.0.0",
27
- "bpk-component-text": "^6.1.0"
27
+ "bpk-component-text": "^6.1.1"
28
28
  }
29
29
  }
@@ -20,8 +20,8 @@
20
20
  import React from 'react';
21
21
  import PropTypes from 'prop-types';
22
22
  import clamp from 'lodash.clamp';
23
- import { cssModules } from 'bpk-react-utils';
24
- import BpkText, { WEIGHT_STYLES } from 'bpk-component-text';
23
+ import { cssModules } from '../../bpk-react-utils';
24
+ import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
25
25
 
26
26
  import STYLES from './BpkRating.module.scss';
27
27
  import { RATING_SIZES, RATING_TYPES, RATING_SCALES } from './common-types';
@@ -90,11 +90,14 @@ const BpkRating = (props: Props) => {
90
90
  const textWrapperStyles = [getClassName('bpk-rating__text-wrapper')];
91
91
  const textStyles = [getClassName('bpk-rating__text')];
92
92
 
93
- let textSize = 'base';
93
+ let titleTextSize = TEXT_STYLES.bodyDefault;
94
+ let valueTextSize = TEXT_STYLES.label1;
94
95
  if (size === RATING_SIZES.lg) {
95
- textSize = 'lg';
96
+ titleTextSize = TEXT_STYLES.bodyLongform;
97
+ valueTextSize = TEXT_STYLES.heading4;
96
98
  } else if (size === RATING_SIZES.sm) {
97
- textSize = 'sm';
99
+ titleTextSize = TEXT_STYLES.footnote;
100
+ valueTextSize = TEXT_STYLES.label2;
98
101
  }
99
102
 
100
103
  const minValue = getMinValue();
@@ -131,18 +134,17 @@ const BpkRating = (props: Props) => {
131
134
  // $FlowFixMe[cannot-spread-inexact] - inexact rest. See 'decisions/flowfixme.md'.
132
135
  <div className={classNames.join(' ')} aria-label={ariaLabel} {...rest}>
133
136
  <BpkText
134
- textStyle={textSize}
137
+ textStyle={valueTextSize}
135
138
  tagName="span"
136
139
  className={scoreStyles.join(' ')}
137
140
  aria-hidden="true"
138
- weight={WEIGHT_STYLES.bold}
139
141
  >
140
142
  {adjustedValue}
141
143
  </BpkText>
142
144
  <div className={textWrapperStyles.join(' ')}>
143
145
  <BpkText
144
146
  className={textStyles.join(' ')}
145
- textStyle={textSize}
147
+ textStyle={titleTextSize}
146
148
  tagName="span"
147
149
  aria-hidden="true"
148
150
  >
@@ -152,7 +154,11 @@ const BpkRating = (props: Props) => {
152
154
  {subtitle && type !== RATING_TYPES.pill && (
153
155
  <BpkText
154
156
  className={textStyles.join(' ')}
155
- textStyle={size === RATING_SIZES.lg ? 'sm' : 'xs'}
157
+ textStyle={
158
+ size === RATING_SIZES.lg
159
+ ? TEXT_STYLES.footnote
160
+ : TEXT_STYLES.caption
161
+ }
156
162
  tagName="span"
157
163
  aria-hidden="true"
158
164
  >
@@ -18,7 +18,7 @@
18
18
 
19
19
  import React from 'react';
20
20
  import PropTypes from 'prop-types';
21
- import { BpkButtonLink } from 'bpk-component-link';
21
+ import { BpkButtonLink } from '../../bpk-component-link';
22
22
 
23
23
  import { getHtmlElement, DIRECTIONS, DIRECTION_CHANGE_EVENT } from './utils';
24
24
 
@@ -17,7 +17,7 @@
17
17
  */
18
18
 
19
19
  import React, { Component } from 'react';
20
- import { wrapDisplayName } from 'bpk-react-utils';
20
+ import { wrapDisplayName } from '../../bpk-react-utils';
21
21
 
22
22
  import { getHtmlElement, DIRECTION_CHANGE_EVENT } from './utils';
23
23
 
@@ -25,7 +25,7 @@ import {
25
25
  DateUtils,
26
26
  CustomPropTypes,
27
27
  CALENDAR_SELECTION_TYPE,
28
- } from 'bpk-component-calendar';
28
+ } from '../../bpk-component-calendar';
29
29
 
30
30
  import {
31
31
  formatDateFull,
@@ -17,7 +17,7 @@
17
17
  */
18
18
  /* @flow strict */
19
19
 
20
- import { CALENDAR_SELECTION_TYPE } from 'bpk-component-calendar';
20
+ import { CALENDAR_SELECTION_TYPE } from '../../bpk-component-calendar';
21
21
 
22
22
  import BpkScrollableCalendar from './src/BpkScrollableCalendar';
23
23
  import BpkScrollableCalendarDate from './src/BpkScrollableCalendarDate';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-scrollable-calendar",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Backpack scrollable calendar component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,8 +15,8 @@
15
15
  "gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^5.0.0",
18
- "bpk-component-calendar": "^11.1.0",
19
- "bpk-component-text": "^6.1.0",
18
+ "bpk-component-calendar": "^11.1.1",
19
+ "bpk-component-text": "^6.1.1",
20
20
  "bpk-mixins": "^26.1.0",
21
21
  "bpk-react-utils": "^4.1.0",
22
22
  "date-fns": "^2.21.1",
@@ -21,7 +21,7 @@ import {
21
21
  BpkCalendarGridHeader,
22
22
  withCalendarState,
23
23
  composeCalendar,
24
- } from 'bpk-component-calendar';
24
+ } from '../../bpk-component-calendar';
25
25
 
26
26
  import BpkscrollableCalendarDate from './BpkScrollableCalendarDate';
27
27
  import BpkScrollableCalendarGridList from './BpkScrollableCalendarGridList';
@@ -21,7 +21,7 @@ import React, { PureComponent } from 'react';
21
21
  import {
22
22
  BpkCalendarDate,
23
23
  BpkCalendarDatePropTypes,
24
- } from 'bpk-component-calendar';
24
+ } from '../../bpk-component-calendar';
25
25
 
26
26
  class BpkScrollableCalendarDate extends PureComponent {
27
27
  render() {
@@ -17,12 +17,12 @@
17
17
  */
18
18
 
19
19
  import React from 'react';
20
- import { cssModules } from 'bpk-react-utils';
21
- import BpkText from 'bpk-component-text';
20
+ import { cssModules } from '../../bpk-react-utils';
21
+ import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
22
22
  import {
23
23
  BpkCalendarGrid,
24
24
  BpkCalendarGridPropTypes,
25
- } from 'bpk-component-calendar';
25
+ } from '../../bpk-component-calendar';
26
26
 
27
27
  import STYLES from './BpkScrollableCalendarGrid.module.scss';
28
28
 
@@ -38,8 +38,7 @@ const BpkScrollableCalendarGrid = (props) => {
38
38
  <BpkText
39
39
  className={getClassName('bpk-scrollable-calendar-grid__title')}
40
40
  tagName="h1"
41
- textStyle="lg"
42
- weight="bold"
41
+ textStyle={TEXT_STYLES.heading4}
43
42
  >
44
43
  {props.formatMonth(month)}
45
44
  </BpkText>
@@ -18,8 +18,8 @@
18
18
 
19
19
  import PropTypes from 'prop-types';
20
20
  import React from 'react';
21
- import { cssModules, deprecated } from 'bpk-react-utils';
22
- import { DateUtils, BpkCalendarGridPropTypes } from 'bpk-component-calendar';
21
+ import { cssModules, deprecated } from '../../bpk-react-utils';
22
+ import { DateUtils, BpkCalendarGridPropTypes } from '../../bpk-component-calendar';
23
23
  import { startOfDay, startOfMonth } from 'date-fns';
24
24
  import {
25
25
  AutoSizer,
@@ -16,7 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { DateUtils } from 'bpk-component-calendar';
19
+ import { DateUtils } from '../../bpk-component-calendar';
20
20
 
21
21
  const getMonthsArray = (startDate, count) => {
22
22
  const months = [];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-section-list",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Backpack section list component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,8 +15,8 @@
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^5.0.0",
18
- "bpk-component-icon": "^9.2.0",
19
- "bpk-component-text": "^6.1.0",
18
+ "bpk-component-icon": "^9.2.1",
19
+ "bpk-component-text": "^6.1.1",
20
20
  "bpk-mixins": "^26.1.0",
21
21
  "bpk-react-utils": "^4.1.0",
22
22
  "prop-types": "^15.7.2"