@skyscanner/backpack-web 31.7.2 → 31.8.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 (145) hide show
  1. package/bpk-animate-height/src/AnimateHeight.js +0 -1
  2. package/bpk-component-accordion/src/BpkAccordion.module.css +1 -1
  3. package/bpk-component-accordion/src/BpkAccordionItem.module.css +1 -1
  4. package/bpk-component-aria-live/src/BpkAriaLive.module.css +1 -1
  5. package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +1 -1
  6. package/bpk-component-badge/src/BpkBadge.module.css +1 -1
  7. package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.css +1 -1
  8. package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +1 -1
  9. package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +0 -1
  10. package/bpk-component-barchart/src/BpkBarchart.module.css +1 -1
  11. package/bpk-component-barchart/src/BpkBarchartBar.module.css +1 -1
  12. package/bpk-component-barchart/src/BpkChartAxis.module.css +1 -1
  13. package/bpk-component-barchart/src/BpkChartDataTable.module.css +1 -1
  14. package/bpk-component-barchart/src/BpkChartGridLines.module.css +1 -1
  15. package/bpk-component-blockquote/src/BpkBlockquote.module.css +1 -1
  16. package/bpk-component-boilerplate/src/BpkBoilerplate.module.css +1 -1
  17. package/bpk-component-bottom-sheet/src/BpkBottomSheet.module.css +1 -1
  18. package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.d.ts +2 -1
  19. package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.js +2 -0
  20. package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.module.css +1 -1
  21. package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.css +1 -1
  22. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +0 -1
  23. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +1 -1
  24. package/bpk-component-breakpoint/src/BpkBreakpoint.js +9 -5
  25. package/bpk-component-button/src/BpkButtonBase.js +0 -1
  26. package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
  27. package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
  28. package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
  29. package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
  30. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +1 -1
  31. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +1 -1
  32. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +1 -1
  33. package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
  34. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +1 -1
  35. package/bpk-component-button/src/BpkButtonV2/BpkButton.module.css +1 -1
  36. package/bpk-component-calendar/src/BpkCalendar.module.css +1 -1
  37. package/bpk-component-calendar/src/BpkCalendarDate.module.css +1 -1
  38. package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
  39. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +1 -1
  40. package/bpk-component-calendar/src/BpkCalendarGridTransition.module.css +1 -1
  41. package/bpk-component-calendar/src/BpkCalendarNav.module.css +1 -1
  42. package/bpk-component-card/src/BpkCard.module.css +1 -1
  43. package/bpk-component-card/src/BpkCardWrapper.module.css +1 -1
  44. package/bpk-component-card/src/BpkDividedCard.module.css +1 -1
  45. package/bpk-component-card-button/src/BpkSaveButton.module.css +1 -1
  46. package/bpk-component-checkbox/src/BpkCheckbox.module.css +1 -1
  47. package/bpk-component-chip/src/BpkSelectableChip.module.css +1 -1
  48. package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
  49. package/bpk-component-code/src/BpkCode.module.css +1 -1
  50. package/bpk-component-code/src/BpkCodeBlock.module.css +1 -1
  51. package/bpk-component-content-cards/src/BpkContentCard.module.css +1 -1
  52. package/bpk-component-content-cards/src/BpkContentCards.module.css +1 -1
  53. package/bpk-component-datatable/src/BpkDataTable.js +0 -1
  54. package/bpk-component-datatable/src/BpkDataTable.module.css +1 -1
  55. package/bpk-component-datatable/src/BpkDataTableColumn.js +1 -0
  56. package/bpk-component-datatable/src/BpkDataTableHeader.module.css +1 -1
  57. package/bpk-component-datepicker/src/BpkDatepicker.module.css +1 -1
  58. package/bpk-component-description-list/src/BpkDescriptionList.module.css +1 -1
  59. package/bpk-component-dialog/src/BpkDialog.module.css +1 -1
  60. package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
  61. package/bpk-component-drawer/src/BpkDrawer.module.css +1 -1
  62. package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
  63. package/bpk-component-fieldset/src/BpkFieldset.module.css +1 -1
  64. package/bpk-component-flare/src/bpk-content-bubble.module.css +1 -1
  65. package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
  66. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
  67. package/bpk-component-form-validation/src/BpkFormValidation.js +0 -1
  68. package/bpk-component-form-validation/src/BpkFormValidation.module.css +1 -1
  69. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +0 -1
  70. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +1 -1
  71. package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +1 -1
  72. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +1 -1
  73. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.css +1 -1
  74. package/bpk-component-icon/src/BpkIcon.module.css +1 -1
  75. package/bpk-component-icon/src/withDescription.module.css +1 -1
  76. package/bpk-component-image/src/BpkBackgroundImage.module.css +1 -1
  77. package/bpk-component-image/src/BpkImage.module.css +1 -1
  78. package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +0 -1
  79. package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.css +1 -1
  80. package/bpk-component-info-banner/src/BpkAnimateAndFade.module.css +1 -1
  81. package/bpk-component-info-banner/src/BpkInfoBanner.module.css +1 -1
  82. package/bpk-component-info-banner/src/BpkInfoBannerInner.js +0 -1
  83. package/bpk-component-input/src/BpkClearButton.module.css +1 -1
  84. package/bpk-component-input/src/BpkInput.module.css +1 -1
  85. package/bpk-component-label/src/BpkLabel.module.css +1 -1
  86. package/bpk-component-link/src/BpkLink.module.css +1 -1
  87. package/bpk-component-list/src/BpkList.module.css +1 -1
  88. package/bpk-component-loading-button/src/BpkLoadingButton.module.css +1 -1
  89. package/bpk-component-map/src/BpkIconMarker.js +0 -1
  90. package/bpk-component-map/src/BpkIconMarker.module.css +1 -1
  91. package/bpk-component-map/src/BpkIconMarkerBackground.module.css +1 -1
  92. package/bpk-component-map/src/BpkMap.module.css +1 -1
  93. package/bpk-component-map/src/BpkPriceMarker.js +0 -1
  94. package/bpk-component-map/src/BpkPriceMarker.module.css +1 -1
  95. package/bpk-component-map/src/DefaultLoadingElement.module.css +1 -1
  96. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +1 -1
  97. package/bpk-component-modal/src/BpkModal.module.css +1 -1
  98. package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
  99. package/bpk-component-modal/src/BpkModalV2/BpKModal.module.css +1 -1
  100. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
  101. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +1 -1
  102. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.css +1 -1
  103. package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
  104. package/bpk-component-overlay/src/BpkOverlay.module.css +1 -1
  105. package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +1 -1
  106. package/bpk-component-pagination/src/BpkPagination.module.css +1 -1
  107. package/bpk-component-pagination/src/BpkPaginationList.module.css +1 -1
  108. package/bpk-component-pagination/src/BpkPaginationNudger.module.css +1 -1
  109. package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
  110. package/bpk-component-panel/src/BpkPanel.module.css +1 -1
  111. package/bpk-component-phone-input/src/BpkPhoneInput.js +0 -1
  112. package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
  113. package/bpk-component-popover/src/BpkPopover.module.css +1 -1
  114. package/bpk-component-price/src/BpkPrice.module.css +1 -1
  115. package/bpk-component-progress/src/BpkProgress.module.css +1 -1
  116. package/bpk-component-radio/src/BpkRadio.module.css +1 -1
  117. package/bpk-component-rating/src/BpkRating.module.css +1 -1
  118. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.css +1 -1
  119. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.css +1 -1
  120. package/bpk-component-section-header/src/BpkSectionHeader.module.css +1 -1
  121. package/bpk-component-section-list/src/BpkSectionListItem.module.css +1 -1
  122. package/bpk-component-section-list/src/BpkSectionListSection.module.css +1 -1
  123. package/bpk-component-select/src/BpkSelect.module.css +1 -1
  124. package/bpk-component-skip-link/src/BpkSkipLink.module.css +1 -1
  125. package/bpk-component-slider/src/BpkSlider.module.css +1 -1
  126. package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
  127. package/bpk-component-split-input/src/BpkInputField.module.css +1 -1
  128. package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
  129. package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +1 -1
  130. package/bpk-component-star-rating/src/BpkStar.module.css +1 -1
  131. package/bpk-component-star-rating/src/BpkStarRating.module.css +1 -1
  132. package/bpk-component-switch/src/BpkSwitch.module.css +1 -1
  133. package/bpk-component-table/src/BpkTable.module.css +1 -1
  134. package/bpk-component-text/src/BpkText.module.css +1 -1
  135. package/bpk-component-textarea/src/BpkTextarea.module.css +1 -1
  136. package/bpk-component-theme-toggle/src/BpkThemeToggle.module.css +1 -1
  137. package/bpk-component-ticket/src/BpkTicket.js +0 -1
  138. package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
  139. package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
  140. package/bpk-scrim-utils/src/bpk-scrim-content.module.css +1 -1
  141. package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
  142. package/bpk-stylesheets/base.css +1 -1
  143. package/bpk-stylesheets/index.scss +51 -44
  144. package/bpk-theming/src/BpkThemeProvider.js +0 -2
  145. package/package.json +1 -1
