@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,9 +20,9 @@
|
|
|
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 BpkLargeChevronRightIcon from 'bpk-component-icon/lg/chevron-right';
|
|
25
|
-
import { withRtlSupport } from 'bpk-component-icon';
|
|
23
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
24
|
+
import BpkLargeChevronRightIcon from '../../bpk-component-icon/lg/chevron-right';
|
|
25
|
+
import { withRtlSupport } from '../../bpk-component-icon';
|
|
26
26
|
|
|
27
27
|
import STYLES from './BpkSectionListItem.module.scss';
|
|
28
28
|
|
|
@@ -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, {
|
|
23
|
+
import { cssModules } from '../../bpk-react-utils';
|
|
24
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkSectionListSection.module.scss';
|
|
27
27
|
|
|
@@ -39,9 +39,7 @@ const BpkSectionListSection = (props: Props) => {
|
|
|
39
39
|
<section {...rest}>
|
|
40
40
|
{headerText && (
|
|
41
41
|
<header className={getClassName('bpk-section-list-section__header')}>
|
|
42
|
-
<BpkText
|
|
43
|
-
{headerText}
|
|
44
|
-
</BpkText>
|
|
42
|
+
<BpkText textStyle={TEXT_STYLES.label1}>{headerText}</BpkText>
|
|
45
43
|
</header>
|
|
46
44
|
)}
|
|
47
45
|
<ul className={getClassName('bpk-section-list-section')}>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React, { Component } from 'react';
|
|
21
|
-
import { updateOnDirectionChange } from 'bpk-component-rtl-toggle';
|
|
21
|
+
import { updateOnDirectionChange } from '../../bpk-component-rtl-toggle';
|
|
22
22
|
|
|
23
23
|
import BpkSlider from './index';
|
|
24
24
|
|
|
@@ -51,15 +51,15 @@ class SliderContainer extends Component {
|
|
|
51
51
|
<div>
|
|
52
52
|
{this.state.value.length
|
|
53
53
|
? this.valueComponent(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
this.state.value[0],
|
|
55
|
+
this.state.value[1],
|
|
56
|
+
time && this.valueTimeFormatter,
|
|
57
|
+
)
|
|
58
58
|
: this.valueComponent(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
min,
|
|
60
|
+
this.state.value,
|
|
61
|
+
time && this.valueTimeFormatter,
|
|
62
|
+
)}
|
|
63
63
|
<BpkSlider
|
|
64
64
|
min={min}
|
|
65
65
|
max={time ? 59 : 100}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import React from 'react';
|
|
20
20
|
import Slider from 'react-slider';
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
|
-
import { cssModules, isRTL } from 'bpk-react-utils';
|
|
22
|
+
import { cssModules, isRTL } from '../../bpk-react-utils';
|
|
23
23
|
|
|
24
24
|
import STYLES from './BpkSlider.module.scss';
|
|
25
25
|
|
|
@@ -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 XlSpinner from '@skyscanner/bpk-svgs/dist/js/spinners/xl';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkSpinner.module.scss';
|
|
@@ -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 LgSpinner from '@skyscanner/bpk-svgs/dist/js/spinners/lg';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkSpinner.module.scss';
|
|
@@ -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 SmSpinner from '@skyscanner/bpk-svgs/dist/js/spinners/sm';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkSpinner.module.scss';
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
BpkTableCell,
|
|
28
28
|
BpkTableHead,
|
|
29
29
|
BpkTableHeadCell,
|
|
30
|
-
} from 'bpk-component-table';
|
|
30
|
+
} from '../../bpk-component-table';
|
|
31
31
|
|
|
32
32
|
import BpkInteractiveStarRating from './src/BpkInteractiveStarRating';
|
|
33
33
|
import withInteractiveStarRatingState from './src/withInteractiveStarRatingState';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-star-rating",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Backpack rating star 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,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 { BpkStarNonRtl, STAR_TYPES } from './BpkStar';
|
|
26
26
|
import STYLES from './BpkInteractiveStar.module.scss';
|
|
@@ -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';
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
|
-
import SmallIcon from 'bpk-component-icon/sm/star';
|
|
24
|
-
import LargeIcon from 'bpk-component-icon/lg/star';
|
|
25
|
-
import OutlineSmallIcon from 'bpk-component-icon/sm/star-outline';
|
|
26
|
-
import OutlineLargeIcon from 'bpk-component-icon/lg/star-outline';
|
|
27
|
-
import HalfSmallIcon from 'bpk-component-icon/sm/star-half';
|
|
28
|
-
import HalfLargeIcon from 'bpk-component-icon/lg/star-half';
|
|
29
|
-
import { withRtlSupport } from 'bpk-component-icon';
|
|
30
|
-
import { cssModules } from 'bpk-react-utils';
|
|
23
|
+
import SmallIcon from '../../bpk-component-icon/sm/star';
|
|
24
|
+
import LargeIcon from '../../bpk-component-icon/lg/star';
|
|
25
|
+
import OutlineSmallIcon from '../../bpk-component-icon/sm/star-outline';
|
|
26
|
+
import OutlineLargeIcon from '../../bpk-component-icon/lg/star-outline';
|
|
27
|
+
import HalfSmallIcon from '../../bpk-component-icon/sm/star-half';
|
|
28
|
+
import HalfLargeIcon from '../../bpk-component-icon/lg/star-half';
|
|
29
|
+
import { withRtlSupport } from '../../bpk-component-icon';
|
|
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>,
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import React from 'react';
|
|
20
|
-
import { withDefaultProps } from 'bpk-react-utils';
|
|
20
|
+
import { withDefaultProps } from '../bpk-react-utils';
|
|
21
21
|
|
|
22
22
|
import STYLE from './examples.module.scss';
|
|
23
23
|
|
|
24
|
-
import BpkText from './index';
|
|
24
|
+
import BpkText, { TEXT_STYLES } from './index';
|
|
25
25
|
|
|
26
26
|
const Paragraph = withDefaultProps(BpkText, {
|
|
27
|
-
textStyle:
|
|
27
|
+
textStyle: TEXT_STYLES.bodyLongform,
|
|
28
28
|
tagName: 'p',
|
|
29
29
|
className: STYLE['bpk-my-paragraph'],
|
|
30
30
|
});
|
|
@@ -40,32 +40,32 @@ const DefaultExample = () => (
|
|
|
40
40
|
|
|
41
41
|
const WithHeadingTagsExample = () => (
|
|
42
42
|
<div>
|
|
43
|
-
<BpkText textStyle=
|
|
43
|
+
<BpkText textStyle={TEXT_STYLES.subheading} tagName="h1">
|
|
44
44
|
The quick brown fox jumps over the lazy dog
|
|
45
45
|
</BpkText>
|
|
46
|
-
<BpkText textStyle=
|
|
46
|
+
<BpkText textStyle={TEXT_STYLES.bodyLongform} tagName="h2">
|
|
47
47
|
The quick brown fox jumps over the lazy dog
|
|
48
48
|
</BpkText>
|
|
49
|
-
<BpkText textStyle=
|
|
49
|
+
<BpkText textStyle={TEXT_STYLES.label1} tagName="h3">
|
|
50
50
|
The quick brown fox jumps over the lazy dog
|
|
51
51
|
</BpkText>
|
|
52
|
-
<BpkText textStyle=
|
|
52
|
+
<BpkText textStyle={TEXT_STYLES.bodyDefault} tagName="h3">
|
|
53
53
|
The quick brown fox jumps over the lazy dog
|
|
54
54
|
</BpkText>
|
|
55
|
-
<BpkText textStyle=
|
|
55
|
+
<BpkText textStyle={TEXT_STYLES.label2} tagName="h4">
|
|
56
56
|
The quick brown fox jumps over the lazy dog
|
|
57
57
|
</BpkText>
|
|
58
|
-
<BpkText textStyle=
|
|
58
|
+
<BpkText textStyle={TEXT_STYLES.footnote} tagName="h5">
|
|
59
59
|
The quick brown fox jumps over the lazy dog
|
|
60
60
|
</BpkText>
|
|
61
|
-
<BpkText textStyle=
|
|
61
|
+
<BpkText textStyle={TEXT_STYLES.caption} tagName="h6">
|
|
62
62
|
The quick brown fox jumps over the lazy dog
|
|
63
63
|
</BpkText>
|
|
64
64
|
</div>
|
|
65
65
|
);
|
|
66
66
|
|
|
67
67
|
const ParagraphExample = () => (
|
|
68
|
-
<BpkText textStyle=
|
|
68
|
+
<BpkText textStyle={TEXT_STYLES.bodyDefault} tagName="p">
|
|
69
69
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque
|
|
70
70
|
imperdiet lobortis tellus, non rhoncus erat tincidunt id. Pellentesque
|
|
71
71
|
consectetur, dolor nec vulputate vehicula, ex metus mattis ante, non dictum
|
|
@@ -92,25 +92,25 @@ const WithDefaultProps = () => (
|
|
|
92
92
|
|
|
93
93
|
const HeadingStylesExample = () => (
|
|
94
94
|
<div>
|
|
95
|
-
<BpkText textStyle=
|
|
95
|
+
<BpkText textStyle={TEXT_STYLES.hero4} tagName="h5">
|
|
96
96
|
The quick brown fox jumps over the lazy dog
|
|
97
97
|
</BpkText>
|
|
98
|
-
<BpkText textStyle=
|
|
98
|
+
<BpkText textStyle={TEXT_STYLES.hero5} tagName="h6">
|
|
99
99
|
The quick brown fox jumps over the lazy dog
|
|
100
100
|
</BpkText>
|
|
101
|
-
<BpkText textStyle=
|
|
101
|
+
<BpkText textStyle={TEXT_STYLES.heading1} tagName="h1">
|
|
102
102
|
The quick brown fox jumps over the lazy dog
|
|
103
103
|
</BpkText>
|
|
104
|
-
<BpkText textStyle=
|
|
104
|
+
<BpkText textStyle={TEXT_STYLES.heading2} tagName="h4">
|
|
105
105
|
The quick brown fox jumps over the lazy dog
|
|
106
106
|
</BpkText>
|
|
107
|
-
<BpkText textStyle=
|
|
107
|
+
<BpkText textStyle={TEXT_STYLES.heading3} tagName="h2">
|
|
108
108
|
The quick brown fox jumps over the lazy dog
|
|
109
109
|
</BpkText>
|
|
110
|
-
<BpkText textStyle=
|
|
110
|
+
<BpkText textStyle={TEXT_STYLES.heading4} tagName="h6">
|
|
111
111
|
The quick brown fox jumps over the lazy dog
|
|
112
112
|
</BpkText>
|
|
113
|
-
<BpkText textStyle=
|
|
113
|
+
<BpkText textStyle={TEXT_STYLES.heading5} tagName="h4">
|
|
114
114
|
The quick brown fox jumps over the lazy dog
|
|
115
115
|
</BpkText>
|
|
116
116
|
</div>
|
|
@@ -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
|
|
|
@@ -140,7 +140,7 @@ BpkText.propTypes = {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
BpkText.defaultProps = {
|
|
143
|
-
textStyle: TEXT_STYLES.
|
|
143
|
+
textStyle: TEXT_STYLES.bodyDefault,
|
|
144
144
|
tagName: 'span',
|
|
145
145
|
className: null,
|
|
146
146
|
bold: null,
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
import React from 'react';
|
|
20
20
|
import Konami from 'konami';
|
|
21
|
-
import BpkLabel from 'bpk-component-label';
|
|
22
|
-
import BpkSelect from 'bpk-component-select';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
21
|
+
import BpkLabel from '../../bpk-component-label';
|
|
22
|
+
import BpkSelect from '../../bpk-component-select';
|
|
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,10 +20,10 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React from 'react';
|
|
23
|
-
import { cssModules } from 'bpk-react-utils';
|
|
24
|
-
import BpkButton from 'bpk-component-button';
|
|
25
|
-
import ArrowRightIcon from 'bpk-component-icon/sm/long-arrow-right';
|
|
26
|
-
import { withButtonAlignment, withRtlSupport } from 'bpk-component-icon';
|
|
23
|
+
import { cssModules } from '../bpk-react-utils';
|
|
24
|
+
import BpkButton from '../../bpk-component-button';
|
|
25
|
+
import ArrowRightIcon from '../../bpk-component-icon/sm/long-arrow-right';
|
|
26
|
+
import { withButtonAlignment, withRtlSupport } from '../../bpk-component-icon';
|
|
27
27
|
|
|
28
28
|
import STYLES from './examples.module.scss';
|
|
29
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-ticket",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Backpack ticket component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"bpk-component-button": "^5.1.0",
|
|
26
|
-
"bpk-component-icon": "^9.2.
|
|
26
|
+
"bpk-component-icon": "^9.2.1"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -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,8 +19,8 @@
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { withDefaultProps } from 'bpk-react-utils';
|
|
23
|
-
import BpkText from 'bpk-component-text';
|
|
22
|
+
import { withDefaultProps } from '../bpk-react-utils';
|
|
23
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
24
24
|
import {
|
|
25
25
|
spacingSm,
|
|
26
26
|
colorMonteverde,
|
|
@@ -35,7 +35,7 @@ const wrapperStyle = {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
const Heading = withDefaultProps(BpkText, {
|
|
38
|
-
textStyle:
|
|
38
|
+
textStyle: TEXT_STYLES.bodyLongform,
|
|
39
39
|
tagName: 'h4',
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -157,7 +157,7 @@ const FocusExample = () => (
|
|
|
157
157
|
>
|
|
158
158
|
Should be focused on third
|
|
159
159
|
</BpkTooltip>
|
|
160
|
-
<button type="button" onClick={() => {}}>
|
|
160
|
+
<button type="button" onClick={() => { }}>
|
|
161
161
|
Four
|
|
162
162
|
</button>
|
|
163
163
|
<BpkTooltip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-tooltip",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Backpack tooltip component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@skyscanner/bpk-foundations-web": "^5.0.0",
|
|
27
|
-
"bpk-component-text": "^6.1.
|
|
27
|
+
"bpk-component-text": "^6.1.1"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/backpack-web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Backpack Design System web library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,4 +47,4 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "^16.3.0 || ^17.0.0"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|