@skyscanner/backpack-web 33.3.0 → 33.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bpk-component-accordion/src/BpkAccordionItem.js +2 -3
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -2
- package/bpk-component-banner-alert/src/AnimateAndFade.js +4 -4
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +1 -2
- package/bpk-component-barchart/src/BpkBarchart.js +2 -3
- package/bpk-component-barchart/src/BpkBarchartBar.js +1 -2
- package/bpk-component-barchart/src/BpkBarchartBars.js +2 -2
- package/bpk-component-barchart/src/BpkBarchartDefs.js +1 -2
- package/bpk-component-barchart/src/BpkChartAxis.js +1 -2
- package/bpk-component-barchart/src/BpkChartDataTable.js +1 -2
- package/bpk-component-bottom-sheet/src/BpkBottomSheet.js +1 -3
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -2
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +1 -2
- package/bpk-component-breakpoint/index.d.ts +2 -1
- package/bpk-component-breakpoint/src/BpkBreakpoint.js +5 -19
- package/bpk-component-breakpoint/src/useMediaQuery.js +10 -12
- package/bpk-component-calendar/src/BpkCalendarGrid.js +2 -1
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +1 -2
- package/bpk-component-calendar/src/BpkCalendarNav.js +1 -2
- package/bpk-component-calendar/src/Week.js +1 -1
- package/bpk-component-calendar/src/composeCalendar.js +1 -2
- package/bpk-component-card/src/BpkCardWrapper.js +1 -2
- package/bpk-component-card/src/BpkDividedCard.js +1 -2
- package/bpk-component-card-button/src/BpkSaveButton.js +1 -2
- package/bpk-component-checkbox/src/BpkCheckbox.js +1 -2
- package/bpk-component-chip/src/BpkSelectableChip.js +2 -3
- package/bpk-component-close-button/src/BpkCloseButton.js +3 -2
- package/bpk-component-close-button/src/BpkCloseButton.module.css +1 -1
- package/bpk-component-content-cards/src/BpkContentCard.js +1 -2
- package/bpk-component-content-cards/src/BpkContentCards.js +2 -7
- package/bpk-component-content-cards/src/BpkContentCards.module.css +1 -1
- package/bpk-component-datatable/src/BpkDataTable.js +3 -3
- package/bpk-component-datatable/src/BpkDataTableHeader.js +2 -3
- package/bpk-component-datepicker/src/BpkDatepicker.js +1 -3
- package/bpk-component-dialog/src/BpkDialog.js +1 -2
- package/bpk-component-dialog/src/BpkDialogInner.js +1 -2
- package/bpk-component-drawer/src/BpkDrawerContent.js +1 -2
- package/bpk-component-fieldset/src/BpkFieldset.js +1 -2
- package/bpk-component-flare/src/BpkContentBubble.js +1 -2
- package/bpk-component-flare/src/BpkFlareBar.js +2 -3
- package/bpk-component-floating-notification/src/BpkFloatingNotification.js +2 -2
- package/bpk-component-form-validation/src/BpkFormValidation.js +1 -2
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +1 -3
- package/bpk-component-icon/lg/aircraft.js +1 -2
- package/bpk-component-icon/lg/beach.js +1 -2
- package/bpk-component-icon/lg/call-back.js +1 -2
- package/bpk-component-icon/lg/camper-van.js +1 -2
- package/bpk-component-icon/lg/car-wash.js +1 -2
- package/bpk-component-icon/lg/cars.js +1 -2
- package/bpk-component-icon/lg/clean.js +1 -2
- package/bpk-component-icon/lg/cloakroom.js +1 -2
- package/bpk-component-icon/lg/content--copy.js +1 -2
- package/bpk-component-icon/lg/data.js +1 -2
- package/bpk-component-icon/lg/depart.js +1 -2
- package/bpk-component-icon/lg/download.js +1 -2
- package/bpk-component-icon/lg/education.js +1 -2
- package/bpk-component-icon/lg/explore.js +1 -2
- package/bpk-component-icon/lg/fast-track.js +1 -2
- package/bpk-component-icon/lg/fast-train.js +1 -2
- package/bpk-component-icon/lg/flight-landing.js +1 -2
- package/bpk-component-icon/lg/flight-takeoff.js +1 -2
- package/bpk-component-icon/lg/flight.js +1 -2
- package/bpk-component-icon/lg/legroom--extra.js +1 -2
- package/bpk-component-icon/lg/legroom--normal.js +1 -2
- package/bpk-component-icon/lg/legroom--reduced.js +1 -2
- package/bpk-component-icon/lg/logout.js +1 -2
- package/bpk-component-icon/lg/lounge.js +1 -2
- package/bpk-component-icon/lg/mail.js +1 -2
- package/bpk-component-icon/lg/mileage.js +1 -2
- package/bpk-component-icon/lg/new-window.js +1 -2
- package/bpk-component-icon/lg/plane-seat.js +1 -2
- package/bpk-component-icon/lg/return.js +1 -2
- package/bpk-component-icon/lg/scales.js +1 -2
- package/bpk-component-icon/lg/share--ios.js +1 -2
- package/bpk-component-icon/lg/social-distancing.js +1 -2
- package/bpk-component-icon/lg/speaker.js +1 -2
- package/bpk-component-icon/lg/taxi.js +1 -2
- package/bpk-component-icon/lg/unmute.js +1 -2
- package/bpk-component-icon/lg/wallet.js +1 -2
- package/bpk-component-icon/lg/weather--cloudy.js +1 -2
- package/bpk-component-icon/lg/weather--partly-cloudy.js +1 -2
- package/bpk-component-icon/lg/weather--rain.js +1 -2
- package/bpk-component-icon/lg/weather--thunderstorm.js +1 -2
- package/bpk-component-icon/lg/window--reduce.js +1 -2
- package/bpk-component-icon/lg/world--emea.js +1 -2
- package/bpk-component-icon/sm/aircraft.js +1 -2
- package/bpk-component-icon/sm/beach.js +1 -2
- package/bpk-component-icon/sm/bus.js +1 -2
- package/bpk-component-icon/sm/call-back.js +1 -2
- package/bpk-component-icon/sm/camper-van.js +1 -2
- package/bpk-component-icon/sm/car-wash.js +1 -2
- package/bpk-component-icon/sm/cars.js +1 -2
- package/bpk-component-icon/sm/chauffeur.js +1 -2
- package/bpk-component-icon/sm/clean.js +1 -2
- package/bpk-component-icon/sm/content--copy.js +1 -2
- package/bpk-component-icon/sm/data.js +1 -2
- package/bpk-component-icon/sm/depart.js +1 -2
- package/bpk-component-icon/sm/direct.js +1 -2
- package/bpk-component-icon/sm/download.js +1 -2
- package/bpk-component-icon/sm/education.js +1 -2
- package/bpk-component-icon/sm/explore.js +1 -2
- package/bpk-component-icon/sm/fast-track.js +1 -2
- package/bpk-component-icon/sm/fast-train.js +1 -2
- package/bpk-component-icon/sm/flight-landing.js +1 -2
- package/bpk-component-icon/sm/flight-takeoff.js +1 -2
- package/bpk-component-icon/sm/flight.js +1 -2
- package/bpk-component-icon/sm/hotels--jacuzzi.js +1 -2
- package/bpk-component-icon/sm/infant.js +1 -2
- package/bpk-component-icon/sm/legroom--extra.js +1 -2
- package/bpk-component-icon/sm/legroom--normal.js +1 -2
- package/bpk-component-icon/sm/legroom--reduced.js +1 -2
- package/bpk-component-icon/sm/logout.js +1 -2
- package/bpk-component-icon/sm/mail.js +1 -2
- package/bpk-component-icon/sm/mileage.js +1 -2
- package/bpk-component-icon/sm/new-window.js +1 -2
- package/bpk-component-icon/sm/onsen.js +1 -2
- package/bpk-component-icon/sm/plane-seat.js +1 -2
- package/bpk-component-icon/sm/return.js +1 -2
- package/bpk-component-icon/sm/share--ios.js +1 -2
- package/bpk-component-icon/sm/social-distancing.js +1 -2
- package/bpk-component-icon/sm/taxi.js +1 -2
- package/bpk-component-icon/sm/unmute.js +1 -2
- package/bpk-component-icon/sm/weather--cloudy.js +1 -2
- package/bpk-component-icon/sm/weather--rain.js +1 -2
- package/bpk-component-icon/sm/weather--thunderstorm.js +1 -2
- package/bpk-component-icon/sm/weather--wind.js +1 -2
- package/bpk-component-icon/sm/window--reduce.js +1 -2
- package/bpk-component-icon/src/withDescription.js +1 -2
- package/bpk-component-icon/src/withRtlSupport.js +1 -1
- package/bpk-component-image/src/BpkBackgroundImage.js +2 -2
- package/bpk-component-image/src/BpkImage.js +4 -3
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +1 -2
- package/bpk-component-info-banner/src/AnimateAndFade.js +4 -4
- package/bpk-component-info-banner/src/BpkInfoBannerInner.js +1 -2
- package/bpk-component-input/src/BpkInput.js +2 -3
- package/bpk-component-label/src/BpkLabel.js +1 -2
- package/bpk-component-loading-button/src/BpkLoadingButton.js +1 -2
- package/bpk-component-map/src/BpkIconMarker.js +1 -2
- package/bpk-component-map/src/BpkPriceMarker.js +1 -2
- package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.js +1 -2
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -1
- package/bpk-component-modal/src/BpkModal.js +1 -1
- package/bpk-component-modal/src/BpkModalInner.js +1 -2
- package/bpk-component-modal/src/BpkModalV2/BpkModal.js +1 -2
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +1 -2
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +1 -1
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +1 -2
- package/bpk-component-nudger/src/BpkNudger.js +1 -2
- package/bpk-component-overlay/src/BpkOverlay.js +1 -2
- package/bpk-component-page-indicator/src/BpkPageIndicator.js +1 -2
- package/bpk-component-pagination/src/BpkPagination.js +1 -2
- package/bpk-component-pagination/src/BpkPaginationNudger.js +1 -2
- package/bpk-component-phone-input/src/BpkPhoneInput.js +1 -2
- package/bpk-component-popover/src/BpkPopover.js +2 -3
- package/bpk-component-popover/src/BpkPopoverPortal.js +4 -6
- package/bpk-component-price/src/BpkPrice.js +2 -3
- package/bpk-component-progress/src/BpkProgress.js +1 -2
- package/bpk-component-radio/src/BpkRadio.js +1 -2
- package/bpk-component-rating/src/BpkRating.js +2 -3
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +1 -2
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +1 -1
- package/bpk-component-section-header/src/BpkSectionHeader.js +1 -2
- package/bpk-component-section-list/src/BpkSectionListItem.js +1 -2
- package/bpk-component-section-list/src/BpkSectionListSection.js +1 -2
- package/bpk-component-select/src/BpkSelect.js +1 -2
- package/bpk-component-slider/src/BpkSlider.js +2 -1
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +2 -3
- package/bpk-component-spinner/src/BpkLargeSpinner.js +2 -3
- package/bpk-component-spinner/src/BpkSpinner.js +2 -3
- package/bpk-component-switch/src/BpkSwitch.js +1 -2
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +2 -3
- package/bpk-component-tooltip/src/BpkTooltip.js +2 -3
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +3 -5
- package/bpk-react-utils/src/BpkDialogWrapper/BpkDialogWrapper.js +2 -2
- package/bpk-react-utils/src/Portal.js +1 -0
- package/bpk-scrim-utils/src/withScrim.js +3 -3
- package/package.json +1 -1
- /package/bpk-react-utils/src/{BpkDialogWrapper.d.ts → BpkDialogWrapper/BpkDialogWrapper.d.ts} +0 -0
- /package/bpk-react-utils/src/{BpkDialogWrapper.module.css → BpkDialogWrapper/BpkDialogWrapper.module.css} +0 -0
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import { cssModules, wrapDisplayName } from "../../bpk-react-utils";
|
|
20
20
|
import STYLES from "./withDescription.module.css";
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
const getClassName = cssModules(STYLES);
|
|
24
23
|
export default function withDescription(Component, description) {
|
|
25
24
|
const WithDescription = props => /*#__PURE__*/_jsxs("span", {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { cssModules } from "../../bpk-react-utils";
|
|
20
|
-
import STYLES from "./BpkIcon.module.css";
|
|
21
20
|
import classNameModifierHOCFactory from "./classNameModifierHOCFactory";
|
|
21
|
+
import STYLES from "./BpkIcon.module.css";
|
|
22
22
|
const getClassName = cssModules(STYLES);
|
|
23
23
|
export default classNameModifierHOCFactory('withRtlSupport', [getClassName('bpk-icon--rtl-support')]);
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
20
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
21
21
|
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
22
|
+
|
|
22
23
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
23
24
|
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
24
25
|
import { cssModules } from "../../bpk-react-utils";
|
|
25
26
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
26
27
|
import { BpkSpinner } from "../../bpk-component-spinner";
|
|
27
28
|
import STYLES from "./BpkBackgroundImage.module.css";
|
|
28
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
30
|
const getClassName = cssModules(STYLES);
|
|
31
31
|
class BpkBackgroundImage extends Component {
|
|
32
32
|
static defaultProps = {
|
|
@@ -17,17 +17,18 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
|
+
|
|
20
21
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
21
22
|
import CSSTransition from 'react-transition-group/CSSTransition';
|
|
23
|
+
|
|
22
24
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
23
25
|
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
24
26
|
import { cssModules } from "../../bpk-react-utils";
|
|
25
27
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
26
28
|
import { BpkSpinner } from "../../bpk-component-spinner";
|
|
27
|
-
import STYLES from "./BpkImage.module.css";
|
|
28
29
|
import BORDER_RADIUS_STYLES from "./BpkImageBorderRadiusStyles";
|
|
29
|
-
import
|
|
30
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
+
import STYLES from "./BpkImage.module.css";
|
|
31
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
32
|
const getClassName = cssModules(STYLES);
|
|
32
33
|
class Image extends Component {
|
|
33
34
|
static defaultProps = {
|
|
@@ -22,8 +22,7 @@ import { cssModules } from "../../bpk-react-utils";
|
|
|
22
22
|
import "./intersection-observer";
|
|
23
23
|
import DataSource from "./DataSource";
|
|
24
24
|
import STYLES from "./withInfiniteScroll.module.css";
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const getClassNames = cssModules(STYLES);
|
|
28
27
|
const propTypes = {
|
|
29
28
|
initiallyLoadedElements: PropTypes.number,
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
20
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
21
|
-
import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
22
|
-
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
23
21
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
22
|
+
|
|
23
|
+
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
24
|
+
import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
24
25
|
import { cssModules } from "../../bpk-react-utils";
|
|
25
26
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
26
27
|
import BpkAnimateHeight from "../../bpk-animate-height";
|
|
27
28
|
import STYLES from "./BpkAnimateAndFade.module.css";
|
|
28
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
30
|
const getClassName = cssModules(STYLES);
|
|
31
31
|
const ANIMATION_DURATION = parseInt(durationSm, 10);
|
|
32
32
|
class AnimateAndFade extends Component {
|
|
@@ -39,8 +39,7 @@ import { cssModules } from "../../bpk-react-utils";
|
|
|
39
39
|
import AnimateAndFade from "./AnimateAndFade";
|
|
40
40
|
import { ALERT_TYPES, STYLE_TYPES } from "./common-types";
|
|
41
41
|
import STYLES from "./BpkInfoBanner.module.css";
|
|
42
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
43
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
42
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
44
43
|
const getClassName = cssModules(STYLES);
|
|
45
44
|
const ExpandIcon = withButtonAlignment(ChevronDownIcon);
|
|
46
45
|
export const CONFIGURATION = {
|
|
@@ -19,10 +19,9 @@
|
|
|
19
19
|
import { Component } from 'react';
|
|
20
20
|
import { cssModules } from "../../bpk-react-utils";
|
|
21
21
|
import BpkClearButton from "./BpkClearButton";
|
|
22
|
-
import STYLES from "./BpkInput.module.css";
|
|
23
22
|
import { CLEAR_BUTTON_MODES, defaultProps } from "./common-types";
|
|
24
|
-
import
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import STYLES from "./BpkInput.module.css";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
25
|
const getClassName = cssModules(STYLES);
|
|
27
26
|
class BpkInput extends Component {
|
|
28
27
|
static defaultProps = defaultProps;
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
*/import PropTypes from 'prop-types';
|
|
18
18
|
import { cssModules } from "../../bpk-react-utils";
|
|
19
19
|
import STYLES from "./BpkLabel.module.css";
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
21
|
const getClassName = cssModules(STYLES);
|
|
23
22
|
const BpkLabel = props => {
|
|
24
23
|
const {
|
|
@@ -22,8 +22,7 @@ import ArrowIconSm from "../../bpk-component-icon/sm/long-arrow-right";
|
|
|
22
22
|
import ArrowIconLg from "../../bpk-component-icon/lg/long-arrow-right";
|
|
23
23
|
import { cssModules } from "../../bpk-react-utils";
|
|
24
24
|
import STYLES from "./BpkLoadingButton.module.css";
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const getClassName = cssModules(STYLES);
|
|
28
27
|
export const ICON_POSITION = {
|
|
29
28
|
LEADING: 'leading',
|
|
@@ -20,8 +20,7 @@ import BpkIconMarkerBackground from "./BpkIconMarkerBackground";
|
|
|
20
20
|
import { LatLongPropType } from "./common-types";
|
|
21
21
|
import BpkBasicMapMarker from "./BpkBasicMapMarker";
|
|
22
22
|
import STYLES from "./BpkIconMarker.module.css";
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
24
|
const getClassName = cssModules(STYLES);
|
|
26
25
|
const BpkIconMarker = props => {
|
|
27
26
|
const {
|
|
@@ -20,8 +20,7 @@ import BpkText, { TEXT_STYLES } from "../../bpk-component-text/src/BpkText";
|
|
|
20
20
|
import { LatLongPropType } from "./common-types";
|
|
21
21
|
import BpkBasicMapMarker from "./BpkBasicMapMarker";
|
|
22
22
|
import STYLES from "./BpkPriceMarker.module.css";
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
24
|
const getClassName = cssModules(STYLES);
|
|
26
25
|
export const PRICE_MARKER_STATUSES = {
|
|
27
26
|
default: 'default',
|
|
@@ -20,8 +20,7 @@ import { cssModules } from "../../../bpk-react-utils";
|
|
|
20
20
|
import BpkText, { TEXT_STYLES } from "../../../bpk-component-text";
|
|
21
21
|
import BpkBasicMapMarker from "../BpkBasicMapMarker";
|
|
22
22
|
import STYLES from "./BpkPriceMarker.module.css";
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
24
|
const getClassName = cssModules(STYLES);
|
|
26
25
|
export const MARKER_STATUSES = {
|
|
27
26
|
unselected: 'unselected',
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/import PropTypes from 'prop-types';
|
|
18
|
-
import debounce from 'lodash.debounce';
|
|
19
18
|
import { Component } from 'react';
|
|
19
|
+
import debounce from 'lodash.debounce';
|
|
20
20
|
import { cssModules, isRTL } from "../../bpk-react-utils";
|
|
21
21
|
import STYLES from "./BpkMobileScrollContainer.module.css";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
import { withScrim } from "../../bpk-scrim-utils";
|
|
20
20
|
import { Portal, cssModules, isDeviceIphone } from "../../bpk-react-utils";
|
|
21
|
-
import STYLES from "./BpkModal.module.css";
|
|
22
21
|
import BpkModalInner from "./BpkModalInner";
|
|
22
|
+
import STYLES from "./BpkModal.module.css";
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
const getClassName = cssModules(STYLES);
|
|
25
25
|
const ScrimBpkModalInner = withScrim(BpkModalInner);
|
|
@@ -23,8 +23,7 @@ import BpkCloseButton from "../../bpk-component-close-button";
|
|
|
23
23
|
import BpkNavigationBar from "../../bpk-component-navigation-bar";
|
|
24
24
|
import { TransitionInitialMount, cssModules } from "../../bpk-react-utils";
|
|
25
25
|
import STYLES from "./BpkModalInner.module.css";
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
const getClassName = cssModules(STYLES);
|
|
29
28
|
const BpkModalInner = ({
|
|
30
29
|
accessoryView = null,
|
|
@@ -23,8 +23,7 @@ import BpkCloseButton from "../../../bpk-component-close-button";
|
|
|
23
23
|
import BpkText, { TEXT_STYLES } from "../../../bpk-component-text";
|
|
24
24
|
import { cssModules, withDefaultProps } from "../../../bpk-react-utils";
|
|
25
25
|
import STYLES from "./BpKModal.module.css";
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
const getClassName = cssModules(STYLES);
|
|
29
28
|
const Header = ({
|
|
30
29
|
closeLabel,
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
import { cssModules } from "../../bpk-react-utils";
|
|
20
20
|
import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
|
|
21
21
|
import STYLES from "./BpkNavigationBar.module.css";
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const getClassNames = cssModules(STYLES);
|
|
25
24
|
export const BAR_STYLES = {
|
|
26
25
|
default: 'default',
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
20
20
|
import { BpkButtonLink } from "../../bpk-component-link";
|
|
21
21
|
import { cssModules } from "../../bpk-react-utils";
|
|
22
|
-
import STYLES from "./BpkNavigationBarButtonLink.module.css";
|
|
23
22
|
import { BAR_STYLES } from "./BpkNavigationBar";
|
|
23
|
+
import STYLES from "./BpkNavigationBarButtonLink.module.css";
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
const getClassName = cssModules(STYLES);
|
|
26
26
|
const BpkNavigationBarButtonLink = ({
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
20
20
|
import BpkIconButton from "../../bpk-component-close-button";
|
|
21
21
|
import { cssModules } from "../../bpk-react-utils";
|
|
22
|
-
import STYLES from "./BpkNavigationBarIconButton.module.css";
|
|
23
22
|
import { BAR_STYLES } from "./BpkNavigationBar";
|
|
23
|
+
import STYLES from "./BpkNavigationBarIconButton.module.css";
|
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
const getClassName = cssModules(STYLES);
|
|
26
26
|
const BpkNavigationBarIconButton = ({
|
|
@@ -24,8 +24,7 @@ import MinusIcon from "../../bpk-component-icon/sm/minus";
|
|
|
24
24
|
import PlusIcon from "../../bpk-component-icon/sm/plus";
|
|
25
25
|
import { cssModules } from "../../bpk-react-utils";
|
|
26
26
|
import STYLES from "./BpkNudger.module.css";
|
|
27
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
28
|
const getClassName = cssModules(STYLES);
|
|
30
29
|
const AlignedMinusIcon = withButtonAlignment(MinusIcon);
|
|
31
30
|
const AlignedPlusIcon = withButtonAlignment(PlusIcon);
|
|
@@ -22,8 +22,7 @@ import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
|
|
|
22
22
|
import BpkLabel from "../../bpk-component-label";
|
|
23
23
|
import BpkConfigurableNudger from "./BpkConfigurableNudger";
|
|
24
24
|
import STYLES from "./BpkNudger.module.css";
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const getClassName = cssModules(STYLES);
|
|
28
27
|
const compareValues = (a, b) => a - b;
|
|
29
28
|
const incrementValue = currentValue => currentValue + 1;
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import { cssModules } from "../../bpk-react-utils";
|
|
20
20
|
import STYLES from "./BpkOverlay.module.css";
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
const getClassName = cssModules(STYLES);
|
|
24
23
|
export const OVERLAY_TYPES = {
|
|
25
24
|
solidLow: 'solidLow',
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
import { cssModules } from "../../bpk-react-utils";
|
|
19
19
|
import NavButton, { DIRECTIONS } from "./NavButton";
|
|
20
20
|
import STYLES from "./BpkPageIndicator.module.css";
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
const getClassName = cssModules(STYLES);
|
|
24
23
|
const DISPLAYED_TOTAL = 5;
|
|
25
24
|
const START_SCROLL_INDEX = Math.floor(DISPLAYED_TOTAL / 2);
|
|
@@ -21,8 +21,7 @@ import { cssModules } from "../../bpk-react-utils";
|
|
|
21
21
|
import BpkPaginationList from "./BpkPaginationList";
|
|
22
22
|
import BpkPaginationNudger from "./BpkPaginationNudger";
|
|
23
23
|
import STYLES from "./BpkPagination.module.css";
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
25
|
const getClassName = cssModules(STYLES);
|
|
27
26
|
const handlePageChange = (onPageChange, pageCount) => nextPageIndex => {
|
|
28
27
|
if (onPageChange && nextPageIndex < pageCount && nextPageIndex >= 0) {
|
|
@@ -23,8 +23,7 @@ import { withRtlSupport } from "../../bpk-component-icon";
|
|
|
23
23
|
import ArrowLeftIcon from "../../bpk-component-icon/sm/arrow-left";
|
|
24
24
|
import ArrowRightIcon from "../../bpk-component-icon/sm/arrow-right";
|
|
25
25
|
import STYLES from "./BpkPaginationNudger.module.css";
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
const getClassName = cssModules(STYLES);
|
|
29
28
|
const AlignedArrowLeftIcon = withRtlSupport(ArrowLeftIcon);
|
|
30
29
|
const AlignedArrowRightIcon = withRtlSupport(ArrowRightIcon);
|
|
@@ -20,8 +20,7 @@ import BpkInput, { INPUT_TYPES } from "../../bpk-component-input";
|
|
|
20
20
|
import BpkLabel from "../../bpk-component-label";
|
|
21
21
|
import BpkSelect from "../../bpk-component-select";
|
|
22
22
|
import STYLES from "./BpkPhoneInput.module.css";
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
24
|
const getClassName = cssModules(STYLES);
|
|
26
25
|
const BpkPhoneInput = props => {
|
|
27
26
|
const {
|
|
@@ -19,10 +19,9 @@ import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
|
|
|
19
19
|
import { BpkButtonLink } from "../../bpk-component-link";
|
|
20
20
|
import BpkCloseButton from "../../bpk-component-close-button";
|
|
21
21
|
import { TransitionInitialMount, cssModules } from "../../bpk-react-utils";
|
|
22
|
-
import STYLES from "./BpkPopover.module.css";
|
|
23
22
|
import { ARROW_ID } from "./constants";
|
|
24
|
-
import
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import STYLES from "./BpkPopover.module.css";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
25
|
const getClassName = cssModules(STYLES);
|
|
27
26
|
const EVENT_SOURCES = {
|
|
28
27
|
CLOSE_BUTTON: 'CLOSE_BUTTON',
|
|
@@ -14,17 +14,15 @@
|
|
|
14
14
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
|
-
*/import
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
17
|
+
*/import PropTypes from 'prop-types';
|
|
19
18
|
import { Component } from 'react';
|
|
19
|
+
import { createPopper } from '@popperjs/core';
|
|
20
20
|
import focusStore from 'a11y-focus-store';
|
|
21
21
|
import { Portal, cssModules } from "../../bpk-react-utils";
|
|
22
22
|
import keyboardFocusScope from "./keyboardFocusScope";
|
|
23
|
-
import STYLES from "./BpkPopover.module.css";
|
|
24
23
|
import BpkPopover from "./BpkPopover";
|
|
25
|
-
import
|
|
26
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import STYLES from "./BpkPopover.module.css";
|
|
25
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
26
|
const getClassName = cssModules(STYLES);
|
|
29
27
|
class BpkPopoverPortal extends Component {
|
|
30
28
|
constructor() {
|
|
@@ -17,10 +17,9 @@
|
|
|
17
17
|
*/import PropTypes from 'prop-types';
|
|
18
18
|
import { cssModules } from "../../bpk-react-utils";
|
|
19
19
|
import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
|
|
20
|
-
import STYLES from "./BpkPrice.module.css";
|
|
21
20
|
import { SIZES, ALIGNS } from "./common-types";
|
|
22
|
-
import
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import STYLES from "./BpkPrice.module.css";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const getClassName = cssModules(STYLES);
|
|
25
24
|
const BpkPrice = props => {
|
|
26
25
|
const {
|
|
@@ -19,8 +19,7 @@ import { Component } from 'react';
|
|
|
19
19
|
import clamp from 'lodash.clamp';
|
|
20
20
|
import { cssModules } from "../../bpk-react-utils";
|
|
21
21
|
import STYLES from "./BpkProgress.module.css";
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const getClassName = cssModules(STYLES);
|
|
25
24
|
const isTransitionEndSupported = () => !!(typeof window !== 'undefined' && 'TransitionEvent' in window);
|
|
26
25
|
const renderSteps = numberOfSteps => {
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
*/import PropTypes from 'prop-types';
|
|
18
18
|
import { cssModules } from "../../bpk-react-utils";
|
|
19
19
|
import STYLES from "./BpkRadio.module.css";
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
21
|
const getClassName = cssModules(STYLES);
|
|
23
22
|
const BpkRadio = props => {
|
|
24
23
|
const {
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
import clamp from 'lodash.clamp';
|
|
19
19
|
import { cssModules } from "../../bpk-react-utils";
|
|
20
20
|
import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
|
|
21
|
-
import STYLES from "./BpkRating.module.css";
|
|
22
21
|
import { RATING_SIZES, RATING_SCALES } from "./common-types";
|
|
23
|
-
import
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
import STYLES from "./BpkRating.module.css";
|
|
23
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
25
24
|
const getClassName = cssModules(STYLES);
|
|
26
25
|
const getMinValue = () =>
|
|
27
26
|
// Currently the min value is zero no matter what scale is used.
|
|
@@ -20,8 +20,7 @@ import { cssModules } from "../../bpk-react-utils";
|
|
|
20
20
|
import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
|
|
21
21
|
import { BpkCalendarGrid } from "../../bpk-component-calendar";
|
|
22
22
|
import STYLES from "./BpkScrollableCalendarGrid.module.css";
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
24
|
const getClassName = cssModules(STYLES);
|
|
26
25
|
const BpkScrollableCalendarGrid = ({
|
|
27
26
|
className,
|
|
@@ -22,9 +22,9 @@ import { VariableSizeList as List } from 'react-window';
|
|
|
22
22
|
import AutoSizer from 'react-virtualized-auto-sizer';
|
|
23
23
|
import { cssModules } from "../../bpk-react-utils";
|
|
24
24
|
import { CALENDAR_SELECTION_TYPE, DateUtils } from "../../bpk-component-calendar";
|
|
25
|
-
import STYLES from "./BpkScrollableCalendarGridList.module.css";
|
|
26
25
|
import BpkScrollableCalendarGrid from "./BpkScrollableCalendarGrid";
|
|
27
26
|
import { getMonthsArray, getMonthItemHeights } from "./utils";
|
|
27
|
+
import STYLES from "./BpkScrollableCalendarGridList.module.css";
|
|
28
28
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
29
|
const getClassName = cssModules(STYLES);
|
|
30
30
|
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
import { cssModules } from "../../bpk-react-utils";
|
|
20
20
|
import BpkText from "../../bpk-component-text";
|
|
21
21
|
import STYLES from "./BpkSectionHeader.module.css";
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const getClassName = cssModules(STYLES);
|
|
25
24
|
export const SECTION_TYPES = {
|
|
26
25
|
default: 'default',
|
|
@@ -19,8 +19,7 @@ import { cssModules } from "../../bpk-react-utils";
|
|
|
19
19
|
import BpkLargeChevronRightIcon from "../../bpk-component-icon/lg/chevron-right";
|
|
20
20
|
import { withRtlSupport } from "../../bpk-component-icon";
|
|
21
21
|
import STYLES from "./BpkSectionListItem.module.css";
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const BpkLargeChevronRightIconWithRtlSupport = withRtlSupport(BpkLargeChevronRightIcon);
|
|
25
24
|
const getClassName = cssModules(STYLES);
|
|
26
25
|
const BpkSectionListItem = props => {
|
|
@@ -19,8 +19,7 @@ import { Children } from 'react';
|
|
|
19
19
|
import { cssModules } from "../../bpk-react-utils";
|
|
20
20
|
import BpkText, { TEXT_STYLES } from "../../bpk-component-text";
|
|
21
21
|
import STYLES from "./BpkSectionListSection.module.css";
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const getClassName = cssModules(STYLES);
|
|
25
24
|
const BpkSectionListSection = props => {
|
|
26
25
|
const {
|