@skyscanner/backpack-web 6.0.0-alpha.1 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bpk-animate-height/package.json +2 -2
- package/bpk-component-accordion/package.json +6 -6
- package/bpk-component-accordion/src/BpkAccordion.js +1 -0
- package/bpk-component-accordion/src/BpkAccordionItem.js +1 -0
- package/bpk-component-accordion/src/withAccordionItemState.js +1 -0
- package/bpk-component-accordion/src/withSingleItemAccordionState.js +1 -0
- package/bpk-component-aria-live/package.json +7 -7
- package/bpk-component-aria-live/src/BpkAriaLive.js +1 -0
- package/bpk-component-autosuggest/package.json +4 -4
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +2 -1
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -0
- package/bpk-component-badge/package.json +4 -4
- package/bpk-component-badge/src/BpkBadge.js +1 -0
- package/bpk-component-banner-alert/package.json +8 -8
- package/bpk-component-banner-alert/src/AnimateAndFade.js +3 -2
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +2 -1
- package/bpk-component-banner-alert/src/withBannerAlertState.js +1 -0
- package/bpk-component-barchart/data.json +0 -82
- package/bpk-component-barchart/package.json +7 -7
- package/bpk-component-barchart/src/BpkBarchart.js +1 -0
- package/bpk-component-barchart/src/BpkBarchartBar.js +2 -1
- package/bpk-component-barchart/src/BpkChartAxis.js +2 -1
- package/bpk-component-barchart/src/BpkChartDataTable.js +1 -0
- package/bpk-component-barchart/src/BpkChartGridLines.js +1 -0
- package/bpk-component-blockquote/package.json +2 -2
- package/bpk-component-blockquote/src/BpkBlockquote.js +1 -0
- package/bpk-component-breadcrumb/package.json +5 -5
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -0
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +1 -0
- package/bpk-component-breakpoint/package.json +2 -2
- package/bpk-component-button/package.json +2 -2
- package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
- package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
- package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
- package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
- package/bpk-component-calendar/package.json +8 -8
- package/bpk-component-calendar/src/BpkCalendarContainer.js +1 -0
- package/bpk-component-calendar/src/BpkCalendarDate.js +1 -0
- package/bpk-component-calendar/src/BpkCalendarGrid.js +1 -0
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +1 -0
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +1 -0
- package/bpk-component-calendar/src/BpkCalendarNav.js +1 -0
- package/bpk-component-calendar/src/Week.js +1 -0
- package/bpk-component-calendar/src/composeCalendar.js +1 -0
- package/bpk-component-card/package.json +4 -4
- package/bpk-component-card/src/BpkCard.js +1 -0
- package/bpk-component-checkbox/package.json +4 -4
- package/bpk-component-checkbox/src/BpkCheckbox.js +1 -0
- package/bpk-component-chip/package.json +5 -5
- package/bpk-component-chip/src/BpkDismissibleChip.js +1 -0
- package/bpk-component-chip/src/BpkSelectableChip.js +1 -0
- package/bpk-component-close-button/package.json +4 -4
- package/bpk-component-close-button/src/BpkCloseButton.js +1 -0
- package/bpk-component-code/package.json +2 -2
- package/bpk-component-code/src/BpkCode.js +1 -0
- package/bpk-component-code/src/BpkCodeBlock.js +1 -0
- package/bpk-component-content-container/package.json +2 -2
- package/bpk-component-content-container/src/BpkContentContainer.js +1 -0
- package/bpk-component-content-container/src/BpkContentContainer.module.css +1 -1
- package/bpk-component-datatable/package.json +3 -3
- package/bpk-component-datatable/src/BpkDataTable.js +2 -1
- package/bpk-component-datatable/src/BpkDataTableColumn.js +1 -0
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +1 -0
- package/bpk-component-datepicker/package.json +8 -8
- package/bpk-component-datepicker/src/BpkDatepicker.js +3 -2
- package/bpk-component-description-list/package.json +2 -2
- package/bpk-component-description-list/src/ComponentFactory.js +1 -0
- package/bpk-component-dialog/package.json +8 -8
- package/bpk-component-dialog/src/BpkDialog.js +1 -0
- package/bpk-component-dialog/src/BpkDialogInner.js +1 -0
- package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
- package/bpk-component-drawer/package.json +8 -8
- package/bpk-component-drawer/src/BpkDrawer.js +1 -0
- package/bpk-component-drawer/src/BpkDrawerContent.js +1 -0
- package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
- package/bpk-component-fieldset/package.json +12 -12
- package/bpk-component-fieldset/src/BpkFieldset.js +1 -0
- package/bpk-component-flare/package.json +4 -4
- package/bpk-component-flare/src/BpkContentBubble.js +1 -0
- package/bpk-component-flare/src/BpkFlareBar.js +1 -0
- package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
- package/bpk-component-floating-notification/package.json +5 -4
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +4 -1
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
- package/bpk-component-form-validation/package.json +9 -9
- package/bpk-component-form-validation/src/BpkFormValidation.js +5 -4
- package/bpk-component-graphic-promotion/package.json +4 -4
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +1 -0
- package/bpk-component-grid/package.json +2 -2
- package/bpk-component-grid/src/BpkGridColumn.js +1 -0
- package/bpk-component-grid/src/BpkGridColumn.module.css +1 -1
- package/bpk-component-grid/src/BpkGridContainer.js +1 -0
- package/bpk-component-grid/src/BpkGridContainer.module.css +1 -1
- package/bpk-component-grid/src/BpkGridRow.js +1 -0
- package/bpk-component-grid/src/BpkGridRow.module.css +1 -1
- package/bpk-component-grid-toggle/package.json +3 -3
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +1 -0
- package/bpk-component-horizontal-nav/package.json +5 -5
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +8 -12
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +1 -0
- package/bpk-component-icon/package.json +5 -5
- package/bpk-component-icon/src/BpkIcon.module.css +1 -1
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +1 -0
- package/bpk-component-icon/src/withAlignment.js +1 -0
- package/bpk-component-icon/src/withDescription.js +1 -0
- package/bpk-component-image/package.json +5 -5
- package/bpk-component-image/src/BpkBackgroundImage.js +3 -2
- package/bpk-component-image/src/BpkImage.js +3 -2
- package/bpk-component-image/src/withLazyLoading.js +2 -1
- package/bpk-component-image/src/withLoadingBehavior.js +1 -0
- package/bpk-component-infinite-scroll/package.json +6 -6
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +2 -1
- package/bpk-component-input/package.json +6 -6
- package/bpk-component-input/src/BpkClearButton.js +1 -0
- package/bpk-component-input/src/BpkInput.js +1 -0
- package/bpk-component-input/src/withOpenEvents.js +1 -0
- package/bpk-component-label/package.json +2 -2
- package/bpk-component-label/src/BpkLabel.js +1 -0
- package/bpk-component-link/package.json +3 -3
- package/bpk-component-link/src/BpkButtonLink.js +1 -0
- package/bpk-component-link/src/BpkLink.js +1 -0
- package/bpk-component-list/package.json +2 -2
- package/bpk-component-list/src/BpkList.js +1 -0
- package/bpk-component-list/src/BpkList.module.css +1 -1
- package/bpk-component-list/src/BpkListItem.js +1 -0
- package/bpk-component-loading-button/package.json +6 -6
- package/bpk-component-loading-button/src/BpkLoadingButton.js +1 -0
- package/bpk-component-map/package.json +6 -6
- package/bpk-component-map/src/BpkIconMarker.js +1 -0
- package/bpk-component-map/src/BpkIconMarkerBackground.js +1 -0
- package/bpk-component-map/src/BpkMap.js +2 -1
- package/bpk-component-map/src/BpkPriceMarker.js +1 -0
- package/bpk-component-map/src/DefaultLoadingElement.js +1 -0
- package/bpk-component-mobile-scroll-container/package.json +2 -2
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -0
- package/bpk-component-modal/package.json +9 -9
- package/bpk-component-modal/src/BpkModal.js +1 -0
- package/bpk-component-modal/src/BpkModal.module.css +1 -1
- package/bpk-component-modal/src/BpkModalInner.js +2 -1
- package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
- package/bpk-component-navigation-bar/package.json +7 -7
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +1 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +1 -0
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +1 -0
- package/bpk-component-navigation-stack/package.json +6 -6
- package/bpk-component-navigation-stack/src/BpkNavigationStack.js +2 -1
- package/bpk-component-nudger/package.json +6 -6
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +1 -0
- package/bpk-component-nudger/src/BpkNudger.js +1 -0
- package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
- package/bpk-component-overlay/package.json +4 -4
- package/bpk-component-overlay/src/BpkOverlay.js +1 -0
- package/bpk-component-pagination/package.json +4 -4
- package/bpk-component-pagination/src/BpkPagination.js +1 -0
- package/bpk-component-pagination/src/BpkPaginationList.js +1 -0
- package/bpk-component-pagination/src/BpkPaginationNudger.js +1 -0
- package/bpk-component-pagination/src/BpkPaginationPage.js +2 -1
- package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
- package/bpk-component-panel/package.json +2 -2
- package/bpk-component-panel/src/BpkPanel.js +1 -0
- package/bpk-component-phone-input/package.json +8 -8
- package/bpk-component-phone-input/src/BpkPhoneInput.js +1 -0
- package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
- package/bpk-component-popover/package.json +8 -8
- package/bpk-component-popover/src/BpkPopover.js +1 -0
- package/bpk-component-popover/src/BpkPopover.module.css +1 -1
- package/bpk-component-popover/src/BpkPopoverPortal.js +1 -0
- package/bpk-component-price/package.json +3 -3
- package/bpk-component-price/src/BpkPrice.js +1 -0
- package/bpk-component-progress/package.json +4 -4
- package/bpk-component-progress/src/BpkProgress.js +1 -0
- package/bpk-component-radio/package.json +3 -3
- package/bpk-component-radio/src/BpkRadio.js +1 -0
- package/bpk-component-rating/package.json +3 -3
- package/bpk-component-rating/src/BpkRating.js +1 -0
- package/bpk-component-rating/src/BpkRating.module.css +1 -1
- package/bpk-component-rtl-toggle/package.json +3 -3
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +1 -0
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +1 -0
- package/bpk-component-scrollable-calendar/package.json +5 -5
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +1 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +1 -0
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +6 -2
- package/bpk-component-section-list/package.json +5 -5
- package/bpk-component-section-list/src/BpkSectionListItem.js +1 -0
- package/bpk-component-section-list/src/BpkSectionListSection.js +1 -0
- package/bpk-component-select/package.json +3 -3
- package/bpk-component-select/src/BpkSelect.js +1 -0
- package/bpk-component-skip-link/package.json +2 -2
- package/bpk-component-skip-link/src/BpkSkipLink.js +1 -0
- package/bpk-component-slider/package.json +3 -3
- package/bpk-component-slider/src/BpkSlider.js +1 -0
- package/bpk-component-spinner/package.json +2 -2
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +2 -1
- package/bpk-component-spinner/src/BpkLargeSpinner.js +2 -1
- package/bpk-component-spinner/src/BpkSpinner.js +2 -1
- package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
- package/bpk-component-split-input/package.json +3 -3
- package/bpk-component-split-input/src/BpkInputField.js +2 -1
- package/bpk-component-split-input/src/BpkSplitInput.js +2 -1
- package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
- package/bpk-component-star-rating/package.json +5 -5
- package/bpk-component-star-rating/src/BpkInteractiveStar.js +1 -0
- package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +1 -0
- package/bpk-component-star-rating/src/BpkStar.js +1 -0
- package/bpk-component-star-rating/src/BpkStarRating.js +1 -0
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +1 -0
- package/bpk-component-switch/package.json +2 -2
- package/bpk-component-switch/src/BpkSwitch.js +1 -0
- package/bpk-component-table/package.json +2 -2
- package/bpk-component-table/src/BpkTable.js +1 -0
- package/bpk-component-table/src/BpkTableCell.js +1 -0
- package/bpk-component-table/src/BpkTableHeadCell.js +1 -0
- package/bpk-component-text/package.json +2 -2
- package/bpk-component-text/src/BpkText.js +1 -0
- package/bpk-component-text/src/BpkText.module.css +1 -1
- package/bpk-component-textarea/package.json +4 -4
- package/bpk-component-textarea/src/BpkTextarea.js +1 -0
- package/bpk-component-theme-toggle/package.json +4 -4
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +1 -0
- package/bpk-component-theme-toggle/src/updateOnThemeChange.js +1 -0
- package/bpk-component-ticket/package.json +4 -4
- package/bpk-component-ticket/src/BpkTicket.js +1 -0
- package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
- package/bpk-component-tooltip/package.json +3 -3
- package/bpk-component-tooltip/src/BpkTooltip.js +1 -0
- package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +1 -0
- package/bpk-react-utils/package.json +1 -1
- package/bpk-scrim-utils/package.json +2 -2
- package/bpk-scrim-utils/src/BpkScrim.js +1 -0
- package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
- package/bpk-scrim-utils/src/withScrim.js +1 -0
- package/package.json +1 -1
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +0 -18
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +0 -18
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +0 -18
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +0 -18
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +0 -18
- package/bpk-component-graphic-promotion/src/custom-breakpoints.module.css +0 -17
- package/bpk-component-loading-button/src/BpkLoadingButton.module.css +0 -18
- package/bpk-component-map/src/BpkMap.module.css +0 -18
- package/bpk-component-price/src/BpkPrice.module.css +0 -18
- package/bpk-component-split-input/src/BpkInputField.module.css +0 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-fieldset",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.19",
|
|
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": "^4.2.
|
|
18
|
-
"bpk-component-label": "^5.1.
|
|
17
|
+
"bpk-component-form-validation": "^4.2.17",
|
|
18
|
+
"bpk-component-label": "^5.1.12",
|
|
19
19
|
"bpk-mixins": "^31.1.1",
|
|
20
|
-
"bpk-react-utils": "^
|
|
20
|
+
"bpk-react-utils": "^6.0.0",
|
|
21
21
|
"prop-types": "^15.7.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^16.3.0 || ^17.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-autosuggest": "^6.1.
|
|
28
|
-
"bpk-component-button": "^6.2.
|
|
29
|
-
"bpk-component-calendar": "^11.1.
|
|
30
|
-
"bpk-component-checkbox": "^4.1.
|
|
31
|
-
"bpk-component-datepicker": "^
|
|
32
|
-
"bpk-component-input": "^6.1.
|
|
33
|
-
"bpk-component-select": "^5.1.
|
|
34
|
-
"bpk-component-textarea": "^4.2.
|
|
27
|
+
"bpk-component-autosuggest": "^6.1.17",
|
|
28
|
+
"bpk-component-button": "^6.2.7",
|
|
29
|
+
"bpk-component-calendar": "^11.1.19",
|
|
30
|
+
"bpk-component-checkbox": "^4.1.14",
|
|
31
|
+
"bpk-component-datepicker": "^16.0.0",
|
|
32
|
+
"bpk-component-input": "^6.1.17",
|
|
33
|
+
"bpk-component-select": "^5.1.12",
|
|
34
|
+
"bpk-component-textarea": "^4.2.12"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import React, { cloneElement, type Element } from 'react';
|
|
22
|
+
|
|
22
23
|
import BpkLabel from '../../bpk-component-label';
|
|
23
24
|
import BpkFormValidation from '../../bpk-component-form-validation';
|
|
24
25
|
import { cssModules } from '../../bpk-react-utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-flare",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.15",
|
|
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": "^5.1.
|
|
21
|
-
"bpk-component-text": "^7.0.
|
|
20
|
+
"bpk-component-label": "^5.1.12",
|
|
21
|
+
"bpk-component-text": "^7.0.6",
|
|
22
22
|
"bpk-mixins": "^31.1.1",
|
|
23
|
-
"bpk-react-utils": "^
|
|
23
|
+
"bpk-react-utils": "^6.0.0",
|
|
24
24
|
"prop-types": "^15.7.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-flare-bar__container{position:relative;display:flex;min-width:10rem;height:1.5rem;overflow:hidden}@media (max-width:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-flare-bar__container{position:relative;display:flex;min-width:10rem;height:1.5rem;overflow:hidden}@media (max-width: 32.25rem){.bpk-flare-bar__container{height:1rem}}.bpk-flare-bar__curve{position:absolute;bottom:-1px;width:700rem;height:1.5rem;margin-left:50%;transform:translateX(-50%);fill:#fff}html[dir='rtl'] .bpk-flare-bar__curve{margin-right:50%;transform:translateX(50%)}@media (max-width: 32.25rem){.bpk-flare-bar__curve{height:1rem}}.bpk-flare-bar__rounded-corner{position:absolute;bottom:calc(1.5rem - 1px);left:0;width:1.3125rem;height:1.3125rem;fill:#fff}.bpk-flare-bar__rounded-corner--trailing{right:0;left:auto;transform:rotate(-90deg)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-floating-notification",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Backpack floating-notification component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
"registry": "https://registry.npmjs.org/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"bpk-component-
|
|
17
|
-
"bpk-component-
|
|
16
|
+
"bpk-component-aria-live": "^2.1.19",
|
|
17
|
+
"bpk-component-button": "^6.2.7",
|
|
18
|
+
"bpk-component-text": "^7.0.6",
|
|
18
19
|
"bpk-mixins": "^31.1.1",
|
|
19
|
-
"bpk-react-utils": "^
|
|
20
|
+
"bpk-react-utils": "^6.0.0",
|
|
20
21
|
"prop-types": "^15.5.8"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import React, { useEffect, useState, ReactElement } from 'react';
|
|
22
22
|
import { CSSTransition } from 'react-transition-group';
|
|
23
|
+
|
|
24
|
+
import BpkAriaLive from '../../bpk-component-aria-live';
|
|
23
25
|
import BpkButton from '../../bpk-component-button';
|
|
24
26
|
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
25
27
|
import { cssModules } from '../../bpk-react-utils';
|
|
@@ -106,7 +108,7 @@ const BpkFloatingNotification = (props: Props) => {
|
|
|
106
108
|
<div className={classNames} {...rest}>
|
|
107
109
|
{Icon && (
|
|
108
110
|
<div className={iconClassNames}>
|
|
109
|
-
<Icon />
|
|
111
|
+
<Icon aria-hidden />
|
|
110
112
|
</div>
|
|
111
113
|
)}
|
|
112
114
|
<BpkText
|
|
@@ -116,6 +118,7 @@ const BpkFloatingNotification = (props: Props) => {
|
|
|
116
118
|
>
|
|
117
119
|
{text}
|
|
118
120
|
</BpkText>
|
|
121
|
+
<BpkAriaLive aria-hidden>{text}</BpkAriaLive>
|
|
119
122
|
{ctaText && (
|
|
120
123
|
<BpkButton link onClick={onClick} className={buttonClassNames}>
|
|
121
124
|
{ctaText}
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-floating-notification{
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-floating-notification{display:flex}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-form-validation",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.17",
|
|
4
4
|
"description": "Backpack form-validation component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-animate-height": "^4.1.
|
|
17
|
+
"bpk-animate-height": "^4.1.12",
|
|
18
18
|
"bpk-mixins": "^31.1.1",
|
|
19
|
-
"bpk-react-utils": "^
|
|
19
|
+
"bpk-react-utils": "^6.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
27
|
-
"bpk-component-button": "^6.2.
|
|
28
|
-
"bpk-component-checkbox": "^4.1.
|
|
29
|
-
"bpk-component-icon": "^9.2.
|
|
30
|
-
"bpk-component-input": "^6.1.
|
|
31
|
-
"bpk-component-select": "^5.1.
|
|
32
|
-
"bpk-component-textarea": "^4.2.
|
|
27
|
+
"bpk-component-button": "^6.2.7",
|
|
28
|
+
"bpk-component-checkbox": "^4.1.14",
|
|
29
|
+
"bpk-component-icon": "^9.2.13",
|
|
30
|
+
"bpk-component-input": "^6.1.17",
|
|
31
|
+
"bpk-component-select": "^5.1.12",
|
|
32
|
+
"bpk-component-textarea": "^4.2.12"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -18,15 +18,16 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import AnimateHeight from '../../bpk-animate-height';
|
|
22
|
-
import { cssModules } from '../../bpk-react-utils';
|
|
23
|
-
import BpkSmallExclamationIcon from '../../bpk-component-icon/sm/exclamation-circle';
|
|
24
|
-
import { withAlignment } from '../../bpk-component-icon';
|
|
25
21
|
import {
|
|
26
22
|
lineHeightSm,
|
|
27
23
|
iconSizeSm,
|
|
28
24
|
} from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
29
25
|
|
|
26
|
+
import AnimateHeight from '../../bpk-animate-height';
|
|
27
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
28
|
+
import BpkSmallExclamationIcon from '../../bpk-component-icon/sm/exclamation-circle';
|
|
29
|
+
import { withAlignment } from '../../bpk-component-icon';
|
|
30
|
+
|
|
30
31
|
import STYLES from './BpkFormValidation.module.scss';
|
|
31
32
|
|
|
32
33
|
const getClassName = cssModules(STYLES);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-graphic-promotion",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Backpack graphic-promotion component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"registry": "https://registry.npmjs.org/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"bpk-component-button": "^6.2.
|
|
17
|
-
"bpk-component-text": "^7.0.
|
|
16
|
+
"bpk-component-button": "^6.2.7",
|
|
17
|
+
"bpk-component-text": "^7.0.6",
|
|
18
18
|
"bpk-mixins": "^31.1.1",
|
|
19
|
-
"bpk-react-utils": "^
|
|
19
|
+
"bpk-react-utils": "^6.0.0",
|
|
20
20
|
"prop-types": "^15.5.8"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-grid",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
4
4
|
"description": "Backpack grid components.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-mixins": "^31.1.1",
|
|
18
|
-
"bpk-react-utils": "^
|
|
18
|
+
"bpk-react-utils": "^6.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-grid__column{float:left;padding-right:.75rem;padding-left:.75rem}html[dir='rtl'] .bpk-grid__column{float:right}.bpk-grid__column--padded{padding-top:.75rem;padding-bottom:.75rem}.bpk-grid__column--debug{padding:.75rem}.bpk-grid__column-debugger{background-color:#fff}.bpk-grid__column--0{display:none}.bpk-grid__column--1{display:block;width:8.33333%}.bpk-grid__column--2{display:block;width:16.66667%}.bpk-grid__column--3{display:block;width:25%}.bpk-grid__column--4{display:block;width:33.33333%}.bpk-grid__column--5{display:block;width:41.66667%}.bpk-grid__column--6{display:block;width:50%}.bpk-grid__column--7{display:block;width:58.33333%}.bpk-grid__column--8{display:block;width:66.66667%}.bpk-grid__column--9{display:block;width:75%}.bpk-grid__column--10{display:block;width:83.33333%}.bpk-grid__column--11{display:block;width:91.66667%}.bpk-grid__column--12{display:block;width:100%}.bpk-grid__column--offset-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-0{margin-right:0}.bpk-grid__column--offset-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-1{margin-right:8.33333%;margin-left:0}.bpk-grid__column--offset-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-2{margin-right:16.66667%;margin-left:0}.bpk-grid__column--offset-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-3{margin-right:25%;margin-left:0}.bpk-grid__column--offset-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-4{margin-right:33.33333%;margin-left:0}.bpk-grid__column--offset-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-5{margin-right:41.66667%;margin-left:0}.bpk-grid__column--offset-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-6{margin-right:50%;margin-left:0}.bpk-grid__column--offset-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-7{margin-right:58.33333%;margin-left:0}.bpk-grid__column--offset-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-8{margin-right:66.66667%;margin-left:0}.bpk-grid__column--offset-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-9{margin-right:75%;margin-left:0}.bpk-grid__column--offset-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-10{margin-right:83.33333%;margin-left:0}.bpk-grid__column--offset-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-11{margin-right:91.66667%;margin-left:0}.bpk-grid__column--offset-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-12{margin-right:100%;margin-left:0}@media (max-width:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-grid__column{float:left;padding-right:.75rem;padding-left:.75rem}html[dir='rtl'] .bpk-grid__column{float:right}.bpk-grid__column--padded{padding-top:.75rem;padding-bottom:.75rem}.bpk-grid__column--debug{padding:.75rem}.bpk-grid__column-debugger{background-color:#fff}.bpk-grid__column--0{display:none}.bpk-grid__column--1{display:block;width:8.33333%}.bpk-grid__column--2{display:block;width:16.66667%}.bpk-grid__column--3{display:block;width:25%}.bpk-grid__column--4{display:block;width:33.33333%}.bpk-grid__column--5{display:block;width:41.66667%}.bpk-grid__column--6{display:block;width:50%}.bpk-grid__column--7{display:block;width:58.33333%}.bpk-grid__column--8{display:block;width:66.66667%}.bpk-grid__column--9{display:block;width:75%}.bpk-grid__column--10{display:block;width:83.33333%}.bpk-grid__column--11{display:block;width:91.66667%}.bpk-grid__column--12{display:block;width:100%}.bpk-grid__column--offset-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-0{margin-right:0}.bpk-grid__column--offset-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-1{margin-right:8.33333%;margin-left:0}.bpk-grid__column--offset-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-2{margin-right:16.66667%;margin-left:0}.bpk-grid__column--offset-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-3{margin-right:25%;margin-left:0}.bpk-grid__column--offset-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-4{margin-right:33.33333%;margin-left:0}.bpk-grid__column--offset-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-5{margin-right:41.66667%;margin-left:0}.bpk-grid__column--offset-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-6{margin-right:50%;margin-left:0}.bpk-grid__column--offset-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-7{margin-right:58.33333%;margin-left:0}.bpk-grid__column--offset-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-8{margin-right:66.66667%;margin-left:0}.bpk-grid__column--offset-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-9{margin-right:75%;margin-left:0}.bpk-grid__column--offset-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-10{margin-right:83.33333%;margin-left:0}.bpk-grid__column--offset-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-11{margin-right:91.66667%;margin-left:0}.bpk-grid__column--offset-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-12{margin-right:100%;margin-left:0}@media (max-width: 50.25rem){.bpk-grid__column--tablet-0{display:none}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-1{display:block;width:8.33333%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-2{display:block;width:16.66667%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-3{display:block;width:25%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-4{display:block;width:33.33333%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-5{display:block;width:41.66667%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-6{display:block;width:50%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-7{display:block;width:58.33333%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-8{display:block;width:66.66667%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-9{display:block;width:75%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-10{display:block;width:83.33333%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-11{display:block;width:91.66667%}}@media (max-width: 50.25rem){.bpk-grid__column--tablet-12{display:block;width:100%}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-tablet-0{margin-right:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-1{margin-right:8.33333%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-2{margin-right:16.66667%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-tablet-3{margin-right:25%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-4{margin-right:33.33333%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-5{margin-right:41.66667%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-tablet-6{margin-right:50%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-7{margin-right:58.33333%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-8{margin-right:66.66667%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-tablet-9{margin-right:75%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-tablet-10{margin-right:83.33333%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-tablet-11{margin-right:91.66667%;margin-left:0}}@media (max-width: 50.25rem){.bpk-grid__column--offset-tablet-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-tablet-12{margin-right:100%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-0{display:none}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-1{display:block;width:8.33333%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-2{display:block;width:16.66667%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-3{display:block;width:25%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-4{display:block;width:33.33333%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-5{display:block;width:41.66667%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-6{display:block;width:50%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-7{display:block;width:58.33333%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-8{display:block;width:66.66667%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-9{display:block;width:75%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-10{display:block;width:83.33333%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-11{display:block;width:91.66667%}}@media (max-width: 32.25rem){.bpk-grid__column--mobile-12{display:block;width:100%}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-0{margin-left:0}html[dir='rtl'] .bpk-grid__column--offset-mobile-0{margin-right:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-1{margin-left:8.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-1{margin-right:8.33333%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-2{margin-left:16.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-2{margin-right:16.66667%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-3{margin-left:25%}html[dir='rtl'] .bpk-grid__column--offset-mobile-3{margin-right:25%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-4{margin-left:33.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-4{margin-right:33.33333%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-5{margin-left:41.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-5{margin-right:41.66667%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-6{margin-left:50%}html[dir='rtl'] .bpk-grid__column--offset-mobile-6{margin-right:50%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-7{margin-left:58.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-7{margin-right:58.33333%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-8{margin-left:66.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-8{margin-right:66.66667%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-9{margin-left:75%}html[dir='rtl'] .bpk-grid__column--offset-mobile-9{margin-right:75%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-10{margin-left:83.33333%}html[dir='rtl'] .bpk-grid__column--offset-mobile-10{margin-right:83.33333%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-11{margin-left:91.66667%}html[dir='rtl'] .bpk-grid__column--offset-mobile-11{margin-right:91.66667%;margin-left:0}}@media (max-width: 32.25rem){.bpk-grid__column--offset-mobile-12{margin-left:100%}html[dir='rtl'] .bpk-grid__column--offset-mobile-12{margin-right:100%;margin-left:0}}
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-grid__container{max-width:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-grid__container{max-width:71.25rem;margin:0 auto;padding-right:.75rem;padding-left:.75rem}@media (min-width: 50.3125rem){.bpk-grid__container{padding-right:1.5rem;padding-left:1.5rem}}.bpk-grid__container--debug{background-color:#f1f2f8}.bpk-grid__container--full-width{max-width:100%}
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-grid__row{margin-right:-.75rem;margin-left:-.75rem}.bpk-grid__row::before,.bpk-grid__row::after{content:'';display:table}.bpk-grid__row::after{clear:both}@media (min-width:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-grid__row{margin-right:-.75rem;margin-left:-.75rem}.bpk-grid__row::before,.bpk-grid__row::after{content:'';display:table}.bpk-grid__row::after{clear:both}@media (min-width: 50.3125rem){.bpk-grid__row--padded:first-child{padding-top:.75rem}.bpk-grid__row--padded:last-child{padding-bottom:.75rem}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-grid-toggle",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.12",
|
|
4
4
|
"description": "Backpack vertical grid toggle component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-link": "^3.1.
|
|
17
|
+
"bpk-component-link": "^3.1.12",
|
|
18
18
|
"bpk-mixins": "^31.1.1",
|
|
19
|
-
"bpk-react-utils": "^
|
|
19
|
+
"bpk-react-utils": "^6.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-horizontal-nav",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.14",
|
|
4
4
|
"description": "Backpack horizontal nav component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-mobile-scroll-container": "^3.1.
|
|
17
|
+
"bpk-component-mobile-scroll-container": "^3.1.12",
|
|
18
18
|
"bpk-mixins": "^31.1.1",
|
|
19
|
-
"bpk-react-utils": "^
|
|
19
|
+
"bpk-react-utils": "^6.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
27
|
-
"bpk-component-text": "^7.0.
|
|
28
|
-
"bpk-storybook-utils": "^1.1.
|
|
27
|
+
"bpk-component-text": "^7.0.6",
|
|
28
|
+
"bpk-storybook-utils": "^1.1.11"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
/* @flow strict */
|
|
19
19
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
|
-
import ReactDOM from 'react-dom';
|
|
22
|
-
import { cssModules } from '../../bpk-react-utils';
|
|
23
21
|
import React, { Component, type Node } from 'react';
|
|
22
|
+
|
|
23
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
24
24
|
import BpkMobileScrollContainer from '../../bpk-component-mobile-scroll-container';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkHorizontalNav.module.scss';
|
|
@@ -98,17 +98,11 @@ class BpkHorizontalNav extends Component<Props> {
|
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
// Using find dom node is preferable here over changing the underlying mechanism of BpkHorizontalNavItem to accomodate dom-node refs
|
|
102
|
-
// eslint-disable-next-line react/no-find-dom-node
|
|
103
|
-
const selectedItemRef = ((ReactDOM.findDOMNode(
|
|
104
|
-
this.selectedItemRef,
|
|
105
|
-
): any): Element);
|
|
106
|
-
|
|
107
101
|
if (!this.scrollRef) {
|
|
108
102
|
return;
|
|
109
103
|
}
|
|
110
104
|
|
|
111
|
-
const selectedItemPos = getPos(selectedItemRef);
|
|
105
|
+
const selectedItemPos = getPos(this.selectedItemRef);
|
|
112
106
|
if (!selectedItemPos) {
|
|
113
107
|
return;
|
|
114
108
|
}
|
|
@@ -167,10 +161,10 @@ class BpkHorizontalNav extends Component<Props> {
|
|
|
167
161
|
if (autoScrollToSelected || type === HORIZONTAL_NAV_TYPES.light) {
|
|
168
162
|
children = React.Children.map(rawChildren, (child) => {
|
|
169
163
|
const childProps = {};
|
|
170
|
-
|
|
164
|
+
let childRef;
|
|
171
165
|
if (autoScrollToSelected) {
|
|
172
166
|
if (child && child.props && child.props.selected) {
|
|
173
|
-
|
|
167
|
+
childRef = (ref) => {
|
|
174
168
|
this.selectedItemRef = ref;
|
|
175
169
|
};
|
|
176
170
|
}
|
|
@@ -180,7 +174,9 @@ class BpkHorizontalNav extends Component<Props> {
|
|
|
180
174
|
childProps.type = HORIZONTAL_NAV_TYPES.light;
|
|
181
175
|
}
|
|
182
176
|
|
|
183
|
-
return child ?
|
|
177
|
+
return child ? (
|
|
178
|
+
<div ref={childRef}>{React.cloneElement(child, childProps)}</div>
|
|
179
|
+
) : null;
|
|
184
180
|
});
|
|
185
181
|
}
|
|
186
182
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-icon",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.13",
|
|
4
4
|
"description": "Backpack icon components.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
21
21
|
"@skyscanner/bpk-svgs": "^14.1.9",
|
|
22
22
|
"bpk-mixins": "^31.1.1",
|
|
23
|
-
"bpk-react-utils": "^
|
|
23
|
+
"bpk-react-utils": "^6.0.0",
|
|
24
24
|
"prop-types": "^15.7.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-button": "^6.2.
|
|
28
|
-
"bpk-component-list": "^4.0.
|
|
29
|
-
"bpk-component-text": "^7.0.
|
|
27
|
+
"bpk-component-button": "^6.2.7",
|
|
28
|
+
"bpk-component-list": "^4.0.5",
|
|
29
|
+
"bpk-component-text": "^7.0.6"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "^16.3.0 || ^17.0.0"
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-icon--align-to-button{vertical-align:text-bottom}.bpk-icon--align-to-large-button{margin-top
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-icon--align-to-button{vertical-align:text-bottom}.bpk-icon--align-to-large-button{margin-top:.1875rem;vertical-align:top}html[dir='rtl'] .bpk-icon--rtl-support{transform:scaleX(-1)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-image",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.14",
|
|
4
4
|
"description": "Backpack image component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^8.0.0",
|
|
18
|
-
"bpk-component-spinner": "^5.1.
|
|
18
|
+
"bpk-component-spinner": "^5.1.12",
|
|
19
19
|
"bpk-mixins": "^31.1.1",
|
|
20
|
-
"bpk-react-utils": "^
|
|
20
|
+
"bpk-react-utils": "^6.0.0",
|
|
21
21
|
"prop-types": "^15.7.2",
|
|
22
22
|
"react-transition-group": "^2.5.3"
|
|
23
23
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"react": "^16.3.0 || ^17.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"bpk-component-mobile-scroll-container": "^3.1.
|
|
29
|
-
"bpk-component-text": "^7.0.
|
|
28
|
+
"bpk-component-mobile-scroll-container": "^3.1.12",
|
|
29
|
+
"bpk-component-text": "^7.0.6"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -19,11 +19,12 @@
|
|
|
19
19
|
|
|
20
20
|
import React, { type Node, Component } from 'react';
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
|
-
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
23
|
-
import { BpkSpinner } from '../../bpk-component-spinner';
|
|
24
22
|
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
25
23
|
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
26
24
|
|
|
25
|
+
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
26
|
+
import { BpkSpinner } from '../../bpk-component-spinner';
|
|
27
|
+
|
|
27
28
|
import { widthHeightAspectRatioPropType } from './customPropTypes';
|
|
28
29
|
import STYLES from './BpkBackgroundImage.module.scss';
|
|
29
30
|
|
|
@@ -19,11 +19,12 @@
|
|
|
19
19
|
|
|
20
20
|
import React, { type Node, Component } from 'react';
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
|
-
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
23
|
-
import { BpkSpinner } from '../../bpk-component-spinner';
|
|
24
22
|
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
25
23
|
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
26
24
|
|
|
25
|
+
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
26
|
+
import { BpkSpinner } from '../../bpk-component-spinner';
|
|
27
|
+
|
|
27
28
|
import { widthHeightAspectRatioPropType } from './customPropTypes';
|
|
28
29
|
import STYLES from './BpkImage.module.scss';
|
|
29
30
|
import BORDER_RADIUS_STYLES from './BpkImageBorderRadiusStyles';
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
import React, { type Node, type ComponentType } from 'react';
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
|
-
import { wrapDisplayName } from '../../bpk-react-utils';
|
|
23
22
|
import throttle from 'lodash/throttle';
|
|
24
23
|
|
|
24
|
+
import { wrapDisplayName } from '../../bpk-react-utils';
|
|
25
|
+
|
|
25
26
|
type WithLazyLoadingProps = {
|
|
26
27
|
className: ?string,
|
|
27
28
|
style: ?{},
|