@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.
- package/bpk-animate-height/src/AnimateHeight.js +0 -1
- package/bpk-component-accordion/src/BpkAccordion.module.css +1 -1
- package/bpk-component-accordion/src/BpkAccordionItem.module.css +1 -1
- package/bpk-component-aria-live/src/BpkAriaLive.module.css +1 -1
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +1 -1
- package/bpk-component-badge/src/BpkBadge.module.css +1 -1
- package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.css +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +0 -1
- package/bpk-component-barchart/src/BpkBarchart.module.css +1 -1
- package/bpk-component-barchart/src/BpkBarchartBar.module.css +1 -1
- package/bpk-component-barchart/src/BpkChartAxis.module.css +1 -1
- package/bpk-component-barchart/src/BpkChartDataTable.module.css +1 -1
- package/bpk-component-barchart/src/BpkChartGridLines.module.css +1 -1
- package/bpk-component-blockquote/src/BpkBlockquote.module.css +1 -1
- package/bpk-component-boilerplate/src/BpkBoilerplate.module.css +1 -1
- package/bpk-component-bottom-sheet/src/BpkBottomSheet.module.css +1 -1
- package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.d.ts +2 -1
- package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.js +2 -0
- package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.module.css +1 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.css +1 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +0 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +1 -1
- package/bpk-component-breakpoint/src/BpkBreakpoint.js +9 -5
- package/bpk-component-button/src/BpkButtonBase.js +0 -1
- package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
- package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
- package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +1 -1
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +1 -1
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +1 -1
- package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +1 -1
- package/bpk-component-button/src/BpkButtonV2/BpkButton.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendar.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarDate.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridTransition.module.css +1 -1
- package/bpk-component-calendar/src/BpkCalendarNav.module.css +1 -1
- package/bpk-component-card/src/BpkCard.module.css +1 -1
- package/bpk-component-card/src/BpkCardWrapper.module.css +1 -1
- package/bpk-component-card/src/BpkDividedCard.module.css +1 -1
- package/bpk-component-card-button/src/BpkSaveButton.module.css +1 -1
- package/bpk-component-checkbox/src/BpkCheckbox.module.css +1 -1
- package/bpk-component-chip/src/BpkSelectableChip.module.css +1 -1
- package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
- package/bpk-component-code/src/BpkCode.module.css +1 -1
- package/bpk-component-code/src/BpkCodeBlock.module.css +1 -1
- package/bpk-component-content-cards/src/BpkContentCard.module.css +1 -1
- package/bpk-component-content-cards/src/BpkContentCards.module.css +1 -1
- package/bpk-component-datatable/src/BpkDataTable.js +0 -1
- package/bpk-component-datatable/src/BpkDataTable.module.css +1 -1
- package/bpk-component-datatable/src/BpkDataTableColumn.js +1 -0
- package/bpk-component-datatable/src/BpkDataTableHeader.module.css +1 -1
- package/bpk-component-datepicker/src/BpkDatepicker.module.css +1 -1
- package/bpk-component-description-list/src/BpkDescriptionList.module.css +1 -1
- package/bpk-component-dialog/src/BpkDialog.module.css +1 -1
- package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
- package/bpk-component-drawer/src/BpkDrawer.module.css +1 -1
- package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
- package/bpk-component-fieldset/src/BpkFieldset.module.css +1 -1
- package/bpk-component-flare/src/bpk-content-bubble.module.css +1 -1
- package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
- package/bpk-component-form-validation/src/BpkFormValidation.js +0 -1
- package/bpk-component-form-validation/src/BpkFormValidation.module.css +1 -1
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +0 -1
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +1 -1
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +1 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +1 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.css +1 -1
- package/bpk-component-icon/src/BpkIcon.module.css +1 -1
- package/bpk-component-icon/src/withDescription.module.css +1 -1
- package/bpk-component-image/src/BpkBackgroundImage.module.css +1 -1
- package/bpk-component-image/src/BpkImage.module.css +1 -1
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +0 -1
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.css +1 -1
- package/bpk-component-info-banner/src/BpkAnimateAndFade.module.css +1 -1
- package/bpk-component-info-banner/src/BpkInfoBanner.module.css +1 -1
- package/bpk-component-info-banner/src/BpkInfoBannerInner.js +0 -1
- package/bpk-component-input/src/BpkClearButton.module.css +1 -1
- package/bpk-component-input/src/BpkInput.module.css +1 -1
- package/bpk-component-label/src/BpkLabel.module.css +1 -1
- package/bpk-component-link/src/BpkLink.module.css +1 -1
- package/bpk-component-list/src/BpkList.module.css +1 -1
- package/bpk-component-loading-button/src/BpkLoadingButton.module.css +1 -1
- package/bpk-component-map/src/BpkIconMarker.js +0 -1
- package/bpk-component-map/src/BpkIconMarker.module.css +1 -1
- package/bpk-component-map/src/BpkIconMarkerBackground.module.css +1 -1
- package/bpk-component-map/src/BpkMap.module.css +1 -1
- package/bpk-component-map/src/BpkPriceMarker.js +0 -1
- package/bpk-component-map/src/BpkPriceMarker.module.css +1 -1
- package/bpk-component-map/src/DefaultLoadingElement.module.css +1 -1
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +1 -1
- package/bpk-component-modal/src/BpkModal.module.css +1 -1
- package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
- package/bpk-component-modal/src/BpkModalV2/BpKModal.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.css +1 -1
- package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
- package/bpk-component-overlay/src/BpkOverlay.module.css +1 -1
- package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +1 -1
- package/bpk-component-pagination/src/BpkPagination.module.css +1 -1
- package/bpk-component-pagination/src/BpkPaginationList.module.css +1 -1
- package/bpk-component-pagination/src/BpkPaginationNudger.module.css +1 -1
- package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
- package/bpk-component-panel/src/BpkPanel.module.css +1 -1
- package/bpk-component-phone-input/src/BpkPhoneInput.js +0 -1
- package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
- package/bpk-component-popover/src/BpkPopover.module.css +1 -1
- package/bpk-component-price/src/BpkPrice.module.css +1 -1
- package/bpk-component-progress/src/BpkProgress.module.css +1 -1
- package/bpk-component-radio/src/BpkRadio.module.css +1 -1
- package/bpk-component-rating/src/BpkRating.module.css +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.css +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.css +1 -1
- package/bpk-component-section-header/src/BpkSectionHeader.module.css +1 -1
- package/bpk-component-section-list/src/BpkSectionListItem.module.css +1 -1
- package/bpk-component-section-list/src/BpkSectionListSection.module.css +1 -1
- package/bpk-component-select/src/BpkSelect.module.css +1 -1
- package/bpk-component-skip-link/src/BpkSkipLink.module.css +1 -1
- package/bpk-component-slider/src/BpkSlider.module.css +1 -1
- package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
- package/bpk-component-split-input/src/BpkInputField.module.css +1 -1
- package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
- package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +1 -1
- package/bpk-component-star-rating/src/BpkStar.module.css +1 -1
- package/bpk-component-star-rating/src/BpkStarRating.module.css +1 -1
- package/bpk-component-switch/src/BpkSwitch.module.css +1 -1
- package/bpk-component-table/src/BpkTable.module.css +1 -1
- package/bpk-component-text/src/BpkText.module.css +1 -1
- package/bpk-component-textarea/src/BpkTextarea.module.css +1 -1
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.css +1 -1
- package/bpk-component-ticket/src/BpkTicket.js +0 -1
- package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
- package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
- package/bpk-scrim-utils/src/bpk-scrim-content.module.css +1 -1
- package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
- package/bpk-stylesheets/base.css +1 -1
- package/bpk-stylesheets/index.scss +51 -44
- package/bpk-theming/src/BpkThemeProvider.js +0 -2
- package/package.json +1 -1
|
@@ -16,65 +16,72 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@
|
|
20
|
-
@import '../bpk-mixins/index.scss';
|
|
19
|
+
@layer bpk-reset, bpk-base, bpk-component, bpk-utility;
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
25
|
+
@layer bpk-base {
|
|
26
|
+
@import '../bpk-mixins/index.scss';
|
|
30
27
|
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
45
|
-
|
|
54
|
+
:global(&.enable-font-smoothing) {
|
|
55
|
+
-webkit-font-smoothing: antialiased;
|
|
56
|
+
}
|
|
46
57
|
}
|
|
47
58
|
|
|
48
|
-
:
|
|
49
|
-
-
|
|
59
|
+
:focus-visible {
|
|
60
|
+
@include bpk-focus-indicator;
|
|
50
61
|
}
|
|
51
|
-
}
|
|
52
62
|
|
|
53
|
-
:
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
:global(.hidden),
|
|
64
|
+
:global(.hide) {
|
|
65
|
+
@include bpk-hidden;
|
|
66
|
+
}
|
|
56
67
|
|
|
57
|
-
:global(.
|
|
58
|
-
:global(.
|
|
59
|
-
|
|
60
|
-
}
|
|
68
|
+
:global(.visuallyhidden),
|
|
69
|
+
:global(.visually-hidden) {
|
|
70
|
+
@include bpk-visually-hidden;
|
|
71
|
+
}
|
|
61
72
|
|
|
62
|
-
:global(.visuallyhidden),
|
|
63
|
-
:global(.visually-hidden) {
|
|
64
|
-
|
|
65
|
-
}
|
|
73
|
+
:global(.visuallyhidden.focusable),
|
|
74
|
+
:global(.visually-hidden.focusable) {
|
|
75
|
+
@include bpk-visually-hidden--focusable;
|
|
76
|
+
}
|
|
66
77
|
|
|
67
|
-
:global(.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
78
|
+
:global(.invisible) {
|
|
79
|
+
@include bpk-invisible;
|
|
80
|
+
}
|
|
71
81
|
|
|
72
|
-
:global(.
|
|
73
|
-
|
|
74
|
-
}
|
|
82
|
+
:global(.clearfix) {
|
|
83
|
+
@include bpk-clearfix;
|
|
84
|
+
}
|
|
75
85
|
|
|
76
|
-
|
|
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',
|