@skyscanner/backpack-web 9.2.0-beta.1 → 9.2.0
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/package.json +3 -3
- package/bpk-component-accordion/package.json +7 -7
- package/bpk-component-aria-live/package.json +7 -7
- package/bpk-component-autosuggest/package.json +4 -4
- package/bpk-component-badge/package.json +5 -5
- package/bpk-component-banner-alert/package.json +9 -9
- package/bpk-component-barchart/package.json +8 -8
- package/bpk-component-blockquote/package.json +2 -2
- package/bpk-component-breadcrumb/package.json +5 -5
- package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.scss +2 -2
- package/bpk-component-breakpoint/package.json +3 -3
- package/bpk-component-button/package.json +3 -3
- package/bpk-component-calendar/package.json +9 -9
- package/bpk-component-calendar/src/BpkCalendarGrid.js +3 -2
- package/bpk-component-card/package.json +4 -4
- package/bpk-component-checkbox/package.json +5 -5
- package/bpk-component-chip/package.json +5 -5
- package/bpk-component-close-button/package.json +4 -4
- package/bpk-component-code/package.json +2 -2
- package/bpk-component-content-container/package.json +2 -2
- package/bpk-component-datatable/package.json +4 -4
- package/bpk-component-datepicker/package.json +9 -9
- package/bpk-component-description-list/package.json +2 -2
- package/bpk-component-dialog/package.json +8 -8
- package/bpk-component-drawer/package.json +9 -9
- package/bpk-component-fieldset/package.json +12 -12
- package/bpk-component-flare/package.json +4 -4
- package/bpk-component-floating-notification/package.json +5 -5
- package/bpk-component-form-validation/package.json +10 -10
- package/bpk-component-graphic-promotion/package.json +4 -4
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo-test.tsx +6 -3
- package/bpk-component-graphic-promotion/src/BpkGraphicPromo.tsx +28 -24
- package/bpk-component-grid/package.json +2 -2
- package/bpk-component-grid-toggle/package.json +3 -3
- package/bpk-component-horizontal-nav/package.json +6 -6
- package/bpk-component-icon/package.json +7 -7
- package/bpk-component-image/package.json +6 -6
- package/bpk-component-infinite-scroll/package.json +6 -6
- package/bpk-component-input/package.json +6 -6
- package/bpk-component-label/package.json +2 -2
- package/bpk-component-link/package.json +4 -4
- package/bpk-component-list/package.json +2 -2
- package/bpk-component-loading-button/package.json +6 -6
- package/bpk-component-map/package.json +6 -6
- package/bpk-component-map/src/BpkIconMarker.module.scss +3 -3
- package/bpk-component-map/src/BpkIconMarkerBackground.module.scss +4 -4
- package/bpk-component-map/src/BpkPriceMarker.module.scss +17 -17
- package/bpk-component-map/src/DefaultLoadingElement.module.scss +1 -1
- package/bpk-component-mobile-scroll-container/package.json +3 -3
- package/bpk-component-modal/package.json +9 -9
- package/bpk-component-navigation-bar/package.json +8 -8
- package/bpk-component-nudger/package.json +7 -7
- package/bpk-component-overlay/package.json +4 -4
- package/bpk-component-pagination/package.json +4 -4
- package/bpk-component-panel/package.json +2 -2
- package/bpk-component-phone-input/package.json +9 -9
- package/bpk-component-popover/package.json +8 -8
- package/bpk-component-price/package.json +3 -3
- package/bpk-component-progress/package.json +5 -5
- package/bpk-component-radio/package.json +4 -4
- package/bpk-component-rating/package.json +4 -4
- package/bpk-component-rtl-toggle/package.json +2 -2
- package/bpk-component-scrollable-calendar/package.json +7 -7
- package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.js +100 -69
- package/bpk-component-scrollable-calendar/src/utils.js +24 -1
- package/bpk-component-section-list/package.json +6 -6
- package/bpk-component-select/package.json +3 -3
- package/bpk-component-skip-link/package.json +2 -2
- package/bpk-component-slider/package.json +4 -4
- package/bpk-component-spinner/package.json +3 -3
- package/bpk-component-split-input/package.json +3 -3
- package/bpk-component-star-rating/package.json +5 -5
- package/bpk-component-switch/package.json +2 -2
- package/bpk-component-table/package.json +2 -2
- package/bpk-component-text/package.json +2 -2
- package/bpk-component-textarea/package.json +4 -4
- package/bpk-component-theme-toggle/package.json +5 -5
- package/bpk-component-ticket/package.json +4 -4
- package/bpk-component-tooltip/package.json +4 -4
- package/bpk-scrim-utils/package.json +2 -2
- package/bpk-theming/package.json +2 -2
- package/package.json +6 -5
|
@@ -19,12 +19,7 @@
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import { startOfDay, startOfMonth } from 'date-fns';
|
|
22
|
-
import {
|
|
23
|
-
AutoSizer,
|
|
24
|
-
List,
|
|
25
|
-
CellMeasurer,
|
|
26
|
-
CellMeasurerCache,
|
|
27
|
-
} from 'react-virtualized';
|
|
22
|
+
import { VariableSizeList as List } from 'react-window';
|
|
28
23
|
|
|
29
24
|
import { cssModules, deprecated } from '../../bpk-react-utils';
|
|
30
25
|
import {
|
|
@@ -34,16 +29,24 @@ import {
|
|
|
34
29
|
|
|
35
30
|
import STYLES from './BpkScrollableCalendarGridList.module.scss';
|
|
36
31
|
import BpkScrollableCalendarGrid from './BpkScrollableCalendarGrid';
|
|
37
|
-
import getMonthsArray from './utils';
|
|
32
|
+
import { getMonthsArray, getMonthItemHeights } from './utils';
|
|
38
33
|
|
|
39
34
|
const getClassName = cssModules(STYLES);
|
|
40
35
|
|
|
36
|
+
// The `react-window` API requires the height in pixels to be specified.
|
|
37
|
+
// These constants are here to facilitate calculating the height.
|
|
38
|
+
const ROW_HEIGHT = 44;
|
|
39
|
+
// This is the additional height of each grid without any rows.
|
|
40
|
+
const BASE_MONTH_ITEM_HEIGHT = 130;
|
|
41
|
+
const COLUMN_COUNT = 7;
|
|
42
|
+
// Most calendar grids have 5 rows:
|
|
43
|
+
const ESTIMATED_MONTH_ITEM_HEIGHT = BASE_MONTH_ITEM_HEIGHT + 5 * ROW_HEIGHT;
|
|
44
|
+
|
|
41
45
|
class BpkScrollableCalendarGridList extends React.Component {
|
|
42
46
|
constructor(props) {
|
|
43
47
|
super(props);
|
|
44
48
|
|
|
45
|
-
this.
|
|
46
|
-
this.renderList = this.renderList.bind(this);
|
|
49
|
+
this.outerDiv = null;
|
|
47
50
|
|
|
48
51
|
const startDate = startOfDay(startOfMonth(this.props.minDate));
|
|
49
52
|
const endDate = startOfDay(startOfMonth(this.props.maxDate));
|
|
@@ -52,88 +55,116 @@ class BpkScrollableCalendarGridList extends React.Component {
|
|
|
52
55
|
startDate,
|
|
53
56
|
);
|
|
54
57
|
const months = getMonthsArray(startDate, monthsCount);
|
|
58
|
+
const monthItemHeights = getMonthItemHeights(
|
|
59
|
+
months,
|
|
60
|
+
props.weekStartsOn,
|
|
61
|
+
COLUMN_COUNT,
|
|
62
|
+
ROW_HEIGHT,
|
|
63
|
+
BASE_MONTH_ITEM_HEIGHT,
|
|
64
|
+
);
|
|
55
65
|
|
|
56
|
-
const cache = new CellMeasurerCache({
|
|
57
|
-
fixedWidth: true,
|
|
58
|
-
defaultHeight: 276, // most common height (in px) of BpkScrollableCalendarGrid
|
|
59
|
-
});
|
|
60
66
|
this.state = {
|
|
61
67
|
months,
|
|
62
|
-
|
|
68
|
+
monthItemHeights,
|
|
69
|
+
outerHeight: ESTIMATED_MONTH_ITEM_HEIGHT,
|
|
63
70
|
};
|
|
64
71
|
}
|
|
65
72
|
|
|
73
|
+
componentDidMount = () => {
|
|
74
|
+
this.setComponentHeight();
|
|
75
|
+
if (typeof document !== 'undefined') {
|
|
76
|
+
window.addEventListener('resize', this.setComponentHeight);
|
|
77
|
+
document.addEventListener('orientationchange', this.setComponentHeight);
|
|
78
|
+
document.addEventListener('fullscreenchange', this.setComponentHeight);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
componentWillUnmount = () => {
|
|
83
|
+
if (typeof document !== 'undefined') {
|
|
84
|
+
window.removeEventListener('resize', this.setComponentHeight);
|
|
85
|
+
document.removeEventListener(
|
|
86
|
+
'orientationchange',
|
|
87
|
+
this.setComponentHeight,
|
|
88
|
+
);
|
|
89
|
+
document.removeEventListener('fullscreenchange', this.setComponentHeight);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
66
93
|
getHtmlElement = () =>
|
|
67
94
|
typeof document !== 'undefined' ? document.querySelector('html') : {};
|
|
68
95
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<CellMeasurer
|
|
72
|
-
key={key}
|
|
73
|
-
cache={this.state.cache}
|
|
74
|
-
parent={parent}
|
|
75
|
-
columnIndex={0}
|
|
76
|
-
rowIndex={index}
|
|
77
|
-
>
|
|
78
|
-
<div style={style}>
|
|
79
|
-
<BpkScrollableCalendarGrid
|
|
80
|
-
onDateClick={this.props.onDateClick}
|
|
81
|
-
{...this.props}
|
|
82
|
-
key={key}
|
|
83
|
-
month={this.state.months[index]}
|
|
84
|
-
focusedDate={this.props.focusedDate}
|
|
85
|
-
preventKeyboardFocus={this.props.preventKeyboardFocus}
|
|
86
|
-
aria-hidden={index !== 1}
|
|
87
|
-
className={getClassName('bpk-scrollable-calendar-grid-list__item')}
|
|
88
|
-
/>
|
|
89
|
-
</div>
|
|
90
|
-
</CellMeasurer>
|
|
91
|
-
);
|
|
92
|
-
}
|
|
96
|
+
getItemSize = (index) =>
|
|
97
|
+
this.state.monthItemHeights[index] || ESTIMATED_MONTH_ITEM_HEIGHT;
|
|
93
98
|
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
99
|
+
setComponentHeight = () => {
|
|
100
|
+
const outerNode = this.outerDiv;
|
|
101
|
+
if (outerNode) {
|
|
102
|
+
const newHeight = outerNode.clientHeight;
|
|
103
|
+
this.setState({ outerHeight: newHeight });
|
|
104
|
+
} else {
|
|
105
|
+
this.setState({ outerHeight: ESTIMATED_MONTH_ITEM_HEIGHT });
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
rowRenderer = ({ index, style }) => (
|
|
110
|
+
<div style={style}>
|
|
111
|
+
<BpkScrollableCalendarGrid
|
|
112
|
+
onDateClick={this.props.onDateClick}
|
|
113
|
+
{...this.props}
|
|
114
|
+
month={this.state.months[index]}
|
|
115
|
+
focusedDate={this.props.focusedDate}
|
|
116
|
+
preventKeyboardFocus={this.props.preventKeyboardFocus}
|
|
117
|
+
aria-hidden={index !== 1}
|
|
118
|
+
className={getClassName('bpk-scrollable-calendar-grid-list__item')}
|
|
113
119
|
/>
|
|
114
|
-
|
|
115
|
-
|
|
120
|
+
</div>
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
calculateOffsetInPixels = (numberOfMonths) => {
|
|
124
|
+
// The `react-window` API requires the scroll offset to be provided in pixels.
|
|
125
|
+
// Here we use the pre-calculated item heights to find the correct pixel offset
|
|
126
|
+
let result = 0;
|
|
127
|
+
for (let i = 0; i < numberOfMonths; i += 1) {
|
|
128
|
+
result += this.getItemSize(i);
|
|
129
|
+
}
|
|
130
|
+
return result;
|
|
131
|
+
};
|
|
116
132
|
|
|
117
133
|
render() {
|
|
118
134
|
const { focusedDate, minDate, selectionConfiguration } = this.props;
|
|
135
|
+
const { date, startDate } = selectionConfiguration || {};
|
|
136
|
+
const selectedDate = focusedDate || date || startDate;
|
|
137
|
+
|
|
119
138
|
return (
|
|
120
139
|
<div
|
|
121
140
|
className={getClassName(
|
|
122
141
|
'bpk-scrollable-calendar-grid-list',
|
|
123
142
|
this.props.className,
|
|
124
143
|
)}
|
|
144
|
+
ref={(div) => {
|
|
145
|
+
this.outerDiv = div;
|
|
146
|
+
}}
|
|
125
147
|
>
|
|
126
|
-
<
|
|
127
|
-
{
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
height,
|
|
131
|
-
minDate,
|
|
132
|
-
focusedDate,
|
|
133
|
-
selectionConfiguration,
|
|
134
|
-
)
|
|
148
|
+
<List
|
|
149
|
+
extraData={this.props}
|
|
150
|
+
style={
|
|
151
|
+
this.getHtmlElement().dir === 'rtl' ? { direction: 'rtl' } : {}
|
|
135
152
|
}
|
|
136
|
-
|
|
153
|
+
width="100%"
|
|
154
|
+
height={this.state.outerHeight}
|
|
155
|
+
estimatedItemSize={ESTIMATED_MONTH_ITEM_HEIGHT}
|
|
156
|
+
itemSize={this.getItemSize}
|
|
157
|
+
itemCount={this.state.months.length}
|
|
158
|
+
rowCount={this.state.months.length}
|
|
159
|
+
overscanCount={1}
|
|
160
|
+
initialScrollOffset={this.calculateOffsetInPixels(
|
|
161
|
+
selectedDate
|
|
162
|
+
? DateUtils.differenceInCalendarMonths(selectedDate, minDate)
|
|
163
|
+
: 0,
|
|
164
|
+
)}
|
|
165
|
+
>
|
|
166
|
+
{this.rowRenderer}
|
|
167
|
+
</List>
|
|
137
168
|
</div>
|
|
138
169
|
);
|
|
139
170
|
}
|
|
@@ -27,4 +27,27 @@ const getMonthsArray = (startDate, count) => {
|
|
|
27
27
|
|
|
28
28
|
return months;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
|
|
31
|
+
// Here we calculate the height of each calendar grid item in pixels, as the `react-window` API
|
|
32
|
+
// requires that these are provided so that they can be efficiently rendered.
|
|
33
|
+
const getMonthItemHeights = (
|
|
34
|
+
months,
|
|
35
|
+
weekStartsOn,
|
|
36
|
+
columnCount,
|
|
37
|
+
rowHeight,
|
|
38
|
+
baseMonthItemHeight,
|
|
39
|
+
) => {
|
|
40
|
+
const monthItemHeights = months.map((month) => {
|
|
41
|
+
const firstDayOffset = (month.getDay() + 7 - weekStartsOn) % 7;
|
|
42
|
+
const monthLength = DateUtils.daysInMonth(
|
|
43
|
+
month.getYear(),
|
|
44
|
+
month.getMonth(),
|
|
45
|
+
);
|
|
46
|
+
const calendarGridSpaces = firstDayOffset + monthLength;
|
|
47
|
+
const rowCount = Math.ceil(calendarGridSpaces / columnCount);
|
|
48
|
+
return baseMonthItemHeight + rowHeight * rowCount;
|
|
49
|
+
});
|
|
50
|
+
return monthItemHeights;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { getMonthsArray, getMonthItemHeights };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-section-list",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Backpack section list component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-foundations-web": "^
|
|
18
|
-
"bpk-component-icon": "^10.0.
|
|
19
|
-
"bpk-component-text": "^8.0.
|
|
20
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^9.0.0",
|
|
18
|
+
"bpk-component-icon": "^10.0.2",
|
|
19
|
+
"bpk-component-text": "^8.0.2",
|
|
20
|
+
"bpk-mixins": "^31.5.0",
|
|
21
21
|
"bpk-react-utils": "^7.0.0",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"bpk-storybook-utils": "^2.0.
|
|
25
|
+
"bpk-storybook-utils": "^2.0.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^17.0.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-select",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Backpack select component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.5.0",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"bpk-storybook-utils": "^2.0.
|
|
22
|
+
"bpk-storybook-utils": "^2.0.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^17.0.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-skip-link",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Backpack skip-link component.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"react": "^17.0.2"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"bpk-mixins": "^31.
|
|
16
|
+
"bpk-mixins": "^31.5.0",
|
|
17
17
|
"bpk-react-utils": "^7.0.0",
|
|
18
18
|
"prop-types": "^15.5.8"
|
|
19
19
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-slider",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Backpack slider component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-foundations-web": "^
|
|
18
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^9.0.0",
|
|
18
|
+
"bpk-mixins": "^31.5.0",
|
|
19
19
|
"bpk-react-utils": "^7.0.0",
|
|
20
20
|
"prop-types": "^15.7.2",
|
|
21
21
|
"react-slider": "^1.3.1"
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"react": "^17.0.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"bpk-component-rtl-toggle": "^4.0.
|
|
27
|
+
"bpk-component-rtl-toggle": "^4.0.2"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-spinner",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Backpack spinner components.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-svgs": "^14.3.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"@skyscanner/bpk-svgs": "^14.3.8",
|
|
18
|
+
"bpk-mixins": "^31.5.0",
|
|
19
19
|
"bpk-react-utils": "^7.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-split-input",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Backpack split-input component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"registry": "https://registry.npmjs.org/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"bpk-component-input": "^7.0.
|
|
17
|
-
"bpk-mixins": "^31.
|
|
16
|
+
"bpk-component-input": "^7.0.2",
|
|
17
|
+
"bpk-mixins": "^31.5.0",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.5.8"
|
|
20
20
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-star-rating",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Backpack rating star component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-component-icon": "^10.0.
|
|
18
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-component-icon": "^10.0.2",
|
|
18
|
+
"bpk-mixins": "^31.5.0",
|
|
19
19
|
"bpk-react-utils": "^7.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"react": "^17.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"bpk-component-table": "^4.0.
|
|
27
|
-
"bpk-storybook-utils": "^2.0.
|
|
26
|
+
"bpk-component-table": "^4.0.2",
|
|
27
|
+
"bpk-storybook-utils": "^2.0.2"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-switch",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Backpack switch component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.5.0",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.5.8"
|
|
20
20
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-table",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Backpack table component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.5.0",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-text",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Backpack text 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-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.5.0",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-textarea",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Backpack textarea component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.5.0",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"bpk-component-label": "^6.0.
|
|
23
|
-
"bpk-storybook-utils": "^2.0.
|
|
22
|
+
"bpk-component-label": "^6.0.2",
|
|
23
|
+
"bpk-storybook-utils": "^2.0.2"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^17.0.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-theme-toggle",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Backpack theme toggle component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-foundations-web": "^
|
|
18
|
-
"bpk-component-label": "^6.0.
|
|
19
|
-
"bpk-component-select": "^6.0.
|
|
20
|
-
"bpk-mixins": "^31.
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^9.0.0",
|
|
18
|
+
"bpk-component-label": "^6.0.2",
|
|
19
|
+
"bpk-component-select": "^6.0.2",
|
|
20
|
+
"bpk-mixins": "^31.5.0",
|
|
21
21
|
"bpk-react-utils": "^7.0.0",
|
|
22
22
|
"prop-types": "^15.7.2"
|
|
23
23
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-ticket",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Backpack ticket 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-mixins": "^31.
|
|
17
|
+
"bpk-mixins": "^31.5.0",
|
|
18
18
|
"bpk-react-utils": "^7.0.0",
|
|
19
19
|
"prop-types": "^15.7.2"
|
|
20
20
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"react": "^17.0.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"bpk-component-button": "^7.0.
|
|
26
|
-
"bpk-component-icon": "^10.0.
|
|
25
|
+
"bpk-component-button": "^7.0.2",
|
|
26
|
+
"bpk-component-icon": "^10.0.2"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-component-tooltip",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "Backpack tooltip component.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@popperjs/core": "^2.11.5",
|
|
18
|
-
"bpk-mixins": "^31.
|
|
18
|
+
"bpk-mixins": "^31.5.0",
|
|
19
19
|
"bpk-react-utils": "^7.0.0",
|
|
20
20
|
"prop-types": "^15.7.2"
|
|
21
21
|
},
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"react": "^17.0.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@skyscanner/bpk-foundations-web": "^
|
|
27
|
-
"bpk-component-text": "^8.0.
|
|
26
|
+
"@skyscanner/bpk-foundations-web": "^9.0.0",
|
|
27
|
+
"bpk-component-text": "^8.0.2"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-scrim-utils",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Higher order component that adds an overlay behind components and manages scroll states.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"a11y-focus-scope": "^1.1.3",
|
|
18
18
|
"a11y-focus-store": "^1.0.0",
|
|
19
|
-
"bpk-mixins": "^31.
|
|
19
|
+
"bpk-mixins": "^31.5.0",
|
|
20
20
|
"bpk-react-utils": "^7.0.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
package/bpk-theming/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpk-theming",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Backpack theming utlities.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"gitHead": "c2217d61875a1f3aa2bb9ed9583c50e3f1523501",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@skyscanner/bpk-foundations-web": "^
|
|
17
|
+
"@skyscanner/bpk-foundations-web": "^9.0.0",
|
|
18
18
|
"prop-types": "^15.7.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/backpack-web",
|
|
3
|
-
"version": "9.2.0
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "Backpack Design System web library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@popperjs/core": "^2.11.5",
|
|
26
26
|
"@react-google-maps/api": "^2.12.0",
|
|
27
|
-
"@skyscanner/bpk-foundations-web": "^
|
|
28
|
-
"@skyscanner/bpk-svgs": "^14.3.
|
|
27
|
+
"@skyscanner/bpk-foundations-web": "^9.0.0",
|
|
28
|
+
"@skyscanner/bpk-svgs": "^14.3.8",
|
|
29
29
|
"a11y-focus-scope": "^1.1.3",
|
|
30
30
|
"a11y-focus-store": "^1.0.0",
|
|
31
|
-
"bpk-mixins": "^31.
|
|
31
|
+
"bpk-mixins": "^31.5.0",
|
|
32
32
|
"d3-path": "^2.0.0",
|
|
33
33
|
"d3-scale": "^4.0.2",
|
|
34
34
|
"date-fns": "^2.21.1",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"react-responsive": "^6.1.2",
|
|
43
43
|
"react-slider": "^1.3.1",
|
|
44
44
|
"react-transition-group": "^2.5.3",
|
|
45
|
-
"react-virtualized": "^9.22.3"
|
|
45
|
+
"react-virtualized": "^9.22.3",
|
|
46
|
+
"react-window": "^1.8.7"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
48
49
|
"react": "^17.0.2"
|