@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
package/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Backpack Design System
|
|
2
|
+
|
|
3
|
+
> Backpack is a collection of design resources, reusable components and guidelines for creating Skyscanner's products.
|
|
4
|
+
|
|
5
|
+
[](https://github.com/Skyscanner/backpack/actions)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Quick links
|
|
9
|
+
|
|
10
|
+
- [Documentation](https://backpack.github.io/)
|
|
11
|
+
- [Changelog](./CHANGELOG.md)
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
### Installing packages
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install [package-name] --save-dev
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Contributing
|
|
22
|
+
|
|
23
|
+
To contribute please see [contributing.md](CONTRIBUTING.md).
|
|
24
|
+
|
|
25
|
+
## List of packages
|
|
26
|
+
|
|
27
|
+
| Component | Version |
|
|
28
|
+
|--------|-------|
|
|
29
|
+
| [`bpk-component-accordion`](/packages/bpk-component-accordion) | [](http://badge.fury.io/js/bpk-component-accordion) |
|
|
30
|
+
| [`bpk-component-autosuggest`](/packages/bpk-component-autosuggest) | [](http://badge.fury.io/js/bpk-component-autosuggest) |
|
|
31
|
+
| [`bpk-component-badge`](/packages/bpk-component-badge) | [](http://badge.fury.io/js/bpk-component-badge) |
|
|
32
|
+
| [`bpk-component-banner-alert`](/packages/bpk-component-banner-alert) | [](http://badge.fury.io/js/bpk-component-banner-alert) |
|
|
33
|
+
| [`bpk-component-barchart`](/packages/bpk-component-barchart) | [](http://badge.fury.io/js/bpk-component-barchart) |
|
|
34
|
+
| [`bpk-component-blockquote`](/packages/bpk-component-blockquote) | [](http://badge.fury.io/js/bpk-component-blockquote) |
|
|
35
|
+
| [`bpk-component-breadcrumb`](/packages/bpk-component-breadcrumb) | [](http://badge.fury.io/js/bpk-component-breadcrumb) |
|
|
36
|
+
| [`bpk-component-breakpoint`](/packages/bpk-component-breakpoint) | [](http://badge.fury.io/js/bpk-component-breakpoint) |
|
|
37
|
+
| [`bpk-component-button`](/packages/bpk-component-button) | [](http://badge.fury.io/js/bpk-component-button) |
|
|
38
|
+
| [`bpk-component-calendar`](/packages/bpk-component-calendar) | [](http://badge.fury.io/js/bpk-component-calendar) |
|
|
39
|
+
| [`bpk-component-card`](/packages/bpk-component-card) | [](http://badge.fury.io/js/bpk-component-card) |
|
|
40
|
+
| [`bpk-component-checkbox`](/packages/bpk-component-checkbox) | [](http://badge.fury.io/js/bpk-component-checkbox) |
|
|
41
|
+
| [`bpk-component-chip`](/packages/bpk-component-chip) | [](http://badge.fury.io/js/bpk-component-chip) |
|
|
42
|
+
| [`bpk-component-close-button`](/packages/bpk-component-close-button) | [](http://badge.fury.io/js/bpk-component-close-button) |
|
|
43
|
+
| [`bpk-component-code`](/packages/bpk-component-code) | [](http://badge.fury.io/js/bpk-component-code) |
|
|
44
|
+
| [`bpk-component-content-container`](/packages/bpk-component-content-container) | [](http://badge.fury.io/js/bpk-component-content-container) |
|
|
45
|
+
| [`bpk-component-datatable`](/packages/bpk-component-datatable) | [](http://badge.fury.io/js/bpk-component-datatable) |
|
|
46
|
+
| [`bpk-component-datepicker`](/packages/bpk-component-datepicker) | [](http://badge.fury.io/js/bpk-component-datepicker) |
|
|
47
|
+
| [`bpk-component-description-list`](/packages/bpk-component-description-list) | [](http://badge.fury.io/js/bpk-component-description-list) |
|
|
48
|
+
| [`bpk-component-dialog`](/packages/bpk-component-dialog) | [](http://badge.fury.io/js/bpk-component-dialog) |
|
|
49
|
+
| [`bpk-component-drawer`](/packages/bpk-component-drawer) | [](http://badge.fury.io/js/bpk-component-drawer) |
|
|
50
|
+
| [`bpk-component-fieldset`](/packages/bpk-component-fieldset) | [](http://badge.fury.io/js/bpk-component-fieldset) |
|
|
51
|
+
| [`bpk-component-form-validation`](/packages/bpk-component-form-validation) | [](http://badge.fury.io/js/bpk-component-form-validation) |
|
|
52
|
+
| [`bpk-component-grid`](/packages/bpk-component-grid) | [](http://badge.fury.io/js/bpk-component-grid) |
|
|
53
|
+
| [`bpk-component-grid-toggle`](/packages/bpk-component-grid-toggle) | [](http://badge.fury.io/js/bpk-component-grid-toggle) |
|
|
54
|
+
| [`bpk-component-horizontal-nav`](/packages/bpk-component-horizontal-nav) | [](http://badge.fury.io/js/bpk-component-horizontal-nav) |
|
|
55
|
+
| [`bpk-component-icon`](/packages/bpk-component-icon) | [](http://badge.fury.io/js/bpk-component-icon) |
|
|
56
|
+
| [`bpk-component-image`](/packages/bpk-component-image) | [](http://badge.fury.io/js/bpk-component-image) |
|
|
57
|
+
| [`bpk-component-infinite-scroll`](/packages/bpk-component-infinite-scroll) | [](http://badge.fury.io/js/bpk-component-infinite-scroll) |
|
|
58
|
+
| [`bpk-component-input`](/packages/bpk-component-input) | [](http://badge.fury.io/js/bpk-component-input) |
|
|
59
|
+
| [`bpk-component-label`](/packages/bpk-component-label) | [](http://badge.fury.io/js/bpk-component-label) |
|
|
60
|
+
| [`bpk-component-link`](/packages/bpk-component-link) | [](http://badge.fury.io/js/bpk-component-link) |
|
|
61
|
+
| [`bpk-component-list`](/packages/bpk-component-list) | [](http://badge.fury.io/js/bpk-component-list) |
|
|
62
|
+
| [`bpk-component-loading-button`](/packages/bpk-component-loading-button) | [](http://badge.fury.io/js/bpk-component-loading-button) |
|
|
63
|
+
| [`bpk-component-mobile-scroll-container`](/packages/bpk-component-mobile-scroll-container) | [](http://badge.fury.io/js/bpk-component-mobile-scroll-container) |
|
|
64
|
+
| [`bpk-component-modal`](/packages/bpk-component-modal) | [](http://badge.fury.io/js/bpk-component-modal) |
|
|
65
|
+
| [`bpk-component-navigation-bar`](/packages/bpk-component-navigation-bar) | [](http://badge.fury.io/js/bpk-component-navigation-bar) |
|
|
66
|
+
| [`bpk-component-navigation-stack`](/packages/bpk-component-navigation-stack) | [](http://badge.fury.io/js/bpk-component-navigation-stack) |
|
|
67
|
+
| [`bpk-component-nudger`](/packages/bpk-component-nudger) | [](http://badge.fury.io/js/bpk-component-nudger) |
|
|
68
|
+
| [`bpk-component-pagination`](/packages/bpk-component-pagination) | [](http://badge.fury.io/js/bpk-component-pagination) |
|
|
69
|
+
| [`bpk-component-panel`](/packages/bpk-component-panel) | [](http://badge.fury.io/js/bpk-component-panel) |
|
|
70
|
+
| [`bpk-component-phone-input`](/packages/bpk-component-phone-input) | [](http://badge.fury.io/js/bpk-component-phone-input) |
|
|
71
|
+
| [`bpk-component-popover`](/packages/bpk-component-popover) | [](http://badge.fury.io/js/bpk-component-popover) |
|
|
72
|
+
| [`bpk-component-progress`](/packages/bpk-component-progress) | [](http://badge.fury.io/js/bpk-component-progress) |
|
|
73
|
+
| [`bpk-component-radio`](/packages/bpk-component-radio) | [](http://badge.fury.io/js/bpk-component-radio) |
|
|
74
|
+
| [`bpk-component-rtl-toggle`](/packages/bpk-component-rtl-toggle) | [](http://badge.fury.io/js/bpk-component-rtl-toggle) |
|
|
75
|
+
| [`bpk-component-section-list`](/packages/bpk-component-section-list) | [](http://badge.fury.io/js/bpk-component-section-list) |
|
|
76
|
+
| [`bpk-component-select`](/packages/bpk-component-select) | [](http://badge.fury.io/js/bpk-component-select) |
|
|
77
|
+
| [`bpk-component-slider`](/packages/bpk-component-slider) | [](http://badge.fury.io/js/bpk-component-slider) |
|
|
78
|
+
| [`bpk-component-spinner`](/packages/bpk-component-spinner) | [](http://badge.fury.io/js/bpk-component-spinner) |
|
|
79
|
+
| [`bpk-component-star-rating`](/packages/bpk-component-star-rating) | [](http://badge.fury.io/js/bpk-component-star-rating) |
|
|
80
|
+
| [`bpk-component-table`](/packages/bpk-component-table) | [](http://badge.fury.io/js/bpk-component-table) |
|
|
81
|
+
| [`bpk-component-text`](/packages/bpk-component-text) | [](http://badge.fury.io/js/bpk-component-text) |
|
|
82
|
+
| [`bpk-component-textarea`](/packages/bpk-component-textarea) | [](http://badge.fury.io/js/bpk-component-textarea) |
|
|
83
|
+
| [`bpk-theming`](/packages/bpk-theming) | [](http://badge.fury.io/js/bpk-theming) |
|
|
84
|
+
| [`bpk-component-ticket`](/packages/bpk-component-ticket) | [](http://badge.fury.io/js/bpk-component-ticket) |
|
|
85
|
+
| [`bpk-component-tooltip`](/packages/bpk-component-tooltip) | [](http://badge.fury.io/js/bpk-component-tooltip) |
|
|
86
|
+
| [`bpk-react-utils`](/packages/bpk-react-utils) | [](http://badge.fury.io/js/bpk-react-utils) |
|
|
87
|
+
|
|
88
|
+
## List of external packages
|
|
89
|
+
|
|
90
|
+
These components are part of Backpack and are utilised by the components but live in the Foundations repository.
|
|
91
|
+
|
|
92
|
+
| Component | Version |
|
|
93
|
+
|--------|-------|
|
|
94
|
+
| [`bpk-mixins`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-mixins) | [](http://badge.fury.io/js/bpk-mixins) |
|
|
95
|
+
| [`bpk-stylesheets`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-stylesheets) | [](http://badge.fury.io/js/bpk-stylesheets) |
|
|
96
|
+
| [`@skyscanner/bpk-svgs`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-svgs) | [](https://badge.fury.io/js/%40skyscanner%2Fbpk-svgs) |
|
|
97
|
+
| [`@skyscanner/bpk-foundations-web`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-foundations-web) | [](https://badge.fury.io/js/%40skyscanner%2Fbpk-foundations-web) |
|
|
98
|
+
|
|
99
|
+
## Contact
|
|
100
|
+
- backpack@skyscanner.net
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import BpkCheckbox from 'bpk-component-checkbox';
|
|
23
|
-
import { withAlignment } from 'bpk-component-icon';
|
|
24
|
-
import StopsIcon from 'bpk-component-icon/sm/stops';
|
|
25
|
-
import TimeIcon from 'bpk-component-icon/sm/time';
|
|
22
|
+
import BpkCheckbox from '../../bpk-component-checkbox';
|
|
23
|
+
import { withAlignment } from '../../bpk-component-icon';
|
|
24
|
+
import StopsIcon from '../../bpk-component-icon/sm/stops';
|
|
25
|
+
import TimeIcon from '../../bpk-component-icon/sm/time';
|
|
26
26
|
import {
|
|
27
27
|
colorMonteverde,
|
|
28
28
|
colorPanjin,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-accordion",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack accordion component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"bpk-animate-height": "^4.1.0",
|
|
18
|
-
"bpk-component-icon": "^9.2.
|
|
19
|
-
"bpk-component-text": "^6.1.
|
|
18
|
+
"bpk-component-icon": "^9.2.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"
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
29
|
-
"bpk-component-checkbox": "^4.1.
|
|
29
|
+
"bpk-component-checkbox": "^4.1.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type Node, type Element } from 'react';
|
|
23
|
-
import AnimateHeight from 'bpk-animate-height';
|
|
24
|
-
import { withButtonAlignment } from 'bpk-component-icon';
|
|
25
|
-
import ChevronDownIcon from 'bpk-component-icon/sm/chevron-down';
|
|
23
|
+
import AnimateHeight from '../../bpk-animate-height';
|
|
24
|
+
import { withButtonAlignment } from '../../bpk-component-icon';
|
|
25
|
+
import ChevronDownIcon from '../../bpk-component-icon/sm/chevron-down';
|
|
26
26
|
import BpkText, {
|
|
27
27
|
TEXT_STYLES,
|
|
28
28
|
WEIGHT_STYLES as weights,
|
|
29
|
-
} from 'bpk-component-text';
|
|
30
|
-
import { cssModules, deprecated } from 'bpk-react-utils';
|
|
29
|
+
} from '../../bpk-component-text';
|
|
30
|
+
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
31
31
|
|
|
32
32
|
import STYLES from './BpkAccordionItem.module.scss';
|
|
33
33
|
|
|
@@ -79,8 +79,8 @@ const BpkAccordionItem = (props: Props) => {
|
|
|
79
79
|
const contentId = `${id}_content`;
|
|
80
80
|
const clonedIcon = icon
|
|
81
81
|
? React.cloneElement(icon, {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
className: getClassName('bpk-accordion__leading-icon'),
|
|
83
|
+
})
|
|
84
84
|
: null;
|
|
85
85
|
|
|
86
86
|
return (
|
|
@@ -144,7 +144,7 @@ BpkAccordionItem.defaultProps = {
|
|
|
144
144
|
icon: null,
|
|
145
145
|
onClick: () => null,
|
|
146
146
|
tagName: 'span',
|
|
147
|
-
textStyle: TEXT_STYLES.
|
|
147
|
+
textStyle: TEXT_STYLES.bodyDefault,
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
export default BpkAccordionItem;
|
|
@@ -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
|
type Props = {
|
|
26
26
|
initiallyExpanded: boolean,
|
|
@@ -59,7 +59,7 @@ const withAccordionItemState = (ComposedComponent: ComponentType<any>) => {
|
|
|
59
59
|
(prevState) => ({
|
|
60
60
|
expanded: !prevState.expanded,
|
|
61
61
|
}),
|
|
62
|
-
this.props.onClick || (() => {}),
|
|
62
|
+
this.props.onClick || (() => { }),
|
|
63
63
|
);
|
|
64
64
|
};
|
|
65
65
|
|
|
@@ -27,7 +27,7 @@ import React, {
|
|
|
27
27
|
type Element,
|
|
28
28
|
type ComponentType,
|
|
29
29
|
} from 'react';
|
|
30
|
-
import { wrapDisplayName } from 'bpk-react-utils';
|
|
30
|
+
import { wrapDisplayName } from '../../bpk-react-utils';
|
|
31
31
|
|
|
32
32
|
const getInitiallyExpanded = (children) => {
|
|
33
33
|
const accordionItems = Children.toArray(children);
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
/* @flow strict */
|
|
19
19
|
|
|
20
20
|
import React, { type Node } from 'react';
|
|
21
|
-
import BpkChip from 'bpk-component-chip';
|
|
22
|
-
import BpkFieldset from 'bpk-component-fieldset';
|
|
23
|
-
import BpkSelect from 'bpk-component-select';
|
|
24
|
-
import BpkSwitch from 'bpk-component-switch';
|
|
25
|
-
import { cssModules } from 'bpk-react-utils';
|
|
26
|
-
import { BpkCode } from 'bpk-component-code';
|
|
21
|
+
import BpkChip from '../../bpk-component-chip';
|
|
22
|
+
import BpkFieldset from '../../bpk-component-fieldset';
|
|
23
|
+
import BpkSelect from '../../bpk-component-select';
|
|
24
|
+
import BpkSwitch from '../../bpk-component-switch';
|
|
25
|
+
import { cssModules } from '../bpk-react-utils';
|
|
26
|
+
import { BpkCode } from '../../bpk-component-code';
|
|
27
27
|
|
|
28
28
|
import STYLES from './examples.module.scss';
|
|
29
29
|
|
|
@@ -187,8 +187,7 @@ class ChipsExample extends React.Component<
|
|
|
187
187
|
const nextState = prevState;
|
|
188
188
|
nextState.categories[category] = !prevState.categories[category];
|
|
189
189
|
nextState.updates.push(
|
|
190
|
-
`${category} became ${
|
|
191
|
-
nextState.categories[category] ? 'enabled' : 'disabled'
|
|
190
|
+
`${category} became ${nextState.categories[category] ? 'enabled' : 'disabled'
|
|
192
191
|
}.`,
|
|
193
192
|
);
|
|
194
193
|
return nextState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-aria-live",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Backpack aria-live component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"prop-types": "^15.5.8"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"bpk-component-chip": "^5.2.
|
|
21
|
+
"bpk-component-chip": "^5.2.1",
|
|
22
22
|
"bpk-component-code": "^3.1.0",
|
|
23
|
-
"bpk-component-fieldset": "^4.1.
|
|
23
|
+
"bpk-component-fieldset": "^4.1.1",
|
|
24
24
|
"bpk-component-select": "^5.1.0",
|
|
25
25
|
"bpk-component-switch": "^2.1.0"
|
|
26
26
|
},
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { withRtlSupport } from 'bpk-component-icon';
|
|
23
|
-
import FlightIcon from 'bpk-component-icon/lg/flight';
|
|
22
|
+
import { withRtlSupport } from '../../bpk-component-icon';
|
|
23
|
+
import FlightIcon from '../../bpk-component-icon/lg/flight';
|
|
24
24
|
|
|
25
25
|
import BpkAutosuggest, { BpkAutosuggestSuggestion } from './index';
|
|
26
26
|
|
|
@@ -108,8 +108,8 @@ const getSuggestions = (value, hanzi) => {
|
|
|
108
108
|
return inputLength === 0
|
|
109
109
|
? []
|
|
110
110
|
: data.filter(
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
(office) => office.name.toLowerCase().indexOf(inputValue) !== -1,
|
|
112
|
+
);
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
const getSuggestionValue = (suggestion) =>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-autosuggest",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Backpack autosuggest 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-input": "^6.1.
|
|
17
|
+
"bpk-component-input": "^6.1.1",
|
|
18
18
|
"bpk-mixins": "^26.1.0",
|
|
19
19
|
"bpk-react-utils": "^4.1.0",
|
|
20
20
|
"prop-types": "^15.7.2",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"react": "^16.3.0 || ^17.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-icon": "^9.2.
|
|
27
|
+
"bpk-component-icon": "^9.2.1"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import BpkInput from 'bpk-component-input';
|
|
22
|
+
import BpkInput from '../../bpk-component-input';
|
|
23
23
|
import Autosuggest from 'react-autosuggest';
|
|
24
|
-
import { cssModules } from 'bpk-react-utils';
|
|
24
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkAutosuggest.module.scss';
|
|
27
27
|
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import BpkSmallBeerIcon from 'bpk-component-icon/sm/beer';
|
|
23
|
-
import BpkSmallFlightIcon from 'bpk-component-icon/sm/flight';
|
|
24
|
-
import BpkSmallWeatherIcon from 'bpk-component-icon/sm/weather';
|
|
25
|
-
import BpkSmallTickIcon from 'bpk-component-icon/sm/tick-circle';
|
|
26
|
-
import BpkSmallCloseIcon from 'bpk-component-icon/sm/close-circle';
|
|
22
|
+
import BpkSmallBeerIcon from '../../bpk-component-icon/sm/beer';
|
|
23
|
+
import BpkSmallFlightIcon from '../../bpk-component-icon/sm/flight';
|
|
24
|
+
import BpkSmallWeatherIcon from '../../bpk-component-icon/sm/weather';
|
|
25
|
+
import BpkSmallTickIcon from '../../bpk-component-icon/sm/tick-circle';
|
|
26
|
+
import BpkSmallCloseIcon from '../../bpk-component-icon/sm/close-circle';
|
|
27
27
|
import { BpkDarkExampleWrapper } from 'bpk-storybook-utils';
|
|
28
28
|
|
|
29
29
|
import BadgeLayout from './BadgeLayout';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-badge",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack badge component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
26
|
-
"bpk-component-icon": "^9.2.
|
|
26
|
+
"bpk-component-icon": "^9.2.1",
|
|
27
27
|
"bpk-storybook-utils": "^1.1.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
import React, { Component } from 'react';
|
|
21
21
|
import { action } from 'bpk-storybook-utils';
|
|
22
22
|
import { fontWeightBold } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
23
|
-
import CurrencyIcon from 'bpk-component-icon/sm/currency';
|
|
24
|
-
import { AriaLiveDemo } from 'bpk-component-aria-live/examples';
|
|
25
|
-
import { BpkButtonPrimary } from 'bpk-component-button';
|
|
26
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
+
import CurrencyIcon from '../../bpk-component-icon/sm/currency';
|
|
24
|
+
import { AriaLiveDemo } from '../../bpk-component-aria-live/examples';
|
|
25
|
+
import { BpkButtonPrimary } from '../../bpk-component-button';
|
|
26
|
+
import { cssModules } from '../bpk-react-utils';
|
|
27
27
|
|
|
28
28
|
import STYLES from './examples.module.scss';
|
|
29
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-banner-alert",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Backpack banner alert component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
18
18
|
"bpk-animate-height": "^4.1.0",
|
|
19
|
-
"bpk-component-close-button": "^3.1.
|
|
20
|
-
"bpk-component-icon": "^9.2.
|
|
19
|
+
"bpk-component-close-button": "^3.1.1",
|
|
20
|
+
"bpk-component-icon": "^9.2.1",
|
|
21
21
|
"bpk-mixins": "^26.1.0",
|
|
22
22
|
"bpk-react-utils": "^4.1.0",
|
|
23
23
|
"prop-types": "^15.7.2",
|
|
24
24
|
"react-transition-group": "^2.5.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-aria-live": "^2.1.
|
|
27
|
+
"bpk-component-aria-live": "^2.1.1",
|
|
28
28
|
"bpk-component-button": "^5.1.0",
|
|
29
29
|
"bpk-storybook-utils": "^1.1.0"
|
|
30
30
|
},
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import React, { type Node, Component } from 'react';
|
|
22
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
-
import BpkAnimateHeight from 'bpk-animate-height';
|
|
22
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
23
|
+
import BpkAnimateHeight from '../../bpk-animate-height';
|
|
24
24
|
import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
25
25
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
26
26
|
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
|
|
24
24
|
import PropTypes from 'prop-types';
|
|
25
25
|
import React, { type Node, type StatelessFunctionalComponent } from 'react';
|
|
26
|
-
import { withButtonAlignment } from 'bpk-component-icon';
|
|
27
|
-
import BpkAnimateHeight from 'bpk-animate-height';
|
|
28
|
-
import BpkCloseButton from 'bpk-component-close-button';
|
|
29
|
-
import TickCircleIcon from 'bpk-component-icon/sm/tick-circle';
|
|
30
|
-
import ChevronDownIcon from 'bpk-component-icon/lg/chevron-down';
|
|
31
|
-
import InfoCircleIcon from 'bpk-component-icon/sm/information-circle';
|
|
26
|
+
import { withButtonAlignment } from '../../bpk-component-icon';
|
|
27
|
+
import BpkAnimateHeight from '../../bpk-animate-height';
|
|
28
|
+
import BpkCloseButton from '../../bpk-component-close-button';
|
|
29
|
+
import TickCircleIcon from '../../bpk-component-icon/sm/tick-circle';
|
|
30
|
+
import ChevronDownIcon from '../../bpk-component-icon/lg/chevron-down';
|
|
31
|
+
import InfoCircleIcon from '../../bpk-component-icon/sm/information-circle';
|
|
32
32
|
import { durationSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
33
|
-
import { cssModules } from 'bpk-react-utils';
|
|
33
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
34
34
|
|
|
35
35
|
import AnimateAndFade from './AnimateAndFade';
|
|
36
36
|
import {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
import React, { type Node, type ComponentType, Component } from 'react';
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
|
-
import { wrapDisplayName } from 'bpk-react-utils';
|
|
22
|
+
import { wrapDisplayName } from '../../bpk-react-utils';
|
|
23
23
|
|
|
24
24
|
import {
|
|
25
25
|
type OnDismissHandler,
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { number } from 'prop-types';
|
|
23
|
-
import { cssModules, withDefaultProps } from 'bpk-react-utils';
|
|
24
|
-
import BpkText from 'bpk-component-text';
|
|
25
|
-
import { updateOnDirectionChange } from 'bpk-component-rtl-toggle';
|
|
23
|
+
import { cssModules, withDefaultProps } from '../bpk-react-utils';
|
|
24
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
25
|
+
import { updateOnDirectionChange } from '../../bpk-component-rtl-toggle';
|
|
26
26
|
import { lineHeightSm } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
27
27
|
import { scaleLinear, scaleBand } from 'd3-scale';
|
|
28
28
|
|
|
@@ -40,7 +40,7 @@ import BpkBarchart, {
|
|
|
40
40
|
const getClassName = cssModules(STYLES);
|
|
41
41
|
|
|
42
42
|
const Heading = withDefaultProps(BpkText, {
|
|
43
|
-
textStyle:
|
|
43
|
+
textStyle: TEXT_STYLES.subheading,
|
|
44
44
|
tagName: 'h1',
|
|
45
45
|
className: getClassName('bpk-heading'),
|
|
46
46
|
});
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import isEqual from 'lodash/isEqual';
|
|
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
|
// eslint-disable-next-line import/prefer-default-export
|
|
26
26
|
export const withSelectedState = (ComposedComponent: ComponentType<any>) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-barchart",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Backpack bar chart component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
"bpk-component-breakpoint": "^3.1.0",
|
|
31
31
|
"bpk-component-content-container": "^4.1.0",
|
|
32
32
|
"bpk-component-rtl-toggle": "^3.1.0",
|
|
33
|
-
"bpk-component-text": "^6.1.
|
|
33
|
+
"bpk-component-text": "^6.1.1"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
spacingXs,
|
|
27
27
|
lineHeightSm,
|
|
28
28
|
} from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
29
|
-
import { cssModules } from 'bpk-react-utils';
|
|
30
|
-
import BpkMobileScrollContainer from 'bpk-component-mobile-scroll-container';
|
|
29
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
30
|
+
import BpkMobileScrollContainer from '../../bpk-component-mobile-scroll-container';
|
|
31
31
|
|
|
32
32
|
import BpkBarchartDefs from './BpkBarchartDefs';
|
|
33
33
|
import BpkBarchartBars from './BpkBarchartBars';
|
|
@@ -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
|
import { borderRadiusXs } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
25
25
|
|
|
26
26
|
import { remToPx } from './utils';
|
|
@@ -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
|
|
|
25
25
|
import dataProp from './customPropTypes';
|
|
26
26
|
import STYLES from './BpkChartDataTable.module.scss';
|