@skyscanner/backpack-web 31.10.0 → 32.0.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-component-accordion/src/BpkAccordion.module.css +2 -2
- package/bpk-component-accordion/src/BpkAccordionItem.module.css +2 -2
- package/bpk-component-aria-live/src/BpkAriaLive.module.css +2 -2
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +2 -2
- package/bpk-component-badge/index.js +1 -3
- package/bpk-component-badge/src/BpkBadge.module.css +2 -2
- package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.css +2 -2
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +2 -2
- package/bpk-component-barchart/src/BpkBarchart.module.css +2 -2
- package/bpk-component-barchart/src/BpkBarchartBar.module.css +2 -2
- package/bpk-component-barchart/src/BpkChartAxis.module.css +2 -2
- package/bpk-component-barchart/src/BpkChartDataTable.module.css +2 -2
- package/bpk-component-barchart/src/BpkChartGridLines.module.css +2 -2
- package/bpk-component-blockquote/src/BpkBlockquote.module.css +2 -2
- package/bpk-component-boilerplate/src/BpkBoilerplate.module.css +2 -2
- package/bpk-component-bottom-sheet/src/BpkBottomSheet.module.css +2 -2
- package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.module.css +2 -2
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.css +2 -2
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +2 -2
- package/bpk-component-button/src/BpkButtonBase.module.css +2 -2
- package/bpk-component-button/src/BpkButtonDestructive.module.css +2 -2
- package/bpk-component-button/src/BpkButtonFeatured.module.css +2 -2
- package/bpk-component-button/src/BpkButtonLink.module.css +2 -2
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +2 -2
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +2 -2
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +2 -2
- package/bpk-component-button/src/BpkButtonSecondary.module.css +2 -2
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +2 -2
- package/bpk-component-button/src/BpkButtonV2/BpkButton.module.css +2 -2
- package/bpk-component-calendar/src/BpkCalendar.module.css +2 -2
- package/bpk-component-calendar/src/BpkCalendarDate.module.css +2 -2
- package/bpk-component-calendar/src/BpkCalendarGrid.module.css +2 -2
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +2 -2
- package/bpk-component-calendar/src/BpkCalendarGridTransition.module.css +2 -2
- package/bpk-component-calendar/src/BpkCalendarNav.module.css +2 -2
- package/bpk-component-card/src/BpkCard.module.css +2 -2
- package/bpk-component-card/src/BpkCardWrapper.module.css +2 -2
- package/bpk-component-card/src/BpkDividedCard.module.css +2 -2
- package/bpk-component-card-button/src/BpkSaveButton.module.css +2 -2
- package/bpk-component-checkbox/src/BpkCheckbox.module.css +2 -2
- package/bpk-component-chip/src/BpkSelectableChip.module.css +2 -2
- package/bpk-component-close-button/src/BpkCloseButton.module.css +2 -2
- package/bpk-component-code/src/BpkCode.module.css +2 -2
- package/bpk-component-code/src/BpkCodeBlock.module.css +2 -2
- package/bpk-component-content-cards/src/BpkContentCard.module.css +2 -2
- package/bpk-component-content-cards/src/BpkContentCards.module.css +2 -2
- package/bpk-component-datatable/index.js +3 -2
- package/bpk-component-datatable/src/BpkDataTable.js +38 -103
- package/bpk-component-datatable/src/BpkDataTable.module.css +2 -2
- package/bpk-component-datatable/src/BpkDataTableHeader.js +22 -2
- package/bpk-component-datatable/src/BpkDataTableHeader.module.css +2 -2
- package/bpk-component-datatable/src/common-types.js +22 -0
- package/bpk-component-datatable/src/utils.js +14 -148
- package/bpk-component-datepicker/src/BpkDatepicker.module.css +2 -2
- package/bpk-component-description-list/src/BpkDescriptionList.module.css +2 -2
- package/bpk-component-dialog/src/BpkDialog.module.css +2 -2
- package/bpk-component-dialog/src/BpkDialogInner.module.css +2 -2
- package/bpk-component-drawer/src/BpkDrawer.module.css +2 -2
- package/bpk-component-drawer/src/BpkDrawerContent.module.css +2 -2
- package/bpk-component-fieldset/src/BpkFieldset.module.css +2 -2
- package/bpk-component-flare/src/bpk-content-bubble.module.css +2 -2
- package/bpk-component-flare/src/bpk-flare-bar.module.css +2 -2
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +2 -2
- package/bpk-component-form-validation/src/BpkFormValidation.module.css +2 -2
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +2 -2
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +2 -2
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +2 -2
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.css +2 -2
- package/bpk-component-icon/src/BpkIcon.module.css +2 -2
- package/bpk-component-icon/src/withDescription.module.css +2 -2
- package/bpk-component-image/src/BpkBackgroundImage.module.css +2 -2
- package/bpk-component-image/src/BpkImage.module.css +2 -2
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.css +2 -2
- package/bpk-component-info-banner/src/BpkAnimateAndFade.module.css +2 -2
- package/bpk-component-info-banner/src/BpkInfoBanner.module.css +2 -2
- package/bpk-component-input/src/BpkClearButton.module.css +2 -2
- package/bpk-component-input/src/BpkInput.module.css +2 -2
- package/bpk-component-label/src/BpkLabel.module.css +2 -2
- package/bpk-component-link/src/BpkLink.module.css +2 -2
- package/bpk-component-list/src/BpkList.module.css +2 -2
- package/bpk-component-loading-button/src/BpkLoadingButton.module.css +2 -2
- package/bpk-component-map/src/BpkIconMarker.module.css +2 -2
- package/bpk-component-map/src/BpkIconMarkerBackground.module.css +2 -2
- package/bpk-component-map/src/BpkMap.module.css +2 -2
- package/bpk-component-map/src/BpkPriceMarker.module.css +2 -2
- package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.module.css +2 -2
- package/bpk-component-map/src/DefaultLoadingElement.module.css +2 -2
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +2 -2
- package/bpk-component-modal/src/BpkModal.module.css +2 -2
- package/bpk-component-modal/src/BpkModalInner.module.css +2 -2
- package/bpk-component-modal/src/BpkModalV2/BpKModal.module.css +2 -2
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +2 -2
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +2 -2
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.css +2 -2
- package/bpk-component-nudger/src/BpkNudger.module.css +2 -2
- package/bpk-component-overlay/src/BpkOverlay.module.css +2 -2
- package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +2 -2
- package/bpk-component-pagination/src/BpkPagination.module.css +2 -2
- package/bpk-component-pagination/src/BpkPaginationList.module.css +2 -2
- package/bpk-component-pagination/src/BpkPaginationNudger.module.css +2 -2
- package/bpk-component-pagination/src/BpkPaginationPage.module.css +2 -2
- package/bpk-component-panel/src/BpkPanel.module.css +2 -2
- package/bpk-component-phone-input/src/BpkPhoneInput.module.css +2 -2
- package/bpk-component-popover/src/BpkPopover.module.css +2 -2
- package/bpk-component-price/src/BpkPrice.module.css +2 -2
- package/bpk-component-progress/src/BpkProgress.module.css +2 -2
- package/bpk-component-radio/src/BpkRadio.module.css +2 -2
- package/bpk-component-rating/src/BpkRating.module.css +2 -2
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.css +2 -2
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.css +2 -2
- package/bpk-component-section-header/src/BpkSectionHeader.module.css +2 -2
- package/bpk-component-section-list/src/BpkSectionListItem.module.css +2 -2
- package/bpk-component-section-list/src/BpkSectionListSection.module.css +2 -2
- package/bpk-component-select/src/BpkSelect.module.css +2 -2
- package/bpk-component-skip-link/src/BpkSkipLink.module.css +2 -2
- package/bpk-component-slider/src/BpkSlider.module.css +2 -2
- package/bpk-component-spinner/src/BpkSpinner.module.css +2 -2
- package/bpk-component-split-input/src/BpkInputField.module.css +2 -2
- package/bpk-component-split-input/src/BpkSplitInput.module.css +2 -2
- package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +2 -2
- package/bpk-component-star-rating/src/BpkStar.module.css +2 -2
- package/bpk-component-star-rating/src/BpkStarRating.module.css +2 -2
- package/bpk-component-swap-button/src/BpkSwapButton.js +2 -2
- package/bpk-component-swap-button/src/BpkSwapButton.module.css +2 -2
- package/bpk-component-switch/src/BpkSwitch.module.css +2 -2
- package/bpk-component-table/src/BpkTable.module.css +2 -2
- package/bpk-component-text/src/BpkText.module.css +2 -2
- package/bpk-component-textarea/src/BpkTextarea.module.css +2 -2
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.css +2 -2
- package/bpk-component-ticket/src/BpkTicket.module.css +2 -2
- package/bpk-component-tooltip/src/BpkTooltip.module.css +2 -2
- package/bpk-mixins/{src/mixins/_badges-v2.scss → _badges-v2.scss} +3 -1
- package/bpk-mixins/{src/mixins/_badges.scss → _badges.scss} +13 -9
- package/bpk-mixins/{src/mixins/_borders.scss → _borders.scss} +11 -9
- package/bpk-mixins/{src/mixins/_breakpoints.scss → _breakpoints.scss} +3 -1
- package/bpk-mixins/{src/mixins/_buttons.scss → _buttons.scss} +7 -4
- package/bpk-mixins/{src/mixins/_cards.scss → _cards.scss} +6 -1
- package/bpk-mixins/{src/mixins/_chips.scss → _chips.scss} +8 -0
- package/bpk-mixins/{src/mixins/_forms.scss → _forms.scss} +5 -1
- package/bpk-mixins/_icons.scss +88 -0
- package/bpk-mixins/_index.scss +20 -17
- package/bpk-mixins/{src/mixins/_layers.scss → _layers.scss} +18 -15
- package/bpk-mixins/{src/mixins/_margins.scss → _margins.scss} +4 -0
- package/bpk-mixins/{src/mixins/_panels.scss → _panels.scss} +6 -2
- package/bpk-mixins/{src/mixins/_radii.scss → _radii.scss} +3 -1
- package/bpk-mixins/{src/mixins/_scroll-indicators.scss → _scroll-indicators.scss} +3 -1
- package/bpk-mixins/{src/mixins/_shadows.scss → _shadows.scss} +3 -1
- package/bpk-mixins/{src/mixins/_svgs.scss → _spinners.scss} +5 -68
- package/bpk-mixins/{src/_bonds.scss → _tokens.scss} +2 -0
- package/bpk-mixins/{src/mixins/_typography.scss → _typography.scss} +6 -2
- package/bpk-mixins/{src/mixins/_utils.scss → _utils.scss} +4 -0
- package/bpk-scrim-utils/src/bpk-scrim-content.module.css +2 -2
- package/bpk-scrim-utils/src/bpk-scrim.module.css +2 -2
- package/bpk-stylesheets/base.css +1 -2
- package/bpk-stylesheets/font.css +2 -2
- package/bpk-stylesheets/index.scss +18 -14
- package/bpk-stylesheets/normalize.css +422 -0
- package/package.json +15 -2
- package/unstable__bpk-mixins/_badges-v2.scss +240 -0
- package/unstable__bpk-mixins/_badges.scss +240 -0
- package/unstable__bpk-mixins/_borders.scss +268 -0
- package/unstable__bpk-mixins/_breakpoints.scss +221 -0
- package/unstable__bpk-mixins/_buttons.scss +568 -0
- package/unstable__bpk-mixins/_cards.scss +94 -0
- package/unstable__bpk-mixins/_chips.scss +240 -0
- package/unstable__bpk-mixins/_forms.scss +1049 -0
- package/unstable__bpk-mixins/_icons.scss +88 -0
- package/{bpk-mixins/sass-functions.js → unstable__bpk-mixins/_index.scss} +19 -10
- package/unstable__bpk-mixins/_layers.scss +199 -0
- package/unstable__bpk-mixins/_margins.scss +75 -0
- package/unstable__bpk-mixins/_panels.scss +71 -0
- package/unstable__bpk-mixins/_radii.scss +80 -0
- package/unstable__bpk-mixins/_scroll-indicators.scss +79 -0
- package/unstable__bpk-mixins/_shadows.scss +58 -0
- package/unstable__bpk-mixins/_spinners.scss +102 -0
- package/{bpk-component-datatable/src/sort-types.js → unstable__bpk-mixins/_tokens.scss} +3 -6
- package/unstable__bpk-mixins/_typography.scss +1039 -0
- package/unstable__bpk-mixins/_utils.scss +266 -0
- package/bpk-component-badge/src/BpkBadgeV2/BpkBadge.d.ts +0 -22
- package/bpk-component-badge/src/BpkBadgeV2/BpkBadge.js +0 -47
- package/bpk-component-badge/src/BpkBadgeV2/BpkBadge.module.css +0 -18
- package/bpk-component-datatable/src/BpkDataTableColumn.js +0 -54
- package/bpk-component-datatable/src/BpkDataTableColumn.module.css +0 -18
- package/bpk-component-datatable/src/hasChildrenOfType.js +0 -35
|
@@ -16,8 +16,11 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
20
|
+
|
|
21
|
+
@import 'tokens.scss';
|
|
20
22
|
@import 'typography.scss';
|
|
23
|
+
@import 'utils.scss';
|
|
21
24
|
|
|
22
25
|
////
|
|
23
26
|
/// @group buttons
|
|
@@ -319,7 +322,7 @@
|
|
|
319
322
|
}
|
|
320
323
|
}
|
|
321
324
|
|
|
322
|
-
/// Destructive button. Modifies the bpk-button & bpk-button--secondary
|
|
325
|
+
/// Destructive button. Modifies the bpk-button & bpk-button--secondary lib.
|
|
323
326
|
///
|
|
324
327
|
/// @require {mixin} bpk-button
|
|
325
328
|
/// @require {mixin} bpk-button--secondary
|
|
@@ -420,7 +423,7 @@
|
|
|
420
423
|
}
|
|
421
424
|
}
|
|
422
425
|
|
|
423
|
-
/// Link on dark button. Modifies the bpk-button & bpk-button--link
|
|
426
|
+
/// Link on dark button. Modifies the bpk-button & bpk-button--link lib.
|
|
424
427
|
///
|
|
425
428
|
/// @require {mixin} bpk-button
|
|
426
429
|
|
|
@@ -489,7 +492,7 @@
|
|
|
489
492
|
border-radius: $bpk-button-border-radius;
|
|
490
493
|
}
|
|
491
494
|
|
|
492
|
-
/// Large icon-only button. Modifies the bpk-button & bpk-button--large
|
|
495
|
+
/// Large icon-only button. Modifies the bpk-button & bpk-button--large lib.
|
|
493
496
|
///
|
|
494
497
|
/// @require {mixin} bpk-button
|
|
495
498
|
/// @require {mixin} bpk-button--large
|
|
@@ -16,7 +16,12 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
20
|
+
|
|
21
|
+
@import 'tokens.scss';
|
|
22
|
+
@import 'radii.scss';
|
|
23
|
+
@import 'shadows.scss';
|
|
24
|
+
@import 'utils.scss';
|
|
20
25
|
|
|
21
26
|
////
|
|
22
27
|
/// @group cards
|
|
@@ -16,6 +16,14 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
20
|
+
|
|
21
|
+
@import 'tokens.scss';
|
|
22
|
+
@import 'borders.scss';
|
|
23
|
+
@import 'margins.scss';
|
|
24
|
+
@import 'shadows.scss';
|
|
25
|
+
@import 'utils.scss';
|
|
26
|
+
|
|
19
27
|
@mixin bpk-chip {
|
|
20
28
|
display: inline-flex;
|
|
21
29
|
height: bpk-spacing-xl();
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Backpack - Skyscanner's Design System
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2016 Skyscanner Ltd
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
20
|
+
|
|
21
|
+
@import 'tokens.scss';
|
|
22
|
+
@import 'utils.scss';
|
|
23
|
+
|
|
24
|
+
////
|
|
25
|
+
/// @group svgs
|
|
26
|
+
////
|
|
27
|
+
|
|
28
|
+
/// Button alignment utility.
|
|
29
|
+
///
|
|
30
|
+
/// @access private
|
|
31
|
+
|
|
32
|
+
@mixin _bpk-svg--align-to-button() {
|
|
33
|
+
vertical-align: text-bottom;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/// Large button alignment utility.
|
|
37
|
+
///
|
|
38
|
+
/// @access private
|
|
39
|
+
|
|
40
|
+
@mixin _bpk-svg--align-to-large-button() {
|
|
41
|
+
margin-top: ($bpk-private-button-line-height - $bpk-icon-size-lg) / 2;
|
|
42
|
+
vertical-align: top;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/// Align to button. Modifies the bpk-icon-sm mixin.
|
|
46
|
+
///
|
|
47
|
+
/// @require {mixin} bpk-icon-sm
|
|
48
|
+
///
|
|
49
|
+
/// @example scss
|
|
50
|
+
/// .selector {
|
|
51
|
+
/// @include bpk-icon-sm(flight-sky-gray-tint-02);
|
|
52
|
+
/// @include bpk-icon-sm--align-to-button();
|
|
53
|
+
/// }
|
|
54
|
+
|
|
55
|
+
@mixin bpk-icon-sm--align-to-button() {
|
|
56
|
+
@include _bpk-svg--align-to-button;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/// Align to large button. Modifies the bpk-icon-lg mixin.
|
|
60
|
+
///
|
|
61
|
+
/// @require {mixin} bpk-icon-lg
|
|
62
|
+
///
|
|
63
|
+
/// @example scss
|
|
64
|
+
/// .selector {
|
|
65
|
+
/// @include bpk-icon-lg(flight-sky-gray-tint-02);
|
|
66
|
+
/// @include bpk-icon-lg--align-to-large-button();
|
|
67
|
+
/// }
|
|
68
|
+
|
|
69
|
+
@mixin bpk-icon-lg--align-to-large-button() {
|
|
70
|
+
@include _bpk-svg--align-to-large-button;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/// RTL support. Modifies the bpk-icon-sm or bpk-icon-lg mixin.
|
|
74
|
+
///
|
|
75
|
+
/// @require {mixin} bpk-icon-sm
|
|
76
|
+
/// @require {mixin} bpk-icon-lg
|
|
77
|
+
///
|
|
78
|
+
/// @example scss
|
|
79
|
+
/// .selector {
|
|
80
|
+
/// @include bpk-icon-sm(flight-sky-gray-tint-02);
|
|
81
|
+
/// @include bpk-icon--rtl-support();
|
|
82
|
+
/// }
|
|
83
|
+
|
|
84
|
+
@mixin bpk-icon--rtl-support() {
|
|
85
|
+
@include bpk-rtl {
|
|
86
|
+
transform: scaleX(-1);
|
|
87
|
+
}
|
|
88
|
+
}
|
package/bpk-mixins/_index.scss
CHANGED
|
@@ -16,20 +16,23 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@import '
|
|
22
|
-
@import '
|
|
23
|
-
@import '
|
|
24
|
-
@import '
|
|
25
|
-
@import '
|
|
26
|
-
@import '
|
|
27
|
-
@import '
|
|
28
|
-
@import '
|
|
29
|
-
@import '
|
|
30
|
-
@import '
|
|
31
|
-
@import '
|
|
32
|
-
@import '
|
|
33
|
-
@import '
|
|
34
|
-
@import '
|
|
35
|
-
@import '
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
20
|
+
|
|
21
|
+
@import 'tokens.scss';
|
|
22
|
+
@import 'badges.scss';
|
|
23
|
+
@import 'borders.scss';
|
|
24
|
+
@import 'breakpoints.scss';
|
|
25
|
+
@import 'buttons.scss';
|
|
26
|
+
@import 'cards.scss';
|
|
27
|
+
@import 'chips.scss';
|
|
28
|
+
@import 'forms.scss';
|
|
29
|
+
@import 'icons.scss';
|
|
30
|
+
@import 'layers.scss';
|
|
31
|
+
@import 'margins.scss';
|
|
32
|
+
@import 'panels.scss';
|
|
33
|
+
@import 'radii.scss';
|
|
34
|
+
@import 'scroll-indicators.scss';
|
|
35
|
+
@import 'shadows.scss';
|
|
36
|
+
@import 'spinners.scss';
|
|
37
|
+
@import 'typography.scss';
|
|
38
|
+
@import 'utils.scss';
|
|
@@ -16,9 +16,12 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
20
|
+
|
|
21
|
+
@import 'tokens.scss';
|
|
20
22
|
@import 'radii.scss';
|
|
21
23
|
@import 'shadows.scss';
|
|
24
|
+
@import 'utils.scss';
|
|
22
25
|
|
|
23
26
|
////
|
|
24
27
|
/// @group layers
|
|
@@ -87,18 +90,18 @@
|
|
|
87
90
|
height: $arrow-size;
|
|
88
91
|
|
|
89
92
|
&::before {
|
|
90
|
-
top: -($arrow-size + $bpk-one-pixel-rem);
|
|
91
|
-
margin-left:
|
|
93
|
+
top: -1 * ($arrow-size + $bpk-one-pixel-rem);
|
|
94
|
+
margin-left: -1 * $bpk-one-pixel-rem;
|
|
92
95
|
border-bottom-color: $border-color;
|
|
93
96
|
|
|
94
97
|
@include bpk-rtl {
|
|
95
|
-
margin-right:
|
|
98
|
+
margin-right: -1 * $bpk-one-pixel-rem;
|
|
96
99
|
margin-left: 0;
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
|
|
100
103
|
&::after {
|
|
101
|
-
top:
|
|
104
|
+
top: -1 * $arrow-size + $bpk-one-pixel-rem;
|
|
102
105
|
border-bottom-color: $arrow-color;
|
|
103
106
|
}
|
|
104
107
|
}
|
|
@@ -121,13 +124,13 @@
|
|
|
121
124
|
height: ($arrow-size * 2);
|
|
122
125
|
|
|
123
126
|
&::before {
|
|
124
|
-
right: -($arrow-size + $bpk-one-pixel-rem);
|
|
125
|
-
margin-top:
|
|
127
|
+
right: -1 * ($arrow-size + $bpk-one-pixel-rem);
|
|
128
|
+
margin-top: -1 * $bpk-one-pixel-rem;
|
|
126
129
|
border-left-color: $border-color;
|
|
127
130
|
}
|
|
128
131
|
|
|
129
132
|
&::after {
|
|
130
|
-
right:
|
|
133
|
+
right: -1 * $arrow-size + $bpk-one-pixel-rem;
|
|
131
134
|
border-left-color: $arrow-color;
|
|
132
135
|
}
|
|
133
136
|
}
|
|
@@ -150,18 +153,18 @@
|
|
|
150
153
|
height: $arrow-size;
|
|
151
154
|
|
|
152
155
|
&::before {
|
|
153
|
-
bottom: -($arrow-size + $bpk-one-pixel-rem);
|
|
154
|
-
margin-left:
|
|
156
|
+
bottom: -1 * ($arrow-size + $bpk-one-pixel-rem);
|
|
157
|
+
margin-left: -1 * $bpk-one-pixel-rem;
|
|
155
158
|
border-top-color: $border-color;
|
|
156
159
|
|
|
157
160
|
@include bpk-rtl {
|
|
158
|
-
margin-right:
|
|
161
|
+
margin-right: -1 * $bpk-one-pixel-rem;
|
|
159
162
|
margin-left: 0;
|
|
160
163
|
}
|
|
161
164
|
}
|
|
162
165
|
|
|
163
166
|
&::after {
|
|
164
|
-
bottom:
|
|
167
|
+
bottom: -1 * $arrow-size + $bpk-one-pixel-rem;
|
|
165
168
|
border-top-color: $arrow-color;
|
|
166
169
|
}
|
|
167
170
|
}
|
|
@@ -184,13 +187,13 @@
|
|
|
184
187
|
height: ($arrow-size * 2);
|
|
185
188
|
|
|
186
189
|
&::before {
|
|
187
|
-
left: -($arrow-size + $bpk-one-pixel-rem);
|
|
188
|
-
margin-top:
|
|
190
|
+
left: -1 * ($arrow-size + $bpk-one-pixel-rem);
|
|
191
|
+
margin-top: -1 * $bpk-one-pixel-rem;
|
|
189
192
|
border-right-color: $border-color;
|
|
190
193
|
}
|
|
191
194
|
|
|
192
195
|
&::after {
|
|
193
|
-
left:
|
|
196
|
+
left: -1 * $arrow-size + $bpk-one-pixel-rem;
|
|
194
197
|
border-right-color: $arrow-color;
|
|
195
198
|
}
|
|
196
199
|
}
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
20
|
+
|
|
21
|
+
@import 'tokens.scss';
|
|
22
|
+
@import 'borders.scss';
|
|
23
|
+
@import 'radii.scss';
|
|
20
24
|
|
|
21
25
|
////
|
|
22
26
|
/// @group panels
|
|
@@ -62,6 +66,6 @@
|
|
|
62
66
|
@mixin bpk-panel--full-width {
|
|
63
67
|
border-radius: 0;
|
|
64
68
|
box-shadow:
|
|
65
|
-
$bpk-panel-border-color 0
|
|
69
|
+
$bpk-panel-border-color 0 -1 * $bpk-one-pixel-rem 0 0 inset,
|
|
66
70
|
$bpk-panel-border-color 0 $bpk-one-pixel-rem 0 0 inset;
|
|
67
71
|
}
|
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
20
|
+
|
|
21
|
+
@import 'tokens.scss';
|
|
22
|
+
@import './icons.scss';
|
|
20
23
|
@import './utils.scss';
|
|
21
24
|
|
|
22
25
|
@keyframes bpk-keyframe-spin {
|
|
@@ -25,72 +28,6 @@
|
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
|
|
28
|
-
////
|
|
29
|
-
/// @group svgs
|
|
30
|
-
////
|
|
31
|
-
|
|
32
|
-
/// Button alignment utility.
|
|
33
|
-
///
|
|
34
|
-
/// @access private
|
|
35
|
-
|
|
36
|
-
@mixin _bpk-svg--align-to-button() {
|
|
37
|
-
vertical-align: text-bottom;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/// Large button alignment utility.
|
|
41
|
-
///
|
|
42
|
-
/// @access private
|
|
43
|
-
|
|
44
|
-
@mixin _bpk-svg--align-to-large-button() {
|
|
45
|
-
margin-top: ($bpk-private-button-line-height - $bpk-icon-size-lg) / 2;
|
|
46
|
-
vertical-align: top;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/// Align to button. Modifies the bpk-icon-sm mixin.
|
|
50
|
-
///
|
|
51
|
-
/// @require {mixin} bpk-icon-sm
|
|
52
|
-
///
|
|
53
|
-
/// @example scss
|
|
54
|
-
/// .selector {
|
|
55
|
-
/// @include bpk-icon-sm(flight-sky-gray-tint-02);
|
|
56
|
-
/// @include bpk-icon-sm--align-to-button();
|
|
57
|
-
/// }
|
|
58
|
-
|
|
59
|
-
@mixin bpk-icon-sm--align-to-button() {
|
|
60
|
-
@include _bpk-svg--align-to-button;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/// Align to large button. Modifies the bpk-icon-lg mixin.
|
|
64
|
-
///
|
|
65
|
-
/// @require {mixin} bpk-icon-lg
|
|
66
|
-
///
|
|
67
|
-
/// @example scss
|
|
68
|
-
/// .selector {
|
|
69
|
-
/// @include bpk-icon-lg(flight-sky-gray-tint-02);
|
|
70
|
-
/// @include bpk-icon-lg--align-to-large-button();
|
|
71
|
-
/// }
|
|
72
|
-
|
|
73
|
-
@mixin bpk-icon-lg--align-to-large-button() {
|
|
74
|
-
@include _bpk-svg--align-to-large-button;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/// RTL support. Modifies the bpk-icon-sm or bpk-icon-lg mixin.
|
|
78
|
-
///
|
|
79
|
-
/// @require {mixin} bpk-icon-sm
|
|
80
|
-
/// @require {mixin} bpk-icon-lg
|
|
81
|
-
///
|
|
82
|
-
/// @example scss
|
|
83
|
-
/// .selector {
|
|
84
|
-
/// @include bpk-icon-sm(flight-sky-gray-tint-02);
|
|
85
|
-
/// @include bpk-icon--rtl-support();
|
|
86
|
-
/// }
|
|
87
|
-
|
|
88
|
-
@mixin bpk-icon--rtl-support() {
|
|
89
|
-
@include bpk-rtl {
|
|
90
|
-
transform: scaleX(-1);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
31
|
/// Small spinner.
|
|
95
32
|
///
|
|
96
33
|
/// @param {key} $spinner - The key of the desired SVG datauri from the $bpk-spinners map.
|
|
@@ -161,5 +98,5 @@
|
|
|
161
98
|
/// }
|
|
162
99
|
|
|
163
100
|
@mixin bpk-spinner--align-to-large-button() {
|
|
164
|
-
@include
|
|
101
|
+
@include bpk-icon-lg--align-to-large-button;
|
|
165
102
|
}
|
|
@@ -16,8 +16,12 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
20
|
+
|
|
21
|
+
@import 'tokens.scss';
|
|
22
|
+
@import 'borders.scss';
|
|
23
|
+
@import 'radii.scss';
|
|
24
|
+
@import 'utils.scss';
|
|
21
25
|
|
|
22
26
|
////
|
|
23
27
|
/// @group typography
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
17
|
+
*/
|
|
18
|
+
.bpk-scrim-content{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;overflow:auto;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
|
|
17
|
+
*/
|
|
18
|
+
.bpk-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;transition:opacity 200ms ease-in-out;background-color:rgba(0,0,0,.7);overflow:hidden}@media(max-width: 32rem){.bpk-scrim--full-screen{opacity:1}}.bpk-scrim--appear{opacity:0}.bpk-scrim--appear-active{opacity:.7}
|
package/bpk-stylesheets/base.css
CHANGED
|
@@ -16,5 +16,4 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*
|
|
19
|
-
*//*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}template,[hidden]{display:none}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin
|
|
20
|
-
|
|
19
|
+
*//*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}template,[hidden]{display:none}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}svg:not(:root){overflow:hidden}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}button,input,optgroup,select,textarea{font:inherit;margin:0}optgroup{font-weight:bold}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}html{font-size:100%;box-sizing:border-box}*{box-sizing:inherit}*::before,*::after{box-sizing:inherit}body{color:#161616;font-family:"Skyscanner Relative",-apple-system,BlinkMacSystemFont,"Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1rem;line-height:1.3rem}body &.scaffold-font-size{font-size:13px}body &.enable-font-smoothing{-webkit-font-smoothing:antialiased}:focus-visible{outline:.125rem solid #0062e3;outline-offset:.125rem}.hidden,.hide{display:none !important}.visuallyhidden,.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0)}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus,.visually-hidden.focusable:active,.visually-hidden.focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.invisible{visibility:hidden}.clearfix::before,.clearfix::after{content:"";display:table}.clearfix::after{clear:both}
|
package/bpk-stylesheets/font.css
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
@font-face{font-family:
|
|
17
|
+
*/
|
|
18
|
+
@font-face{font-family:"Skyscanner Relative";font-style:normal;font-weight:400;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-f9356ad6.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-46f9f429.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-ab1dbcbe.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:italic;font-weight:400;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-10532ac3.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-db5d0ac5.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-8eec3f3a.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:normal;font-weight:500;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-c08dc28b.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-865e167a.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-d0ae478a.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:italic;font-weight:500;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-81517f37.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-bbdb6b0c.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-226fe64c.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:normal;font-weight:700;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-8545937e.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-a099c9f7.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-ec4cc5a7.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:italic;font-weight:700;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-01b5d138.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-4d6d36e3.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-dc9284dc.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:normal;font-weight:900;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-bb3c9434.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-bba2eb55.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-314703cc.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:italic;font-weight:900;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-c2149c91.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-a34cd594.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-7e516ee5.ttf") format("ttf")}
|
|
@@ -16,12 +16,16 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
/* stylelint-disable at-rule-disallowed-list, scss/at-import-partial-extension */
|
|
20
|
+
|
|
21
|
+
@use '../bpk-mixins/tokens';
|
|
22
|
+
@use '../bpk-mixins/utils';
|
|
23
|
+
|
|
24
|
+
@import './normalize';
|
|
21
25
|
|
|
22
26
|
// stylelint-disable-next-line selector-max-type
|
|
23
27
|
html {
|
|
24
|
-
font-size:
|
|
28
|
+
font-size: tokens.$bpk-font-size-root;
|
|
25
29
|
box-sizing: border-box;
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -36,9 +40,9 @@ html {
|
|
|
36
40
|
|
|
37
41
|
/* stylelint-disable selector-class-pattern */
|
|
38
42
|
body {
|
|
39
|
-
color:
|
|
40
|
-
font-family:
|
|
41
|
-
font-size:
|
|
43
|
+
color: tokens.$bpk-font-color-base;
|
|
44
|
+
font-family: tokens.$bpk-font-family-base;
|
|
45
|
+
font-size: tokens.$bpk-font-size-base;
|
|
42
46
|
line-height: 1.3rem; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
|
|
43
47
|
|
|
44
48
|
:global(&.scaffold-font-size) {
|
|
@@ -51,30 +55,30 @@ body {
|
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
:focus-visible {
|
|
54
|
-
@include bpk-focus-indicator;
|
|
58
|
+
@include utils.bpk-focus-indicator;
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
:global(.hidden),
|
|
58
62
|
:global(.hide) {
|
|
59
|
-
@include bpk-hidden;
|
|
63
|
+
@include utils.bpk-hidden;
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
:global(.visuallyhidden),
|
|
63
67
|
:global(.visually-hidden) {
|
|
64
|
-
@include bpk-visually-hidden;
|
|
68
|
+
@include utils.bpk-visually-hidden;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
:global(.visuallyhidden.focusable),
|
|
68
72
|
:global(.visually-hidden.focusable) {
|
|
69
|
-
@include bpk-visually-hidden--focusable;
|
|
73
|
+
@include utils.bpk-visually-hidden--focusable;
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
:global(.invisible) {
|
|
73
|
-
@include bpk-invisible;
|
|
77
|
+
@include utils.bpk-invisible;
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
:global(.clearfix) {
|
|
77
|
-
@include bpk-clearfix;
|
|
81
|
+
@include utils.bpk-clearfix;
|
|
78
82
|
}
|
|
79
|
-
|
|
80
|
-
/* stylelint-enable */
|
|
83
|
+
/* stylelint-enable selector-class-pattern */
|
|
84
|
+
/* stylelint-enable at-rule-disallowed-list */
|