@skyscanner/backpack-web 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bpk-animate-height/examples.js +1 -1
- package/bpk-component-accordion/examples.js +4 -4
- package/bpk-component-accordion/src/BpkAccordionItem.js +5 -5
- package/bpk-component-aria-live/examples.js +6 -7
- package/bpk-component-autosuggest/examples.js +4 -4
- package/bpk-component-autosuggest/src/BpkAutosuggest.js +1 -1
- package/bpk-component-badge/examples.js +5 -5
- package/bpk-component-banner-alert/examples.js +3 -3
- package/bpk-component-banner-alert/src/BpkBannerAlertInner.js +5 -5
- package/bpk-component-barchart/examples.js +2 -2
- package/bpk-component-barchart/src/BpkBarchart.js +1 -1
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.js +4 -4
- package/bpk-component-calendar/examples-components.js +1 -1
- package/bpk-component-calendar/examples.js +1 -1
- package/bpk-component-calendar/src/BpkCalendarNav.js +12 -12
- package/bpk-component-card/examples.js +2 -2
- package/bpk-component-chip/examples.js +8 -8
- package/bpk-component-chip/src/BpkDismissibleChip.js +1 -1
- package/bpk-component-chip/src/BpkSelectableChip.js +1 -1
- package/bpk-component-close-button/src/BpkCloseButton.js +1 -1
- package/bpk-component-content-container/examples.js +2 -2
- package/bpk-component-datatable/src/bpkHeaderRenderer.js +3 -3
- package/bpk-component-datepicker/examples.js +4 -4
- package/bpk-component-datepicker/index.js +1 -1
- package/bpk-component-datepicker/src/BpkDatepicker.js +5 -5
- package/bpk-component-datepicker/src/themeAttributes.js +3 -3
- package/bpk-component-dialog/examples.js +5 -5
- package/bpk-component-dialog/src/BpkDialog.js +1 -1
- package/bpk-component-dialog/src/BpkDialogInner.js +1 -1
- package/bpk-component-drawer/examples.js +2 -2
- package/bpk-component-drawer/src/BpkDrawerContent.js +2 -2
- package/bpk-component-drawer/src/themeAttributes.js +1 -1
- package/bpk-component-fieldset/examples.js +11 -11
- package/bpk-component-fieldset/src/BpkFieldset.js +2 -2
- package/bpk-component-flare/examples.js +1 -1
- package/bpk-component-form-validation/examples.js +5 -5
- package/bpk-component-form-validation/src/BpkFormValidation.js +2 -2
- package/bpk-component-grid-toggle/src/BpkGridToggle.js +1 -1
- package/bpk-component-horizontal-nav/examples.js +1 -1
- package/bpk-component-horizontal-nav/src/BpkHorizontalNav.js +1 -1
- package/bpk-component-icon/examples.js +3 -3
- package/bpk-component-image/examples.js +2 -2
- package/bpk-component-image/src/BpkBackgroundImage.js +1 -1
- package/bpk-component-image/src/BpkImage.js +1 -1
- package/bpk-component-infinite-scroll/examples.js +3 -3
- package/bpk-component-input/examples.js +2 -2
- package/bpk-component-input/src/BpkClearButton.js +2 -2
- package/bpk-component-loading-button/examples.js +3 -3
- package/bpk-component-loading-button/src/BpkLoadingButton.js +5 -5
- package/bpk-component-map/examples.js +6 -6
- package/bpk-component-map/src/BpkPriceMarker.js +1 -1
- package/bpk-component-map/src/DefaultLoadingElement.js +1 -1
- package/bpk-component-modal/examples.js +6 -6
- package/bpk-component-modal/src/BpkModalInner.js +3 -3
- package/bpk-component-modal/src/themeAttributes.js +1 -1
- package/bpk-component-navigation-bar/examples.js +3 -3
- package/bpk-component-navigation-bar/src/BpkNavigationBar.js +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.js +1 -1
- package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.js +1 -1
- package/bpk-component-navigation-stack/examples.js +1 -1
- package/bpk-component-navigation-stack/stories-components.js +19 -19
- package/bpk-component-nudger/examples.js +1 -1
- package/bpk-component-nudger/src/BpkConfigurableNudger.js +5 -5
- package/bpk-component-nudger/src/themeAttributes.js +1 -1
- package/bpk-component-overlay/examples.js +2 -2
- package/bpk-component-pagination/src/BpkPaginationNudger.js +3 -3
- package/bpk-component-pagination/src/BpkPaginationPage.js +1 -1
- package/bpk-component-pagination/src/themeAttributes.js +1 -1
- package/bpk-component-phone-input/examples.js +2 -2
- package/bpk-component-phone-input/src/BpkPhoneInput.js +3 -3
- package/bpk-component-popover/examples.js +4 -4
- package/bpk-component-popover/src/BpkPopover.js +3 -3
- package/bpk-component-popover/src/themeAttributes.js +1 -1
- package/bpk-component-progress/examples.js +1 -1
- package/bpk-component-rating/src/BpkRating.js +1 -1
- package/bpk-component-rtl-toggle/src/BpkRtlToggle.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/src/BpkScrollableCalendar.js +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarDate.js +1 -1
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.js +2 -2
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +1 -1
- package/bpk-component-scrollable-calendar/src/utils.js +1 -1
- package/bpk-component-section-list/src/BpkSectionListItem.js +2 -2
- package/bpk-component-section-list/src/BpkSectionListSection.js +1 -1
- package/bpk-component-slider/examples.js +9 -9
- package/bpk-component-star-rating/examples.js +1 -1
- package/bpk-component-star-rating/src/BpkStar.js +7 -7
- package/bpk-component-textarea/examples.js +1 -1
- package/bpk-component-theme-toggle/src/BpkThemeToggle.js +2 -2
- package/bpk-component-ticket/examples.js +3 -3
- package/bpk-component-tooltip/examples.js +2 -2
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type Node, type Element } from 'react';
|
|
23
23
|
import AnimateHeight from 'bpk-animate-height';
|
|
24
|
-
import { withButtonAlignment } from 'bpk-component-icon';
|
|
25
|
-
import ChevronDownIcon from 'bpk-component-icon/sm/chevron-down';
|
|
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';
|
|
29
|
+
} from '../../bpk-component-text';
|
|
30
30
|
import { cssModules, deprecated } from 'bpk-react-utils';
|
|
31
31
|
|
|
32
32
|
import STYLES from './BpkAccordionItem.module.scss';
|
|
@@ -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 (
|
|
@@ -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';
|
|
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
25
|
import { cssModules } from 'bpk-react-utils';
|
|
26
|
-
import { BpkCode } from 'bpk-component-code';
|
|
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;
|
|
@@ -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) =>
|
|
@@ -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';
|
|
@@ -20,9 +20,9 @@
|
|
|
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';
|
|
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
26
|
import { cssModules } from 'bpk-react-utils';
|
|
27
27
|
|
|
28
28
|
import STYLES from './examples.module.scss';
|
|
@@ -23,12 +23,12 @@
|
|
|
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';
|
|
26
|
+
import { withButtonAlignment } from '../../bpk-component-icon';
|
|
27
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';
|
|
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
33
|
import { cssModules } from 'bpk-react-utils';
|
|
34
34
|
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { number } from 'prop-types';
|
|
23
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';
|
|
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
|
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
lineHeightSm,
|
|
28
28
|
} from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
29
29
|
import { cssModules } from 'bpk-react-utils';
|
|
30
|
-
import BpkMobileScrollContainer from 'bpk-component-mobile-scroll-container';
|
|
30
|
+
import BpkMobileScrollContainer from '../../bpk-component-mobile-scroll-container';
|
|
31
31
|
|
|
32
32
|
import BpkBarchartDefs from './BpkBarchartDefs';
|
|
33
33
|
import BpkBarchartBars from './BpkBarchartBars';
|
|
@@ -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';
|
|
23
|
+
import BpkLink from '../../bpk-component-link';
|
|
24
|
+
import BpkText from '../../bpk-component-text';
|
|
25
25
|
import { cssModules } from 'bpk-react-utils';
|
|
26
|
-
import { withRtlSupport } from 'bpk-component-icon';
|
|
27
|
-
import ArrowRight from 'bpk-component-icon/sm/arrow-right';
|
|
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
|
|
|
@@ -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';
|
|
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
24
|
import { cssModules } from 'bpk-react-utils';
|
|
25
|
-
import BpkAriaLive from 'bpk-component-aria-live';
|
|
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,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
|
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import PropTypes from 'prop-types';
|
|
23
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';
|
|
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<
|
|
@@ -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 {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { type Node } from 'react';
|
|
23
23
|
import { cssModules } from 'bpk-react-utils';
|
|
24
|
-
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
24
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkSelectableChip.module.scss';
|
|
27
27
|
import {
|
|
@@ -20,7 +20,7 @@
|
|
|
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';
|
|
23
|
+
import CloseIcon from '../../bpk-component-icon/sm/close';
|
|
24
24
|
import { cssModules } from 'bpk-react-utils';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkCloseButton.module.scss';
|
|
@@ -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>
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import { SortDirection } from 'react-virtualized';
|
|
22
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';
|
|
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';
|
|
@@ -30,14 +30,14 @@ import {
|
|
|
30
30
|
weekDays,
|
|
31
31
|
formatMonth,
|
|
32
32
|
formatDateFull,
|
|
33
|
-
} from 'bpk-component-calendar/test-utils';
|
|
33
|
+
} from '../../bpk-component-calendar/test-utils';
|
|
34
34
|
import {
|
|
35
35
|
format,
|
|
36
36
|
dateToBoundaries,
|
|
37
37
|
addMonths,
|
|
38
38
|
addDays,
|
|
39
39
|
startOfDay,
|
|
40
|
-
} from 'bpk-component-calendar/src/date-utils';
|
|
40
|
+
} from '../../bpk-component-calendar/src/date-utils';
|
|
41
41
|
import {
|
|
42
42
|
BpkCalendarNav,
|
|
43
43
|
BpkCalendarGridHeader,
|
|
@@ -47,8 +47,8 @@ import {
|
|
|
47
47
|
CustomPropTypes,
|
|
48
48
|
CALENDAR_SELECTION_TYPE,
|
|
49
49
|
BpkCalendarGrid,
|
|
50
|
-
} from 'bpk-component-calendar';
|
|
51
|
-
import BpkInput, { withOpenEvents } from 'bpk-component-input';
|
|
50
|
+
} from '../../bpk-component-calendar';
|
|
51
|
+
import BpkInput, { withOpenEvents } from '../../bpk-component-input';
|
|
52
52
|
|
|
53
53
|
import BpkDatepicker from './index';
|
|
54
54
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { CALENDAR_SELECTION_TYPE } from 'bpk-component-calendar';
|
|
19
|
+
import { CALENDAR_SELECTION_TYPE } from '../../bpk-component-calendar';
|
|
20
20
|
|
|
21
21
|
import BpkDatepicker from './src/BpkDatepicker';
|
|
22
22
|
import themeAttributes from './src/themeAttributes';
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import BpkInput, { withOpenEvents } from 'bpk-component-input';
|
|
20
|
-
import BpkModal from 'bpk-component-modal';
|
|
21
|
-
import BpkPopover from 'bpk-component-popover';
|
|
19
|
+
import BpkInput, { withOpenEvents } from '../../bpk-component-input';
|
|
20
|
+
import BpkModal from '../../bpk-component-modal';
|
|
21
|
+
import BpkPopover from '../../bpk-component-popover';
|
|
22
22
|
import { cssModules, deprecated } from 'bpk-react-utils';
|
|
23
23
|
import PropTypes from 'prop-types';
|
|
24
24
|
import React, { Component } from 'react';
|
|
25
|
-
import BpkBreakpoint, { BREAKPOINTS } from 'bpk-component-breakpoint';
|
|
25
|
+
import BpkBreakpoint, { BREAKPOINTS } from '../../bpk-component-breakpoint';
|
|
26
26
|
import {
|
|
27
27
|
composeCalendar,
|
|
28
28
|
BpkCalendarGridHeader,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
CALENDAR_SELECTION_TYPE,
|
|
34
34
|
DateUtils,
|
|
35
35
|
BpkCalendarNav,
|
|
36
|
-
} from 'bpk-component-calendar';
|
|
36
|
+
} from '../../bpk-component-calendar';
|
|
37
37
|
|
|
38
38
|
import STYLES from './BpkDatepicker.module.scss';
|
|
39
39
|
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { themeAttributes as calendarAttributes } from 'bpk-component-calendar';
|
|
20
|
-
import { themeAttributes as modalAttributes } from 'bpk-component-modal';
|
|
21
|
-
import { themeAttributes as popoverAttributes } from 'bpk-component-popover';
|
|
19
|
+
import { themeAttributes as calendarAttributes } from '../../bpk-component-calendar';
|
|
20
|
+
import { themeAttributes as modalAttributes } from '../../bpk-component-modal';
|
|
21
|
+
import { themeAttributes as popoverAttributes } from '../../bpk-component-popover';
|
|
22
22
|
|
|
23
23
|
export default [
|
|
24
24
|
...calendarAttributes,
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { Component, type Node } from 'react';
|
|
23
|
-
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
24
|
-
import BpkButton from 'bpk-component-button';
|
|
25
|
-
import TickIcon from 'bpk-component-icon/lg/tick';
|
|
26
|
-
import InfoIcon from 'bpk-component-icon/lg/information-circle';
|
|
27
|
-
import TrashIcon from 'bpk-component-icon/lg/trash';
|
|
23
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
24
|
+
import BpkButton from '../../bpk-component-button';
|
|
25
|
+
import TickIcon from '../../bpk-component-icon/lg/tick';
|
|
26
|
+
import InfoIcon from '../../bpk-component-icon/lg/information-circle';
|
|
27
|
+
import TrashIcon from '../../bpk-component-icon/lg/trash';
|
|
28
28
|
import { cssModules, withDefaultProps } from 'bpk-react-utils';
|
|
29
29
|
|
|
30
30
|
import STYLES from './examples.module.scss';
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { cssModules, Portal } from 'bpk-react-utils';
|
|
23
|
-
import BpkCloseButton from 'bpk-component-close-button';
|
|
23
|
+
import BpkCloseButton from '../../bpk-component-close-button';
|
|
24
24
|
|
|
25
25
|
import BpkDialogInner from './BpkDialogInner';
|
|
26
26
|
import { type Props, propTypes, defaultProps } from './common-types';
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { TransitionInitialMount, cssModules } from 'bpk-react-utils';
|
|
23
23
|
import { withScrim } from 'bpk-scrim-utils';
|
|
24
|
-
import { BpkContentBubble } from 'bpk-component-flare';
|
|
24
|
+
import { BpkContentBubble } from '../../bpk-component-flare';
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
type DialogInnerProps as Props,
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
import React, { Component } from 'react';
|
|
23
23
|
import { cssModules, withDefaultProps } from 'bpk-react-utils';
|
|
24
|
-
import BpkButton from 'bpk-component-button';
|
|
25
|
-
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
24
|
+
import BpkButton from '../../bpk-component-button';
|
|
25
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
26
26
|
|
|
27
27
|
import STYLES from './examples.module.scss';
|
|
28
28
|
|
|
@@ -23,8 +23,8 @@ import React, { type Node } from 'react';
|
|
|
23
23
|
import Transition from 'react-transition-group/Transition';
|
|
24
24
|
import { animations } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
25
25
|
import { cssModules } from 'bpk-react-utils';
|
|
26
|
-
import { BpkButtonLink } from 'bpk-component-link';
|
|
27
|
-
import BpkCloseButton from 'bpk-component-close-button';
|
|
26
|
+
import { BpkButtonLink } from '../../bpk-component-link';
|
|
27
|
+
import BpkCloseButton from '../../bpk-component-close-button';
|
|
28
28
|
|
|
29
29
|
import STYLES from './BpkDrawerContent.module.scss';
|
|
30
30
|
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import React, { cloneElement, Component } from 'react';
|
|
22
|
-
import BpkSelect from 'bpk-component-select';
|
|
23
|
-
import BpkCheckbox from 'bpk-component-checkbox';
|
|
24
|
-
import BpkInput, { INPUT_TYPES } from 'bpk-component-input';
|
|
25
|
-
import BpkButton from 'bpk-component-button';
|
|
26
|
-
import BpkDatepicker from 'bpk-component-datepicker';
|
|
27
|
-
import BpkTextarea from 'bpk-component-textarea';
|
|
22
|
+
import BpkSelect from '../../bpk-component-select';
|
|
23
|
+
import BpkCheckbox from '../../bpk-component-checkbox';
|
|
24
|
+
import BpkInput, { INPUT_TYPES } from '../../bpk-component-input';
|
|
25
|
+
import BpkButton from '../../bpk-component-button';
|
|
26
|
+
import BpkDatepicker from '../../bpk-component-datepicker';
|
|
27
|
+
import BpkTextarea from '../../bpk-component-textarea';
|
|
28
28
|
import BpkAutosuggest, {
|
|
29
29
|
BpkAutosuggestSuggestion,
|
|
30
|
-
} from 'bpk-component-autosuggest';
|
|
30
|
+
} from '../../bpk-component-autosuggest';
|
|
31
31
|
import {
|
|
32
32
|
weekDays,
|
|
33
33
|
formatMonth,
|
|
34
34
|
formatDateFull,
|
|
35
|
-
} from 'bpk-component-calendar/test-utils';
|
|
36
|
-
import { format } from 'bpk-component-calendar/src/date-utils';
|
|
35
|
+
} from '../../bpk-component-calendar/test-utils';
|
|
36
|
+
import { format } from '../../bpk-component-calendar/src/date-utils';
|
|
37
37
|
import { cssModules } from 'bpk-react-utils';
|
|
38
38
|
|
|
39
39
|
import STYLES from './examples.module.scss';
|
|
@@ -109,8 +109,8 @@ const getSuggestions = (value) => {
|
|
|
109
109
|
return inputLength === 0
|
|
110
110
|
? []
|
|
111
111
|
: offices.filter(
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
(office) => office.name.toLowerCase().indexOf(inputValue) !== -1,
|
|
113
|
+
);
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
const getSuggestionValue = (suggestion) =>
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import React, { cloneElement, type Element } from 'react';
|
|
22
|
-
import BpkLabel from 'bpk-component-label';
|
|
23
|
-
import BpkFormValidation from 'bpk-component-form-validation';
|
|
22
|
+
import BpkLabel from '../../bpk-component-label';
|
|
23
|
+
import BpkFormValidation from '../../bpk-component-form-validation';
|
|
24
24
|
import { cssModules } from 'bpk-react-utils';
|
|
25
25
|
|
|
26
26
|
import STYLES from './BpkFieldset.module.scss';
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* @flow strict */
|
|
20
20
|
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import BpkText, { TEXT_STYLES } from 'bpk-component-text';
|
|
22
|
+
import BpkText, { TEXT_STYLES } from '../../bpk-component-text';
|
|
23
23
|
import { cssModules } from 'bpk-react-utils';
|
|
24
24
|
|
|
25
25
|
import { BpkFlareBar, BpkContentBubble } from './index';
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React, { Component } from 'react';
|
|
21
|
-
import BpkButton from 'bpk-component-button';
|
|
22
|
-
import BpkSelect from 'bpk-component-select';
|
|
23
|
-
import BpkCheckbox from 'bpk-component-checkbox';
|
|
24
|
-
import BpkTextarea from 'bpk-component-textarea';
|
|
25
|
-
import BpkInput from 'bpk-component-input';
|
|
21
|
+
import BpkButton from '../../bpk-component-button';
|
|
22
|
+
import BpkSelect from '../../bpk-component-select';
|
|
23
|
+
import BpkCheckbox from '../../bpk-component-checkbox';
|
|
24
|
+
import BpkTextarea from '../../bpk-component-textarea';
|
|
25
|
+
import BpkInput from '../../bpk-component-input';
|
|
26
26
|
import { cssModules } from 'bpk-react-utils';
|
|
27
27
|
|
|
28
28
|
import STYLES from './examples.module.scss';
|
|
@@ -20,8 +20,8 @@ import PropTypes from 'prop-types';
|
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import AnimateHeight from 'bpk-animate-height';
|
|
22
22
|
import { cssModules } from 'bpk-react-utils';
|
|
23
|
-
import BpkSmallExclamationIcon from 'bpk-component-icon/sm/exclamation-circle';
|
|
24
|
-
import { withAlignment } from 'bpk-component-icon';
|
|
23
|
+
import BpkSmallExclamationIcon from '../../bpk-component-icon/sm/exclamation-circle';
|
|
24
|
+
import { withAlignment } from '../../bpk-component-icon';
|
|
25
25
|
import {
|
|
26
26
|
lineHeightSm,
|
|
27
27
|
iconSizeSm,
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import { cssModules } from 'bpk-react-utils';
|
|
22
|
-
import { BpkButtonLink } from 'bpk-component-link';
|
|
22
|
+
import { BpkButtonLink } from '../../bpk-component-link';
|
|
23
23
|
|
|
24
24
|
import STYLES from './BpkGridToggle.module.scss';
|
|
25
25
|
|