@@ -16,65 +16,72 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '~normalize.css';
20
- @import '../bpk-mixins/index.scss';
19
+ @layer bpk-reset, bpk-base, bpk-component, bpk-utility;
21
20
 
22
- // stylelint-disable-next-line selector-max-type
23
- html {
24
- font-size: $bpk-font-size-root;
25
- box-sizing: border-box;
21
+ @layer bpk-reset {
22
+ @import '~normalize.css';
26
23
  }
27
24
 
28
- * {
29
- box-sizing: inherit;
25
+ @layer bpk-base {
26
+ @import '../bpk-mixins/index.scss';
30
27
 
31
- &::before,
32
- &::after {
28
+ // stylelint-disable-next-line selector-max-type
29
+ html {
30
+ font-size: $bpk-font-size-root;
31
+ box-sizing: border-box;
32
+ }
33
+
34
+ * {
33
35
  box-sizing: inherit;
36
+
37
+ &::before,
38
+ &::after {
39
+ box-sizing: inherit;
40
+ }
34
41
  }
35
- }
36
42
 
37
- /* stylelint-disable selector-class-pattern */
38
- body {
39
- color: $bpk-font-color-base;
40
- font-family: $bpk-font-family-base;
41
- font-size: $bpk-font-size-base;
42
- line-height: 1.3rem; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
43
+ /* stylelint-disable selector-class-pattern */
44
+ body {
45
+ color: $bpk-font-color-base;
46
+ font-family: $bpk-font-family-base;
47
+ font-size: $bpk-font-size-base;
48
+ line-height: 1.3rem; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
49
+
50
+ :global(&.scaffold-font-size) {
51
+ font-size: 13px; /* stylelint-disable-line unit-disallowed-list, scale-unlimited/declaration-strict-value */
52
+ }
43
53
 
44
- :global(&.scaffold-font-size) {
45
- font-size: 13px; /* stylelint-disable-line unit-disallowed-list, scale-unlimited/declaration-strict-value */
54
+ :global(&.enable-font-smoothing) {
55
+ -webkit-font-smoothing: antialiased;
56
+ }
46
57
  }
47
58
 
48
- :global(&.enable-font-smoothing) {
49
- -webkit-font-smoothing: antialiased;
59
+ :focus-visible {
60
+ @include bpk-focus-indicator;
50
61
  }
51
- }
52
62
 
53
- :focus-visible {
54
- @include bpk-focus-indicator;
55
- }
63
+ :global(.hidden),
64
+ :global(.hide) {
65
+ @include bpk-hidden;
66
+ }
56
67
 
57
- :global(.hidden),
58
- :global(.hide) {
59
- @include bpk-hidden;
60
- }
68
+ :global(.visuallyhidden),
69
+ :global(.visually-hidden) {
70
+ @include bpk-visually-hidden;
71
+ }
61
72
 
62
- :global(.visuallyhidden),
63
- :global(.visually-hidden) {
64
- @include bpk-visually-hidden;
65
- }
73
+ :global(.visuallyhidden.focusable),
74
+ :global(.visually-hidden.focusable) {
75
+ @include bpk-visually-hidden--focusable;
76
+ }
66
77
 
67
- :global(.visuallyhidden.focusable),
68
- :global(.visually-hidden.focusable) {
69
- @include bpk-visually-hidden--focusable;
70
- }
78
+ :global(.invisible) {
79
+ @include bpk-invisible;
80
+ }
71
81
 
72
- :global(.invisible) {
73
- @include bpk-invisible;
74
- }
82
+ :global(.clearfix) {
83
+ @include bpk-clearfix;
84
+ }
75
85
 
76
- :global(.clearfix) {
77
- @include bpk-clearfix;
86
+ /* stylelint-enable */
78
87
  }
79
-
80
- /* stylelint-enable */
@@ -80,7 +80,6 @@ class BpkThemeProvider extends Component {
80
80
  BpkThemeProvider.childContextTypes = {
81
81
  theme: PropTypes.object // eslint-disable-line react/forbid-prop-types
82
82
  };
83
-
84
83
  const themeAttributesPropType = (props, propName, componentName) => {
85
84
  const {
86
85
  theme
@@ -131,7 +130,6 @@ BpkThemeProvider.propTypes = {
131
130
  component: PropTypes.elementType,
132
131
  style: PropTypes.object // eslint-disable-line react/forbid-prop-types
133
132
  };
134
-
135
133
  BpkThemeProvider.defaultProps = {
136
134
  theme: null,
137
135
  component: 'div',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "31.7.2",
3
+ "version": "31.8.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",