@skyscanner/backpack-web 4.1.0 → 6.0.0-alpha.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/README.md +65 -64
- package/bpk-component-accordion/src/BpkAccordion.js +0 -1
- package/bpk-component-accordion/src/BpkAccordionItem.js +0 -1
- package/bpk-component-accordion/src/withAccordionItemState.js +0 -1
- package/bpk-component-accordion/src/withSingleItemAccordionState.js +0 -1
- package/bpk-component-aria-live/src/BpkAriaLive.js +0 -1
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +1 -2
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +0 -1
- package/bpk-component-badge/src/BpkBadge.js +0 -1
- package/bpk-component-banner-alert/src/AnimateAndFade.js +2 -3
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +1 -2
- package/bpk-component-banner-alert/src/withBannerAlertState.js +0 -1
- package/bpk-component-barchart/src/BpkBarchart.js +0 -1
- package/bpk-component-barchart/src/BpkBarchartBar.js +1 -2
- package/bpk-component-barchart/src/BpkChartAxis.js +1 -2
- package/bpk-component-barchart/src/BpkChartDataTable.js +0 -1
- package/bpk-component-barchart/src/BpkChartGridLines.js +0 -1
- package/bpk-component-blockquote/src/BpkBlockquote.js +0 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +0 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +0 -1
- package/bpk-component-button/src/BpkButtonBase.module.css +1 -1
- package/bpk-component-button/src/BpkButtonDestructive.module.css +1 -1
- package/bpk-component-button/src/BpkButtonFeatured.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLink.module.css +1 -1
- package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +18 -0
- package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +18 -0
- package/bpk-component-button/src/BpkButtonSecondary.module.css +1 -1
- package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +18 -0
- package/bpk-component-calendar/src/BpkCalendarContainer.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarDate.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +0 -1
- package/bpk-component-calendar/src/BpkCalendarNav.js +0 -1
- package/bpk-component-calendar/src/Week.js +0 -1
- package/bpk-component-calendar/src/composeCalendar.js +0 -1
- package/bpk-component-card/src/BpkCard.js +0 -1
- package/bpk-component-checkbox/src/BpkCheckbox.js +0 -1
- package/bpk-component-chip/src/BpkDismissibleChip.js +0 -1
- package/bpk-component-chip/src/BpkSelectableChip.js +0 -1
- package/bpk-component-close-button/src/BpkCloseButton.js +0 -1
- package/bpk-component-code/src/BpkCode.js +0 -1
- package/bpk-component-code/src/BpkCodeBlock.js +0 -1
- package/bpk-component-content-container/src/BpkContentContainer.js +0 -1
- package/bpk-component-content-container/src/BpkContentContainer.module.css +1 -1
- package/bpk-component-datatable/src/BpkDataTable.js +1 -2
- package/bpk-component-datatable/src/BpkDataTableColumn.js +0 -1
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +0 -1
- package/bpk-component-datepicker/src/BpkDatepicker.js +16 -15
- package/bpk-component-description-list/src/ComponentFactory.js +0 -1
- package/bpk-component-dialog/src/BpkDialog.js +0 -1
- package/bpk-component-dialog/src/BpkDialogInner.js +0 -1
- package/bpk-component-dialog/src/BpkDialogInner.module.css +1 -1
- package/bpk-component-drawer/src/BpkDrawer.js +2 -11
- package/bpk-component-drawer/src/BpkDrawerContent.js +0 -1
- package/bpk-component-drawer/src/BpkDrawerContent.module.css +1 -1
- package/bpk-component-fieldset/src/BpkFieldset.js +0 -1
- package/bpk-component-flare/src/BpkContentBubble.js +0 -1
- package/bpk-component-flare/src/BpkFlareBar.js +0 -1
- package/bpk-component-flare/src/bpk-flare-bar.module.css +1 -1
- package/bpk-component-floating-notification/README.md +5 -0
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +6 -2
- package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
- package/bpk-component-form-validation/src/BpkFormValidation.js +4 -5
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +0 -1
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +18 -0
- package/bpk-component-graphic-promotion/src/custom-breakpoints.module.css +17 -0
- package/bpk-component-grid/src/BpkGridColumn.js +0 -1
- package/bpk-component-grid/src/BpkGridColumn.module.css +1 -1
- package/bpk-component-grid/src/BpkGridContainer.js +0 -1
- package/bpk-component-grid/src/BpkGridContainer.module.css +1 -1
- package/bpk-component-grid/src/BpkGridRow.js +0 -1
- package/bpk-component-grid/src/BpkGridRow.module.css +1 -1
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +0 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +1 -2
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +0 -1
- package/bpk-component-icon/src/BpkIcon.module.css +1 -1
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +0 -1
- package/bpk-component-icon/src/withAlignment.js +0 -1
- package/bpk-component-icon/src/withDescription.js +0 -1
- package/bpk-component-image/src/BpkBackgroundImage.js +2 -3
- package/bpk-component-image/src/BpkImage.js +2 -3
- package/bpk-component-image/src/withLazyLoading.js +1 -2
- package/bpk-component-image/src/withLoadingBehavior.js +0 -1
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +1 -2
- package/bpk-component-input/src/BpkClearButton.js +0 -1
- package/bpk-component-input/src/BpkInput.js +0 -1
- package/bpk-component-input/src/withOpenEvents.js +0 -1
- package/bpk-component-label/src/BpkLabel.js +0 -1
- package/bpk-component-link/src/BpkButtonLink.js +0 -1
- package/bpk-component-link/src/BpkLink.js +0 -1
- package/bpk-component-list/src/BpkList.js +0 -1
- package/bpk-component-list/src/BpkList.module.css +1 -1
- package/bpk-component-list/src/BpkListItem.js +0 -1
- package/bpk-component-loading-button/src/BpkLoadingButton.js +0 -1
- package/bpk-component-loading-button/src/BpkLoadingButton.module.css +18 -0
- package/bpk-component-map/src/BpkIconMarker.js +0 -1
- package/bpk-component-map/src/BpkIconMarkerBackground.js +0 -1
- package/bpk-component-map/src/BpkMap.js +1 -2
- package/bpk-component-map/src/BpkMap.module.css +18 -0
- package/bpk-component-map/src/BpkPriceMarker.js +0 -1
- package/bpk-component-map/src/DefaultLoadingElement.js +0 -1
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +0 -1
- package/bpk-component-modal/src/BpkModal.js +4 -10
- package/bpk-component-modal/src/BpkModal.module.css +1 -1
- package/bpk-component-modal/src/BpkModalInner.js +1 -2
- package/bpk-component-modal/src/BpkModalInner.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +0 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +0 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +0 -1
- package/bpk-component-navigation-stack/README.md +1 -0
- package/bpk-component-navigation-stack/package.json +1 -0
- package/bpk-component-navigation-stack/src/BpkNavigationStack.js +1 -2
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +0 -1
- package/bpk-component-nudger/src/BpkNudger.js +0 -1
- package/bpk-component-nudger/src/BpkNudger.module.css +1 -1
- package/bpk-component-overlay/src/BpkOverlay.js +0 -1
- package/bpk-component-pagination/src/BpkPagination.js +0 -1
- package/bpk-component-pagination/src/BpkPaginationList.js +0 -1
- package/bpk-component-pagination/src/BpkPaginationNudger.js +0 -1
- package/bpk-component-pagination/src/BpkPaginationPage.js +1 -2
- package/bpk-component-pagination/src/BpkPaginationPage.module.css +1 -1
- package/bpk-component-panel/src/BpkPanel.js +0 -1
- package/bpk-component-phone-input/src/BpkPhoneInput.js +0 -1
- package/bpk-component-phone-input/src/BpkPhoneInput.module.css +1 -1
- package/bpk-component-popover/src/BpkPopover.js +0 -1
- package/bpk-component-popover/src/BpkPopover.module.css +1 -1
- package/bpk-component-popover/src/BpkPopoverPortal.js +25 -15
- package/bpk-component-price/README.md +4 -2
- package/bpk-component-price/index.js +3 -2
- package/bpk-component-price/package.json +1 -1
- package/bpk-component-price/src/BpkPrice.js +16 -13
- package/bpk-component-price/src/BpkPrice.module.css +18 -0
- package/bpk-component-price/src/BpkPrice.module.scss +16 -10
- package/bpk-component-price/src/common-types.js +29 -0
- package/bpk-component-progress/src/BpkProgress.js +0 -1
- package/bpk-component-radio/src/BpkRadio.js +0 -1
- package/bpk-component-rating/src/BpkRating.js +0 -1
- package/bpk-component-rating/src/BpkRating.module.css +1 -1
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +0 -1
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +0 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +0 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +0 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +2 -6
- package/bpk-component-section-list/src/BpkSectionListItem.js +0 -1
- package/bpk-component-section-list/src/BpkSectionListSection.js +0 -1
- package/bpk-component-select/src/BpkSelect.js +0 -1
- package/bpk-component-skip-link/src/BpkSkipLink.js +0 -1
- package/bpk-component-slider/src/BpkSlider.js +0 -1
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -2
- package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -2
- package/bpk-component-spinner/src/BpkSpinner.js +1 -2
- package/bpk-component-spinner/src/BpkSpinner.module.css +1 -1
- package/bpk-component-split-input/src/BpkInputField.js +2 -3
- package/bpk-component-split-input/src/BpkInputField.module.css +18 -0
- package/bpk-component-split-input/src/BpkInputField.module.scss +3 -3
- package/bpk-component-split-input/src/BpkSplitInput.js +4 -3
- package/bpk-component-split-input/src/BpkSplitInput.module.css +1 -1
- package/bpk-component-split-input/src/BpkSplitInput.module.scss +2 -2
- package/bpk-component-star-rating/src/BpkInteractiveStar.js +0 -1
- package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +0 -1
- package/bpk-component-star-rating/src/BpkStar.js +0 -1
- package/bpk-component-star-rating/src/BpkStarRating.js +0 -1
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +0 -1
- package/bpk-component-switch/src/BpkSwitch.js +0 -1
- package/bpk-component-table/src/BpkTable.js +0 -1
- package/bpk-component-table/src/BpkTableCell.js +0 -1
- package/bpk-component-table/src/BpkTableHeadCell.js +0 -1
- package/bpk-component-text/src/BpkText.js +0 -1
- package/bpk-component-text/src/BpkText.module.css +1 -1
- package/bpk-component-textarea/src/BpkTextarea.js +0 -1
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +0 -1
- package/bpk-component-theme-toggle/src/updateOnThemeChange.js +0 -1
- package/bpk-component-ticket/README.md +0 -1
- package/bpk-component-ticket/package.json +1 -1
- package/bpk-component-ticket/src/BpkTicket.js +0 -41
- package/bpk-component-ticket/src/BpkTicket.module.css +1 -1
- package/bpk-component-ticket/src/BpkTicket.module.scss +13 -165
- package/bpk-component-tooltip/src/BpkTooltip.js +0 -1
- package/bpk-component-tooltip/src/BpkTooltip.module.css +1 -1
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +0 -1
- package/bpk-react-utils/src/Portal.js +1 -1
- package/bpk-scrim-utils/src/BpkScrim.js +0 -1
- package/bpk-scrim-utils/src/bpk-scrim.module.css +1 -1
- package/bpk-scrim-utils/src/withScrim.js +0 -1
- package/package.json +1 -1
|
@@ -19,9 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import ReactDOM from 'react-dom';
|
|
22
|
-
import React, { Component, type Node } from 'react';
|
|
23
|
-
|
|
24
22
|
import { cssModules } from '../../bpk-react-utils';
|
|
23
|
+
import React, { Component, type Node } from 'react';
|
|
25
24
|
import BpkMobileScrollContainer from '../../bpk-component-mobile-scroll-container';
|
|
26
25
|
|
|
27
26
|
import STYLES from './BpkHorizontalNav.module.scss';
|
|
@@ -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:0rem;vertical-align:top}html[dir='rtl'] .bpk-icon--rtl-support{transform:scaleX(-1)}
|
|
@@ -19,11 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
import React, { type Node, Component } from 'react';
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
|
-
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
23
|
-
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
24
|
-
|
|
25
22
|
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
26
23
|
import { BpkSpinner } from '../../bpk-component-spinner';
|
|
24
|
+
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
25
|
+
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
27
26
|
|
|
28
27
|
import { widthHeightAspectRatioPropType } from './customPropTypes';
|
|
29
28
|
import STYLES from './BpkBackgroundImage.module.scss';
|
|
@@ -19,11 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
import React, { type Node, Component } from 'react';
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
|
-
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
23
|
-
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
24
|
-
|
|
25
22
|
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
26
23
|
import { BpkSpinner } from '../../bpk-component-spinner';
|
|
24
|
+
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
25
|
+
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
27
26
|
|
|
28
27
|
import { widthHeightAspectRatioPropType } from './customPropTypes';
|
|
29
28
|
import STYLES from './BpkImage.module.scss';
|
|
@@ -19,9 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
import React, { type Node, type ComponentType } from 'react';
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
|
-
import throttle from 'lodash/throttle';
|
|
23
|
-
|
|
24
22
|
import { wrapDisplayName } from '../../bpk-react-utils';
|
|
23
|
+
import throttle from 'lodash/throttle';
|
|
25
24
|
|
|
26
25
|
type WithLazyLoadingProps = {
|
|
27
26
|
className: ?string,
|
|
@@ -25,11 +25,10 @@ import React, {
|
|
|
25
25
|
type AbstractComponent,
|
|
26
26
|
} from 'react';
|
|
27
27
|
import PropTypes from 'prop-types';
|
|
28
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
28
29
|
import omit from 'lodash/omit';
|
|
29
30
|
import extend from 'lodash/extend';
|
|
30
31
|
|
|
31
|
-
import { cssModules } from '../../bpk-react-utils';
|
|
32
|
-
|
|
33
32
|
import './intersection-observer';
|
|
34
33
|
import DataSource from './DataSource';
|
|
35
34
|
import STYLES from './withInfiniteScroll.module.scss';
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import React from 'react';
|
|
22
|
-
|
|
23
22
|
import ClearIcon from '../../bpk-component-icon/sm/close-circle';
|
|
24
23
|
import { withButtonAlignment } from '../../bpk-component-icon';
|
|
25
24
|
import { cssModules } from '../../bpk-react-utils';
|
|
@@ -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-list{margin-top:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-list{margin-top:1rem;margin-bottom:1rem;padding-left:1.5rem}.bpk-list__item{margin-top:0;margin-bottom:.25rem}.bpk-list .bpk-list{margin-top:0;margin-bottom:0;padding-top:0.5rem;padding-bottom:0.25rem}.bpk-list .bpk-list>li{margin-bottom:0}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-loading-button{position:relative;overflow:hidden}.bpk-loading-button--link{visibility:hidden}.bpk-loading-button__icon{position:absolute;display:inline-flex;visibility:visible;z-index:1;width:calc(100% - 2rem);height:calc(100% - .75rem);justify-content:center;align-items:center;background-color:inherit}.bpk-loading-button__icon--large{height:calc(100% - 1.5rem)}.bpk-loading-button__icon--icon-only{width:calc(100% - 1.125rem)}.bpk-loading-button__icon--large-icon-only{width:calc(100% - 1.5rem)}.bpk-loading-button__icon--link{width:100%;background:unset}
|
|
@@ -20,9 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
import React, { type Node, useCallback, useRef } from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
|
-
import { GoogleMap } from '@react-google-maps/api';
|
|
24
|
-
|
|
25
23
|
import { cssModules } from '../../bpk-react-utils';
|
|
24
|
+
import { GoogleMap } from '@react-google-maps/api';
|
|
26
25
|
|
|
27
26
|
import { LatLongPropType, type LatLong } from './common-types';
|
|
28
27
|
import STYLES from './BpkMap.module.scss';
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
.bpk-map{height:100%}
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import debounce from 'lodash.debounce';
|
|
23
23
|
import React, { Component, type Node } from 'react';
|
|
24
|
-
|
|
25
24
|
import { cssModules, isRTL } from '../../bpk-react-utils';
|
|
26
25
|
|
|
27
26
|
import STYLES from './BpkMobileScrollContainer.module.scss';
|
|
@@ -19,10 +19,9 @@
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
|
-
import React
|
|
23
|
-
|
|
22
|
+
import React from 'react';
|
|
24
23
|
import { withScrim } from '../../bpk-scrim-utils';
|
|
25
|
-
import {
|
|
24
|
+
import { Portal, cssModules, isDeviceIphone } from '../../bpk-react-utils';
|
|
26
25
|
|
|
27
26
|
import STYLES from './BpkModal.module.scss';
|
|
28
27
|
import BpkModalInner, {
|
|
@@ -50,7 +49,6 @@ export type Props = {
|
|
|
50
49
|
closeOnScrimClick: boolean,
|
|
51
50
|
closeOnEscPressed: boolean,
|
|
52
51
|
renderTarget: ?() => ?HTMLElement,
|
|
53
|
-
target: ?((() => ?HTMLElement) | Element<any>),
|
|
54
52
|
onClose: (event: SyntheticEvent<>) => void | null,
|
|
55
53
|
};
|
|
56
54
|
|
|
@@ -64,7 +62,6 @@ const BpkModal = (props: Props) => {
|
|
|
64
62
|
isOpen,
|
|
65
63
|
onClose,
|
|
66
64
|
renderTarget,
|
|
67
|
-
target,
|
|
68
65
|
...rest
|
|
69
66
|
} = props;
|
|
70
67
|
|
|
@@ -79,10 +76,9 @@ const BpkModal = (props: Props) => {
|
|
|
79
76
|
}
|
|
80
77
|
|
|
81
78
|
return (
|
|
82
|
-
<
|
|
79
|
+
<Portal
|
|
83
80
|
isOpen={isOpen}
|
|
84
81
|
onClose={onClose}
|
|
85
|
-
target={target}
|
|
86
82
|
renderTarget={renderTarget}
|
|
87
83
|
closeOnEscPressed={closeOnEscPressed}
|
|
88
84
|
>
|
|
@@ -96,7 +92,7 @@ const BpkModal = (props: Props) => {
|
|
|
96
92
|
isIphone={isIphone}
|
|
97
93
|
{...rest}
|
|
98
94
|
/>
|
|
99
|
-
</
|
|
95
|
+
</Portal>
|
|
100
96
|
);
|
|
101
97
|
};
|
|
102
98
|
|
|
@@ -108,7 +104,6 @@ export const propTypes = {
|
|
|
108
104
|
isIphone: PropTypes.bool,
|
|
109
105
|
isOpen: PropTypes.bool.isRequired,
|
|
110
106
|
renderTarget: PropTypes.func,
|
|
111
|
-
target: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
|
|
112
107
|
closeOnScrimClick: PropTypes.bool,
|
|
113
108
|
closeOnEscPressed: PropTypes.bool,
|
|
114
109
|
};
|
|
@@ -117,7 +112,6 @@ export const defaultProps = {
|
|
|
117
112
|
...modalDialogDefaultProps,
|
|
118
113
|
onClose: () => null,
|
|
119
114
|
renderTarget: null,
|
|
120
|
-
target: null,
|
|
121
115
|
isIphone: isDeviceIphone(),
|
|
122
116
|
closeOnScrimClick: true,
|
|
123
117
|
closeOnEscPressed: true,
|
|
@@ -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-modal__container{display:flex;padding:1.5rem}@media screen\0 {.bpk-modal__container{display:block}}@media (max-width:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-modal__container{display:flex;padding:1.5rem}@media screen\0 {.bpk-modal__container{display:block}}@media (max-width: 32rem){.bpk-modal__container--full-screen-mobile{display:flex;padding:0}}.bpk-modal__container--full-screen{display:flex;padding:0}
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
|
+
import { BpkButtonLink } from '../../bpk-component-link';
|
|
21
22
|
import PropTypes from 'prop-types';
|
|
22
23
|
import React, { type Node, type Element } from 'react';
|
|
23
|
-
|
|
24
|
-
import { BpkButtonLink } from '../../bpk-component-link';
|
|
25
24
|
import BpkCloseButton from '../../bpk-component-close-button';
|
|
26
25
|
import BpkNavigationBar from '../../bpk-component-navigation-bar';
|
|
27
26
|
import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
|
|
@@ -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-modal{z-index:1100;width:100%;max-width:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-modal{z-index:1100;width:100%;max-width:32rem;margin:auto;transform:scale(1);transition:opacity 200ms ease-in-out,transform 200ms ease-in-out;outline:0;background-color:#fff;opacity:1;overflow:hidden;-webkit-tap-highlight-color:transparent;box-shadow:0px 12px 50px 0px rgba(37,32,31,0.25);border-radius:.375rem}@media (max-width: 32rem){.bpk-modal--full-screen-mobile{display:flex;margin:0;flex-direction:column;border-radius:0;box-shadow:none}}.bpk-modal--full-screen{max-width:none;display:flex;margin:0;flex-direction:column;border-radius:0;box-shadow:none}@media (min-width: 32.0625rem){.bpk-modal--wide{max-width:64rem}}.bpk-modal--appear{transform:scale(0.9);opacity:0}.bpk-modal--appear-active{transform:scale(1);opacity:1}.bpk-modal__header{box-shadow:0 -1px 0 0 #dddde5 inset}.bpk-modal__navigation{display:flex;justify-content:space-between;background-color:#fff}.bpk-modal__heading{margin:0;font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-modal__close-button{position:relative;right:auto;margin-left:1rem;margin-right:0}html[dir='rtl'] .bpk-modal__close-button{margin-left:0;margin-right:1rem}html[dir='rtl'] .bpk-modal__close-button{left:auto}.bpk-modal__accessory-view{position:relative;left:auto;margin-right:1rem}html[dir='rtl'] .bpk-modal__accessory-view{right:auto;margin-left:1rem}.bpk-modal__content{flex:1;overflow-y:auto}.bpk-modal__content--padded{padding:1rem}
|
|
@@ -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-navigation-bar{position:relative;display:flex;min-height:3.5rem;padding:1rem;flex-direction:row;justify-content:center;align-items:center;background-color:#0770e3;background-color:var(--bpk-navigation-bar-background-color, #0770e3);box-shadow:0 -1px 0 0 #dddde5 inset}.bpk-navigation-bar__title{color:#fff;color:var(--bpk-navigation-bar-title-color, #fff)}.bpk-navigation-bar__leading-item,.bpk-navigation-bar__trailing-item{position:absolute}.bpk-navigation-bar__leading-item{left:1rem}html[dir='rtl'] .bpk-navigation-bar__leading-item{right:1rem;left:auto}.bpk-navigation-bar__trailing-item{right:1rem}html[dir='rtl'] .bpk-navigation-bar__trailing-item{right:auto;left:1rem}.bpk-navigation-bar__sticky{position:sticky;top:0;z-index:899}
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-navigation-bar{position:relative;display:flex;min-height:3.5rem;padding:1rem;flex-direction:row;justify-content:center;align-items:center;background-color:#0770e3;background-color:var(--bpk-navigation-bar-background-color, #0770e3);box-shadow:0 -1px 0 0 #dddde5 inset}.bpk-navigation-bar__title{color:#fff;color:var(--bpk-navigation-bar-title-color, #fff)}.bpk-navigation-bar__leading-item,.bpk-navigation-bar__trailing-item{position:absolute;font-size:.875rem;line-height:1.25rem;font-weight:700}.bpk-navigation-bar__leading-item{left:1rem}html[dir='rtl'] .bpk-navigation-bar__leading-item{right:1rem;left:auto}.bpk-navigation-bar__trailing-item{right:1rem}html[dir='rtl'] .bpk-navigation-bar__trailing-item{right:auto;left:1rem}.bpk-navigation-bar__sticky{position:sticky;top:0;z-index:899}
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
import React, { type Node } from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
|
-
|
|
24
23
|
// TODO: close button is not really only a close button, we should rename and update the import here
|
|
25
24
|
import { BpkButtonLink } from '../../bpk-component-link';
|
|
26
25
|
import { cssModules } from '../../bpk-react-utils';
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
import React, { type ComponentType } from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
|
-
|
|
24
23
|
// TODO: close button is not really only a close button, we should rename and update the import here
|
|
25
24
|
import BpkIconButton from '../../bpk-component-close-button';
|
|
26
25
|
import { cssModules } from '../../bpk-react-utils';
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
|
+
import { cssModules, isRTL } from '../../bpk-react-utils';
|
|
21
22
|
import React, { Children, type Element } from 'react';
|
|
22
23
|
import PropTypes from 'prop-types';
|
|
23
24
|
import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
24
25
|
import { TransitionGroup, Transition } from 'react-transition-group';
|
|
25
26
|
import debounce from 'lodash/debounce';
|
|
26
27
|
|
|
27
|
-
import { cssModules, isRTL } from '../../bpk-react-utils';
|
|
28
|
-
|
|
29
28
|
import STYLES from './BpkNavigationStack.module.scss';
|
|
30
29
|
|
|
31
30
|
const getClassName = cssModules(STYLES);
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
23
|
import React from 'react';
|
|
24
|
-
|
|
25
24
|
import BpkButtonSecondary from '../../bpk-component-button/BpkButtonSecondary';
|
|
26
25
|
import BpkButtonSecondaryOnDark from '../../bpk-component-button/BpkButtonSecondaryOnDark';
|
|
27
26
|
import { withButtonAlignment } from '../../bpk-component-icon';
|
|
@@ -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-nudger__button{position:relative}.bpk-nudger__input{display:inline-block;padding:0.5rem 0;border:none;text-align:center;vertical-align:middle;margin:0;font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-nudger__input--
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-nudger__button{position:relative}.bpk-nudger__input{display:inline-block;padding:0.5rem 0;border:none;text-align:center;vertical-align:middle;margin:0;font-size:1.5rem;line-height:2rem;font-weight:400}.bpk-nudger__input--secondary-on-dark{background-color:transparent;color:#fff}.bpk-nudger__input--numeric{width:2.5rem}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React from 'react';
|
|
21
|
-
|
|
22
21
|
import { cssModules } from '../../bpk-react-utils';
|
|
23
22
|
import { withButtonAlignment, withRtlSupport } from '../../bpk-component-icon';
|
|
24
23
|
import ArrowLeftIcon from '../../bpk-component-icon/lg/arrow-left';
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
+
import BpkButton from '../../bpk-component-button';
|
|
19
20
|
import PropTypes from 'prop-types';
|
|
20
21
|
import React from 'react';
|
|
21
|
-
|
|
22
|
-
import BpkButton from '../../bpk-component-button';
|
|
23
22
|
import { cssModules } from '../../bpk-react-utils';
|
|
24
23
|
|
|
25
24
|
import STYLES from './BpkPaginationPage.module.scss';
|
|
@@ -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-pagination-page{min-width:2.25rem;height:2.25rem;padding:0;border-radius:50
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-pagination-page{min-width:2.25rem;height:2.25rem;padding:0;border-radius:50%;font-size:1rem;line-height:1.5rem;font-weight:700}.bpk-pagination-page--selected{background-image:none;color:#fff;box-shadow:none;cursor:auto;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}.bpk-no-touch-support .bpk-pagination-page--selected:hover:not(:active):not(:disabled){background-image:none;color:#fff;box-shadow:none;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}:global(.bpk-no-touch-support) .bpk-pagination-page--selected:hover:not(:active):not(:disabled){background-image:none;color:#fff;box-shadow:none;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}.bpk-pagination-page--selected:active{background-image:none;color:#fff;box-shadow:none;background-color:#042759;background-color:var(--bpk-pagination-selected-background-color, #042759);box-shadow:0 0 0 2px #042759 inset;box-shadow:0 0 0 2px var(--bpk-pagination-selected-background-color, #042759) inset}.bpk-pagination-page--selected:disabled{box-shadow:none}
|
|
@@ -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-phone-input{display:flex;column-gap:0.5rem}@media (max-width:
|
|
18
|
+
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-phone-input{display:flex;column-gap:0.5rem}@media (max-width: 32rem){.bpk-phone-input{flex-wrap:wrap}.bpk-phone-input__phone-number{width:100%;margin-top:1rem}}.bpk-phone-input__phone-number{flex:auto}.bpk-phone-input__label{margin-bottom:0.5rem}
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type Node } from 'react';
|
|
23
|
-
|
|
24
23
|
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
25
24
|
import { BpkButtonLink } from '../../bpk-component-link';
|
|
26
25
|
import BpkCloseButton from '../../bpk-component-close-button';
|