@skyscanner/backpack-web 10.0.0 → 11.1.1
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/package.json +3 -3
- package/bpk-component-accordion/package.json +8 -8
- package/bpk-component-accordion/src/BpkAccordion.module.scss +1 -1
- package/bpk-component-accordion/src/BpkAccordionItem.module.scss +1 -1
- package/bpk-component-aria-live/{index.ts → index.js} +0 -0
- package/bpk-component-aria-live/package.json +9 -9
- package/bpk-component-aria-live/src/{BpkAriaLive.tsx → BpkAriaLive.js} +15 -8
- package/bpk-component-aria-live/src/BpkAriaLive.module.scss +1 -1
- package/bpk-component-autosuggest/package.json +5 -5
- package/bpk-component-autosuggest/src/BpkAutosuggest.module.scss +2 -2
- package/bpk-component-badge/package.json +6 -6
- package/bpk-component-badge/src/BpkBadge.module.scss +1 -1
- package/bpk-component-banner-alert/package.json +10 -10
- package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.scss +1 -1
- package/bpk-component-banner-alert/src/BpkBannerAlert.module.scss +3 -3
- package/bpk-component-barchart/package.json +9 -9
- package/bpk-component-barchart/src/BpkBarchartBar.module.scss +3 -1
- package/bpk-component-barchart/src/BpkChartAxis.module.scss +1 -1
- package/bpk-component-barchart/src/BpkChartDataTable.module.scss +1 -1
- package/bpk-component-barchart/src/BpkChartGridLines.module.scss +2 -2
- package/bpk-component-blockquote/package.json +3 -3
- package/bpk-component-blockquote/src/BpkBlockquote.module.scss +1 -1
- package/bpk-component-breadcrumb/package.json +6 -6
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.scss +1 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss +1 -1
- package/bpk-component-breakpoint/package.json +4 -4
- package/bpk-component-button/package.json +3 -3
- package/bpk-component-button/src/BpkButtonBase.module.scss +2 -2
- package/bpk-component-button/src/BpkButtonDestructive.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonFeatured.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonLink.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonOutline.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonSecondary.module.scss +1 -1
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.scss +1 -1
- package/bpk-component-calendar/package.json +10 -10
- package/bpk-component-calendar/src/BpkCalendar.module.scss +2 -2
- package/bpk-component-calendar/src/BpkCalendarDate.module.scss +1 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +3 -2
- package/bpk-component-calendar/src/BpkCalendarGridHeader.module.scss +2 -2
- package/bpk-component-calendar/src/BpkCalendarGridTransition.module.scss +2 -2
- package/bpk-component-calendar/src/BpkCalendarNav.module.scss +3 -3
- package/bpk-component-calendar/src/_variables.scss +1 -1
- package/bpk-component-card/package.json +5 -5
- package/bpk-component-card/src/BpkCard.module.scss +1 -1
- package/bpk-component-checkbox/package.json +6 -6
- package/bpk-component-checkbox/src/BpkCheckbox.module.scss +1 -1
- package/bpk-component-chip/package.json +6 -6
- package/bpk-component-chip/src/BpkSelectableChip.module.scss +1 -1
- package/bpk-component-close-button/package.json +5 -5
- package/bpk-component-close-button/src/BpkCloseButton.module.scss +3 -2
- package/bpk-component-code/package.json +3 -3
- package/bpk-component-code/src/BpkCode.module.scss +1 -1
- package/bpk-component-code/src/BpkCodeBlock.module.scss +1 -1
- package/bpk-component-content-cards/{index.ts → index.js} +0 -0
- package/bpk-component-content-cards/package.json +5 -5
- package/bpk-component-content-cards/src/{BpkContentCard.tsx → BpkContentCard.js} +8 -9
- package/bpk-component-content-cards/src/BpkContentCard.module.scss +1 -1
- package/bpk-component-content-cards/src/{BpkContentCards.tsx → BpkContentCards.js} +11 -11
- package/bpk-component-content-cards/src/BpkContentCards.module.scss +1 -1
- package/bpk-component-content-container/package.json +3 -3
- package/bpk-component-content-container/src/BpkContentContainer.module.scss +1 -1
- package/bpk-component-datatable/package.json +5 -5
- package/bpk-component-datatable/src/BpkDataTable.module.scss +1 -2
- package/bpk-component-datatable/src/BpkDataTableHeader.module.scss +1 -2
- package/bpk-component-datepicker/package.json +10 -10
- package/bpk-component-datepicker/src/BpkDatepicker.module.scss +1 -1
- package/bpk-component-description-list/package.json +3 -3
- package/bpk-component-description-list/src/BpkDescriptionList.module.scss +1 -1
- package/bpk-component-dialog/package.json +9 -9
- package/bpk-component-dialog/src/BpkDialog.module.scss +1 -1
- package/bpk-component-dialog/src/BpkDialogInner.module.scss +3 -1
- package/bpk-component-drawer/package.json +10 -10
- package/bpk-component-drawer/src/BpkDrawer.module.scss +1 -1
- package/bpk-component-drawer/src/BpkDrawerContent.module.scss +1 -1
- package/bpk-component-fieldset/package.json +13 -13
- package/bpk-component-fieldset/src/BpkFieldset.module.scss +2 -2
- package/bpk-component-flare/package.json +5 -5
- package/bpk-component-flare/src/bpk-content-bubble.module.scss +2 -1
- package/bpk-component-flare/src/bpk-flare-bar.module.scss +2 -1
- package/bpk-component-floating-notification/README.md +0 -8
- package/bpk-component-floating-notification/index.js +0 -2
- package/bpk-component-floating-notification/package.json +6 -6
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +7 -26
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.scss +5 -18
- package/bpk-component-form-validation/package.json +11 -11
- package/bpk-component-form-validation/src/BpkFormValidation.module.scss +1 -1
- package/bpk-component-graphic-promotion/{index.ts → index.js} +0 -0
- package/bpk-component-graphic-promotion/package.json +6 -6
- package/bpk-component-graphic-promotion/src/{BpkGraphicPromo.tsx → BpkGraphicPromo.js} +26 -16
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +1 -1
- package/bpk-component-grid/package.json +3 -3
- package/bpk-component-grid/src/BpkGridColumn.module.scss +1 -1
- package/bpk-component-grid/src/BpkGridContainer.module.scss +1 -1
- package/bpk-component-grid/src/BpkGridRow.module.scss +1 -1
- package/bpk-component-grid-toggle/package.json +4 -4
- package/bpk-component-grid-toggle/src/BpkGridToggle.module.scss +1 -1
- package/bpk-component-horizontal-nav/package.json +7 -7
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.scss +3 -3
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.scss +15 -15
- package/bpk-component-icon/README.md +1 -1
- package/bpk-component-icon/package.json +8 -8
- package/bpk-component-icon/src/BpkIcon.module.scss +1 -1
- package/bpk-component-icon/src/withDescription.module.scss +1 -1
- package/bpk-component-image/package.json +7 -7
- package/bpk-component-image/src/BpkBackgroundImage.module.scss +1 -1
- package/bpk-component-image/src/BpkImage.module.scss +1 -1
- package/bpk-component-infinite-scroll/package.json +7 -7
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.scss +1 -1
- package/bpk-component-input/package.json +7 -7
- package/bpk-component-input/src/BpkClearButton.module.scss +5 -5
- package/bpk-component-input/src/BpkInput.module.scss +1 -1
- package/bpk-component-label/package.json +3 -3
- package/bpk-component-label/src/BpkLabel.module.scss +1 -1
- package/bpk-component-link/package.json +5 -5
- package/bpk-component-link/src/BpkLink.module.scss +1 -1
- package/bpk-component-list/package.json +3 -3
- package/bpk-component-list/src/BpkList.module.scss +1 -1
- package/bpk-component-loading-button/package.json +7 -7
- package/bpk-component-loading-button/src/BpkLoadingButton.module.scss +1 -1
- package/bpk-component-map/package.json +7 -7
- package/bpk-component-map/src/BpkIconMarker.module.scss +3 -2
- package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +1 -1
- package/bpk-component-map/src/BpkMap.js +1 -0
- package/bpk-component-map/src/BpkPriceMarker.module.scss +3 -1
- package/bpk-component-map/src/DefaultLoadingElement.module.scss +1 -1
- package/bpk-component-mobile-scroll-container/README.md +1 -1
- package/bpk-component-mobile-scroll-container/package.json +4 -4
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.scss +3 -1
- package/bpk-component-modal/package.json +10 -10
- package/bpk-component-modal/src/BpkModal.module.scss +1 -1
- package/bpk-component-modal/src/BpkModalInner.module.scss +3 -1
- package/bpk-component-navigation-bar/package.json +9 -9
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.scss +4 -4
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.scss +5 -5
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.scss +4 -4
- package/bpk-component-nudger/package.json +8 -8
- package/bpk-component-nudger/src/BpkNudger.module.scss +1 -1
- package/bpk-component-overlay/package.json +5 -5
- package/bpk-component-overlay/src/BpkOverlay.module.scss +1 -1
- package/bpk-component-pagination/package.json +5 -5
- package/bpk-component-pagination/src/BpkPaginationList.module.scss +1 -1
- package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +2 -2
- package/bpk-component-pagination/src/BpkPaginationPage.module.scss +1 -1
- package/bpk-component-panel/package.json +3 -3
- package/bpk-component-panel/src/BpkPanel.module.scss +1 -1
- package/bpk-component-phone-input/package.json +10 -10
- package/bpk-component-phone-input/src/BpkPhoneInput.module.scss +1 -1
- package/bpk-component-popover/package.json +9 -9
- package/bpk-component-popover/src/BpkPopover.module.scss +1 -2
- package/bpk-component-price/package.json +4 -4
- package/bpk-component-price/src/BpkPrice.module.scss +1 -1
- package/bpk-component-progress/package.json +6 -6
- package/bpk-component-progress/src/BpkProgress.module.scss +1 -1
- package/bpk-component-radio/package.json +5 -5
- package/bpk-component-radio/src/BpkRadio.module.scss +1 -2
- package/bpk-component-rating/package.json +5 -5
- package/bpk-component-rating/src/BpkRating.module.scss +1 -1
- package/bpk-component-rtl-toggle/package.json +3 -3
- package/bpk-component-scrollable-calendar/package.json +7 -7
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.scss +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.scss +1 -2
- package/bpk-component-section-list/package.json +7 -7
- package/bpk-component-section-list/src/BpkSectionListItem.module.scss +1 -1
- package/bpk-component-section-list/src/BpkSectionListSection.module.scss +1 -1
- package/bpk-component-select/package.json +4 -4
- package/bpk-component-select/src/BpkSelect.module.scss +1 -1
- package/bpk-component-skip-link/package.json +3 -3
- package/bpk-component-skip-link/src/BpkSkipLink.module.scss +2 -1
- package/bpk-component-slider/package.json +5 -5
- package/bpk-component-slider/src/BpkSlider.module.scss +1 -2
- package/bpk-component-spinner/package.json +4 -4
- package/bpk-component-spinner/src/BpkSpinner.module.scss +1 -1
- package/bpk-component-split-input/package.json +4 -4
- package/bpk-component-split-input/src/BpkInputField.module.scss +1 -1
- package/bpk-component-split-input/src/BpkSplitInput.module.scss +1 -1
- package/bpk-component-star-rating/package.json +6 -6
- package/bpk-component-star-rating/src/BpkInteractiveStar.module.scss +3 -3
- package/bpk-component-star-rating/src/BpkStar.module.scss +1 -1
- package/bpk-component-switch/README.md +1 -1
- package/bpk-component-switch/package.json +3 -3
- package/bpk-component-switch/src/BpkSwitch.js +14 -13
- package/bpk-component-switch/src/BpkSwitch.module.scss +18 -12
- package/bpk-component-table/package.json +3 -3
- package/bpk-component-table/src/BpkTable.module.scss +1 -1
- package/bpk-component-text/package.json +3 -3
- package/bpk-component-text/src/BpkText.module.scss +1 -1
- package/bpk-component-textarea/package.json +5 -5
- package/bpk-component-textarea/src/BpkTextarea.module.scss +1 -1
- package/bpk-component-theme-toggle/package.json +6 -6
- package/bpk-component-theme-toggle/src/BpkThemeToggle.module.scss +1 -1
- package/bpk-component-ticket/package.json +5 -5
- package/bpk-component-ticket/src/BpkTicket.module.scss +1 -1
- package/bpk-component-tooltip/package.json +5 -5
- package/bpk-component-tooltip/src/BpkTooltip.module.scss +3 -2
- package/bpk-react-utils/README.md +1 -1
- package/bpk-react-utils/package.json +1 -1
- package/bpk-scrim-utils/package.json +3 -3
- package/bpk-scrim-utils/src/bpk-scrim-content.module.scss +1 -1
- package/bpk-scrim-utils/src/bpk-scrim.module.scss +1 -1
- package/bpk-theming/package.json +2 -2
- package/package.json +4 -4
- package/bpk-component-aria-live/src/BpkAriaLive-test.tsx +0 -60
- package/bpk-component-aria-live/src/accessibility-test.tsx +0 -31
- package/bpk-component-content-cards/src/BpkContentCard-test.tsx +0 -88
- package/bpk-component-content-cards/src/BpkContentCards-test.tsx +0 -126
- package/bpk-component-content-cards/src/accessibility-test.tsx +0 -64
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo-test.tsx +0 -134
- package/bpk-component-graphic-promotion/src/accessibility-test.tsx +0 -147
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-dialog",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.6",
|
|
4
4
|
"description": "Backpack dialog component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-close-button": "^4.0.
|
|
18
|
-
"bpk-component-flare": "^3.0.
|
|
19
|
-
"bpk-mixins": "^31.6.
|
|
20
|
-
"bpk-react-utils": "^7.0.
|
|
21
|
-
"bpk-scrim-utils": "^6.0.
|
|
17
|
+
"bpk-component-close-button": "^4.0.6",
|
|
18
|
+
"bpk-component-flare": "^3.0.6",
|
|
19
|
+
"bpk-mixins": "^31.6.6",
|
|
20
|
+
"bpk-react-utils": "^7.0.1",
|
|
21
|
+
"bpk-scrim-utils": "^6.0.6",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^17.0.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"bpk-component-button": "^7.0.
|
|
29
|
-
"bpk-component-icon": "^10.0.
|
|
30
|
-
"bpk-component-text": "^8.0.
|
|
28
|
+
"bpk-component-button": "^7.0.6",
|
|
29
|
+
"bpk-component-icon": "^10.0.6",
|
|
30
|
+
"bpk-component-text": "^8.0.6"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins/index';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
21
|
$bpk-spacing-v2: true;
|
|
22
22
|
|
|
@@ -31,6 +31,7 @@ $bpk-spacing-v2: true;
|
|
|
31
31
|
outline: 0;
|
|
32
32
|
background-color: $bpk-modal-background-color;
|
|
33
33
|
opacity: $bpk-modal-opacity;
|
|
34
|
+
|
|
34
35
|
// FIX: Prevents ugly flickering when tapping inside the dialog in Mobile Safari
|
|
35
36
|
-webkit-tap-highlight-color: transparent;
|
|
36
37
|
|
|
@@ -55,6 +56,7 @@ $bpk-spacing-v2: true;
|
|
|
55
56
|
|
|
56
57
|
&__flare {
|
|
57
58
|
height: bpk-spacing-lg() * 10;
|
|
59
|
+
|
|
58
60
|
// We inherit radius from the outer modal so they match and align correctly to the container.
|
|
59
61
|
border-radius: inherit;
|
|
60
62
|
background-color: $bpk-color-sky-blue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-drawer",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.6",
|
|
4
4
|
"description": "Backpack drawer component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
18
|
-
"bpk-component-close-button": "^4.0.
|
|
19
|
-
"bpk-component-icon": "^10.0.
|
|
20
|
-
"bpk-component-link": "^4.0.
|
|
21
|
-
"bpk-mixins": "^31.6.
|
|
22
|
-
"bpk-react-utils": "^7.0.
|
|
23
|
-
"bpk-scrim-utils": "^6.0.
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^9.4.0",
|
|
18
|
+
"bpk-component-close-button": "^4.0.6",
|
|
19
|
+
"bpk-component-icon": "^10.0.6",
|
|
20
|
+
"bpk-component-link": "^4.0.6",
|
|
21
|
+
"bpk-mixins": "^31.6.6",
|
|
22
|
+
"bpk-react-utils": "^7.0.1",
|
|
23
|
+
"bpk-scrim-utils": "^6.0.6",
|
|
24
24
|
"prop-types": "^15.7.2",
|
|
25
25
|
"react-transition-group": "^2.5.3"
|
|
26
26
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react": "^17.0.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"bpk-component-button": "^7.0.
|
|
32
|
-
"bpk-component-text": "^8.0.
|
|
31
|
+
"bpk-component-button": "^7.0.6",
|
|
32
|
+
"bpk-component-text": "^8.0.6"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-fieldset",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "Backpack fieldset component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-form-validation": "^5.0.
|
|
18
|
-
"bpk-component-label": "^6.0.
|
|
19
|
-
"bpk-mixins": "^31.6.
|
|
20
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-component-form-validation": "^5.0.6",
|
|
18
|
+
"bpk-component-label": "^6.0.6",
|
|
19
|
+
"bpk-mixins": "^31.6.6",
|
|
20
|
+
"bpk-react-utils": "^7.0.1",
|
|
21
21
|
"prop-types": "^15.7.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^17.0.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-autosuggest": "^7.0.
|
|
28
|
-
"bpk-component-button": "^7.0.
|
|
29
|
-
"bpk-component-calendar": "^13.0.
|
|
30
|
-
"bpk-component-checkbox": "^5.0.
|
|
31
|
-
"bpk-component-datepicker": "^18.0.
|
|
32
|
-
"bpk-component-input": "^7.0.
|
|
33
|
-
"bpk-component-select": "^6.0.
|
|
34
|
-
"bpk-component-textarea": "^5.0.
|
|
27
|
+
"bpk-component-autosuggest": "^7.0.6",
|
|
28
|
+
"bpk-component-button": "^7.0.6",
|
|
29
|
+
"bpk-component-calendar": "^13.0.3",
|
|
30
|
+
"bpk-component-checkbox": "^5.0.6",
|
|
31
|
+
"bpk-component-datepicker": "^18.0.6",
|
|
32
|
+
"bpk-component-input": "^7.0.6",
|
|
33
|
+
"bpk-component-select": "^6.0.6",
|
|
34
|
+
"bpk-component-textarea": "^5.0.6"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins/index';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
21
|
$bpk-spacing-v2: true;
|
|
22
22
|
|
|
@@ -28,7 +28,7 @@ $bpk-spacing-v2: true;
|
|
|
28
28
|
&__description {
|
|
29
29
|
display: block;
|
|
30
30
|
margin-top: bpk-spacing-md();
|
|
31
|
-
color: $bpk-
|
|
31
|
+
color: $bpk-text-secondary-day;
|
|
32
32
|
|
|
33
33
|
@include bpk-caption;
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-flare",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Backpack FlareBar and ContentBubble component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"bpk-component-label": "^6.0.
|
|
21
|
-
"bpk-component-text": "^8.0.
|
|
22
|
-
"bpk-mixins": "^31.6.
|
|
23
|
-
"bpk-react-utils": "^7.0.
|
|
20
|
+
"bpk-component-label": "^6.0.6",
|
|
21
|
+
"bpk-component-text": "^8.0.6",
|
|
22
|
+
"bpk-mixins": "^31.6.6",
|
|
23
|
+
"bpk-react-utils": "^7.0.1",
|
|
24
24
|
"prop-types": "^15.7.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
21
|
.bpk-content-bubble {
|
|
22
22
|
&__pointer {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
&__content-wrapper {
|
|
52
52
|
display: flex;
|
|
53
|
+
|
|
53
54
|
// flex-direction is required because IE doesn't cope well with
|
|
54
55
|
// flex-row when the parent is flex-col
|
|
55
56
|
flex-direction: column;
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
21
|
$bpk-spacing-v2: true;
|
|
22
22
|
|
|
23
23
|
.bpk-flare-bar {
|
|
24
24
|
&__container {
|
|
25
25
|
position: relative;
|
|
26
|
+
|
|
26
27
|
// when we use `margin: X%`, the percentage is proportional to the size of the nearest block container's width
|
|
27
28
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/margin
|
|
28
29
|
// By using `display: flex` we ensure that this container is the nearest block container
|
|
@@ -16,7 +16,6 @@ import BpkIconHeart from '../../packages/bpk-component-icon/sm/heart';
|
|
|
16
16
|
export default () => (
|
|
17
17
|
<BpkFloatingNotification
|
|
18
18
|
ctaText="View"
|
|
19
|
-
type={TYPE.dark}
|
|
20
19
|
icon={BpkIconHeart}
|
|
21
20
|
onClick={() => {}}
|
|
22
21
|
text="Killer Combo saved to New York and Miami 🎉"
|
|
@@ -37,7 +36,6 @@ export default () => (
|
|
|
37
36
|
| onClick | func | false | null |
|
|
38
37
|
| onExit | func | false | null |
|
|
39
38
|
| text | string | true | - |
|
|
40
|
-
| type | oneOf(TYPE) | false | TYPE.light |
|
|
41
39
|
|
|
42
40
|
### Prop Details
|
|
43
41
|
|
|
@@ -50,9 +48,3 @@ The default value is 4 seconds (4000 milliseconds).
|
|
|
50
48
|
#### onExit
|
|
51
49
|
|
|
52
50
|
Execute a function after the component has finished the exit animation.
|
|
53
|
-
|
|
54
|
-
#### type
|
|
55
|
-
|
|
56
|
-
By default the component is rendered in the light theme (`TYPE.light`) which uses a dark background and white text for the notification. This contrasts against a white page.
|
|
57
|
-
|
|
58
|
-
The dark theme (`TYPE.dark`) displays the notification with a white background and black text. This contrasts against a dark page.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-floating-notification",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Backpack floating-notification component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"registry": "https://registry.npmjs.org/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"bpk-component-aria-live": "^3.1.
|
|
17
|
-
"bpk-component-button": "^7.0.
|
|
18
|
-
"bpk-component-text": "^8.0.
|
|
19
|
-
"bpk-mixins": "^31.6.
|
|
20
|
-
"bpk-react-utils": "^7.0.
|
|
16
|
+
"bpk-component-aria-live": "^3.1.3",
|
|
17
|
+
"bpk-component-button": "^7.0.6",
|
|
18
|
+
"bpk-component-text": "^8.0.6",
|
|
19
|
+
"bpk-mixins": "^31.6.6",
|
|
20
|
+
"bpk-react-utils": "^7.0.1",
|
|
21
21
|
"prop-types": "^15.5.8"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
@@ -30,11 +30,6 @@ import STYLES from './BpkFloatingNotification.module.scss';
|
|
|
30
30
|
|
|
31
31
|
const getClassName = cssModules(STYLES);
|
|
32
32
|
|
|
33
|
-
export const TYPE = {
|
|
34
|
-
light: 'light',
|
|
35
|
-
dark: 'dark',
|
|
36
|
-
};
|
|
37
|
-
|
|
38
33
|
type Props = {
|
|
39
34
|
animateOnEnter: ?boolean,
|
|
40
35
|
animateOnExit: ?boolean,
|
|
@@ -45,7 +40,6 @@ type Props = {
|
|
|
45
40
|
onClick: ?() => void,
|
|
46
41
|
onExit: ?() => void,
|
|
47
42
|
text: string,
|
|
48
|
-
type: ?TYPE,
|
|
49
43
|
};
|
|
50
44
|
|
|
51
45
|
const BpkFloatingNotification = (props: Props) => {
|
|
@@ -61,25 +55,10 @@ const BpkFloatingNotification = (props: Props) => {
|
|
|
61
55
|
onClick,
|
|
62
56
|
onExit,
|
|
63
57
|
text,
|
|
64
|
-
type,
|
|
65
58
|
...rest
|
|
66
59
|
} = props;
|
|
67
60
|
|
|
68
|
-
const classNames = getClassName(
|
|
69
|
-
'bpk-floating-notification',
|
|
70
|
-
type === TYPE.dark && 'bpk-floating-notification--dark',
|
|
71
|
-
className,
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
const iconClassNames = getClassName(
|
|
75
|
-
'bpk-floating-notification__icon',
|
|
76
|
-
type === TYPE.dark && 'bpk-floating-notification__icon--dark',
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
const buttonClassNames = getClassName(
|
|
80
|
-
'bpk-floating-notification__button',
|
|
81
|
-
type === TYPE.dark && 'bpk-floating-notification__button--dark',
|
|
82
|
-
);
|
|
61
|
+
const classNames = getClassName('bpk-floating-notification', className);
|
|
83
62
|
|
|
84
63
|
useEffect(() => {
|
|
85
64
|
let timer;
|
|
@@ -107,7 +86,7 @@ const BpkFloatingNotification = (props: Props) => {
|
|
|
107
86
|
>
|
|
108
87
|
<div className={classNames} {...rest}>
|
|
109
88
|
{Icon && (
|
|
110
|
-
<div className={
|
|
89
|
+
<div className={getClassName('bpk-floating-notification__icon')}>
|
|
111
90
|
<Icon aria-hidden />
|
|
112
91
|
</div>
|
|
113
92
|
)}
|
|
@@ -120,7 +99,11 @@ const BpkFloatingNotification = (props: Props) => {
|
|
|
120
99
|
</BpkText>
|
|
121
100
|
<BpkAriaLive aria-hidden>{text}</BpkAriaLive>
|
|
122
101
|
{ctaText && (
|
|
123
|
-
<BpkButton
|
|
102
|
+
<BpkButton
|
|
103
|
+
link
|
|
104
|
+
onClick={onClick}
|
|
105
|
+
className={getClassName('bpk-floating-notification__button')}
|
|
106
|
+
>
|
|
124
107
|
{ctaText}
|
|
125
108
|
</BpkButton>
|
|
126
109
|
)}
|
|
@@ -139,7 +122,6 @@ BpkFloatingNotification.propTypes = {
|
|
|
139
122
|
onClick: PropTypes.func,
|
|
140
123
|
onExit: PropTypes.func,
|
|
141
124
|
text: PropTypes.string.isRequired,
|
|
142
|
-
type: PropTypes.oneOf(Object.values(TYPE)),
|
|
143
125
|
};
|
|
144
126
|
|
|
145
127
|
BpkFloatingNotification.defaultProps = {
|
|
@@ -151,7 +133,6 @@ BpkFloatingNotification.defaultProps = {
|
|
|
151
133
|
icon: null,
|
|
152
134
|
onClick: null,
|
|
153
135
|
onExit: null,
|
|
154
|
-
type: TYPE.light,
|
|
155
136
|
};
|
|
156
137
|
|
|
157
138
|
export default BpkFloatingNotification;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins/index';
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
20
20
|
|
|
21
21
|
.bpk-floating-notification {
|
|
22
22
|
position: absolute;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
transition: opacity $bpk-duration-base ease-in-out,
|
|
31
31
|
transform $bpk-duration-base ease-in-out;
|
|
32
32
|
border-radius: $bpk-border-radius-md;
|
|
33
|
-
background: $bpk-
|
|
34
|
-
color: $bpk-
|
|
33
|
+
background: $bpk-core-primary-day;
|
|
34
|
+
color: $bpk-text-on-dark-day;
|
|
35
35
|
box-shadow: $bpk-box-shadow-xl, $bpk-box-shadow-lg;
|
|
36
36
|
|
|
37
37
|
@include bpk-breakpoint-mobile {
|
|
@@ -67,30 +67,17 @@
|
|
|
67
67
|
min-height: 0;
|
|
68
68
|
margin: 0 0 auto auto;
|
|
69
69
|
padding: 0;
|
|
70
|
-
color: $bpk-
|
|
71
|
-
|
|
72
|
-
&--dark {
|
|
73
|
-
color: $bpk-link-color;
|
|
74
|
-
}
|
|
70
|
+
color: $bpk-text-on-dark-day;
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
&__icon {
|
|
78
74
|
margin: bpk-spacing-sm() bpk-spacing-md() 0 bpk-spacing-sm();
|
|
79
75
|
flex-shrink: 0;
|
|
80
76
|
text-align: bottom;
|
|
81
|
-
fill: $bpk-
|
|
82
|
-
|
|
83
|
-
&--dark {
|
|
84
|
-
fill: $bpk-color-sky-gray;
|
|
85
|
-
}
|
|
77
|
+
fill: $bpk-text-on-dark-day;
|
|
86
78
|
}
|
|
87
79
|
|
|
88
80
|
&__text {
|
|
89
81
|
margin-right: bpk-spacing-md();
|
|
90
82
|
}
|
|
91
|
-
|
|
92
|
-
&--dark {
|
|
93
|
-
background: $bpk-color-white;
|
|
94
|
-
color: $bpk-color-sky-gray;
|
|
95
|
-
}
|
|
96
83
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-form-validation",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "Backpack form-validation component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-animate-height": "^5.0.
|
|
18
|
-
"bpk-mixins": "^31.6.
|
|
19
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-animate-height": "^5.0.6",
|
|
18
|
+
"bpk-mixins": "^31.6.6",
|
|
19
|
+
"bpk-react-utils": "^7.0.1",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^17.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
27
|
-
"bpk-component-button": "^7.0.
|
|
28
|
-
"bpk-component-checkbox": "^5.0.
|
|
29
|
-
"bpk-component-icon": "^10.0.
|
|
30
|
-
"bpk-component-input": "^7.0.
|
|
31
|
-
"bpk-component-select": "^6.0.
|
|
32
|
-
"bpk-component-textarea": "^5.0.
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^9.4.0",
|
|
27
|
+
"bpk-component-button": "^7.0.6",
|
|
28
|
+
"bpk-component-checkbox": "^5.0.6",
|
|
29
|
+
"bpk-component-icon": "^10.0.6",
|
|
30
|
+
"bpk-component-input": "^7.0.6",
|
|
31
|
+
"bpk-component-select": "^6.0.6",
|
|
32
|
+
"bpk-component-textarea": "^5.0.6"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-graphic-promotion",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.4",
|
|
4
4
|
"description": "Backpack graphic-promotion component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"url": "git@github.com:Skyscanner/backpack.git"
|
|
9
9
|
},
|
|
10
10
|
"author": "Backpack Design System <backpack@skyscanner.net>",
|
|
11
|
-
"main": "index.
|
|
11
|
+
"main": "index.js",
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"registry": "https://registry.npmjs.org/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"bpk-component-button": "^7.0.
|
|
17
|
-
"bpk-component-text": "^8.0.
|
|
18
|
-
"bpk-mixins": "^31.6.
|
|
19
|
-
"bpk-react-utils": "^7.0.
|
|
16
|
+
"bpk-component-button": "^7.0.6",
|
|
17
|
+
"bpk-component-text": "^8.0.6",
|
|
18
|
+
"bpk-mixins": "^31.6.6",
|
|
19
|
+
"bpk-react-utils": "^7.0.1",
|
|
20
20
|
"prop-types": "^15.5.8"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
@@ -42,24 +42,24 @@ export const TEXT_ALIGN = {
|
|
|
42
42
|
start: 'start',
|
|
43
43
|
center: 'center',
|
|
44
44
|
end: 'end',
|
|
45
|
-
} as const;
|
|
45
|
+
}; // as const; // Temp disabling TS types due to non TS projects compatibility.
|
|
46
46
|
|
|
47
47
|
export type Props = {
|
|
48
|
-
className?: string | null
|
|
49
|
-
contentId?: string | null
|
|
50
|
-
tagline?: string | null
|
|
51
|
-
headline: string
|
|
52
|
-
subheading?: string | null
|
|
48
|
+
className?: string | null,
|
|
49
|
+
contentId?: string | null,
|
|
50
|
+
tagline?: string | null,
|
|
51
|
+
headline: string,
|
|
52
|
+
subheading?: string | null,
|
|
53
53
|
sponsor?: {
|
|
54
|
-
label: string
|
|
55
|
-
logo: string
|
|
56
|
-
altText: string
|
|
57
|
-
} | null
|
|
58
|
-
buttonText: string
|
|
59
|
-
onClick: () => void
|
|
60
|
-
invertVertically?: boolean
|
|
61
|
-
textAlign: typeof TEXT_ALIGN[keyof typeof TEXT_ALIGN];
|
|
62
|
-
style?: {}
|
|
54
|
+
label: string,
|
|
55
|
+
logo: string,
|
|
56
|
+
altText: string,
|
|
57
|
+
} | null,
|
|
58
|
+
buttonText: string,
|
|
59
|
+
onClick: () => void,
|
|
60
|
+
invertVertically?: boolean,
|
|
61
|
+
textAlign: $Keys<typeof TEXT_ALIGN>, // typeof TEXT_ALIGN[keyof typeof TEXT_ALIGN]; // Temp disabling TS types due to non TS projects compatibility.
|
|
62
|
+
style?: {},
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
const constructAriaLabel = ({
|
|
@@ -70,7 +70,7 @@ const constructAriaLabel = ({
|
|
|
70
70
|
tagline,
|
|
71
71
|
}: Pick<
|
|
72
72
|
Props,
|
|
73
|
-
'buttonText' | 'headline' | 'sponsor' | 'subheading' | 'tagline'
|
|
73
|
+
'buttonText' | 'headline' | 'sponsor' | 'subheading' | 'tagline',
|
|
74
74
|
>) => {
|
|
75
75
|
const text: string[] = [];
|
|
76
76
|
const addText = (value?: string | null) => value && text.push(value);
|
|
@@ -199,4 +199,14 @@ const BpkGraphicPromo = ({
|
|
|
199
199
|
);
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
+
BpkGraphicPromo.defaultProps = {
|
|
203
|
+
className: null,
|
|
204
|
+
contentId: null,
|
|
205
|
+
tagline: null,
|
|
206
|
+
subheading: null,
|
|
207
|
+
sponsor: null,
|
|
208
|
+
invertVertically: false,
|
|
209
|
+
style: {},
|
|
210
|
+
};
|
|
211
|
+
|
|
202
212
|
export default BpkGraphicPromo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-grid",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "Backpack grid components.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.6.
|
|
18
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"bpk-mixins": "^31.6.6",
|
|
18
|
+
"bpk-react-utils": "^7.0.1",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|