@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-textarea",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "Backpack textarea component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,13 +14,13 @@
|
|
|
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
|
"devDependencies": {
|
|
22
|
-
"bpk-component-label": "^6.0.
|
|
23
|
-
"bpk-storybook-utils": "^2.0.
|
|
22
|
+
"bpk-component-label": "^6.0.6",
|
|
23
|
+
"bpk-storybook-utils": "^2.0.6"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^17.0.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-theme-toggle",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "Backpack theme toggle component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
18
|
-
"bpk-component-label": "^6.0.
|
|
19
|
-
"bpk-component-select": "^6.0.
|
|
20
|
-
"bpk-mixins": "^31.6.
|
|
21
|
-
"bpk-react-utils": "^7.0.
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^9.4.0",
|
|
18
|
+
"bpk-component-label": "^6.0.6",
|
|
19
|
+
"bpk-component-select": "^6.0.6",
|
|
20
|
+
"bpk-mixins": "^31.6.6",
|
|
21
|
+
"bpk-react-utils": "^7.0.1",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-ticket",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "Backpack ticket component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
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": {
|
|
22
22
|
"react": "^17.0.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"bpk-component-button": "^7.0.
|
|
26
|
-
"bpk-component-icon": "^10.0.
|
|
25
|
+
"bpk-component-button": "^7.0.6",
|
|
26
|
+
"bpk-component-icon": "^10.0.6"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-tooltip",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.6",
|
|
4
4
|
"description": "Backpack tooltip component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@popperjs/core": "^2.11.5",
|
|
18
|
-
"bpk-mixins": "^31.6.
|
|
19
|
-
"bpk-react-utils": "^7.0.
|
|
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-text": "^8.0.
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^9.4.0",
|
|
27
|
+
"bpk-component-text": "^8.0.6"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
@import '~bpk-mixins';
|
|
20
|
-
$bpk-spacing-v2: true;
|
|
19
|
+
@import '~bpk-mixins/index.scss';
|
|
21
20
|
|
|
21
|
+
$bpk-spacing-v2: true;
|
|
22
22
|
$arrow-size: bpk-spacing-md();
|
|
23
23
|
$arrow-inset-margin: -($bpk-one-pixel-rem * 3);
|
|
24
24
|
$light-arrow-border-color: $bpk-color-sky-gray-tint-06;
|
|
@@ -108,6 +108,7 @@ $dark-background-color: $bpk-color-sky-gray;
|
|
|
108
108
|
|
|
109
109
|
&--dark {
|
|
110
110
|
background-color: $dark-background-color;
|
|
111
|
+
|
|
111
112
|
.bpk-tooltip-portal[data-popper-placement='top'] & {
|
|
112
113
|
border-right-color: $dark-background-color;
|
|
113
114
|
border-bottom-color: $dark-background-color;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-scrim-utils",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "Higher order component that adds an overlay behind components and manages scroll states.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"a11y-focus-scope": "^1.1.3",
|
|
18
18
|
"a11y-focus-store": "^1.0.0",
|
|
19
|
-
"bpk-mixins": "^31.6.
|
|
20
|
-
"bpk-react-utils": "^7.0.
|
|
19
|
+
"bpk-mixins": "^31.6.6",
|
|
20
|
+
"bpk-react-utils": "^7.0.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^17.0.2"
|
package/bpk-theming/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-theming",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Backpack theming utlities.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "c2217d61875a1f3aa2bb9ed9583c50e3f1523501",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^9.4.0",
|
|
18
18
|
"prop-types": "^15.7.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/backpack-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"description": "Backpack Design System web library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@popperjs/core": "^2.11.5",
|
|
26
26
|
"@react-google-maps/api": "^2.12.0",
|
|
27
|
-
"@skyscanner/bpk-foundations-web": "^9.
|
|
28
|
-
"@skyscanner/bpk-svgs": "^14.
|
|
27
|
+
"@skyscanner/bpk-foundations-web": "^9.4.0",
|
|
28
|
+
"@skyscanner/bpk-svgs": "^14.5.0",
|
|
29
29
|
"a11y-focus-scope": "^1.1.3",
|
|
30
30
|
"a11y-focus-store": "^1.0.0",
|
|
31
|
-
"bpk-mixins": "^31.6.
|
|
31
|
+
"bpk-mixins": "^31.6.6",
|
|
32
32
|
"d3-path": "^2.0.0",
|
|
33
33
|
"d3-scale": "^4.0.2",
|
|
34
34
|
"date-fns": "^2.21.1",
|
|
@@ -1,60 +0,0 @@
|
|
|
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
|
-
import React from 'react';
|
|
20
|
-
import { render } from '@testing-library/react';
|
|
21
|
-
|
|
22
|
-
import BpkAriaLive, { POLITENESS_SETTINGS } from './BpkAriaLive';
|
|
23
|
-
import type { PolitenessSetting } from './BpkAriaLive';
|
|
24
|
-
|
|
25
|
-
describe('BpkAriaLive', () => {
|
|
26
|
-
it('should render correctly', () => {
|
|
27
|
-
const { asFragment } = render(<BpkAriaLive>Backpack</BpkAriaLive>);
|
|
28
|
-
expect(asFragment()).toMatchSnapshot();
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
Object.keys(POLITENESS_SETTINGS).forEach((politenessSetting) => {
|
|
32
|
-
it(`should render correctly with politenessSetting="${politenessSetting}"`, () => {
|
|
33
|
-
const { asFragment } = render(
|
|
34
|
-
<BpkAriaLive politenessSetting={politenessSetting as PolitenessSetting}>
|
|
35
|
-
Backpack
|
|
36
|
-
</BpkAriaLive>,
|
|
37
|
-
);
|
|
38
|
-
expect(asFragment()).toMatchSnapshot();
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
it('should render correctly with the "visible" prop', () => {
|
|
43
|
-
const { asFragment } = render(<BpkAriaLive visible>Backpack</BpkAriaLive>);
|
|
44
|
-
expect(asFragment()).toMatchSnapshot();
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('should support custom class names', () => {
|
|
48
|
-
const { asFragment } = render(
|
|
49
|
-
<BpkAriaLive className="custom-classname">Backpack</BpkAriaLive>,
|
|
50
|
-
);
|
|
51
|
-
expect(asFragment()).toMatchSnapshot();
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
it('should support arbitrary props', () => {
|
|
55
|
-
const { asFragment } = render(
|
|
56
|
-
<BpkAriaLive testid="123">Backpack</BpkAriaLive>,
|
|
57
|
-
);
|
|
58
|
-
expect(asFragment()).toMatchSnapshot();
|
|
59
|
-
});
|
|
60
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
import React from 'react';
|
|
20
|
-
import { render } from '@testing-library/react';
|
|
21
|
-
import { axe } from 'jest-axe';
|
|
22
|
-
|
|
23
|
-
import BpkAriaLive from './BpkAriaLive';
|
|
24
|
-
|
|
25
|
-
describe('BpkAriaLive accessibility tests', () => {
|
|
26
|
-
it('should not have programmatically-detectable accessibility issues', async () => {
|
|
27
|
-
const { container } = render(<BpkAriaLive>Backpack</BpkAriaLive>);
|
|
28
|
-
const results = await axe(container);
|
|
29
|
-
expect(results).toHaveNoViolations();
|
|
30
|
-
});
|
|
31
|
-
});
|
|
@@ -1,88 +0,0 @@
|
|
|
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
|
-
import React from 'react';
|
|
20
|
-
import { render, screen } from '@testing-library/react';
|
|
21
|
-
import '@testing-library/jest-dom';
|
|
22
|
-
|
|
23
|
-
import BpkContentCard from './BpkContentCard';
|
|
24
|
-
|
|
25
|
-
describe('Content Card widget', () => {
|
|
26
|
-
const horizontalCardTestProps: React.ComponentProps<typeof BpkContentCard> = {
|
|
27
|
-
card: {
|
|
28
|
-
image: {
|
|
29
|
-
url: 'http://skyscanner.net/card-1-image-link.jpg',
|
|
30
|
-
alt: 'People surfing in the ocean',
|
|
31
|
-
},
|
|
32
|
-
headline: 'Card 1 headline',
|
|
33
|
-
description: 'Card 1 description',
|
|
34
|
-
href: 'http://skyscanner.net/card-1-cta-link.html',
|
|
35
|
-
},
|
|
36
|
-
layout: 'HORIZONTAL',
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const verticalCardTestProps: React.ComponentProps<typeof BpkContentCard> = {
|
|
40
|
-
card: {
|
|
41
|
-
image: {
|
|
42
|
-
url: 'http://skyscanner.net/card-1-image-link.jpg',
|
|
43
|
-
alt: 'People surfing in the ocean',
|
|
44
|
-
},
|
|
45
|
-
headline: 'Card 1 headline',
|
|
46
|
-
description: 'Card 1 description',
|
|
47
|
-
href: 'http://skyscanner.net/card-1-cta-link.html',
|
|
48
|
-
},
|
|
49
|
-
layout: 'VERTICAL',
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
it('renders horizontal card correctly', async () => {
|
|
53
|
-
const { asFragment } = render(
|
|
54
|
-
<BpkContentCard
|
|
55
|
-
card={horizontalCardTestProps.card}
|
|
56
|
-
layout={horizontalCardTestProps.layout}
|
|
57
|
-
/>,
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
expect(asFragment()).toMatchSnapshot();
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
it('renders vertical card correctly', async () => {
|
|
64
|
-
const { asFragment } = render(
|
|
65
|
-
<BpkContentCard
|
|
66
|
-
card={verticalCardTestProps.card}
|
|
67
|
-
layout={verticalCardTestProps.layout}
|
|
68
|
-
/>,
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
expect(asFragment()).toMatchSnapshot();
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
it('renders the headline and the description for the card', async () => {
|
|
75
|
-
render(
|
|
76
|
-
<BpkContentCard
|
|
77
|
-
card={horizontalCardTestProps.card}
|
|
78
|
-
layout={horizontalCardTestProps.layout}
|
|
79
|
-
/>,
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
const expectedElements = ['Card 1 headline', 'Card 1 description'];
|
|
83
|
-
|
|
84
|
-
expectedElements.forEach((element) =>
|
|
85
|
-
expect(screen.getByText(element)).toBeVisible(),
|
|
86
|
-
);
|
|
87
|
-
});
|
|
88
|
-
});
|
|
@@ -1,126 +0,0 @@
|
|
|
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
|
-
import React from 'react';
|
|
20
|
-
import { render, screen } from '@testing-library/react';
|
|
21
|
-
|
|
22
|
-
import BpkContentCards from './BpkContentCards';
|
|
23
|
-
|
|
24
|
-
describe('Content Card widget', () => {
|
|
25
|
-
const contentContainerTestProps: React.ComponentProps<
|
|
26
|
-
typeof BpkContentCards
|
|
27
|
-
> = {
|
|
28
|
-
heading: 'Header for the component',
|
|
29
|
-
cards: [
|
|
30
|
-
{
|
|
31
|
-
image: {
|
|
32
|
-
url: 'http://skyscanner.net/card-1-image-link.jpg',
|
|
33
|
-
alt: 'People surfing in the ocean',
|
|
34
|
-
},
|
|
35
|
-
headline: 'Card 1 headline',
|
|
36
|
-
description: 'Card 1 description',
|
|
37
|
-
href: 'http://skyscanner.net/card-1-cta-link.html',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
image: {
|
|
41
|
-
url: 'http://skyscanner.net/card-2-image-link.jpg',
|
|
42
|
-
alt: 'Man on boat in a fjord',
|
|
43
|
-
},
|
|
44
|
-
headline: 'Card 2 headline',
|
|
45
|
-
description: 'Card 2 description',
|
|
46
|
-
href: 'http://skyscanner.net/card-2-cta-link.html',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
image: {
|
|
50
|
-
url: 'http://skyscanner.net/card-3-image-link.jpg',
|
|
51
|
-
alt: 'Airplane flying over mountains',
|
|
52
|
-
},
|
|
53
|
-
headline: 'Card 3 headline',
|
|
54
|
-
description: 'Card 3 description',
|
|
55
|
-
href: 'http://skyscanner.net/card-3-cta-link.html',
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
it('renders correctly with 1 card', async () => {
|
|
61
|
-
const { asFragment } = render(
|
|
62
|
-
<BpkContentCards
|
|
63
|
-
heading={contentContainerTestProps.heading}
|
|
64
|
-
cards={contentContainerTestProps.cards.slice(0, 1)}
|
|
65
|
-
/>,
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
expect(asFragment()).toMatchSnapshot();
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
it('renders correctly with 2 cards', async () => {
|
|
72
|
-
const { asFragment } = render(
|
|
73
|
-
<BpkContentCards
|
|
74
|
-
heading={contentContainerTestProps.heading}
|
|
75
|
-
cards={contentContainerTestProps.cards.slice(0, 2)}
|
|
76
|
-
/>,
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
expect(asFragment()).toMatchSnapshot();
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
it('renders correctly with 3 cards', async () => {
|
|
83
|
-
const { asFragment } = render(
|
|
84
|
-
<BpkContentCards
|
|
85
|
-
heading={contentContainerTestProps.heading}
|
|
86
|
-
cards={contentContainerTestProps.cards}
|
|
87
|
-
/>,
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
expect(asFragment()).toMatchSnapshot();
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
it('renders the title, the headline and the description for each card', async () => {
|
|
94
|
-
render(
|
|
95
|
-
<BpkContentCards
|
|
96
|
-
heading={contentContainerTestProps.heading}
|
|
97
|
-
cards={contentContainerTestProps.cards}
|
|
98
|
-
/>,
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
const expectedElements = [
|
|
102
|
-
'Header for the component',
|
|
103
|
-
'Card 1 headline',
|
|
104
|
-
'Card 1 description',
|
|
105
|
-
'Card 2 headline',
|
|
106
|
-
'Card 2 description',
|
|
107
|
-
'Card 3 headline',
|
|
108
|
-
'Card 3 description',
|
|
109
|
-
];
|
|
110
|
-
|
|
111
|
-
expectedElements.forEach((element) =>
|
|
112
|
-
expect(screen.getByText(element)).toBeTruthy(),
|
|
113
|
-
);
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
it('does not render anything if the cards are not defined', () => {
|
|
117
|
-
const { container } = render(
|
|
118
|
-
<BpkContentCards
|
|
119
|
-
heading={contentContainerTestProps.heading}
|
|
120
|
-
cards={[]}
|
|
121
|
-
/>,
|
|
122
|
-
);
|
|
123
|
-
|
|
124
|
-
expect(container.firstChild).toBe(null);
|
|
125
|
-
});
|
|
126
|
-
});
|
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
import React from 'react';
|
|
20
|
-
import { render } from '@testing-library/react';
|
|
21
|
-
import { axe } from 'jest-axe';
|
|
22
|
-
|
|
23
|
-
import BpkContentCards from './BpkContentCards';
|
|
24
|
-
|
|
25
|
-
const heading = 'Header for the component';
|
|
26
|
-
const cards = [
|
|
27
|
-
{
|
|
28
|
-
image: {
|
|
29
|
-
url: 'http://skyscanner.net/card-1-image-link.jpg',
|
|
30
|
-
alt: '',
|
|
31
|
-
},
|
|
32
|
-
headline: 'Card 1 headline',
|
|
33
|
-
description: 'Card 1 description',
|
|
34
|
-
href: 'http://skyscanner.net/card-1-cta-link.html',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
image: {
|
|
38
|
-
url: 'http://skyscanner.net/card-2-image-link.jpg',
|
|
39
|
-
alt: '',
|
|
40
|
-
},
|
|
41
|
-
headline: 'Card 2 headline',
|
|
42
|
-
description: 'Card 2 description',
|
|
43
|
-
href: 'http://skyscanner.net/card-2-cta-link.html',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
image: {
|
|
47
|
-
url: 'http://skyscanner.net/card-3-image-link.jpg',
|
|
48
|
-
alt: '',
|
|
49
|
-
},
|
|
50
|
-
headline: 'Card 3 headline',
|
|
51
|
-
description: 'Card 3 description',
|
|
52
|
-
href: 'http://skyscanner.net/card-3-cta-link.html',
|
|
53
|
-
},
|
|
54
|
-
];
|
|
55
|
-
|
|
56
|
-
describe('BpkContentCards accessibility tests', () => {
|
|
57
|
-
it('should not have programmatically-detectable accessibility issues', async () => {
|
|
58
|
-
const { container } = render(
|
|
59
|
-
<BpkContentCards heading={heading} cards={cards} />,
|
|
60
|
-
);
|
|
61
|
-
const results = await axe(container);
|
|
62
|
-
expect(results).toHaveNoViolations();
|
|
63
|
-
});
|
|
64
|
-
});
|