@skyscanner/backpack-web 0.0.1 → 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/README.md +100 -0
- package/bpk-animate-height/examples.js +1 -1
- package/bpk-component-accordion/examples.js +4 -4
- package/bpk-component-accordion/package.json +4 -4
- package/bpk-component-accordion/src/BpkAccordion.js +1 -1
- package/bpk-component-accordion/src/BpkAccordionItem.js +8 -8
- 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 +7 -8
- package/bpk-component-aria-live/package.json +3 -3
- package/bpk-component-aria-live/src/BpkAriaLive.js +1 -1
- package/bpk-component-autosuggest/examples.js +4 -4
- package/bpk-component-autosuggest/package.json +3 -3
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +2 -2
- package/bpk-component-autosuggest/src/BpkAutosuggestSuggestion.js +1 -1
- package/bpk-component-badge/BadgeLayout.js +1 -1
- package/bpk-component-badge/examples.js +5 -5
- package/bpk-component-badge/package.json +2 -2
- package/bpk-component-badge/src/BpkBadge.js +1 -1
- package/bpk-component-banner-alert/examples.js +4 -4
- package/bpk-component-banner-alert/package.json +4 -4
- package/bpk-component-banner-alert/src/AnimateAndFade.js +2 -2
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +7 -7
- package/bpk-component-banner-alert/src/withBannerAlertState.js +1 -1
- package/bpk-component-barchart/examples.js +4 -4
- package/bpk-component-barchart/hocs.js +1 -1
- package/bpk-component-barchart/package.json +2 -2
- package/bpk-component-barchart/src/BpkBarchart.js +2 -2
- 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/package.json +3 -3
- package/bpk-component-breadcrumb/src/BpkBreadcrumb.js +1 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +5 -5
- package/bpk-component-breakpoint/examples.js +1 -1
- package/bpk-component-calendar/examples-components.js +1 -1
- package/bpk-component-calendar/examples.js +1 -1
- package/bpk-component-calendar/package.json +4 -4
- 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 +13 -13
- package/bpk-component-calendar/src/Week.js +2 -2
- package/bpk-component-calendar/src/composeCalendar.js +1 -1
- package/bpk-component-card/examples.js +3 -3
- package/bpk-component-card/package.json +2 -2
- package/bpk-component-card/src/BpkCard.js +1 -1
- package/bpk-component-checkbox/package.json +2 -2
- package/bpk-component-checkbox/src/BpkCheckbox.js +1 -1
- package/bpk-component-chip/examples.js +12 -13
- package/bpk-component-chip/package.json +4 -4
- package/bpk-component-chip/src/BpkDismissibleChip.js +1 -1
- package/bpk-component-chip/src/BpkSelectableChip.js +3 -3
- package/bpk-component-close-button/package.json +2 -2
- package/bpk-component-close-button/src/BpkCloseButton.js +2 -2
- package/bpk-component-code/src/BpkCode.js +1 -1
- package/bpk-component-code/src/BpkCodeBlock.js +1 -1
- package/bpk-component-content-container/examples.js +2 -2
- package/bpk-component-content-container/src/BpkContentContainer.js +1 -1
- package/bpk-component-datatable/package.json +2 -2
- 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 +4 -4
- package/bpk-component-datepicker/examples.js +4 -4
- package/bpk-component-datepicker/index.js +1 -1
- package/bpk-component-datepicker/package.json +5 -5
- package/bpk-component-datepicker/src/BpkDatepicker.js +6 -6
- package/bpk-component-datepicker/src/themeAttributes.js +3 -3
- package/bpk-component-description-list/src/ComponentFactory.js +1 -1
- package/bpk-component-dialog/examples.js +7 -7
- package/bpk-component-dialog/package.json +5 -5
- package/bpk-component-dialog/src/BpkDialog.js +2 -2
- package/bpk-component-dialog/src/BpkDialogInner.js +3 -3
- package/bpk-component-drawer/examples.js +4 -4
- package/bpk-component-drawer/package.json +4 -4
- package/bpk-component-drawer/src/BpkDrawer.js +2 -2
- package/bpk-component-drawer/src/BpkDrawerContent.js +3 -3
- package/bpk-component-drawer/src/themeAttributes.js +1 -1
- package/bpk-component-fieldset/examples.js +12 -12
- package/bpk-component-fieldset/package.json +7 -7
- package/bpk-component-fieldset/src/BpkFieldset.js +3 -3
- package/bpk-component-flare/examples.js +4 -4
- package/bpk-component-flare/package.json +2 -2
- 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 +6 -6
- package/bpk-component-form-validation/package.json +4 -4
- package/bpk-component-form-validation/src/BpkFormValidation.js +4 -4
- 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 +2 -2
- package/bpk-component-horizontal-nav/examples.js +2 -2
- package/bpk-component-horizontal-nav/package.json +2 -2
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +2 -2
- package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.js +1 -1
- package/bpk-component-icon/examples.js +7 -7
- package/bpk-component-icon/package.json +2 -2
- 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/examples.js +5 -5
- package/bpk-component-image/package.json +2 -2
- package/bpk-component-image/src/BpkBackgroundImage.js +2 -2
- package/bpk-component-image/src/BpkImage.js +2 -2
- 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 +4 -4
- package/bpk-component-infinite-scroll/src/withInfiniteScroll.js +106 -106
- package/bpk-component-input/examples.js +3 -3
- package/bpk-component-input/package.json +3 -3
- package/bpk-component-input/src/BpkClearButton.js +3 -3
- 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-loading-button/examples.js +3 -3
- package/bpk-component-loading-button/package.json +2 -2
- package/bpk-component-loading-button/src/BpkLoadingButton.js +5 -5
- package/bpk-component-map/examples.js +6 -6
- package/bpk-component-map/package.json +3 -3
- 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 +4 -8
- package/bpk-component-map/src/DefaultLoadingElement.js +2 -2
- 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 +8 -8
- package/bpk-component-modal/package.json +5 -5
- package/bpk-component-modal/src/BpkModal.js +8 -8
- package/bpk-component-modal/src/BpkModalInner.js +4 -4
- package/bpk-component-modal/src/themeAttributes.js +1 -1
- package/bpk-component-navigation-bar/AirlineLogo.js +1 -1
- package/bpk-component-navigation-bar/examples.js +4 -4
- package/bpk-component-navigation-bar/package.json +4 -4
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +3 -3
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +2 -2
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +2 -2
- package/bpk-component-navigation-stack/examples.js +2 -2
- package/bpk-component-navigation-stack/package.json +3 -3
- package/bpk-component-navigation-stack/src/BpkNavigationStack.js +4 -5
- package/bpk-component-navigation-stack/stories-components.js +20 -20
- package/bpk-component-nudger/examples.js +2 -2
- package/bpk-component-nudger/package.json +2 -2
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +6 -6
- package/bpk-component-nudger/src/BpkNudger.js +1 -1
- package/bpk-component-nudger/src/themeAttributes.js +1 -1
- package/bpk-component-overlay/examples.js +3 -3
- package/bpk-component-overlay/package.json +3 -3
- package/bpk-component-overlay/src/BpkOverlay.js +2 -2
- package/bpk-component-pagination/package.json +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 +4 -4
- package/bpk-component-pagination/src/BpkPaginationPage.js +2 -2
- package/bpk-component-pagination/src/themeAttributes.js +1 -1
- package/bpk-component-panel/src/BpkPanel.js +1 -1
- package/bpk-component-phone-input/examples.js +2 -2
- package/bpk-component-phone-input/package.json +5 -5
- package/bpk-component-phone-input/src/BpkPhoneInput.js +4 -4
- package/bpk-component-popover/examples.js +6 -6
- package/bpk-component-popover/package.json +4 -4
- package/bpk-component-popover/src/BpkPopover.js +5 -5
- package/bpk-component-popover/src/BpkPopoverPortal.js +1 -1
- package/bpk-component-popover/src/themeAttributes.js +1 -1
- package/bpk-component-progress/examples.js +2 -2
- 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/package.json +2 -2
- package/bpk-component-rating/src/BpkRating.js +15 -9
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.js +1 -1
- package/bpk-component-rtl-toggle/src/updateOnDirectionChange.js +1 -1
- package/bpk-component-scrollable-calendar/examples.js +1 -1
- package/bpk-component-scrollable-calendar/index.js +1 -1
- package/bpk-component-scrollable-calendar/package.json +3 -3
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendar.js +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +4 -5
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +2 -2
- package/bpk-component-scrollable-calendar/src/utils.js +1 -1
- package/bpk-component-section-list/package.json +3 -3
- package/bpk-component-section-list/src/BpkSectionListItem.js +3 -3
- package/bpk-component-section-list/src/BpkSectionListSection.js +3 -5
- package/bpk-component-select/src/BpkSelect.js +1 -1
- package/bpk-component-skip-link/src/BpkSkipLink.js +1 -1
- package/bpk-component-slider/examples.js +9 -9
- 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/examples.js +1 -1
- package/bpk-component-star-rating/package.json +2 -2
- 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 +8 -8
- 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 +18 -18
- package/bpk-component-text/package.json +1 -1
- package/bpk-component-text/src/BpkText.js +2 -2
- package/bpk-component-textarea/examples.js +1 -1
- package/bpk-component-textarea/src/BpkTextarea.js +1 -1
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +3 -3
- package/bpk-component-theme-toggle/src/updateOnThemeChange.js +1 -1
- package/bpk-component-ticket/examples.js +4 -4
- package/bpk-component-ticket/package.json +2 -2
- package/bpk-component-ticket/src/BpkTicket.js +7 -7
- package/bpk-component-tooltip/examples.js +4 -4
- package/bpk-component-tooltip/package.json +2 -2
- 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 +2 -2
- package/bpk-component-heading/README.md +0 -31
- package/bpk-component-heading/examples.js +0 -36
- package/bpk-component-heading/index.js +0 -23
- package/bpk-component-heading/package.json +0 -25
- package/bpk-component-heading/src/BpkHeading.js +0 -70
- package/bpk-component-heading/src/BpkHeading.module.css +0 -18
- package/bpk-component-heading/src/BpkHeading.module.scss +0 -49
- package/bpk-component-paragraph/README.md +0 -28
- package/bpk-component-paragraph/examples.js +0 -46
- package/bpk-component-paragraph/index.js +0 -23
- package/bpk-component-paragraph/package.json +0 -25
- package/bpk-component-paragraph/src/BpkParagraph.js +0 -55
- package/bpk-component-paragraph/src/BpkParagraph.module.css +0 -18
- package/bpk-component-paragraph/src/BpkParagraph.module.scss +0 -25
- package/bpk-tether/.eslintrc +0 -6
- package/bpk-tether/README.md +0 -52
- package/bpk-tether/index.js +0 -24
- package/bpk-tether/package.json +0 -19
- package/bpk-tether/src/TetherWrapper.js +0 -30
- package/bpk-tether/src/applyRTLTransforms.js +0 -49
- package/bpk-tether/src/getArrowPositionCallback.js +0 -65
|
@@ -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 { ORIENTATION_X, ORIENTATION_Y } from './orientation';
|
|
26
26
|
import { identity, center } from './utils';
|
|
@@ -66,15 +66,15 @@ const BpkChartGridLines = (props: Props) => {
|
|
|
66
66
|
const value = position(tick);
|
|
67
67
|
return orientation === ORIENTATION_X
|
|
68
68
|
? {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
x1: value,
|
|
70
|
+
x2: value,
|
|
71
|
+
y2: height - margin.top - margin.bottom,
|
|
72
|
+
}
|
|
73
73
|
: {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
x2: width - margin.left - margin.right,
|
|
75
|
+
y1: value,
|
|
76
|
+
y2: value,
|
|
77
|
+
};
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
const toLine = (tick, i) => (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-breadcrumb",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Backpack breadcrumb 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-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-component-link": "^3.1.0",
|
|
19
|
-
"bpk-component-text": "^6.1.
|
|
19
|
+
"bpk-component-text": "^6.1.1",
|
|
20
20
|
"bpk-mixins": "^26.1.0",
|
|
21
21
|
"bpk-react-utils": "^4.1.0",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type Node } from 'react';
|
|
23
|
-
import BpkLink from 'bpk-component-link';
|
|
24
|
-
import BpkText from 'bpk-component-text';
|
|
25
|
-
import { cssModules } from 'bpk-react-utils';
|
|
26
|
-
import { withRtlSupport } from 'bpk-component-icon';
|
|
27
|
-
import ArrowRight from 'bpk-component-icon/sm/arrow-right';
|
|
23
|
+
import BpkLink from '../../bpk-component-link';
|
|
24
|
+
import BpkText from '../../bpk-component-text';
|
|
25
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
26
|
+
import { withRtlSupport } from '../../bpk-component-icon';
|
|
27
|
+
import ArrowRight from '../../bpk-component-icon/sm/arrow-right';
|
|
28
28
|
|
|
29
29
|
import STYLES from './BpkBreadcrumbItem.module.scss';
|
|
30
30
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import React, { Component } from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
|
-
import BpkButton from 'bpk-component-button';
|
|
23
|
+
import BpkButton from '../../bpk-component-button';
|
|
24
24
|
import addMonths from 'date-fns/addMonths';
|
|
25
25
|
import {
|
|
26
26
|
colorWhite,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import { action } from 'bpk-storybook-utils';
|
|
20
20
|
import addMonths from 'date-fns/addMonths';
|
|
21
|
-
import BpkText from 'bpk-component-text';
|
|
21
|
+
import BpkText from '../../bpk-component-text';
|
|
22
22
|
import startOfDay from 'date-fns/startOfDay';
|
|
23
23
|
import parseDate from 'date-fns/parse';
|
|
24
24
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-calendar",
|
|
3
|
-
"version": "11.1.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"description": "Backpack calendar component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
18
|
-
"bpk-component-aria-live": "^2.1.
|
|
19
|
-
"bpk-component-icon": "^9.2.
|
|
18
|
+
"bpk-component-aria-live": "^2.1.1",
|
|
19
|
+
"bpk-component-icon": "^9.2.1",
|
|
20
20
|
"bpk-component-select": "^5.1.0",
|
|
21
21
|
"bpk-mixins": "^26.1.0",
|
|
22
22
|
"bpk-react-utils": "^4.1.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"bpk-component-button": "^5.1.0",
|
|
31
|
-
"bpk-component-text": "^6.1.
|
|
31
|
+
"bpk-component-text": "^6.1.1",
|
|
32
32
|
"bpk-storybook-utils": "^1.1.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React, { Component } from 'react';
|
|
21
|
-
import { deprecated, isRTL } from 'bpk-react-utils';
|
|
21
|
+
import { deprecated, isRTL } from '../../bpk-react-utils';
|
|
22
22
|
|
|
23
23
|
import CustomPropTypes, { CALENDAR_SELECTION_TYPE } from './custom-proptypes';
|
|
24
24
|
import BpkCalendarNav from './BpkCalendarNav';
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React, { PureComponent } from 'react';
|
|
21
|
-
import { cssModules } from 'bpk-react-utils';
|
|
21
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
22
22
|
|
|
23
23
|
import CustomPropTypes from './custom-proptypes';
|
|
24
24
|
import STYLES from './BpkCalendarDate.module.scss';
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React, { Component } from 'react';
|
|
21
|
-
import { cssModules, deprecated, isDeviceIos } from 'bpk-react-utils';
|
|
21
|
+
import { cssModules, deprecated, isDeviceIos } from '../../bpk-react-utils';
|
|
22
22
|
|
|
23
23
|
import BpkCalendarGridHeader from './BpkCalendarGridHeader';
|
|
24
24
|
import Week from './Week';
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React, { PureComponent } from 'react';
|
|
21
|
-
import { cssModules, deprecated } from 'bpk-react-utils';
|
|
21
|
+
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
22
22
|
|
|
23
23
|
import CustomPropTypes from './custom-proptypes';
|
|
24
24
|
import { orderDaysOfWeek } from './date-utils';
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React, { Component } from 'react';
|
|
21
|
-
import { cssModules, isRTL } from 'bpk-react-utils';
|
|
21
|
+
import { cssModules, isRTL } from '../../bpk-react-utils';
|
|
22
22
|
|
|
23
23
|
import {
|
|
24
24
|
getCalendarGridWidth,
|
|
@@ -172,11 +172,11 @@ class BpkCalendarGridTransition extends Component {
|
|
|
172
172
|
index === 1
|
|
173
173
|
? focusedDate
|
|
174
174
|
: getFocusedDateForMonth(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
m,
|
|
176
|
+
focusedDate,
|
|
177
|
+
rest.minDate,
|
|
178
|
+
rest.maxDate,
|
|
179
|
+
)
|
|
180
180
|
}
|
|
181
181
|
aria-hidden={index !== 1}
|
|
182
182
|
className={getClassName('bpk-calendar-grid-transition__grid')}
|
|
@@ -208,12 +208,12 @@ BpkCalendarGridTransition.defaultProps = {
|
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
const addCalendarGridTransition = (TransitionComponent) => (props) =>
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
211
|
+
(
|
|
212
|
+
<BpkCalendarGridTransition
|
|
213
|
+
TransitionComponent={TransitionComponent}
|
|
214
|
+
{...props}
|
|
215
|
+
/>
|
|
216
|
+
);
|
|
217
217
|
|
|
218
218
|
export default BpkCalendarGridTransition;
|
|
219
219
|
export { addCalendarGridTransition };
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import ArrowLeftIcon from 'bpk-component-icon/lg/arrow-left';
|
|
22
|
-
import ArrowRightIcon from 'bpk-component-icon/lg/arrow-right';
|
|
23
|
-
import BpkSelect from 'bpk-component-select';
|
|
24
|
-
import { cssModules } from 'bpk-react-utils';
|
|
25
|
-
import BpkAriaLive from 'bpk-component-aria-live';
|
|
21
|
+
import ArrowLeftIcon from '../../bpk-component-icon/lg/arrow-left';
|
|
22
|
+
import ArrowRightIcon from '../../bpk-component-icon/lg/arrow-right';
|
|
23
|
+
import BpkSelect from '../../bpk-component-select';
|
|
24
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
25
|
+
import BpkAriaLive from '../../bpk-component-aria-live';
|
|
26
26
|
|
|
27
27
|
import {
|
|
28
28
|
addMonths,
|
|
@@ -39,14 +39,14 @@ const getClassName = cssModules(STYLES);
|
|
|
39
39
|
|
|
40
40
|
const changeMonth =
|
|
41
41
|
({ callback, max, min, month, source }) =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
(event) => {
|
|
43
|
+
// Safeguard for disabled buttons is due to React bug in Chrome: https://github.com/facebook/react/issues/8308
|
|
44
|
+
// PR: https://github.com/facebook/react/pull/8329 - unresolved as of 22/12/2016
|
|
45
|
+
if (isWithinRange(month, { start: min, end: max })) {
|
|
46
|
+
event.persist();
|
|
47
|
+
callback(event, { month, source });
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
50
|
|
|
51
51
|
const BpkCalendarNav = (props) => {
|
|
52
52
|
const {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React, { Component } from 'react';
|
|
21
|
-
import { cssModules, deprecated } from 'bpk-react-utils';
|
|
21
|
+
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
22
22
|
|
|
23
23
|
import {
|
|
24
24
|
isSameDay,
|
|
@@ -249,7 +249,7 @@ class Week extends Component {
|
|
|
249
249
|
// render, component should update.
|
|
250
250
|
if (
|
|
251
251
|
this.props.selectionConfiguration.type ===
|
|
252
|
-
|
|
252
|
+
CALENDAR_SELECTION_TYPE.single &&
|
|
253
253
|
this.props.selectionConfiguration.date
|
|
254
254
|
) {
|
|
255
255
|
return singleDateHandler(this.props, nextProps);
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import { cssModules, deprecated } from 'bpk-react-utils';
|
|
21
|
+
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
22
22
|
|
|
23
23
|
import CustomPropTypes, { CALENDAR_SELECTION_TYPE } from './custom-proptypes';
|
|
24
24
|
import STYLES from './BpkCalendar.module.scss';
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
/* @flow strict */
|
|
19
19
|
|
|
20
20
|
import React, { Fragment } from 'react';
|
|
21
|
-
import BpkLink from 'bpk-component-link';
|
|
22
|
-
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
21
|
+
import BpkLink from '../../bpk-component-link';
|
|
22
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
23
23
|
|
|
24
24
|
import BpkCard from './index';
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ const shortContent = 'Book your next trip on skyscanner.net.';
|
|
|
27
27
|
|
|
28
28
|
const longContent = (
|
|
29
29
|
<Fragment>
|
|
30
|
-
<BpkText tagName="h3" textStyle={TEXT_STYLES.
|
|
30
|
+
<BpkText tagName="h3" textStyle={TEXT_STYLES.bodyLongform}>
|
|
31
31
|
Let's explore
|
|
32
32
|
</BpkText>
|
|
33
33
|
<BpkText tagName="p">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-card",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack card component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"bpk-component-link": "^3.1.0",
|
|
23
|
-
"bpk-component-text": "^6.1.
|
|
23
|
+
"bpk-component-text": "^6.1.1"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.3.0 || ^17.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-checkbox",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack checkbox component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
24
|
-
import BpkText, { TEXT_STYLES
|
|
25
|
-
import BeachIconSm from 'bpk-component-icon/sm/beach';
|
|
26
|
-
import CarWashIconSm from 'bpk-component-icon/sm/car-wash';
|
|
27
|
-
import PlusIconSm from 'bpk-component-icon/sm/plus';
|
|
28
|
-
import TickIconSm from 'bpk-component-icon/sm/tick';
|
|
29
|
-
import FaceHappyIconSm from 'bpk-component-icon/sm/face--happy';
|
|
30
|
-
import { AriaLiveDemo } from 'bpk-component-aria-live/examples';
|
|
23
|
+
import { cssModules } from '../bpk-react-utils';
|
|
24
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
25
|
+
import BeachIconSm from '../../bpk-component-icon/sm/beach';
|
|
26
|
+
import CarWashIconSm from '../../bpk-component-icon/sm/car-wash';
|
|
27
|
+
import PlusIconSm from '../../bpk-component-icon/sm/plus';
|
|
28
|
+
import TickIconSm from '../../bpk-component-icon/sm/tick';
|
|
29
|
+
import FaceHappyIconSm from '../../bpk-component-icon/sm/face--happy';
|
|
30
|
+
import { AriaLiveDemo } from '../../bpk-component-aria-live/examples';
|
|
31
31
|
|
|
32
32
|
import STYLES from './examples.module.scss';
|
|
33
33
|
import { COMMON_PROP_TYPES, COMMON_DEFAULT_PROPS } from './src/commonTypes';
|
|
@@ -47,7 +47,7 @@ type StatefulSelectableChipProps = $Diff<
|
|
|
47
47
|
accessibilityLabel: string,
|
|
48
48
|
onClick: (event: SyntheticEvent<>) => mixed,
|
|
49
49
|
},
|
|
50
|
-
>;
|
|
50
|
+
>;
|
|
51
51
|
/* eslint-enable */
|
|
52
52
|
|
|
53
53
|
class StatefulSelectableChip extends React.Component<
|
|
@@ -178,8 +178,7 @@ class StatefulRadioGroupChipsExample extends React.Component<
|
|
|
178
178
|
id="favorite-color-label"
|
|
179
179
|
aria-hidden
|
|
180
180
|
tagName="h1"
|
|
181
|
-
textStyle={TEXT_STYLES.
|
|
182
|
-
weight={WEIGHT_STYLES.bold}
|
|
181
|
+
textStyle={TEXT_STYLES.heading4}
|
|
183
182
|
>
|
|
184
183
|
Favourite colour
|
|
185
184
|
</BpkText>
|
|
@@ -309,7 +308,7 @@ const WithIconsExample = () => (
|
|
|
309
308
|
|
|
310
309
|
const AllTypesExample = () => (
|
|
311
310
|
<div>
|
|
312
|
-
<BpkText textStyle={TEXT_STYLES.
|
|
311
|
+
<BpkText textStyle={TEXT_STYLES.bodyLongform} tagName="h2">
|
|
313
312
|
Selectable chips
|
|
314
313
|
</BpkText>
|
|
315
314
|
{Object.keys(CHIP_TYPES).map((chipType) => (
|
|
@@ -318,7 +317,7 @@ const AllTypesExample = () => (
|
|
|
318
317
|
<AllSelectableChips type={chipType} />
|
|
319
318
|
</>
|
|
320
319
|
))}
|
|
321
|
-
<BpkText textStyle={TEXT_STYLES.
|
|
320
|
+
<BpkText textStyle={TEXT_STYLES.bodyLongform} tagName="h2">
|
|
322
321
|
Dismissible chips
|
|
323
322
|
</BpkText>
|
|
324
323
|
{Object.keys(CHIP_TYPES).map((chipType) => (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-chip",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Backpack chip component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"react": "^16.3.0 || ^17.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"bpk-component-aria-live": "^2.1.
|
|
27
|
-
"bpk-component-text": "^6.1.
|
|
26
|
+
"bpk-component-aria-live": "^2.1.1",
|
|
27
|
+
"bpk-component-text": "^6.1.1"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -25,7 +25,7 @@ of a close icon.
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
import React from 'react';
|
|
28
|
-
import CloseCircleIconSm from 'bpk-component-icon/sm/close-circle';
|
|
28
|
+
import CloseCircleIconSm from '../../bpk-component-icon/sm/close-circle';
|
|
29
29
|
|
|
30
30
|
import BpkSelectableChip from './BpkSelectableChip';
|
|
31
31
|
import {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type Node } from 'react';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
24
|
-
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
23
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
24
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkSelectableChip.module.scss';
|
|
27
27
|
import {
|
|
@@ -77,7 +77,7 @@ const BpkSelectableChip = (props: Props) => {
|
|
|
77
77
|
{leadingAccessoryView}
|
|
78
78
|
</span>
|
|
79
79
|
)}
|
|
80
|
-
<BpkText textStyle={TEXT_STYLES.
|
|
80
|
+
<BpkText textStyle={TEXT_STYLES.footnote}>{children}</BpkText>
|
|
81
81
|
{trailingAccessoryView && (
|
|
82
82
|
<span className={getClassName('bpk-chip__trailing-accessory-view')}>
|
|
83
83
|
{trailingAccessoryView}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-close-button",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Backpack close button component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type StatelessFunctionalComponent } from 'react';
|
|
23
|
-
import CloseIcon from 'bpk-component-icon/sm/close';
|
|
24
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
+
import CloseIcon from '../../bpk-component-icon/sm/close';
|
|
24
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkCloseButton.module.scss';
|
|
27
27
|
|
|
@@ -149,7 +149,7 @@ const DefaultExample = () => (
|
|
|
149
149
|
<pre>
|
|
150
150
|
<code>
|
|
151
151
|
{`
|
|
152
|
-
import BpkContentContainer from 'bpk-component-content-container';
|
|
152
|
+
import BpkContentContainer from '../../bpk-component-content-container';
|
|
153
153
|
export default () => (
|
|
154
154
|
<BpkContentContainer>
|
|
155
155
|
<p>Hello<p>
|
|
@@ -291,7 +291,7 @@ const Alternate = () => (
|
|
|
291
291
|
<pre>
|
|
292
292
|
<code>
|
|
293
293
|
{`
|
|
294
|
-
import BpkContentContainer from 'bpk-component-content-container';
|
|
294
|
+
import BpkContentContainer from '../../bpk-component-content-container';
|
|
295
295
|
export default () => (
|
|
296
296
|
<BpkContentContainer>
|
|
297
297
|
<p>Hello<p>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-datatable",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack datatable component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^9.2.
|
|
17
|
+
"bpk-component-icon": "^9.2.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"lodash": "^4.17.20",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import React, { Component } from 'react';
|
|
22
22
|
import { Table, AutoSizer } from 'react-virtualized';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
24
24
|
import _omit from 'lodash/omit';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkDataTable.module.scss';
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
import React, { type Element } from 'react';
|
|
21
21
|
import { Column } from 'react-virtualized';
|
|
22
|
-
import { cssModules } from 'bpk-react-utils';
|
|
22
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
23
23
|
|
|
24
24
|
import bpkHeaderRenderer from './bpkHeaderRenderer';
|
|
25
25
|
import STYLES from './BpkDataTableColumn.module.scss';
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import { SortDirection } from 'react-virtualized';
|
|
22
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
-
import BpkSmallArrowDownIcon from 'bpk-component-icon/sm/arrow-down';
|
|
24
|
-
import BpkSmallArrowUpIcon from 'bpk-component-icon/sm/arrow-up';
|
|
25
|
-
import { withRtlSupport } from 'bpk-component-icon';
|
|
22
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
23
|
+
import BpkSmallArrowDownIcon from '../../bpk-component-icon/sm/arrow-down';
|
|
24
|
+
import BpkSmallArrowUpIcon from '../../bpk-component-icon/sm/arrow-up';
|
|
25
|
+
import { withRtlSupport } from '../../bpk-component-icon';
|
|
26
26
|
|
|
27
27
|
import { hasClassName } from './utils';
|
|
28
28
|
import STYLES from './BpkDataTableColumn.module.scss';
|