@skyscanner/backpack-web 0.0.3 → 0.0.4
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/BpkAccordion.js +1 -1
- package/bpk-component-accordion/src/BpkAccordionItem.js +2 -2
- package/bpk-component-accordion/src/withAccordionItemState.js +2 -2
- package/bpk-component-accordion/src/withSingleItemAccordionState.js +1 -1
- package/bpk-component-aria-live/examples.js +1 -1
- package/bpk-component-aria-live/src/BpkAriaLive.js +1 -1
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +1 -1
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -1
- package/bpk-component-badge/BadgeLayout.js +1 -1
- package/bpk-component-badge/src/BpkBadge.js +1 -1
- package/bpk-component-banner-alert/examples.js +1 -1
- package/bpk-component-banner-alert/src/AnimateAndFade.js +2 -2
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +2 -2
- package/bpk-component-banner-alert/src/withBannerAlertState.js +1 -1
- package/bpk-component-barchart/examples.js +1 -1
- package/bpk-component-barchart/hocs.js +1 -1
- package/bpk-component-barchart/src/BpkBarchart.js +1 -1
- package/bpk-component-barchart/src/BpkBarchartBar.js +1 -1
- package/bpk-component-barchart/src/BpkChartAxis.js +1 -1
- package/bpk-component-barchart/src/BpkChartDataTable.js +1 -1
- package/bpk-component-barchart/src/BpkChartGridLines.js +9 -9
- package/bpk-component-barchart/src/RTLtransforms.js +1 -1
- package/bpk-component-blockquote/src/BpkBlockquote.js +1 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +1 -1
- package/bpk-component-breakpoint/examples.js +1 -1
- package/bpk-component-calendar/src/BpkCalendarContainer.js +1 -1
- package/bpk-component-calendar/src/BpkCalendarDate.js +1 -1
- package/bpk-component-calendar/src/BpkCalendarGrid.js +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridHeader.js +1 -1
- package/bpk-component-calendar/src/BpkCalendarGridTransition.js +12 -12
- package/bpk-component-calendar/src/BpkCalendarNav.js +1 -1
- package/bpk-component-calendar/src/Week.js +2 -2
- package/bpk-component-calendar/src/composeCalendar.js +1 -1
- package/bpk-component-card/src/BpkCard.js +1 -1
- package/bpk-component-checkbox/src/BpkCheckbox.js +1 -1
- package/bpk-component-chip/examples.js +1 -1
- package/bpk-component-chip/src/BpkSelectableChip.js +1 -1
- package/bpk-component-close-button/src/BpkCloseButton.js +1 -1
- package/bpk-component-code/src/BpkCode.js +1 -1
- package/bpk-component-code/src/BpkCodeBlock.js +1 -1
- package/bpk-component-content-container/src/BpkContentContainer.js +1 -1
- package/bpk-component-datatable/src/BpkDataTable.js +1 -1
- package/bpk-component-datatable/src/BpkDataTableColumn.js +1 -1
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +1 -1
- package/bpk-component-datepicker/src/BpkDatepicker.js +1 -1
- package/bpk-component-description-list/src/ComponentFactory.js +1 -1
- package/bpk-component-dialog/examples.js +1 -1
- package/bpk-component-dialog/src/BpkDialog.js +1 -1
- package/bpk-component-dialog/src/BpkDialogInner.js +2 -2
- package/bpk-component-drawer/examples.js +1 -1
- package/bpk-component-drawer/src/BpkDrawer.js +2 -2
- package/bpk-component-drawer/src/BpkDrawerContent.js +1 -1
- package/bpk-component-fieldset/examples.js +1 -1
- package/bpk-component-fieldset/src/BpkFieldset.js +1 -1
- package/bpk-component-flare/examples.js +1 -1
- package/bpk-component-flare/src/BpkContentBubble.js +1 -1
- package/bpk-component-flare/src/BpkFlareBar.js +1 -1
- package/bpk-component-form-validation/examples.js +1 -1
- package/bpk-component-form-validation/src/BpkFormValidation.js +2 -2
- package/bpk-component-grid/src/BpkGridColumn.js +1 -1
- package/bpk-component-grid/src/BpkGridContainer.js +1 -1
- package/bpk-component-grid/src/BpkGridRow.js +1 -1
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +1 -1
- package/bpk-component-horizontal-nav/examples.js +1 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +1 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +1 -1
- package/bpk-component-icon/src/classNameModifierHOCFactory.js +1 -1
- package/bpk-component-icon/src/withAlignment.js +3 -4
- package/bpk-component-icon/src/withDescription.js +1 -1
- package/bpk-component-icon/src/withRtlSupport.js +1 -1
- package/bpk-component-image/src/BpkBackgroundImage.js +1 -1
- package/bpk-component-image/src/BpkImage.js +1 -1
- package/bpk-component-image/src/withLazyLoading.js +1 -1
- package/bpk-component-image/src/withLoadingBehavior.js +28 -28
- package/bpk-component-infinite-scroll/examples.js +1 -1
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +106 -106
- package/bpk-component-input/examples.js +1 -1
- package/bpk-component-input/src/BpkClearButton.js +1 -1
- package/bpk-component-input/src/BpkInput.js +1 -1
- package/bpk-component-input/src/withOpenEvents.js +1 -1
- package/bpk-component-label/src/BpkLabel.js +1 -1
- package/bpk-component-link/src/BpkButtonLink.js +1 -1
- package/bpk-component-link/src/BpkLink.js +1 -1
- package/bpk-component-list/src/BpkList.js +1 -1
- package/bpk-component-list/src/BpkListItem.js +1 -1
- package/bpk-component-map/src/BpkIconMarker.js +1 -1
- package/bpk-component-map/src/BpkIconMarkerBackground.js +1 -1
- package/bpk-component-map/src/BpkPriceMarker.js +1 -1
- package/bpk-component-map/src/DefaultLoadingElement.js +1 -1
- package/bpk-component-mobile-scroll-container/examples.js +1 -1
- package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.js +1 -1
- package/bpk-component-modal/examples.js +1 -1
- package/bpk-component-modal/src/BpkModal.js +8 -8
- package/bpk-component-modal/src/BpkModalInner.js +1 -1
- package/bpk-component-navigation-bar/AirlineLogo.js +1 -1
- package/bpk-component-navigation-bar/examples.js +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +1 -1
- package/bpk-component-navigation-stack/examples.js +1 -1
- package/bpk-component-navigation-stack/src/BpkNavigationStack.js +4 -5
- package/bpk-component-navigation-stack/stories-components.js +1 -1
- package/bpk-component-nudger/examples.js +1 -1
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +1 -1
- package/bpk-component-nudger/src/BpkNudger.js +1 -1
- package/bpk-component-overlay/examples.js +1 -1
- package/bpk-component-overlay/src/BpkOverlay.js +2 -2
- package/bpk-component-pagination/src/BpkPagination.js +1 -1
- package/bpk-component-pagination/src/BpkPaginationList.js +1 -1
- package/bpk-component-pagination/src/BpkPaginationNudger.js +1 -1
- package/bpk-component-pagination/src/BpkPaginationPage.js +1 -1
- package/bpk-component-panel/src/BpkPanel.js +1 -1
- package/bpk-component-phone-input/src/BpkPhoneInput.js +1 -1
- package/bpk-component-popover/examples.js +1 -1
- package/bpk-component-popover/src/BpkPopover.js +1 -1
- package/bpk-component-popover/src/BpkPopoverPortal.js +1 -1
- package/bpk-component-progress/examples.js +1 -1
- package/bpk-component-progress/src/BpkProgress.js +1 -1
- package/bpk-component-radio/src/BpkRadio.js +1 -1
- package/bpk-component-rating/examples.js +1 -1
- package/bpk-component-rating/src/BpkRating.js +1 -1
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +1 -1
- package/bpk-component-section-list/src/BpkSectionListItem.js +1 -1
- package/bpk-component-section-list/src/BpkSectionListSection.js +1 -1
- package/bpk-component-select/src/BpkSelect.js +1 -1
- package/bpk-component-skip-link/src/BpkSkipLink.js +1 -1
- package/bpk-component-slider/src/BpkSlider.js +1 -1
- package/bpk-component-spinner/SpinnerLayout.js +1 -1
- package/bpk-component-spinner/src/BpkExtraLargeSpinner.js +1 -1
- package/bpk-component-spinner/src/BpkLargeSpinner.js +1 -1
- package/bpk-component-spinner/src/BpkSpinner.js +1 -1
- package/bpk-component-star-rating/src/BpkInteractiveStar.js +1 -1
- package/bpk-component-star-rating/src/BpkInteractiveStarRating.js +1 -1
- package/bpk-component-star-rating/src/BpkStar.js +1 -1
- package/bpk-component-star-rating/src/BpkStarRating.js +4 -4
- package/bpk-component-star-rating/src/withInteractiveStarRatingState.js +1 -1
- package/bpk-component-switch/src/BpkSwitch.js +1 -1
- package/bpk-component-table/src/BpkTable.js +1 -1
- package/bpk-component-table/src/BpkTableCell.js +1 -1
- package/bpk-component-table/src/BpkTableHeadCell.js +1 -1
- package/bpk-component-text/examples.js +1 -1
- package/bpk-component-text/src/BpkText.js +1 -1
- package/bpk-component-textarea/src/BpkTextarea.js +1 -1
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +1 -1
- package/bpk-component-theme-toggle/src/updateOnThemeChange.js +1 -1
- package/bpk-component-ticket/examples.js +1 -1
- package/bpk-component-ticket/src/BpkTicket.js +7 -7
- package/bpk-component-tooltip/examples.js +1 -1
- package/bpk-component-tooltip/src/BpkTooltip.js +1 -1
- package/bpk-component-tooltip/src/BpkTooltipPortal.js +1 -1
- package/bpk-scrim-utils/src/BpkScrim.js +1 -1
- package/bpk-scrim-utils/src/withScrim.js +1 -1
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
24
24
|
|
|
25
25
|
import { STAR_TYPES } from './BpkStar';
|
|
26
26
|
import BpkInteractiveStar from './BpkInteractiveStar';
|
|
@@ -27,7 +27,7 @@ import OutlineLargeIcon from '../../bpk-component-icon/lg/star-outline';
|
|
|
27
27
|
import HalfSmallIcon from '../../bpk-component-icon/sm/star-half';
|
|
28
28
|
import HalfLargeIcon from '../../bpk-component-icon/lg/star-half';
|
|
29
29
|
import { withRtlSupport } from '../../bpk-component-icon';
|
|
30
|
-
import { cssModules } from 'bpk-react-utils';
|
|
30
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
31
31
|
|
|
32
32
|
import STYLES from './BpkStar.module.scss';
|
|
33
33
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
24
24
|
|
|
25
25
|
import BpkStar, { STAR_TYPES } from './BpkStar';
|
|
26
26
|
import STYLES from './BpkStarRating.module.scss';
|
|
@@ -53,9 +53,9 @@ type Props = {
|
|
|
53
53
|
maxRating: number,
|
|
54
54
|
rating: number,
|
|
55
55
|
rounding:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
| typeof ROUNDING_TYPES.down
|
|
57
|
+
| typeof ROUNDING_TYPES.up
|
|
58
|
+
| typeof ROUNDING_TYPES.nearest,
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
const BpkStarRating = (props: Props) => {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { Component, type ComponentType } from 'react';
|
|
23
|
-
import { wrapDisplayName } from 'bpk-react-utils';
|
|
23
|
+
import { wrapDisplayName } from '../../bpk-react-utils';
|
|
24
24
|
|
|
25
25
|
const withInteractiveStarRatingState = (
|
|
26
26
|
InteractiveStarRating: ComponentType<any>,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type Node } from 'react';
|
|
23
|
-
import { cssModules, deprecated } from 'bpk-react-utils';
|
|
23
|
+
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
24
24
|
|
|
25
25
|
import STYLES from './BpkText.module.scss';
|
|
26
26
|
|
|
@@ -20,7 +20,7 @@ import React from 'react';
|
|
|
20
20
|
import Konami from 'konami';
|
|
21
21
|
import BpkLabel from '../../bpk-component-label';
|
|
22
22
|
import BpkSelect from '../../bpk-component-select';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
24
24
|
|
|
25
25
|
import STYLES from './BpkThemeToggle.module.scss';
|
|
26
26
|
import bpkCustomThemes from './theming';
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import React, { Component } from 'react';
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
|
-
import { wrapDisplayName } from 'bpk-react-utils';
|
|
21
|
+
import { wrapDisplayName } from '../../bpk-react-utils';
|
|
22
22
|
|
|
23
23
|
import { getHtmlElement, THEME_CHANGE_EVENT } from './utils';
|
|
24
24
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React from 'react';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
+
import { cssModules } from '../bpk-react-utils';
|
|
24
24
|
import BpkButton from '../../bpk-component-button';
|
|
25
25
|
import ArrowRightIcon from '../../bpk-component-icon/sm/long-arrow-right';
|
|
26
26
|
import { withButtonAlignment, withRtlSupport } from '../../bpk-component-icon';
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type Node } from 'react';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
24
24
|
|
|
25
25
|
import STYLES from './BpkTicket.module.scss';
|
|
26
26
|
|
|
@@ -93,13 +93,13 @@ const BpkTicket = (props: Props) => {
|
|
|
93
93
|
const punchlineClassNames = getClassName(
|
|
94
94
|
'bpk-ticket__punchline',
|
|
95
95
|
vertical &&
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
(withNotches
|
|
97
|
+
? 'bpk-ticket__punchline--horizontal-with-notches'
|
|
98
|
+
: 'bpk-ticket__punchline--horizontal'),
|
|
99
99
|
!vertical &&
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
(withNotches
|
|
101
|
+
? 'bpk-ticket__punchline--vertical-with-notches'
|
|
102
|
+
: 'bpk-ticket__punchline--vertical'),
|
|
103
103
|
);
|
|
104
104
|
|
|
105
105
|
const startNotchClassNames = getClassName(
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { withDefaultProps } from 'bpk-react-utils';
|
|
22
|
+
import { withDefaultProps } from '../bpk-react-utils';
|
|
23
23
|
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
24
24
|
import {
|
|
25
25
|
spacingSm,
|
|
@@ -26,7 +26,7 @@ The actual component that developers create (i.e. the default export from this p
|
|
|
26
26
|
|
|
27
27
|
import PropTypes from 'prop-types';
|
|
28
28
|
import React, { type Node } from 'react';
|
|
29
|
-
import { TransitionInitialMount, cssModules } from 'bpk-react-utils';
|
|
29
|
+
import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
|
|
30
30
|
|
|
31
31
|
import STYLES from './BpkTooltip.module.scss';
|
|
32
32
|
import { ARROW_ID, TOOLTIP_TYPES } from './constants';
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import Popper from '@skyscanner/popper.js';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
23
|
import React, { Component, type Node, type Element } from 'react';
|
|
24
|
-
import { Portal, cssModules } from 'bpk-react-utils';
|
|
24
|
+
import { Portal, cssModules } from '../../bpk-react-utils';
|
|
25
25
|
|
|
26
26
|
import BpkTooltip, {
|
|
27
27
|
propTypes as tooltipPropTypes,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import React from 'react';
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
|
-
import { TransitionInitialMount, cssModules } from 'bpk-react-utils';
|
|
21
|
+
import { TransitionInitialMount, cssModules } from '../../bpk-react-utils';
|
|
22
22
|
|
|
23
23
|
import STYLES from './bpk-scrim.module.scss';
|
|
24
24
|
|